@opencx/widget 4.0.50 → 4.0.52

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.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Vh=Symbol.for("react.transitional.element"),bN=Symbol.for("react.portal"),vN=Symbol.for("react.fragment"),yN=Symbol.for("react.strict_mode"),xN=Symbol.for("react.profiler"),_N=Symbol.for("react.consumer"),EN=Symbol.for("react.context"),TN=Symbol.for("react.forward_ref"),wN=Symbol.for("react.suspense"),SN=Symbol.for("react.memo"),cv=Symbol.for("react.lazy"),dv=Symbol.iterator;function AN(e){return e===null||typeof e!="object"?null:(e=dv&&e[dv]||e["@@iterator"],typeof e=="function"?e:null)}var fv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hv=Object.assign,pv={};function Cs(e,t,n){this.props=e,this.context=t,this.refs=pv,this.updater=n||fv}Cs.prototype.isReactComponent={},Cs.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")},Cs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mv(){}mv.prototype=Cs.prototype;function Yh(e,t,n){this.props=e,this.context=t,this.refs=pv,this.updater=n||fv}var qh=Yh.prototype=new mv;qh.constructor=Yh,hv(qh,Cs.prototype),qh.isPureReactComponent=!0;var gv=Array.isArray,lt={H:null,A:null,T:null,S:null,V:null},bv=Object.prototype.hasOwnProperty;function Gh(e,t,n,i,r,a){return n=a.ref,{$$typeof:Vh,type:e,key:t,ref:n!==void 0?n:null,props:a}}function CN(e,t){return Gh(e.type,t,void 0,void 0,void 0,e.props)}function $h(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vh}function kN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vv=/\/+/g;function Xh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?kN(""+e.key):t.toString(36)}function yv(){}function ON(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(yv,yv):(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 ks(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 Vh:case bN:s=!0;break;case cv:return s=e._init,ks(s(e._payload),t,n,i,r)}}if(s)return r=r(e),s=i===""?"."+Xh(e,0):i,gv(r)?(n="",s!=null&&(n=s.replace(vv,"$&/")+"/"),ks(r,t,n,"",function(u){return u})):r!=null&&($h(r)&&(r=CN(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(vv,"$&/")+"/")+s)),t.push(r)),1;s=0;var o=i===""?".":i+":";if(gv(e))for(var l=0;l<e.length;l++)i=e[l],a=o+Xh(i,l),s+=ks(i,t,n,a,r);else if(l=AN(e),typeof l=="function")for(e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,a=o+Xh(i,l++),s+=ks(i,t,n,a,r);else if(a==="object"){if(typeof e.then=="function")return ks(ON(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 kc(e,t,n){if(e==null)return e;var i=[],r=0;return ks(e,i,"","",function(a){return t.call(n,a,r++)}),i}function NN(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 xv=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 RN(){}Ae.Children={map:kc,forEach:function(e,t,n){kc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return kc(e,function(){t++}),t},toArray:function(e){return kc(e,function(t){return t})||[]},only:function(e){if(!$h(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ae.Component=Cs,Ae.Fragment=vN,Ae.Profiler=xN,Ae.PureComponent=Yh,Ae.StrictMode=yN,Ae.Suspense=wN,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=lt,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(e){return lt.H.useMemoCache(e)}},Ae.cache=function(e){return function(){return e.apply(null,arguments)}},Ae.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=hv({},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)!bv.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 Gh(e.type,r,void 0,void 0,a,i)},Ae.createContext=function(e){return e={$$typeof:EN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:_N,_context:e},e},Ae.createElement=function(e,t,n){var i,r={},a=null;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)bv.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 Gh(e,a,void 0,void 0,null,r)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(e){return{$$typeof:TN,render:e}},Ae.isValidElement=$h,Ae.lazy=function(e){return{$$typeof:cv,_payload:{_status:-1,_result:e},_init:NN}},Ae.memo=function(e,t){return{$$typeof:SN,type:e,compare:t===void 0?null:t}},Ae.startTransition=function(e){var t=lt.T,n={};lt.T=n;try{var i=e(),r=lt.S;r!==null&&r(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(RN,xv)}catch(a){xv(a)}finally{lt.T=t}},Ae.unstable_useCacheRefresh=function(){return lt.H.useCacheRefresh()},Ae.use=function(e){return lt.H.use(e)},Ae.useActionState=function(e,t,n){return lt.H.useActionState(e,t,n)},Ae.useCallback=function(e,t){return lt.H.useCallback(e,t)},Ae.useContext=function(e){return lt.H.useContext(e)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(e,t){return lt.H.useDeferredValue(e,t)},Ae.useEffect=function(e,t,n){var i=lt.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return i.useEffect(e,t)},Ae.useId=function(){return lt.H.useId()},Ae.useImperativeHandle=function(e,t,n){return lt.H.useImperativeHandle(e,t,n)},Ae.useInsertionEffect=function(e,t){return lt.H.useInsertionEffect(e,t)},Ae.useLayoutEffect=function(e,t){return lt.H.useLayoutEffect(e,t)},Ae.useMemo=function(e,t){return lt.H.useMemo(e,t)},Ae.useOptimistic=function(e,t){return lt.H.useOptimistic(e,t)},Ae.useReducer=function(e,t,n){return lt.H.useReducer(e,t,n)},Ae.useRef=function(e){return lt.H.useRef(e)},Ae.useState=function(e){return lt.H.useState(e)},Ae.useSyncExternalStore=function(e,t,n){return lt.H.useSyncExternalStore(e,t,n)},Ae.useTransition=function(){return lt.H.useTransition()},Ae.version="19.1.1",uv.exports=Ae;var _=uv.exports;const pn=hl(_),_v=hN({__proto__:null,default:pn},[_]);function _n(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 Ev(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Tv(...e){return t=>{let n=!1;const i=e.map(r=>{const a=Ev(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():Ev(e[r],null)}}}}function Bi(...e){return _.useCallback(Tv(...e),e)}function Oc(e,t=[]){let n=[];function i(a,s){const o=_.createContext(s),l=n.length;n=[...n,s];const u=d=>{var m;const{scope:f,children:h,...g}=d,b=((m=f==null?void 0:f[e])==null?void 0:m[l])||o,E=_.useMemo(()=>g,Object.values(g));return y.jsx(b.Provider,{value:E,children:h})};u.displayName=a+"Provider";function c(d,f){var b;const h=((b=f==null?void 0:f[e])==null?void 0:b[l])||o,g=_.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[u,c]}const r=()=>{const a=n.map(s=>_.createContext(s));return function(o){const l=(o==null?void 0:o[e])||a;return _.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return r.scopeName=e,[i,DN(r,...t)]}function DN(...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 d=l(a)[`__scope${u}`];return{...o,...d}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var wv={exports:{}},mn={};/**
17
+ */var Vh=Symbol.for("react.transitional.element"),bN=Symbol.for("react.portal"),vN=Symbol.for("react.fragment"),yN=Symbol.for("react.strict_mode"),xN=Symbol.for("react.profiler"),_N=Symbol.for("react.consumer"),EN=Symbol.for("react.context"),TN=Symbol.for("react.forward_ref"),wN=Symbol.for("react.suspense"),SN=Symbol.for("react.memo"),cv=Symbol.for("react.lazy"),dv=Symbol.iterator;function AN(e){return e===null||typeof e!="object"?null:(e=dv&&e[dv]||e["@@iterator"],typeof e=="function"?e:null)}var fv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hv=Object.assign,pv={};function Cs(e,t,n){this.props=e,this.context=t,this.refs=pv,this.updater=n||fv}Cs.prototype.isReactComponent={},Cs.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")},Cs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mv(){}mv.prototype=Cs.prototype;function Yh(e,t,n){this.props=e,this.context=t,this.refs=pv,this.updater=n||fv}var qh=Yh.prototype=new mv;qh.constructor=Yh,hv(qh,Cs.prototype),qh.isPureReactComponent=!0;var gv=Array.isArray,lt={H:null,A:null,T:null,S:null,V:null},bv=Object.prototype.hasOwnProperty;function Gh(e,t,n,i,r,a){return n=a.ref,{$$typeof:Vh,type:e,key:t,ref:n!==void 0?n:null,props:a}}function CN(e,t){return Gh(e.type,t,void 0,void 0,void 0,e.props)}function $h(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vh}function kN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vv=/\/+/g;function Xh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?kN(""+e.key):t.toString(36)}function yv(){}function ON(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(yv,yv):(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 ks(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 Vh:case bN:s=!0;break;case cv:return s=e._init,ks(s(e._payload),t,n,i,r)}}if(s)return r=r(e),s=i===""?"."+Xh(e,0):i,gv(r)?(n="",s!=null&&(n=s.replace(vv,"$&/")+"/"),ks(r,t,n,"",function(u){return u})):r!=null&&($h(r)&&(r=CN(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(vv,"$&/")+"/")+s)),t.push(r)),1;s=0;var o=i===""?".":i+":";if(gv(e))for(var l=0;l<e.length;l++)i=e[l],a=o+Xh(i,l),s+=ks(i,t,n,a,r);else if(l=AN(e),typeof l=="function")for(e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,a=o+Xh(i,l++),s+=ks(i,t,n,a,r);else if(a==="object"){if(typeof e.then=="function")return ks(ON(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 kc(e,t,n){if(e==null)return e;var i=[],r=0;return ks(e,i,"","",function(a){return t.call(n,a,r++)}),i}function NN(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 xv=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 RN(){}Ae.Children={map:kc,forEach:function(e,t,n){kc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return kc(e,function(){t++}),t},toArray:function(e){return kc(e,function(t){return t})||[]},only:function(e){if(!$h(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ae.Component=Cs,Ae.Fragment=vN,Ae.Profiler=xN,Ae.PureComponent=Yh,Ae.StrictMode=yN,Ae.Suspense=wN,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=lt,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(e){return lt.H.useMemoCache(e)}},Ae.cache=function(e){return function(){return e.apply(null,arguments)}},Ae.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=hv({},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)!bv.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 Gh(e.type,r,void 0,void 0,a,i)},Ae.createContext=function(e){return e={$$typeof:EN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:_N,_context:e},e},Ae.createElement=function(e,t,n){var i,r={},a=null;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)bv.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 Gh(e,a,void 0,void 0,null,r)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(e){return{$$typeof:TN,render:e}},Ae.isValidElement=$h,Ae.lazy=function(e){return{$$typeof:cv,_payload:{_status:-1,_result:e},_init:NN}},Ae.memo=function(e,t){return{$$typeof:SN,type:e,compare:t===void 0?null:t}},Ae.startTransition=function(e){var t=lt.T,n={};lt.T=n;try{var i=e(),r=lt.S;r!==null&&r(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(RN,xv)}catch(a){xv(a)}finally{lt.T=t}},Ae.unstable_useCacheRefresh=function(){return lt.H.useCacheRefresh()},Ae.use=function(e){return lt.H.use(e)},Ae.useActionState=function(e,t,n){return lt.H.useActionState(e,t,n)},Ae.useCallback=function(e,t){return lt.H.useCallback(e,t)},Ae.useContext=function(e){return lt.H.useContext(e)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(e,t){return lt.H.useDeferredValue(e,t)},Ae.useEffect=function(e,t,n){var i=lt.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return i.useEffect(e,t)},Ae.useId=function(){return lt.H.useId()},Ae.useImperativeHandle=function(e,t,n){return lt.H.useImperativeHandle(e,t,n)},Ae.useInsertionEffect=function(e,t){return lt.H.useInsertionEffect(e,t)},Ae.useLayoutEffect=function(e,t){return lt.H.useLayoutEffect(e,t)},Ae.useMemo=function(e,t){return lt.H.useMemo(e,t)},Ae.useOptimistic=function(e,t){return lt.H.useOptimistic(e,t)},Ae.useReducer=function(e,t,n){return lt.H.useReducer(e,t,n)},Ae.useRef=function(e){return lt.H.useRef(e)},Ae.useState=function(e){return lt.H.useState(e)},Ae.useSyncExternalStore=function(e,t,n){return lt.H.useSyncExternalStore(e,t,n)},Ae.useTransition=function(){return lt.H.useTransition()},Ae.version="19.1.1",uv.exports=Ae;var E=uv.exports;const pn=hl(E),_v=hN({__proto__:null,default:pn},[E]);function _n(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 Ev(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Tv(...e){return t=>{let n=!1;const i=e.map(r=>{const a=Ev(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():Ev(e[r],null)}}}}function Bi(...e){return E.useCallback(Tv(...e),e)}function Oc(e,t=[]){let n=[];function i(a,s){const o=E.createContext(s),l=n.length;n=[...n,s];const u=d=>{var m;const{scope:f,children:h,...g}=d,b=((m=f==null?void 0:f[e])==null?void 0:m[l])||o,_=E.useMemo(()=>g,Object.values(g));return y.jsx(b.Provider,{value:_,children:h})};u.displayName=a+"Provider";function c(d,f){var b;const h=((b=f==null?void 0:f[e])==null?void 0:b[l])||o,g=E.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` 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,DN(r,...t)]}function DN(...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 d=l(a)[`__scope${u}`];return{...o,...d}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var wv={exports:{}},mn={};/**
18
18
  * @license React
19
19
  * react-dom.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var MN=_;function Sv(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 Ur(){}var gn={d:{f:Ur,r:function(){throw Error(Sv(522))},D:Ur,C:Ur,L:Ur,m:Ur,X:Ur,S:Ur,M:Ur},p:0,findDOMNode:null},LN=Symbol.for("react.portal");function IN(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:LN,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var pl=MN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Nc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=gn,mn.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(Sv(299));return IN(e,t,null,n)},mn.flushSync=function(e){var t=pl.T,n=gn.p;try{if(pl.T=null,gn.p=2,e)return e()}finally{pl.T=t,gn.p=n,gn.d.f()}},mn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,gn.d.C(e,t))},mn.prefetchDNS=function(e){typeof e=="string"&&gn.d.D(e)},mn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Nc(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?gn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:r,fetchPriority:a}):n==="script"&&gn.d.X(e,{crossOrigin:i,integrity:r,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}},mn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Nc(t.as,t.crossOrigin);gn.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&&gn.d.M(e)},mn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Nc(n,t.crossOrigin);gn.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})}},mn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Nc(t.as,t.crossOrigin);gn.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 gn.d.m(e)},mn.requestFormReset=function(e){gn.d.r(e)},mn.unstable_batchedUpdates=function(e,t){return e(t)},mn.useFormState=function(e,t,n){return pl.H.useFormState(e,t,n)},mn.useFormStatus=function(){return pl.H.useHostTransitionStatus()},mn.version="19.1.1";function Av(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Av)}catch(e){console.error(e)}}Av(),wv.exports=mn;var ml=wv.exports;function Kh(e){const t=BN(e),n=_.forwardRef((i,r)=>{const{children:a,...s}=i,o=_.Children.toArray(a),l=o.find(zN);if(l){const u=l.props.children,c=o.map(d=>d===l?_.Children.count(u)>1?_.Children.only(null):_.isValidElement(u)?u.props.children:null:d);return y.jsx(t,{...s,ref:r,children:_.isValidElement(u)?_.cloneElement(u,void 0,c):null})}return y.jsx(t,{...s,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}var PN=Kh("Slot");function BN(e){const t=_.forwardRef((n,i)=>{const{children:r,...a}=n;if(_.isValidElement(r)){const s=HN(r),o=UN(a,r.props);return r.type!==_.Fragment&&(o.ref=i?Tv(i,s):s),_.cloneElement(r,o)}return _.Children.count(r)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Cv=Symbol("radix.slottable");function jN(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Cv,t}function zN(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Cv}function UN(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 HN(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 FN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ln=FN.reduce((e,t)=>{const n=Kh(`Primitive.${t}`),i=_.forwardRef((r,a)=>{const{asChild:s,...o}=r,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function VN(e,t){e&&ml.flushSync(()=>e.dispatchEvent(t))}function Ia(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function YN(e,t=globalThis==null?void 0:globalThis.document){const n=Ia(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 qN="DismissableLayer",Qh="dismissableLayer.update",GN="dismissableLayer.pointerDownOutside",$N="dismissableLayer.focusOutside",kv,Ov=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wh=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...l}=e,u=_.useContext(Ov),[c,d]=_.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=_.useState({}),g=Bi(t,D=>d(D)),b=Array.from(u.layers),[E]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(E),v=c?b.indexOf(c):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,T=v>=m,S=QN(D=>{const L=D.target,B=[...u.branches].some(O=>O.contains(L));!T||B||(r==null||r(D),s==null||s(D),D.defaultPrevented||o==null||o())},f),A=WN(D=>{const L=D.target;[...u.branches].some(O=>O.contains(L))||(a==null||a(D),s==null||s(D),D.defaultPrevented||o==null||o())},f);return YN(D=>{v===u.layers.size-1&&(i==null||i(D),!D.defaultPrevented&&o&&(D.preventDefault(),o()))},f),_.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(kv=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Nv(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=kv)}},[c,f,n,u]),_.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Nv())},[c,u]),_.useEffect(()=>{const D=()=>h({});return document.addEventListener(Qh,D),()=>document.removeEventListener(Qh,D)},[]),y.jsx(Ln.div,{...l,ref:g,style:{pointerEvents:x?T?"auto":"none":void 0,...e.style},onFocusCapture:_n(e.onFocusCapture,A.onFocusCapture),onBlurCapture:_n(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:_n(e.onPointerDownCapture,S.onPointerDownCapture)})});Wh.displayName=qN;var XN="DismissableLayerBranch",KN=_.forwardRef((e,t)=>{const n=_.useContext(Ov),i=_.useRef(null),r=Bi(t,i);return _.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),y.jsx(Ln.div,{...e,ref:r})});KN.displayName=XN;function QN(e,t=globalThis==null?void 0:globalThis.document){const n=Ia(e),i=_.useRef(!1),r=_.useRef(()=>{});return _.useEffect(()=>{const a=o=>{if(o.target&&!i.current){let l=function(){Rv(GN,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 WN(e,t=globalThis==null?void 0:globalThis.document){const n=Ia(e),i=_.useRef(!1);return _.useEffect(()=>{const r=a=>{a.target&&!i.current&&Rv($N,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 Nv(){const e=new CustomEvent(Qh);document.dispatchEvent(e)}function Rv(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?VN(r,a):r.dispatchEvent(a)}var Zh=0;function ZN(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Dv()),document.body.insertAdjacentElement("beforeend",e[1]??Dv()),Zh++,()=>{Zh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Zh--}},[])}function Dv(){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 Jh="focusScope.autoFocusOnMount",ep="focusScope.autoFocusOnUnmount",Mv={bubbles:!1,cancelable:!0},JN="FocusScope",Lv=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...s}=e,[o,l]=_.useState(null),u=Ia(r),c=Ia(a),d=_.useRef(null),f=Bi(t,b=>l(b)),h=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(i){let b=function(x){if(h.paused||!o)return;const T=x.target;o.contains(T)?d.current=T:Hr(d.current,{select:!0})},E=function(x){if(h.paused||!o)return;const T=x.relatedTarget;T!==null&&(o.contains(T)||Hr(d.current,{select:!0}))},m=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Hr(o)};document.addEventListener("focusin",b),document.addEventListener("focusout",E);const v=new MutationObserver(m);return o&&v.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",E),v.disconnect()}}},[i,o,h.paused]),_.useEffect(()=>{if(o){Bv.add(h);const b=document.activeElement;if(!o.contains(b)){const m=new CustomEvent(Jh,Mv);o.addEventListener(Jh,u),o.dispatchEvent(m),m.defaultPrevented||(e4(a4(Iv(o)),{select:!0}),document.activeElement===b&&Hr(o))}return()=>{o.removeEventListener(Jh,u),setTimeout(()=>{const m=new CustomEvent(ep,Mv);o.addEventListener(ep,c),o.dispatchEvent(m),m.defaultPrevented||Hr(b??document.body,{select:!0}),o.removeEventListener(ep,c),Bv.remove(h)},0)}}},[o,u,c,h]);const g=_.useCallback(b=>{if(!n&&!i||h.paused)return;const E=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,m=document.activeElement;if(E&&m){const v=b.currentTarget,[x,T]=t4(v);x&&T?!b.shiftKey&&m===T?(b.preventDefault(),n&&Hr(x,{select:!0})):b.shiftKey&&m===x&&(b.preventDefault(),n&&Hr(T,{select:!0})):m===v&&b.preventDefault()}},[n,i,h.paused]);return y.jsx(Ln.div,{tabIndex:-1,...s,ref:f,onKeyDown:g})});Lv.displayName=JN;function e4(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Hr(i,{select:t}),document.activeElement!==n)return}function t4(e){const t=Iv(e),n=Pv(t,e),i=Pv(t.reverse(),e);return[n,i]}function Iv(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 Pv(e,t){for(const n of e)if(!n4(n,{upTo:t}))return n}function n4(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 i4(e){return e instanceof HTMLInputElement&&"select"in e}function Hr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&i4(e)&&t&&e.select()}}var Bv=r4();function r4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jv(e,t),e.unshift(t)},remove(t){var n;e=jv(e,t),(n=e[0])==null||n.resume()}}}function jv(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function a4(e){return e.filter(t=>t.tagName!=="A")}var ji=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},s4=_v[" useId ".trim().toString()]||(()=>{}),o4=0;function zv(e){const[t,n]=_.useState(s4());return ji(()=>{n(i=>i??String(o4++))},[e]),e||(t?`radix-${t}`:"")}const l4=["top","right","bottom","left"],Fr=Math.min,In=Math.max,Rc=Math.round,Dc=Math.floor,zi=e=>({x:e,y:e}),u4={left:"right",right:"left",bottom:"top",top:"bottom"},c4={start:"end",end:"start"};function tp(e,t,n){return In(e,Fr(t,n))}function or(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function Os(e){return e.split("-")[1]}function np(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}const d4=new Set(["top","bottom"]);function Ui(e){return d4.has(lr(e))?"y":"x"}function rp(e){return np(Ui(e))}function f4(e,t,n){n===void 0&&(n=!1);const i=Os(e),r=rp(e),a=ip(r);let s=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Mc(s)),[s,Mc(s)]}function h4(e){const t=Mc(e);return[ap(e),t,ap(t)]}function ap(e){return e.replace(/start|end/g,t=>c4[t])}const Uv=["left","right"],Hv=["right","left"],p4=["top","bottom"],m4=["bottom","top"];function g4(e,t,n){switch(e){case"top":case"bottom":return n?t?Hv:Uv:t?Uv:Hv;case"left":case"right":return t?p4:m4;default:return[]}}function b4(e,t,n,i){const r=Os(e);let a=g4(lr(e),n==="start",i);return r&&(a=a.map(s=>s+"-"+r),t&&(a=a.concat(a.map(ap)))),a}function Mc(e){return e.replace(/left|right|bottom|top/g,t=>u4[t])}function v4(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fv(e){return typeof e!="number"?v4(e):{top:e,right:e,bottom:e,left:e}}function Lc(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 Vv(e,t,n){let{reference:i,floating:r}=e;const a=Ui(t),s=rp(t),o=ip(s),l=lr(t),u=a==="y",c=i.x+i.width/2-r.width/2,d=i.y+i.height/2-r.height/2,f=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:d};break;case"left":h={x:i.x-r.width,y:d};break;default:h={x:i.x,y:i.y}}switch(Os(t)){case"start":h[s]-=f*(n&&u?-1:1);break;case"end":h[s]+=f*(n&&u?-1:1);break}return h}const y4=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:d}=Vv(u,i,l),f=i,h={},g=0;for(let b=0;b<o.length;b++){const{name:E,fn:m}=o[b],{x:v,y:x,data:T,reset:S}=await m({x:c,y:d,initialPlacement:i,placement:f,strategy:r,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=v??c,d=x??d,h={...h,[E]:{...h[E],...T}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:c,y:d}=Vv(u,f,l)),b=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:h}};async function gl(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:d="floating",altBoundary:f=!1,padding:h=0}=or(t,e),g=Fv(h),E=o[f?d==="floating"?"reference":"floating":d],m=Lc(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(E)))==null||n?E:E.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="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)),T=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=Lc(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:x,strategy:l}):v);return{top:(m.top-S.top+g.top)/T.y,bottom:(S.bottom-m.bottom+g.bottom)/T.y,left:(m.left-S.left+g.left)/T.x,right:(S.right-m.right+g.right)/T.x}}const x4=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}=or(e,t)||{};if(u==null)return{};const d=Fv(c),f={x:n,y:i},h=rp(r),g=ip(h),b=await s.getDimensions(u),E=h==="y",m=E?"top":"left",v=E?"bottom":"right",x=E?"clientHeight":"clientWidth",T=a.reference[g]+a.reference[h]-f[h]-a.floating[g],S=f[h]-a.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let D=A?A[x]:0;(!D||!await(s.isElement==null?void 0:s.isElement(A)))&&(D=o.floating[x]||a.floating[g]);const L=T/2-S/2,B=D/2-b[g]/2-1,O=Fr(d[m],B),Y=Fr(d[v],B),U=O,re=D-b[g]-Y,ee=D/2-b[g]/2+L,Q=tp(U,ee,re),F=!l.arrow&&Os(r)!=null&&ee!==Q&&a.reference[g]/2-(ee<U?O:Y)-b[g]/2<0,V=F?ee<U?ee-U:ee-re:0;return{[h]:f[h]+V,data:{[h]:Q,centerOffset:ee-Q-V,...F&&{alignmentOffset:V}},reset:F}}}),_4=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:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...E}=or(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const m=lr(r),v=Ui(o),x=lr(o)===o,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(x||!b?[Mc(o)]:h4(o)),A=g!=="none";!f&&A&&S.push(...b4(o,b,g,T));const D=[o,...S],L=await gl(t,E),B=[];let O=((i=a.flip)==null?void 0:i.overflows)||[];if(c&&B.push(L[m]),d){const ee=f4(r,s,T);B.push(L[ee[0]],L[ee[1]])}if(O=[...O,{placement:r,overflows:B}],!B.every(ee=>ee<=0)){var Y,U;const ee=(((Y=a.flip)==null?void 0:Y.index)||0)+1,Q=D[ee];if(Q&&(!(d==="alignment"?v!==Ui(Q):!1)||O.every(H=>Ui(H.placement)===v?H.overflows[0]>0:!0)))return{data:{index:ee,overflows:O},reset:{placement:Q}};let F=(U=O.filter(V=>V.overflows[0]<=0).sort((V,H)=>V.overflows[1]-H.overflows[1])[0])==null?void 0:U.placement;if(!F)switch(h){case"bestFit":{var re;const V=(re=O.filter(H=>{if(A){const te=Ui(H.placement);return te===v||te==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(te=>te>0).reduce((te,N)=>te+N,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 Yv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qv(e){return l4.some(t=>e[t]>=0)}const E4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=or(e,t);switch(i){case"referenceHidden":{const a=await gl(t,{...r,elementContext:"reference"}),s=Yv(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:qv(s)}}}case"escaped":{const a=await gl(t,{...r,altBoundary:!0}),s=Yv(a,n.floating);return{data:{escapedOffsets:s,escaped:qv(s)}}}default:return{}}}}},Gv=new Set(["left","top"]);async function T4(e,t){const{placement:n,platform:i,elements:r}=e,a=await(i.isRTL==null?void 0:i.isRTL(r.floating)),s=lr(n),o=Os(n),l=Ui(n)==="y",u=Gv.has(s)?-1:1,c=a&&l?-1:1,d=or(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&typeof g=="number"&&(h=o==="end"?g*-1:g),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const w4=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 T4(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}}}}},S4=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:E=>{let{x:m,y:v}=E;return{x:m,y:v}}},...l}=or(e,t),u={x:n,y:i},c=await gl(t,l),d=Ui(lr(r)),f=np(d);let h=u[f],g=u[d];if(a){const E=f==="y"?"top":"left",m=f==="y"?"bottom":"right",v=h+c[E],x=h-c[m];h=tp(v,h,x)}if(s){const E=d==="y"?"top":"left",m=d==="y"?"bottom":"right",v=g+c[E],x=g-c[m];g=tp(v,g,x)}const b=o.fn({...t,[f]:h,[d]:g});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[f]:a,[d]:s}}}}}},A4=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}=or(e,t),c={x:n,y:i},d=Ui(r),f=np(d);let h=c[f],g=c[d];const b=or(o,t),E=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const x=f==="y"?"height":"width",T=a.reference[f]-a.floating[x]+E.mainAxis,S=a.reference[f]+a.reference[x]-E.mainAxis;h<T?h=T:h>S&&(h=S)}if(u){var m,v;const x=f==="y"?"width":"height",T=Gv.has(lr(r)),S=a.reference[d]-a.floating[x]+(T&&((m=s.offset)==null?void 0:m[d])||0)+(T?0:E.crossAxis),A=a.reference[d]+a.reference[x]+(T?0:((v=s.offset)==null?void 0:v[d])||0)-(T?E.crossAxis:0);g<S?g=S:g>A&&(g=A)}return{[f]:h,[d]:g}}}},C4=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}=or(e,t),c=await gl(t,u),d=lr(r),f=Os(r),h=Ui(r)==="y",{width:g,height:b}=a.floating;let E,m;d==="top"||d==="bottom"?(E=d,m=f===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(m=d,E=f==="end"?"top":"bottom");const v=b-c.top-c.bottom,x=g-c.left-c.right,T=Fr(b-c[E],v),S=Fr(g-c[m],x),A=!t.middlewareData.shift;let D=T,L=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=x),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(D=v),A&&!f){const O=In(c.left,0),Y=In(c.right,0),U=In(c.top,0),re=In(c.bottom,0);h?L=g-2*(O!==0||Y!==0?O+Y:In(c.left,c.right)):D=b-2*(U!==0||re!==0?U+re:In(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 Ic(){return typeof window<"u"}function Ns(e){return $v(e)?(e.nodeName||"").toLowerCase():"#document"}function Pn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hi(e){var t;return(t=($v(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $v(e){return Ic()?e instanceof Node||e instanceof Pn(e).Node:!1}function Ei(e){return Ic()?e instanceof Element||e instanceof Pn(e).Element:!1}function Fi(e){return Ic()?e instanceof HTMLElement||e instanceof Pn(e).HTMLElement:!1}function Xv(e){return!Ic()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pn(e).ShadowRoot}const k4=new Set(["inline","contents"]);function bl(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Ti(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!k4.has(r)}const O4=new Set(["table","td","th"]);function N4(e){return O4.has(Ns(e))}const R4=[":popover-open",":modal"];function Pc(e){return R4.some(t=>{try{return e.matches(t)}catch{return!1}})}const D4=["transform","translate","scale","rotate","perspective"],M4=["transform","translate","scale","rotate","perspective","filter"],L4=["paint","layout","strict","content"];function sp(e){const t=op(),n=Ei(e)?Ti(e):e;return D4.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)||M4.some(i=>(n.willChange||"").includes(i))||L4.some(i=>(n.contain||"").includes(i))}function I4(e){let t=Vr(e);for(;Fi(t)&&!Rs(t);){if(sp(t))return t;if(Pc(t))return null;t=Vr(t)}return null}function op(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const P4=new Set(["html","body","#document"]);function Rs(e){return P4.has(Ns(e))}function Ti(e){return Pn(e).getComputedStyle(e)}function Bc(e){return Ei(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vr(e){if(Ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xv(e)&&e.host||Hi(e);return Xv(t)?t.host:t}function Kv(e){const t=Vr(e);return Rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fi(t)&&bl(t)?t:Kv(t)}function vl(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Kv(e),a=r===((i=e.ownerDocument)==null?void 0:i.body),s=Pn(r);if(a){const o=lp(s);return t.concat(s,s.visualViewport||[],bl(r)?r:[],o&&n?vl(o):[])}return t.concat(r,vl(r,[],n))}function lp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qv(e){const t=Ti(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Fi(e),a=r?e.offsetWidth:n,s=r?e.offsetHeight:i,o=Rc(n)!==a||Rc(i)!==s;return o&&(n=a,i=s),{width:n,height:i,$:o}}function up(e){return Ei(e)?e:e.contextElement}function Ds(e){const t=up(e);if(!Fi(t))return zi(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:a}=Qv(t);let s=(a?Rc(n.width):n.width)/i,o=(a?Rc(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const B4=zi(0);function Wv(e){const t=Pn(e);return!op()||!t.visualViewport?B4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function j4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pn(e)?!1:t}function Pa(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=up(e);let s=zi(1);t&&(i?Ei(i)&&(s=Ds(i)):s=Ds(e));const o=j4(a,n,i)?Wv(a):zi(0);let l=(r.left+o.x)/s.x,u=(r.top+o.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(a){const f=Pn(a),h=i&&Ei(i)?Pn(i):i;let g=f,b=lp(g);for(;b&&i&&h!==g;){const E=Ds(b),m=b.getBoundingClientRect(),v=Ti(b),x=m.left+(b.clientLeft+parseFloat(v.paddingLeft))*E.x,T=m.top+(b.clientTop+parseFloat(v.paddingTop))*E.y;l*=E.x,u*=E.y,c*=E.x,d*=E.y,l+=x,u+=T,g=Pn(b),b=lp(g)}}return Lc({width:c,height:d,x:l,y:u})}function cp(e,t){const n=Bc(e).scrollLeft;return t?t.left+n:Pa(Hi(e)).left+n}function Zv(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=i.left+t.scrollLeft-(n?0:cp(e,i)),a=i.top+t.scrollTop;return{x:r,y:a}}function z4(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const a=r==="fixed",s=Hi(i),o=t?Pc(t.floating):!1;if(i===s||o&&a)return n;let l={scrollLeft:0,scrollTop:0},u=zi(1);const c=zi(0),d=Fi(i);if((d||!d&&!a)&&((Ns(i)!=="body"||bl(s))&&(l=Bc(i)),Fi(i))){const h=Pa(i);u=Ds(i),c.x=h.x+i.clientLeft,c.y=h.y+i.clientTop}const f=s&&!d&&!a?Zv(s,l,!0):zi(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function U4(e){return Array.from(e.getClientRects())}function H4(e){const t=Hi(e),n=Bc(e),i=e.ownerDocument.body,r=In(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=In(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+cp(e);const o=-n.scrollTop;return Ti(i).direction==="rtl"&&(s+=In(t.clientWidth,i.clientWidth)-r),{width:r,height:a,x:s,y:o}}function F4(e,t){const n=Pn(e),i=Hi(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=op();(!u||u&&t==="fixed")&&(o=r.offsetLeft,l=r.offsetTop)}return{width:a,height:s,x:o,y:l}}const V4=new Set(["absolute","fixed"]);function Y4(e,t){const n=Pa(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,a=Fi(e)?Ds(e):zi(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 Jv(e,t,n){let i;if(t==="viewport")i=F4(e,n);else if(t==="document")i=H4(Hi(e));else if(Ei(t))i=Y4(t,n);else{const r=Wv(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Lc(i)}function ey(e,t){const n=Vr(e);return n===t||!Ei(n)||Rs(n)?!1:Ti(n).position==="fixed"||ey(n,t)}function q4(e,t){const n=t.get(e);if(n)return n;let i=vl(e,[],!1).filter(o=>Ei(o)&&Ns(o)!=="body"),r=null;const a=Ti(e).position==="fixed";let s=a?Vr(e):e;for(;Ei(s)&&!Rs(s);){const o=Ti(s),l=sp(s);!l&&o.position==="fixed"&&(r=null),(a?!l&&!r:!l&&o.position==="static"&&!!r&&V4.has(r.position)||bl(s)&&!l&&ey(e,s))?i=i.filter(c=>c!==s):r=o,s=Vr(s)}return t.set(e,i),i}function G4(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const s=[...n==="clippingAncestors"?Pc(t)?[]:q4(t,this._c):[].concat(n),i],o=s[0],l=s.reduce((u,c)=>{const d=Jv(t,c,r);return u.top=In(d.top,u.top),u.right=Fr(d.right,u.right),u.bottom=Fr(d.bottom,u.bottom),u.left=In(d.left,u.left),u},Jv(t,o,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function $4(e){const{width:t,height:n}=Qv(e);return{width:t,height:n}}function X4(e,t,n){const i=Fi(t),r=Hi(t),a=n==="fixed",s=Pa(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const l=zi(0);function u(){l.x=cp(r)}if(i||!i&&!a)if((Ns(t)!=="body"||bl(r))&&(o=Bc(t)),i){const h=Pa(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?Zv(r,o):zi(0),d=s.left+o.scrollLeft-l.x-c.x,f=s.top+o.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function dp(e){return Ti(e).position==="static"}function ty(e,t){if(!Fi(e)||Ti(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Hi(e)===n&&(n=n.ownerDocument.body),n}function ny(e,t){const n=Pn(e);if(Pc(e))return n;if(!Fi(e)){let r=Vr(e);for(;r&&!Rs(r);){if(Ei(r)&&!dp(r))return r;r=Vr(r)}return n}let i=ty(e,t);for(;i&&N4(i)&&dp(i);)i=ty(i,t);return i&&Rs(i)&&dp(i)&&!sp(i)?n:i||I4(e)||n}const K4=async function(e){const t=this.getOffsetParent||ny,n=this.getDimensions,i=await n(e.floating);return{reference:X4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Q4(e){return Ti(e).direction==="rtl"}const W4={convertOffsetParentRelativeRectToViewportRelativeRect:z4,getDocumentElement:Hi,getClippingRect:G4,getOffsetParent:ny,getElementRects:K4,getClientRects:U4,getDimensions:$4,getScale:Ds,isElement:Ei,isRTL:Q4};function iy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Z4(e,t){let n=null,i;const r=Hi(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:d,width:f,height:h}=u;if(o||t(),!f||!h)return;const g=Dc(d),b=Dc(r.clientWidth-(c+f)),E=Dc(r.clientHeight-(d+h)),m=Dc(c),x={rootMargin:-g+"px "+-b+"px "+-E+"px "+-m+"px",threshold:In(0,Fr(1,l))||1};let T=!0;function S(A){const D=A[0].intersectionRatio;if(D!==l){if(!T)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!iy(u,e.getBoundingClientRect())&&s(),T=!1}try{n=new IntersectionObserver(S,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return s(!0),a}function J4(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=up(e),c=r||a?[...u?vl(u):[],...vl(t)]:[];c.forEach(m=>{r&&m.addEventListener("scroll",n,{passive:!0}),a&&m.addEventListener("resize",n)});const d=u&&o?Z4(u,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(m=>{let[v]=m;v&&v.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,b=l?Pa(e):null;l&&E();function E(){const m=Pa(e);b&&!iy(b,m)&&n(),b=m,g=requestAnimationFrame(E)}return n(),()=>{var m;c.forEach(v=>{r&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const eR=w4,tR=S4,nR=_4,iR=C4,rR=E4,ry=x4,aR=A4,sR=(e,t,n)=>{const i=new Map,r={platform:W4,...n},a={...r.platform,_c:i};return y4(e,t,{...r,platform:a})};var oR=typeof document<"u",lR=function(){},jc=oR?_.useLayoutEffect:lR;function zc(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(!zc(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)&&!zc(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ay(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sy(e,t){const n=ay(e);return Math.round(t*n)/n}function fp(e){const t=_.useRef(e);return jc(()=>{t.current=e}),t}function uR(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,d]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=_.useState(i);zc(f,i)||h(i);const[g,b]=_.useState(null),[E,m]=_.useState(null),v=_.useCallback(H=>{H!==A.current&&(A.current=H,b(H))},[]),x=_.useCallback(H=>{H!==D.current&&(D.current=H,m(H))},[]),T=a||g,S=s||E,A=_.useRef(null),D=_.useRef(null),L=_.useRef(c),B=l!=null,O=fp(l),Y=fp(r),U=fp(u),re=_.useCallback(()=>{if(!A.current||!D.current)return;const H={placement:t,strategy:n,middleware:f};Y.current&&(H.platform=Y.current),sR(A.current,D.current,H).then(te=>{const N={...te,isPositioned:U.current!==!1};ee.current&&!zc(L.current,N)&&(L.current=N,ml.flushSync(()=>{d(N)}))})},[f,t,n,Y,U]);jc(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[u]);const ee=_.useRef(!1);jc(()=>(ee.current=!0,()=>{ee.current=!1}),[]),jc(()=>{if(T&&(A.current=T),S&&(D.current=S),T&&S){if(O.current)return O.current(T,S,re);re()}},[T,S,re,O,B]);const Q=_.useMemo(()=>({reference:A,floating:D,setReference:v,setFloating:x}),[v,x]),F=_.useMemo(()=>({reference:T,floating:S}),[T,S]),V=_.useMemo(()=>{const H={position:n,left:0,top:0};if(!F.floating)return H;const te=sy(F.floating,c.x),N=sy(F.floating,c.y);return o?{...H,transform:"translate("+te+"px, "+N+"px)",...ay(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:N}},[n,o,F.floating,c.x,c.y]);return _.useMemo(()=>({...c,update:re,refs:Q,elements:F,floatingStyles:V}),[c,re,Q,F,V])}const cR=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?ry({element:i.current,padding:r}).fn(n):{}:i?ry({element:i,padding:r}).fn(n):{}}}},dR=(e,t)=>({...eR(e),options:[e,t]}),fR=(e,t)=>({...tR(e),options:[e,t]}),hR=(e,t)=>({...aR(e),options:[e,t]}),pR=(e,t)=>({...nR(e),options:[e,t]}),mR=(e,t)=>({...iR(e),options:[e,t]}),gR=(e,t)=>({...rR(e),options:[e,t]}),bR=(e,t)=>({...cR(e),options:[e,t]});var vR="Arrow",oy=_.forwardRef((e,t)=>{const{children:n,width:i=10,height:r=5,...a}=e;return y.jsx(Ln.svg,{...a,ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});oy.displayName=vR;var yR=oy;function xR(e){const[t,n]=_.useState(void 0);return ji(()=>{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 hp="Popper",[ly,Uc]=Oc(hp),[_R,uy]=ly(hp),cy=e=>{const{__scopePopper:t,children:n}=e,[i,r]=_.useState(null);return y.jsx(_R,{scope:t,anchor:i,onAnchorChange:r,children:n})};cy.displayName=hp;var dy="PopperAnchor",fy=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...r}=e,a=uy(dy,n),s=_.useRef(null),o=Bi(t,s);return _.useEffect(()=>{a.onAnchorChange((i==null?void 0:i.current)||s.current)}),i?null:y.jsx(Ln.div,{...r,ref:o})});fy.displayName=dy;var pp="PopperContent",[ER,TR]=ly(pp),hy=_.forwardRef((e,t)=>{var dn,We,$t,Mt,Ut,Lt;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:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:g,...b}=e,E=uy(pp,n),[m,v]=_.useState(null),x=Bi(t,ae=>v(ae)),[T,S]=_.useState(null),A=xR(T),D=(A==null?void 0:A.width)??0,L=(A==null?void 0:A.height)??0,B=i+(a!=="center"?"-"+a:""),O=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},Y=Array.isArray(u)?u:[u],U=Y.length>0,re={padding:O,boundary:Y.filter(SR),altBoundary:U},{refs:ee,floatingStyles:Q,placement:F,isPositioned:V,middlewareData:H}=uR({strategy:"fixed",placement:B,whileElementsMounted:(...ae)=>J4(...ae,{animationFrame:h==="always"}),elements:{reference:E.anchor},middleware:[dR({mainAxis:r+L,alignmentAxis:s}),l&&fR({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?hR():void 0,...re}),l&&pR({...re}),mR({...re,apply:({elements:ae,rects:yi,availableWidth:Li,availableHeight:Ii})=>{const{width:nt,height:fn}=yi.reference,tn=ae.floating.style;tn.setProperty("--radix-popper-available-width",`${Li}px`),tn.setProperty("--radix-popper-available-height",`${Ii}px`),tn.setProperty("--radix-popper-anchor-width",`${nt}px`),tn.setProperty("--radix-popper-anchor-height",`${fn}px`)}}),T&&bR({element:T,padding:o}),AR({arrowWidth:D,arrowHeight:L}),f&&gR({strategy:"referenceHidden",...re})]}),[te,N]=gy(F),be=Ia(g);ji(()=>{V&&(be==null||be())},[V,be]);const tt=(dn=H.arrow)==null?void 0:dn.x,M=(We=H.arrow)==null?void 0:We.y,Be=(($t=H.arrow)==null?void 0:$t.centerOffset)!==0,[ge,je]=_.useState();return ji(()=>{m&&je(window.getComputedStyle(m).zIndex)},[m]),y.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:V?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Mt=H.transformOrigin)==null?void 0:Mt.x,(Ut=H.transformOrigin)==null?void 0:Ut.y].join(" "),...((Lt=H.hide)==null?void 0:Lt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(ER,{scope:n,placedSide:te,onArrowChange:S,arrowX:tt,arrowY:M,shouldHideArrow:Be,children:y.jsx(Ln.div,{"data-side":te,"data-align":N,...b,ref:x,style:{...b.style,animation:V?void 0:"none"}})})})});hy.displayName=pp;var py="PopperArrow",wR={top:"bottom",right:"left",bottom:"top",left:"right"},my=_.forwardRef(function(t,n){const{__scopePopper:i,...r}=t,a=TR(py,i),s=wR[a.placedSide];return y.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:y.jsx(yR,{...r,ref:n,style:{...r.style,display:"block"}})})});my.displayName=py;function SR(e){return e!==null}var AR=e=>({name:"transformOrigin",options:e,fn(t){var E,m,v;const{placement:n,rects:i,middlewareData:r}=t,s=((E=r.arrow)==null?void 0:E.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=gy(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((m=r.arrow)==null?void 0:m.x)??0)+o/2,h=(((v=r.arrow)==null?void 0:v.y)??0)+l/2;let g="",b="";return u==="bottom"?(g=s?d:`${f}px`,b=`${-l}px`):u==="top"?(g=s?d:`${f}px`,b=`${i.floating.height+l}px`):u==="right"?(g=`${-l}px`,b=s?d:`${h}px`):u==="left"&&(g=`${i.floating.width+l}px`,b=s?d:`${h}px`),{data:{x:g,y:b}}}});function gy(e){const[t,n="center"]=e.split("-");return[t,n]}var by=cy,mp=fy,vy=hy,yy=my;function CR(e,t){return _.useReducer((n,i)=>t[n][i]??n,e)}var gp=e=>{const{present:t,children:n}=e,i=kR(t),r=typeof n=="function"?n({present:i.isPresent}):_.Children.only(n),a=Bi(i.ref,OR(r));return typeof n=="function"||i.isPresent?_.cloneElement(r,{ref:a}):null};gp.displayName="Presence";function kR(e){const[t,n]=_.useState(),i=_.useRef(null),r=_.useRef(e),a=_.useRef("none"),s=e?"mounted":"unmounted",[o,l]=CR(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const u=Hc(i.current);a.current=o==="mounted"?u:"none"},[o]),ji(()=>{const u=i.current,c=r.current;if(c!==e){const f=a.current,h=Hc(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),ji(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const b=Hc(i.current).includes(h.animationName);if(h.target===t&&b&&(l("ANIMATION_END"),!r.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},f=h=>{h.target===t&&(a.current=Hc(i.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:_.useCallback(u=>{i.current=u?getComputedStyle(u):null,n(u)},[])}}function Hc(e){return(e==null?void 0:e.animationName)||"none"}function OR(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 NR=_v[" useInsertionEffect ".trim().toString()]||ji;function xy({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,a,s]=RR({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r;{const c=_.useRef(e!==void 0);_.useEffect(()=>{const d=c.current;d!==o&&console.warn(`${i} is changing from ${d?"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=_.useCallback(c=>{var d;if(o){const f=DR(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else a(c)},[o,e,a,s]);return[l,u]}function RR({defaultProp:e,onChange:t}){const[n,i]=_.useState(e),r=_.useRef(n),a=_.useRef(t);return NR(()=>{a.current=t},[t]),_.useEffect(()=>{var s;r.current!==n&&((s=a.current)==null||s.call(a,n),r.current=n)},[n,r]),[n,i,a]}function DR(e){return typeof e=="function"}var MR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ms=new WeakMap,Fc=new WeakMap,Vc={},bp=0,_y=function(e){return e&&(e.host||_y(e.parentNode))},LR=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=_y(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})},IR=function(e,t,n,i){var r=LR(t,Array.isArray(e)?e:[e]);Vc[n]||(Vc[n]=new WeakMap);var a=Vc[n],s=[],o=new Set,l=new Set(r),u=function(d){!d||o.has(d)||(o.add(d),u(d.parentNode))};r.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(o.has(f))c(f);else try{var h=f.getAttribute(i),g=h!==null&&h!=="false",b=(Ms.get(f)||0)+1,E=(a.get(f)||0)+1;Ms.set(f,b),a.set(f,E),s.push(f),b===1&&g&&Fc.set(f,!0),E===1&&f.setAttribute(n,"true"),g||f.setAttribute(i,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return c(t),o.clear(),bp++,function(){s.forEach(function(d){var f=Ms.get(d)-1,h=a.get(d)-1;Ms.set(d,f),a.set(d,h),f||(Fc.has(d)||d.removeAttribute(i),Fc.delete(d)),h||d.removeAttribute(n)}),bp--,bp||(Ms=new WeakMap,Ms=new WeakMap,Fc=new WeakMap,Vc={})}},PR=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=MR(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),IR(i,r,n,"aria-hidden")):function(){return null}},vp=function(e,t){return vp=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])},vp(e,t)};function Ey(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ni=function(){return ni=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},ni.apply(this,arguments)};function Yc(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 Ty(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 wy(e,t){return function(n,i){t(n,i,e)}}function Sy(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):{}),d,f=!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(f)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(m||null))};var E=(0,n[h])(o==="accessor"?{get:c.get,set:c.set}:c[l],g);if(o==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(d=s(E.get))&&(c.get=d),(d=s(E.set))&&(c.set=d),(d=s(E.init))&&r.unshift(d)}else(d=s(E))&&(o==="field"?r.unshift(d):c[l]=d)}u&&Object.defineProperty(u,i.name,c),f=!0}function Ay(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 Cy(e){return typeof e=="symbol"?e:"".concat(e)}function ky(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 Oy(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ur(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(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):r(c.value).then(o,l)}u((i=i.apply(e,t||[])).next())})}function Ny(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 qc=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 Ry(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qc(t,e,n)}function Gc(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 yp(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 Dy(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(yp(arguments[t]));return e}function My(){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 xp(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 Ls(e){return this instanceof Ls?(this.v=e,this):new Ls(e)}function Ly(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,d)}}function o(h,g){i[h]&&(r[h]=function(b){return new Promise(function(E,m){a.push([h,b,E,m])>1||l(h,b)})},g&&(r[h]=g(r[h])))}function l(h,g){try{u(i[h](g))}catch(b){f(a[0][3],b)}}function u(h){h.value instanceof Ls?Promise.resolve(h.value.v).then(c,d):f(a[0][2],h)}function c(h){l("next",h)}function d(h){l("throw",h)}function f(h,g){h(g),a.shift(),a.length&&l(a[0][0],a[0][1])}}function Iy(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:Ls(e[r](s)),done:!1}:a?a(s):s}:a}}function Py(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 Gc=="function"?Gc(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 By(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var BR=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},_p=function(e){return _p=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},_p(e)};function jy(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=_p(e),i=0;i<n.length;i++)n[i]!=="default"&&qc(t,e,n[i]);return BR(t,e),t}function zy(e){return e&&e.__esModule?e:{default:e}}function Uy(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 Hy(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 Fy(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 Vy(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 jR=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 Yy(e){function t(a){e.error=e.hasError?new jR(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 qy(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 zR=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Vy,get __assign(){return ni},__asyncDelegator:Iy,__asyncGenerator:Ly,__asyncValues:Py,__await:Ls,__awaiter:ur,__classPrivateFieldGet:Uy,__classPrivateFieldIn:Fy,__classPrivateFieldSet:Hy,__createBinding:qc,__decorate:Ty,__disposeResources:Yy,__esDecorate:Sy,__exportStar:Ry,__extends:Ey,__generator:Ny,__importDefault:zy,__importStar:jy,__makeTemplateObject:By,__metadata:Oy,__param:wy,__propKey:Cy,__read:yp,__rest:Yc,__rewriteRelativeImportExtension:qy,__runInitializers:Ay,__setFunctionName:ky,__spread:Dy,__spreadArray:xp,__spreadArrays:My,__values:Gc,default:{__extends:Ey,__assign:ni,__rest:Yc,__decorate:Ty,__param:wy,__esDecorate:Sy,__runInitializers:Ay,__propKey:Cy,__setFunctionName:ky,__metadata:Oy,__awaiter:ur,__generator:Ny,__createBinding:qc,__exportStar:Ry,__values:Gc,__read:yp,__spread:Dy,__spreadArrays:My,__spreadArray:xp,__await:Ls,__asyncGenerator:Ly,__asyncDelegator:Iy,__asyncValues:Py,__makeTemplateObject:By,__importStar:jy,__importDefault:zy,__classPrivateFieldGet:Uy,__classPrivateFieldSet:Hy,__classPrivateFieldIn:Fy,__addDisposableResource:Vy,__disposeResources:Yy,__rewriteRelativeImportExtension:qy}},Symbol.toStringTag,{value:"Module"}));var $c="right-scroll-bar-position",Xc="width-before-scroll-bar",UR="with-scroll-bars-hidden",HR="--removed-body-scroll-bar-size";function Ep(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function FR(e,t){var n=_.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 VR=typeof window<"u"?_.useLayoutEffect:_.useEffect,Gy=new WeakMap;function YR(e,t){var n=FR(null,function(i){return e.forEach(function(r){return Ep(r,i)})});return VR(function(){var i=Gy.get(n);if(i){var r=new Set(i),a=new Set(e),s=n.current;r.forEach(function(o){a.has(o)||Ep(o,null)}),a.forEach(function(o){r.has(o)||Ep(o,s)})}Gy.set(n,e)},[e]),n}function qR(e){return e}function GR(e,t){t===void 0&&(t=qR);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 $R(e){e===void 0&&(e={});var t=GR(null);return t.options=ni({async:!0,ssr:!1},e),t}var $y=function(e){var t=e.sideCar,n=Yc(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 _.createElement(i,ni({},n))};$y.isSideCarExport=!0;function XR(e,t){return e.useMedium(t),$y}var Xy=$R(),Tp=function(){},Kc=_.forwardRef(function(e,t){var n=_.useRef(null),i=_.useState({onScrollCapture:Tp,onWheelCapture:Tp,onTouchMoveCapture:Tp}),r=i[0],a=i[1],s=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,g=e.noIsolation,b=e.inert,E=e.allowPinchZoom,m=e.as,v=m===void 0?"div":m,x=e.gapMode,T=Yc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,A=YR([n,t]),D=ni(ni({},T),r);return _.createElement(_.Fragment,null,c&&_.createElement(S,{sideCar:Xy,removeScrollBar:u,shards:d,noRelative:h,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!E,lockRef:n,gapMode:x}),s?_.cloneElement(_.Children.only(o),ni(ni({},D),{ref:A})):_.createElement(v,ni({},D,{className:l,ref:A}),o))});Kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Kc.classNames={fullWidth:Xc,zeroRight:$c};var KR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function QR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=KR();return t&&e.setAttribute("nonce",t),e}function WR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var JR=function(){var e=0,t=null;return{add:function(n){e==0&&(t=QR())&&(WR(t,n),ZR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eD=function(){var e=JR();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ky=function(){var e=eD(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},tD={left:0,top:0,right:0,gap:0},wp=function(e){return parseInt(e||"",10)||0},nD=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[wp(n),wp(i),wp(r)]},iD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tD;var t=nD(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])}},rD=Ky(),Is="data-scroll-locked",aD=function(e,t,n,i){var r=e.left,a=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
25
+ */var MN=E;function Sv(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 Ur(){}var gn={d:{f:Ur,r:function(){throw Error(Sv(522))},D:Ur,C:Ur,L:Ur,m:Ur,X:Ur,S:Ur,M:Ur},p:0,findDOMNode:null},LN=Symbol.for("react.portal");function IN(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:LN,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var pl=MN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Nc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=gn,mn.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(Sv(299));return IN(e,t,null,n)},mn.flushSync=function(e){var t=pl.T,n=gn.p;try{if(pl.T=null,gn.p=2,e)return e()}finally{pl.T=t,gn.p=n,gn.d.f()}},mn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,gn.d.C(e,t))},mn.prefetchDNS=function(e){typeof e=="string"&&gn.d.D(e)},mn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Nc(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?gn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:r,fetchPriority:a}):n==="script"&&gn.d.X(e,{crossOrigin:i,integrity:r,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}},mn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Nc(t.as,t.crossOrigin);gn.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&&gn.d.M(e)},mn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Nc(n,t.crossOrigin);gn.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})}},mn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Nc(t.as,t.crossOrigin);gn.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 gn.d.m(e)},mn.requestFormReset=function(e){gn.d.r(e)},mn.unstable_batchedUpdates=function(e,t){return e(t)},mn.useFormState=function(e,t,n){return pl.H.useFormState(e,t,n)},mn.useFormStatus=function(){return pl.H.useHostTransitionStatus()},mn.version="19.1.1";function Av(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Av)}catch(e){console.error(e)}}Av(),wv.exports=mn;var ml=wv.exports;function Kh(e){const t=BN(e),n=E.forwardRef((i,r)=>{const{children:a,...s}=i,o=E.Children.toArray(a),l=o.find(zN);if(l){const u=l.props.children,c=o.map(d=>d===l?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:d);return y.jsx(t,{...s,ref:r,children:E.isValidElement(u)?E.cloneElement(u,void 0,c):null})}return y.jsx(t,{...s,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}var PN=Kh("Slot");function BN(e){const t=E.forwardRef((n,i)=>{const{children:r,...a}=n;if(E.isValidElement(r)){const s=HN(r),o=UN(a,r.props);return r.type!==E.Fragment&&(o.ref=i?Tv(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 Cv=Symbol("radix.slottable");function jN(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Cv,t}function zN(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Cv}function UN(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 HN(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 FN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ln=FN.reduce((e,t)=>{const n=Kh(`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),y.jsx(l,{...o,ref:a})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function VN(e,t){e&&ml.flushSync(()=>e.dispatchEvent(t))}function Ia(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 YN(e,t=globalThis==null?void 0:globalThis.document){const n=Ia(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 qN="DismissableLayer",Qh="dismissableLayer.update",GN="dismissableLayer.pointerDownOutside",$N="dismissableLayer.focusOutside",kv,Ov=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wh=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...l}=e,u=E.useContext(Ov),[c,d]=E.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=E.useState({}),g=Bi(t,D=>d(D)),b=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(_),v=c?b.indexOf(c):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,T=v>=m,S=QN(D=>{const L=D.target,B=[...u.branches].some(O=>O.contains(L));!T||B||(r==null||r(D),s==null||s(D),D.defaultPrevented||o==null||o())},f),A=WN(D=>{const L=D.target;[...u.branches].some(O=>O.contains(L))||(a==null||a(D),s==null||s(D),D.defaultPrevented||o==null||o())},f);return YN(D=>{v===u.layers.size-1&&(i==null||i(D),!D.defaultPrevented&&o&&(D.preventDefault(),o()))},f),E.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(kv=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Nv(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=kv)}},[c,f,n,u]),E.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Nv())},[c,u]),E.useEffect(()=>{const D=()=>h({});return document.addEventListener(Qh,D),()=>document.removeEventListener(Qh,D)},[]),y.jsx(Ln.div,{...l,ref:g,style:{pointerEvents:x?T?"auto":"none":void 0,...e.style},onFocusCapture:_n(e.onFocusCapture,A.onFocusCapture),onBlurCapture:_n(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:_n(e.onPointerDownCapture,S.onPointerDownCapture)})});Wh.displayName=qN;var XN="DismissableLayerBranch",KN=E.forwardRef((e,t)=>{const n=E.useContext(Ov),i=E.useRef(null),r=Bi(t,i);return E.useEffect(()=>{const a=i.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),y.jsx(Ln.div,{...e,ref:r})});KN.displayName=XN;function QN(e,t=globalThis==null?void 0:globalThis.document){const n=Ia(e),i=E.useRef(!1),r=E.useRef(()=>{});return E.useEffect(()=>{const a=o=>{if(o.target&&!i.current){let l=function(){Rv(GN,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 WN(e,t=globalThis==null?void 0:globalThis.document){const n=Ia(e),i=E.useRef(!1);return E.useEffect(()=>{const r=a=>{a.target&&!i.current&&Rv($N,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 Nv(){const e=new CustomEvent(Qh);document.dispatchEvent(e)}function Rv(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?VN(r,a):r.dispatchEvent(a)}var Zh=0;function ZN(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Dv()),document.body.insertAdjacentElement("beforeend",e[1]??Dv()),Zh++,()=>{Zh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Zh--}},[])}function Dv(){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 Jh="focusScope.autoFocusOnMount",ep="focusScope.autoFocusOnUnmount",Mv={bubbles:!1,cancelable:!0},JN="FocusScope",Lv=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...s}=e,[o,l]=E.useState(null),u=Ia(r),c=Ia(a),d=E.useRef(null),f=Bi(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 T=x.target;o.contains(T)?d.current=T:Hr(d.current,{select:!0})},_=function(x){if(h.paused||!o)return;const T=x.relatedTarget;T!==null&&(o.contains(T)||Hr(d.current,{select:!0}))},m=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Hr(o)};document.addEventListener("focusin",b),document.addEventListener("focusout",_);const v=new MutationObserver(m);return o&&v.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",_),v.disconnect()}}},[i,o,h.paused]),E.useEffect(()=>{if(o){Bv.add(h);const b=document.activeElement;if(!o.contains(b)){const m=new CustomEvent(Jh,Mv);o.addEventListener(Jh,u),o.dispatchEvent(m),m.defaultPrevented||(e4(a4(Iv(o)),{select:!0}),document.activeElement===b&&Hr(o))}return()=>{o.removeEventListener(Jh,u),setTimeout(()=>{const m=new CustomEvent(ep,Mv);o.addEventListener(ep,c),o.dispatchEvent(m),m.defaultPrevented||Hr(b??document.body,{select:!0}),o.removeEventListener(ep,c),Bv.remove(h)},0)}}},[o,u,c,h]);const g=E.useCallback(b=>{if(!n&&!i||h.paused)return;const _=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,m=document.activeElement;if(_&&m){const v=b.currentTarget,[x,T]=t4(v);x&&T?!b.shiftKey&&m===T?(b.preventDefault(),n&&Hr(x,{select:!0})):b.shiftKey&&m===x&&(b.preventDefault(),n&&Hr(T,{select:!0})):m===v&&b.preventDefault()}},[n,i,h.paused]);return y.jsx(Ln.div,{tabIndex:-1,...s,ref:f,onKeyDown:g})});Lv.displayName=JN;function e4(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Hr(i,{select:t}),document.activeElement!==n)return}function t4(e){const t=Iv(e),n=Pv(t,e),i=Pv(t.reverse(),e);return[n,i]}function Iv(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 Pv(e,t){for(const n of e)if(!n4(n,{upTo:t}))return n}function n4(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 i4(e){return e instanceof HTMLInputElement&&"select"in e}function Hr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&i4(e)&&t&&e.select()}}var Bv=r4();function r4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jv(e,t),e.unshift(t)},remove(t){var n;e=jv(e,t),(n=e[0])==null||n.resume()}}}function jv(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function a4(e){return e.filter(t=>t.tagName!=="A")}var ji=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},s4=_v[" useId ".trim().toString()]||(()=>{}),o4=0;function zv(e){const[t,n]=E.useState(s4());return ji(()=>{n(i=>i??String(o4++))},[e]),e||(t?`radix-${t}`:"")}const l4=["top","right","bottom","left"],Fr=Math.min,In=Math.max,Rc=Math.round,Dc=Math.floor,zi=e=>({x:e,y:e}),u4={left:"right",right:"left",bottom:"top",top:"bottom"},c4={start:"end",end:"start"};function tp(e,t,n){return In(e,Fr(t,n))}function or(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function Os(e){return e.split("-")[1]}function np(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}const d4=new Set(["top","bottom"]);function Ui(e){return d4.has(lr(e))?"y":"x"}function rp(e){return np(Ui(e))}function f4(e,t,n){n===void 0&&(n=!1);const i=Os(e),r=rp(e),a=ip(r);let s=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Mc(s)),[s,Mc(s)]}function h4(e){const t=Mc(e);return[ap(e),t,ap(t)]}function ap(e){return e.replace(/start|end/g,t=>c4[t])}const Uv=["left","right"],Hv=["right","left"],p4=["top","bottom"],m4=["bottom","top"];function g4(e,t,n){switch(e){case"top":case"bottom":return n?t?Hv:Uv:t?Uv:Hv;case"left":case"right":return t?p4:m4;default:return[]}}function b4(e,t,n,i){const r=Os(e);let a=g4(lr(e),n==="start",i);return r&&(a=a.map(s=>s+"-"+r),t&&(a=a.concat(a.map(ap)))),a}function Mc(e){return e.replace(/left|right|bottom|top/g,t=>u4[t])}function v4(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fv(e){return typeof e!="number"?v4(e):{top:e,right:e,bottom:e,left:e}}function Lc(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 Vv(e,t,n){let{reference:i,floating:r}=e;const a=Ui(t),s=rp(t),o=ip(s),l=lr(t),u=a==="y",c=i.x+i.width/2-r.width/2,d=i.y+i.height/2-r.height/2,f=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:d};break;case"left":h={x:i.x-r.width,y:d};break;default:h={x:i.x,y:i.y}}switch(Os(t)){case"start":h[s]-=f*(n&&u?-1:1);break;case"end":h[s]+=f*(n&&u?-1:1);break}return h}const y4=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:d}=Vv(u,i,l),f=i,h={},g=0;for(let b=0;b<o.length;b++){const{name:_,fn:m}=o[b],{x:v,y:x,data:T,reset:S}=await m({x:c,y:d,initialPlacement:i,placement:f,strategy:r,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=v??c,d=x??d,h={...h,[_]:{...h[_],...T}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:c,y:d}=Vv(u,f,l)),b=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:h}};async function gl(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:d="floating",altBoundary:f=!1,padding:h=0}=or(t,e),g=Fv(h),_=o[f?d==="floating"?"reference":"floating":d],m=Lc(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(_)))==null||n?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="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)),T=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=Lc(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:x,strategy:l}):v);return{top:(m.top-S.top+g.top)/T.y,bottom:(S.bottom-m.bottom+g.bottom)/T.y,left:(m.left-S.left+g.left)/T.x,right:(S.right-m.right+g.right)/T.x}}const x4=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}=or(e,t)||{};if(u==null)return{};const d=Fv(c),f={x:n,y:i},h=rp(r),g=ip(h),b=await s.getDimensions(u),_=h==="y",m=_?"top":"left",v=_?"bottom":"right",x=_?"clientHeight":"clientWidth",T=a.reference[g]+a.reference[h]-f[h]-a.floating[g],S=f[h]-a.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let D=A?A[x]:0;(!D||!await(s.isElement==null?void 0:s.isElement(A)))&&(D=o.floating[x]||a.floating[g]);const L=T/2-S/2,B=D/2-b[g]/2-1,O=Fr(d[m],B),Y=Fr(d[v],B),U=O,re=D-b[g]-Y,ee=D/2-b[g]/2+L,Q=tp(U,ee,re),F=!l.arrow&&Os(r)!=null&&ee!==Q&&a.reference[g]/2-(ee<U?O:Y)-b[g]/2<0,V=F?ee<U?ee-U:ee-re:0;return{[h]:f[h]+V,data:{[h]:Q,centerOffset:ee-Q-V,...F&&{alignmentOffset:V}},reset:F}}}),_4=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:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,..._}=or(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const m=lr(r),v=Ui(o),x=lr(o)===o,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(x||!b?[Mc(o)]:h4(o)),A=g!=="none";!f&&A&&S.push(...b4(o,b,g,T));const D=[o,...S],L=await gl(t,_),B=[];let O=((i=a.flip)==null?void 0:i.overflows)||[];if(c&&B.push(L[m]),d){const ee=f4(r,s,T);B.push(L[ee[0]],L[ee[1]])}if(O=[...O,{placement:r,overflows:B}],!B.every(ee=>ee<=0)){var Y,U;const ee=(((Y=a.flip)==null?void 0:Y.index)||0)+1,Q=D[ee];if(Q&&(!(d==="alignment"?v!==Ui(Q):!1)||O.every(H=>Ui(H.placement)===v?H.overflows[0]>0:!0)))return{data:{index:ee,overflows:O},reset:{placement:Q}};let F=(U=O.filter(V=>V.overflows[0]<=0).sort((V,H)=>V.overflows[1]-H.overflows[1])[0])==null?void 0:U.placement;if(!F)switch(h){case"bestFit":{var re;const V=(re=O.filter(H=>{if(A){const te=Ui(H.placement);return te===v||te==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(te=>te>0).reduce((te,N)=>te+N,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 Yv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qv(e){return l4.some(t=>e[t]>=0)}const E4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=or(e,t);switch(i){case"referenceHidden":{const a=await gl(t,{...r,elementContext:"reference"}),s=Yv(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:qv(s)}}}case"escaped":{const a=await gl(t,{...r,altBoundary:!0}),s=Yv(a,n.floating);return{data:{escapedOffsets:s,escaped:qv(s)}}}default:return{}}}}},Gv=new Set(["left","top"]);async function T4(e,t){const{placement:n,platform:i,elements:r}=e,a=await(i.isRTL==null?void 0:i.isRTL(r.floating)),s=lr(n),o=Os(n),l=Ui(n)==="y",u=Gv.has(s)?-1:1,c=a&&l?-1:1,d=or(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&typeof g=="number"&&(h=o==="end"?g*-1:g),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const w4=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 T4(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}}}}},S4=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:_=>{let{x:m,y:v}=_;return{x:m,y:v}}},...l}=or(e,t),u={x:n,y:i},c=await gl(t,l),d=Ui(lr(r)),f=np(d);let h=u[f],g=u[d];if(a){const _=f==="y"?"top":"left",m=f==="y"?"bottom":"right",v=h+c[_],x=h-c[m];h=tp(v,h,x)}if(s){const _=d==="y"?"top":"left",m=d==="y"?"bottom":"right",v=g+c[_],x=g-c[m];g=tp(v,g,x)}const b=o.fn({...t,[f]:h,[d]:g});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[f]:a,[d]:s}}}}}},A4=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}=or(e,t),c={x:n,y:i},d=Ui(r),f=np(d);let h=c[f],g=c[d];const b=or(o,t),_=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const x=f==="y"?"height":"width",T=a.reference[f]-a.floating[x]+_.mainAxis,S=a.reference[f]+a.reference[x]-_.mainAxis;h<T?h=T:h>S&&(h=S)}if(u){var m,v;const x=f==="y"?"width":"height",T=Gv.has(lr(r)),S=a.reference[d]-a.floating[x]+(T&&((m=s.offset)==null?void 0:m[d])||0)+(T?0:_.crossAxis),A=a.reference[d]+a.reference[x]+(T?0:((v=s.offset)==null?void 0:v[d])||0)-(T?_.crossAxis:0);g<S?g=S:g>A&&(g=A)}return{[f]:h,[d]:g}}}},C4=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}=or(e,t),c=await gl(t,u),d=lr(r),f=Os(r),h=Ui(r)==="y",{width:g,height:b}=a.floating;let _,m;d==="top"||d==="bottom"?(_=d,m=f===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(m=d,_=f==="end"?"top":"bottom");const v=b-c.top-c.bottom,x=g-c.left-c.right,T=Fr(b-c[_],v),S=Fr(g-c[m],x),A=!t.middlewareData.shift;let D=T,L=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=x),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(D=v),A&&!f){const O=In(c.left,0),Y=In(c.right,0),U=In(c.top,0),re=In(c.bottom,0);h?L=g-2*(O!==0||Y!==0?O+Y:In(c.left,c.right)):D=b-2*(U!==0||re!==0?U+re:In(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 Ic(){return typeof window<"u"}function Ns(e){return $v(e)?(e.nodeName||"").toLowerCase():"#document"}function Pn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hi(e){var t;return(t=($v(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $v(e){return Ic()?e instanceof Node||e instanceof Pn(e).Node:!1}function Ei(e){return Ic()?e instanceof Element||e instanceof Pn(e).Element:!1}function Fi(e){return Ic()?e instanceof HTMLElement||e instanceof Pn(e).HTMLElement:!1}function Xv(e){return!Ic()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pn(e).ShadowRoot}const k4=new Set(["inline","contents"]);function bl(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Ti(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!k4.has(r)}const O4=new Set(["table","td","th"]);function N4(e){return O4.has(Ns(e))}const R4=[":popover-open",":modal"];function Pc(e){return R4.some(t=>{try{return e.matches(t)}catch{return!1}})}const D4=["transform","translate","scale","rotate","perspective"],M4=["transform","translate","scale","rotate","perspective","filter"],L4=["paint","layout","strict","content"];function sp(e){const t=op(),n=Ei(e)?Ti(e):e;return D4.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)||M4.some(i=>(n.willChange||"").includes(i))||L4.some(i=>(n.contain||"").includes(i))}function I4(e){let t=Vr(e);for(;Fi(t)&&!Rs(t);){if(sp(t))return t;if(Pc(t))return null;t=Vr(t)}return null}function op(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const P4=new Set(["html","body","#document"]);function Rs(e){return P4.has(Ns(e))}function Ti(e){return Pn(e).getComputedStyle(e)}function Bc(e){return Ei(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vr(e){if(Ns(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xv(e)&&e.host||Hi(e);return Xv(t)?t.host:t}function Kv(e){const t=Vr(e);return Rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fi(t)&&bl(t)?t:Kv(t)}function vl(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Kv(e),a=r===((i=e.ownerDocument)==null?void 0:i.body),s=Pn(r);if(a){const o=lp(s);return t.concat(s,s.visualViewport||[],bl(r)?r:[],o&&n?vl(o):[])}return t.concat(r,vl(r,[],n))}function lp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qv(e){const t=Ti(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Fi(e),a=r?e.offsetWidth:n,s=r?e.offsetHeight:i,o=Rc(n)!==a||Rc(i)!==s;return o&&(n=a,i=s),{width:n,height:i,$:o}}function up(e){return Ei(e)?e:e.contextElement}function Ds(e){const t=up(e);if(!Fi(t))return zi(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:a}=Qv(t);let s=(a?Rc(n.width):n.width)/i,o=(a?Rc(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const B4=zi(0);function Wv(e){const t=Pn(e);return!op()||!t.visualViewport?B4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function j4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pn(e)?!1:t}function Pa(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=up(e);let s=zi(1);t&&(i?Ei(i)&&(s=Ds(i)):s=Ds(e));const o=j4(a,n,i)?Wv(a):zi(0);let l=(r.left+o.x)/s.x,u=(r.top+o.y)/s.y,c=r.width/s.x,d=r.height/s.y;if(a){const f=Pn(a),h=i&&Ei(i)?Pn(i):i;let g=f,b=lp(g);for(;b&&i&&h!==g;){const _=Ds(b),m=b.getBoundingClientRect(),v=Ti(b),x=m.left+(b.clientLeft+parseFloat(v.paddingLeft))*_.x,T=m.top+(b.clientTop+parseFloat(v.paddingTop))*_.y;l*=_.x,u*=_.y,c*=_.x,d*=_.y,l+=x,u+=T,g=Pn(b),b=lp(g)}}return Lc({width:c,height:d,x:l,y:u})}function cp(e,t){const n=Bc(e).scrollLeft;return t?t.left+n:Pa(Hi(e)).left+n}function Zv(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=i.left+t.scrollLeft-(n?0:cp(e,i)),a=i.top+t.scrollTop;return{x:r,y:a}}function z4(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const a=r==="fixed",s=Hi(i),o=t?Pc(t.floating):!1;if(i===s||o&&a)return n;let l={scrollLeft:0,scrollTop:0},u=zi(1);const c=zi(0),d=Fi(i);if((d||!d&&!a)&&((Ns(i)!=="body"||bl(s))&&(l=Bc(i)),Fi(i))){const h=Pa(i);u=Ds(i),c.x=h.x+i.clientLeft,c.y=h.y+i.clientTop}const f=s&&!d&&!a?Zv(s,l,!0):zi(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function U4(e){return Array.from(e.getClientRects())}function H4(e){const t=Hi(e),n=Bc(e),i=e.ownerDocument.body,r=In(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=In(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+cp(e);const o=-n.scrollTop;return Ti(i).direction==="rtl"&&(s+=In(t.clientWidth,i.clientWidth)-r),{width:r,height:a,x:s,y:o}}function F4(e,t){const n=Pn(e),i=Hi(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=op();(!u||u&&t==="fixed")&&(o=r.offsetLeft,l=r.offsetTop)}return{width:a,height:s,x:o,y:l}}const V4=new Set(["absolute","fixed"]);function Y4(e,t){const n=Pa(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,a=Fi(e)?Ds(e):zi(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 Jv(e,t,n){let i;if(t==="viewport")i=F4(e,n);else if(t==="document")i=H4(Hi(e));else if(Ei(t))i=Y4(t,n);else{const r=Wv(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Lc(i)}function ey(e,t){const n=Vr(e);return n===t||!Ei(n)||Rs(n)?!1:Ti(n).position==="fixed"||ey(n,t)}function q4(e,t){const n=t.get(e);if(n)return n;let i=vl(e,[],!1).filter(o=>Ei(o)&&Ns(o)!=="body"),r=null;const a=Ti(e).position==="fixed";let s=a?Vr(e):e;for(;Ei(s)&&!Rs(s);){const o=Ti(s),l=sp(s);!l&&o.position==="fixed"&&(r=null),(a?!l&&!r:!l&&o.position==="static"&&!!r&&V4.has(r.position)||bl(s)&&!l&&ey(e,s))?i=i.filter(c=>c!==s):r=o,s=Vr(s)}return t.set(e,i),i}function G4(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const s=[...n==="clippingAncestors"?Pc(t)?[]:q4(t,this._c):[].concat(n),i],o=s[0],l=s.reduce((u,c)=>{const d=Jv(t,c,r);return u.top=In(d.top,u.top),u.right=Fr(d.right,u.right),u.bottom=Fr(d.bottom,u.bottom),u.left=In(d.left,u.left),u},Jv(t,o,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function $4(e){const{width:t,height:n}=Qv(e);return{width:t,height:n}}function X4(e,t,n){const i=Fi(t),r=Hi(t),a=n==="fixed",s=Pa(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const l=zi(0);function u(){l.x=cp(r)}if(i||!i&&!a)if((Ns(t)!=="body"||bl(r))&&(o=Bc(t)),i){const h=Pa(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?Zv(r,o):zi(0),d=s.left+o.scrollLeft-l.x-c.x,f=s.top+o.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function dp(e){return Ti(e).position==="static"}function ty(e,t){if(!Fi(e)||Ti(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Hi(e)===n&&(n=n.ownerDocument.body),n}function ny(e,t){const n=Pn(e);if(Pc(e))return n;if(!Fi(e)){let r=Vr(e);for(;r&&!Rs(r);){if(Ei(r)&&!dp(r))return r;r=Vr(r)}return n}let i=ty(e,t);for(;i&&N4(i)&&dp(i);)i=ty(i,t);return i&&Rs(i)&&dp(i)&&!sp(i)?n:i||I4(e)||n}const K4=async function(e){const t=this.getOffsetParent||ny,n=this.getDimensions,i=await n(e.floating);return{reference:X4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Q4(e){return Ti(e).direction==="rtl"}const W4={convertOffsetParentRelativeRectToViewportRelativeRect:z4,getDocumentElement:Hi,getClippingRect:G4,getOffsetParent:ny,getElementRects:K4,getClientRects:U4,getDimensions:$4,getScale:Ds,isElement:Ei,isRTL:Q4};function iy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Z4(e,t){let n=null,i;const r=Hi(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:d,width:f,height:h}=u;if(o||t(),!f||!h)return;const g=Dc(d),b=Dc(r.clientWidth-(c+f)),_=Dc(r.clientHeight-(d+h)),m=Dc(c),x={rootMargin:-g+"px "+-b+"px "+-_+"px "+-m+"px",threshold:In(0,Fr(1,l))||1};let T=!0;function S(A){const D=A[0].intersectionRatio;if(D!==l){if(!T)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!iy(u,e.getBoundingClientRect())&&s(),T=!1}try{n=new IntersectionObserver(S,{...x,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return s(!0),a}function J4(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=up(e),c=r||a?[...u?vl(u):[],...vl(t)]:[];c.forEach(m=>{r&&m.addEventListener("scroll",n,{passive:!0}),a&&m.addEventListener("resize",n)});const d=u&&o?Z4(u,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(m=>{let[v]=m;v&&v.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,b=l?Pa(e):null;l&&_();function _(){const m=Pa(e);b&&!iy(b,m)&&n(),b=m,g=requestAnimationFrame(_)}return n(),()=>{var m;c.forEach(v=>{r&&v.removeEventListener("scroll",n),a&&v.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const eR=w4,tR=S4,nR=_4,iR=C4,rR=E4,ry=x4,aR=A4,sR=(e,t,n)=>{const i=new Map,r={platform:W4,...n},a={...r.platform,_c:i};return y4(e,t,{...r,platform:a})};var oR=typeof document<"u",lR=function(){},jc=oR?E.useLayoutEffect:lR;function zc(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(!zc(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)&&!zc(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ay(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sy(e,t){const n=ay(e);return Math.round(t*n)/n}function fp(e){const t=E.useRef(e);return jc(()=>{t.current=e}),t}function uR(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,d]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=E.useState(i);zc(f,i)||h(i);const[g,b]=E.useState(null),[_,m]=E.useState(null),v=E.useCallback(H=>{H!==A.current&&(A.current=H,b(H))},[]),x=E.useCallback(H=>{H!==D.current&&(D.current=H,m(H))},[]),T=a||g,S=s||_,A=E.useRef(null),D=E.useRef(null),L=E.useRef(c),B=l!=null,O=fp(l),Y=fp(r),U=fp(u),re=E.useCallback(()=>{if(!A.current||!D.current)return;const H={placement:t,strategy:n,middleware:f};Y.current&&(H.platform=Y.current),sR(A.current,D.current,H).then(te=>{const N={...te,isPositioned:U.current!==!1};ee.current&&!zc(L.current,N)&&(L.current=N,ml.flushSync(()=>{d(N)}))})},[f,t,n,Y,U]);jc(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[u]);const ee=E.useRef(!1);jc(()=>(ee.current=!0,()=>{ee.current=!1}),[]),jc(()=>{if(T&&(A.current=T),S&&(D.current=S),T&&S){if(O.current)return O.current(T,S,re);re()}},[T,S,re,O,B]);const Q=E.useMemo(()=>({reference:A,floating:D,setReference:v,setFloating:x}),[v,x]),F=E.useMemo(()=>({reference:T,floating:S}),[T,S]),V=E.useMemo(()=>{const H={position:n,left:0,top:0};if(!F.floating)return H;const te=sy(F.floating,c.x),N=sy(F.floating,c.y);return o?{...H,transform:"translate("+te+"px, "+N+"px)",...ay(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:N}},[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 cR=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?ry({element:i.current,padding:r}).fn(n):{}:i?ry({element:i,padding:r}).fn(n):{}}}},dR=(e,t)=>({...eR(e),options:[e,t]}),fR=(e,t)=>({...tR(e),options:[e,t]}),hR=(e,t)=>({...aR(e),options:[e,t]}),pR=(e,t)=>({...nR(e),options:[e,t]}),mR=(e,t)=>({...iR(e),options:[e,t]}),gR=(e,t)=>({...rR(e),options:[e,t]}),bR=(e,t)=>({...cR(e),options:[e,t]});var vR="Arrow",oy=E.forwardRef((e,t)=>{const{children:n,width:i=10,height:r=5,...a}=e;return y.jsx(Ln.svg,{...a,ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});oy.displayName=vR;var yR=oy;function xR(e){const[t,n]=E.useState(void 0);return ji(()=>{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 hp="Popper",[ly,Uc]=Oc(hp),[_R,uy]=ly(hp),cy=e=>{const{__scopePopper:t,children:n}=e,[i,r]=E.useState(null);return y.jsx(_R,{scope:t,anchor:i,onAnchorChange:r,children:n})};cy.displayName=hp;var dy="PopperAnchor",fy=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...r}=e,a=uy(dy,n),s=E.useRef(null),o=Bi(t,s);return E.useEffect(()=>{a.onAnchorChange((i==null?void 0:i.current)||s.current)}),i?null:y.jsx(Ln.div,{...r,ref:o})});fy.displayName=dy;var pp="PopperContent",[ER,TR]=ly(pp),hy=E.forwardRef((e,t)=>{var dn,We,$t,Mt,Ut,Lt;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:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:g,...b}=e,_=uy(pp,n),[m,v]=E.useState(null),x=Bi(t,ae=>v(ae)),[T,S]=E.useState(null),A=xR(T),D=(A==null?void 0:A.width)??0,L=(A==null?void 0:A.height)??0,B=i+(a!=="center"?"-"+a:""),O=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},Y=Array.isArray(u)?u:[u],U=Y.length>0,re={padding:O,boundary:Y.filter(SR),altBoundary:U},{refs:ee,floatingStyles:Q,placement:F,isPositioned:V,middlewareData:H}=uR({strategy:"fixed",placement:B,whileElementsMounted:(...ae)=>J4(...ae,{animationFrame:h==="always"}),elements:{reference:_.anchor},middleware:[dR({mainAxis:r+L,alignmentAxis:s}),l&&fR({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?hR():void 0,...re}),l&&pR({...re}),mR({...re,apply:({elements:ae,rects:yi,availableWidth:Li,availableHeight:Ii})=>{const{width:nt,height:fn}=yi.reference,tn=ae.floating.style;tn.setProperty("--radix-popper-available-width",`${Li}px`),tn.setProperty("--radix-popper-available-height",`${Ii}px`),tn.setProperty("--radix-popper-anchor-width",`${nt}px`),tn.setProperty("--radix-popper-anchor-height",`${fn}px`)}}),T&&bR({element:T,padding:o}),AR({arrowWidth:D,arrowHeight:L}),f&&gR({strategy:"referenceHidden",...re})]}),[te,N]=gy(F),be=Ia(g);ji(()=>{V&&(be==null||be())},[V,be]);const tt=(dn=H.arrow)==null?void 0:dn.x,M=(We=H.arrow)==null?void 0:We.y,Be=(($t=H.arrow)==null?void 0:$t.centerOffset)!==0,[ge,je]=E.useState();return ji(()=>{m&&je(window.getComputedStyle(m).zIndex)},[m]),y.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:V?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Mt=H.transformOrigin)==null?void 0:Mt.x,(Ut=H.transformOrigin)==null?void 0:Ut.y].join(" "),...((Lt=H.hide)==null?void 0:Lt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(ER,{scope:n,placedSide:te,onArrowChange:S,arrowX:tt,arrowY:M,shouldHideArrow:Be,children:y.jsx(Ln.div,{"data-side":te,"data-align":N,...b,ref:x,style:{...b.style,animation:V?void 0:"none"}})})})});hy.displayName=pp;var py="PopperArrow",wR={top:"bottom",right:"left",bottom:"top",left:"right"},my=E.forwardRef(function(t,n){const{__scopePopper:i,...r}=t,a=TR(py,i),s=wR[a.placedSide];return y.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:y.jsx(yR,{...r,ref:n,style:{...r.style,display:"block"}})})});my.displayName=py;function SR(e){return e!==null}var AR=e=>({name:"transformOrigin",options:e,fn(t){var _,m,v;const{placement:n,rects:i,middlewareData:r}=t,s=((_=r.arrow)==null?void 0:_.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=gy(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((m=r.arrow)==null?void 0:m.x)??0)+o/2,h=(((v=r.arrow)==null?void 0:v.y)??0)+l/2;let g="",b="";return u==="bottom"?(g=s?d:`${f}px`,b=`${-l}px`):u==="top"?(g=s?d:`${f}px`,b=`${i.floating.height+l}px`):u==="right"?(g=`${-l}px`,b=s?d:`${h}px`):u==="left"&&(g=`${i.floating.width+l}px`,b=s?d:`${h}px`),{data:{x:g,y:b}}}});function gy(e){const[t,n="center"]=e.split("-");return[t,n]}var by=cy,mp=fy,vy=hy,yy=my;function CR(e,t){return E.useReducer((n,i)=>t[n][i]??n,e)}var gp=e=>{const{present:t,children:n}=e,i=kR(t),r=typeof n=="function"?n({present:i.isPresent}):E.Children.only(n),a=Bi(i.ref,OR(r));return typeof n=="function"||i.isPresent?E.cloneElement(r,{ref:a}):null};gp.displayName="Presence";function kR(e){const[t,n]=E.useState(),i=E.useRef(null),r=E.useRef(e),a=E.useRef("none"),s=e?"mounted":"unmounted",[o,l]=CR(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=Hc(i.current);a.current=o==="mounted"?u:"none"},[o]),ji(()=>{const u=i.current,c=r.current;if(c!==e){const f=a.current,h=Hc(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),ji(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const b=Hc(i.current).includes(h.animationName);if(h.target===t&&b&&(l("ANIMATION_END"),!r.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},f=h=>{h.target===t&&(a.current=Hc(i.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:E.useCallback(u=>{i.current=u?getComputedStyle(u):null,n(u)},[])}}function Hc(e){return(e==null?void 0:e.animationName)||"none"}function OR(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 NR=_v[" useInsertionEffect ".trim().toString()]||ji;function xy({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,a,s]=RR({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r;{const c=E.useRef(e!==void 0);E.useEffect(()=>{const d=c.current;d!==o&&console.warn(`${i} is changing from ${d?"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 d;if(o){const f=DR(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else a(c)},[o,e,a,s]);return[l,u]}function RR({defaultProp:e,onChange:t}){const[n,i]=E.useState(e),r=E.useRef(n),a=E.useRef(t);return NR(()=>{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 DR(e){return typeof e=="function"}var MR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ms=new WeakMap,Fc=new WeakMap,Vc={},bp=0,_y=function(e){return e&&(e.host||_y(e.parentNode))},LR=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=_y(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})},IR=function(e,t,n,i){var r=LR(t,Array.isArray(e)?e:[e]);Vc[n]||(Vc[n]=new WeakMap);var a=Vc[n],s=[],o=new Set,l=new Set(r),u=function(d){!d||o.has(d)||(o.add(d),u(d.parentNode))};r.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(o.has(f))c(f);else try{var h=f.getAttribute(i),g=h!==null&&h!=="false",b=(Ms.get(f)||0)+1,_=(a.get(f)||0)+1;Ms.set(f,b),a.set(f,_),s.push(f),b===1&&g&&Fc.set(f,!0),_===1&&f.setAttribute(n,"true"),g||f.setAttribute(i,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return c(t),o.clear(),bp++,function(){s.forEach(function(d){var f=Ms.get(d)-1,h=a.get(d)-1;Ms.set(d,f),a.set(d,h),f||(Fc.has(d)||d.removeAttribute(i),Fc.delete(d)),h||d.removeAttribute(n)}),bp--,bp||(Ms=new WeakMap,Ms=new WeakMap,Fc=new WeakMap,Vc={})}},PR=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=MR(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),IR(i,r,n,"aria-hidden")):function(){return null}},vp=function(e,t){return vp=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])},vp(e,t)};function Ey(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ni=function(){return ni=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},ni.apply(this,arguments)};function Yc(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 Ty(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 wy(e,t){return function(n,i){t(n,i,e)}}function Sy(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):{}),d,f=!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(f)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(m||null))};var _=(0,n[h])(o==="accessor"?{get:c.get,set:c.set}:c[l],g);if(o==="accessor"){if(_===void 0)continue;if(_===null||typeof _!="object")throw new TypeError("Object expected");(d=s(_.get))&&(c.get=d),(d=s(_.set))&&(c.set=d),(d=s(_.init))&&r.unshift(d)}else(d=s(_))&&(o==="field"?r.unshift(d):c[l]=d)}u&&Object.defineProperty(u,i.name,c),f=!0}function Ay(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 Cy(e){return typeof e=="symbol"?e:"".concat(e)}function ky(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 Oy(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ur(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(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?a(c.value):r(c.value).then(o,l)}u((i=i.apply(e,t||[])).next())})}function Ny(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 qc=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 Ry(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qc(t,e,n)}function Gc(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 yp(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 Dy(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(yp(arguments[t]));return e}function My(){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 xp(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 Ls(e){return this instanceof Ls?(this.v=e,this):new Ls(e)}function Ly(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,d)}}function o(h,g){i[h]&&(r[h]=function(b){return new Promise(function(_,m){a.push([h,b,_,m])>1||l(h,b)})},g&&(r[h]=g(r[h])))}function l(h,g){try{u(i[h](g))}catch(b){f(a[0][3],b)}}function u(h){h.value instanceof Ls?Promise.resolve(h.value.v).then(c,d):f(a[0][2],h)}function c(h){l("next",h)}function d(h){l("throw",h)}function f(h,g){h(g),a.shift(),a.length&&l(a[0][0],a[0][1])}}function Iy(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:Ls(e[r](s)),done:!1}:a?a(s):s}:a}}function Py(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 Gc=="function"?Gc(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 By(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var BR=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},_p=function(e){return _p=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},_p(e)};function jy(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=_p(e),i=0;i<n.length;i++)n[i]!=="default"&&qc(t,e,n[i]);return BR(t,e),t}function zy(e){return e&&e.__esModule?e:{default:e}}function Uy(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 Hy(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 Fy(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 Vy(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 jR=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 Yy(e){function t(a){e.error=e.hasError?new jR(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 qy(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 zR=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Vy,get __assign(){return ni},__asyncDelegator:Iy,__asyncGenerator:Ly,__asyncValues:Py,__await:Ls,__awaiter:ur,__classPrivateFieldGet:Uy,__classPrivateFieldIn:Fy,__classPrivateFieldSet:Hy,__createBinding:qc,__decorate:Ty,__disposeResources:Yy,__esDecorate:Sy,__exportStar:Ry,__extends:Ey,__generator:Ny,__importDefault:zy,__importStar:jy,__makeTemplateObject:By,__metadata:Oy,__param:wy,__propKey:Cy,__read:yp,__rest:Yc,__rewriteRelativeImportExtension:qy,__runInitializers:Ay,__setFunctionName:ky,__spread:Dy,__spreadArray:xp,__spreadArrays:My,__values:Gc,default:{__extends:Ey,__assign:ni,__rest:Yc,__decorate:Ty,__param:wy,__esDecorate:Sy,__runInitializers:Ay,__propKey:Cy,__setFunctionName:ky,__metadata:Oy,__awaiter:ur,__generator:Ny,__createBinding:qc,__exportStar:Ry,__values:Gc,__read:yp,__spread:Dy,__spreadArrays:My,__spreadArray:xp,__await:Ls,__asyncGenerator:Ly,__asyncDelegator:Iy,__asyncValues:Py,__makeTemplateObject:By,__importStar:jy,__importDefault:zy,__classPrivateFieldGet:Uy,__classPrivateFieldSet:Hy,__classPrivateFieldIn:Fy,__addDisposableResource:Vy,__disposeResources:Yy,__rewriteRelativeImportExtension:qy}},Symbol.toStringTag,{value:"Module"}));var $c="right-scroll-bar-position",Xc="width-before-scroll-bar",UR="with-scroll-bars-hidden",HR="--removed-body-scroll-bar-size";function Ep(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function FR(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 VR=typeof window<"u"?E.useLayoutEffect:E.useEffect,Gy=new WeakMap;function YR(e,t){var n=FR(null,function(i){return e.forEach(function(r){return Ep(r,i)})});return VR(function(){var i=Gy.get(n);if(i){var r=new Set(i),a=new Set(e),s=n.current;r.forEach(function(o){a.has(o)||Ep(o,null)}),a.forEach(function(o){r.has(o)||Ep(o,s)})}Gy.set(n,e)},[e]),n}function qR(e){return e}function GR(e,t){t===void 0&&(t=qR);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 $R(e){e===void 0&&(e={});var t=GR(null);return t.options=ni({async:!0,ssr:!1},e),t}var $y=function(e){var t=e.sideCar,n=Yc(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,ni({},n))};$y.isSideCarExport=!0;function XR(e,t){return e.useMedium(t),$y}var Xy=$R(),Tp=function(){},Kc=E.forwardRef(function(e,t){var n=E.useRef(null),i=E.useState({onScrollCapture:Tp,onWheelCapture:Tp,onTouchMoveCapture:Tp}),r=i[0],a=i[1],s=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,g=e.noIsolation,b=e.inert,_=e.allowPinchZoom,m=e.as,v=m===void 0?"div":m,x=e.gapMode,T=Yc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,A=YR([n,t]),D=ni(ni({},T),r);return E.createElement(E.Fragment,null,c&&E.createElement(S,{sideCar:Xy,removeScrollBar:u,shards:d,noRelative:h,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:x}),s?E.cloneElement(E.Children.only(o),ni(ni({},D),{ref:A})):E.createElement(v,ni({},D,{className:l,ref:A}),o))});Kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Kc.classNames={fullWidth:Xc,zeroRight:$c};var KR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function QR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=KR();return t&&e.setAttribute("nonce",t),e}function WR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var JR=function(){var e=0,t=null;return{add:function(n){e==0&&(t=QR())&&(WR(t,n),ZR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eD=function(){var e=JR();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ky=function(){var e=eD(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},tD={left:0,top:0,right:0,gap:0},wp=function(e){return parseInt(e||"",10)||0},nD=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[wp(n),wp(i),wp(r)]},iD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tD;var t=nD(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])}},rD=Ky(),Is="data-scroll-locked",aD=function(e,t,n,i){var r=e.left,a=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
26
26
  .`.concat(UR,` {
27
27
  overflow: hidden `).concat(i,`;
28
28
  padding-right: `).concat(o,"px ").concat(i,`;
@@ -59,13 +59,13 @@
59
59
  body[`).concat(Is,`] {
60
60
  `).concat(HR,": ").concat(o,`px;
61
61
  }
62
- `)},Qy=function(){var e=parseInt(document.body.getAttribute(Is)||"0",10);return isFinite(e)?e:0},sD=function(){_.useEffect(function(){return document.body.setAttribute(Is,(Qy()+1).toString()),function(){var e=Qy()-1;e<=0?document.body.removeAttribute(Is):document.body.setAttribute(Is,e.toString())}},[])},oD=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;sD();var a=_.useMemo(function(){return iD(r)},[r]);return _.createElement(rD,{styles:aD(a,!t,r,n?"":"!important")})},Sp=!1;if(typeof window<"u")try{var Qc=Object.defineProperty({},"passive",{get:function(){return Sp=!0,!0}});window.addEventListener("test",Qc,Qc),window.removeEventListener("test",Qc,Qc)}catch{Sp=!1}var Ps=Sp?{passive:!1}:!1,lD=function(e){return e.tagName==="TEXTAREA"},Wy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lD(e)&&n[t]==="visible")},uD=function(e){return Wy(e,"overflowY")},cD=function(e){return Wy(e,"overflowX")},Zy=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=Jy(e,i);if(r){var a=ex(e,i),s=a[1],o=a[2];if(s>o)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},dD=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},fD=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},Jy=function(e,t){return e==="v"?uD(t):cD(t)},ex=function(e,t){return e==="v"?dD(t):fD(t)},hD=function(e,t){return e==="h"&&t==="rtl"?-1:1},pD=function(e,t,n,i,r){var a=hD(e,window.getComputedStyle(t).direction),s=a*i,o=n.target,l=t.contains(o),u=!1,c=s>0,d=0,f=0;do{if(!o)break;var h=ex(e,o),g=h[0],b=h[1],E=h[2],m=b-E-a*g;(g||m)&&Jy(e,o)&&(d+=m,f+=g);var v=o.parentNode;o=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(c&&Math.abs(d)<1||!c&&Math.abs(f)<1)&&(u=!0),u},Wc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tx=function(e){return[e.deltaX,e.deltaY]},nx=function(e){return e&&"current"in e?e.current:e},mD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gD=function(e){return`
62
+ `)},Qy=function(){var e=parseInt(document.body.getAttribute(Is)||"0",10);return isFinite(e)?e:0},sD=function(){E.useEffect(function(){return document.body.setAttribute(Is,(Qy()+1).toString()),function(){var e=Qy()-1;e<=0?document.body.removeAttribute(Is):document.body.setAttribute(Is,e.toString())}},[])},oD=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;sD();var a=E.useMemo(function(){return iD(r)},[r]);return E.createElement(rD,{styles:aD(a,!t,r,n?"":"!important")})},Sp=!1;if(typeof window<"u")try{var Qc=Object.defineProperty({},"passive",{get:function(){return Sp=!0,!0}});window.addEventListener("test",Qc,Qc),window.removeEventListener("test",Qc,Qc)}catch{Sp=!1}var Ps=Sp?{passive:!1}:!1,lD=function(e){return e.tagName==="TEXTAREA"},Wy=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lD(e)&&n[t]==="visible")},uD=function(e){return Wy(e,"overflowY")},cD=function(e){return Wy(e,"overflowX")},Zy=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=Jy(e,i);if(r){var a=ex(e,i),s=a[1],o=a[2];if(s>o)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},dD=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},fD=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},Jy=function(e,t){return e==="v"?uD(t):cD(t)},ex=function(e,t){return e==="v"?dD(t):fD(t)},hD=function(e,t){return e==="h"&&t==="rtl"?-1:1},pD=function(e,t,n,i,r){var a=hD(e,window.getComputedStyle(t).direction),s=a*i,o=n.target,l=t.contains(o),u=!1,c=s>0,d=0,f=0;do{if(!o)break;var h=ex(e,o),g=h[0],b=h[1],_=h[2],m=b-_-a*g;(g||m)&&Jy(e,o)&&(d+=m,f+=g);var v=o.parentNode;o=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(c&&Math.abs(d)<1||!c&&Math.abs(f)<1)&&(u=!0),u},Wc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tx=function(e){return[e.deltaX,e.deltaY]},nx=function(e){return e&&"current"in e?e.current:e},mD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gD=function(e){return`
63
63
  .block-interactivity-`.concat(e,` {pointer-events: none;}
64
64
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
65
- `)},bD=0,Bs=[];function vD(e){var t=_.useRef([]),n=_.useRef([0,0]),i=_.useRef(),r=_.useState(bD++)[0],a=_.useState(Ky)[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var b=xp([e.lockRef.current],(e.shards||[]).map(nx),!0).filter(Boolean);return b.forEach(function(E){return E.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),b.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var o=_.useCallback(function(b,E){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!s.current.allowPinchZoom;var m=Wc(b),v=n.current,x="deltaX"in b?b.deltaX:v[0]-m[0],T="deltaY"in b?b.deltaY:v[1]-m[1],S,A=b.target,D=Math.abs(x)>Math.abs(T)?"h":"v";if("touches"in b&&D==="h"&&A.type==="range")return!1;var L=Zy(D,A);if(!L)return!0;if(L?S=D:(S=D==="v"?"h":"v",L=Zy(D,A)),!L)return!1;if(!i.current&&"changedTouches"in b&&(x||T)&&(i.current=S),!S)return!0;var B=i.current||S;return pD(B,E,b,B==="h"?x:T)},[]),l=_.useCallback(function(b){var E=b;if(!(!Bs.length||Bs[Bs.length-1]!==a)){var m="deltaY"in E?tx(E):Wc(E),v=t.current.filter(function(S){return S.name===E.type&&(S.target===E.target||E.target===S.shadowParent)&&mD(S.delta,m)})[0];if(v&&v.should){E.cancelable&&E.preventDefault();return}if(!v){var x=(s.current.shards||[]).map(nx).filter(Boolean).filter(function(S){return S.contains(E.target)}),T=x.length>0?o(E,x[0]):!s.current.noIsolation;T&&E.cancelable&&E.preventDefault()}}},[]),u=_.useCallback(function(b,E,m,v){var x={name:b,delta:E,target:m,should:v,shadowParent:yD(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(T){return T!==x})},1)},[]),c=_.useCallback(function(b){n.current=Wc(b),i.current=void 0},[]),d=_.useCallback(function(b){u(b.type,tx(b),b.target,o(b,e.lockRef.current))},[]),f=_.useCallback(function(b){u(b.type,Wc(b),b.target,o(b,e.lockRef.current))},[]);_.useEffect(function(){return Bs.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ps),document.addEventListener("touchmove",l,Ps),document.addEventListener("touchstart",c,Ps),function(){Bs=Bs.filter(function(b){return b!==a}),document.removeEventListener("wheel",l,Ps),document.removeEventListener("touchmove",l,Ps),document.removeEventListener("touchstart",c,Ps)}},[]);var h=e.removeScrollBar,g=e.inert;return _.createElement(_.Fragment,null,g?_.createElement(a,{styles:gD(r)}):null,h?_.createElement(oD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xD=XR(Xy,vD);var ix=_.forwardRef(function(e,t){return _.createElement(Kc,ni({},e,{ref:t,sideCar:xD}))});ix.classNames=Kc.classNames;var Zc="Popover",[rx,WZ]=Oc(Zc,[Uc]),yl=Uc(),[_D,Ba]=rx(Zc),ax=e=>{const{__scopePopover:t,children:n,open:i,defaultOpen:r,onOpenChange:a,modal:s=!1}=e,o=yl(t),l=_.useRef(null),[u,c]=_.useState(!1),[d,f]=xy({prop:i,defaultProp:r??!1,onChange:a,caller:Zc});return y.jsx(by,{...o,children:y.jsx(_D,{scope:t,contentId:zv(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:u,onCustomAnchorAdd:_.useCallback(()=>c(!0),[]),onCustomAnchorRemove:_.useCallback(()=>c(!1),[]),modal:s,children:n})})};ax.displayName=Zc;var sx="PopoverAnchor",ox=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=Ba(sx,n),a=yl(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:o}=r;return _.useEffect(()=>(s(),()=>o()),[s,o]),y.jsx(mp,{...a,...i,ref:t})});ox.displayName=sx;var lx="PopoverTrigger",ux=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=Ba(lx,n),a=yl(n),s=Bi(t,r.triggerRef),o=y.jsx(Ln.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":hx(r.open),...i,ref:s,onClick:_n(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?o:y.jsx(mp,{asChild:!0,...a,children:o})});ux.displayName=lx;var ED="PopoverPortal",[ZZ,TD]=rx(ED,{forceMount:void 0}),js="PopoverContent",cx=_.forwardRef((e,t)=>{const n=TD(js,e.__scopePopover),{forceMount:i=n.forceMount,...r}=e,a=Ba(js,e.__scopePopover);return y.jsx(gp,{present:i||a.open,children:a.modal?y.jsx(SD,{...r,ref:t}):y.jsx(AD,{...r,ref:t})})});cx.displayName=js;var wD=Kh("PopoverContent.RemoveScroll"),SD=_.forwardRef((e,t)=>{const n=Ba(js,e.__scopePopover),i=_.useRef(null),r=Bi(t,i),a=_.useRef(!1);return _.useEffect(()=>{const s=i.current;if(s)return PR(s)},[]),y.jsx(ix,{as:wD,allowPinchZoom:!0,children:y.jsx(dx,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_n(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),a.current||(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:_n(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:_n(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),AD=_.forwardRef((e,t)=>{const n=Ba(js,e.__scopePopover),i=_.useRef(!1),r=_.useRef(!1);return y.jsx(dx,{...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()}})}),dx=_.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=Ba(js,n),h=yl(n);return ZN(),y.jsx(Lv,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:a,children:y.jsx(Wh,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:y.jsx(vy,{"data-state":hx(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.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)"}})})})}),fx="PopoverClose",CD=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=Ba(fx,n);return y.jsx(Ln.button,{type:"button",...i,ref:t,onClick:_n(e.onClick,()=>r.onOpenChange(!1))})});CD.displayName=fx;var kD="PopoverArrow",OD=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=yl(n);return y.jsx(yy,{...r,...i,ref:t})});OD.displayName=kD;function hx(e){return e?"open":"closed"}var ND=ax,RD=ox,DD=cx;const MD=/\{[^{}]+\}/g,LD=()=>{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 ID(){return Math.random().toString(36).slice(2,11)}function PD(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=LD()?o:void 0,t=vx(t);const u=[];async function c(d,f){const{baseUrl:h,fetch:g=i,Request:b=n,headers:E,params:m={},parseAs:v="json",querySerializer:x,bodySerializer:T=a??jD,body:S,...A}=f||{};let D=t;h&&(D=vx(h)??t);let L=typeof r=="function"?r:gx(r);x&&(L=typeof x=="function"?x:gx({...typeof r=="object"?r:{},...x}));const B=S===void 0?void 0:T(S,bx(s,E,m.header)),O=bx(B===void 0||B instanceof FormData?{}:{"Content-Type":"application/json"},s,E,m.header),Y={redirect:"follow",...l,...A,body:B,headers:O};let U,re,ee=new n(zD(d,{baseUrl:D,params:m,querySerializer:L}),Y),Q;for(const V in A)V in ee||(ee[V]=A[V]);if(u.length){U=ID(),re=Object.freeze({baseUrl:D,fetch:g,parseAs:v,querySerializer:L,bodySerializer:T});for(const V of u)if(V&&typeof V=="object"&&typeof V.onRequest=="function"){const H=await V.onRequest({request:ee,schemaPath:d,params:m,options:re,id:U});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 N=u[te];if(N&&typeof N=="object"&&typeof N.onError=="function"){const be=await N.onError({request:ee,error:H,schemaPath:d,params:m,options:re,id:U});if(be){if(be instanceof Response){H=void 0,Q=be;break}if(be instanceof Error){H=be;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:d,params:m,options:re,id:U});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 v==="stream"?{data:Q.body,response:Q}:{data:await Q[v](),response:Q};let F=await Q.text();try{F=JSON.parse(F)}catch{}return{error:F,response:Q}}return{request(d,f,h){return c(f,{...h,method:d.toUpperCase()})},GET(d,f){return c(d,{...f,method:"GET"})},PUT(d,f){return c(d,{...f,method:"PUT"})},POST(d,f){return c(d,{...f,method:"POST"})},DELETE(d,f){return c(d,{...f,method:"DELETE"})},OPTIONS(d,f){return c(d,{...f,method:"OPTIONS"})},HEAD(d,f){return c(d,{...f,method:"HEAD"})},PATCH(d,f){return c(d,{...f,method:"PATCH"})},TRACE(d,f){return c(d,{...f,method:"TRACE"})},use(...d){for(const f of d)if(f){if(typeof f!="object"||!("onRequest"in f||"onResponse"in f||"onError"in f))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(f)}},eject(...d){for(const f of d){const h=u.indexOf(f);h!==-1&&u.splice(h,1)}}}}function Jc(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 px(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(Jc(o,t[s],n))}const a=i.join(r);return n.style==="label"||n.style==="matrix"?`${r}${a}`:a}function mx(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(Jc(e,a,n));return n.style==="label"||n.style==="matrix"?`${i}${r.join(i)}`:r.join(i)}function gx(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(mx(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(px(r,a,{style:"deepObject",explode:!0,...e==null?void 0:e.object,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}i.push(Jc(r,a,e))}}return i.join("&")}}function BD(e,t){let n=e;for(const i of e.match(MD)??[]){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,mx(r,o,{style:s,explode:a}));continue}if(typeof o=="object"){n=n.replace(i,px(r,o,{style:s,explode:a}));continue}if(s==="matrix"){n=n.replace(i,`;${Jc(r,o)}`);continue}n=n.replace(i,s==="label"?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return n}function jD(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 zD(e,t){var r;let n=`${t.baseUrl}${e}`;(r=t.params)!=null&&r.path&&(n=BD(n,t.params.path));let i=t.querySerializer(t.params.query??{});return i.startsWith("?")&&(i=i.substring(1)),i&&(n+=`?${i}`),n}function bx(...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 vx(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var ed={exports:{}};ed.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]",d="[object Date]",f="[object Error]",h="[object Function]",g="[object GeneratorFunction]",b="[object Map]",E="[object Number]",m="[object Null]",v="[object Object]",x="[object Promise]",T="[object Proxy]",S="[object RegExp]",A="[object Set]",D="[object String]",L="[object Symbol]",B="[object Undefined]",O="[object WeakMap]",Y="[object ArrayBuffer]",U="[object DataView]",re="[object Float32Array]",ee="[object Float64Array]",Q="[object Int8Array]",F="[object Int16Array]",V="[object Int32Array]",H="[object Uint8Array]",te="[object Uint8ClampedArray]",N="[object Uint16Array]",be="[object Uint32Array]",tt=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,Be=/^(?:0|[1-9]\d*)$/,ge={};ge[re]=ge[ee]=ge[Q]=ge[F]=ge[V]=ge[H]=ge[te]=ge[N]=ge[be]=!0,ge[o]=ge[l]=ge[Y]=ge[c]=ge[U]=ge[d]=ge[f]=ge[h]=ge[b]=ge[E]=ge[v]=ge[S]=ge[A]=ge[D]=ge[O]=!1;var je=typeof zr=="object"&&zr&&zr.Object===Object&&zr,dn=typeof self=="object"&&self&&self.Object===Object&&self,We=je||dn||Function("return this")(),$t=t&&!t.nodeType&&t,Mt=$t&&!0&&e&&!e.nodeType&&e,Ut=Mt&&Mt.exports===$t,Lt=Ut&&je.process,ae=function(){try{return Lt&&Lt.binding&&Lt.binding("util")}catch{}}(),yi=ae&&ae.isTypedArray;function Li(C,I){for(var G=-1,se=C==null?0:C.length,ot=0,Se=[];++G<se;){var xt=C[G];I(xt,G,C)&&(Se[ot++]=xt)}return Se}function Ii(C,I){for(var G=-1,se=I.length,ot=C.length;++G<se;)C[ot+G]=I[G];return C}function nt(C,I){for(var G=-1,se=C==null?0:C.length;++G<se;)if(I(C[G],G,C))return!0;return!1}function fn(C,I){for(var G=-1,se=Array(C);++G<C;)se[G]=I(G);return se}function tn(C){return function(I){return C(I)}}function At(C,I){return C.has(I)}function Es(C,I){return C==null?void 0:C[I]}function Rn(C){var I=-1,G=Array(C.size);return C.forEach(function(se,ot){G[++I]=[ot,se]}),G}function Ir(C,I){return function(G){return C(I(G))}}function ne(C){var I=-1,G=Array(C.size);return C.forEach(function(se){G[++I]=se}),G}var he=Array.prototype,j=Function.prototype,$=Object.prototype,ue=We["__core-js_shared__"],_e=j.toString,ve=$.hasOwnProperty,Xt=function(){var C=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),Dn=$.toString,yn=RegExp("^"+_e.call(ve).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jn=Ut?We.Buffer:void 0,Mn=We.Symbol,It=We.Uint8Array,ei=$.propertyIsEnumerable,xn=he.splice,Pr=Mn?Mn.toStringTag:void 0,tN=Object.getOwnPropertySymbols,eZ=Jn?Jn.isBuffer:void 0,tZ=Ir(Object.keys,Object),tv=fl(We,"DataView"),Tc=fl(We,"Map"),nv=fl(We,"Promise"),iv=fl(We,"Set"),rv=fl(We,"WeakMap"),wc=fl(Object,"create"),nZ=Ss(tv),iZ=Ss(Tc),rZ=Ss(nv),aZ=Ss(iv),sZ=Ss(rv),nN=Mn?Mn.prototype:void 0,av=nN?nN.valueOf:void 0;function Ts(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function oZ(){this.__data__=wc?wc(null):{},this.size=0}function lZ(C){var I=this.has(C)&&delete this.__data__[C];return this.size-=I?1:0,I}function uZ(C){var I=this.__data__;if(wc){var G=I[C];return G===i?void 0:G}return ve.call(I,C)?I[C]:void 0}function cZ(C){var I=this.__data__;return wc?I[C]!==void 0:ve.call(I,C)}function dZ(C,I){var G=this.__data__;return this.size+=this.has(C)?0:1,G[C]=wc&&I===void 0?i:I,this}Ts.prototype.clear=oZ,Ts.prototype.delete=lZ,Ts.prototype.get=uZ,Ts.prototype.has=cZ,Ts.prototype.set=dZ;function Br(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function fZ(){this.__data__=[],this.size=0}function hZ(C){var I=this.__data__,G=Bh(I,C);if(G<0)return!1;var se=I.length-1;return G==se?I.pop():xn.call(I,G,1),--this.size,!0}function pZ(C){var I=this.__data__,G=Bh(I,C);return G<0?void 0:I[G][1]}function mZ(C){return Bh(this.__data__,C)>-1}function gZ(C,I){var G=this.__data__,se=Bh(G,C);return se<0?(++this.size,G.push([C,I])):G[se][1]=I,this}Br.prototype.clear=fZ,Br.prototype.delete=hZ,Br.prototype.get=pZ,Br.prototype.has=mZ,Br.prototype.set=gZ;function ws(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function bZ(){this.size=0,this.__data__={hash:new Ts,map:new(Tc||Br),string:new Ts}}function vZ(C){var I=jh(this,C).delete(C);return this.size-=I?1:0,I}function yZ(C){return jh(this,C).get(C)}function xZ(C){return jh(this,C).has(C)}function _Z(C,I){var G=jh(this,C),se=G.size;return G.set(C,I),this.size+=G.size==se?0:1,this}ws.prototype.clear=bZ,ws.prototype.delete=vZ,ws.prototype.get=yZ,ws.prototype.has=xZ,ws.prototype.set=_Z;function Ph(C){var I=-1,G=C==null?0:C.length;for(this.__data__=new ws;++I<G;)this.add(C[I])}function EZ(C){return this.__data__.set(C,i),this}function TZ(C){return this.__data__.has(C)}Ph.prototype.add=Ph.prototype.push=EZ,Ph.prototype.has=TZ;function Da(C){var I=this.__data__=new Br(C);this.size=I.size}function wZ(){this.__data__=new Br,this.size=0}function SZ(C){var I=this.__data__,G=I.delete(C);return this.size=I.size,G}function AZ(C){return this.__data__.get(C)}function CZ(C){return this.__data__.has(C)}function kZ(C,I){var G=this.__data__;if(G instanceof Br){var se=G.__data__;if(!Tc||se.length<n-1)return se.push([C,I]),this.size=++G.size,this;G=this.__data__=new ws(se)}return G.set(C,I),this.size=G.size,this}Da.prototype.clear=wZ,Da.prototype.delete=SZ,Da.prototype.get=AZ,Da.prototype.has=CZ,Da.prototype.set=kZ;function OZ(C,I){var G=zh(C),se=!G&&YZ(C),ot=!G&&!se&&sv(C),Se=!G&&!se&&!ot&&dN(C),xt=G||se||ot||Se,Kt=xt?fn(C.length,String):[],nn=Kt.length;for(var gt in C)ve.call(C,gt)&&!(xt&&(gt=="length"||ot&&(gt=="offset"||gt=="parent")||Se&&(gt=="buffer"||gt=="byteLength"||gt=="byteOffset")||zZ(gt,nn)))&&Kt.push(gt);return Kt}function Bh(C,I){for(var G=C.length;G--;)if(oN(C[G][0],I))return G;return-1}function NZ(C,I,G){var se=I(C);return zh(C)?se:Ii(se,G(C))}function Sc(C){return C==null?C===void 0?B:m:Pr&&Pr in Object(C)?BZ(C):VZ(C)}function iN(C){return Ac(C)&&Sc(C)==o}function rN(C,I,G,se,ot){return C===I?!0:C==null||I==null||!Ac(C)&&!Ac(I)?C!==C&&I!==I:RZ(C,I,G,se,rN,ot)}function RZ(C,I,G,se,ot,Se){var xt=zh(C),Kt=zh(I),nn=xt?l:Ma(C),gt=Kt?l:Ma(I);nn=nn==o?v:nn,gt=gt==o?v:gt;var ti=nn==v,Pi=gt==v,hn=nn==gt;if(hn&&sv(C)){if(!sv(I))return!1;xt=!0,ti=!1}if(hn&&!ti)return Se||(Se=new Da),xt||dN(C)?aN(C,I,G,se,ot,Se):IZ(C,I,nn,G,se,ot,Se);if(!(G&r)){var xi=ti&&ve.call(C,"__wrapped__"),_i=Pi&&ve.call(I,"__wrapped__");if(xi||_i){var La=xi?C.value():C,jr=_i?I.value():I;return Se||(Se=new Da),ot(La,jr,G,se,Se)}}return hn?(Se||(Se=new Da),PZ(C,I,G,se,ot,Se)):!1}function DZ(C){if(!cN(C)||HZ(C))return!1;var I=lN(C)?yn:M;return I.test(Ss(C))}function MZ(C){return Ac(C)&&uN(C.length)&&!!ge[Sc(C)]}function LZ(C){if(!FZ(C))return tZ(C);var I=[];for(var G in Object(C))ve.call(C,G)&&G!="constructor"&&I.push(G);return I}function aN(C,I,G,se,ot,Se){var xt=G&r,Kt=C.length,nn=I.length;if(Kt!=nn&&!(xt&&nn>Kt))return!1;var gt=Se.get(C);if(gt&&Se.get(I))return gt==I;var ti=-1,Pi=!0,hn=G&a?new Ph:void 0;for(Se.set(C,I),Se.set(I,C);++ti<Kt;){var xi=C[ti],_i=I[ti];if(se)var La=xt?se(_i,xi,ti,I,C,Se):se(xi,_i,ti,C,I,Se);if(La!==void 0){if(La)continue;Pi=!1;break}if(hn){if(!nt(I,function(jr,As){if(!At(hn,As)&&(xi===jr||ot(xi,jr,G,se,Se)))return hn.push(As)})){Pi=!1;break}}else if(!(xi===_i||ot(xi,_i,G,se,Se))){Pi=!1;break}}return Se.delete(C),Se.delete(I),Pi}function IZ(C,I,G,se,ot,Se,xt){switch(G){case U:if(C.byteLength!=I.byteLength||C.byteOffset!=I.byteOffset)return!1;C=C.buffer,I=I.buffer;case Y:return!(C.byteLength!=I.byteLength||!Se(new It(C),new It(I)));case c:case d:case E:return oN(+C,+I);case f:return C.name==I.name&&C.message==I.message;case S:case D:return C==I+"";case b:var Kt=Rn;case A:var nn=se&r;if(Kt||(Kt=ne),C.size!=I.size&&!nn)return!1;var gt=xt.get(C);if(gt)return gt==I;se|=a,xt.set(C,I);var ti=aN(Kt(C),Kt(I),se,ot,Se,xt);return xt.delete(C),ti;case L:if(av)return av.call(C)==av.call(I)}return!1}function PZ(C,I,G,se,ot,Se){var xt=G&r,Kt=sN(C),nn=Kt.length,gt=sN(I),ti=gt.length;if(nn!=ti&&!xt)return!1;for(var Pi=nn;Pi--;){var hn=Kt[Pi];if(!(xt?hn in I:ve.call(I,hn)))return!1}var xi=Se.get(C);if(xi&&Se.get(I))return xi==I;var _i=!0;Se.set(C,I),Se.set(I,C);for(var La=xt;++Pi<nn;){hn=Kt[Pi];var jr=C[hn],As=I[hn];if(se)var fN=xt?se(As,jr,hn,I,C,Se):se(jr,As,hn,C,I,Se);if(!(fN===void 0?jr===As||ot(jr,As,G,se,Se):fN)){_i=!1;break}La||(La=hn=="constructor")}if(_i&&!La){var Uh=C.constructor,Hh=I.constructor;Uh!=Hh&&"constructor"in C&&"constructor"in I&&!(typeof Uh=="function"&&Uh instanceof Uh&&typeof Hh=="function"&&Hh instanceof Hh)&&(_i=!1)}return Se.delete(C),Se.delete(I),_i}function sN(C){return NZ(C,$Z,jZ)}function jh(C,I){var G=C.__data__;return UZ(I)?G[typeof I=="string"?"string":"hash"]:G.map}function fl(C,I){var G=Es(C,I);return DZ(G)?G:void 0}function BZ(C){var I=ve.call(C,Pr),G=C[Pr];try{C[Pr]=void 0;var se=!0}catch{}var ot=Dn.call(C);return se&&(I?C[Pr]=G:delete C[Pr]),ot}var jZ=tN?function(C){return C==null?[]:(C=Object(C),Li(tN(C),function(I){return ei.call(C,I)}))}:XZ,Ma=Sc;(tv&&Ma(new tv(new ArrayBuffer(1)))!=U||Tc&&Ma(new Tc)!=b||nv&&Ma(nv.resolve())!=x||iv&&Ma(new iv)!=A||rv&&Ma(new rv)!=O)&&(Ma=function(C){var I=Sc(C),G=I==v?C.constructor:void 0,se=G?Ss(G):"";if(se)switch(se){case nZ:return U;case iZ:return b;case rZ:return x;case aZ:return A;case sZ:return O}return I});function zZ(C,I){return I=I??s,!!I&&(typeof C=="number"||Be.test(C))&&C>-1&&C%1==0&&C<I}function UZ(C){var I=typeof C;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?C!=="__proto__":C===null}function HZ(C){return!!Xt&&Xt in C}function FZ(C){var I=C&&C.constructor,G=typeof I=="function"&&I.prototype||$;return C===G}function VZ(C){return Dn.call(C)}function Ss(C){if(C!=null){try{return _e.call(C)}catch{}try{return C+""}catch{}}return""}function oN(C,I){return C===I||C!==C&&I!==I}var YZ=iN(function(){return arguments}())?iN:function(C){return Ac(C)&&ve.call(C,"callee")&&!ei.call(C,"callee")},zh=Array.isArray;function qZ(C){return C!=null&&uN(C.length)&&!lN(C)}var sv=eZ||KZ;function GZ(C,I){return rN(C,I)}function lN(C){if(!cN(C))return!1;var I=Sc(C);return I==h||I==g||I==u||I==T}function uN(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=s}function cN(C){var I=typeof C;return C!=null&&(I=="object"||I=="function")}function Ac(C){return C!=null&&typeof C=="object"}var dN=yi?tn(yi):MZ;function $Z(C){return qZ(C)?OZ(C):LZ(C)}function XZ(){return[]}function KZ(){return!1}e.exports=GZ}(ed,ed.exports);var UD=ed.exports;const HD=hl(UD),Qt=[];for(let e=0;e<256;++e)Qt.push((e+256).toString(16).slice(1));function FD(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 Ap;const VD=new Uint8Array(16);function YD(){if(!Ap){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ap=crypto.getRandomValues.bind(crypto)}return Ap(VD)}const yx={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Cp(e,t,n){var r;if(yx.randomUUID&&!e)return yx.randomUUID();e=e||{};const i=e.random??((r=e.rng)==null?void 0:r.call(e))??YD();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,FD(i)}const qD=e=>{console.log(e.error)},GD=e=>{const t=PD({baseUrl:e.baseUrl}),n={onRequest:e.onRequest,onResponse:e.onResponse,onError:e.onError||qD};return t.use(n),t};let xx=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})=>GD({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 d;const f=new FormData;f.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",E=>{if(E.lengthComputable&&l){const m=Math.round(E.loaded/E.total*100);l(m)}}),h.addEventListener("load",()=>{if(h.status>=200&&h.status<300)try{const E=JSON.parse(h.responseText);u(E)}catch(E){c(new Error(`Failed to parse response: ${E}`))}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??((d=this.config.user)==null?void 0:d.token)?h.setRequestHeader("Authorization",`Bearer ${this.userToken}`):console.error("User token not set"),h.send(f)}),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 ii(e,t){console.error(`Missing case for ${e} in ${t}`)}class zs{constructor(t){this.subscribers=new Set,this.get=()=>this.state,this.set=n=>{HD(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}}let _x=class{constructor(){this.state=new zs({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 Ex(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}}}let $D=class{constructor({api:t,config:n,sessionCtx:i,messageCtx:r,sessionPollingIntervalSeconds:a}){this.poller=new _x,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,d=c.length>0?((u=c[c.length-1])==null?void 0:u.timestamp)??void 0:void 0,{data:f}=await this.api.pollSessionAndHistory({sessionId:s,abortSignal:o,lastMessageTimestamp:l?void 0:d});if(f!=null&&f.session&&(this.sessionCtx.sessionState.setPartial({session:f.session}),this.sessionCtx.setSessions([f.session])),f!=null&&f.history&&f.history.length>0){const h=this.messageCtx.state.get().messages,g=f.history.map(this.mapHistoryToMessage).filter(b=>b!==null).filter(b=>!h.some(E=>E.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;const l={id:s.publicId,timestamp:s.sentAt||"",attachments:s.attachments||void 0};if(s.sender.kind==="user")return{...l,type:"USER",content:s.content.text||"",deliveredAt:s.sentAt||""};if(s.sender.kind==="agent")return{...l,type:"AGENT",component:"agent_message",data:{message:s.content.text||""},agent:{name:s.sender.name||"",avatarUrl:s.sender.avatar||null,avatar:s.sender.avatar||null,id:null,isAi:!1}};if(s.sender.kind==="ai"){const u=s.actionCalls&&s.actionCalls.length>0?s.actionCalls[s.actionCalls.length-1]:void 0;return{...l,type:"AI",component:"bot_message",agent:{id:null,name:((o=this.config.bot)==null?void 0:o.name)||"",isAi:!0,avatarUrl:null,avatar:null},data:{message:s.content.text||"",action:u?{name:u.actionName,data:this.extractActionResult(u)}:void 0}}}if(s.sender.kind==="system"){const u=this.constructSystemMessage(s);return u===null?null:{...u}}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 ii(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=Ex(()=>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()}};class XD{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,d,f,h,g,b,E,m,v;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(!((d=(c=this.config.user)==null?void 0:c.data)!=null&&d.email)){const x=await((f=this.storageCtx)==null?void 0:f.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:(E=(b=this.config.user)==null?void 0:b.data)==null?void 0:E.name,non_verified_custom_data:(v=(m=this.config.user)==null?void 0:m.data)==null?void 0:v.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()),d=((o=this.config.user)==null?void 0:o.externalId)||c||Cp();this.api.setAuthToken(a),await((l=this.storageCtx)==null?void 0:l.setContactToken(a)),await((u=this.storageCtx)==null?void 0:u.setExternalContactId(d)),this.state.setPartial({contact:{token:a,externalId:d}})},this.config=t,this.storageCtx=i,this.api=n,this.state=new zs({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 xl(){return Cp()}class KD{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=xl();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 QD=class{constructor({config:t,api:n,contactCtx:i,sessionsPollingIntervalSeconds:r}){this.sessionsRefresher=new _x,this.sessionState=new zs({session:null,isCreatingSession:!1,isResolvingSession:!1}),this.sessionsState=new zs({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.getParsedCustomData=()=>Object.fromEntries(Object.entries(this.config.sessionCustomData||{}).map(([a,s])=>{var o;return typeof s=="string"?[a,s]:typeof s=="boolean"?[a,s]:typeof s=="number"?[a,s]:[a,((o=Ex(()=>JSON.stringify(s)))==null?void 0:o.data)||""]})),this.createSession=async()=>{var a,s,o;this.sessionState.setPartial({session:null,isCreatingSession:!0});const l=(a=this.contactCtx.state.get().contact)==null?void 0:a.externalId,u={...this.getParsedCustomData(),...l?{external_id:l}:{}},{data:c,error:d}=await this.api.createSession({customData:Object.keys(u).length>0?u:void 0});return c?(this.sessionState.setPartial({session:c,isCreatingSession:!1}),(o=(s=this.config.hooks)==null?void 0:s.onSessionCreated)==null||o.call(s,{session:c}),c):(this.sessionState.setPartial({isCreatingSession:!1}),console.error("Failed to create session:",d),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!=null&&l.success?{success:!0}:{success:!1}},this.config=t,this.api=n,this.contactCtx=i,this.sessionsPollingIntervalSeconds=r,this.registerSessionsRefresherWrapper()}},WD=class{constructor({config:t,api:n,sessionCtx:i,contactCtx:r}){this.state=new zs({messages:[],isSendingMessage:!1,isSendingMessageToAI:!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,d,f,h,g;let 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 E=this.sessionCtx.sessionState.get().session,m=(E==null?void 0:E.assignee.kind)==="ai",v=this.state.get().isSendingMessageToAI,x=this.state.get().messages.at(-1);if(this.config.disableSendingWhenAwaitingAIReply!==!1&&(v||m&&(x==null?void 0:x.type)==="USER")){console.warn("Cannot send messages while awaiting AI response");return}this.sendMessageAbortController.abort("Superseded by a newer message"),this.sendMessageAbortController=new AbortController,b=this.sendMessageAbortController,this.state.setPartial({lastAIResMightSolveUserIssue:!1,isSendingMessage:!0,isSendingMessageToAI:!!m||!E});const T=this.state.get().messages,S=!((s=this.sessionCtx.sessionState.get().session)!=null&&s.id)&&T.length===0&&((o=this.config.advancedInitialMessages)==null?void 0:o.some(O=>O.persistent)),A=S?(this.config.advancedInitialMessages||[]).filter(O=>O.persistent).map(O=>({id:xl(),component:"bot_message",type:"AI",timestamp:new Date().toISOString(),data:{message:O.message},agent:this.config.bot?{...this.config.bot,isAi:!0,id:null}:void 0})):[],D=this.toUserMessage(a.content.trim(),a.attachments||void 0);if(this.state.setPartial({messages:[...A,...T,D]}),!((l=this.sessionCtx.sessionState.get().session)!=null&&l.id)){if(!await this.sessionCtx.createSession()){console.error("Failed to create session");return}this.sessionCtx.refreshSessions()}const L=(u=this.sessionCtx.sessionState.get().session)==null?void 0:u.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?A.map(O=>({uuid:O.id,content:O.data.message})):void 0},b.signal);if(B!=null&&B.success){const O=this.toBotMessage(B);if(O){const Y=this.state.get().messages;if(Y.some(U=>U.id===O.id)){this.state.setPartial({lastAIResMightSolveUserIssue:((c=B.autopilotResponse)==null?void 0:c.mightSolveUserIssue)||((d=B.uiResponse)==null?void 0:d.mightSolveUserIssue)});return}this.state.setPartial({messages:[...Y,O],lastAIResMightSolveUserIssue:((f=B.autopilotResponse)==null?void 0:f.mightSolveUserIssue)||((h=B.uiResponse)==null?void 0:h.mightSolveUserIssue)})}B.session&&this.sessionCtx.sessionState.setPartial({session:B.session})}else{const O=this.toBotErrorMessage(((g=B==null?void 0:B.error)==null?void 0:g.message)||"Something went wrong. Please refresh the page or try again."),Y=this.state.get().messages;this.state.setPartial({messages:[...Y,O]})}}catch(E){b!=null&&b.signal.aborted||console.error("Failed to send message:",E)}finally{b!=null&&b.signal.aborted||this.state.setPartial({isSendingMessage:!1,isSendingMessageToAI:!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(`
65
+ `)},bD=0,Bs=[];function vD(e){var t=E.useRef([]),n=E.useRef([0,0]),i=E.useRef(),r=E.useState(bD++)[0],a=E.useState(Ky)[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=xp([e.lockRef.current],(e.shards||[]).map(nx),!0).filter(Boolean);return b.forEach(function(_){return _.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),b.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var o=E.useCallback(function(b,_){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!s.current.allowPinchZoom;var m=Wc(b),v=n.current,x="deltaX"in b?b.deltaX:v[0]-m[0],T="deltaY"in b?b.deltaY:v[1]-m[1],S,A=b.target,D=Math.abs(x)>Math.abs(T)?"h":"v";if("touches"in b&&D==="h"&&A.type==="range")return!1;var L=Zy(D,A);if(!L)return!0;if(L?S=D:(S=D==="v"?"h":"v",L=Zy(D,A)),!L)return!1;if(!i.current&&"changedTouches"in b&&(x||T)&&(i.current=S),!S)return!0;var B=i.current||S;return pD(B,_,b,B==="h"?x:T)},[]),l=E.useCallback(function(b){var _=b;if(!(!Bs.length||Bs[Bs.length-1]!==a)){var m="deltaY"in _?tx(_):Wc(_),v=t.current.filter(function(S){return S.name===_.type&&(S.target===_.target||_.target===S.shadowParent)&&mD(S.delta,m)})[0];if(v&&v.should){_.cancelable&&_.preventDefault();return}if(!v){var x=(s.current.shards||[]).map(nx).filter(Boolean).filter(function(S){return S.contains(_.target)}),T=x.length>0?o(_,x[0]):!s.current.noIsolation;T&&_.cancelable&&_.preventDefault()}}},[]),u=E.useCallback(function(b,_,m,v){var x={name:b,delta:_,target:m,should:v,shadowParent:yD(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(T){return T!==x})},1)},[]),c=E.useCallback(function(b){n.current=Wc(b),i.current=void 0},[]),d=E.useCallback(function(b){u(b.type,tx(b),b.target,o(b,e.lockRef.current))},[]),f=E.useCallback(function(b){u(b.type,Wc(b),b.target,o(b,e.lockRef.current))},[]);E.useEffect(function(){return Bs.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ps),document.addEventListener("touchmove",l,Ps),document.addEventListener("touchstart",c,Ps),function(){Bs=Bs.filter(function(b){return b!==a}),document.removeEventListener("wheel",l,Ps),document.removeEventListener("touchmove",l,Ps),document.removeEventListener("touchstart",c,Ps)}},[]);var h=e.removeScrollBar,g=e.inert;return E.createElement(E.Fragment,null,g?E.createElement(a,{styles:gD(r)}):null,h?E.createElement(oD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xD=XR(Xy,vD);var ix=E.forwardRef(function(e,t){return E.createElement(Kc,ni({},e,{ref:t,sideCar:xD}))});ix.classNames=Kc.classNames;var Zc="Popover",[rx,WZ]=Oc(Zc,[Uc]),yl=Uc(),[_D,Ba]=rx(Zc),ax=e=>{const{__scopePopover:t,children:n,open:i,defaultOpen:r,onOpenChange:a,modal:s=!1}=e,o=yl(t),l=E.useRef(null),[u,c]=E.useState(!1),[d,f]=xy({prop:i,defaultProp:r??!1,onChange:a,caller:Zc});return y.jsx(by,{...o,children:y.jsx(_D,{scope:t,contentId:zv(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:E.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:u,onCustomAnchorAdd:E.useCallback(()=>c(!0),[]),onCustomAnchorRemove:E.useCallback(()=>c(!1),[]),modal:s,children:n})})};ax.displayName=Zc;var sx="PopoverAnchor",ox=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=Ba(sx,n),a=yl(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:o}=r;return E.useEffect(()=>(s(),()=>o()),[s,o]),y.jsx(mp,{...a,...i,ref:t})});ox.displayName=sx;var lx="PopoverTrigger",ux=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=Ba(lx,n),a=yl(n),s=Bi(t,r.triggerRef),o=y.jsx(Ln.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":hx(r.open),...i,ref:s,onClick:_n(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?o:y.jsx(mp,{asChild:!0,...a,children:o})});ux.displayName=lx;var ED="PopoverPortal",[ZZ,TD]=rx(ED,{forceMount:void 0}),js="PopoverContent",cx=E.forwardRef((e,t)=>{const n=TD(js,e.__scopePopover),{forceMount:i=n.forceMount,...r}=e,a=Ba(js,e.__scopePopover);return y.jsx(gp,{present:i||a.open,children:a.modal?y.jsx(SD,{...r,ref:t}):y.jsx(AD,{...r,ref:t})})});cx.displayName=js;var wD=Kh("PopoverContent.RemoveScroll"),SD=E.forwardRef((e,t)=>{const n=Ba(js,e.__scopePopover),i=E.useRef(null),r=Bi(t,i),a=E.useRef(!1);return E.useEffect(()=>{const s=i.current;if(s)return PR(s)},[]),y.jsx(ix,{as:wD,allowPinchZoom:!0,children:y.jsx(dx,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_n(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),a.current||(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:_n(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:_n(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),AD=E.forwardRef((e,t)=>{const n=Ba(js,e.__scopePopover),i=E.useRef(!1),r=E.useRef(!1);return y.jsx(dx,{...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()}})}),dx=E.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=Ba(js,n),h=yl(n);return ZN(),y.jsx(Lv,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:a,children:y.jsx(Wh,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:y.jsx(vy,{"data-state":hx(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.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)"}})})})}),fx="PopoverClose",CD=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=Ba(fx,n);return y.jsx(Ln.button,{type:"button",...i,ref:t,onClick:_n(e.onClick,()=>r.onOpenChange(!1))})});CD.displayName=fx;var kD="PopoverArrow",OD=E.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,r=yl(n);return y.jsx(yy,{...r,...i,ref:t})});OD.displayName=kD;function hx(e){return e?"open":"closed"}var ND=ax,RD=ox,DD=cx;const MD=/\{[^{}]+\}/g,LD=()=>{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 ID(){return Math.random().toString(36).slice(2,11)}function PD(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=LD()?o:void 0,t=vx(t);const u=[];async function c(d,f){const{baseUrl:h,fetch:g=i,Request:b=n,headers:_,params:m={},parseAs:v="json",querySerializer:x,bodySerializer:T=a??jD,body:S,...A}=f||{};let D=t;h&&(D=vx(h)??t);let L=typeof r=="function"?r:gx(r);x&&(L=typeof x=="function"?x:gx({...typeof r=="object"?r:{},...x}));const B=S===void 0?void 0:T(S,bx(s,_,m.header)),O=bx(B===void 0||B instanceof FormData?{}:{"Content-Type":"application/json"},s,_,m.header),Y={redirect:"follow",...l,...A,body:B,headers:O};let U,re,ee=new n(zD(d,{baseUrl:D,params:m,querySerializer:L}),Y),Q;for(const V in A)V in ee||(ee[V]=A[V]);if(u.length){U=ID(),re=Object.freeze({baseUrl:D,fetch:g,parseAs:v,querySerializer:L,bodySerializer:T});for(const V of u)if(V&&typeof V=="object"&&typeof V.onRequest=="function"){const H=await V.onRequest({request:ee,schemaPath:d,params:m,options:re,id:U});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 N=u[te];if(N&&typeof N=="object"&&typeof N.onError=="function"){const be=await N.onError({request:ee,error:H,schemaPath:d,params:m,options:re,id:U});if(be){if(be instanceof Response){H=void 0,Q=be;break}if(be instanceof Error){H=be;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:d,params:m,options:re,id:U});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 v==="stream"?{data:Q.body,response:Q}:{data:await Q[v](),response:Q};let F=await Q.text();try{F=JSON.parse(F)}catch{}return{error:F,response:Q}}return{request(d,f,h){return c(f,{...h,method:d.toUpperCase()})},GET(d,f){return c(d,{...f,method:"GET"})},PUT(d,f){return c(d,{...f,method:"PUT"})},POST(d,f){return c(d,{...f,method:"POST"})},DELETE(d,f){return c(d,{...f,method:"DELETE"})},OPTIONS(d,f){return c(d,{...f,method:"OPTIONS"})},HEAD(d,f){return c(d,{...f,method:"HEAD"})},PATCH(d,f){return c(d,{...f,method:"PATCH"})},TRACE(d,f){return c(d,{...f,method:"TRACE"})},use(...d){for(const f of d)if(f){if(typeof f!="object"||!("onRequest"in f||"onResponse"in f||"onError"in f))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(f)}},eject(...d){for(const f of d){const h=u.indexOf(f);h!==-1&&u.splice(h,1)}}}}function Jc(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 px(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(Jc(o,t[s],n))}const a=i.join(r);return n.style==="label"||n.style==="matrix"?`${r}${a}`:a}function mx(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(Jc(e,a,n));return n.style==="label"||n.style==="matrix"?`${i}${r.join(i)}`:r.join(i)}function gx(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(mx(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(px(r,a,{style:"deepObject",explode:!0,...e==null?void 0:e.object,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}i.push(Jc(r,a,e))}}return i.join("&")}}function BD(e,t){let n=e;for(const i of e.match(MD)??[]){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,mx(r,o,{style:s,explode:a}));continue}if(typeof o=="object"){n=n.replace(i,px(r,o,{style:s,explode:a}));continue}if(s==="matrix"){n=n.replace(i,`;${Jc(r,o)}`);continue}n=n.replace(i,s==="label"?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return n}function jD(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 zD(e,t){var r;let n=`${t.baseUrl}${e}`;(r=t.params)!=null&&r.path&&(n=BD(n,t.params.path));let i=t.querySerializer(t.params.query??{});return i.startsWith("?")&&(i=i.substring(1)),i&&(n+=`?${i}`),n}function bx(...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 vx(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var ed={exports:{}};ed.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]",d="[object Date]",f="[object Error]",h="[object Function]",g="[object GeneratorFunction]",b="[object Map]",_="[object Number]",m="[object Null]",v="[object Object]",x="[object Promise]",T="[object Proxy]",S="[object RegExp]",A="[object Set]",D="[object String]",L="[object Symbol]",B="[object Undefined]",O="[object WeakMap]",Y="[object ArrayBuffer]",U="[object DataView]",re="[object Float32Array]",ee="[object Float64Array]",Q="[object Int8Array]",F="[object Int16Array]",V="[object Int32Array]",H="[object Uint8Array]",te="[object Uint8ClampedArray]",N="[object Uint16Array]",be="[object Uint32Array]",tt=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,Be=/^(?:0|[1-9]\d*)$/,ge={};ge[re]=ge[ee]=ge[Q]=ge[F]=ge[V]=ge[H]=ge[te]=ge[N]=ge[be]=!0,ge[o]=ge[l]=ge[Y]=ge[c]=ge[U]=ge[d]=ge[f]=ge[h]=ge[b]=ge[_]=ge[v]=ge[S]=ge[A]=ge[D]=ge[O]=!1;var je=typeof zr=="object"&&zr&&zr.Object===Object&&zr,dn=typeof self=="object"&&self&&self.Object===Object&&self,We=je||dn||Function("return this")(),$t=t&&!t.nodeType&&t,Mt=$t&&!0&&e&&!e.nodeType&&e,Ut=Mt&&Mt.exports===$t,Lt=Ut&&je.process,ae=function(){try{return Lt&&Lt.binding&&Lt.binding("util")}catch{}}(),yi=ae&&ae.isTypedArray;function Li(C,I){for(var G=-1,se=C==null?0:C.length,ot=0,Se=[];++G<se;){var xt=C[G];I(xt,G,C)&&(Se[ot++]=xt)}return Se}function Ii(C,I){for(var G=-1,se=I.length,ot=C.length;++G<se;)C[ot+G]=I[G];return C}function nt(C,I){for(var G=-1,se=C==null?0:C.length;++G<se;)if(I(C[G],G,C))return!0;return!1}function fn(C,I){for(var G=-1,se=Array(C);++G<C;)se[G]=I(G);return se}function tn(C){return function(I){return C(I)}}function At(C,I){return C.has(I)}function Es(C,I){return C==null?void 0:C[I]}function Rn(C){var I=-1,G=Array(C.size);return C.forEach(function(se,ot){G[++I]=[ot,se]}),G}function Ir(C,I){return function(G){return C(I(G))}}function ne(C){var I=-1,G=Array(C.size);return C.forEach(function(se){G[++I]=se}),G}var he=Array.prototype,j=Function.prototype,$=Object.prototype,ue=We["__core-js_shared__"],_e=j.toString,ve=$.hasOwnProperty,Xt=function(){var C=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),Dn=$.toString,yn=RegExp("^"+_e.call(ve).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jn=Ut?We.Buffer:void 0,Mn=We.Symbol,It=We.Uint8Array,ei=$.propertyIsEnumerable,xn=he.splice,Pr=Mn?Mn.toStringTag:void 0,tN=Object.getOwnPropertySymbols,eZ=Jn?Jn.isBuffer:void 0,tZ=Ir(Object.keys,Object),tv=fl(We,"DataView"),Tc=fl(We,"Map"),nv=fl(We,"Promise"),iv=fl(We,"Set"),rv=fl(We,"WeakMap"),wc=fl(Object,"create"),nZ=Ss(tv),iZ=Ss(Tc),rZ=Ss(nv),aZ=Ss(iv),sZ=Ss(rv),nN=Mn?Mn.prototype:void 0,av=nN?nN.valueOf:void 0;function Ts(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function oZ(){this.__data__=wc?wc(null):{},this.size=0}function lZ(C){var I=this.has(C)&&delete this.__data__[C];return this.size-=I?1:0,I}function uZ(C){var I=this.__data__;if(wc){var G=I[C];return G===i?void 0:G}return ve.call(I,C)?I[C]:void 0}function cZ(C){var I=this.__data__;return wc?I[C]!==void 0:ve.call(I,C)}function dZ(C,I){var G=this.__data__;return this.size+=this.has(C)?0:1,G[C]=wc&&I===void 0?i:I,this}Ts.prototype.clear=oZ,Ts.prototype.delete=lZ,Ts.prototype.get=uZ,Ts.prototype.has=cZ,Ts.prototype.set=dZ;function Br(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function fZ(){this.__data__=[],this.size=0}function hZ(C){var I=this.__data__,G=Bh(I,C);if(G<0)return!1;var se=I.length-1;return G==se?I.pop():xn.call(I,G,1),--this.size,!0}function pZ(C){var I=this.__data__,G=Bh(I,C);return G<0?void 0:I[G][1]}function mZ(C){return Bh(this.__data__,C)>-1}function gZ(C,I){var G=this.__data__,se=Bh(G,C);return se<0?(++this.size,G.push([C,I])):G[se][1]=I,this}Br.prototype.clear=fZ,Br.prototype.delete=hZ,Br.prototype.get=pZ,Br.prototype.has=mZ,Br.prototype.set=gZ;function ws(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function bZ(){this.size=0,this.__data__={hash:new Ts,map:new(Tc||Br),string:new Ts}}function vZ(C){var I=jh(this,C).delete(C);return this.size-=I?1:0,I}function yZ(C){return jh(this,C).get(C)}function xZ(C){return jh(this,C).has(C)}function _Z(C,I){var G=jh(this,C),se=G.size;return G.set(C,I),this.size+=G.size==se?0:1,this}ws.prototype.clear=bZ,ws.prototype.delete=vZ,ws.prototype.get=yZ,ws.prototype.has=xZ,ws.prototype.set=_Z;function Ph(C){var I=-1,G=C==null?0:C.length;for(this.__data__=new ws;++I<G;)this.add(C[I])}function EZ(C){return this.__data__.set(C,i),this}function TZ(C){return this.__data__.has(C)}Ph.prototype.add=Ph.prototype.push=EZ,Ph.prototype.has=TZ;function Da(C){var I=this.__data__=new Br(C);this.size=I.size}function wZ(){this.__data__=new Br,this.size=0}function SZ(C){var I=this.__data__,G=I.delete(C);return this.size=I.size,G}function AZ(C){return this.__data__.get(C)}function CZ(C){return this.__data__.has(C)}function kZ(C,I){var G=this.__data__;if(G instanceof Br){var se=G.__data__;if(!Tc||se.length<n-1)return se.push([C,I]),this.size=++G.size,this;G=this.__data__=new ws(se)}return G.set(C,I),this.size=G.size,this}Da.prototype.clear=wZ,Da.prototype.delete=SZ,Da.prototype.get=AZ,Da.prototype.has=CZ,Da.prototype.set=kZ;function OZ(C,I){var G=zh(C),se=!G&&YZ(C),ot=!G&&!se&&sv(C),Se=!G&&!se&&!ot&&dN(C),xt=G||se||ot||Se,Kt=xt?fn(C.length,String):[],nn=Kt.length;for(var gt in C)ve.call(C,gt)&&!(xt&&(gt=="length"||ot&&(gt=="offset"||gt=="parent")||Se&&(gt=="buffer"||gt=="byteLength"||gt=="byteOffset")||zZ(gt,nn)))&&Kt.push(gt);return Kt}function Bh(C,I){for(var G=C.length;G--;)if(oN(C[G][0],I))return G;return-1}function NZ(C,I,G){var se=I(C);return zh(C)?se:Ii(se,G(C))}function Sc(C){return C==null?C===void 0?B:m:Pr&&Pr in Object(C)?BZ(C):VZ(C)}function iN(C){return Ac(C)&&Sc(C)==o}function rN(C,I,G,se,ot){return C===I?!0:C==null||I==null||!Ac(C)&&!Ac(I)?C!==C&&I!==I:RZ(C,I,G,se,rN,ot)}function RZ(C,I,G,se,ot,Se){var xt=zh(C),Kt=zh(I),nn=xt?l:Ma(C),gt=Kt?l:Ma(I);nn=nn==o?v:nn,gt=gt==o?v:gt;var ti=nn==v,Pi=gt==v,hn=nn==gt;if(hn&&sv(C)){if(!sv(I))return!1;xt=!0,ti=!1}if(hn&&!ti)return Se||(Se=new Da),xt||dN(C)?aN(C,I,G,se,ot,Se):IZ(C,I,nn,G,se,ot,Se);if(!(G&r)){var xi=ti&&ve.call(C,"__wrapped__"),_i=Pi&&ve.call(I,"__wrapped__");if(xi||_i){var La=xi?C.value():C,jr=_i?I.value():I;return Se||(Se=new Da),ot(La,jr,G,se,Se)}}return hn?(Se||(Se=new Da),PZ(C,I,G,se,ot,Se)):!1}function DZ(C){if(!cN(C)||HZ(C))return!1;var I=lN(C)?yn:M;return I.test(Ss(C))}function MZ(C){return Ac(C)&&uN(C.length)&&!!ge[Sc(C)]}function LZ(C){if(!FZ(C))return tZ(C);var I=[];for(var G in Object(C))ve.call(C,G)&&G!="constructor"&&I.push(G);return I}function aN(C,I,G,se,ot,Se){var xt=G&r,Kt=C.length,nn=I.length;if(Kt!=nn&&!(xt&&nn>Kt))return!1;var gt=Se.get(C);if(gt&&Se.get(I))return gt==I;var ti=-1,Pi=!0,hn=G&a?new Ph:void 0;for(Se.set(C,I),Se.set(I,C);++ti<Kt;){var xi=C[ti],_i=I[ti];if(se)var La=xt?se(_i,xi,ti,I,C,Se):se(xi,_i,ti,C,I,Se);if(La!==void 0){if(La)continue;Pi=!1;break}if(hn){if(!nt(I,function(jr,As){if(!At(hn,As)&&(xi===jr||ot(xi,jr,G,se,Se)))return hn.push(As)})){Pi=!1;break}}else if(!(xi===_i||ot(xi,_i,G,se,Se))){Pi=!1;break}}return Se.delete(C),Se.delete(I),Pi}function IZ(C,I,G,se,ot,Se,xt){switch(G){case U:if(C.byteLength!=I.byteLength||C.byteOffset!=I.byteOffset)return!1;C=C.buffer,I=I.buffer;case Y:return!(C.byteLength!=I.byteLength||!Se(new It(C),new It(I)));case c:case d:case _:return oN(+C,+I);case f:return C.name==I.name&&C.message==I.message;case S:case D:return C==I+"";case b:var Kt=Rn;case A:var nn=se&r;if(Kt||(Kt=ne),C.size!=I.size&&!nn)return!1;var gt=xt.get(C);if(gt)return gt==I;se|=a,xt.set(C,I);var ti=aN(Kt(C),Kt(I),se,ot,Se,xt);return xt.delete(C),ti;case L:if(av)return av.call(C)==av.call(I)}return!1}function PZ(C,I,G,se,ot,Se){var xt=G&r,Kt=sN(C),nn=Kt.length,gt=sN(I),ti=gt.length;if(nn!=ti&&!xt)return!1;for(var Pi=nn;Pi--;){var hn=Kt[Pi];if(!(xt?hn in I:ve.call(I,hn)))return!1}var xi=Se.get(C);if(xi&&Se.get(I))return xi==I;var _i=!0;Se.set(C,I),Se.set(I,C);for(var La=xt;++Pi<nn;){hn=Kt[Pi];var jr=C[hn],As=I[hn];if(se)var fN=xt?se(As,jr,hn,I,C,Se):se(jr,As,hn,C,I,Se);if(!(fN===void 0?jr===As||ot(jr,As,G,se,Se):fN)){_i=!1;break}La||(La=hn=="constructor")}if(_i&&!La){var Uh=C.constructor,Hh=I.constructor;Uh!=Hh&&"constructor"in C&&"constructor"in I&&!(typeof Uh=="function"&&Uh instanceof Uh&&typeof Hh=="function"&&Hh instanceof Hh)&&(_i=!1)}return Se.delete(C),Se.delete(I),_i}function sN(C){return NZ(C,$Z,jZ)}function jh(C,I){var G=C.__data__;return UZ(I)?G[typeof I=="string"?"string":"hash"]:G.map}function fl(C,I){var G=Es(C,I);return DZ(G)?G:void 0}function BZ(C){var I=ve.call(C,Pr),G=C[Pr];try{C[Pr]=void 0;var se=!0}catch{}var ot=Dn.call(C);return se&&(I?C[Pr]=G:delete C[Pr]),ot}var jZ=tN?function(C){return C==null?[]:(C=Object(C),Li(tN(C),function(I){return ei.call(C,I)}))}:XZ,Ma=Sc;(tv&&Ma(new tv(new ArrayBuffer(1)))!=U||Tc&&Ma(new Tc)!=b||nv&&Ma(nv.resolve())!=x||iv&&Ma(new iv)!=A||rv&&Ma(new rv)!=O)&&(Ma=function(C){var I=Sc(C),G=I==v?C.constructor:void 0,se=G?Ss(G):"";if(se)switch(se){case nZ:return U;case iZ:return b;case rZ:return x;case aZ:return A;case sZ:return O}return I});function zZ(C,I){return I=I??s,!!I&&(typeof C=="number"||Be.test(C))&&C>-1&&C%1==0&&C<I}function UZ(C){var I=typeof C;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?C!=="__proto__":C===null}function HZ(C){return!!Xt&&Xt in C}function FZ(C){var I=C&&C.constructor,G=typeof I=="function"&&I.prototype||$;return C===G}function VZ(C){return Dn.call(C)}function Ss(C){if(C!=null){try{return _e.call(C)}catch{}try{return C+""}catch{}}return""}function oN(C,I){return C===I||C!==C&&I!==I}var YZ=iN(function(){return arguments}())?iN:function(C){return Ac(C)&&ve.call(C,"callee")&&!ei.call(C,"callee")},zh=Array.isArray;function qZ(C){return C!=null&&uN(C.length)&&!lN(C)}var sv=eZ||KZ;function GZ(C,I){return rN(C,I)}function lN(C){if(!cN(C))return!1;var I=Sc(C);return I==h||I==g||I==u||I==T}function uN(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=s}function cN(C){var I=typeof C;return C!=null&&(I=="object"||I=="function")}function Ac(C){return C!=null&&typeof C=="object"}var dN=yi?tn(yi):MZ;function $Z(C){return qZ(C)?OZ(C):LZ(C)}function XZ(){return[]}function KZ(){return!1}e.exports=GZ}(ed,ed.exports);var UD=ed.exports;const HD=hl(UD),Qt=[];for(let e=0;e<256;++e)Qt.push((e+256).toString(16).slice(1));function FD(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 Ap;const VD=new Uint8Array(16);function YD(){if(!Ap){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ap=crypto.getRandomValues.bind(crypto)}return Ap(VD)}const yx={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Cp(e,t,n){var r;if(yx.randomUUID&&!e)return yx.randomUUID();e=e||{};const i=e.random??((r=e.rng)==null?void 0:r.call(e))??YD();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,FD(i)}const qD=e=>{console.log(e.error)},GD=e=>{const t=PD({baseUrl:e.baseUrl}),n={onRequest:e.onRequest,onResponse:e.onResponse,onError:e.onError||qD};return t.use(n),t};let xx=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})=>GD({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 d;const f=new FormData;f.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",_=>{if(_.lengthComputable&&l){const m=Math.round(_.loaded/_.total*100);l(m)}}),h.addEventListener("load",()=>{if(h.status>=200&&h.status<300)try{const _=JSON.parse(h.responseText);u(_)}catch(_){c(new Error(`Failed to parse response: ${_}`))}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??((d=this.config.user)==null?void 0:d.token)?h.setRequestHeader("Authorization",`Bearer ${this.userToken}`):console.error("User token not set"),h.send(f)}),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 ii(e,t){console.error(`Missing case for ${e} in ${t}`)}class zs{constructor(t){this.subscribers=new Set,this.get=()=>this.state,this.set=n=>{HD(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}}let _x=class{constructor(){this.state=new zs({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 Ex(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}}}let $D=class{constructor({api:t,config:n,sessionCtx:i,messageCtx:r,sessionPollingIntervalSeconds:a}){this.poller=new _x,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;const c=this.messageCtx.state.get().messages.length===0;c&&this.messageCtx.state.setPartial({isInitialFetchLoading:!0});const d=this.messageCtx.state.get().messages,f=d.length>0?((u=d[d.length-1])==null?void 0:u.timestamp)??void 0:void 0,{data:h}=await this.api.pollSessionAndHistory({sessionId:s,abortSignal:o,lastMessageTimestamp:l?void 0:f});if(h!=null&&h.session&&(this.sessionCtx.sessionState.setPartial({session:h.session}),this.sessionCtx.setSessions([h.session])),h!=null&&h.history&&h.history.length>0){const g=this.messageCtx.state.get().messages,b=h.history.map(this.mapHistoryToMessage).filter(_=>_!==null).filter(_=>!g.some(m=>m.id===_.id));if(this.messageCtx.state.setPartial({messages:[...g,...b]}),c)this.messageCtx.markAsDispatchedToOnMessageReceivedHook(b.map(_=>_.id));else for(const _ of b)this.messageCtx.dispatchToOnMessageReceivedHook(_)}this.messageCtx.state.get().isInitialFetchLoading&&this.messageCtx.state.setPartial({isInitialFetchLoading:!1})},this.mapHistoryToMessage=s=>{var o;const l={id:s.publicId,timestamp:s.sentAt||"",attachments:s.attachments||void 0};if(s.sender.kind==="user")return{...l,type:"USER",content:s.content.text||"",deliveredAt:s.sentAt||""};if(s.sender.kind==="agent")return{...l,type:"AGENT",component:"agent_message",data:{message:s.content.text||""},agent:{name:s.sender.name||"",avatarUrl:s.sender.avatar||null,avatar:s.sender.avatar||null,id:null,isAi:!1}};if(s.sender.kind==="ai"){const u=s.actionCalls&&s.actionCalls.length>0?s.actionCalls[s.actionCalls.length-1]:void 0;return{...l,type:"AI",component:"bot_message",agent:{id:null,name:((o=this.config.bot)==null?void 0:o.name)||"",isAi:!0,avatarUrl:null,avatar:null},data:{message:s.content.text||"",action:u?{name:u.actionName,data:this.extractActionResult(u)}:void 0}}}if(s.sender.kind==="system"){const u=this.constructSystemMessage(s);return u===null?null:{...u}}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 ii(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=Ex(()=>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()}};class XD{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,d,f,h,g,b,_,m,v;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(!((d=(c=this.config.user)==null?void 0:c.data)!=null&&d.email)){const x=await((f=this.storageCtx)==null?void 0:f.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:(_=(b=this.config.user)==null?void 0:b.data)==null?void 0:_.name,non_verified_custom_data:(v=(m=this.config.user)==null?void 0:m.data)==null?void 0:v.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()),d=((o=this.config.user)==null?void 0:o.externalId)||c||Cp();this.api.setAuthToken(a),await((l=this.storageCtx)==null?void 0:l.setContactToken(a)),await((u=this.storageCtx)==null?void 0:u.setExternalContactId(d)),this.state.setPartial({contact:{token:a,externalId:d}})},this.config=t,this.storageCtx=i,this.api=n,this.state=new zs({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 xl(){return Cp()}class KD{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=xl();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 QD=class{constructor({config:t,api:n,contactCtx:i,sessionsPollingIntervalSeconds:r}){this.sessionsRefresher=new _x,this.sessionState=new zs({session:null,isCreatingSession:!1,isResolvingSession:!1}),this.sessionsState=new zs({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.getParsedCustomData=()=>Object.fromEntries(Object.entries(this.config.sessionCustomData||{}).map(([a,s])=>{var o;return typeof s=="string"?[a,s]:typeof s=="boolean"?[a,s]:typeof s=="number"?[a,s]:[a,((o=Ex(()=>JSON.stringify(s)))==null?void 0:o.data)||""]})),this.createSession=async()=>{var a,s,o;this.sessionState.setPartial({session:null,isCreatingSession:!0});const l=(a=this.contactCtx.state.get().contact)==null?void 0:a.externalId,u={...this.getParsedCustomData(),...l?{external_id:l}:{}},{data:c,error:d}=await this.api.createSession({customData:Object.keys(u).length>0?u:void 0});return c?(this.sessionState.setPartial({session:c,isCreatingSession:!1}),(o=(s=this.config.hooks)==null?void 0:s.onSessionCreated)==null||o.call(s,{session:c}),c):(this.sessionState.setPartial({isCreatingSession:!1}),console.error("Failed to create session:",d),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!=null&&l.success?{success:!0}:{success:!1}},this.config=t,this.api=n,this.contactCtx=i,this.sessionsPollingIntervalSeconds=r,this.registerSessionsRefresherWrapper()}},WD=class{constructor({config:t,api:n,sessionCtx:i,contactCtx:r}){this.state=new zs({messages:[],isSendingMessage:!1,isSendingMessageToAI:!1,lastAIResMightSolveUserIssue:!1,isInitialFetchLoading:!1}),this.sendMessageAbortController=new AbortController,this.messageIdsDispatchedToOnMessageReceivedHook=new Set,this.reset=()=>{this.sendMessageAbortController.abort("Resetting chat"),this.state.reset(),this.messageIdsDispatchedToOnMessageReceivedHook.clear()},this.dispatchToOnMessageReceivedHook=a=>{var s,o;if(a.type==="USER"||this.messageIdsDispatchedToOnMessageReceivedHook.has(a.id))return;const l=this.sessionCtx.sessionState.get().session;l&&(this.messageIdsDispatchedToOnMessageReceivedHook.add(a.id),(o=(s=this.config.hooks)==null?void 0:s.onMessageReceived)==null||o.call(s,{message:a,session:l}))},this.markAsDispatchedToOnMessageReceivedHook=a=>{a.forEach(s=>this.messageIdsDispatchedToOnMessageReceivedHook.add(s))},this.sendMessage=async a=>{var s,o,l,u,c,d,f,h,g;let 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 _=this.sessionCtx.sessionState.get().session,m=(_==null?void 0:_.assignee.kind)==="ai",v=this.state.get().isSendingMessageToAI,x=this.state.get().messages.at(-1);if(this.config.disableSendingWhenAwaitingAIReply!==!1&&(v||m&&(x==null?void 0:x.type)==="USER")){console.warn("Cannot send messages while awaiting AI response");return}this.sendMessageAbortController.abort("Superseded by a newer message"),this.sendMessageAbortController=new AbortController,b=this.sendMessageAbortController,this.state.setPartial({lastAIResMightSolveUserIssue:!1,isSendingMessage:!0,isSendingMessageToAI:!!m||!_});const T=this.state.get().messages,S=!((s=this.sessionCtx.sessionState.get().session)!=null&&s.id)&&T.length===0&&((o=this.config.advancedInitialMessages)==null?void 0:o.some(O=>O.persistent)),A=S?(this.config.advancedInitialMessages||[]).filter(O=>O.persistent).map(O=>({id:xl(),component:"bot_message",type:"AI",timestamp:new Date().toISOString(),data:{message:O.message},agent:this.config.bot?{...this.config.bot,isAi:!0,id:null}:void 0})):[],D=this.toUserMessage(a.content.trim(),a.attachments||void 0);if(this.state.setPartial({messages:[...A,...T,D]}),!((l=this.sessionCtx.sessionState.get().session)!=null&&l.id)){if(!await this.sessionCtx.createSession()){console.error("Failed to create session");return}this.sessionCtx.refreshSessions()}const L=(u=this.sessionCtx.sessionState.get().session)==null?void 0:u.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?A.map(O=>({uuid:O.id,content:O.data.message})):void 0},b.signal);if(B!=null&&B.success){const O=this.toBotMessage(B);if(O){const Y=this.state.get().messages;if(Y.some(U=>U.id===O.id)){this.state.setPartial({lastAIResMightSolveUserIssue:((c=B.autopilotResponse)==null?void 0:c.mightSolveUserIssue)||((d=B.uiResponse)==null?void 0:d.mightSolveUserIssue)});return}this.state.setPartial({messages:[...Y,O],lastAIResMightSolveUserIssue:((f=B.autopilotResponse)==null?void 0:f.mightSolveUserIssue)||((h=B.uiResponse)==null?void 0:h.mightSolveUserIssue)}),this.dispatchToOnMessageReceivedHook(O)}B.session&&this.sessionCtx.sessionState.setPartial({session:B.session})}else{const O=this.toBotErrorMessage(((g=B==null?void 0:B.error)==null?void 0:g.message)||"Something went wrong. Please refresh the page or try again."),Y=this.state.get().messages;this.state.setPartial({messages:[...Y,O]})}}catch(_){b!=null&&b.signal.aborted||console.error("Failed to send message:",_)}finally{b!=null&&b.signal.aborted||this.state.setPartial({isSendingMessage:!1,isSendingMessageToAI:!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(`
66
66
  `)}
67
67
 
68
- ${a}`:a})();return{id:xl(),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||xl(),timestamp:new Date().toISOString(),component:"bot_message",agent:this.config.bot?{name:this.config.bot.name||"",isAi:!0,avatarUrl:null,avatar:null,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:xl(),timestamp:new Date().toISOString(),component:"bot_message",data:{message:a,variant:"error",action:void 0}}),this.config=t,this.api=n,this.sessionCtx=i,this.contactCtx=r}},ZD=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,d;if((l=this.config.router)!=null&&l.chatScreenOnly&&!((u=this.sessionCtx.sessionState.get().session)!=null&&u.id)){const f=(c=o.find(h=>h.isOpened))==null?void 0:c.id;return f?this.toChatScreen(f):void 0}o.length||((d=this.config.router)==null?void 0:d.goToChatIfNoSessions)!==!1&&!s&&this.state.get().screen!=="chat"&&this.toChatScreen()})},this.toSessionsScreen=()=>{this.resetChat(),this.state.setPartial({screen:"sessions"})},this.toChatScreen=s=>{var o,l;this.resetChat();let u;if(s){if(u=this.sessionCtx.sessionsState.get().data.find(c=>c.id===s),!u)return;this.sessionCtx.sessionState.setPartial({session:u})}this.state.setPartial({screen:"chat"}),(l=(o=this.config.hooks)==null?void 0:o.onNavigateToChat)==null||l.call(o,{session:u})},this.config=t,this.contactCtx=n,this.sessionCtx=i,this.resetChat=r,this.state=new zs({screen:this.contactCtx.shouldCollectData()?"welcome":(a=this.config.router)!=null&&a.chatScreenOnly?"chat":"sessions"}),this.registerRoutingListener()}},JD=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 _l=class Fh{constructor({config:t,storage:n,modes:i,org:r}){if(this.modes=[],this.resetChat=()=>{this.sessionCtx.reset(),this.messageCtx.reset()},!Fh.pollingIntervalsSeconds)throw Error("Widget polling values are not defined, did you call WidgetCtx.initialize()");this.config=t,this.org=r,this.api=new xx({config:t}),this.storageCtx=n?new JD({storage:n,config:t}):void 0,this.modes=i,this.contactCtx=new XD({api:this.api,config:this.config,storageCtx:this.storageCtx}),this.sessionCtx=new QD({config:this.config,api:this.api,contactCtx:this.contactCtx,sessionsPollingIntervalSeconds:Fh.pollingIntervalsSeconds.sessions}),this.messageCtx=new WD({config:this.config,api:this.api,sessionCtx:this.sessionCtx,contactCtx:this.contactCtx}),this.csatCtx=new KD({config:this.config,api:this.api,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx}),this.activeSessionPollingCtx=new $D({api:this.api,config:this.config,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx,sessionPollingIntervalSeconds:Fh.pollingIntervalsSeconds.session}),this.routerCtx=new ZD({config:this.config,contactCtx:this.contactCtx,sessionCtx:this.sessionCtx,resetChat:this.resetChat})}};_l.pollingIntervalsSeconds=null,_l.initialize=async({config:e,storage:t})=>{var n,i,r;const a=await new xx({config:e}).getExternalWidgetConfig();if(!a.data)throw new Error("Failed to fetch widget config");return _l.pollingIntervalsSeconds={session:((n=a.data)==null?void 0:n.sessionPollingIntervalSeconds)||10,sessions:((i=a.data)==null?void 0:i.sessionsPollingIntervalSeconds)||60},new _l({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 e5=_l;const t5={write_a_message_placeholder:"اكتب رسالة...",your_issue_has_been_resolved:"تم حل مشكلتك!",new_conversation:"محادثة جديدة",welcome_screen_title:"مرحبًا بك في دردشة الدعم الخاصة بنا",welcome_screen_description:"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.",your_name_placeholder:"اسمك",your_email_placeholder:"عنوان بريدك الإلكتروني",start_chat_button:"تحدث إلى الدعم",start_chat_button_loading:"جاري الاتصال...",i_need_more_help:"أحتاج المزيد من المساعدة",this_was_helpful:"كان هذا مفيدًا",optional:"اختياري",no_conversations_yet:"لا يوجد محادثات",back_to_conversations:"العودة إلى المحادثات",closed_conversations:"المحادثات المغلقة"},n5={write_a_message_placeholder:"একটি বার্তা লিখুন...",your_issue_has_been_resolved:"আপনার সমস্যা সমাধান হয়েছে!",new_conversation:"নতুন কথোপকথন",welcome_screen_title:"আমাদের সাপোর্ট চ্যাটে স্বাগতম",welcome_screen_description:"আমরা সাহায্য করতে এখানে আছি! একটি কথোপকথন শুরু করুন এবং আমরা যত তাড়াতাড়ি সম্ভব আপনার কাছে ফিরে আসব।",your_name_placeholder:"আপনার নাম",your_email_placeholder:"আপনার ইমেইল ঠিকানা",start_chat_button:"সাপোর্টের সাথে কথা বলুন",start_chat_button_loading:"সংযোগ হচ্ছে...",i_need_more_help:"আমার আরও সাহায্য দরকার",this_was_helpful:"এটি সহায়ক ছিল",optional:"ঐচ্ছিক",no_conversations_yet:"এখনো কোনো কথোপকথন নেই",back_to_conversations:"কথোপকথনে ফিরে যান",closed_conversations:"বন্ধ কথোপকথন"},i5={write_a_message_placeholder:"Напишете съобщение...",your_issue_has_been_resolved:"Вашият проблем е разрешен!",new_conversation:"Нов разговор",welcome_screen_title:"Добре дошли в нашия чат за поддръжка",welcome_screen_description:"Тук сме, за да помогнем! Започнете разговор и ще ви отговорим възможно най-скоро.",your_name_placeholder:"Вашето име",your_email_placeholder:"Вашият имейл адрес",start_chat_button:"Свържете се с поддръжка",start_chat_button_loading:"Свързване...",i_need_more_help:"Имам нужда от повече помощ",this_was_helpful:"Това беше полезно",optional:"По избор",no_conversations_yet:"Все още няма разговори",back_to_conversations:"Назад към разговорите",closed_conversations:"Затворени разговори"},r5={write_a_message_placeholder:"Napište zprávu...",your_issue_has_been_resolved:"Váš problém byl vyřešen!",new_conversation:"Nová konverzace",welcome_screen_title:"Vítejte v našem chatu podpory",welcome_screen_description:"Jsme tu, abychom vám pomohli! Zahajte konverzaci a ozveme se vám co nejdříve.",your_name_placeholder:"Vaše jméno",your_email_placeholder:"Vaše e-mailová adresa",start_chat_button:"Kontaktovat podporu",start_chat_button_loading:"Připojování...",i_need_more_help:"Potřebuji další pomoc",this_was_helpful:"Toto bylo užitečné",optional:"Volitelné",no_conversations_yet:"Zatím žádné konverzace",back_to_conversations:"Zpět na konverzace",closed_conversations:"Uzavřené konverzace"},a5={write_a_message_placeholder:"Skriv en besked...",your_issue_has_been_resolved:"Dit problem er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vores support chat",welcome_screen_description:"Vi er her for at hjælpe! Start en samtale, og vi vender tilbage til dig så hurtigt som muligt.",your_name_placeholder:"Dit navn",your_email_placeholder:"Din e-mailadresse",start_chat_button:"Tal med support",start_chat_button_loading:"Forbinder...",i_need_more_help:"Jeg har brug for mere hjælp",this_was_helpful:"Dette var nyttigt",optional:"Valgfrit",no_conversations_yet:"Ingen samtaler endnu",back_to_conversations:"Tilbage til samtaler",closed_conversations:"Lukkede samtaler"},s5={write_a_message_placeholder:"Γράψτε ένα μήνυμα...",your_issue_has_been_resolved:"Το πρόβλημά σας επιλύθηκε!",new_conversation:"Νέα συνομιλία",welcome_screen_title:"Καλώς ήρθατε στη συνομιλία υποστήριξης",welcome_screen_description:"Είμαστε εδώ για να βοηθήσουμε! Ξεκινήστε μια συνομιλία και θα σας απαντήσουμε το συντομότερο δυνατό.",your_name_placeholder:"Το όνομά σας",your_email_placeholder:"Η διεύθυνση email σας",start_chat_button:"Επικοινωνία με την υποστήριξη",start_chat_button_loading:"Σύνδεση...",i_need_more_help:"Χρειάζομαι περισσότερη βοήθεια",this_was_helpful:"Αυτό ήταν χρήσιμο",optional:"Προαιρετικό",no_conversations_yet:"Δεν υπάρχουν συνομιλίες ακόμα",back_to_conversations:"Πίσω στις συνομιλίες",closed_conversations:"Κλειστές συνομιλίες"},o5={write_a_message_placeholder:"Nachricht schreiben...",your_issue_has_been_resolved:"Ihr Problem wurde gelöst!",new_conversation:"Neue Konversation",welcome_screen_title:"Willkommen in unserem Support-Chat",welcome_screen_description:"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.",your_name_placeholder:"Ihr Name",your_email_placeholder:"Ihre E-Mail-Adresse",start_chat_button:"Mit dem Support sprechen",start_chat_button_loading:"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"},l5={write_a_message_placeholder:"Write a message...",your_issue_has_been_resolved:"Your issue has been resolved!",new_conversation:"New conversation",welcome_screen_title:"Welcome to our support chat",welcome_screen_description:"We're here to help! Start a conversation and we'll get back to you as soon as possible.",your_name_placeholder:"Your name",your_email_placeholder:"Your email address",start_chat_button:"Talk to support",start_chat_button_loading:"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"},u5={write_a_message_placeholder:"Escribe un mensaje...",your_issue_has_been_resolved:"¡Tu problema fue resuelto!",new_conversation:"Nueva conversación",welcome_screen_title:"Bienvenido a nuestro chat de soporte",welcome_screen_description:"¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.",your_name_placeholder:"Tu nombre",your_email_placeholder:"Tu correo electrónico",start_chat_button:"Hablar con soporte",start_chat_button_loading:"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"},c5={write_a_message_placeholder:"Magsulat ng mensahe...",your_issue_has_been_resolved:"Nalutas na ang iyong isyu!",new_conversation:"Bagong usapan",welcome_screen_title:"Maligayang pagdating sa aming support chat",welcome_screen_description:"Narito kami upang tumulong! Magsimula ng usapan at babalikan ka namin sa lalong madaling panahon.",your_name_placeholder:"Iyong pangalan",your_email_placeholder:"Iyong email address",start_chat_button:"Makipag-usap sa support",start_chat_button_loading:"Kumokonekta...",i_need_more_help:"Kailangan ko pa ng tulong",this_was_helpful:"Nakatulong ito",optional:"Opsyonal",no_conversations_yet:"Wala pang mga usapan",back_to_conversations:"Bumalik sa mga usapan",closed_conversations:"Mga saradong usapan"},d5={write_a_message_placeholder:"Kirjoita viesti...",your_issue_has_been_resolved:"Ongelmasi on ratkaistu!",new_conversation:"Uusi keskustelu",welcome_screen_title:"Tervetuloa tukichattiin",welcome_screen_description:"Olemme täällä auttamassa! Aloita keskustelu ja palaamme sinulle mahdollisimman pian.",your_name_placeholder:"Nimesi",your_email_placeholder:"Sähköpostiosoitteesi",start_chat_button:"Keskustele tuen kanssa",start_chat_button_loading:"Yhdistetään...",i_need_more_help:"Tarvitsen lisää apua",this_was_helpful:"Tämä oli hyödyllistä",optional:"Valinnainen",no_conversations_yet:"Ei vielä keskusteluja",back_to_conversations:"Takaisin keskusteluihin",closed_conversations:"Suljetut keskustelut"},f5={write_a_message_placeholder:"Écrivez un message...",your_issue_has_been_resolved:"Votre problème a été résolu !",new_conversation:"Nouvelle conversation",welcome_screen_title:"Bienvenue dans notre chat de support",welcome_screen_description:"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.",your_name_placeholder:"Votre nom",your_email_placeholder:"Votre adresse e-mail",start_chat_button:"Parler au support",start_chat_button_loading:"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"},h5={write_a_message_placeholder:"एक संदेश लिखें...",your_issue_has_been_resolved:"आपकी समस्या हल हो गई है!",new_conversation:"नई बातचीत",welcome_screen_title:"हमारी सहायता चैट में आपका स्वागत है",welcome_screen_description:"हम मदद के लिए यहाँ हैं! बातचीत शुरू करें और हम जल्द से जल्द आपसे संपर्क करेंगे।",your_name_placeholder:"आपका नाम",your_email_placeholder:"आपका ईमेल पता",start_chat_button:"सहायता से बात करें",start_chat_button_loading:"कनेक्ट हो रहा है...",i_need_more_help:"मुझे और मदद चाहिए",this_was_helpful:"यह मददगार था",optional:"वैकल्पिक",no_conversations_yet:"अभी तक कोई बातचीत नहीं",back_to_conversations:"बातचीत पर वापस जाएं",closed_conversations:"बंद बातचीत"},p5={write_a_message_placeholder:"Scrivi un messaggio...",your_issue_has_been_resolved:"Il tuo problema è stato risolto!",new_conversation:"Nuova conversazione",welcome_screen_title:"Benvenuto nella nostra chat di supporto",welcome_screen_description:"Siamo qui per aiutarti! Inizia una conversazione e ti risponderemo il prima possibile.",your_name_placeholder:"Il tuo nome",your_email_placeholder:"Il tuo indirizzo email",start_chat_button:"Parla con il supporto",start_chat_button_loading:"Connessione in corso...",i_need_more_help:"Ho bisogno di ulteriore aiuto",this_was_helpful:"Questo è stato utile",optional:"Opzionale",no_conversations_yet:"Nessuna conversazione ancora",back_to_conversations:"Torna alle conversazioni",closed_conversations:"Conversazioni chiuse"},m5={write_a_message_placeholder:"メッセージを入力...",your_issue_has_been_resolved:"問題が解決しました!",new_conversation:"新しい会話",welcome_screen_title:"サポートチャットへようこそ",welcome_screen_description:"お手伝いいたします!会話を開始していただければ、できるだけ早くご連絡いたします。",your_name_placeholder:"お名前",your_email_placeholder:"メールアドレス",start_chat_button:"サポートに相談",start_chat_button_loading:"接続中...",i_need_more_help:"さらにサポートが必要です",this_was_helpful:"役に立ちました",optional:"任意",no_conversations_yet:"まだ会話がありません",back_to_conversations:"会話一覧に戻る",closed_conversations:"終了した会話"},g5={write_a_message_placeholder:"메시지를 입력하세요...",your_issue_has_been_resolved:"문제가 해결되었습니다!",new_conversation:"새 대화",welcome_screen_title:"고객 지원 채팅에 오신 것을 환영합니다",welcome_screen_description:"도움을 드리기 위해 여기 있습니다! 대화를 시작해 주시면 가능한 한 빨리 연락드리겠습니다.",your_name_placeholder:"이름",your_email_placeholder:"이메일 주소",start_chat_button:"상담원과 대화",start_chat_button_loading:"연결 중...",i_need_more_help:"추가 도움이 필요합니다",this_was_helpful:"도움이 되었습니다",optional:"선택 사항",no_conversations_yet:"아직 대화가 없습니다",back_to_conversations:"대화 목록으로 돌아가기",closed_conversations:"종료된 대화"},b5={write_a_message_placeholder:"Schrijf een bericht...",your_issue_has_been_resolved:"Uw probleem is opgelost!",new_conversation:"Nieuw gesprek",welcome_screen_title:"Welkom bij onze supportchat",welcome_screen_description:"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.",your_name_placeholder:"Uw naam",your_email_placeholder:"Uw e-mailadres",start_chat_button:"Praat met ondersteuning",start_chat_button_loading:"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"},v5={write_a_message_placeholder:"Skriv en melding...",your_issue_has_been_resolved:"Problemet ditt er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vår kundestøtte-chat",welcome_screen_description:"Vi er her for å hjelpe! Start en samtale så kommer vi tilbake til deg så snart som mulig.",your_name_placeholder:"Ditt navn",your_email_placeholder:"Din e-postadresse",start_chat_button:"Snakk med kundestøtte",start_chat_button_loading:"Kobler til...",i_need_more_help:"Jeg trenger mer hjelp",this_was_helpful:"Dette var nyttig",optional:"Valgfritt",no_conversations_yet:"Ingen samtaler ennå",back_to_conversations:"Tilbake til samtaler",closed_conversations:"Lukkede samtaler"},y5={write_a_message_placeholder:"Napisz wiadomość...",your_issue_has_been_resolved:"Twój problem został rozwiązany!",new_conversation:"Nowa rozmowa",welcome_screen_title:"Witamy w naszym czacie wsparcia",welcome_screen_description:"Jesteśmy tutaj, aby pomóc! Rozpocznij rozmowę, a odpowiemy jak najszybciej.",your_name_placeholder:"Twoje imię",your_email_placeholder:"Twój adres email",start_chat_button:"Porozmawiaj ze wsparciem",start_chat_button_loading:"Łączenie...",i_need_more_help:"Potrzebuję więcej pomocy",this_was_helpful:"To było pomocne",optional:"Opcjonalne",no_conversations_yet:"Jeszcze brak rozmów",back_to_conversations:"Powrót do rozmów",closed_conversations:"Zamknięte rozmowy"},x5={write_a_message_placeholder:"Escreva uma mensagem...",your_issue_has_been_resolved:"Seu problema foi resolvido!",new_conversation:"Nova conversa",welcome_screen_title:"Bem-vindo ao nosso chat de suporte",welcome_screen_description:"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.",your_name_placeholder:"Seu nome",your_email_placeholder:"Seu endereço de email",start_chat_button:"Falar com o suporte",start_chat_button_loading:"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"},_5={write_a_message_placeholder:"Scrie un mesaj...",your_issue_has_been_resolved:"Problema ta a fost rezolvată!",new_conversation:"Conversație nouă",welcome_screen_title:"Bine ai venit la chat-ul nostru de suport",welcome_screen_description:"Suntem aici să te ajutăm! Începe o conversație și îți vom răspunde cât mai curând posibil.",your_name_placeholder:"Numele tău",your_email_placeholder:"Adresa ta de email",start_chat_button:"Vorbește cu suportul",start_chat_button_loading:"Se conectează...",i_need_more_help:"Am nevoie de mai mult ajutor",this_was_helpful:"Acest lucru a fost util",optional:"Opțional",no_conversations_yet:"Încă nu există conversații",back_to_conversations:"Înapoi la conversații",closed_conversations:"Conversații închise"},E5={write_a_message_placeholder:"Skriv ett meddelande...",your_issue_has_been_resolved:"Ditt problem har lösts!",new_conversation:"Ny konversation",welcome_screen_title:"Välkommen till vår supportchatt",welcome_screen_description:"Vi är här för att hjälpa! Starta en konversation så återkommer vi till dig så snart som möjligt.",your_name_placeholder:"Ditt namn",your_email_placeholder:"Din e-postadress",start_chat_button:"Prata med support",start_chat_button_loading:"Ansluter...",i_need_more_help:"Jag behöver mer hjälp",this_was_helpful:"Detta var användbart",optional:"Frivilligt",no_conversations_yet:"Inga konversationer ännu",back_to_conversations:"Tillbaka till konversationer",closed_conversations:"Stängda konversationer"},T5={write_a_message_placeholder:"Напишите сообщение...",your_issue_has_been_resolved:"Ваша проблема решена!",new_conversation:"Новый разговор",welcome_screen_title:"Добро пожаловать в чат поддержки",welcome_screen_description:"Мы здесь, чтобы помочь! Начните разговор, и мы ответим вам как можно скорее.",your_name_placeholder:"Ваше имя",your_email_placeholder:"Ваш адрес электронной почты",start_chat_button:"Связаться с поддержкой",start_chat_button_loading:"Подключение...",i_need_more_help:"Мне нужна дополнительная помощь",this_was_helpful:"Это было полезно",optional:"Необязательно",no_conversations_yet:"Пока нет разговоров",back_to_conversations:"Назад к разговорам",closed_conversations:"Закрытые разговоры"},w5={write_a_message_placeholder:"เขียนข้อความ...",your_issue_has_been_resolved:"ปัญหาของคุณได้รับการแก้ไขแล้ว!",new_conversation:"การสนทนาใหม่",welcome_screen_title:"ยินดีต้อนรับสู่แชทสนับสนุนของเรา",welcome_screen_description:"เราพร้อมช่วยเหลือคุณ! เริ่มการสนทนาและเราจะติดต่อกลับโดยเร็วที่สุด",your_name_placeholder:"ชื่อของคุณ",your_email_placeholder:"ที่อยู่อีเมลของคุณ",start_chat_button:"พูดคุยกับฝ่ายสนับสนุน",start_chat_button_loading:"กำลังเชื่อมต่อ...",i_need_more_help:"ฉันต้องการความช่วยเหลือเพิ่มเติม",this_was_helpful:"สิ่งนี้เป็นประโยชน์",optional:"ไม่บังคับ",no_conversations_yet:"ยังไม่มีการสนทนา",back_to_conversations:"กลับไปที่การสนทนา",closed_conversations:"การสนทนาที่ปิดแล้ว"},S5={write_a_message_placeholder:"Bir mesaj yazın...",your_issue_has_been_resolved:"Sorununuz çözüldü!",new_conversation:"Yeni konuşma",welcome_screen_title:"Destek sohbetimize hoş geldiniz",welcome_screen_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_placeholder:"Adınız",your_email_placeholder:"E-posta adresiniz",start_chat_button:"Destekle konuş",start_chat_button_loading:"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"},A5={write_a_message_placeholder:"پیغام لکھیں...",your_issue_has_been_resolved:"آپ کا مسئلہ حل ہو گیا ہے!",new_conversation:"نئی گفتگو",welcome_screen_title:"ہماری سپورٹ چیٹ میں خوش آمدید",welcome_screen_description:"ہم مدد کے لیے حاضر ہیں! گفتگو شروع کریں اور ہم جلد از جلد آپ سے رابطہ کریں گے۔",your_name_placeholder:"آپ کا نام",your_email_placeholder:"آپ کا ای میل پتہ",start_chat_button:"سپورٹ سے بات کریں",start_chat_button_loading:"جڑ رہا ہے...",i_need_more_help:"مجھے مزید مدد چاہیے",this_was_helpful:"یہ مددگار تھا",optional:"اختیاری",no_conversations_yet:"ابھی تک کوئی گفتگو نہیں",back_to_conversations:"گفتگو پر واپس جائیں",closed_conversations:"بند گفتگو"},C5={write_a_message_placeholder:"Viết tin nhắn...",your_issue_has_been_resolved:"Vấn đề của bạn đã được giải quyết!",new_conversation:"Cuộc trò chuyện mới",welcome_screen_title:"Chào mừng đến với hỗ trợ trò chuyện của chúng tôi",welcome_screen_description:"Chúng tôi ở đây để giúp đỡ! Bắt đầu cuộc trò chuyện và chúng tôi sẽ phản hồi sớm nhất có thể.",your_name_placeholder:"Tên của bạn",your_email_placeholder:"Địa chỉ email của bạn",start_chat_button:"Liên hệ hỗ trợ",start_chat_button_loading:"Đang kết nối...",i_need_more_help:"Tôi cần thêm trợ giúp",this_was_helpful:"Điều này hữu ích",optional:"Tùy chọn",no_conversations_yet:"Chưa có cuộc trò chuyện nào",back_to_conversations:"Quay lại cuộc trò chuyện",closed_conversations:"Cuộc trò chuyện đã đóng"},k5={write_a_message_placeholder:"写一条消息...",your_issue_has_been_resolved:"您的问题已解决!",new_conversation:"新对话",welcome_screen_title:"欢迎使用我们的客服聊天",welcome_screen_description:"我们随时为您提供帮助!开始对话,我们会尽快回复您。",your_name_placeholder:"您的姓名",your_email_placeholder:"您的电子邮件地址",start_chat_button:"联系客服",start_chat_button_loading:"连接中...",i_need_more_help:"我需要更多帮助",this_was_helpful:"这很有帮助",optional:"可选",no_conversations_yet:"暂无对话",back_to_conversations:"返回对话",closed_conversations:"已关闭的对话"},O5={write_a_message_placeholder:"Napišite poruku...",your_issue_has_been_resolved:"Vaš problem je riješen!",new_conversation:"Novi razgovor",welcome_screen_title:"Dobrodošli u naš chat za podršku",welcome_screen_description:"Ovdje smo da pomognemo! Započnite razgovor i odgovorit ćemo vam što je prije moguće.",your_name_placeholder:"Vaše ime",your_email_placeholder:"Vaša e-mail adresa",start_chat_button:"Razgovarajte s podrškom",start_chat_button_loading:"Povezivanje...",i_need_more_help:"Trebam dodatnu pomoć",this_was_helpful:"Ovo je bilo korisno",optional:"Neobavezno",no_conversations_yet:"Još nema razgovora",back_to_conversations:"Natrag na razgovore",closed_conversations:"Zatvoreni razgovori"},N5={write_a_message_placeholder:"Kirjuta sõnum...",your_issue_has_been_resolved:"Teie probleem on lahendatud!",new_conversation:"Uus vestlus",welcome_screen_title:"Tere tulemast meie tugiteenusesse",welcome_screen_description:"Oleme siin, et aidata! Alustage vestlust ja vastame teile esimesel võimalusel.",your_name_placeholder:"Teie nimi",your_email_placeholder:"Teie e-posti aadress",start_chat_button:"Räägi toega",start_chat_button_loading:"Ühendamine...",i_need_more_help:"Vajan rohkem abi",this_was_helpful:"See oli kasulik",optional:"Valikuline",no_conversations_yet:"Vestlusi pole veel",back_to_conversations:"Tagasi vestluste juurde",closed_conversations:"Suletud vestlused"},R5={write_a_message_placeholder:"Írjon üzenetet...",your_issue_has_been_resolved:"A problémája megoldódott!",new_conversation:"Új beszélgetés",welcome_screen_title:"Üdvözöljük az ügyfélszolgálati chatünkön",welcome_screen_description:"Azért vagyunk itt, hogy segítsünk! Kezdjen beszélgetést, és mihamarabb válaszolunk.",your_name_placeholder:"Az Ön neve",your_email_placeholder:"Az Ön e-mail címe",start_chat_button:"Beszélgetés az ügyfélszolgálattal",start_chat_button_loading:"Csatlakozás...",i_need_more_help:"További segítségre van szükségem",this_was_helpful:"Ez hasznos volt",optional:"Opcionális",no_conversations_yet:"Még nincsenek beszélgetések",back_to_conversations:"Vissza a beszélgetésekhez",closed_conversations:"Lezárt beszélgetések"},D5={write_a_message_placeholder:"Skrifaðu skilaboð...",your_issue_has_been_resolved:"Málið þitt hefur verið leyst!",new_conversation:"Nýtt samtal",welcome_screen_title:"Velkomin í þjónustuverið okkar",welcome_screen_description:"Við erum hér til að hjálpa! Byrjaðu samtal og við munum svara eins fljótt og auðið er.",your_name_placeholder:"Nafnið þitt",your_email_placeholder:"Netfangið þitt",start_chat_button:"Tala við þjónustuver",start_chat_button_loading:"Tengist...",i_need_more_help:"Ég þarf meiri hjálp",this_was_helpful:"Þetta var gagnlegt",optional:"Valfrjálst",no_conversations_yet:"Engin samtöl ennþá",back_to_conversations:"Til baka í samtöl",closed_conversations:"Lokuð samtöl"},M5={write_a_message_placeholder:"Rakstiet ziņojumu...",your_issue_has_been_resolved:"Jūsu problēma ir atrisināta!",new_conversation:"Jauna saruna",welcome_screen_title:"Laipni lūdzam mūsu atbalsta tērzēšanā",welcome_screen_description:"Mēs esam šeit, lai palīdzētu! Sāciet sarunu, un mēs jums atbildēsim pēc iespējas ātrāk.",your_name_placeholder:"Jūsu vārds",your_email_placeholder:"Jūsu e-pasta adrese",start_chat_button:"Sazināties ar atbalstu",start_chat_button_loading:"Savienošana...",i_need_more_help:"Man vajag vairāk palīdzības",this_was_helpful:"Tas bija noderīgi",optional:"Neobligāts",no_conversations_yet:"Pagaidām nav sarunu",back_to_conversations:"Atpakaļ pie sarunām",closed_conversations:"Slēgtās sarunas"},L5={write_a_message_placeholder:"Parašykite žinutę...",your_issue_has_been_resolved:"Jūsų problema išspręsta!",new_conversation:"Naujas pokalbis",welcome_screen_title:"Sveiki atvykę į mūsų pagalbos pokalbį",welcome_screen_description:"Mes čia, kad padėtume! Pradėkite pokalbį ir mes atsakysime kuo greičiau.",your_name_placeholder:"Jūsų vardas",your_email_placeholder:"Jūsų el. pašto adresas",start_chat_button:"Kalbėti su pagalba",start_chat_button_loading:"Jungiamasi...",i_need_more_help:"Man reikia daugiau pagalbos",this_was_helpful:"Tai buvo naudinga",optional:"Neprivaloma",no_conversations_yet:"Pokalbių dar nėra",back_to_conversations:"Grįžti į pokalbius",closed_conversations:"Uždaryti pokalbiai"},I5={write_a_message_placeholder:"Schreift eng Noriicht...",your_issue_has_been_resolved:"Äert Problem gouf geléist!",new_conversation:"Nei Konversatioun",welcome_screen_title:"Wëllkomm bei eisem Support-Chat",welcome_screen_description:"Mir sinn hei fir ze hëllefen! Start eng Konversatioun a mir äntweren Iech esou séier wéi méiglech.",your_name_placeholder:"Ären Numm",your_email_placeholder:"Är E-Mail-Adress",start_chat_button:"Mat dem Support schwätzen",start_chat_button_loading:"Verbindung...",i_need_more_help:"Ech brauch méi Hëllef",this_was_helpful:"Dat war hëllefräich",optional:"Fakultativ",no_conversations_yet:"Nach keng Konversatiounen",back_to_conversations:"Zréck zu de Konversatiounen",closed_conversations:"Zougemaachte Konversatiounen"},P5={write_a_message_placeholder:"Ikteb messaġġ...",your_issue_has_been_resolved:"Il-problema tiegħek ġiet riżolta!",new_conversation:"Konversazzjoni ġdida",welcome_screen_title:"Merħba fis-support chat tagħna",welcome_screen_description:"Aħna hawn biex ngħinu! Ibda konversazzjoni u nirrispondu malajr kemm jista' jkun.",your_name_placeholder:"Ismek",your_email_placeholder:"L-indirizz tal-email tiegħek",start_chat_button:"Kellem lis-support",start_chat_button_loading:"Qed jikkonnettja...",i_need_more_help:"Għandi bżonn aktar għajnuna",this_was_helpful:"Dan kien ta' għajnuna",optional:"Mhux obbligatorju",no_conversations_yet:"Għad m'hemmx konversazzjonijiet",back_to_conversations:"Lura għall-konversazzjonijiet",closed_conversations:"Konversazzjonijiet magħluqa"},B5={write_a_message_placeholder:"Skriv en melding...",your_issue_has_been_resolved:"Saken din er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vår kundestøtte",welcome_screen_description:"Vi er her for å hjelpe! Start en samtale, så svarer vi deg så snart som mulig.",your_name_placeholder:"Ditt navn",your_email_placeholder:"Din e-postadresse",start_chat_button:"Snakk med kundestøtte",start_chat_button_loading:"Kobler til...",i_need_more_help:"Jeg trenger mer hjelp",this_was_helpful:"Dette var nyttig",optional:"Valgfritt",no_conversations_yet:"Ingen samtaler ennå",back_to_conversations:"Tilbake til samtaler",closed_conversations:"Lukkede samtaler"},j5={write_a_message_placeholder:"Napíšte správu...",your_issue_has_been_resolved:"Váš problém bol vyriešený!",new_conversation:"Nová konverzácia",welcome_screen_title:"Vitajte v našom zákazníckom chate",welcome_screen_description:"Sme tu, aby sme vám pomohli! Začnite konverzáciu a odpovieme vám čo najskôr.",your_name_placeholder:"Vaše meno",your_email_placeholder:"Vaša e-mailová adresa",start_chat_button:"Hovoriť s podporou",start_chat_button_loading:"Pripájanie...",i_need_more_help:"Potrebujem ďalšiu pomoc",this_was_helpful:"Toto bolo užitočné",optional:"Voliteľné",no_conversations_yet:"Zatiaľ žiadne konverzácie",back_to_conversations:"Späť na konverzácie",closed_conversations:"Uzavreté konverzácie"},Tx={ar:t5,bn:n5,bg:i5,cs:r5,da:a5,de:o5,el:s5,en:l5,es:u5,et:N5,fi:d5,fil:c5,fr:f5,hi:h5,hr:O5,hu:R5,is:D5,it:p5,ja:m5,ko:g5,lb:I5,lt:L5,lv:M5,mt:P5,nb:B5,nl:b5,no:v5,pl:y5,pt:x5,ro:_5,ru:T5,sk:j5,sv:E5,th:w5,tr:S5,ur:A5,vi:C5,"zh-cn":k5},z5=Object.keys(Tx);function U5(e){return z5.includes(e)}function H5(e,t,n){var i;return((i=n==null?void 0:n[t])==null?void 0:i[e])||Tx[t][e]||""}const F5="4.0.50";class V5{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 wx=_.createContext(null);function Y5({options:e,children:t,components:n,storage:i,loadingComponent:r}){const a=_.useRef(null),s=_.useRef(!1),[o,l]=_.useState(null),u=_.useMemo(()=>new V5({components:n}),[n]);return _.useEffect(()=>{s.current||(s.current=!0,e5.initialize({config:e,storage:i}).then(l).catch(console.error))},[]),o?pn.createElement(wx.Provider,{value:{widgetCtx:o,config:e,components:n,componentStore:u,version:F5,contentIframeRef:a}},t):r||null}function Ct(){const e=_.useContext(wx);if(!e)throw new Error("useWidget must be used within a WidgetProvider");return e}function $e(){const{config:e}=Ct();return e}function El(e){return _.useSyncExternalStore(e.subscribe,e.get,e.get)}function Sx(){const{widgetCtx:e}=Ct();return{contactState:El(e.contactCtx.state),createUnverifiedContact:e.contactCtx.createUnverifiedContact}}function kp(){const[e,t]=_.useState("ltr");return _.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 En(){const{widgetCtx:e}=Ct();return{messagesState:El(e.messageCtx.state),sendMessage:e.messageCtx.sendMessage}}function wi(){const{widgetCtx:e}=Ct(),{oneOpenSessionAllowed:t}=$e(),n=El(e.sessionCtx.sessionState),i=El(e.sessionCtx.sessionsState),{openSessions:r,closedSessions:a}=_.useMemo(()=>({openSessions:i.data.filter(o=>o.isOpened===!0),closedSessions:i.data.filter(o=>o.isOpened===!1)}),[i.data]),s=_.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 Ax(){var e,t,n;const{sessionState:i}=wi(),{messagesState:r}=En(),a=((e=i.session)==null?void 0:e.assignee.kind)==="ai",s=((n=(t=r.messages)==null?void 0:t.at(-1))==null?void 0:n.type)==="USER";return{isAwaitingBotReply:!!(r.isSendingMessageToAI||(a||i.isCreatingSession)&&(r.isSendingMessage||s))}}function Si(){const{widgetCtx:e}=Ct();return{routerState:El(e.routerCtx.state),toSessionsScreen:e.routerCtx.toSessionsScreen,toChatScreen:e.routerCtx.toChatScreen}}const Yr=new Map;function q5(){const[e,t]=_.useState([]),{widgetCtx:{api:n}}=Ct();function i(c){const d=c.map(f=>({file:f,id:Cp(),status:"pending",progress:0}));t(f=>[...f,...d]),d.forEach(s)}function r(c,d){t(f=>f.map(h=>h.id===c?{...h,...d}:h))}function a(c){t(d=>d.filter(f=>f.id!==c))}const s=async c=>{const d=new AbortController;Yr.set(c.id,d);try{t(h=>h.map(g=>g.id===c.id?{...g,status:"uploading",progress:0}:g));const f=await n.uploadFile({file:c.file,abortSignal:d.signal,onProgress:h=>{r(c.id,{progress:h})}});r(c.id,{status:"success",fileUrl:f.fileUrl,progress:100})}catch(f){d.signal.aborted||r(c.id,{status:"error",error:f instanceof Error?f.message:"Upload failed",progress:0})}finally{Yr.delete(c.id)}},o=c=>{const d=Yr.get(c);d&&(d.abort(),Yr.delete(c)),a(c)},l=_.useMemo(()=>e.filter(c=>c.status==="success"&&c.fileUrl),[e]);function u(){Yr.forEach(c=>c.abort()),Yr.clear(),t([])}return _.useEffect(()=>()=>{Yr.forEach(c=>c.abort()),Yr.clear()},[]),{allFiles:e,appendFiles:i,handleCancelUpload:o,successFiles:l,emptyTheFiles:u,getFileById:c=>e.find(d=>d.id===c),getUploadProgress:c=>{var d;return((d=e.find(f=>f.id===c))==null?void 0:d.progress)??0},getUploadStatus:c=>{var d;return(d=e.find(f=>f.id===c))==null?void 0:d.status},hasErrors:e.some(c=>c.status==="error"),isUploading:e.some(c=>c.status==="uploading")}}const Cx=_.createContext(null);function G5({children:e}){const t=$e(),[n,i]=_.useState(()=>t.inline?!0:t.isOpen??!1);return _.useEffect(()=>{i(r=>t.isOpen??r)},[t.isOpen]),_.useEffect(()=>{const r=t.openAfterNSeconds;if(typeof r!="number"||isNaN(r))return;const a=setTimeout(()=>i(!0),r*1e3);return()=>clearTimeout(a)},[t.openAfterNSeconds]),pn.createElement(Cx.Provider,{value:{isOpen:n,setIsOpen:i}},e)}function ja(){const e=_.useContext(Cx);if(!e)throw new Error("useWidgetTrigger must be used within a WidgetTriggerProvider");return e}function kx(){var e,t;const{widgetCtx:n}=Ct(),{modesComponents:i}=$e(),{sessionState:r}=wi(),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,d;return[(o==null?void 0:o.id)||"",((c=o==null?void 0:o.name)==null?void 0:c.toLowerCase())||"",((d=o==null?void 0:o.slug)==null?void 0:d.toLowerCase())||""].includes(u.key.toLowerCase())}))==null?void 0:t.component;return{modes:a,modesComponents:i,activeModeId:s,activeMode:o,Component:l}}function Ox(){const{widgetCtx:e}=Ct(),{messagesState:{messages:t}}=En(),{csatRequestedMessage:n,isCsatRequested:i,csatSubmittedMessage:r,isCsatSubmitted:a,submittedScore:s,submittedFeedback:o}=_.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}}/**
68
+ ${a}`:a})();return{id:xl(),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||xl(),timestamp:new Date().toISOString(),component:"bot_message",agent:this.config.bot?{name:this.config.bot.name||"",isAi:!0,avatarUrl:null,avatar:null,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:xl(),timestamp:new Date().toISOString(),component:"bot_message",data:{message:a,variant:"error",action:void 0}}),this.config=t,this.api=n,this.sessionCtx=i,this.contactCtx=r}},ZD=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,d;if((l=this.config.router)!=null&&l.chatScreenOnly&&!((u=this.sessionCtx.sessionState.get().session)!=null&&u.id)){const f=(c=o.find(h=>h.isOpened))==null?void 0:c.id;return f?this.toChatScreen(f):void 0}o.length||((d=this.config.router)==null?void 0:d.goToChatIfNoSessions)!==!1&&!s&&this.state.get().screen!=="chat"&&this.toChatScreen()})},this.toSessionsScreen=()=>{this.resetChat(),this.state.setPartial({screen:"sessions"})},this.toChatScreen=s=>{var o,l;this.resetChat();let u;if(s){if(u=this.sessionCtx.sessionsState.get().data.find(c=>c.id===s),!u)return;this.sessionCtx.sessionState.setPartial({session:u})}this.state.setPartial({screen:"chat"}),(l=(o=this.config.hooks)==null?void 0:o.onNavigateToChat)==null||l.call(o,{session:u})},this.config=t,this.contactCtx=n,this.sessionCtx=i,this.resetChat=r,this.state=new zs({screen:this.contactCtx.shouldCollectData()?"welcome":(a=this.config.router)!=null&&a.chatScreenOnly?"chat":"sessions"}),this.registerRoutingListener()}},JD=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 _l=class Fh{constructor({config:t,storage:n,modes:i,org:r}){if(this.modes=[],this.resetChat=()=>{this.sessionCtx.reset(),this.messageCtx.reset()},!Fh.pollingIntervalsSeconds)throw Error("Widget polling values are not defined, did you call WidgetCtx.initialize()");this.config=t,this.org=r,this.api=new xx({config:t}),this.storageCtx=n?new JD({storage:n,config:t}):void 0,this.modes=i,this.contactCtx=new XD({api:this.api,config:this.config,storageCtx:this.storageCtx}),this.sessionCtx=new QD({config:this.config,api:this.api,contactCtx:this.contactCtx,sessionsPollingIntervalSeconds:Fh.pollingIntervalsSeconds.sessions}),this.messageCtx=new WD({config:this.config,api:this.api,sessionCtx:this.sessionCtx,contactCtx:this.contactCtx}),this.csatCtx=new KD({config:this.config,api:this.api,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx}),this.activeSessionPollingCtx=new $D({api:this.api,config:this.config,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx,sessionPollingIntervalSeconds:Fh.pollingIntervalsSeconds.session}),this.routerCtx=new ZD({config:this.config,contactCtx:this.contactCtx,sessionCtx:this.sessionCtx,resetChat:this.resetChat})}};_l.pollingIntervalsSeconds=null,_l.initialize=async({config:e,storage:t})=>{var n,i,r;const a=await new xx({config:e}).getExternalWidgetConfig();if(!a.data)throw new Error("Failed to fetch widget config");return _l.pollingIntervalsSeconds={session:((n=a.data)==null?void 0:n.sessionPollingIntervalSeconds)||10,sessions:((i=a.data)==null?void 0:i.sessionsPollingIntervalSeconds)||60},new _l({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 e5=_l;const t5={write_a_message_placeholder:"اكتب رسالة...",your_issue_has_been_resolved:"تم حل مشكلتك!",new_conversation:"محادثة جديدة",welcome_screen_title:"مرحبًا بك في دردشة الدعم الخاصة بنا",welcome_screen_description:"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.",your_name_placeholder:"اسمك",your_email_placeholder:"عنوان بريدك الإلكتروني",start_chat_button:"تحدث إلى الدعم",start_chat_button_loading:"جاري الاتصال...",i_need_more_help:"أحتاج المزيد من المساعدة",this_was_helpful:"كان هذا مفيدًا",optional:"اختياري",no_conversations_yet:"لا يوجد محادثات",back_to_conversations:"العودة إلى المحادثات",closed_conversations:"المحادثات المغلقة"},n5={write_a_message_placeholder:"একটি বার্তা লিখুন...",your_issue_has_been_resolved:"আপনার সমস্যা সমাধান হয়েছে!",new_conversation:"নতুন কথোপকথন",welcome_screen_title:"আমাদের সাপোর্ট চ্যাটে স্বাগতম",welcome_screen_description:"আমরা সাহায্য করতে এখানে আছি! একটি কথোপকথন শুরু করুন এবং আমরা যত তাড়াতাড়ি সম্ভব আপনার কাছে ফিরে আসব।",your_name_placeholder:"আপনার নাম",your_email_placeholder:"আপনার ইমেইল ঠিকানা",start_chat_button:"সাপোর্টের সাথে কথা বলুন",start_chat_button_loading:"সংযোগ হচ্ছে...",i_need_more_help:"আমার আরও সাহায্য দরকার",this_was_helpful:"এটি সহায়ক ছিল",optional:"ঐচ্ছিক",no_conversations_yet:"এখনো কোনো কথোপকথন নেই",back_to_conversations:"কথোপকথনে ফিরে যান",closed_conversations:"বন্ধ কথোপকথন"},i5={write_a_message_placeholder:"Напишете съобщение...",your_issue_has_been_resolved:"Вашият проблем е разрешен!",new_conversation:"Нов разговор",welcome_screen_title:"Добре дошли в нашия чат за поддръжка",welcome_screen_description:"Тук сме, за да помогнем! Започнете разговор и ще ви отговорим възможно най-скоро.",your_name_placeholder:"Вашето име",your_email_placeholder:"Вашият имейл адрес",start_chat_button:"Свържете се с поддръжка",start_chat_button_loading:"Свързване...",i_need_more_help:"Имам нужда от повече помощ",this_was_helpful:"Това беше полезно",optional:"По избор",no_conversations_yet:"Все още няма разговори",back_to_conversations:"Назад към разговорите",closed_conversations:"Затворени разговори"},r5={write_a_message_placeholder:"Napište zprávu...",your_issue_has_been_resolved:"Váš problém byl vyřešen!",new_conversation:"Nová konverzace",welcome_screen_title:"Vítejte v našem chatu podpory",welcome_screen_description:"Jsme tu, abychom vám pomohli! Zahajte konverzaci a ozveme se vám co nejdříve.",your_name_placeholder:"Vaše jméno",your_email_placeholder:"Vaše e-mailová adresa",start_chat_button:"Kontaktovat podporu",start_chat_button_loading:"Připojování...",i_need_more_help:"Potřebuji další pomoc",this_was_helpful:"Toto bylo užitečné",optional:"Volitelné",no_conversations_yet:"Zatím žádné konverzace",back_to_conversations:"Zpět na konverzace",closed_conversations:"Uzavřené konverzace"},a5={write_a_message_placeholder:"Skriv en besked...",your_issue_has_been_resolved:"Dit problem er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vores support chat",welcome_screen_description:"Vi er her for at hjælpe! Start en samtale, og vi vender tilbage til dig så hurtigt som muligt.",your_name_placeholder:"Dit navn",your_email_placeholder:"Din e-mailadresse",start_chat_button:"Tal med support",start_chat_button_loading:"Forbinder...",i_need_more_help:"Jeg har brug for mere hjælp",this_was_helpful:"Dette var nyttigt",optional:"Valgfrit",no_conversations_yet:"Ingen samtaler endnu",back_to_conversations:"Tilbage til samtaler",closed_conversations:"Lukkede samtaler"},s5={write_a_message_placeholder:"Γράψτε ένα μήνυμα...",your_issue_has_been_resolved:"Το πρόβλημά σας επιλύθηκε!",new_conversation:"Νέα συνομιλία",welcome_screen_title:"Καλώς ήρθατε στη συνομιλία υποστήριξης",welcome_screen_description:"Είμαστε εδώ για να βοηθήσουμε! Ξεκινήστε μια συνομιλία και θα σας απαντήσουμε το συντομότερο δυνατό.",your_name_placeholder:"Το όνομά σας",your_email_placeholder:"Η διεύθυνση email σας",start_chat_button:"Επικοινωνία με την υποστήριξη",start_chat_button_loading:"Σύνδεση...",i_need_more_help:"Χρειάζομαι περισσότερη βοήθεια",this_was_helpful:"Αυτό ήταν χρήσιμο",optional:"Προαιρετικό",no_conversations_yet:"Δεν υπάρχουν συνομιλίες ακόμα",back_to_conversations:"Πίσω στις συνομιλίες",closed_conversations:"Κλειστές συνομιλίες"},o5={write_a_message_placeholder:"Nachricht schreiben...",your_issue_has_been_resolved:"Ihr Problem wurde gelöst!",new_conversation:"Neue Konversation",welcome_screen_title:"Willkommen in unserem Support-Chat",welcome_screen_description:"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.",your_name_placeholder:"Ihr Name",your_email_placeholder:"Ihre E-Mail-Adresse",start_chat_button:"Mit dem Support sprechen",start_chat_button_loading:"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"},l5={write_a_message_placeholder:"Write a message...",your_issue_has_been_resolved:"Your issue has been resolved!",new_conversation:"New conversation",welcome_screen_title:"Welcome to our support chat",welcome_screen_description:"We're here to help! Start a conversation and we'll get back to you as soon as possible.",your_name_placeholder:"Your name",your_email_placeholder:"Your email address",start_chat_button:"Talk to support",start_chat_button_loading:"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"},u5={write_a_message_placeholder:"Escribe un mensaje...",your_issue_has_been_resolved:"¡Tu problema fue resuelto!",new_conversation:"Nueva conversación",welcome_screen_title:"Bienvenido a nuestro chat de soporte",welcome_screen_description:"¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.",your_name_placeholder:"Tu nombre",your_email_placeholder:"Tu correo electrónico",start_chat_button:"Hablar con soporte",start_chat_button_loading:"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"},c5={write_a_message_placeholder:"Magsulat ng mensahe...",your_issue_has_been_resolved:"Nalutas na ang iyong isyu!",new_conversation:"Bagong usapan",welcome_screen_title:"Maligayang pagdating sa aming support chat",welcome_screen_description:"Narito kami upang tumulong! Magsimula ng usapan at babalikan ka namin sa lalong madaling panahon.",your_name_placeholder:"Iyong pangalan",your_email_placeholder:"Iyong email address",start_chat_button:"Makipag-usap sa support",start_chat_button_loading:"Kumokonekta...",i_need_more_help:"Kailangan ko pa ng tulong",this_was_helpful:"Nakatulong ito",optional:"Opsyonal",no_conversations_yet:"Wala pang mga usapan",back_to_conversations:"Bumalik sa mga usapan",closed_conversations:"Mga saradong usapan"},d5={write_a_message_placeholder:"Kirjoita viesti...",your_issue_has_been_resolved:"Ongelmasi on ratkaistu!",new_conversation:"Uusi keskustelu",welcome_screen_title:"Tervetuloa tukichattiin",welcome_screen_description:"Olemme täällä auttamassa! Aloita keskustelu ja palaamme sinulle mahdollisimman pian.",your_name_placeholder:"Nimesi",your_email_placeholder:"Sähköpostiosoitteesi",start_chat_button:"Keskustele tuen kanssa",start_chat_button_loading:"Yhdistetään...",i_need_more_help:"Tarvitsen lisää apua",this_was_helpful:"Tämä oli hyödyllistä",optional:"Valinnainen",no_conversations_yet:"Ei vielä keskusteluja",back_to_conversations:"Takaisin keskusteluihin",closed_conversations:"Suljetut keskustelut"},f5={write_a_message_placeholder:"Écrivez un message...",your_issue_has_been_resolved:"Votre problème a été résolu !",new_conversation:"Nouvelle conversation",welcome_screen_title:"Bienvenue dans notre chat de support",welcome_screen_description:"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.",your_name_placeholder:"Votre nom",your_email_placeholder:"Votre adresse e-mail",start_chat_button:"Parler au support",start_chat_button_loading:"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"},h5={write_a_message_placeholder:"एक संदेश लिखें...",your_issue_has_been_resolved:"आपकी समस्या हल हो गई है!",new_conversation:"नई बातचीत",welcome_screen_title:"हमारी सहायता चैट में आपका स्वागत है",welcome_screen_description:"हम मदद के लिए यहाँ हैं! बातचीत शुरू करें और हम जल्द से जल्द आपसे संपर्क करेंगे।",your_name_placeholder:"आपका नाम",your_email_placeholder:"आपका ईमेल पता",start_chat_button:"सहायता से बात करें",start_chat_button_loading:"कनेक्ट हो रहा है...",i_need_more_help:"मुझे और मदद चाहिए",this_was_helpful:"यह मददगार था",optional:"वैकल्पिक",no_conversations_yet:"अभी तक कोई बातचीत नहीं",back_to_conversations:"बातचीत पर वापस जाएं",closed_conversations:"बंद बातचीत"},p5={write_a_message_placeholder:"Scrivi un messaggio...",your_issue_has_been_resolved:"Il tuo problema è stato risolto!",new_conversation:"Nuova conversazione",welcome_screen_title:"Benvenuto nella nostra chat di supporto",welcome_screen_description:"Siamo qui per aiutarti! Inizia una conversazione e ti risponderemo il prima possibile.",your_name_placeholder:"Il tuo nome",your_email_placeholder:"Il tuo indirizzo email",start_chat_button:"Parla con il supporto",start_chat_button_loading:"Connessione in corso...",i_need_more_help:"Ho bisogno di ulteriore aiuto",this_was_helpful:"Questo è stato utile",optional:"Opzionale",no_conversations_yet:"Nessuna conversazione ancora",back_to_conversations:"Torna alle conversazioni",closed_conversations:"Conversazioni chiuse"},m5={write_a_message_placeholder:"メッセージを入力...",your_issue_has_been_resolved:"問題が解決しました!",new_conversation:"新しい会話",welcome_screen_title:"サポートチャットへようこそ",welcome_screen_description:"お手伝いいたします!会話を開始していただければ、できるだけ早くご連絡いたします。",your_name_placeholder:"お名前",your_email_placeholder:"メールアドレス",start_chat_button:"サポートに相談",start_chat_button_loading:"接続中...",i_need_more_help:"さらにサポートが必要です",this_was_helpful:"役に立ちました",optional:"任意",no_conversations_yet:"まだ会話がありません",back_to_conversations:"会話一覧に戻る",closed_conversations:"終了した会話"},g5={write_a_message_placeholder:"메시지를 입력하세요...",your_issue_has_been_resolved:"문제가 해결되었습니다!",new_conversation:"새 대화",welcome_screen_title:"고객 지원 채팅에 오신 것을 환영합니다",welcome_screen_description:"도움을 드리기 위해 여기 있습니다! 대화를 시작해 주시면 가능한 한 빨리 연락드리겠습니다.",your_name_placeholder:"이름",your_email_placeholder:"이메일 주소",start_chat_button:"상담원과 대화",start_chat_button_loading:"연결 중...",i_need_more_help:"추가 도움이 필요합니다",this_was_helpful:"도움이 되었습니다",optional:"선택 사항",no_conversations_yet:"아직 대화가 없습니다",back_to_conversations:"대화 목록으로 돌아가기",closed_conversations:"종료된 대화"},b5={write_a_message_placeholder:"Schrijf een bericht...",your_issue_has_been_resolved:"Uw probleem is opgelost!",new_conversation:"Nieuw gesprek",welcome_screen_title:"Welkom bij onze supportchat",welcome_screen_description:"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.",your_name_placeholder:"Uw naam",your_email_placeholder:"Uw e-mailadres",start_chat_button:"Praat met ondersteuning",start_chat_button_loading:"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"},v5={write_a_message_placeholder:"Skriv en melding...",your_issue_has_been_resolved:"Problemet ditt er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vår kundestøtte-chat",welcome_screen_description:"Vi er her for å hjelpe! Start en samtale så kommer vi tilbake til deg så snart som mulig.",your_name_placeholder:"Ditt navn",your_email_placeholder:"Din e-postadresse",start_chat_button:"Snakk med kundestøtte",start_chat_button_loading:"Kobler til...",i_need_more_help:"Jeg trenger mer hjelp",this_was_helpful:"Dette var nyttig",optional:"Valgfritt",no_conversations_yet:"Ingen samtaler ennå",back_to_conversations:"Tilbake til samtaler",closed_conversations:"Lukkede samtaler"},y5={write_a_message_placeholder:"Napisz wiadomość...",your_issue_has_been_resolved:"Twój problem został rozwiązany!",new_conversation:"Nowa rozmowa",welcome_screen_title:"Witamy w naszym czacie wsparcia",welcome_screen_description:"Jesteśmy tutaj, aby pomóc! Rozpocznij rozmowę, a odpowiemy jak najszybciej.",your_name_placeholder:"Twoje imię",your_email_placeholder:"Twój adres email",start_chat_button:"Porozmawiaj ze wsparciem",start_chat_button_loading:"Łączenie...",i_need_more_help:"Potrzebuję więcej pomocy",this_was_helpful:"To było pomocne",optional:"Opcjonalne",no_conversations_yet:"Jeszcze brak rozmów",back_to_conversations:"Powrót do rozmów",closed_conversations:"Zamknięte rozmowy"},x5={write_a_message_placeholder:"Escreva uma mensagem...",your_issue_has_been_resolved:"Seu problema foi resolvido!",new_conversation:"Nova conversa",welcome_screen_title:"Bem-vindo ao nosso chat de suporte",welcome_screen_description:"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.",your_name_placeholder:"Seu nome",your_email_placeholder:"Seu endereço de email",start_chat_button:"Falar com o suporte",start_chat_button_loading:"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"},_5={write_a_message_placeholder:"Scrie un mesaj...",your_issue_has_been_resolved:"Problema ta a fost rezolvată!",new_conversation:"Conversație nouă",welcome_screen_title:"Bine ai venit la chat-ul nostru de suport",welcome_screen_description:"Suntem aici să te ajutăm! Începe o conversație și îți vom răspunde cât mai curând posibil.",your_name_placeholder:"Numele tău",your_email_placeholder:"Adresa ta de email",start_chat_button:"Vorbește cu suportul",start_chat_button_loading:"Se conectează...",i_need_more_help:"Am nevoie de mai mult ajutor",this_was_helpful:"Acest lucru a fost util",optional:"Opțional",no_conversations_yet:"Încă nu există conversații",back_to_conversations:"Înapoi la conversații",closed_conversations:"Conversații închise"},E5={write_a_message_placeholder:"Skriv ett meddelande...",your_issue_has_been_resolved:"Ditt problem har lösts!",new_conversation:"Ny konversation",welcome_screen_title:"Välkommen till vår supportchatt",welcome_screen_description:"Vi är här för att hjälpa! Starta en konversation så återkommer vi till dig så snart som möjligt.",your_name_placeholder:"Ditt namn",your_email_placeholder:"Din e-postadress",start_chat_button:"Prata med support",start_chat_button_loading:"Ansluter...",i_need_more_help:"Jag behöver mer hjälp",this_was_helpful:"Detta var användbart",optional:"Frivilligt",no_conversations_yet:"Inga konversationer ännu",back_to_conversations:"Tillbaka till konversationer",closed_conversations:"Stängda konversationer"},T5={write_a_message_placeholder:"Напишите сообщение...",your_issue_has_been_resolved:"Ваша проблема решена!",new_conversation:"Новый разговор",welcome_screen_title:"Добро пожаловать в чат поддержки",welcome_screen_description:"Мы здесь, чтобы помочь! Начните разговор, и мы ответим вам как можно скорее.",your_name_placeholder:"Ваше имя",your_email_placeholder:"Ваш адрес электронной почты",start_chat_button:"Связаться с поддержкой",start_chat_button_loading:"Подключение...",i_need_more_help:"Мне нужна дополнительная помощь",this_was_helpful:"Это было полезно",optional:"Необязательно",no_conversations_yet:"Пока нет разговоров",back_to_conversations:"Назад к разговорам",closed_conversations:"Закрытые разговоры"},w5={write_a_message_placeholder:"เขียนข้อความ...",your_issue_has_been_resolved:"ปัญหาของคุณได้รับการแก้ไขแล้ว!",new_conversation:"การสนทนาใหม่",welcome_screen_title:"ยินดีต้อนรับสู่แชทสนับสนุนของเรา",welcome_screen_description:"เราพร้อมช่วยเหลือคุณ! เริ่มการสนทนาและเราจะติดต่อกลับโดยเร็วที่สุด",your_name_placeholder:"ชื่อของคุณ",your_email_placeholder:"ที่อยู่อีเมลของคุณ",start_chat_button:"พูดคุยกับฝ่ายสนับสนุน",start_chat_button_loading:"กำลังเชื่อมต่อ...",i_need_more_help:"ฉันต้องการความช่วยเหลือเพิ่มเติม",this_was_helpful:"สิ่งนี้เป็นประโยชน์",optional:"ไม่บังคับ",no_conversations_yet:"ยังไม่มีการสนทนา",back_to_conversations:"กลับไปที่การสนทนา",closed_conversations:"การสนทนาที่ปิดแล้ว"},S5={write_a_message_placeholder:"Bir mesaj yazın...",your_issue_has_been_resolved:"Sorununuz çözüldü!",new_conversation:"Yeni konuşma",welcome_screen_title:"Destek sohbetimize hoş geldiniz",welcome_screen_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_placeholder:"Adınız",your_email_placeholder:"E-posta adresiniz",start_chat_button:"Destekle konuş",start_chat_button_loading:"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"},A5={write_a_message_placeholder:"پیغام لکھیں...",your_issue_has_been_resolved:"آپ کا مسئلہ حل ہو گیا ہے!",new_conversation:"نئی گفتگو",welcome_screen_title:"ہماری سپورٹ چیٹ میں خوش آمدید",welcome_screen_description:"ہم مدد کے لیے حاضر ہیں! گفتگو شروع کریں اور ہم جلد از جلد آپ سے رابطہ کریں گے۔",your_name_placeholder:"آپ کا نام",your_email_placeholder:"آپ کا ای میل پتہ",start_chat_button:"سپورٹ سے بات کریں",start_chat_button_loading:"جڑ رہا ہے...",i_need_more_help:"مجھے مزید مدد چاہیے",this_was_helpful:"یہ مددگار تھا",optional:"اختیاری",no_conversations_yet:"ابھی تک کوئی گفتگو نہیں",back_to_conversations:"گفتگو پر واپس جائیں",closed_conversations:"بند گفتگو"},C5={write_a_message_placeholder:"Viết tin nhắn...",your_issue_has_been_resolved:"Vấn đề của bạn đã được giải quyết!",new_conversation:"Cuộc trò chuyện mới",welcome_screen_title:"Chào mừng đến với hỗ trợ trò chuyện của chúng tôi",welcome_screen_description:"Chúng tôi ở đây để giúp đỡ! Bắt đầu cuộc trò chuyện và chúng tôi sẽ phản hồi sớm nhất có thể.",your_name_placeholder:"Tên của bạn",your_email_placeholder:"Địa chỉ email của bạn",start_chat_button:"Liên hệ hỗ trợ",start_chat_button_loading:"Đang kết nối...",i_need_more_help:"Tôi cần thêm trợ giúp",this_was_helpful:"Điều này hữu ích",optional:"Tùy chọn",no_conversations_yet:"Chưa có cuộc trò chuyện nào",back_to_conversations:"Quay lại cuộc trò chuyện",closed_conversations:"Cuộc trò chuyện đã đóng"},k5={write_a_message_placeholder:"写一条消息...",your_issue_has_been_resolved:"您的问题已解决!",new_conversation:"新对话",welcome_screen_title:"欢迎使用我们的客服聊天",welcome_screen_description:"我们随时为您提供帮助!开始对话,我们会尽快回复您。",your_name_placeholder:"您的姓名",your_email_placeholder:"您的电子邮件地址",start_chat_button:"联系客服",start_chat_button_loading:"连接中...",i_need_more_help:"我需要更多帮助",this_was_helpful:"这很有帮助",optional:"可选",no_conversations_yet:"暂无对话",back_to_conversations:"返回对话",closed_conversations:"已关闭的对话"},O5={write_a_message_placeholder:"Napišite poruku...",your_issue_has_been_resolved:"Vaš problem je riješen!",new_conversation:"Novi razgovor",welcome_screen_title:"Dobrodošli u naš chat za podršku",welcome_screen_description:"Ovdje smo da pomognemo! Započnite razgovor i odgovorit ćemo vam što je prije moguće.",your_name_placeholder:"Vaše ime",your_email_placeholder:"Vaša e-mail adresa",start_chat_button:"Razgovarajte s podrškom",start_chat_button_loading:"Povezivanje...",i_need_more_help:"Trebam dodatnu pomoć",this_was_helpful:"Ovo je bilo korisno",optional:"Neobavezno",no_conversations_yet:"Još nema razgovora",back_to_conversations:"Natrag na razgovore",closed_conversations:"Zatvoreni razgovori"},N5={write_a_message_placeholder:"Kirjuta sõnum...",your_issue_has_been_resolved:"Teie probleem on lahendatud!",new_conversation:"Uus vestlus",welcome_screen_title:"Tere tulemast meie tugiteenusesse",welcome_screen_description:"Oleme siin, et aidata! Alustage vestlust ja vastame teile esimesel võimalusel.",your_name_placeholder:"Teie nimi",your_email_placeholder:"Teie e-posti aadress",start_chat_button:"Räägi toega",start_chat_button_loading:"Ühendamine...",i_need_more_help:"Vajan rohkem abi",this_was_helpful:"See oli kasulik",optional:"Valikuline",no_conversations_yet:"Vestlusi pole veel",back_to_conversations:"Tagasi vestluste juurde",closed_conversations:"Suletud vestlused"},R5={write_a_message_placeholder:"Írjon üzenetet...",your_issue_has_been_resolved:"A problémája megoldódott!",new_conversation:"Új beszélgetés",welcome_screen_title:"Üdvözöljük az ügyfélszolgálati chatünkön",welcome_screen_description:"Azért vagyunk itt, hogy segítsünk! Kezdjen beszélgetést, és mihamarabb válaszolunk.",your_name_placeholder:"Az Ön neve",your_email_placeholder:"Az Ön e-mail címe",start_chat_button:"Beszélgetés az ügyfélszolgálattal",start_chat_button_loading:"Csatlakozás...",i_need_more_help:"További segítségre van szükségem",this_was_helpful:"Ez hasznos volt",optional:"Opcionális",no_conversations_yet:"Még nincsenek beszélgetések",back_to_conversations:"Vissza a beszélgetésekhez",closed_conversations:"Lezárt beszélgetések"},D5={write_a_message_placeholder:"Skrifaðu skilaboð...",your_issue_has_been_resolved:"Málið þitt hefur verið leyst!",new_conversation:"Nýtt samtal",welcome_screen_title:"Velkomin í þjónustuverið okkar",welcome_screen_description:"Við erum hér til að hjálpa! Byrjaðu samtal og við munum svara eins fljótt og auðið er.",your_name_placeholder:"Nafnið þitt",your_email_placeholder:"Netfangið þitt",start_chat_button:"Tala við þjónustuver",start_chat_button_loading:"Tengist...",i_need_more_help:"Ég þarf meiri hjálp",this_was_helpful:"Þetta var gagnlegt",optional:"Valfrjálst",no_conversations_yet:"Engin samtöl ennþá",back_to_conversations:"Til baka í samtöl",closed_conversations:"Lokuð samtöl"},M5={write_a_message_placeholder:"Rakstiet ziņojumu...",your_issue_has_been_resolved:"Jūsu problēma ir atrisināta!",new_conversation:"Jauna saruna",welcome_screen_title:"Laipni lūdzam mūsu atbalsta tērzēšanā",welcome_screen_description:"Mēs esam šeit, lai palīdzētu! Sāciet sarunu, un mēs jums atbildēsim pēc iespējas ātrāk.",your_name_placeholder:"Jūsu vārds",your_email_placeholder:"Jūsu e-pasta adrese",start_chat_button:"Sazināties ar atbalstu",start_chat_button_loading:"Savienošana...",i_need_more_help:"Man vajag vairāk palīdzības",this_was_helpful:"Tas bija noderīgi",optional:"Neobligāts",no_conversations_yet:"Pagaidām nav sarunu",back_to_conversations:"Atpakaļ pie sarunām",closed_conversations:"Slēgtās sarunas"},L5={write_a_message_placeholder:"Parašykite žinutę...",your_issue_has_been_resolved:"Jūsų problema išspręsta!",new_conversation:"Naujas pokalbis",welcome_screen_title:"Sveiki atvykę į mūsų pagalbos pokalbį",welcome_screen_description:"Mes čia, kad padėtume! Pradėkite pokalbį ir mes atsakysime kuo greičiau.",your_name_placeholder:"Jūsų vardas",your_email_placeholder:"Jūsų el. pašto adresas",start_chat_button:"Kalbėti su pagalba",start_chat_button_loading:"Jungiamasi...",i_need_more_help:"Man reikia daugiau pagalbos",this_was_helpful:"Tai buvo naudinga",optional:"Neprivaloma",no_conversations_yet:"Pokalbių dar nėra",back_to_conversations:"Grįžti į pokalbius",closed_conversations:"Uždaryti pokalbiai"},I5={write_a_message_placeholder:"Schreift eng Noriicht...",your_issue_has_been_resolved:"Äert Problem gouf geléist!",new_conversation:"Nei Konversatioun",welcome_screen_title:"Wëllkomm bei eisem Support-Chat",welcome_screen_description:"Mir sinn hei fir ze hëllefen! Start eng Konversatioun a mir äntweren Iech esou séier wéi méiglech.",your_name_placeholder:"Ären Numm",your_email_placeholder:"Är E-Mail-Adress",start_chat_button:"Mat dem Support schwätzen",start_chat_button_loading:"Verbindung...",i_need_more_help:"Ech brauch méi Hëllef",this_was_helpful:"Dat war hëllefräich",optional:"Fakultativ",no_conversations_yet:"Nach keng Konversatiounen",back_to_conversations:"Zréck zu de Konversatiounen",closed_conversations:"Zougemaachte Konversatiounen"},P5={write_a_message_placeholder:"Ikteb messaġġ...",your_issue_has_been_resolved:"Il-problema tiegħek ġiet riżolta!",new_conversation:"Konversazzjoni ġdida",welcome_screen_title:"Merħba fis-support chat tagħna",welcome_screen_description:"Aħna hawn biex ngħinu! Ibda konversazzjoni u nirrispondu malajr kemm jista' jkun.",your_name_placeholder:"Ismek",your_email_placeholder:"L-indirizz tal-email tiegħek",start_chat_button:"Kellem lis-support",start_chat_button_loading:"Qed jikkonnettja...",i_need_more_help:"Għandi bżonn aktar għajnuna",this_was_helpful:"Dan kien ta' għajnuna",optional:"Mhux obbligatorju",no_conversations_yet:"Għad m'hemmx konversazzjonijiet",back_to_conversations:"Lura għall-konversazzjonijiet",closed_conversations:"Konversazzjonijiet magħluqa"},B5={write_a_message_placeholder:"Skriv en melding...",your_issue_has_been_resolved:"Saken din er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vår kundestøtte",welcome_screen_description:"Vi er her for å hjelpe! Start en samtale, så svarer vi deg så snart som mulig.",your_name_placeholder:"Ditt navn",your_email_placeholder:"Din e-postadresse",start_chat_button:"Snakk med kundestøtte",start_chat_button_loading:"Kobler til...",i_need_more_help:"Jeg trenger mer hjelp",this_was_helpful:"Dette var nyttig",optional:"Valgfritt",no_conversations_yet:"Ingen samtaler ennå",back_to_conversations:"Tilbake til samtaler",closed_conversations:"Lukkede samtaler"},j5={write_a_message_placeholder:"Napíšte správu...",your_issue_has_been_resolved:"Váš problém bol vyriešený!",new_conversation:"Nová konverzácia",welcome_screen_title:"Vitajte v našom zákazníckom chate",welcome_screen_description:"Sme tu, aby sme vám pomohli! Začnite konverzáciu a odpovieme vám čo najskôr.",your_name_placeholder:"Vaše meno",your_email_placeholder:"Vaša e-mailová adresa",start_chat_button:"Hovoriť s podporou",start_chat_button_loading:"Pripájanie...",i_need_more_help:"Potrebujem ďalšiu pomoc",this_was_helpful:"Toto bolo užitočné",optional:"Voliteľné",no_conversations_yet:"Zatiaľ žiadne konverzácie",back_to_conversations:"Späť na konverzácie",closed_conversations:"Uzavreté konverzácie"},Tx={ar:t5,bn:n5,bg:i5,cs:r5,da:a5,de:o5,el:s5,en:l5,es:u5,et:N5,fi:d5,fil:c5,fr:f5,hi:h5,hr:O5,hu:R5,is:D5,it:p5,ja:m5,ko:g5,lb:I5,lt:L5,lv:M5,mt:P5,nb:B5,nl:b5,no:v5,pl:y5,pt:x5,ro:_5,ru:T5,sk:j5,sv:E5,th:w5,tr:S5,ur:A5,vi:C5,"zh-cn":k5},z5=Object.keys(Tx);function U5(e){return z5.includes(e)}function H5(e,t,n){var i;return((i=n==null?void 0:n[t])==null?void 0:i[e])||Tx[t][e]||""}const F5="4.0.52";class V5{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 wx=E.createContext(null);function Y5({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 V5({components:n}),[n]);return E.useEffect(()=>{s.current||(s.current=!0,e5.initialize({config:e,storage:i}).then(l).catch(console.error))},[]),o?pn.createElement(wx.Provider,{value:{widgetCtx:o,config:e,components:n,componentStore:u,version:F5,contentIframeRef:a}},t):r||null}function Ct(){const e=E.useContext(wx);if(!e)throw new Error("useWidget must be used within a WidgetProvider");return e}function $e(){const{config:e}=Ct();return e}function El(e){return E.useSyncExternalStore(e.subscribe,e.get,e.get)}function Sx(){const{widgetCtx:e}=Ct();return{contactState:El(e.contactCtx.state),createUnverifiedContact:e.contactCtx.createUnverifiedContact}}function kp(){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 En(){const{widgetCtx:e}=Ct();return{messagesState:El(e.messageCtx.state),sendMessage:e.messageCtx.sendMessage}}function wi(){const{widgetCtx:e}=Ct(),{oneOpenSessionAllowed:t}=$e(),n=El(e.sessionCtx.sessionState),i=El(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 Ax(){var e,t,n;const{sessionState:i}=wi(),{messagesState:r}=En(),a=((e=i.session)==null?void 0:e.assignee.kind)==="ai",s=((n=(t=r.messages)==null?void 0:t.at(-1))==null?void 0:n.type)==="USER";return{isAwaitingBotReply:!!(r.isSendingMessageToAI||(a||i.isCreatingSession)&&(r.isSendingMessage||s))}}function Si(){const{widgetCtx:e}=Ct();return{routerState:El(e.routerCtx.state),toSessionsScreen:e.routerCtx.toSessionsScreen,toChatScreen:e.routerCtx.toChatScreen}}const Yr=new Map;function q5(){const[e,t]=E.useState([]),{widgetCtx:{api:n}}=Ct();function i(c){const d=c.map(f=>({file:f,id:Cp(),status:"pending",progress:0}));t(f=>[...f,...d]),d.forEach(s)}function r(c,d){t(f=>f.map(h=>h.id===c?{...h,...d}:h))}function a(c){t(d=>d.filter(f=>f.id!==c))}const s=async c=>{const d=new AbortController;Yr.set(c.id,d);try{t(h=>h.map(g=>g.id===c.id?{...g,status:"uploading",progress:0}:g));const f=await n.uploadFile({file:c.file,abortSignal:d.signal,onProgress:h=>{r(c.id,{progress:h})}});r(c.id,{status:"success",fileUrl:f.fileUrl,progress:100})}catch(f){d.signal.aborted||r(c.id,{status:"error",error:f instanceof Error?f.message:"Upload failed",progress:0})}finally{Yr.delete(c.id)}},o=c=>{const d=Yr.get(c);d&&(d.abort(),Yr.delete(c)),a(c)},l=E.useMemo(()=>e.filter(c=>c.status==="success"&&c.fileUrl),[e]);function u(){Yr.forEach(c=>c.abort()),Yr.clear(),t([])}return E.useEffect(()=>()=>{Yr.forEach(c=>c.abort()),Yr.clear()},[]),{allFiles:e,appendFiles:i,handleCancelUpload:o,successFiles:l,emptyTheFiles:u,getFileById:c=>e.find(d=>d.id===c),getUploadProgress:c=>{var d;return((d=e.find(f=>f.id===c))==null?void 0:d.progress)??0},getUploadStatus:c=>{var d;return(d=e.find(f=>f.id===c))==null?void 0:d.status},hasErrors:e.some(c=>c.status==="error"),isUploading:e.some(c=>c.status==="uploading")}}const Cx=E.createContext(null);function G5({children:e}){const t=$e(),[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]),pn.createElement(Cx.Provider,{value:{isOpen:n,setIsOpen:i}},e)}function ja(){const e=E.useContext(Cx);if(!e)throw new Error("useWidgetTrigger must be used within a WidgetTriggerProvider");return e}function kx(){var e,t;const{widgetCtx:n}=Ct(),{modesComponents:i}=$e(),{sessionState:r}=wi(),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,d;return[(o==null?void 0:o.id)||"",((c=o==null?void 0:o.name)==null?void 0:c.toLowerCase())||"",((d=o==null?void 0:o.slug)==null?void 0:d.toLowerCase())||""].includes(u.key.toLowerCase())}))==null?void 0:t.component;return{modes:a,modesComponents:i,activeModeId:s,activeMode:o,Component:l}}function Ox(){const{widgetCtx:e}=Ct(),{messagesState:{messages:t}}=En(),{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}}/**
69
69
  * @license lucide-react v0.436.0 - ISC
70
70
  *
71
71
  * This source code is licensed under the ISC license.
@@ -80,12 +80,12 @@ ${a}`:a})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOStr
80
80
  *
81
81
  * This source code is licensed under the ISC license.
82
82
  * See the LICENSE file in the root directory of this source tree.
83
- */const K5=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:r="",children:a,iconNode:s,...o},l)=>_.createElement("svg",{ref:l,...X5,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:Nx("lucide",r),...o},[...s.map(([u,c])=>_.createElement(u,c)),...Array.isArray(a)?a:[a]]));/**
83
+ */const K5=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,...X5,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:Nx("lucide",r),...o},[...s.map(([u,c])=>E.createElement(u,c)),...Array.isArray(a)?a:[a]]));/**
84
84
  * @license lucide-react v0.436.0 - ISC
85
85
  *
86
86
  * This source code is licensed under the ISC license.
87
87
  * See the LICENSE file in the root directory of this source tree.
88
- */const Ie=(e,t)=>{const n=_.forwardRef(({className:i,...r},a)=>_.createElement(K5,{ref:a,iconNode:t,className:Nx(`lucide-${$5(e)}`,i),...r}));return n.displayName=`${e}`,n};/**
88
+ */const Ie=(e,t)=>{const n=E.forwardRef(({className:i,...r},a)=>E.createElement(K5,{ref:a,iconNode:t,className:Nx(`lucide-${$5(e)}`,i),...r}));return n.displayName=`${e}`,n};/**
89
89
  * @license lucide-react v0.436.0 - ISC
90
90
  *
91
91
  * This source code is licensed under the ISC license.
@@ -250,7 +250,7 @@ ${a}`:a})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOStr
250
250
  *
251
251
  * This source code is licensed under the ISC license.
252
252
  * See the LICENSE file in the root directory of this source tree.
253
- */const EM=Ie("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function Px(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=Px(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Bx(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Px(e))&&(i&&(i+=" "),i+=t);return i}const Op="-",TM=e=>{const t=SM(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const o=s.split(Op);return o[0]===""&&o.length!==1&&o.shift(),jx(o,t)||wM(s)},getConflictingClassGroupIds:(s,o)=>{const l=n[s]||[];return o&&i[s]?[...l,...i[s]]:l}}},jx=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),r=i?jx(e.slice(1),i):void 0;if(r)return r;if(t.validators.length===0)return;const a=e.join(Op);return(s=t.validators.find(({validator:o})=>o(a)))==null?void 0:s.classGroupId},zx=/^\[(.+)\]$/,wM=e=>{if(zx.test(e)){const t=zx.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},SM=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return CM(Object.entries(e.classGroups),n).forEach(([a,s])=>{Np(s,i,a,t)}),i},Np=(e,t,n,i)=>{e.forEach(r=>{if(typeof r=="string"){const a=r===""?t:Ux(t,r);a.classGroupId=n;return}if(typeof r=="function"){if(AM(r)){Np(r(i),t,n,i);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([a,s])=>{Np(s,Ux(t,a),n,i)})})},Ux=(e,t)=>{let n=e;return t.split(Op).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},AM=e=>e.isThemeGetter,CM=(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,kM=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)}}},Hx="!",OM=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,d;for(let E=0;E<o.length;E++){let m=o[E];if(u===0){if(m===r&&(i||o.slice(E,E+a)===t)){l.push(o.slice(c,E)),c=E+a;continue}if(m==="/"){d=E;continue}}m==="["?u++:m==="]"&&u--}const f=l.length===0?o:o.substring(c),h=f.startsWith(Hx),g=h?f.substring(1):f,b=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:b}};return n?o=>n({className:o,parseClassName:s}):s},NM=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},RM=e=>({cache:kM(e.cacheSize),parseClassName:OM(e),...TM(e)}),DM=/\s+/,MM=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=t,a=[],s=e.trim().split(DM);let o="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let g=!!h,b=i(g?f.substring(0,h):f);if(!b){if(!g){o=u+(o.length>0?" "+o:o);continue}if(b=i(f),!b){o=u+(o.length>0?" "+o:o);continue}g=!1}const E=NM(c).join(":"),m=d?E+Hx:E,v=m+b;if(a.includes(v))continue;a.push(v);const x=r(b,g);for(let T=0;T<x.length;++T){const S=x[T];a.push(m+S)}o=u+(o.length>0?" "+o:o)}return o};function LM(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Fx(t))&&(i&&(i+=" "),i+=n);return i}const Fx=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Fx(e[i]))&&(n&&(n+=" "),n+=t);return n};function IM(e,...t){let n,i,r,a=s;function s(l){const u=t.reduce((c,d)=>d(c),e());return n=RM(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=MM(l,n);return r(l,c),c}return function(){return a(LM.apply(null,arguments))}}const it=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Vx=/^\[(?:([a-z-]+):)?(.+)\]$/i,PM=/^\d+\/\d+$/,BM=new Set(["px","full","screen"]),jM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zM=/\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$/,UM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,HM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,FM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cr=e=>Us(e)||BM.has(e)||PM.test(e),qr=e=>Hs(e,"length",QM),Us=e=>!!e&&!Number.isNaN(Number(e)),Rp=e=>Hs(e,"number",Us),Tl=e=>!!e&&Number.isInteger(Number(e)),VM=e=>e.endsWith("%")&&Us(e.slice(0,-1)),Te=e=>Vx.test(e),Gr=e=>jM.test(e),YM=new Set(["length","size","percentage"]),qM=e=>Hs(e,YM,Yx),GM=e=>Hs(e,"position",Yx),$M=new Set(["image","url"]),XM=e=>Hs(e,$M,ZM),KM=e=>Hs(e,"",WM),wl=()=>!0,Hs=(e,t,n)=>{const i=Vx.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},QM=e=>zM.test(e)&&!UM.test(e),Yx=()=>!1,WM=e=>HM.test(e),ZM=e=>FM.test(e),JM=IM(()=>{const e=it("colors"),t=it("spacing"),n=it("blur"),i=it("brightness"),r=it("borderColor"),a=it("borderRadius"),s=it("borderSpacing"),o=it("borderWidth"),l=it("contrast"),u=it("grayscale"),c=it("hueRotate"),d=it("invert"),f=it("gap"),h=it("gradientColorStops"),g=it("gradientColorStopPositions"),b=it("inset"),E=it("margin"),m=it("opacity"),v=it("padding"),x=it("saturate"),T=it("scale"),S=it("sepia"),A=it("skew"),D=it("space"),L=it("translate"),B=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",Te,t],U=()=>[Te,t],re=()=>["",cr,qr],ee=()=>["auto",Us,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],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],be=()=>[Us,Te];return{cacheSize:500,separator:":",theme:{colors:[wl],spacing:[cr,qr],blur:["none","",Gr,Te],brightness:be(),borderColor:[e],borderRadius:["none","","full",Gr,Te],borderSpacing:U(),borderWidth:re(),contrast:be(),grayscale:te(),hueRotate:be(),invert:te(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[VM,qr],inset:Y(),margin:Y(),opacity:be(),padding:U(),saturate:be(),scale:be(),sepia:te(),skew:be(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[Gr]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],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",Tl,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",Tl,Te]}],"grid-cols":[{"grid-cols":[wl]}],"col-start-end":[{col:["auto",{span:["full",Tl,Te]},Te]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[wl]}],"row-start-end":[{row:["auto",{span:[Tl,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:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"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:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"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:[Gr]},Gr]}],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",Gr,qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rp]}],"font-family":[{font:[wl]}],"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",Us,Rp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",cr,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",cr,qr]}],"underline-offset":[{"underline-offset":["auto",cr,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:U()}],"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(),GM]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qM]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},XM]}],"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":[cr,Te]}],"outline-w":[{outline:[cr,qr]}],"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":[cr,qr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Gr,KM]}],"shadow-color":[{shadow:[wl]}],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",Gr,Te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],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":[d]}],"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:be()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:be()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Tl,Te]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"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":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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:[cr,qr,Rp]}],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"]}}}),Dp=_.createContext({});function Mp(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const nd=_.createContext(null),Lp=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class eL extends _.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 tL({children:e,isPresent:t}){const n=_.useId(),i=_.useRef(null),r=_.useRef({width:0,height:0,top:0,left:0}),{nonce:a}=_.useContext(Lp);return _.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(`
253
+ */const EM=Ie("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function Px(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=Px(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Bx(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Px(e))&&(i&&(i+=" "),i+=t);return i}const Op="-",TM=e=>{const t=SM(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const o=s.split(Op);return o[0]===""&&o.length!==1&&o.shift(),jx(o,t)||wM(s)},getConflictingClassGroupIds:(s,o)=>{const l=n[s]||[];return o&&i[s]?[...l,...i[s]]:l}}},jx=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),r=i?jx(e.slice(1),i):void 0;if(r)return r;if(t.validators.length===0)return;const a=e.join(Op);return(s=t.validators.find(({validator:o})=>o(a)))==null?void 0:s.classGroupId},zx=/^\[(.+)\]$/,wM=e=>{if(zx.test(e)){const t=zx.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},SM=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return CM(Object.entries(e.classGroups),n).forEach(([a,s])=>{Np(s,i,a,t)}),i},Np=(e,t,n,i)=>{e.forEach(r=>{if(typeof r=="string"){const a=r===""?t:Ux(t,r);a.classGroupId=n;return}if(typeof r=="function"){if(AM(r)){Np(r(i),t,n,i);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([a,s])=>{Np(s,Ux(t,a),n,i)})})},Ux=(e,t)=>{let n=e;return t.split(Op).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},AM=e=>e.isThemeGetter,CM=(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,kM=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)}}},Hx="!",OM=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,d;for(let _=0;_<o.length;_++){let m=o[_];if(u===0){if(m===r&&(i||o.slice(_,_+a)===t)){l.push(o.slice(c,_)),c=_+a;continue}if(m==="/"){d=_;continue}}m==="["?u++:m==="]"&&u--}const f=l.length===0?o:o.substring(c),h=f.startsWith(Hx),g=h?f.substring(1):f,b=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:b}};return n?o=>n({className:o,parseClassName:s}):s},NM=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},RM=e=>({cache:kM(e.cacheSize),parseClassName:OM(e),...TM(e)}),DM=/\s+/,MM=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=t,a=[],s=e.trim().split(DM);let o="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let g=!!h,b=i(g?f.substring(0,h):f);if(!b){if(!g){o=u+(o.length>0?" "+o:o);continue}if(b=i(f),!b){o=u+(o.length>0?" "+o:o);continue}g=!1}const _=NM(c).join(":"),m=d?_+Hx:_,v=m+b;if(a.includes(v))continue;a.push(v);const x=r(b,g);for(let T=0;T<x.length;++T){const S=x[T];a.push(m+S)}o=u+(o.length>0?" "+o:o)}return o};function LM(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Fx(t))&&(i&&(i+=" "),i+=n);return i}const Fx=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Fx(e[i]))&&(n&&(n+=" "),n+=t);return n};function IM(e,...t){let n,i,r,a=s;function s(l){const u=t.reduce((c,d)=>d(c),e());return n=RM(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=MM(l,n);return r(l,c),c}return function(){return a(LM.apply(null,arguments))}}const it=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Vx=/^\[(?:([a-z-]+):)?(.+)\]$/i,PM=/^\d+\/\d+$/,BM=new Set(["px","full","screen"]),jM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zM=/\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$/,UM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,HM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,FM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cr=e=>Us(e)||BM.has(e)||PM.test(e),qr=e=>Hs(e,"length",QM),Us=e=>!!e&&!Number.isNaN(Number(e)),Rp=e=>Hs(e,"number",Us),Tl=e=>!!e&&Number.isInteger(Number(e)),VM=e=>e.endsWith("%")&&Us(e.slice(0,-1)),Te=e=>Vx.test(e),Gr=e=>jM.test(e),YM=new Set(["length","size","percentage"]),qM=e=>Hs(e,YM,Yx),GM=e=>Hs(e,"position",Yx),$M=new Set(["image","url"]),XM=e=>Hs(e,$M,ZM),KM=e=>Hs(e,"",WM),wl=()=>!0,Hs=(e,t,n)=>{const i=Vx.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},QM=e=>zM.test(e)&&!UM.test(e),Yx=()=>!1,WM=e=>HM.test(e),ZM=e=>FM.test(e),JM=IM(()=>{const e=it("colors"),t=it("spacing"),n=it("blur"),i=it("brightness"),r=it("borderColor"),a=it("borderRadius"),s=it("borderSpacing"),o=it("borderWidth"),l=it("contrast"),u=it("grayscale"),c=it("hueRotate"),d=it("invert"),f=it("gap"),h=it("gradientColorStops"),g=it("gradientColorStopPositions"),b=it("inset"),_=it("margin"),m=it("opacity"),v=it("padding"),x=it("saturate"),T=it("scale"),S=it("sepia"),A=it("skew"),D=it("space"),L=it("translate"),B=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",Te,t],U=()=>[Te,t],re=()=>["",cr,qr],ee=()=>["auto",Us,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],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],be=()=>[Us,Te];return{cacheSize:500,separator:":",theme:{colors:[wl],spacing:[cr,qr],blur:["none","",Gr,Te],brightness:be(),borderColor:[e],borderRadius:["none","","full",Gr,Te],borderSpacing:U(),borderWidth:re(),contrast:be(),grayscale:te(),hueRotate:be(),invert:te(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[VM,qr],inset:Y(),margin:Y(),opacity:be(),padding:U(),saturate:be(),scale:be(),sepia:te(),skew:be(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[Gr]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],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",Tl,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",Tl,Te]}],"grid-cols":[{"grid-cols":[wl]}],"col-start-end":[{col:["auto",{span:["full",Tl,Te]},Te]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[wl]}],"row-start-end":[{row:["auto",{span:[Tl,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:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"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:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"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:[Gr]},Gr]}],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",Gr,qr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rp]}],"font-family":[{font:[wl]}],"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",Us,Rp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",cr,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",cr,qr]}],"underline-offset":[{"underline-offset":["auto",cr,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:U()}],"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(),GM]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qM]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},XM]}],"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":[cr,Te]}],"outline-w":[{outline:[cr,qr]}],"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":[cr,qr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Gr,KM]}],"shadow-color":[{shadow:[wl]}],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",Gr,Te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],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":[d]}],"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:be()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:be()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Tl,Te]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"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":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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:[cr,qr,Rp]}],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"]}}}),Dp=E.createContext({});function Mp(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const nd=E.createContext(null),Lp=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class eL 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 tL({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(Lp);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(`
254
254
  [data-motion-pop-id="${n}"] {
255
255
  position: absolute !important;
256
256
  width: ${s}px !important;
@@ -258,8 +258,8 @@ ${a}`:a})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOStr
258
258
  top: ${l}px !important;
259
259
  left: ${u}px !important;
260
260
  }
261
- `),()=>{document.head.removeChild(c)}},[t]),y.jsx(eL,{isPresent:t,childRef:i,sizeRef:r,children:_.cloneElement(e,{ref:i})})}const nL=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:a,mode:s})=>{const o=Mp(iL),l=_.useId(),u=_.useCallback(d=>{o.set(d,!0);for(const f of o.values())if(!f)return;i&&i()},[o,i]),c=_.useMemo(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:u,register:d=>(o.set(d,!1),()=>o.delete(d))}),a?[Math.random(),u]:[n,u]);return _.useMemo(()=>{o.forEach((d,f)=>o.set(f,!1))},[n]),_.useEffect(()=>{!n&&!o.size&&i&&i()},[n]),s==="popLayout"&&(e=y.jsx(tL,{isPresent:n,children:e})),y.jsx(nd.Provider,{value:c,children:e})};function iL(){return new Map}function qx(e=!0){const t=_.useContext(nd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=t,a=_.useId();_.useEffect(()=>{e&&r(a)},[e]);const s=_.useCallback(()=>e&&i&&i(a),[a,i,e]);return!n&&i?[!1,s]:[!0]}const id=e=>e.key||"";function Gx(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const Ip=typeof window<"u",$x=Ip?_.useLayoutEffect:_.useEffect,Pt=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:a="sync",propagate:s=!1})=>{const[o,l]=qx(s),u=_.useMemo(()=>Gx(e),[e]),c=s&&!o?[]:u.map(id),d=_.useRef(!0),f=_.useRef(u),h=Mp(()=>new Map),[g,b]=_.useState(u),[E,m]=_.useState(u);$x(()=>{d.current=!1,f.current=u;for(let T=0;T<E.length;T++){const S=id(E[T]);c.includes(S)?h.delete(S):h.get(S)!==!0&&h.set(S,!1)}},[E,c.length,c.join("-")]);const v=[];if(u!==g){let T=[...u];for(let S=0;S<E.length;S++){const A=E[S],D=id(A);c.includes(D)||(T.splice(S,0,A),v.push(A))}a==="wait"&&v.length&&(T=v),m(Gx(T)),b(u);return}const{forceRender:x}=_.useContext(Dp);return y.jsx(y.Fragment,{children:E.map(T=>{const S=id(T),A=s&&!o?!1:u===E||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(f.current),s&&(l==null||l()),i&&i())};return y.jsx(nL,{isPresent:A,initial:!d.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:r,mode:a,onExitComplete:A?void 0:D,children:T},S)})})},Bn=e=>e;let Xx=Bn;function Pp(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fs=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},dr=e=>e*1e3,fr=e=>e/1e3,rL={useManualTiming:!1};function aL(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,d=!1)=>{const h=d&&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 rd=["read","resolveKeyframes","update","preRender","render","postRender"],sL=40;function Kx(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=rd.reduce((m,v)=>(m[v]=aL(a),m),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,h=()=>{const m=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(m-r.timestamp,sL),1),r.timestamp=m,r.isProcessing=!0,o.process(r),l.process(r),u.process(r),c.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(h))},g=()=>{n=!0,i=!0,r.isProcessing||e(h)};return{schedule:rd.reduce((m,v)=>{const x=s[v];return m[v]=(T,S=!1,A=!1)=>(n||g(),x.schedule(T,S,A)),m},{}),cancel:m=>{for(let v=0;v<rd.length;v++)s[rd[v]].cancel(m)},state:r,steps:s}}const{schedule:rt,cancel:$r,state:Wt,steps:Bp}=Kx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Bn,!0),Qx=_.createContext({strict:!1}),Wx={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"]},Vs={};for(const e in Wx)Vs[e]={isEnabled:t=>Wx[e].some(n=>!!t[n])};function oL(e){for(const t in e)Vs[t]={...Vs[t],...e[t]}}const lL=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 ad(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lL.has(e)}let Zx=e=>!ad(e);function uL(e){e&&(Zx=t=>t.startsWith("on")?!ad(t):e(t))}try{uL(require("@emotion/is-prop-valid").default)}catch{}function cL(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(Zx(r)||n===!0&&ad(r)||!t&&!ad(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}function dL(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 sd=_.createContext({});function Sl(e){return typeof e=="string"||Array.isArray(e)}function od(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const jp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zp=["initial",...jp];function ld(e){return od(e.animate)||zp.some(t=>Sl(e[t]))}function Jx(e){return!!(ld(e)||e.variants)}function fL(e,t){if(ld(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Sl(n)?n:void 0,animate:Sl(i)?i:void 0}}return e.inherit!==!1?t:{}}function hL(e){const{initial:t,animate:n}=fL(e,_.useContext(sd));return _.useMemo(()=>({initial:t,animate:n}),[e_(t),e_(n)])}function e_(e){return Array.isArray(e)?e.join(" "):e}const pL=Symbol.for("motionComponentSymbol");function Ys(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mL(e,t,n){return _.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):Ys(n)&&(n.current=i))},[t])}const Up=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),t_="data-"+Up("framerAppearId"),{schedule:Hp}=Kx(queueMicrotask,!1),n_=_.createContext({});function gL(e,t,n,i,r){var a,s;const{visualElement:o}=_.useContext(sd),l=_.useContext(Qx),u=_.useContext(nd),c=_.useContext(Lp).reducedMotion,d=_.useRef(null);i=i||l.renderer,!d.current&&i&&(d.current=i(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=_.useContext(n_);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&bL(d.current,n,r,h);const g=_.useRef(!1);_.useInsertionEffect(()=>{f&&g.current&&f.update(n,u)});const b=n[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 $x(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Hp.render(f.render),E.current&&f.animationState&&f.animationState.animateChanges())}),_.useEffect(()=>{f&&(!E.current&&f.animationState&&f.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,b)}),E.current=!1))}),f}function bL(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:i_(e.parent)),e.projection.setOptions({layoutId:r,layout:a,alwaysMeasureLayout:!!s||o&&Ys(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function i_(e){if(e)return e.options.allowProjection!==!1?e.projection:i_(e.parent)}function vL({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){var a,s;e&&oL(e);function o(u,c){let d;const f={..._.useContext(Lp),...u,layoutId:yL(u)},{isStatic:h}=f,g=hL(u),b=i(u,h);if(!h&&Ip){xL();const E=_L(f);d=E.MeasureLayout,g.visualElement=gL(r,b,f,t,E.ProjectionNode)}return y.jsxs(sd.Provider,{value:g,children:[d&&g.visualElement?y.jsx(d,{visualElement:g.visualElement,...f}):null,n(r,u,mL(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=_.forwardRef(o);return l[pL]=r,l}function yL({layoutId:e}){const t=_.useContext(Dp).id;return t&&e!==void 0?t+"-"+e:e}function xL(e,t){_.useContext(Qx).strict}function _L(e){const{drag:t,layout:n}=Vs;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 EL=["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 Fp(e){return typeof e!="string"||e.includes("-")?!1:!!(EL.indexOf(e)>-1||/[A-Z]/u.test(e))}function r_(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Vp(e,t,n,i){if(typeof t=="function"){const[r,a]=r_(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]=r_(i);t=t(n!==void 0?n:e.custom,r,a)}return t}const Yp=e=>Array.isArray(e),TL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),wL=e=>Yp(e)?e[e.length-1]||0:e,rn=e=>!!(e&&e.getVelocity);function ud(e){const t=rn(e)?e.get():e;return TL(t)?t.toValue():t}function SL({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},i,r,a){const s={latestValues:AL(i,r,a,e),renderState:t()};return n&&(s.onMount=o=>n({props:i,current:o,...s}),s.onUpdate=o=>n(o)),s}const a_=e=>(t,n)=>{const i=_.useContext(sd),r=_.useContext(nd),a=()=>SL(e,t,i,r);return n?a():Mp(a)};function AL(e,t,n,i){const r={},a=i(e,{});for(const f in a)r[f]=ud(a[f]);let{initial:s,animate:o}=e;const l=ld(e),u=Jx(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 d=c?o:s;if(d&&typeof d!="boolean"&&!od(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const g=Vp(e,f[h]);if(g){const{transitionEnd:b,transition:E,...m}=g;for(const v in m){let x=m[v];if(Array.isArray(x)){const T=c?x.length-1:0;x=x[T]}x!==null&&(r[v]=x)}for(const v in b)r[v]=b[v]}}}return r}const qs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],za=new Set(qs),s_=e=>t=>typeof t=="string"&&t.startsWith(e),o_=s_("--"),CL=s_("var(--"),qp=e=>CL(e)?kL.test(e.split("/*")[0].trim()):!1,kL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,l_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,hr=(e,t,n)=>n>t?t:n<e?e:n,Gs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Al={...Gs,transform:e=>hr(0,1,e)},cd={...Gs,default:1},Cl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xr=Cl("deg"),Vi=Cl("%"),pe=Cl("px"),OL=Cl("vh"),NL=Cl("vw"),u_={...Vi,parse:e=>Vi.parse(e)/100,transform:e=>Vi.transform(e*100)},RL={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},DL={rotate:Xr,rotateX:Xr,rotateY:Xr,rotateZ:Xr,scale:cd,scaleX:cd,scaleY:cd,scaleZ:cd,skew:Xr,skewX:Xr,skewY:Xr,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Al,originX:u_,originY:u_,originZ:pe},c_={...Gs,transform:Math.round},Gp={...RL,...DL,zIndex:c_,size:pe,fillOpacity:Al,strokeOpacity:Al,numOctaves:c_},ML={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},LL=qs.length;function IL(e,t,n){let i="",r=!0;for(let a=0;a<LL;a++){const s=qs[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=l_(o,Gp[s]);if(!l){r=!1;const c=ML[s]||s;i+=`${c}(${u}) `}n&&(t[s]=u)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function $p(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(za.has(l)){s=!0;continue}else if(o_(l)){r[l]=u;continue}else{const c=l_(u,Gp[l]);l.startsWith("origin")?(o=!0,a[l]=c):i[l]=c}}if(t.transform||(s||n?i.transform=IL(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 PL={offset:"stroke-dashoffset",array:"stroke-dasharray"},BL={offset:"strokeDashoffset",array:"strokeDasharray"};function jL(e,t,n=1,i=0,r=!0){e.pathLength=1;const a=r?PL:BL;e[a.offset]=pe.transform(-i);const s=pe.transform(t),o=pe.transform(n);e[a.array]=`${s} ${o}`}function d_(e,t,n){return typeof e=="string"?e:pe.transform(t+n*e)}function zL(e,t,n){const i=d_(t,e.x,e.width),r=d_(n,e.y,e.height);return`${i} ${r}`}function Xp(e,{attrX:t,attrY:n,attrScale:i,originX:r,originY:a,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...u},c,d){if($p(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:g}=e;f.transform&&(g&&(h.transform=f.transform),delete f.transform),g&&(r!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=zL(g,r!==void 0?r:.5,a!==void 0?a:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),s!==void 0&&jL(f,s,o,l,!1)}const Kp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),f_=()=>({...Kp(),attrs:{}}),Qp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function h_(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 p_=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 m_(e,t,n,i){h_(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(p_.has(r)?r:Up(r),t.attrs[r])}const dd={};function UL(e){Object.assign(dd,e)}function g_(e,{layout:t,layoutId:n}){return za.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dd[e]||e==="opacity")}function Wp(e,t,n){var i;const{style:r}=e,a={};for(const s in r)(rn(r[s])||t.style&&rn(t.style[s])||g_(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 b_(e,t,n){const i=Wp(e,t,n);for(const r in e)if(rn(e[r])||rn(t[r])){const a=qs.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[a]=e[r]}return i}function HL(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 v_=["x","y","width","height","cx","cy","r"],FL={useVisualState:a_({scrapeMotionValuesFromProps:b_,createRenderState:f_,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(za.has(o)){a=!0;break}}if(!a)return;let s=!t;if(t)for(let o=0;o<v_.length;o++){const l=v_[o];e[l]!==t[l]&&(s=!0)}s&&rt.read(()=>{HL(n,i),rt.render(()=>{Xp(i,r,Qp(n.tagName),e.transformTemplate),m_(n,i)})})}})},VL={useVisualState:a_({scrapeMotionValuesFromProps:Wp,createRenderState:Kp})};function y_(e,t,n){for(const i in t)!rn(t[i])&&!g_(i,n)&&(e[i]=t[i])}function YL({transformTemplate:e},t){return _.useMemo(()=>{const n=Kp();return $p(n,t,e),Object.assign({},n.vars,n.style)},[t])}function qL(e,t){const n=e.style||{},i={};return y_(i,n,e),Object.assign(i,YL(e,t)),i}function GL(e,t){const n={},i=qL(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 $L(e,t,n,i){const r=_.useMemo(()=>{const a=f_();return Xp(a,t,Qp(i),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};y_(a,e.style,e),r.style={...a,...r.style}}return r}function XL(e=!1){return(n,i,r,{latestValues:a},s)=>{const l=(Fp(n)?$L:GL)(i,a,s,n),u=cL(i,typeof n=="string",e),c=n!==_.Fragment?{...u,...l,ref:r}:{},{children:d}=i,f=_.useMemo(()=>rn(d)?d.get():d,[d]);return _.createElement(n,{...c,children:f})}}function KL(e,t){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...Fp(i)?FL:VL,preloadedFeatures:e,useRender:XL(r),createVisualElement:t,Component:i};return vL(s)}}function x_(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 fd(e,t,n){const i=e.getProps();return Vp(i,t,n!==void 0?n:i.custom,e)}const QL=Pp(()=>window.ScrollTimeline!==void 0);class WL{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(QL()&&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 ZL extends WL{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Zp(e,t){return e?e[t]||e.default||e:void 0}const Jp=2e4;function __(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<Jp;)t+=n,i=e.next(t);return t>=Jp?1/0:t}function em(e){return typeof e=="function"}function E_(e,t){e.timeline=t,e.onfinish=null}const tm=e=>Array.isArray(e)&&typeof e[0]=="number",JL={linearEasing:void 0};function eI(e,t){const n=Pp(e);return()=>{var i;return(i=JL[t])!==null&&i!==void 0?i:n()}}const hd=eI(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),T_=(e,t,n=10)=>{let i="";const r=Math.max(Math.round(t/n),2);for(let a=0;a<r;a++)i+=e(Fs(0,r-1,a))+", ";return`linear(${i.substring(0,i.length-2)})`};function w_(e){return!!(typeof e=="function"&&hd()||!e||typeof e=="string"&&(e in nm||hd())||tm(e)||Array.isArray(e)&&e.every(w_))}const kl=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,nm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kl([0,.65,.55,1]),circOut:kl([.55,0,1,.45]),backIn:kl([.31,.01,.66,-.59]),backOut:kl([.33,1.53,.69,.99])};function S_(e,t){if(e)return typeof e=="function"&&hd()?T_(e,t):tm(e)?kl(e):Array.isArray(e)?e.map(n=>S_(n,t)||nm.easeOut):nm[e]}const Ai={x:!1,y:!1};function A_(){return Ai.x||Ai.y}function tI(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 C_(e,t){const n=tI(e),i=new AbortController,r={passive:!0,...t,signal:i.signal};return[n,r,()=>i.abort()]}function k_(e){return t=>{t.pointerType==="touch"||A_()||e(t)}}function nI(e,t,n={}){const[i,r,a]=C_(e,n),s=k_(o=>{const{target:l}=o,u=t(o);if(typeof u!="function"||!l)return;const c=k_(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,r)});return i.forEach(o=>{o.addEventListener("pointerenter",s,r)}),a}const O_=(e,t)=>t?e===t?!0:O_(e,t.parentElement):!1,im=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,iI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rI(e){return iI.has(e.tagName)||e.tabIndex!==-1}const Ol=new WeakSet;function N_(e){return t=>{t.key==="Enter"&&e(t)}}function rm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const aI=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=N_(()=>{if(Ol.has(n))return;rm(n,"down");const r=N_(()=>{rm(n,"up")}),a=()=>rm(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 R_(e){return im(e)&&!A_()}function sI(e,t,n={}){const[i,r,a]=C_(e,n),s=o=>{const l=o.currentTarget;if(!R_(o)||Ol.has(l))return;Ol.add(l);const u=t(o),c=(h,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!R_(h)||!Ol.has(l))&&(Ol.delete(l),typeof u=="function"&&u(h,{success:g}))},d=h=>{c(h,n.useGlobalTarget||O_(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return i.forEach(o=>{!rI(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,r),o.addEventListener("focus",u=>aI(u,r),r)}),a}function oI(e){return e==="x"||e==="y"?Ai[e]?null:(Ai[e]=!0,()=>{Ai[e]=!1}):Ai.x||Ai.y?null:(Ai.x=Ai.y=!0,()=>{Ai.x=Ai.y=!1})}const D_=new Set(["width","height","top","left","right","bottom",...qs]);let pd;function lI(){pd=void 0}const Yi={now:()=>(pd===void 0&&Yi.set(Wt.isProcessing||rL.useManualTiming?Wt.timestamp:performance.now()),pd),set:e=>{pd=e,queueMicrotask(lI)}};function am(e,t){e.indexOf(t)===-1&&e.push(t)}function sm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class om{constructor(){this.subscriptions=[]}add(t){return am(this.subscriptions,t),()=>sm(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 M_(e,t){return t?e*(1e3/t):0}const L_=30,uI=e=>!isNaN(parseFloat(e));class cI{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const a=Yi.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=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uI(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 om);const i=this.events[t].add(n);return t==="change"?()=>{i(),rt.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=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>L_)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,L_);return M_(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 Nl(e,t){return new cI(e,t)}function dI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nl(n))}function fI(e,t){const n=fd(e,t);let{transitionEnd:i={},transition:r={},...a}=n||{};a={...a,...i};for(const s in a){const o=wL(a[s]);dI(e,s,o)}}function hI(e){return!!(rn(e)&&e.add)}function lm(e,t){const n=e.getValue("willChange");if(hI(n))return n.add(t)}function I_(e){return e.props[t_]}const P_=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,pI=1e-7,mI=12;function gI(e,t,n,i,r){let a,s,o=0;do s=t+(n-t)/2,a=P_(s,i,r)-e,a>0?n=s:t=s;while(Math.abs(a)>pI&&++o<mI);return s}function Rl(e,t,n,i){if(e===t&&n===i)return Bn;const r=a=>gI(a,0,1,e,n);return a=>a===0||a===1?a:P_(r(a),t,i)}const B_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,j_=e=>t=>1-e(1-t),z_=Rl(.33,1.53,.69,.99),um=j_(z_),U_=B_(um),H_=e=>(e*=2)<1?.5*um(e):.5*(2-Math.pow(2,-10*(e-1))),cm=e=>1-Math.sin(Math.acos(e)),F_=j_(cm),V_=B_(cm),Y_=e=>/^0[^.\s]+$/u.test(e);function bI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Y_(e):!0}const Dl=e=>Math.round(e*1e5)/1e5,dm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vI(e){return e==null}const yI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fm=(e,t)=>n=>!!(typeof n=="string"&&yI.test(n)&&n.startsWith(e)||t&&!vI(n)&&Object.prototype.hasOwnProperty.call(n,t)),q_=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,a,s,o]=i.match(dm);return{[e]:parseFloat(r),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},xI=e=>hr(0,255,e),hm={...Gs,transform:e=>Math.round(xI(e))},Ua={test:fm("rgb","red"),parse:q_("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+hm.transform(e)+", "+hm.transform(t)+", "+hm.transform(n)+", "+Dl(Al.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 pm={test:fm("#"),parse:_I,transform:Ua.transform},$s={test:fm("hsl","hue"),parse:q_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Vi.transform(Dl(t))+", "+Vi.transform(Dl(n))+", "+Dl(Al.transform(i))+")"},an={test:e=>Ua.test(e)||pm.test(e)||$s.test(e),parse:e=>Ua.test(e)?Ua.parse(e):$s.test(e)?$s.parse(e):pm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ua.transform(e):$s.transform(e)},EI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function TI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(dm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(EI))===null||n===void 0?void 0:n.length)||0)>0}const G_="number",$_="color",wI="var",SI="var(",X_="${}",AI=/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 Ml(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let a=0;const o=t.replace(AI,l=>(an.test(l)?(i.color.push(a),r.push($_),n.push(an.parse(l))):l.startsWith(SI)?(i.var.push(a),r.push(wI),n.push(l)):(i.number.push(a),r.push(G_),n.push(parseFloat(l))),++a,X_)).split(X_);return{values:n,split:o,indexes:i,types:r}}function K_(e){return Ml(e).values}function Q_(e){const{split:t,types:n}=Ml(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===G_?a+=Dl(r[s]):o===$_?a+=an.transform(r[s]):a+=r[s]}return a}}const CI=e=>typeof e=="number"?0:e;function kI(e){const t=K_(e);return Q_(e)(t.map(CI))}const Kr={test:TI,parse:K_,createTransformer:Q_,getAnimatableNone:kI},OI=new Set(["brightness","contrast","saturate","opacity"]);function NI(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(dm)||[];if(!i)return e;const r=n.replace(i,"");let a=OI.has(t)?1:0;return i!==n&&(a*=100),t+"("+a+r+")"}const RI=/\b([a-z-]*)\(.*?\)/gu,mm={...Kr,getAnimatableNone:e=>{const t=e.match(RI);return t?t.map(NI).join(" "):e}},DI={...Gp,color:an,backgroundColor:an,outlineColor:an,fill:an,stroke:an,borderColor:an,borderTopColor:an,borderRightColor:an,borderBottomColor:an,borderLeftColor:an,filter:mm,WebkitFilter:mm},gm=e=>DI[e];function W_(e,t){let n=gm(e);return n!==mm&&(n=Kr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const MI=new Set(["auto","none","0"]);function LI(e,t,n){let i=0,r;for(;i<e.length&&!r;){const a=e[i];typeof a=="string"&&!MI.has(a)&&Ml(a).values.length&&(r=e[i]),i++}if(r&&n)for(const a of t)e[a]=W_(n,r)}const Z_=e=>e===Gs||e===pe,J_=(e,t)=>parseFloat(e.split(", ")[t]),eE=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return J_(r[1],t);{const a=i.match(/^matrix\((.+)\)$/u);return a?J_(a[1],e):0}},II=new Set(["x","y","z"]),PI=qs.filter(e=>!II.has(e));function BI(e){const t=[];return PI.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const Xs={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:eE(4,13),y:eE(5,14)};Xs.translateX=Xs.x,Xs.translateY=Xs.y;const Ha=new Set;let bm=!1,vm=!1;function tE(){if(vm){const e=Array.from(Ha).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=BI(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)})}vm=!1,bm=!1,Ha.forEach(e=>e.complete()),Ha.clear()}function nE(){Ha.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vm=!0)})}function jI(){nE(),tE()}class ym{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?(Ha.add(this),bm||(bm=!0,rt.read(nE),rt.resolveKeyframes(tE))):(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),Ha.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ha.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const iE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),zI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UI(e){const t=zI.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}function rE(e,t,n=1){const[i,r]=UI(e);if(!i)return;const a=window.getComputedStyle(t).getPropertyValue(i);if(a){const s=a.trim();return iE(s)?parseFloat(s):s}return qp(r)?rE(r,t,n+1):r}const aE=e=>t=>t.test(e),sE=[Gs,pe,Vi,Xr,NL,OL,{test:e=>e==="auto",parse:e=>e}],oE=e=>sE.find(aE(e));class lE extends ym{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(),qp(u))){const c=rE(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!D_.has(i)||t.length!==2)return;const[r,a]=t,s=oE(r),o=oE(a);if(s!==o)if(Z_(s)&&Z_(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++)bI(t[r])&&i.push(r);i.length&&LI(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=Xs[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]=Xs[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 uE=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Kr.test(e)||e==="0")&&!e.startsWith("url("));function HI(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 FI(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=uE(r,t),o=uE(a,t);return!s||!o?!1:HI(e)||(n==="spring"||em(n))&&i}const VI=e=>e!==null;function md(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(VI),a=t&&n!=="loop"&&t%2===1?0:r.length-1;return!a||i===void 0?r[a]:i}const YI=40;class cE{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=Yi.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>YI?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&jI(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yi.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:a,delay:s,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!FI(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 ht=(e,t,n)=>e+(t-e)*n;function xm(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 qI({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=xm(l,o,e+1/3),a=xm(l,o,e),s=xm(l,o,e-1/3)}return{red:Math.round(r*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:i}}function gd(e,t){return n=>n>0?t:e}const _m=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},GI=[pm,Ua,$s],$I=e=>GI.find(t=>t.test(e));function dE(e){const t=$I(e);if(!t)return!1;let n=t.parse(e);return t===$s&&(n=qI(n)),n}const fE=(e,t)=>{const n=dE(e),i=dE(t);if(!n||!i)return gd(e,t);const r={...n};return a=>(r.red=_m(n.red,i.red,a),r.green=_m(n.green,i.green,a),r.blue=_m(n.blue,i.blue,a),r.alpha=ht(n.alpha,i.alpha,a),Ua.transform(r))},XI=(e,t)=>n=>t(e(n)),Ll=(...e)=>e.reduce(XI),Em=new Set(["none","hidden"]);function KI(e,t){return Em.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function QI(e,t){return n=>ht(e,t,n)}function Tm(e){return typeof e=="number"?QI:typeof e=="string"?qp(e)?gd:an.test(e)?fE:JI:Array.isArray(e)?hE:typeof e=="object"?an.test(e)?fE:WI:gd}function hE(e,t){const n=[...e],i=n.length,r=e.map((a,s)=>Tm(a)(a,t[s]));return a=>{for(let s=0;s<i;s++)n[s]=r[s](a);return n}}function WI(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=Tm(e[r])(e[r],t[r]));return r=>{for(const a in i)n[a]=i[a](r);return n}}function ZI(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 JI=(e,t)=>{const n=Kr.createTransformer(t),i=Ml(e),r=Ml(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?Em.has(e)&&!r.values.length||Em.has(t)&&!i.values.length?KI(e,t):Ll(hE(ZI(i,r),r.values),n):gd(e,t)};function pE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ht(e,t,n):Tm(e)(e,t)}const e8=5;function mE(e,t,n){const i=Math.max(t-e8,0);return M_(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},wm=.001;function t8({duration:e=bt.duration,bounce:t=bt.bounce,velocity:n=bt.velocity,mass:i=bt.mass}){let r,a,s=1-t;s=hr(bt.minDamping,bt.maxDamping,s),e=hr(bt.minDuration,bt.maxDuration,fr(e)),s<1?(r=u=>{const c=u*s,d=c*e,f=c-n,h=Sm(u,s),g=Math.exp(-d);return wm-f/h*g},a=u=>{const d=u*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-d),b=Sm(Math.pow(u,2),s);return(-r(u)+wm>0?-1:1)*((f-h)*g)/b}):(r=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-wm+c*d},a=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const o=5/e,l=i8(r,a,o);if(e=dr(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 n8=12;function i8(e,t,n){let i=n;for(let r=1;r<n8;r++)i=i-e(i)/t(i);return i}function Sm(e,t){return e*Math.sqrt(1-t*t)}const r8=["duration","bounce"],a8=["stiffness","damping","mass"];function gE(e,t){return t.some(n=>e[n]!==void 0)}function s8(e){let t={velocity:bt.velocity,stiffness:bt.stiffness,damping:bt.damping,mass:bt.mass,isResolvedFromDuration:!1,...e};if(!gE(e,a8)&&gE(e,r8))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,a=2*hr(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:bt.mass,stiffness:r,damping:a}}else{const n=t8(e);t={...t,...n,mass:bt.mass},t.isResolvedFromDuration=!0}return t}function bE(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:d,velocity:f,isResolvedFromDuration:h}=s8({...n,velocity:-fr(n.velocity||0)}),g=f||0,b=u/(2*Math.sqrt(l*c)),E=s-a,m=fr(Math.sqrt(l/c)),v=Math.abs(E)<5;i||(i=v?bt.restSpeed.granular:bt.restSpeed.default),r||(r=v?bt.restDelta.granular:bt.restDelta.default);let x;if(b<1){const S=Sm(m,b);x=A=>{const D=Math.exp(-b*m*A);return s-D*((g+b*m*E)/S*Math.sin(S*A)+E*Math.cos(S*A))}}else if(b===1)x=S=>s-Math.exp(-m*S)*(E+(g+m*E)*S);else{const S=m*Math.sqrt(b*b-1);x=A=>{const D=Math.exp(-b*m*A),L=Math.min(S*A,300);return s-D*((g+b*m*E)*Math.sinh(L)+S*E*Math.cosh(L))/S}}const T={calculatedDuration:h&&d||null,next:S=>{const A=x(S);if(h)o.done=S>=d;else{let D=0;b<1&&(D=S===0?dr(g):mE(x,S,A));const L=Math.abs(D)<=i,B=Math.abs(s-A)<=r;o.done=L&&B}return o.value=o.done?s:A,o},toString:()=>{const S=Math.min(__(T),Jp),A=T_(D=>T.next(S*D).value,S,30);return S+"ms "+A}};return T}function vE({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 d=e[0],f={done:!1,value:d},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 E=d+b,m=s===void 0?E:s(E);m!==E&&(b=m-d);const v=L=>-b*Math.exp(-L/i),x=L=>m+v(L),T=L=>{const B=v(L),O=x(L);f.done=Math.abs(B)<=u,f.value=f.done?m:O};let S,A;const D=L=>{h(f.value)&&(S=L,A=bE({keyframes:[f.value,g(f.value)],velocity:mE(x,L,f.value),damping:r,stiffness:a,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:L=>{let B=!1;return!A&&S===void 0&&(B=!0,T(L),D(L)),S!==void 0&&L>=S?A.next(L-S):(!B&&T(L),f)}}}const o8=Rl(.42,0,1,1),l8=Rl(0,0,.58,1),yE=Rl(.42,0,.58,1),u8=e=>Array.isArray(e)&&typeof e[0]!="number",c8={linear:Bn,easeIn:o8,easeInOut:yE,easeOut:l8,circIn:cm,circInOut:V_,circOut:F_,backIn:um,backInOut:U_,backOut:z_,anticipate:H_},xE=e=>{if(tm(e)){Xx(e.length===4);const[t,n,i,r]=e;return Rl(t,n,i,r)}else if(typeof e=="string")return c8[e];return e};function d8(e,t,n){const i=[],r=n||pE,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]||Bn:t;o=Ll(l,o)}i.push(o)}return i}function f8(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const a=e.length;if(Xx(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=d8(t,i,r),l=o.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Fs(e[d],e[d+1],c);return o[d](f)};return n?c=>u(hr(e[0],e[a-1],c)):u}function h8(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=Fs(0,t,i);e.push(ht(n,1,r))}}function p8(e){const t=[0];return h8(t,e.length-1),t}function m8(e,t){return e.map(n=>n*t)}function g8(e,t){return e.map(()=>t||yE).splice(0,e.length-1)}function bd({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=u8(i)?i.map(xE):xE(i),a={done:!1,value:t[0]},s=m8(n&&n.length===t.length?n:p8(t),e),o=f8(s,t,{ease:Array.isArray(r)?r:g8(t,r)});return{calculatedDuration:e,next:l=>(a.value=o(l),a.done=l>=e,a)}}const b8=e=>{const t=({timestamp:n})=>e(n);return{start:()=>rt.update(t,!0),stop:()=>$r(t),now:()=>Wt.isProcessing?Wt.timestamp:Yi.now()}},v8={decay:vE,inertia:vE,tween:bd,keyframes:bd,spring:bE},y8=e=>e/100;class Am extends cE{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)||ym,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=em(n)?n:v8[n]||bd;let l,u;o!==bd&&typeof t[0]!="number"&&(l=Ll(y8,pE(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=__(c));const{calculatedDuration:d}=c,f=d+r,h=f*(i+1)-r;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,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:d}=i;if(this.startTime===null)return a.next(0);const{delay:f,repeat:h,repeatType:g,repeatDelay:b,onUpdate:E}=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-f*(this.speed>=0?1:-1),v=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,T=a;if(h){const L=Math.min(this.currentTime,c)/d;let B=Math.floor(L),O=L%1;!O&&L>=1&&(O=1),O===1&&B--,B=Math.min(B,h+1),!!(B%2)&&(g==="reverse"?(O=1-O,b&&(O-=b/d)):g==="mirror"&&(T=s)),x=hr(0,1,O)*d}const S=v?{done:!1,value:l[0]}:T.next(x);o&&(S.value=o(S.value));let{done:A}=S;!v&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return D&&r!==void 0&&(S.value=md(l,this.options,r)),E&&E(S.value),D&&this.finish(),S}get duration(){const{resolved:t}=this;return t?fr(t.calculatedDuration):0}get time(){return fr(this.currentTime)}set time(t){t=dr(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=fr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=b8,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 x8=new Set(["opacity","clipPath","filter","transform"]);function _8(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=S_(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 E8=Pp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),vd=10,T8=2e4;function w8(e){return em(e.type)||e.type==="spring"||!w_(e.ease)}function S8(e,t){const n=new Am({...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<T8;)i=n.sample(a),r.push(i.value),a+=vd;return{times:void 0,keyframes:r,duration:a-vd,ease:"linear"}}const _E={anticipate:H_,backInOut:U_,circInOut:V_};function A8(e){return e in _E}class EE extends cE{constructor(t){super(t);const{name:n,motionValue:i,element:r,keyframes:a}=this.options;this.resolver=new lE(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"&&hd()&&A8(a)&&(a=_E[a]),w8(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:g,...b}=this.options,E=S8(t,b);t=E.keyframes,t.length===1&&(t[1]=t[0]),i=E.duration,r=E.times,a=E.ease,s="keyframes"}const c=_8(o.owner.current,l,t,{...this.options,duration:i,times:r,ease:a});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(E_(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;o.set(md(t,this.options,n)),d&&d(),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 fr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return fr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=dr(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 Bn;const{animation:i}=n;E_(i,t)}return Bn}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:d,element:f,...h}=this.options,g=new Am({...h,keyframes:i,duration:r,type:a,ease:s,times:o,isGenerator:!0}),b=dr(this.time);u.setWithVelocity(g.sample(b-vd).value,g.sample(b).value,vd)}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 E8()&&i&&x8.has(i)&&!l&&!u&&!r&&a!=="mirror"&&s!==0&&o!=="inertia"}}const C8={type:"spring",stiffness:500,damping:25,restSpeed:10},k8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),O8={type:"keyframes",duration:.8},N8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},R8=(e,{keyframes:t})=>t.length>2?O8:za.has(e)?e.startsWith("scale")?k8(t[1]):C8:N8;function D8({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 Cm=(e,t,n,i={},r,a)=>s=>{const o=Zp(i,e)||{},l=o.delay||i.delay||0;let{elapsed:u=0}=i;u=u-dr(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:r};D8(o)||(c={...c,...R8(e,c)}),c.duration&&(c.duration=dr(c.duration)),c.repeatDelay&&(c.repeatDelay=dr(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!a&&t.get()!==void 0){const f=md(c.keyframes,o);if(f!==void 0)return rt.update(()=>{c.onUpdate(f),c.onComplete()}),new ZL([])}return!a&&EE.supports(c)?new EE(c):new Am(c)};function M8({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function TE(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 d in l){const f=e.getValue(d,(a=e.latestValues[d])!==null&&a!==void 0?a:null),h=l[d];if(h===void 0||c&&M8(c,d))continue;const g={delay:n,...Zp(s||{},d)};let b=!1;if(window.MotionHandoffAnimation){const m=I_(e);if(m){const v=window.MotionHandoffAnimation(m,d,rt);v!==null&&(g.startTime=v,b=!0)}}lm(e,d),f.start(Cm(d,f,h,e.shouldReduceMotion&&D_.has(d)?{type:!1}:g,e,b));const E=f.animation;E&&u.push(E)}return o&&Promise.all(u).then(()=>{rt.update(()=>{o&&fI(e,o)})}),u}function km(e,t,n={}){var i;const r=fd(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(TE(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=a;return L8(e,t,c+u,d,f,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 L8(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(I8).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(km(u,t,{...a,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function I8(e,t){return e.sortNodePosition(t)}function P8(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(a=>km(e,a,n));i=Promise.all(r)}else if(typeof t=="string")i=km(e,t,n);else{const r=typeof t=="function"?fd(e,t,n.custom):t;i=Promise.all(TE(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const B8=zp.length;function wE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?wE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<B8;n++){const i=zp[n],r=e.props[i];(Sl(r)||r===!1)&&(t[i]=r)}return t}const j8=[...jp].reverse(),z8=jp.length;function U8(e){return t=>Promise.all(t.map(({animation:n,options:i})=>P8(e,n,i)))}function H8(e){let t=U8(e),n=SE(),i=!0;const r=l=>(u,c)=>{var d;const f=fd(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:g,...b}=f;u={...u,...b,...g}}return u};function a(l){t=l(e)}function s(l){const{props:u}=e,c=wE(e.parent)||{},d=[],f=new Set;let h={},g=1/0;for(let E=0;E<z8;E++){const m=j8[E],v=n[m],x=u[m]!==void 0?u[m]:c[m],T=Sl(x),S=m===l?v.isActive:null;S===!1&&(g=E);let A=x===c[m]&&x!==u[m]&&T;if(A&&i&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...h},!v.isActive&&S===null||!x&&!v.prevProp||od(x)||typeof x=="boolean")continue;const D=F8(v.prevProp,x);let L=D||m===l&&v.isActive&&!A&&T||E>g&&T,B=!1;const O=Array.isArray(x)?x:[x];let Y=O.reduce(r(m),{});S===!1&&(Y={});const{prevResolvedValues:U={}}=v,re={...U,...Y},ee=V=>{L=!0,f.has(V)&&(B=!0,f.delete(V)),v.needsAnimating[V]=!0;const H=e.getValue(V);H&&(H.liveStyle=!1)};for(const V in re){const H=Y[V],te=U[V];if(h.hasOwnProperty(V))continue;let N=!1;Yp(H)&&Yp(te)?N=!x_(H,te):N=H!==te,N?H!=null?ee(V):f.add(V):H!==void 0&&f.has(V)?ee(V):v.protectedKeys[V]=!0}v.prevProp=x,v.prevResolvedValues=Y,v.isActive&&(h={...h,...Y}),i&&e.blockInitialAnimation&&(L=!1),L&&(!(A&&D)||B)&&d.push(...O.map(V=>({animation:V,options:{type:m}})))}if(f.size){const E={};f.forEach(m=>{const v=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),E[m]=v??null}),d.push({animation:E})}let b=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(d):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(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=SE(),i=!0}}}function F8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!x_(t,e):!1}function Fa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function SE(){return{animate:Fa(!0),whileInView:Fa(),whileHover:Fa(),whileTap:Fa(),whileDrag:Fa(),whileFocus:Fa(),exit:Fa()}}class Qr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class V8 extends Qr{constructor(t){super(t),t.animationState||(t.animationState=H8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();od(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 Y8=0;class q8 extends Qr{constructor(){super(...arguments),this.id=Y8++}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 G8={animation:{Feature:V8},exit:{Feature:q8}};function Il(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function Pl(e){return{point:{x:e.pageX,y:e.pageY}}}const $8=e=>t=>im(t)&&e(t,Pl(t));function Bl(e,t,n,i){return Il(e,t,$8(n),i)}const AE=(e,t)=>Math.abs(e-t);function X8(e,t){const n=AE(e.x,t.x),i=AE(e.y,t.y);return Math.sqrt(n**2+i**2)}class CE{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 d=Nm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=X8(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:g}=d,{timestamp:b}=Wt;this.history.push({...g,timestamp:b});const{onStart:E,onMove:m}=this.handlers;f||(E&&E(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Om(f,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Nm(d.type==="pointercancel"?this.lastMoveEventInfo:Om(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,E),g&&g(d,E)},!im(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const s=Pl(t),o=Om(s,this.transformPagePoint),{point:l}=o,{timestamp:u}=Wt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Nm(o,this.history)),this.removeListeners=Ll(Bl(this.contextWindow,"pointermove",this.handlePointerMove),Bl(this.contextWindow,"pointerup",this.handlePointerUp),Bl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$r(this.updatePoint)}}function Om(e,t){return t?{point:t(e.point)}:e}function kE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nm({point:e},t){return{point:e,delta:kE(e,OE(t)),offset:kE(e,K8(t)),velocity:Q8(t,.1)}}function K8(e){return e[0]}function OE(e){return e[e.length-1]}function Q8(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=OE(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>dr(t)));)n--;if(!i)return{x:0,y:0};const a=fr(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 NE=1e-4,W8=1-NE,Z8=1+NE,RE=.01,J8=0-RE,eP=0+RE;function jn(e){return e.max-e.min}function tP(e,t,n){return Math.abs(e-t)<=n}function DE(e,t,n,i=.5){e.origin=i,e.originPoint=ht(t.min,t.max,e.origin),e.scale=jn(n)/jn(t),e.translate=ht(n.min,n.max,e.origin)-e.originPoint,(e.scale>=W8&&e.scale<=Z8||isNaN(e.scale))&&(e.scale=1),(e.translate>=J8&&e.translate<=eP||isNaN(e.translate))&&(e.translate=0)}function jl(e,t,n,i){DE(e.x,t.x,n.x,i?i.originX:void 0),DE(e.y,t.y,n.y,i?i.originY:void 0)}function ME(e,t,n){e.min=n.min+t.min,e.max=e.min+jn(t)}function nP(e,t,n){ME(e.x,t.x,n.x),ME(e.y,t.y,n.y)}function LE(e,t,n){e.min=t.min-n.min,e.max=e.min+jn(t)}function zl(e,t,n){LE(e.x,t.x,n.x),LE(e.y,t.y,n.y)}function iP(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?ht(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?ht(n,e,i.max):Math.min(e,n)),e}function IE(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 rP(e,{top:t,left:n,bottom:i,right:r}){return{x:IE(e.x,n,r),y:IE(e.y,t,i)}}function PE(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 aP(e,t){return{x:PE(e.x,t.x),y:PE(e.y,t.y)}}function sP(e,t){let n=.5;const i=jn(e),r=jn(t);return r>i?n=Fs(t.min,t.max-i,e.min):i>r&&(n=Fs(e.min,e.max-r,t.min)),hr(0,1,n)}function oP(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 Rm=.35;function lP(e=Rm){return e===!1?e=0:e===!0&&(e=Rm),{x:BE(e,"left","right"),y:BE(e,"top","bottom")}}function BE(e,t,n){return{min:jE(e,t),max:jE(e,n)}}function jE(e,t){return typeof e=="number"?e:e[t]||0}const zE=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ks=()=>({x:zE(),y:zE()}),UE=()=>({min:0,max:0}),_t=()=>({x:UE(),y:UE()});function ri(e){return[e("x"),e("y")]}function HE({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function uP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cP(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 Dm(e){return e===void 0||e===1}function Mm({scale:e,scaleX:t,scaleY:n}){return!Dm(e)||!Dm(t)||!Dm(n)}function Va(e){return Mm(e)||FE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function FE(e){return VE(e.x)||VE(e.y)}function VE(e){return e&&e!=="0%"}function yd(e,t,n){const i=e-n,r=t*i;return n+r}function YE(e,t,n,i,r){return r!==void 0&&(e=yd(e,r,i)),yd(e,n,i)+t}function Lm(e,t=0,n=1,i,r){e.min=YE(e.min,t,n,i,r),e.max=YE(e.max,t,n,i,r)}function qE(e,{x:t,y:n}){Lm(e.x,t.translate,t.scale,t.originPoint),Lm(e.y,n.translate,n.scale,n.originPoint)}const GE=.999999999999,$E=1.0000000000001;function dP(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&&Ws(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,qE(e,s)),i&&Va(a.latestValues)&&Ws(e,a.latestValues))}t.x<$E&&t.x>GE&&(t.x=1),t.y<$E&&t.y>GE&&(t.y=1)}function Qs(e,t){e.min=e.min+t,e.max=e.max+t}function XE(e,t,n,i,r=.5){const a=ht(e.min,e.max,r);Lm(e,t,n,a,i)}function Ws(e,t){XE(e.x,t.x,t.scaleX,t.scale,t.originX),XE(e.y,t.y,t.scaleY,t.scale,t.originY)}function KE(e,t){return HE(cP(e.getBoundingClientRect(),t))}function fP(e,t,n){const i=KE(e,n),{scroll:r}=t;return r&&(Qs(i.x,r.offset.x),Qs(i.y,r.offset.y)),i}const QE=({current:e})=>e?e.ownerDocument.defaultView:null,hP=new WeakMap;class pP{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=_t(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Pl(c).point)},a=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:g}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=oI(f),!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),ri(E=>{let m=this.getAxisMotionValue(E).get()||0;if(Vi.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[E];x&&(m=jn(x)*(parseFloat(m)/100))}}this.originPoint[E]=m}),g&&rt.postRender(()=>g(c,d)),lm(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:g,onDrag:b}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:E}=d;if(h&&this.currentDirection===null){this.currentDirection=mP(E),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,E),this.updateAxis("y",d.point,E),this.visualElement.render(),b&&b(c,d)},o=(c,d)=>this.stop(c,d),l=()=>ri(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new CE(t,{onSessionStart:r,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:QE(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&&rt.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||!xd(t,r,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=iP(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&&Ys(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=rP(r.layoutBox,n):this.constraints=!1,this.elastic=lP(i),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ri(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=oP(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ys(t))return!1;const i=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const a=fP(i,r.root,this.visualElement.getTransformPagePoint());let s=aP(r.layout.layoutBox,a);if(n){const o=n(uP(s));this.hasMutatedConstraints=!!o,o&&(s=HE(o))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=ri(c=>{if(!xd(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=r?200:1e6,h=r?40:1e7,g={type:"inertia",velocity:i?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return lm(this.visualElement,t),i.start(Cm(t,i,0,n,this.visualElement,!1))}stopAnimation(){ri(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ri(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){ri(n=>{const{drag:i}=this.getProps();if(!xd(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]-ht(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ys(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ri(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();r[s]=sP({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(),ri(s=>{if(!xd(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(ht(l,u,r[s]))})}addListeners(){if(!this.visualElement.current)return;hP.set(this.visualElement,this);const t=this.visualElement.current,n=Bl(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Ys(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()),rt.read(i);const s=Il(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ri(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.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=Rm,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function xd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class gP extends Qr{constructor(t){super(t),this.removeGroupControls=Bn,this.removeListeners=Bn,this.controls=new pP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bn}unmount(){this.removeGroupControls(),this.removeListeners()}}const WE=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class bP extends Qr{constructor(){super(...arguments),this.removePointerDownListener=Bn}onPointerDown(t){this.session=new CE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:QE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:WE(t),onStart:WE(n),onMove:i,onEnd:(a,s)=>{delete this.session,r&&rt.postRender(()=>r(a,s))}}}mount(){this.removePointerDownListener=Bl(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 _d={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ZE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ul={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const n=ZE(e,t.target.x),i=ZE(e,t.target.y);return`${n}% ${i}%`}},vP={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=Kr.parse(e);if(r.length>5)return i;const a=Kr.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=ht(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 yP extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:a}=t;UL(xP),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()})),_d.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()||rt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hp.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 JE(e){const[t,n]=qx(),i=_.useContext(Dp);return y.jsx(yP,{...e,layoutGroup:i,switchLayoutGroup:_.useContext(n_),isPresent:t,safeToRemove:n})}const xP={borderRadius:{...Ul,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ul,borderTopRightRadius:Ul,borderBottomLeftRadius:Ul,borderBottomRightRadius:Ul,boxShadow:vP};function _P(e,t,n){const i=rn(e)?e:Nl(e);return i.start(Cm("",i,t,n)),i.animation}function EP(e){return e instanceof SVGElement&&e.tagName!=="svg"}const TP=(e,t)=>e.depth-t.depth;class wP{constructor(){this.children=[],this.isDirty=!1}add(t){am(this.children,t),this.isDirty=!0}remove(t){sm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(TP),this.isDirty=!1,this.children.forEach(t)}}function SP(e,t){const n=Yi.now(),i=({timestamp:r})=>{const a=r-n;a>=t&&($r(i),e(a-t))};return rt.read(i,!0),()=>$r(i)}const eT=["TopLeft","TopRight","BottomLeft","BottomRight"],AP=eT.length,tT=e=>typeof e=="string"?parseFloat(e):e,nT=e=>typeof e=="number"||pe.test(e);function CP(e,t,n,i,r,a){r?(e.opacity=ht(0,n.opacity!==void 0?n.opacity:1,kP(i)),e.opacityExit=ht(t.opacity!==void 0?t.opacity:1,0,OP(i))):a&&(e.opacity=ht(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<AP;s++){const o=`border${eT[s]}Radius`;let l=iT(t,o),u=iT(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||nT(l)===nT(u)?(e[o]=Math.max(ht(tT(l),tT(u),i),0),(Vi.test(u)||Vi.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=ht(t.rotate||0,n.rotate||0,i))}function iT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const kP=rT(0,.5,F_),OP=rT(.5,.95,Bn);function rT(e,t,n){return i=>i<e?0:i>t?1:n(Fs(e,t,i))}function aT(e,t){e.min=t.min,e.max=t.max}function ai(e,t){aT(e.x,t.x),aT(e.y,t.y)}function sT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function oT(e,t,n,i,r){return e-=t,e=yd(e,1/n,i),r!==void 0&&(e=yd(e,1/r,i)),e}function NP(e,t=0,n=1,i=.5,r,a=e,s=e){if(Vi.test(t)&&(t=parseFloat(t),t=ht(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ht(a.min,a.max,i);e===a&&(o-=t),e.min=oT(e.min,t,n,o,r),e.max=oT(e.max,t,n,o,r)}function lT(e,t,[n,i,r],a,s){NP(e,t[n],t[i],t[r],t.scale,a,s)}const RP=["x","scaleX","originX"],DP=["y","scaleY","originY"];function uT(e,t,n,i){lT(e.x,t,RP,n?n.x:void 0,i?i.x:void 0),lT(e.y,t,DP,n?n.y:void 0,i?i.y:void 0)}function cT(e){return e.translate===0&&e.scale===1}function dT(e){return cT(e.x)&&cT(e.y)}function fT(e,t){return e.min===t.min&&e.max===t.max}function MP(e,t){return fT(e.x,t.x)&&fT(e.y,t.y)}function hT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pT(e,t){return hT(e.x,t.x)&&hT(e.y,t.y)}function mT(e){return jn(e.x)/jn(e.y)}function gT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class LP{constructor(){this.members=[]}add(t){am(this.members,t),t.scheduleRender()}remove(t){if(sm(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 IP(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:d,rotateY:f,skewX:h,skewY:g}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}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 Ya={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Hl=typeof window<"u"&&window.MotionDebug!==void 0,Im=["","X","Y","Z"],PP={visibility:"hidden"},bT=1e3;let BP=0;function Pm(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function vT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=I_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(r||a))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&vT(i)}function yT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},o=t==null?void 0:t()){this.id=BP++,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,Hl&&(Ya.totalNodes=Ya.resolvedTargetDeltas=Ya.recalculatedProjection=0),this.nodes.forEach(UP),this.nodes.forEach(qP),this.nodes.forEach(GP),this.nodes.forEach(HP),Hl&&window.MotionDebug.record(Ya)},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 wP)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new om),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=EP(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 d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=SP(f,250),_d.hasAnimatedSinceResize&&(_d.hasAnimatedSinceResize=!1,this.nodes.forEach(_T))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||WP,{onLayoutAnimationStart:E,onLayoutAnimationComplete:m}=c.getProps(),v=!this.targetLayout||!pT(this.targetLayout,g)||h,x=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const T={...Zp(b,"layout"),onPlay:E,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||_T(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,$r(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($P),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&&vT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.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(xT);return}this.isUpdating||this.nodes.forEach(VP),this.isUpdating=!1,this.nodes.forEach(YP),this.nodes.forEach(jP),this.nodes.forEach(zP),this.clearAllSnapshots();const o=Yi.now();Wt.delta=hr(0,1e3/60,o-Wt.timestamp),Wt.timestamp=o,Wt.isProcessing=!0,Bp.update.process(Wt),Bp.preRender.process(Wt),Bp.render.process(Wt),Wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(FP),this.sharedNodes.forEach(XP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rt.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=_t(),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&&!dT(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(o||Va(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)),ZP(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return _t();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(JP))){const{scroll:c}=this.root;c&&(Qs(l.x,c.offset.x),Qs(l.y,c.offset.y))}return l}removeElementScroll(s){var o;const l=_t();if(ai(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:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&ai(l,s),Qs(l.x,d.offset.x),Qs(l.y,d.offset.y))}return l}applyTransform(s,o=!1){const l=_t();ai(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&&Ws(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Va(c.latestValues)&&Ws(l,c.latestValues)}return Va(this.latestValues)&&Ws(l,this.latestValues),l}removeTransform(s){const o=_t();ai(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Va(u.latestValues))continue;Mm(u.latestValues)&&u.updateSnapshot();const c=_t(),d=u.measurePageBox();ai(c,d),uT(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Va(this.latestValues)&&uT(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:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){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=_t(),this.relativeTargetOrigin=_t(),zl(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ai(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=_t(),this.targetWithTransforms=_t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),nP(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ai(this.target,this.layout.layoutBox),qE(this.target,this.targetDelta)):ai(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=_t(),this.relativeTargetOrigin=_t(),zl(this.relativeTargetOrigin,this.target,h.target),ai(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Hl&&Ya.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Mm(this.parent.latestValues)||FE(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:d}=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||d))return;ai(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;dP(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=_t());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(sT(this.prevProjectionDelta.x,this.projectionDelta.x),sT(this.prevProjectionDelta.y,this.projectionDelta.y)),jl(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!gT(this.projectionDelta.x,this.prevProjectionDelta.x)||!gT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Hl&&Ya.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=Ks(),this.projectionDelta=Ks(),this.projectionDeltaWithTransform=Ks()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Ks();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=_t(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=h!==g,E=this.getStack(),m=!E||E.members.length<=1,v=!!(b&&!m&&this.options.crossfade===!0&&!this.path.some(QP));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const S=T/1e3;ET(d.x,s.x,S),ET(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),KP(this.relativeTarget,this.relativeTargetOrigin,f,S),x&&MP(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=_t()),ai(x,this.relativeTarget)),b&&(this.animationValues=c,CP(c,u,this.latestValues,S,v,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&&($r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{_d.hasAnimatedSinceResize=!0,this.currentAnimation=_P(0,bT,{...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(bT),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&&CT(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||_t();const d=jn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=jn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}ai(o,l),Ws(o,c),jl(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new LP),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&&Pm("z",s,u,this.animationValues);for(let c=0;c<Im.length;c++)Pm(`rotate${Im[c]}`,s,u,this.animationValues),Pm(`skew${Im[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 PP;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ud(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=ud(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Va(this.latestValues)&&(b.transform=c?c({},""):"none",this.hasProjected=!1),b}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=IP(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:h,y:g}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(o=f.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const b in dd){if(f[b]===void 0)continue;const{correct:E,applyTo:m}=dd[b],v=u.transform==="none"?f[b]:E(f[b],d);if(m){const x=m.length;for(let T=0;T<x;T++)u[m[T]]=v}else u[b]=v}return this.options.layoutId&&(u.pointerEvents=d===this?ud(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(xT),this.root.sharedNodes.clear()}}}function jP(e){e.updateLayout()}function zP(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"?ri(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=jn(f);f.min=i[d].min,f.max=f.min+h}):CT(a,n.layoutBox,i)&&ri(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=jn(i[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const o=Ks();jl(o,i,n.layoutBox);const l=Ks();s?jl(l,e.applyTransform(r,!0),n.measuredBox):jl(l,i,n.layoutBox);const u=!dT(o);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const g=_t();zl(g,n.layoutBox,f.layoutBox);const b=_t();zl(b,i,h.layoutBox),pT(g,b)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=d)}}}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 UP(e){Hl&&Ya.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 HP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function FP(e){e.clearSnapshot()}function xT(e){e.clearMeasurements()}function VP(e){e.isLayoutDirty=!1}function YP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _T(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qP(e){e.resolveTargetDelta()}function GP(e){e.calcProjection()}function $P(e){e.resetSkewAndRotation()}function XP(e){e.removeLeadSnapshot()}function ET(e,t,n){e.translate=ht(t.translate,0,n),e.scale=ht(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function TT(e,t,n,i){e.min=ht(t.min,n.min,i),e.max=ht(t.max,n.max,i)}function KP(e,t,n,i){TT(e.x,t.x,n.x,i),TT(e.y,t.y,n.y,i)}function QP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const WP={duration:.45,ease:[.4,0,.1,1]},wT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ST=wT("applewebkit/")&&!wT("chrome/")?Math.round:Bn;function AT(e){e.min=ST(e.min),e.max=ST(e.max)}function ZP(e){AT(e.x),AT(e.y)}function CT(e,t,n){return e==="position"||e==="preserve-aspect"&&!tP(mT(t),mT(n),.2)}function JP(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const e9=yT({attachResizeListener:(e,t)=>Il(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bm={current:void 0},kT=yT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Bm.current){const e=new e9({});e.mount(window),e.setOptions({layoutScroll:!0}),Bm.current=e}return Bm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),t9={pan:{Feature:bP},drag:{Feature:gP,ProjectionNode:kT,MeasureLayout:JE}};function OT(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&&rt.postRender(()=>a(t,Pl(t)))}class n9 extends Qr{mount(){const{current:t}=this.node;t&&(this.unmount=nI(t,n=>(OT(this.node,n,"Start"),i=>OT(this.node,i,"End"))))}unmount(){}}class i9 extends Qr{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=Ll(Il(this.node.current,"focus",()=>this.onFocus()),Il(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function NT(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&&rt.postRender(()=>a(t,Pl(t)))}class r9 extends Qr{mount(){const{current:t}=this.node;t&&(this.unmount=sI(t,n=>(NT(this.node,n,"Start"),(i,{success:r})=>NT(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const jm=new WeakMap,zm=new WeakMap,a9=e=>{const t=jm.get(e.target);t&&t(e)},s9=e=>{e.forEach(a9)};function o9({root:e,...t}){const n=e||document;zm.has(n)||zm.set(n,{});const i=zm.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(s9,{root:e,...t})),i[r]}function l9(e,t,n){const i=o9(t);return jm.set(e,n),i.observe(e),()=>{jm.delete(e),i.unobserve(e)}}const u9={some:0,all:1};class c9 extends Qr{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:u9[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:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return l9(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(d9(t,n))&&this.startObserver()}unmount(){}}function d9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const f9={inView:{Feature:c9},tap:{Feature:r9},focus:{Feature:i9},hover:{Feature:n9}},h9={layout:{ProjectionNode:kT,MeasureLayout:JE}},Um={current:null},RT={current:!1};function p9(){if(RT.current=!0,!!Ip)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Um.current=e.matches;e.addListener(t),t()}else Um.current=!1}const m9=[...sE,an,Kr],g9=e=>m9.find(aE(e)),DT=new WeakMap;function b9(e,t,n){for(const i in t){const r=t[i],a=n[i];if(rn(r))e.addValue(i,r);else if(rn(a))e.addValue(i,Nl(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,Nl(s!==void 0?s:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const MT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class v9{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=ym,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=Yi.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,rt.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=ld(n),this.isVariantNode=Jx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const g=f[h];l[h]!==void 0&&rn(g)&&g.set(l[h],!1)}}mount(t){this.current=t,DT.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)),RT.current||p9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Um.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){DT.delete(this.current),this.projection&&this.projection.unmount(),$r(this.notifyUpdate),$r(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=za.has(t),r=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&rt.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 Vs){const n=Vs[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):_t()}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<MT.length;i++){const r=MT[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=b9(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=Nl(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"&&(iE(r)||Y_(r))?r=parseFloat(r):!g9(r)&&Kr.test(n)&&(r=W_(t,n)),this.setBaseTarget(t,rn(r)?r.get():r)),rn(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=Vp(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&&!rn(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 om),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class LT extends v9{constructor(){super(...arguments),this.KeyframeResolver=lE}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;rn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function y9(e){return window.getComputedStyle(e)}class x9 extends LT{constructor(){super(...arguments),this.type="html",this.renderInstance=h_}readValueFromInstance(t,n){if(za.has(n)){const i=gm(n);return i&&i.default||0}else{const i=y9(t),r=(o_(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return KE(t,n)}build(t,n,i){$p(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Wp(t,n,i)}}class _9 extends LT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_t}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(za.has(n)){const i=gm(n);return i&&i.default||0}return n=p_.has(n)?n:Up(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return b_(t,n,i)}build(t,n,i){Xp(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,r){m_(t,n,i,r)}mount(t){this.isSVGTag=Qp(t.tagName),super.mount(t)}}const E9=(e,t)=>Fp(e)?new _9(t):new x9(t,{allowProjection:e!==_.Fragment}),T9=KL({...G8,...f9,...t9,...h9},E9),Fl=dL(T9),IT=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,PT=Bx,w9=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return PT(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],d=a==null?void 0:a[u];if(c===null)return null;const f=IT(c)||IT(d);return r[u][f]}),o=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(g=>{let[b,E]=g;return Array.isArray(E)?E.includes({...a,...o}[b]):{...a,...o}[b]===E})?[...u,d,f]:u},[]);return PT(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};function BT(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 iJ(){}function rJ(){}const bn=Wr(/[A-Za-z]/),sn=Wr(/[\dA-Za-z]/),S9=Wr(/[#-'*+\--9=?A-Z^-~]/);function Ed(e){return e!==null&&(e<32||e===127)}const Hm=Wr(/\d/),A9=Wr(/[\dA-Fa-f]/),C9=Wr(/[!-/:-@[-`{-~]/);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 Td=Wr(new RegExp("\\p{P}|\\p{S}","u")),qa=Wr(/\s/);function Wr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function k9(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const wd=function(e){if(e==null)return D9;if(typeof e=="function")return Sd(e);if(typeof e=="object")return Array.isArray(e)?O9(e):N9(e);if(typeof e=="string")return R9(e);throw new Error("Expected function, string, or object as test")};function O9(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=wd(e[n]);return Sd(i);function i(...r){let a=-1;for(;++a<t.length;)if(t[a].apply(this,r))return!0;return!1}}function N9(e){const t=e;return Sd(n);function n(i){const r=i;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}function R9(e){return Sd(t);function t(n){return n&&n.type===e}}function Sd(e){return t;function t(n,i,r){return!!(M9(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function D9(){return!0}function M9(e){return e!==null&&typeof e=="object"&&"type"in e}function aJ(e){return e}const jT=[],L9=!0,Fm=!1,I9="skip";function zT(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const a=wd(r),s=i?-1:1;o(e,void 0,[])();function o(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const h=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return f;function f(){let h=jT,g,b,E;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=P9(n(l,c)),h[0]===Fm))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==I9)for(b=(i?m.children.length:-1)+s,E=c.concat(m);b>-1&&b<m.children.length;){const v=m.children[b];if(g=o(v,b,E)(),g[0]===Fm)return g;b=typeof g[1]=="number"?g[1]:b+s}}return h}}}function P9(e){return Array.isArray(e)?e:typeof e=="number"?[L9,e]:e==null?jT:[e]}function B9(e,t,n){const r=wd((n||{}).ignore||[]),a=j9(t);let s=-1;for(;++s<a.length;)zT(e,"text",o);function o(u,c){let d=-1,f;for(;++d<c.length;){const h=c[d],g=f?f.children:void 0;if(r(h,g?g.indexOf(h):void 0,f))return;f=h}if(f)return l(u,c)}function l(u,c){const d=c[c.length-1],f=a[s][0],h=a[s][1];let g=0;const E=d.children.indexOf(u);let m=!1,v=[];f.lastIndex=0;let x=f.exec(u.value);for(;x;){const T=x.index,S={index:x.index,input:x.input,stack:[...c,u]};let A=h(...x,S);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?f.lastIndex=T+1:(g!==T&&v.push({type:"text",value:u.value.slice(g,T)}),Array.isArray(A)?v.push(...A):A&&v.push(A),g=T+x[0].length,m=!0),!f.global)break;x=f.exec(u.value)}return m?(g<u.value.length&&v.push({type:"text",value:u.value.slice(g)}),d.children.splice(E,1,...v)):v=[u],E+v.length}}function j9(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([z9(r[0]),U9(r[1])])}return t}function z9(e){return typeof e=="string"?new RegExp(k9(e),"g"):e}function U9(e){return typeof e=="function"?e:function(){return e}}const Vm="phrasing",Ym=["autolink","link","image","label"];function H9(){return{transforms:[X9],enter:{literalAutolink:V9,literalAutolinkEmail:qm,literalAutolinkHttp:qm,literalAutolinkWww:qm},exit:{literalAutolink:$9,literalAutolinkEmail:G9,literalAutolinkHttp:Y9,literalAutolinkWww:q9}}}function F9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vm,notInConstruct:Ym},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vm,notInConstruct:Ym},{character:":",before:"[ps]",after:"\\/",inConstruct:Vm,notInConstruct:Ym}]}}function V9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qm(e){this.config.enter.autolinkProtocol.call(this,e)}function Y9(e){this.config.exit.autolinkProtocol.call(this,e)}function q9(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 G9(e){this.config.exit.autolinkEmail.call(this,e)}function $9(e){this.exit(e)}function X9(e){B9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,K9],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Q9]],{ignore:["link","linkReference"]})}function K9(e,t,n,i,r){let a="";if(!UT(r)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!W9(n)))return!1;const s=Z9(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 Q9(e,t,n,i){return!UT(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function W9(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 Z9(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=BT(e,"(");let a=BT(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 UT(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||qa(n)||Td(n))&&(!t||n!==47)}function Ci(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}HT.peek=o7;function J9(){this.buffer()}function e7(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function t7(){this.buffer()}function n7(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function i7(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),n.label=t}function r7(e){this.exit(e)}function a7(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),n.label=t}function s7(e){this.exit(e)}function o7(){return"["}function HT(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 l7(){return{enter:{gfmFootnoteCallString:J9,gfmFootnoteCall:e7,gfmFootnoteDefinitionLabelString:t7,gfmFootnoteDefinition:n7},exit:{gfmFootnoteCallString:i7,gfmFootnoteCall:r7,gfmFootnoteDefinitionLabelString:a7,gfmFootnoteDefinition:s7}}}function u7(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:HT},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?`
262
- `:" ")+a.indentLines(a.containerFlow(i,o.current()),t?FT:c7))),u(),l}}function c7(e,t,n){return t===0?e:FT(e,t,n)}function FT(e,t,n){return(n?"":" ")+e}const d7=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];VT.peek=g7;function f7(){return{canContainEols:["delete"],enter:{strikethrough:p7},exit:{strikethrough:m7}}}function h7(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:d7}],handlers:{delete:VT}}}function p7(e){this.enter({type:"delete",children:[]},e)}function m7(e){this.exit(e)}function VT(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 g7(){return"~"}function b7(e){return e.length}function v7(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||b7,a=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const b=[],E=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const v=y7(e[c][m]);if(n.alignDelimiters!==!1){const x=r(v);E[m]=x,(l[m]===void 0||x>l[m])&&(l[m]=x)}b.push(v)}s[c]=b,o[c]=E}let d=-1;if(typeof i=="object"&&"length"in i)for(;++d<u;)a[d]=YT(i[d]);else{const b=YT(i);for(;++d<u;)a[d]=b}d=-1;const f=[],h=[];for(;++d<u;){const b=a[d];let E="",m="";b===99?(E=":",m=":"):b===108?E=":":b===114&&(m=":");let v=n.alignDelimiters===!1?1:Math.max(1,l[d]-E.length-m.length);const x=E+"-".repeat(v)+m;n.alignDelimiters!==!1&&(v=E.length+v+m.length,v>l[d]&&(l[d]=v),h[d]=v),f[d]=x}s.splice(1,0,f),o.splice(1,0,h),c=-1;const g=[];for(;++c<s.length;){const b=s[c],E=o[c];d=-1;const m=[];for(;++d<u;){const v=b[d]||"";let x="",T="";if(n.alignDelimiters!==!1){const S=l[d]-(E[d]||0),A=a[d];A===114?x=" ".repeat(S):A===99?S%2?(x=" ".repeat(S/2+.5),T=" ".repeat(S/2-.5)):(x=" ".repeat(S/2),T=x):T=" ".repeat(S)}n.delimiterStart!==!1&&!d&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||d)&&m.push(" "),n.alignDelimiters!==!1&&m.push(x),m.push(v),n.alignDelimiters!==!1&&m.push(T),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
261
+ `),()=>{document.head.removeChild(c)}},[t]),y.jsx(eL,{isPresent:t,childRef:i,sizeRef:r,children:E.cloneElement(e,{ref:i})})}const nL=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:a,mode:s})=>{const o=Mp(iL),l=E.useId(),u=E.useCallback(d=>{o.set(d,!0);for(const f of o.values())if(!f)return;i&&i()},[o,i]),c=E.useMemo(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:u,register:d=>(o.set(d,!1),()=>o.delete(d))}),a?[Math.random(),u]:[n,u]);return E.useMemo(()=>{o.forEach((d,f)=>o.set(f,!1))},[n]),E.useEffect(()=>{!n&&!o.size&&i&&i()},[n]),s==="popLayout"&&(e=y.jsx(tL,{isPresent:n,children:e})),y.jsx(nd.Provider,{value:c,children:e})};function iL(){return new Map}function qx(e=!0){const t=E.useContext(nd);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 id=e=>e.key||"";function Gx(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const Ip=typeof window<"u",$x=Ip?E.useLayoutEffect:E.useEffect,Pt=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:r=!0,mode:a="sync",propagate:s=!1})=>{const[o,l]=qx(s),u=E.useMemo(()=>Gx(e),[e]),c=s&&!o?[]:u.map(id),d=E.useRef(!0),f=E.useRef(u),h=Mp(()=>new Map),[g,b]=E.useState(u),[_,m]=E.useState(u);$x(()=>{d.current=!1,f.current=u;for(let T=0;T<_.length;T++){const S=id(_[T]);c.includes(S)?h.delete(S):h.get(S)!==!0&&h.set(S,!1)}},[_,c.length,c.join("-")]);const v=[];if(u!==g){let T=[...u];for(let S=0;S<_.length;S++){const A=_[S],D=id(A);c.includes(D)||(T.splice(S,0,A),v.push(A))}a==="wait"&&v.length&&(T=v),m(Gx(T)),b(u);return}const{forceRender:x}=E.useContext(Dp);return y.jsx(y.Fragment,{children:_.map(T=>{const S=id(T),A=s&&!o?!1:u===_||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(f.current),s&&(l==null||l()),i&&i())};return y.jsx(nL,{isPresent:A,initial:!d.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:r,mode:a,onExitComplete:A?void 0:D,children:T},S)})})},Bn=e=>e;let Xx=Bn;function Pp(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fs=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},dr=e=>e*1e3,fr=e=>e/1e3,rL={useManualTiming:!1};function aL(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,d=!1)=>{const h=d&&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 rd=["read","resolveKeyframes","update","preRender","render","postRender"],sL=40;function Kx(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=rd.reduce((m,v)=>(m[v]=aL(a),m),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,h=()=>{const m=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(m-r.timestamp,sL),1),r.timestamp=m,r.isProcessing=!0,o.process(r),l.process(r),u.process(r),c.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(h))},g=()=>{n=!0,i=!0,r.isProcessing||e(h)};return{schedule:rd.reduce((m,v)=>{const x=s[v];return m[v]=(T,S=!1,A=!1)=>(n||g(),x.schedule(T,S,A)),m},{}),cancel:m=>{for(let v=0;v<rd.length;v++)s[rd[v]].cancel(m)},state:r,steps:s}}const{schedule:rt,cancel:$r,state:Wt,steps:Bp}=Kx(typeof requestAnimationFrame<"u"?requestAnimationFrame:Bn,!0),Qx=E.createContext({strict:!1}),Wx={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"]},Vs={};for(const e in Wx)Vs[e]={isEnabled:t=>Wx[e].some(n=>!!t[n])};function oL(e){for(const t in e)Vs[t]={...Vs[t],...e[t]}}const lL=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 ad(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lL.has(e)}let Zx=e=>!ad(e);function uL(e){e&&(Zx=t=>t.startsWith("on")?!ad(t):e(t))}try{uL(require("@emotion/is-prop-valid").default)}catch{}function cL(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(Zx(r)||n===!0&&ad(r)||!t&&!ad(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}function dL(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 sd=E.createContext({});function Sl(e){return typeof e=="string"||Array.isArray(e)}function od(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const jp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zp=["initial",...jp];function ld(e){return od(e.animate)||zp.some(t=>Sl(e[t]))}function Jx(e){return!!(ld(e)||e.variants)}function fL(e,t){if(ld(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Sl(n)?n:void 0,animate:Sl(i)?i:void 0}}return e.inherit!==!1?t:{}}function hL(e){const{initial:t,animate:n}=fL(e,E.useContext(sd));return E.useMemo(()=>({initial:t,animate:n}),[e_(t),e_(n)])}function e_(e){return Array.isArray(e)?e.join(" "):e}const pL=Symbol.for("motionComponentSymbol");function Ys(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mL(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):Ys(n)&&(n.current=i))},[t])}const Up=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),t_="data-"+Up("framerAppearId"),{schedule:Hp}=Kx(queueMicrotask,!1),n_=E.createContext({});function gL(e,t,n,i,r){var a,s;const{visualElement:o}=E.useContext(sd),l=E.useContext(Qx),u=E.useContext(nd),c=E.useContext(Lp).reducedMotion,d=E.useRef(null);i=i||l.renderer,!d.current&&i&&(d.current=i(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=E.useContext(n_);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&bL(d.current,n,r,h);const g=E.useRef(!1);E.useInsertionEffect(()=>{f&&g.current&&f.update(n,u)});const b=n[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 $x(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Hp.render(f.render),_.current&&f.animationState&&f.animationState.animateChanges())}),E.useEffect(()=>{f&&(!_.current&&f.animationState&&f.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,b)}),_.current=!1))}),f}function bL(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:i_(e.parent)),e.projection.setOptions({layoutId:r,layout:a,alwaysMeasureLayout:!!s||o&&Ys(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function i_(e){if(e)return e.options.allowProjection!==!1?e.projection:i_(e.parent)}function vL({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){var a,s;e&&oL(e);function o(u,c){let d;const f={...E.useContext(Lp),...u,layoutId:yL(u)},{isStatic:h}=f,g=hL(u),b=i(u,h);if(!h&&Ip){xL();const _=_L(f);d=_.MeasureLayout,g.visualElement=gL(r,b,f,t,_.ProjectionNode)}return y.jsxs(sd.Provider,{value:g,children:[d&&g.visualElement?y.jsx(d,{visualElement:g.visualElement,...f}):null,n(r,u,mL(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[pL]=r,l}function yL({layoutId:e}){const t=E.useContext(Dp).id;return t&&e!==void 0?t+"-"+e:e}function xL(e,t){E.useContext(Qx).strict}function _L(e){const{drag:t,layout:n}=Vs;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 EL=["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 Fp(e){return typeof e!="string"||e.includes("-")?!1:!!(EL.indexOf(e)>-1||/[A-Z]/u.test(e))}function r_(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Vp(e,t,n,i){if(typeof t=="function"){const[r,a]=r_(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]=r_(i);t=t(n!==void 0?n:e.custom,r,a)}return t}const Yp=e=>Array.isArray(e),TL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),wL=e=>Yp(e)?e[e.length-1]||0:e,rn=e=>!!(e&&e.getVelocity);function ud(e){const t=rn(e)?e.get():e;return TL(t)?t.toValue():t}function SL({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},i,r,a){const s={latestValues:AL(i,r,a,e),renderState:t()};return n&&(s.onMount=o=>n({props:i,current:o,...s}),s.onUpdate=o=>n(o)),s}const a_=e=>(t,n)=>{const i=E.useContext(sd),r=E.useContext(nd),a=()=>SL(e,t,i,r);return n?a():Mp(a)};function AL(e,t,n,i){const r={},a=i(e,{});for(const f in a)r[f]=ud(a[f]);let{initial:s,animate:o}=e;const l=ld(e),u=Jx(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 d=c?o:s;if(d&&typeof d!="boolean"&&!od(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const g=Vp(e,f[h]);if(g){const{transitionEnd:b,transition:_,...m}=g;for(const v in m){let x=m[v];if(Array.isArray(x)){const T=c?x.length-1:0;x=x[T]}x!==null&&(r[v]=x)}for(const v in b)r[v]=b[v]}}}return r}const qs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],za=new Set(qs),s_=e=>t=>typeof t=="string"&&t.startsWith(e),o_=s_("--"),CL=s_("var(--"),qp=e=>CL(e)?kL.test(e.split("/*")[0].trim()):!1,kL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,l_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,hr=(e,t,n)=>n>t?t:n<e?e:n,Gs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Al={...Gs,transform:e=>hr(0,1,e)},cd={...Gs,default:1},Cl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xr=Cl("deg"),Vi=Cl("%"),pe=Cl("px"),OL=Cl("vh"),NL=Cl("vw"),u_={...Vi,parse:e=>Vi.parse(e)/100,transform:e=>Vi.transform(e*100)},RL={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},DL={rotate:Xr,rotateX:Xr,rotateY:Xr,rotateZ:Xr,scale:cd,scaleX:cd,scaleY:cd,scaleZ:cd,skew:Xr,skewX:Xr,skewY:Xr,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Al,originX:u_,originY:u_,originZ:pe},c_={...Gs,transform:Math.round},Gp={...RL,...DL,zIndex:c_,size:pe,fillOpacity:Al,strokeOpacity:Al,numOctaves:c_},ML={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},LL=qs.length;function IL(e,t,n){let i="",r=!0;for(let a=0;a<LL;a++){const s=qs[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=l_(o,Gp[s]);if(!l){r=!1;const c=ML[s]||s;i+=`${c}(${u}) `}n&&(t[s]=u)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function $p(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(za.has(l)){s=!0;continue}else if(o_(l)){r[l]=u;continue}else{const c=l_(u,Gp[l]);l.startsWith("origin")?(o=!0,a[l]=c):i[l]=c}}if(t.transform||(s||n?i.transform=IL(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 PL={offset:"stroke-dashoffset",array:"stroke-dasharray"},BL={offset:"strokeDashoffset",array:"strokeDasharray"};function jL(e,t,n=1,i=0,r=!0){e.pathLength=1;const a=r?PL:BL;e[a.offset]=pe.transform(-i);const s=pe.transform(t),o=pe.transform(n);e[a.array]=`${s} ${o}`}function d_(e,t,n){return typeof e=="string"?e:pe.transform(t+n*e)}function zL(e,t,n){const i=d_(t,e.x,e.width),r=d_(n,e.y,e.height);return`${i} ${r}`}function Xp(e,{attrX:t,attrY:n,attrScale:i,originX:r,originY:a,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...u},c,d){if($p(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:g}=e;f.transform&&(g&&(h.transform=f.transform),delete f.transform),g&&(r!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=zL(g,r!==void 0?r:.5,a!==void 0?a:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),s!==void 0&&jL(f,s,o,l,!1)}const Kp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),f_=()=>({...Kp(),attrs:{}}),Qp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function h_(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 p_=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 m_(e,t,n,i){h_(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(p_.has(r)?r:Up(r),t.attrs[r])}const dd={};function UL(e){Object.assign(dd,e)}function g_(e,{layout:t,layoutId:n}){return za.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dd[e]||e==="opacity")}function Wp(e,t,n){var i;const{style:r}=e,a={};for(const s in r)(rn(r[s])||t.style&&rn(t.style[s])||g_(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 b_(e,t,n){const i=Wp(e,t,n);for(const r in e)if(rn(e[r])||rn(t[r])){const a=qs.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[a]=e[r]}return i}function HL(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 v_=["x","y","width","height","cx","cy","r"],FL={useVisualState:a_({scrapeMotionValuesFromProps:b_,createRenderState:f_,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(za.has(o)){a=!0;break}}if(!a)return;let s=!t;if(t)for(let o=0;o<v_.length;o++){const l=v_[o];e[l]!==t[l]&&(s=!0)}s&&rt.read(()=>{HL(n,i),rt.render(()=>{Xp(i,r,Qp(n.tagName),e.transformTemplate),m_(n,i)})})}})},VL={useVisualState:a_({scrapeMotionValuesFromProps:Wp,createRenderState:Kp})};function y_(e,t,n){for(const i in t)!rn(t[i])&&!g_(i,n)&&(e[i]=t[i])}function YL({transformTemplate:e},t){return E.useMemo(()=>{const n=Kp();return $p(n,t,e),Object.assign({},n.vars,n.style)},[t])}function qL(e,t){const n=e.style||{},i={};return y_(i,n,e),Object.assign(i,YL(e,t)),i}function GL(e,t){const n={},i=qL(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 $L(e,t,n,i){const r=E.useMemo(()=>{const a=f_();return Xp(a,t,Qp(i),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};y_(a,e.style,e),r.style={...a,...r.style}}return r}function XL(e=!1){return(n,i,r,{latestValues:a},s)=>{const l=(Fp(n)?$L:GL)(i,a,s,n),u=cL(i,typeof n=="string",e),c=n!==E.Fragment?{...u,...l,ref:r}:{},{children:d}=i,f=E.useMemo(()=>rn(d)?d.get():d,[d]);return E.createElement(n,{...c,children:f})}}function KL(e,t){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s={...Fp(i)?FL:VL,preloadedFeatures:e,useRender:XL(r),createVisualElement:t,Component:i};return vL(s)}}function x_(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 fd(e,t,n){const i=e.getProps();return Vp(i,t,n!==void 0?n:i.custom,e)}const QL=Pp(()=>window.ScrollTimeline!==void 0);class WL{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(QL()&&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 ZL extends WL{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Zp(e,t){return e?e[t]||e.default||e:void 0}const Jp=2e4;function __(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<Jp;)t+=n,i=e.next(t);return t>=Jp?1/0:t}function em(e){return typeof e=="function"}function E_(e,t){e.timeline=t,e.onfinish=null}const tm=e=>Array.isArray(e)&&typeof e[0]=="number",JL={linearEasing:void 0};function eI(e,t){const n=Pp(e);return()=>{var i;return(i=JL[t])!==null&&i!==void 0?i:n()}}const hd=eI(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),T_=(e,t,n=10)=>{let i="";const r=Math.max(Math.round(t/n),2);for(let a=0;a<r;a++)i+=e(Fs(0,r-1,a))+", ";return`linear(${i.substring(0,i.length-2)})`};function w_(e){return!!(typeof e=="function"&&hd()||!e||typeof e=="string"&&(e in nm||hd())||tm(e)||Array.isArray(e)&&e.every(w_))}const kl=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,nm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kl([0,.65,.55,1]),circOut:kl([.55,0,1,.45]),backIn:kl([.31,.01,.66,-.59]),backOut:kl([.33,1.53,.69,.99])};function S_(e,t){if(e)return typeof e=="function"&&hd()?T_(e,t):tm(e)?kl(e):Array.isArray(e)?e.map(n=>S_(n,t)||nm.easeOut):nm[e]}const Ai={x:!1,y:!1};function A_(){return Ai.x||Ai.y}function tI(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 C_(e,t){const n=tI(e),i=new AbortController,r={passive:!0,...t,signal:i.signal};return[n,r,()=>i.abort()]}function k_(e){return t=>{t.pointerType==="touch"||A_()||e(t)}}function nI(e,t,n={}){const[i,r,a]=C_(e,n),s=k_(o=>{const{target:l}=o,u=t(o);if(typeof u!="function"||!l)return;const c=k_(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,r)});return i.forEach(o=>{o.addEventListener("pointerenter",s,r)}),a}const O_=(e,t)=>t?e===t?!0:O_(e,t.parentElement):!1,im=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,iI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rI(e){return iI.has(e.tagName)||e.tabIndex!==-1}const Ol=new WeakSet;function N_(e){return t=>{t.key==="Enter"&&e(t)}}function rm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const aI=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=N_(()=>{if(Ol.has(n))return;rm(n,"down");const r=N_(()=>{rm(n,"up")}),a=()=>rm(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 R_(e){return im(e)&&!A_()}function sI(e,t,n={}){const[i,r,a]=C_(e,n),s=o=>{const l=o.currentTarget;if(!R_(o)||Ol.has(l))return;Ol.add(l);const u=t(o),c=(h,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!R_(h)||!Ol.has(l))&&(Ol.delete(l),typeof u=="function"&&u(h,{success:g}))},d=h=>{c(h,n.useGlobalTarget||O_(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return i.forEach(o=>{!rI(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,r),o.addEventListener("focus",u=>aI(u,r),r)}),a}function oI(e){return e==="x"||e==="y"?Ai[e]?null:(Ai[e]=!0,()=>{Ai[e]=!1}):Ai.x||Ai.y?null:(Ai.x=Ai.y=!0,()=>{Ai.x=Ai.y=!1})}const D_=new Set(["width","height","top","left","right","bottom",...qs]);let pd;function lI(){pd=void 0}const Yi={now:()=>(pd===void 0&&Yi.set(Wt.isProcessing||rL.useManualTiming?Wt.timestamp:performance.now()),pd),set:e=>{pd=e,queueMicrotask(lI)}};function am(e,t){e.indexOf(t)===-1&&e.push(t)}function sm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class om{constructor(){this.subscriptions=[]}add(t){return am(this.subscriptions,t),()=>sm(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 M_(e,t){return t?e*(1e3/t):0}const L_=30,uI=e=>!isNaN(parseFloat(e));class cI{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const a=Yi.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=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=uI(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 om);const i=this.events[t].add(n);return t==="change"?()=>{i(),rt.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=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>L_)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,L_);return M_(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 Nl(e,t){return new cI(e,t)}function dI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nl(n))}function fI(e,t){const n=fd(e,t);let{transitionEnd:i={},transition:r={},...a}=n||{};a={...a,...i};for(const s in a){const o=wL(a[s]);dI(e,s,o)}}function hI(e){return!!(rn(e)&&e.add)}function lm(e,t){const n=e.getValue("willChange");if(hI(n))return n.add(t)}function I_(e){return e.props[t_]}const P_=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,pI=1e-7,mI=12;function gI(e,t,n,i,r){let a,s,o=0;do s=t+(n-t)/2,a=P_(s,i,r)-e,a>0?n=s:t=s;while(Math.abs(a)>pI&&++o<mI);return s}function Rl(e,t,n,i){if(e===t&&n===i)return Bn;const r=a=>gI(a,0,1,e,n);return a=>a===0||a===1?a:P_(r(a),t,i)}const B_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,j_=e=>t=>1-e(1-t),z_=Rl(.33,1.53,.69,.99),um=j_(z_),U_=B_(um),H_=e=>(e*=2)<1?.5*um(e):.5*(2-Math.pow(2,-10*(e-1))),cm=e=>1-Math.sin(Math.acos(e)),F_=j_(cm),V_=B_(cm),Y_=e=>/^0[^.\s]+$/u.test(e);function bI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Y_(e):!0}const Dl=e=>Math.round(e*1e5)/1e5,dm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vI(e){return e==null}const yI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fm=(e,t)=>n=>!!(typeof n=="string"&&yI.test(n)&&n.startsWith(e)||t&&!vI(n)&&Object.prototype.hasOwnProperty.call(n,t)),q_=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,a,s,o]=i.match(dm);return{[e]:parseFloat(r),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},xI=e=>hr(0,255,e),hm={...Gs,transform:e=>Math.round(xI(e))},Ua={test:fm("rgb","red"),parse:q_("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+hm.transform(e)+", "+hm.transform(t)+", "+hm.transform(n)+", "+Dl(Al.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 pm={test:fm("#"),parse:_I,transform:Ua.transform},$s={test:fm("hsl","hue"),parse:q_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Vi.transform(Dl(t))+", "+Vi.transform(Dl(n))+", "+Dl(Al.transform(i))+")"},an={test:e=>Ua.test(e)||pm.test(e)||$s.test(e),parse:e=>Ua.test(e)?Ua.parse(e):$s.test(e)?$s.parse(e):pm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ua.transform(e):$s.transform(e)},EI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function TI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(dm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(EI))===null||n===void 0?void 0:n.length)||0)>0}const G_="number",$_="color",wI="var",SI="var(",X_="${}",AI=/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 Ml(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let a=0;const o=t.replace(AI,l=>(an.test(l)?(i.color.push(a),r.push($_),n.push(an.parse(l))):l.startsWith(SI)?(i.var.push(a),r.push(wI),n.push(l)):(i.number.push(a),r.push(G_),n.push(parseFloat(l))),++a,X_)).split(X_);return{values:n,split:o,indexes:i,types:r}}function K_(e){return Ml(e).values}function Q_(e){const{split:t,types:n}=Ml(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===G_?a+=Dl(r[s]):o===$_?a+=an.transform(r[s]):a+=r[s]}return a}}const CI=e=>typeof e=="number"?0:e;function kI(e){const t=K_(e);return Q_(e)(t.map(CI))}const Kr={test:TI,parse:K_,createTransformer:Q_,getAnimatableNone:kI},OI=new Set(["brightness","contrast","saturate","opacity"]);function NI(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(dm)||[];if(!i)return e;const r=n.replace(i,"");let a=OI.has(t)?1:0;return i!==n&&(a*=100),t+"("+a+r+")"}const RI=/\b([a-z-]*)\(.*?\)/gu,mm={...Kr,getAnimatableNone:e=>{const t=e.match(RI);return t?t.map(NI).join(" "):e}},DI={...Gp,color:an,backgroundColor:an,outlineColor:an,fill:an,stroke:an,borderColor:an,borderTopColor:an,borderRightColor:an,borderBottomColor:an,borderLeftColor:an,filter:mm,WebkitFilter:mm},gm=e=>DI[e];function W_(e,t){let n=gm(e);return n!==mm&&(n=Kr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const MI=new Set(["auto","none","0"]);function LI(e,t,n){let i=0,r;for(;i<e.length&&!r;){const a=e[i];typeof a=="string"&&!MI.has(a)&&Ml(a).values.length&&(r=e[i]),i++}if(r&&n)for(const a of t)e[a]=W_(n,r)}const Z_=e=>e===Gs||e===pe,J_=(e,t)=>parseFloat(e.split(", ")[t]),eE=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return J_(r[1],t);{const a=i.match(/^matrix\((.+)\)$/u);return a?J_(a[1],e):0}},II=new Set(["x","y","z"]),PI=qs.filter(e=>!II.has(e));function BI(e){const t=[];return PI.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const Xs={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:eE(4,13),y:eE(5,14)};Xs.translateX=Xs.x,Xs.translateY=Xs.y;const Ha=new Set;let bm=!1,vm=!1;function tE(){if(vm){const e=Array.from(Ha).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=BI(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)})}vm=!1,bm=!1,Ha.forEach(e=>e.complete()),Ha.clear()}function nE(){Ha.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vm=!0)})}function jI(){nE(),tE()}class ym{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?(Ha.add(this),bm||(bm=!0,rt.read(nE),rt.resolveKeyframes(tE))):(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),Ha.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ha.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const iE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),zI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UI(e){const t=zI.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}function rE(e,t,n=1){const[i,r]=UI(e);if(!i)return;const a=window.getComputedStyle(t).getPropertyValue(i);if(a){const s=a.trim();return iE(s)?parseFloat(s):s}return qp(r)?rE(r,t,n+1):r}const aE=e=>t=>t.test(e),sE=[Gs,pe,Vi,Xr,NL,OL,{test:e=>e==="auto",parse:e=>e}],oE=e=>sE.find(aE(e));class lE extends ym{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(),qp(u))){const c=rE(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!D_.has(i)||t.length!==2)return;const[r,a]=t,s=oE(r),o=oE(a);if(s!==o)if(Z_(s)&&Z_(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++)bI(t[r])&&i.push(r);i.length&&LI(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=Xs[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]=Xs[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 uE=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Kr.test(e)||e==="0")&&!e.startsWith("url("));function HI(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 FI(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=uE(r,t),o=uE(a,t);return!s||!o?!1:HI(e)||(n==="spring"||em(n))&&i}const VI=e=>e!==null;function md(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(VI),a=t&&n!=="loop"&&t%2===1?0:r.length-1;return!a||i===void 0?r[a]:i}const YI=40;class cE{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=Yi.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>YI?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&jI(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yi.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:a,delay:s,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!FI(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 ht=(e,t,n)=>e+(t-e)*n;function xm(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 qI({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=xm(l,o,e+1/3),a=xm(l,o,e),s=xm(l,o,e-1/3)}return{red:Math.round(r*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:i}}function gd(e,t){return n=>n>0?t:e}const _m=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},GI=[pm,Ua,$s],$I=e=>GI.find(t=>t.test(e));function dE(e){const t=$I(e);if(!t)return!1;let n=t.parse(e);return t===$s&&(n=qI(n)),n}const fE=(e,t)=>{const n=dE(e),i=dE(t);if(!n||!i)return gd(e,t);const r={...n};return a=>(r.red=_m(n.red,i.red,a),r.green=_m(n.green,i.green,a),r.blue=_m(n.blue,i.blue,a),r.alpha=ht(n.alpha,i.alpha,a),Ua.transform(r))},XI=(e,t)=>n=>t(e(n)),Ll=(...e)=>e.reduce(XI),Em=new Set(["none","hidden"]);function KI(e,t){return Em.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function QI(e,t){return n=>ht(e,t,n)}function Tm(e){return typeof e=="number"?QI:typeof e=="string"?qp(e)?gd:an.test(e)?fE:JI:Array.isArray(e)?hE:typeof e=="object"?an.test(e)?fE:WI:gd}function hE(e,t){const n=[...e],i=n.length,r=e.map((a,s)=>Tm(a)(a,t[s]));return a=>{for(let s=0;s<i;s++)n[s]=r[s](a);return n}}function WI(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=Tm(e[r])(e[r],t[r]));return r=>{for(const a in i)n[a]=i[a](r);return n}}function ZI(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 JI=(e,t)=>{const n=Kr.createTransformer(t),i=Ml(e),r=Ml(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?Em.has(e)&&!r.values.length||Em.has(t)&&!i.values.length?KI(e,t):Ll(hE(ZI(i,r),r.values),n):gd(e,t)};function pE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ht(e,t,n):Tm(e)(e,t)}const e8=5;function mE(e,t,n){const i=Math.max(t-e8,0);return M_(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},wm=.001;function t8({duration:e=bt.duration,bounce:t=bt.bounce,velocity:n=bt.velocity,mass:i=bt.mass}){let r,a,s=1-t;s=hr(bt.minDamping,bt.maxDamping,s),e=hr(bt.minDuration,bt.maxDuration,fr(e)),s<1?(r=u=>{const c=u*s,d=c*e,f=c-n,h=Sm(u,s),g=Math.exp(-d);return wm-f/h*g},a=u=>{const d=u*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-d),b=Sm(Math.pow(u,2),s);return(-r(u)+wm>0?-1:1)*((f-h)*g)/b}):(r=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-wm+c*d},a=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const o=5/e,l=i8(r,a,o);if(e=dr(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 n8=12;function i8(e,t,n){let i=n;for(let r=1;r<n8;r++)i=i-e(i)/t(i);return i}function Sm(e,t){return e*Math.sqrt(1-t*t)}const r8=["duration","bounce"],a8=["stiffness","damping","mass"];function gE(e,t){return t.some(n=>e[n]!==void 0)}function s8(e){let t={velocity:bt.velocity,stiffness:bt.stiffness,damping:bt.damping,mass:bt.mass,isResolvedFromDuration:!1,...e};if(!gE(e,a8)&&gE(e,r8))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,a=2*hr(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:bt.mass,stiffness:r,damping:a}}else{const n=t8(e);t={...t,...n,mass:bt.mass},t.isResolvedFromDuration=!0}return t}function bE(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:d,velocity:f,isResolvedFromDuration:h}=s8({...n,velocity:-fr(n.velocity||0)}),g=f||0,b=u/(2*Math.sqrt(l*c)),_=s-a,m=fr(Math.sqrt(l/c)),v=Math.abs(_)<5;i||(i=v?bt.restSpeed.granular:bt.restSpeed.default),r||(r=v?bt.restDelta.granular:bt.restDelta.default);let x;if(b<1){const S=Sm(m,b);x=A=>{const D=Math.exp(-b*m*A);return s-D*((g+b*m*_)/S*Math.sin(S*A)+_*Math.cos(S*A))}}else if(b===1)x=S=>s-Math.exp(-m*S)*(_+(g+m*_)*S);else{const S=m*Math.sqrt(b*b-1);x=A=>{const D=Math.exp(-b*m*A),L=Math.min(S*A,300);return s-D*((g+b*m*_)*Math.sinh(L)+S*_*Math.cosh(L))/S}}const T={calculatedDuration:h&&d||null,next:S=>{const A=x(S);if(h)o.done=S>=d;else{let D=0;b<1&&(D=S===0?dr(g):mE(x,S,A));const L=Math.abs(D)<=i,B=Math.abs(s-A)<=r;o.done=L&&B}return o.value=o.done?s:A,o},toString:()=>{const S=Math.min(__(T),Jp),A=T_(D=>T.next(S*D).value,S,30);return S+"ms "+A}};return T}function vE({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 d=e[0],f={done:!1,value:d},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 _=d+b,m=s===void 0?_:s(_);m!==_&&(b=m-d);const v=L=>-b*Math.exp(-L/i),x=L=>m+v(L),T=L=>{const B=v(L),O=x(L);f.done=Math.abs(B)<=u,f.value=f.done?m:O};let S,A;const D=L=>{h(f.value)&&(S=L,A=bE({keyframes:[f.value,g(f.value)],velocity:mE(x,L,f.value),damping:r,stiffness:a,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:L=>{let B=!1;return!A&&S===void 0&&(B=!0,T(L),D(L)),S!==void 0&&L>=S?A.next(L-S):(!B&&T(L),f)}}}const o8=Rl(.42,0,1,1),l8=Rl(0,0,.58,1),yE=Rl(.42,0,.58,1),u8=e=>Array.isArray(e)&&typeof e[0]!="number",c8={linear:Bn,easeIn:o8,easeInOut:yE,easeOut:l8,circIn:cm,circInOut:V_,circOut:F_,backIn:um,backInOut:U_,backOut:z_,anticipate:H_},xE=e=>{if(tm(e)){Xx(e.length===4);const[t,n,i,r]=e;return Rl(t,n,i,r)}else if(typeof e=="string")return c8[e];return e};function d8(e,t,n){const i=[],r=n||pE,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]||Bn:t;o=Ll(l,o)}i.push(o)}return i}function f8(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const a=e.length;if(Xx(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=d8(t,i,r),l=o.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Fs(e[d],e[d+1],c);return o[d](f)};return n?c=>u(hr(e[0],e[a-1],c)):u}function h8(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=Fs(0,t,i);e.push(ht(n,1,r))}}function p8(e){const t=[0];return h8(t,e.length-1),t}function m8(e,t){return e.map(n=>n*t)}function g8(e,t){return e.map(()=>t||yE).splice(0,e.length-1)}function bd({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=u8(i)?i.map(xE):xE(i),a={done:!1,value:t[0]},s=m8(n&&n.length===t.length?n:p8(t),e),o=f8(s,t,{ease:Array.isArray(r)?r:g8(t,r)});return{calculatedDuration:e,next:l=>(a.value=o(l),a.done=l>=e,a)}}const b8=e=>{const t=({timestamp:n})=>e(n);return{start:()=>rt.update(t,!0),stop:()=>$r(t),now:()=>Wt.isProcessing?Wt.timestamp:Yi.now()}},v8={decay:vE,inertia:vE,tween:bd,keyframes:bd,spring:bE},y8=e=>e/100;class Am extends cE{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)||ym,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=em(n)?n:v8[n]||bd;let l,u;o!==bd&&typeof t[0]!="number"&&(l=Ll(y8,pE(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=__(c));const{calculatedDuration:d}=c,f=d+r,h=f*(i+1)-r;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,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:d}=i;if(this.startTime===null)return a.next(0);const{delay:f,repeat:h,repeatType:g,repeatDelay:b,onUpdate:_}=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-f*(this.speed>=0?1:-1),v=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,T=a;if(h){const L=Math.min(this.currentTime,c)/d;let B=Math.floor(L),O=L%1;!O&&L>=1&&(O=1),O===1&&B--,B=Math.min(B,h+1),!!(B%2)&&(g==="reverse"?(O=1-O,b&&(O-=b/d)):g==="mirror"&&(T=s)),x=hr(0,1,O)*d}const S=v?{done:!1,value:l[0]}:T.next(x);o&&(S.value=o(S.value));let{done:A}=S;!v&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return D&&r!==void 0&&(S.value=md(l,this.options,r)),_&&_(S.value),D&&this.finish(),S}get duration(){const{resolved:t}=this;return t?fr(t.calculatedDuration):0}get time(){return fr(this.currentTime)}set time(t){t=dr(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=fr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=b8,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 x8=new Set(["opacity","clipPath","filter","transform"]);function _8(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=S_(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 E8=Pp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),vd=10,T8=2e4;function w8(e){return em(e.type)||e.type==="spring"||!w_(e.ease)}function S8(e,t){const n=new Am({...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<T8;)i=n.sample(a),r.push(i.value),a+=vd;return{times:void 0,keyframes:r,duration:a-vd,ease:"linear"}}const _E={anticipate:H_,backInOut:U_,circInOut:V_};function A8(e){return e in _E}class EE extends cE{constructor(t){super(t);const{name:n,motionValue:i,element:r,keyframes:a}=this.options;this.resolver=new lE(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"&&hd()&&A8(a)&&(a=_E[a]),w8(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:g,...b}=this.options,_=S8(t,b);t=_.keyframes,t.length===1&&(t[1]=t[0]),i=_.duration,r=_.times,a=_.ease,s="keyframes"}const c=_8(o.owner.current,l,t,{...this.options,duration:i,times:r,ease:a});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(E_(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;o.set(md(t,this.options,n)),d&&d(),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 fr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return fr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=dr(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 Bn;const{animation:i}=n;E_(i,t)}return Bn}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:d,element:f,...h}=this.options,g=new Am({...h,keyframes:i,duration:r,type:a,ease:s,times:o,isGenerator:!0}),b=dr(this.time);u.setWithVelocity(g.sample(b-vd).value,g.sample(b).value,vd)}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 E8()&&i&&x8.has(i)&&!l&&!u&&!r&&a!=="mirror"&&s!==0&&o!=="inertia"}}const C8={type:"spring",stiffness:500,damping:25,restSpeed:10},k8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),O8={type:"keyframes",duration:.8},N8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},R8=(e,{keyframes:t})=>t.length>2?O8:za.has(e)?e.startsWith("scale")?k8(t[1]):C8:N8;function D8({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 Cm=(e,t,n,i={},r,a)=>s=>{const o=Zp(i,e)||{},l=o.delay||i.delay||0;let{elapsed:u=0}=i;u=u-dr(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:r};D8(o)||(c={...c,...R8(e,c)}),c.duration&&(c.duration=dr(c.duration)),c.repeatDelay&&(c.repeatDelay=dr(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!a&&t.get()!==void 0){const f=md(c.keyframes,o);if(f!==void 0)return rt.update(()=>{c.onUpdate(f),c.onComplete()}),new ZL([])}return!a&&EE.supports(c)?new EE(c):new Am(c)};function M8({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function TE(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 d in l){const f=e.getValue(d,(a=e.latestValues[d])!==null&&a!==void 0?a:null),h=l[d];if(h===void 0||c&&M8(c,d))continue;const g={delay:n,...Zp(s||{},d)};let b=!1;if(window.MotionHandoffAnimation){const m=I_(e);if(m){const v=window.MotionHandoffAnimation(m,d,rt);v!==null&&(g.startTime=v,b=!0)}}lm(e,d),f.start(Cm(d,f,h,e.shouldReduceMotion&&D_.has(d)?{type:!1}:g,e,b));const _=f.animation;_&&u.push(_)}return o&&Promise.all(u).then(()=>{rt.update(()=>{o&&fI(e,o)})}),u}function km(e,t,n={}){var i;const r=fd(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(TE(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=a;return L8(e,t,c+u,d,f,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 L8(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(I8).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(km(u,t,{...a,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function I8(e,t){return e.sortNodePosition(t)}function P8(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(a=>km(e,a,n));i=Promise.all(r)}else if(typeof t=="string")i=km(e,t,n);else{const r=typeof t=="function"?fd(e,t,n.custom):t;i=Promise.all(TE(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const B8=zp.length;function wE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?wE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<B8;n++){const i=zp[n],r=e.props[i];(Sl(r)||r===!1)&&(t[i]=r)}return t}const j8=[...jp].reverse(),z8=jp.length;function U8(e){return t=>Promise.all(t.map(({animation:n,options:i})=>P8(e,n,i)))}function H8(e){let t=U8(e),n=SE(),i=!0;const r=l=>(u,c)=>{var d;const f=fd(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:g,...b}=f;u={...u,...b,...g}}return u};function a(l){t=l(e)}function s(l){const{props:u}=e,c=wE(e.parent)||{},d=[],f=new Set;let h={},g=1/0;for(let _=0;_<z8;_++){const m=j8[_],v=n[m],x=u[m]!==void 0?u[m]:c[m],T=Sl(x),S=m===l?v.isActive:null;S===!1&&(g=_);let A=x===c[m]&&x!==u[m]&&T;if(A&&i&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...h},!v.isActive&&S===null||!x&&!v.prevProp||od(x)||typeof x=="boolean")continue;const D=F8(v.prevProp,x);let L=D||m===l&&v.isActive&&!A&&T||_>g&&T,B=!1;const O=Array.isArray(x)?x:[x];let Y=O.reduce(r(m),{});S===!1&&(Y={});const{prevResolvedValues:U={}}=v,re={...U,...Y},ee=V=>{L=!0,f.has(V)&&(B=!0,f.delete(V)),v.needsAnimating[V]=!0;const H=e.getValue(V);H&&(H.liveStyle=!1)};for(const V in re){const H=Y[V],te=U[V];if(h.hasOwnProperty(V))continue;let N=!1;Yp(H)&&Yp(te)?N=!x_(H,te):N=H!==te,N?H!=null?ee(V):f.add(V):H!==void 0&&f.has(V)?ee(V):v.protectedKeys[V]=!0}v.prevProp=x,v.prevResolvedValues=Y,v.isActive&&(h={...h,...Y}),i&&e.blockInitialAnimation&&(L=!1),L&&(!(A&&D)||B)&&d.push(...O.map(V=>({animation:V,options:{type:m}})))}if(f.size){const _={};f.forEach(m=>{const v=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),_[m]=v??null}),d.push({animation:_})}let b=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(d):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(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=SE(),i=!0}}}function F8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!x_(t,e):!1}function Fa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function SE(){return{animate:Fa(!0),whileInView:Fa(),whileHover:Fa(),whileTap:Fa(),whileDrag:Fa(),whileFocus:Fa(),exit:Fa()}}class Qr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class V8 extends Qr{constructor(t){super(t),t.animationState||(t.animationState=H8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();od(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 Y8=0;class q8 extends Qr{constructor(){super(...arguments),this.id=Y8++}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 G8={animation:{Feature:V8},exit:{Feature:q8}};function Il(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function Pl(e){return{point:{x:e.pageX,y:e.pageY}}}const $8=e=>t=>im(t)&&e(t,Pl(t));function Bl(e,t,n,i){return Il(e,t,$8(n),i)}const AE=(e,t)=>Math.abs(e-t);function X8(e,t){const n=AE(e.x,t.x),i=AE(e.y,t.y);return Math.sqrt(n**2+i**2)}class CE{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 d=Nm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=X8(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:g}=d,{timestamp:b}=Wt;this.history.push({...g,timestamp:b});const{onStart:_,onMove:m}=this.handlers;f||(_&&_(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Om(f,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Nm(d.type==="pointercancel"?this.lastMoveEventInfo:Om(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,_),g&&g(d,_)},!im(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const s=Pl(t),o=Om(s,this.transformPagePoint),{point:l}=o,{timestamp:u}=Wt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Nm(o,this.history)),this.removeListeners=Ll(Bl(this.contextWindow,"pointermove",this.handlePointerMove),Bl(this.contextWindow,"pointerup",this.handlePointerUp),Bl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$r(this.updatePoint)}}function Om(e,t){return t?{point:t(e.point)}:e}function kE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nm({point:e},t){return{point:e,delta:kE(e,OE(t)),offset:kE(e,K8(t)),velocity:Q8(t,.1)}}function K8(e){return e[0]}function OE(e){return e[e.length-1]}function Q8(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=OE(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>dr(t)));)n--;if(!i)return{x:0,y:0};const a=fr(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 NE=1e-4,W8=1-NE,Z8=1+NE,RE=.01,J8=0-RE,eP=0+RE;function jn(e){return e.max-e.min}function tP(e,t,n){return Math.abs(e-t)<=n}function DE(e,t,n,i=.5){e.origin=i,e.originPoint=ht(t.min,t.max,e.origin),e.scale=jn(n)/jn(t),e.translate=ht(n.min,n.max,e.origin)-e.originPoint,(e.scale>=W8&&e.scale<=Z8||isNaN(e.scale))&&(e.scale=1),(e.translate>=J8&&e.translate<=eP||isNaN(e.translate))&&(e.translate=0)}function jl(e,t,n,i){DE(e.x,t.x,n.x,i?i.originX:void 0),DE(e.y,t.y,n.y,i?i.originY:void 0)}function ME(e,t,n){e.min=n.min+t.min,e.max=e.min+jn(t)}function nP(e,t,n){ME(e.x,t.x,n.x),ME(e.y,t.y,n.y)}function LE(e,t,n){e.min=t.min-n.min,e.max=e.min+jn(t)}function zl(e,t,n){LE(e.x,t.x,n.x),LE(e.y,t.y,n.y)}function iP(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?ht(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?ht(n,e,i.max):Math.min(e,n)),e}function IE(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 rP(e,{top:t,left:n,bottom:i,right:r}){return{x:IE(e.x,n,r),y:IE(e.y,t,i)}}function PE(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 aP(e,t){return{x:PE(e.x,t.x),y:PE(e.y,t.y)}}function sP(e,t){let n=.5;const i=jn(e),r=jn(t);return r>i?n=Fs(t.min,t.max-i,e.min):i>r&&(n=Fs(e.min,e.max-r,t.min)),hr(0,1,n)}function oP(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 Rm=.35;function lP(e=Rm){return e===!1?e=0:e===!0&&(e=Rm),{x:BE(e,"left","right"),y:BE(e,"top","bottom")}}function BE(e,t,n){return{min:jE(e,t),max:jE(e,n)}}function jE(e,t){return typeof e=="number"?e:e[t]||0}const zE=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ks=()=>({x:zE(),y:zE()}),UE=()=>({min:0,max:0}),_t=()=>({x:UE(),y:UE()});function ri(e){return[e("x"),e("y")]}function HE({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function uP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cP(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 Dm(e){return e===void 0||e===1}function Mm({scale:e,scaleX:t,scaleY:n}){return!Dm(e)||!Dm(t)||!Dm(n)}function Va(e){return Mm(e)||FE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function FE(e){return VE(e.x)||VE(e.y)}function VE(e){return e&&e!=="0%"}function yd(e,t,n){const i=e-n,r=t*i;return n+r}function YE(e,t,n,i,r){return r!==void 0&&(e=yd(e,r,i)),yd(e,n,i)+t}function Lm(e,t=0,n=1,i,r){e.min=YE(e.min,t,n,i,r),e.max=YE(e.max,t,n,i,r)}function qE(e,{x:t,y:n}){Lm(e.x,t.translate,t.scale,t.originPoint),Lm(e.y,n.translate,n.scale,n.originPoint)}const GE=.999999999999,$E=1.0000000000001;function dP(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&&Ws(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,qE(e,s)),i&&Va(a.latestValues)&&Ws(e,a.latestValues))}t.x<$E&&t.x>GE&&(t.x=1),t.y<$E&&t.y>GE&&(t.y=1)}function Qs(e,t){e.min=e.min+t,e.max=e.max+t}function XE(e,t,n,i,r=.5){const a=ht(e.min,e.max,r);Lm(e,t,n,a,i)}function Ws(e,t){XE(e.x,t.x,t.scaleX,t.scale,t.originX),XE(e.y,t.y,t.scaleY,t.scale,t.originY)}function KE(e,t){return HE(cP(e.getBoundingClientRect(),t))}function fP(e,t,n){const i=KE(e,n),{scroll:r}=t;return r&&(Qs(i.x,r.offset.x),Qs(i.y,r.offset.y)),i}const QE=({current:e})=>e?e.ownerDocument.defaultView:null,hP=new WeakMap;class pP{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=_t(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Pl(c).point)},a=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:g}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=oI(f),!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),ri(_=>{let m=this.getAxisMotionValue(_).get()||0;if(Vi.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[_];x&&(m=jn(x)*(parseFloat(m)/100))}}this.originPoint[_]=m}),g&&rt.postRender(()=>g(c,d)),lm(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:g,onDrag:b}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:_}=d;if(h&&this.currentDirection===null){this.currentDirection=mP(_),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,_),this.updateAxis("y",d.point,_),this.visualElement.render(),b&&b(c,d)},o=(c,d)=>this.stop(c,d),l=()=>ri(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new CE(t,{onSessionStart:r,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:QE(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&&rt.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||!xd(t,r,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=iP(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&&Ys(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=rP(r.layoutBox,n):this.constraints=!1,this.elastic=lP(i),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ri(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=oP(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ys(t))return!1;const i=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const a=fP(i,r.root,this.visualElement.getTransformPagePoint());let s=aP(r.layout.layoutBox,a);if(n){const o=n(uP(s));this.hasMutatedConstraints=!!o,o&&(s=HE(o))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=ri(c=>{if(!xd(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=r?200:1e6,h=r?40:1e7,g={type:"inertia",velocity:i?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return lm(this.visualElement,t),i.start(Cm(t,i,0,n,this.visualElement,!1))}stopAnimation(){ri(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ri(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){ri(n=>{const{drag:i}=this.getProps();if(!xd(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]-ht(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ys(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ri(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();r[s]=sP({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(),ri(s=>{if(!xd(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(ht(l,u,r[s]))})}addListeners(){if(!this.visualElement.current)return;hP.set(this.visualElement,this);const t=this.visualElement.current,n=Bl(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Ys(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()),rt.read(i);const s=Il(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ri(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.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=Rm,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function xd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class gP extends Qr{constructor(t){super(t),this.removeGroupControls=Bn,this.removeListeners=Bn,this.controls=new pP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bn}unmount(){this.removeGroupControls(),this.removeListeners()}}const WE=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class bP extends Qr{constructor(){super(...arguments),this.removePointerDownListener=Bn}onPointerDown(t){this.session=new CE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:QE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:WE(t),onStart:WE(n),onMove:i,onEnd:(a,s)=>{delete this.session,r&&rt.postRender(()=>r(a,s))}}}mount(){this.removePointerDownListener=Bl(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 _d={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ZE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ul={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const n=ZE(e,t.target.x),i=ZE(e,t.target.y);return`${n}% ${i}%`}},vP={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=Kr.parse(e);if(r.length>5)return i;const a=Kr.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=ht(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 yP extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:a}=t;UL(xP),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()})),_d.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()||rt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hp.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 JE(e){const[t,n]=qx(),i=E.useContext(Dp);return y.jsx(yP,{...e,layoutGroup:i,switchLayoutGroup:E.useContext(n_),isPresent:t,safeToRemove:n})}const xP={borderRadius:{...Ul,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ul,borderTopRightRadius:Ul,borderBottomLeftRadius:Ul,borderBottomRightRadius:Ul,boxShadow:vP};function _P(e,t,n){const i=rn(e)?e:Nl(e);return i.start(Cm("",i,t,n)),i.animation}function EP(e){return e instanceof SVGElement&&e.tagName!=="svg"}const TP=(e,t)=>e.depth-t.depth;class wP{constructor(){this.children=[],this.isDirty=!1}add(t){am(this.children,t),this.isDirty=!0}remove(t){sm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(TP),this.isDirty=!1,this.children.forEach(t)}}function SP(e,t){const n=Yi.now(),i=({timestamp:r})=>{const a=r-n;a>=t&&($r(i),e(a-t))};return rt.read(i,!0),()=>$r(i)}const eT=["TopLeft","TopRight","BottomLeft","BottomRight"],AP=eT.length,tT=e=>typeof e=="string"?parseFloat(e):e,nT=e=>typeof e=="number"||pe.test(e);function CP(e,t,n,i,r,a){r?(e.opacity=ht(0,n.opacity!==void 0?n.opacity:1,kP(i)),e.opacityExit=ht(t.opacity!==void 0?t.opacity:1,0,OP(i))):a&&(e.opacity=ht(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<AP;s++){const o=`border${eT[s]}Radius`;let l=iT(t,o),u=iT(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||nT(l)===nT(u)?(e[o]=Math.max(ht(tT(l),tT(u),i),0),(Vi.test(u)||Vi.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=ht(t.rotate||0,n.rotate||0,i))}function iT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const kP=rT(0,.5,F_),OP=rT(.5,.95,Bn);function rT(e,t,n){return i=>i<e?0:i>t?1:n(Fs(e,t,i))}function aT(e,t){e.min=t.min,e.max=t.max}function ai(e,t){aT(e.x,t.x),aT(e.y,t.y)}function sT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function oT(e,t,n,i,r){return e-=t,e=yd(e,1/n,i),r!==void 0&&(e=yd(e,1/r,i)),e}function NP(e,t=0,n=1,i=.5,r,a=e,s=e){if(Vi.test(t)&&(t=parseFloat(t),t=ht(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ht(a.min,a.max,i);e===a&&(o-=t),e.min=oT(e.min,t,n,o,r),e.max=oT(e.max,t,n,o,r)}function lT(e,t,[n,i,r],a,s){NP(e,t[n],t[i],t[r],t.scale,a,s)}const RP=["x","scaleX","originX"],DP=["y","scaleY","originY"];function uT(e,t,n,i){lT(e.x,t,RP,n?n.x:void 0,i?i.x:void 0),lT(e.y,t,DP,n?n.y:void 0,i?i.y:void 0)}function cT(e){return e.translate===0&&e.scale===1}function dT(e){return cT(e.x)&&cT(e.y)}function fT(e,t){return e.min===t.min&&e.max===t.max}function MP(e,t){return fT(e.x,t.x)&&fT(e.y,t.y)}function hT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pT(e,t){return hT(e.x,t.x)&&hT(e.y,t.y)}function mT(e){return jn(e.x)/jn(e.y)}function gT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class LP{constructor(){this.members=[]}add(t){am(this.members,t),t.scheduleRender()}remove(t){if(sm(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 IP(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:d,rotateY:f,skewX:h,skewY:g}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}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 Ya={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Hl=typeof window<"u"&&window.MotionDebug!==void 0,Im=["","X","Y","Z"],PP={visibility:"hidden"},bT=1e3;let BP=0;function Pm(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function vT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=I_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(r||a))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&vT(i)}function yT({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(s={},o=t==null?void 0:t()){this.id=BP++,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,Hl&&(Ya.totalNodes=Ya.resolvedTargetDeltas=Ya.recalculatedProjection=0),this.nodes.forEach(UP),this.nodes.forEach(qP),this.nodes.forEach(GP),this.nodes.forEach(HP),Hl&&window.MotionDebug.record(Ya)},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 wP)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new om),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=EP(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 d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=SP(f,250),_d.hasAnimatedSinceResize&&(_d.hasAnimatedSinceResize=!1,this.nodes.forEach(_T))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||WP,{onLayoutAnimationStart:_,onLayoutAnimationComplete:m}=c.getProps(),v=!this.targetLayout||!pT(this.targetLayout,g)||h,x=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const T={...Zp(b,"layout"),onPlay:_,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||_T(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,$r(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($P),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&&vT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.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(xT);return}this.isUpdating||this.nodes.forEach(VP),this.isUpdating=!1,this.nodes.forEach(YP),this.nodes.forEach(jP),this.nodes.forEach(zP),this.clearAllSnapshots();const o=Yi.now();Wt.delta=hr(0,1e3/60,o-Wt.timestamp),Wt.timestamp=o,Wt.isProcessing=!0,Bp.update.process(Wt),Bp.preRender.process(Wt),Bp.render.process(Wt),Wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(FP),this.sharedNodes.forEach(XP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rt.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=_t(),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&&!dT(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(o||Va(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)),ZP(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return _t();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(JP))){const{scroll:c}=this.root;c&&(Qs(l.x,c.offset.x),Qs(l.y,c.offset.y))}return l}removeElementScroll(s){var o;const l=_t();if(ai(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:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&ai(l,s),Qs(l.x,d.offset.x),Qs(l.y,d.offset.y))}return l}applyTransform(s,o=!1){const l=_t();ai(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&&Ws(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Va(c.latestValues)&&Ws(l,c.latestValues)}return Va(this.latestValues)&&Ws(l,this.latestValues),l}removeTransform(s){const o=_t();ai(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Va(u.latestValues))continue;Mm(u.latestValues)&&u.updateSnapshot();const c=_t(),d=u.measurePageBox();ai(c,d),uT(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Va(this.latestValues)&&uT(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:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){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=_t(),this.relativeTargetOrigin=_t(),zl(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),ai(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=_t(),this.targetWithTransforms=_t()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),nP(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ai(this.target,this.layout.layoutBox),qE(this.target,this.targetDelta)):ai(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=_t(),this.relativeTargetOrigin=_t(),zl(this.relativeTargetOrigin,this.target,h.target),ai(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Hl&&Ya.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Mm(this.parent.latestValues)||FE(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:d}=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||d))return;ai(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;dP(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=_t());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(sT(this.prevProjectionDelta.x,this.projectionDelta.x),sT(this.prevProjectionDelta.y,this.projectionDelta.y)),jl(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!gT(this.projectionDelta.x,this.prevProjectionDelta.x)||!gT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Hl&&Ya.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=Ks(),this.projectionDelta=Ks(),this.projectionDeltaWithTransform=Ks()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Ks();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=_t(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=h!==g,_=this.getStack(),m=!_||_.members.length<=1,v=!!(b&&!m&&this.options.crossfade===!0&&!this.path.some(QP));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const S=T/1e3;ET(d.x,s.x,S),ET(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),KP(this.relativeTarget,this.relativeTargetOrigin,f,S),x&&MP(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=_t()),ai(x,this.relativeTarget)),b&&(this.animationValues=c,CP(c,u,this.latestValues,S,v,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&&($r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{_d.hasAnimatedSinceResize=!0,this.currentAnimation=_P(0,bT,{...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(bT),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&&CT(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||_t();const d=jn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=jn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}ai(o,l),Ws(o,c),jl(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new LP),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&&Pm("z",s,u,this.animationValues);for(let c=0;c<Im.length;c++)Pm(`rotate${Im[c]}`,s,u,this.animationValues),Pm(`skew${Im[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 PP;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ud(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=ud(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Va(this.latestValues)&&(b.transform=c?c({},""):"none",this.hasProjected=!1),b}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=IP(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:h,y:g}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(o=f.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const b in dd){if(f[b]===void 0)continue;const{correct:_,applyTo:m}=dd[b],v=u.transform==="none"?f[b]:_(f[b],d);if(m){const x=m.length;for(let T=0;T<x;T++)u[m[T]]=v}else u[b]=v}return this.options.layoutId&&(u.pointerEvents=d===this?ud(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(xT),this.root.sharedNodes.clear()}}}function jP(e){e.updateLayout()}function zP(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"?ri(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=jn(f);f.min=i[d].min,f.max=f.min+h}):CT(a,n.layoutBox,i)&&ri(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=jn(i[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const o=Ks();jl(o,i,n.layoutBox);const l=Ks();s?jl(l,e.applyTransform(r,!0),n.measuredBox):jl(l,i,n.layoutBox);const u=!dT(o);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const g=_t();zl(g,n.layoutBox,f.layoutBox);const b=_t();zl(b,i,h.layoutBox),pT(g,b)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=d)}}}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 UP(e){Hl&&Ya.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 HP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function FP(e){e.clearSnapshot()}function xT(e){e.clearMeasurements()}function VP(e){e.isLayoutDirty=!1}function YP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _T(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qP(e){e.resolveTargetDelta()}function GP(e){e.calcProjection()}function $P(e){e.resetSkewAndRotation()}function XP(e){e.removeLeadSnapshot()}function ET(e,t,n){e.translate=ht(t.translate,0,n),e.scale=ht(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function TT(e,t,n,i){e.min=ht(t.min,n.min,i),e.max=ht(t.max,n.max,i)}function KP(e,t,n,i){TT(e.x,t.x,n.x,i),TT(e.y,t.y,n.y,i)}function QP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const WP={duration:.45,ease:[.4,0,.1,1]},wT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ST=wT("applewebkit/")&&!wT("chrome/")?Math.round:Bn;function AT(e){e.min=ST(e.min),e.max=ST(e.max)}function ZP(e){AT(e.x),AT(e.y)}function CT(e,t,n){return e==="position"||e==="preserve-aspect"&&!tP(mT(t),mT(n),.2)}function JP(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const e9=yT({attachResizeListener:(e,t)=>Il(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bm={current:void 0},kT=yT({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Bm.current){const e=new e9({});e.mount(window),e.setOptions({layoutScroll:!0}),Bm.current=e}return Bm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),t9={pan:{Feature:bP},drag:{Feature:gP,ProjectionNode:kT,MeasureLayout:JE}};function OT(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&&rt.postRender(()=>a(t,Pl(t)))}class n9 extends Qr{mount(){const{current:t}=this.node;t&&(this.unmount=nI(t,n=>(OT(this.node,n,"Start"),i=>OT(this.node,i,"End"))))}unmount(){}}class i9 extends Qr{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=Ll(Il(this.node.current,"focus",()=>this.onFocus()),Il(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function NT(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&&rt.postRender(()=>a(t,Pl(t)))}class r9 extends Qr{mount(){const{current:t}=this.node;t&&(this.unmount=sI(t,n=>(NT(this.node,n,"Start"),(i,{success:r})=>NT(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const jm=new WeakMap,zm=new WeakMap,a9=e=>{const t=jm.get(e.target);t&&t(e)},s9=e=>{e.forEach(a9)};function o9({root:e,...t}){const n=e||document;zm.has(n)||zm.set(n,{});const i=zm.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(s9,{root:e,...t})),i[r]}function l9(e,t,n){const i=o9(t);return jm.set(e,n),i.observe(e),()=>{jm.delete(e),i.unobserve(e)}}const u9={some:0,all:1};class c9 extends Qr{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:u9[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:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return l9(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(d9(t,n))&&this.startObserver()}unmount(){}}function d9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const f9={inView:{Feature:c9},tap:{Feature:r9},focus:{Feature:i9},hover:{Feature:n9}},h9={layout:{ProjectionNode:kT,MeasureLayout:JE}},Um={current:null},RT={current:!1};function p9(){if(RT.current=!0,!!Ip)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Um.current=e.matches;e.addListener(t),t()}else Um.current=!1}const m9=[...sE,an,Kr],g9=e=>m9.find(aE(e)),DT=new WeakMap;function b9(e,t,n){for(const i in t){const r=t[i],a=n[i];if(rn(r))e.addValue(i,r);else if(rn(a))e.addValue(i,Nl(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,Nl(s!==void 0?s:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const MT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class v9{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=ym,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=Yi.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,rt.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=ld(n),this.isVariantNode=Jx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const g=f[h];l[h]!==void 0&&rn(g)&&g.set(l[h],!1)}}mount(t){this.current=t,DT.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)),RT.current||p9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Um.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){DT.delete(this.current),this.projection&&this.projection.unmount(),$r(this.notifyUpdate),$r(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=za.has(t),r=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&rt.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 Vs){const n=Vs[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):_t()}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<MT.length;i++){const r=MT[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=b9(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=Nl(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"&&(iE(r)||Y_(r))?r=parseFloat(r):!g9(r)&&Kr.test(n)&&(r=W_(t,n)),this.setBaseTarget(t,rn(r)?r.get():r)),rn(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=Vp(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&&!rn(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 om),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class LT extends v9{constructor(){super(...arguments),this.KeyframeResolver=lE}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;rn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function y9(e){return window.getComputedStyle(e)}class x9 extends LT{constructor(){super(...arguments),this.type="html",this.renderInstance=h_}readValueFromInstance(t,n){if(za.has(n)){const i=gm(n);return i&&i.default||0}else{const i=y9(t),r=(o_(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return KE(t,n)}build(t,n,i){$p(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Wp(t,n,i)}}class _9 extends LT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_t}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(za.has(n)){const i=gm(n);return i&&i.default||0}return n=p_.has(n)?n:Up(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return b_(t,n,i)}build(t,n,i){Xp(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,r){m_(t,n,i,r)}mount(t){this.isSVGTag=Qp(t.tagName),super.mount(t)}}const E9=(e,t)=>Fp(e)?new _9(t):new x9(t,{allowProjection:e!==E.Fragment}),T9=KL({...G8,...f9,...t9,...h9},E9),Fl=dL(T9),IT=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,PT=Bx,w9=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return PT(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],d=a==null?void 0:a[u];if(c===null)return null;const f=IT(c)||IT(d);return r[u][f]}),o=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(g=>{let[b,_]=g;return Array.isArray(_)?_.includes({...a,...o}[b]):{...a,...o}[b]===_})?[...u,d,f]:u},[]);return PT(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};function BT(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 iJ(){}function rJ(){}const bn=Wr(/[A-Za-z]/),sn=Wr(/[\dA-Za-z]/),S9=Wr(/[#-'*+\--9=?A-Z^-~]/);function Ed(e){return e!==null&&(e<32||e===127)}const Hm=Wr(/\d/),A9=Wr(/[\dA-Fa-f]/),C9=Wr(/[!-/:-@[-`{-~]/);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 Td=Wr(new RegExp("\\p{P}|\\p{S}","u")),qa=Wr(/\s/);function Wr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function k9(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const wd=function(e){if(e==null)return D9;if(typeof e=="function")return Sd(e);if(typeof e=="object")return Array.isArray(e)?O9(e):N9(e);if(typeof e=="string")return R9(e);throw new Error("Expected function, string, or object as test")};function O9(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=wd(e[n]);return Sd(i);function i(...r){let a=-1;for(;++a<t.length;)if(t[a].apply(this,r))return!0;return!1}}function N9(e){const t=e;return Sd(n);function n(i){const r=i;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}function R9(e){return Sd(t);function t(n){return n&&n.type===e}}function Sd(e){return t;function t(n,i,r){return!!(M9(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function D9(){return!0}function M9(e){return e!==null&&typeof e=="object"&&"type"in e}function aJ(e){return e}const jT=[],L9=!0,Fm=!1,I9="skip";function zT(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const a=wd(r),s=i?-1:1;o(e,void 0,[])();function o(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const h=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return f;function f(){let h=jT,g,b,_;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=P9(n(l,c)),h[0]===Fm))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==I9)for(b=(i?m.children.length:-1)+s,_=c.concat(m);b>-1&&b<m.children.length;){const v=m.children[b];if(g=o(v,b,_)(),g[0]===Fm)return g;b=typeof g[1]=="number"?g[1]:b+s}}return h}}}function P9(e){return Array.isArray(e)?e:typeof e=="number"?[L9,e]:e==null?jT:[e]}function B9(e,t,n){const r=wd((n||{}).ignore||[]),a=j9(t);let s=-1;for(;++s<a.length;)zT(e,"text",o);function o(u,c){let d=-1,f;for(;++d<c.length;){const h=c[d],g=f?f.children:void 0;if(r(h,g?g.indexOf(h):void 0,f))return;f=h}if(f)return l(u,c)}function l(u,c){const d=c[c.length-1],f=a[s][0],h=a[s][1];let g=0;const _=d.children.indexOf(u);let m=!1,v=[];f.lastIndex=0;let x=f.exec(u.value);for(;x;){const T=x.index,S={index:x.index,input:x.input,stack:[...c,u]};let A=h(...x,S);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?f.lastIndex=T+1:(g!==T&&v.push({type:"text",value:u.value.slice(g,T)}),Array.isArray(A)?v.push(...A):A&&v.push(A),g=T+x[0].length,m=!0),!f.global)break;x=f.exec(u.value)}return m?(g<u.value.length&&v.push({type:"text",value:u.value.slice(g)}),d.children.splice(_,1,...v)):v=[u],_+v.length}}function j9(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([z9(r[0]),U9(r[1])])}return t}function z9(e){return typeof e=="string"?new RegExp(k9(e),"g"):e}function U9(e){return typeof e=="function"?e:function(){return e}}const Vm="phrasing",Ym=["autolink","link","image","label"];function H9(){return{transforms:[X9],enter:{literalAutolink:V9,literalAutolinkEmail:qm,literalAutolinkHttp:qm,literalAutolinkWww:qm},exit:{literalAutolink:$9,literalAutolinkEmail:G9,literalAutolinkHttp:Y9,literalAutolinkWww:q9}}}function F9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vm,notInConstruct:Ym},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vm,notInConstruct:Ym},{character:":",before:"[ps]",after:"\\/",inConstruct:Vm,notInConstruct:Ym}]}}function V9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function qm(e){this.config.enter.autolinkProtocol.call(this,e)}function Y9(e){this.config.exit.autolinkProtocol.call(this,e)}function q9(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 G9(e){this.config.exit.autolinkEmail.call(this,e)}function $9(e){this.exit(e)}function X9(e){B9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,K9],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Q9]],{ignore:["link","linkReference"]})}function K9(e,t,n,i,r){let a="";if(!UT(r)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!W9(n)))return!1;const s=Z9(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 Q9(e,t,n,i){return!UT(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function W9(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 Z9(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=BT(e,"(");let a=BT(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 UT(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||qa(n)||Td(n))&&(!t||n!==47)}function Ci(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}HT.peek=o7;function J9(){this.buffer()}function e7(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function t7(){this.buffer()}function n7(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function i7(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),n.label=t}function r7(e){this.exit(e)}function a7(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),n.label=t}function s7(e){this.exit(e)}function o7(){return"["}function HT(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 l7(){return{enter:{gfmFootnoteCallString:J9,gfmFootnoteCall:e7,gfmFootnoteDefinitionLabelString:t7,gfmFootnoteDefinition:n7},exit:{gfmFootnoteCallString:i7,gfmFootnoteCall:r7,gfmFootnoteDefinitionLabelString:a7,gfmFootnoteDefinition:s7}}}function u7(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:HT},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?`
262
+ `:" ")+a.indentLines(a.containerFlow(i,o.current()),t?FT:c7))),u(),l}}function c7(e,t,n){return t===0?e:FT(e,t,n)}function FT(e,t,n){return(n?"":" ")+e}const d7=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];VT.peek=g7;function f7(){return{canContainEols:["delete"],enter:{strikethrough:p7},exit:{strikethrough:m7}}}function h7(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:d7}],handlers:{delete:VT}}}function p7(e){this.enter({type:"delete",children:[]},e)}function m7(e){this.exit(e)}function VT(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 g7(){return"~"}function b7(e){return e.length}function v7(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||b7,a=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const b=[],_=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const v=y7(e[c][m]);if(n.alignDelimiters!==!1){const x=r(v);_[m]=x,(l[m]===void 0||x>l[m])&&(l[m]=x)}b.push(v)}s[c]=b,o[c]=_}let d=-1;if(typeof i=="object"&&"length"in i)for(;++d<u;)a[d]=YT(i[d]);else{const b=YT(i);for(;++d<u;)a[d]=b}d=-1;const f=[],h=[];for(;++d<u;){const b=a[d];let _="",m="";b===99?(_=":",m=":"):b===108?_=":":b===114&&(m=":");let v=n.alignDelimiters===!1?1:Math.max(1,l[d]-_.length-m.length);const x=_+"-".repeat(v)+m;n.alignDelimiters!==!1&&(v=_.length+v+m.length,v>l[d]&&(l[d]=v),h[d]=v),f[d]=x}s.splice(1,0,f),o.splice(1,0,h),c=-1;const g=[];for(;++c<s.length;){const b=s[c],_=o[c];d=-1;const m=[];for(;++d<u;){const v=b[d]||"";let x="",T="";if(n.alignDelimiters!==!1){const S=l[d]-(_[d]||0),A=a[d];A===114?x=" ".repeat(S):A===99?S%2?(x=" ".repeat(S/2+.5),T=" ".repeat(S/2-.5)):(x=" ".repeat(S/2),T=x):T=" ".repeat(S)}n.delimiterStart!==!1&&!d&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||d)&&m.push(" "),n.alignDelimiters!==!1&&m.push(x),m.push(v),n.alignDelimiters!==!1&&m.push(T),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
263
263
  `)}function y7(e){return e==null?"":String(e)}function YT(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 qT={}.hasOwnProperty;function GT(e,t){const n=t||{};function i(r,...a){let s=i.invalid;const o=i.handlers;if(r&&qT.call(r,e)){const l=String(r[e]);s=qT.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 x7(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()),_7);return r(),s}function _7(e,t,n){return">"+(n?"":" ")+e}function E7(e,t){return $T(e,t.inConstruct,!0)&&!$T(e,t.notInConstruct,!1)}function $T(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 XT(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
264
264
  `&&E7(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
265
265
  `}function T7(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 w7(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 S7(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 A7(e,t,n,i){const r=S7(n),a=e.value||"",s=r==="`"?"GraveAccent":"Tilde";if(w7(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(a,C7);return d(),f}const o=n.createTracker(i),l=r.repeat(Math.max(T7(a,r)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:`
@@ -272,17 +272,17 @@ ${a}`:a})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOStr
272
272
  `+(r===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
273
273
  `))+1))}const s="#".repeat(r),o=n.enter("headingAtx"),l=n.enter("phrasing");a.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
274
274
  `,...a.current()});return/^[\t ]/.test(u)&&(u=Vl(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}ZT.peek=I7;function ZT(e){return e.value||""}function I7(){return"<"}JT.peek=P7;function JT(e,t,n,i){const r=Gm(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 P7(){return"!"}e2.peek=B7;function e2(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 d=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),r==="full"||!u||u!==d?l+=o.move(d+"]"):r==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function B7(){return"!"}t2.peek=j7;function t2(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 j7(){return"`"}function n2(e,t){const n=$m(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))}i2.peek=z7;function i2(e,t,n,i){const r=Gm(n),a=r==='"'?"Quote":"Apostrophe",s=n.createTracker(i);let o,l;if(n2(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}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 z7(e,t,n){return n2(e,n)?"<":"["}r2.peek=U7;function r2(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 d=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),r==="full"||!u||u!==d?l+=o.move(d+"]"):r==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function U7(){return"["}function Xm(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 H7(e){const t=Xm(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 F7(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 a2(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 V7(e,t,n,i){const r=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?F7(n):Xm(n);const o=e.ordered?s==="."?")":".":H7(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),a2(n)===s&&c){let d=-1;for(;++d<e.children.length;){const f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.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 Y7(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 q7(e,t,n,i){const r=Y7(n);let a=n.bulletCurrent||Xm(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(d,f,h){return f?(h?"":" ".repeat(s))+d:(h?a:a+" ".repeat(s-a.length))+d}}function G7(e,t,n,i){const r=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,i);return a(),r(),s}const $7=wd(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function X7(e,t,n,i){return(e.children.some(function(s){return $7(s)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function K7(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}s2.peek=Q7;function s2(e,t,n,i){const r=K7(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=Ad(i.before.charCodeAt(i.before.length-1),u,r);c.inside&&(l=Vl(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Ad(i.after.charCodeAt(0),d,r);f.inside&&(l=l.slice(0,-1)+Vl(d));const h=s.move(r+r);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+l+h}function Q7(e,t,n){return n.options.strong||"*"}function W7(e,t,n,i){return n.safe(e.value,i)}function Z7(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 J7(e,t,n){const i=(a2(n)+(n.options.ruleSpaces?" ":"")).repeat(Z7(n));return n.options.ruleSpaces?i.slice(0,-1):i}const o2={blockquote:x7,break:XT,code:A7,definition:k7,emphasis:KT,hardBreak:XT,heading:L7,html:ZT,image:JT,imageReference:e2,inlineCode:t2,link:i2,linkReference:r2,list:V7,listItem:q7,paragraph:G7,root:X7,strong:s2,text:W7,thematicBreak:J7},l2=document.createElement("i");function Km(e){const t="&"+e+";";l2.innerHTML=t;const n=l2.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function u2(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 eB=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tB(e){return e.replace(eB,nB)}function nB(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),a=r===120||r===88;return u2(n.slice(a?2:1),a?16:10)}return Km(n)||e}function iB(){return{enter:{table:rB,tableData:c2,tableHeader:c2,tableRow:sB},exit:{codeText:oB,table:aB,tableData:Qm,tableHeader:Qm,tableRow:Qm}}}function rB(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 aB(e){this.exit(e),this.data.inTable=void 0}function sB(e){this.enter({type:"tableRow",children:[]},e)}function Qm(e){this.exit(e)}function c2(e){this.enter({type:"tableCell",children:[]},e)}function oB(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,lB));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function lB(e,t){return t==="|"?t:e}function uB(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
275
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:l,tableRow:o}};function s(h,g,b,E){return u(c(h,b,E),h.align)}function o(h,g,b,E){const m=d(h,b,E),v=u([m]);return v.slice(0,v.indexOf(`
276
- `))}function l(h,g,b,E){const m=b.enter("tableCell"),v=b.enter("phrasing"),x=b.containerPhrasing(h,{...E,before:a,after:a});return v(),m(),x}function u(h,g){return v7(h,{align:g,alignDelimiters:i,padding:n,stringLength:r})}function c(h,g,b){const E=h.children;let m=-1;const v=[],x=g.enter("table");for(;++m<E.length;)v[m]=d(E[m],g,b);return x(),v}function d(h,g,b){const E=h.children;let m=-1;const v=[],x=g.enter("tableRow");for(;++m<E.length;)v[m]=l(E[m],h,g,b);return x(),v}function f(h,g,b){let E=o2.inlineCode(h,g,b);return b.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function cB(){return{exit:{taskListCheckValueChecked:d2,taskListCheckValueUnchecked:d2,paragraph:fB}}}function dB(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:hB}}}function d2(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function fB(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 hB(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=o2.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 pB(){return[H9(),l7(),f7(),iB(),cB()]}function mB(e){return{extensions:[F9(),u7(e),h7(),uB(e),dB()]}}function zn(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 si(e,t){return e.length>0?(zn(e,e.length,0,t),e):t}const f2={}.hasOwnProperty;function h2(e){const t={};let n=-1;for(;++n<e.length;)gB(t,e[n]);return t}function gB(e,t){let n;for(n in t){const r=(f2.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){f2.call(r,s)||(r[s]=[]);const o=a[s];bB(r[s],Array.isArray(o)?o:o?[o]:[])}}}function bB(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);zn(e,0,0,i)}const vB={tokenize:wB,partial:!0},p2={tokenize:SB,partial:!0},m2={tokenize:AB,partial:!0},g2={tokenize:CB,partial:!0},yB={tokenize:kB,partial:!0},b2={name:"wwwAutolink",tokenize:EB,previous:y2},v2={name:"protocolAutolink",tokenize:TB,previous:x2},pr={name:"emailAutolink",tokenize:_B,previous:_2},qi={};function xB(){return{text:qi}}let Ga=48;for(;Ga<123;)qi[Ga]=pr,Ga++,Ga===58?Ga=65:Ga===91&&(Ga=97);qi[43]=pr,qi[45]=pr,qi[46]=pr,qi[95]=pr,qi[72]=[pr,v2],qi[104]=[pr,v2],qi[87]=[pr,b2],qi[119]=[pr,b2];function _B(e,t,n){const i=this;let r,a;return s;function s(d){return!Wm(d)||!_2.call(i,i.previous)||Zm(i.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return Wm(d)?(e.consume(d),o):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(yB,c,u)(d):d===45||d===95||sn(d)?(a=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),r=!0,l}function c(d){return a&&r&&bn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function EB(e,t,n){const i=this;return r;function r(s){return s!==87&&s!==119||!y2.call(i,i.previous)||Zm(i.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(vB,e.attempt(p2,e.attempt(m2,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function TB(e,t,n){const i=this;let r="",a=!1;return s;function s(d){return(d===72||d===104)&&x2.call(i,i.previous)&&!Zm(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(bn(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const f=r.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),a?u:(a=!0,l)):n(d)}function u(d){return d===null||Ed(d)||Xe(d)||qa(d)||Td(d)?n(d):e.attempt(p2,e.attempt(m2,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function wB(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 SB(e,t,n){let i,r,a;return s;function s(u){return u===46||u===95?e.check(g2,l,o)(u):u===null||Xe(u)||qa(u)||u!==45&&Td(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 AB(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(g2,t,a)(s):s===null||Xe(s)||qa(s)?t(s):(e.consume(s),r)}function a(s){return s===41&&i++,e.consume(s),r}}function CB(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)||qa(o)?t(o):n(o)}function r(o){return o===null||o===40||o===91||Xe(o)||qa(o)?t(o):i(o)}function a(o){return bn(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),i):bn(o)?(e.consume(o),s):n(o)}}function kB(e,t,n){return i;function i(a){return e.consume(a),r}function r(a){return sn(a)?n(a):t(a)}}function y2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Xe(e)}function x2(e){return!bn(e)}function _2(e){return!(e===47||Wm(e))}function Wm(e){return e===43||e===45||e===46||e===95||sn(e)}function Zm(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 Js(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&sn(e.charCodeAt(n+1))&&sn(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 kd(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 Jm={name:"attention",resolveAll:OB,tokenize:NB};function OB(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 d={...e[i][1].end},f={...e[n][1].start};E2(d,-l),E2(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},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=si(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=si(u,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=si(u,kd(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=si(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=si(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,zn(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 NB(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Zs(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=Zs(l),d=!c||c===2&&r||n.includes(l),f=!r||r===2&&c||n.includes(i);return u._open=!!(a===42?d:d&&(r||!f)),u._close=!!(a===42?f:f&&(c||!d)),t(l)}}function E2(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const RB={name:"autolink",tokenize:DB};function DB(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 bn(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||sn(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||sn(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||Ed(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):S9(h)?(e.consume(h),u):n(h)}function c(h){return sn(h)?d(h):n(h)}function d(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):f(h)}function f(h){if((h===45||sn(h))&&i++<63){const g=h===45?f:d;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 Yl={partial:!0,tokenize:MB};function MB(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 T2={continuation:{tokenize:IB},exit:PB,name:"blockQuote",tokenize:LB};function LB(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 IB(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(T2,t,n)(s)}}function PB(e){e.exit("blockQuote")}const w2={name:"characterEscape",tokenize:BB};function BB(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 C9(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const S2={name:"characterReference",tokenize:jB};function jB(e,t,n){const i=this;let r=0,a,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,s=sn,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=A9,c):(e.enter("characterReferenceValue"),a=7,s=Hm,c(d))}function c(d){if(d===59&&r){const f=e.exit("characterReferenceValue");return s===sn&&!Km(i.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&r++<a?(e.consume(d),c):n(d)}}const A2={partial:!0,tokenize:UB},C2={concrete:!0,name:"codeFenced",tokenize:zB};function zB(e,t,n){const i=this,r={partial:!0,tokenize:S};let a=0,s=0,o;return l;function l(A){return u(A)}function u(A){const D=i.events[i.events.length-1];return a=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===o?(s++,e.consume(A),c):s<3?n(A):(e.exit("codeFencedFenceSequence"),Ne(A)?Me(e,d,"whitespace")(A):d(A))}function d(A){return A===null||fe(A)?(e.exit("codeFencedFence"),i.interrupt?t(A):e.check(A2,b,T)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||fe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):Ne(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Me(e,h,"whitespace")(A)):A===96&&A===o?n(A):(e.consume(A),f)}function h(A){return A===null||fe(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||fe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===o?n(A):(e.consume(A),g)}function b(A){return e.attempt(r,T,E)(A)}function E(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),m}function m(A){return a>0&&Ne(A)?Me(e,v,"linePrefix",a+1)(A):v(A)}function v(A){return A===null||fe(A)?e.check(A2,b,T)(A):(e.enter("codeFlowValue"),x(A))}function x(A){return A===null||fe(A)?(e.exit("codeFlowValue"),v(A)):(e.consume(A),x)}function T(A){return e.exit("codeFenced"),t(A)}function S(A,D,L){let B=0;return O;function O(Q){return A.enter("lineEnding"),A.consume(Q),A.exit("lineEnding"),Y}function Y(Q){return A.enter("codeFencedFence"),Ne(Q)?Me(A,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):U(Q)}function U(Q){return Q===o?(A.enter("codeFencedFenceSequence"),re(Q)):L(Q)}function re(Q){return Q===o?(B++,A.consume(Q),re):B>=s?(A.exit("codeFencedFenceSequence"),Ne(Q)?Me(A,ee,"whitespace")(Q):ee(Q)):L(Q)}function ee(Q){return Q===null||fe(Q)?(A.exit("codeFencedFence"),D(Q)):L(Q)}}}function UB(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 e0={name:"codeIndented",tokenize:FB},HB={partial:!0,tokenize:VB};function FB(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(HB,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 VB(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 YB={name:"codeText",previous:GB,resolve:qB,tokenize:$B};function qB(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 GB(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $B(e,t,n){let i=0,r,a;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),i++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(a=e.enter("codeTextSequence"),r=0,c(d)):fe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||fe(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",u(d))}}class XB{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&&ql(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),ql(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ql(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);ql(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ql(this.left,n.reverse())}}}function ql(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 k2(e){const t={};let n=-1,i,r,a,s,o,l,u;const c=new XB(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,KB(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 zn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function KB(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,d,f=-1,h=n,g=0,b=0;const E=[b];for(;h;){for(;e.get(++r)[1]!==h;);a.push(r),h._tokenizer||(c=i.sliceStream(h),h.next||c.push(null),d&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(b=f+1,E.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):E.pop(),f=E.length;f--;){const m=o.slice(E[f],E[f+1]),v=a.pop();l.push([v,v+m.length-1]),e.splice(v,2,m)}for(l.reverse(),f=-1;++f<l.length;)u[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return u}const QB={resolve:ZB,tokenize:JB},WB={partial:!0,tokenize:ej};function ZB(e){return k2(e),e}function JB(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(WB,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 ej(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 O2(e,t,n,i,r,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(m){return m===60?(e.enter(i),e.enter(r),e.enter(a),e.consume(m),e.exit(a),f):m===null||m===32||m===41||Ed(m)?n(m):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(m))}function f(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),f(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||Ed(m)?n(m):(e.consume(m),m===92?E:b)}function E(m){return m===40||m===41||m===92?(e.consume(m),b):b(m)}}function N2(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"}),d(h))}function d(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?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),o++,d):d(h)}}function R2(e,t,n,i,r,a){let s;return o;function o(f){return f===34||f===39||f===40?(e.enter(i),e.enter(r),e.consume(f),e.exit(r),s=f===40?41:f,l):n(f)}function l(f){return f===s?(e.enter(r),e.consume(f),e.exit(r),e.exit(i),t):(e.enter(a),u(f))}function u(f){return f===s?(e.exit(a),l(s)):f===null?n(f):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Me(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||fe(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===s||f===92?(e.consume(f),c):c(f)}}function Gl(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 tj={name:"definition",tokenize:ij},nj={partial:!0,tokenize:rj};function ij(e,t,n){const i=this;let r;return a;function a(h){return e.enter("definition"),s(h)}function s(h){return N2.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return r=Ci(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)?Gl(e,u)(h):u(h)}function u(h){return O2(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(nj,d,d)(h)}function d(h){return Ne(h)?Me(e,f,"whitespace")(h):f(h)}function f(h){return h===null||fe(h)?(e.exit("definition"),i.parser.defined.push(r),t(h)):n(h)}}function rj(e,t,n){return i;function i(o){return Xe(o)?Gl(e,r)(o):n(o)}function r(o){return R2(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 aj={name:"hardBreakEscape",tokenize:sj};function sj(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 oj={name:"headingAtx",resolve:lj,tokenize:uj};function lj(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"},zn(e,i,n-i+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]])),e}function uj(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 cj=["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"],D2=["pre","script","style","textarea"],dj={concrete:!0,name:"htmlFlow",resolveTo:pj,tokenize:mj},fj={partial:!0,tokenize:bj},hj={partial:!0,tokenize:gj};function pj(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 mj(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),d}function d(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),a=!0,b):M===63?(e.consume(M),r=3,i.interrupt?t:N):bn(M)?(e.consume(M),s=String.fromCharCode(M),E):n(M)}function f(M){return M===45?(e.consume(M),r=2,h):M===91?(e.consume(M),r=5,o=0,g):bn(M)?(e.consume(M),r=4,i.interrupt?t:N):n(M)}function h(M){return M===45?(e.consume(M),i.interrupt?t:N):n(M)}function g(M){const Be="CDATA[";return M===Be.charCodeAt(o++)?(e.consume(M),o===Be.length?i.interrupt?t:U:g):n(M)}function b(M){return bn(M)?(e.consume(M),s=String.fromCharCode(M),E):n(M)}function E(M){if(M===null||M===47||M===62||Xe(M)){const Be=M===47,ge=s.toLowerCase();return!Be&&!a&&D2.includes(ge)?(r=1,i.interrupt?t(M):U(M)):cj.includes(s.toLowerCase())?(r=6,Be?(e.consume(M),m):i.interrupt?t(M):U(M)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(M):a?v(M):x(M))}return M===45||sn(M)?(e.consume(M),s+=String.fromCharCode(M),E):n(M)}function m(M){return M===62?(e.consume(M),i.interrupt?t:U):n(M)}function v(M){return Ne(M)?(e.consume(M),v):O(M)}function x(M){return M===47?(e.consume(M),O):M===58||M===95||bn(M)?(e.consume(M),T):Ne(M)?(e.consume(M),x):O(M)}function T(M){return M===45||M===46||M===58||M===95||sn(M)?(e.consume(M),T):S(M)}function S(M){return M===61?(e.consume(M),A):Ne(M)?(e.consume(M),S):x(M)}function A(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),A):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 O(M){return M===62?(e.consume(M),Y):n(M)}function Y(M){return M===null||fe(M)?U(M):Ne(M)?(e.consume(M),Y):n(M)}function U(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),be):M===63&&r===3?(e.consume(M),N):M===93&&r===5?(e.consume(M),te):fe(M)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(fj,tt,re)(M)):M===null||fe(M)?(e.exit("htmlFlowData"),re(M)):(e.consume(M),U)}function re(M){return e.check(hj,ee,tt)(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"),U(M))}function F(M){return M===45?(e.consume(M),N):U(M)}function V(M){return M===47?(e.consume(M),s="",H):U(M)}function H(M){if(M===62){const Be=s.toLowerCase();return D2.includes(Be)?(e.consume(M),be):U(M)}return bn(M)&&s.length<8?(e.consume(M),s+=String.fromCharCode(M),H):U(M)}function te(M){return M===93?(e.consume(M),N):U(M)}function N(M){return M===62?(e.consume(M),be):M===45&&r===2?(e.consume(M),N):U(M)}function be(M){return M===null||fe(M)?(e.exit("htmlFlowData"),tt(M)):(e.consume(M),be)}function tt(M){return e.exit("htmlFlow"),t(M)}}function gj(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 bj(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Yl,t,n)}}const vj={name:"htmlText",tokenize:yj};function yj(e,t,n){const i=this;let r,a,s;return o;function o(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),u):N===47?(e.consume(N),S):N===63?(e.consume(N),x):bn(N)?(e.consume(N),L):n(N)}function u(N){return N===45?(e.consume(N),c):N===91?(e.consume(N),a=0,g):bn(N)?(e.consume(N),v):n(N)}function c(N){return N===45?(e.consume(N),h):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),f):fe(N)?(s=d,V(N)):(e.consume(N),d)}function f(N){return N===45?(e.consume(N),h):d(N)}function h(N){return N===62?F(N):N===45?f(N):d(N)}function g(N){const be="CDATA[";return N===be.charCodeAt(a++)?(e.consume(N),a===be.length?b:g):n(N)}function b(N){return N===null?n(N):N===93?(e.consume(N),E):fe(N)?(s=b,V(N)):(e.consume(N),b)}function E(N){return N===93?(e.consume(N),m):b(N)}function m(N){return N===62?F(N):N===93?(e.consume(N),m):b(N)}function v(N){return N===null||N===62?F(N):fe(N)?(s=v,V(N)):(e.consume(N),v)}function x(N){return N===null?n(N):N===63?(e.consume(N),T):fe(N)?(s=x,V(N)):(e.consume(N),x)}function T(N){return N===62?F(N):x(N)}function S(N){return bn(N)?(e.consume(N),A):n(N)}function A(N){return N===45||sn(N)?(e.consume(N),A):D(N)}function D(N){return fe(N)?(s=D,V(N)):Ne(N)?(e.consume(N),D):F(N)}function L(N){return N===45||sn(N)?(e.consume(N),L):N===47||N===62||Xe(N)?B(N):n(N)}function B(N){return N===47?(e.consume(N),F):N===58||N===95||bn(N)?(e.consume(N),O):fe(N)?(s=B,V(N)):Ne(N)?(e.consume(N),B):F(N)}function O(N){return N===45||N===46||N===58||N===95||sn(N)?(e.consume(N),O):Y(N)}function Y(N){return N===61?(e.consume(N),U):fe(N)?(s=Y,V(N)):Ne(N)?(e.consume(N),Y):B(N)}function U(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),r=N,re):fe(N)?(s=U,V(N)):Ne(N)?(e.consume(N),U):(e.consume(N),ee)}function re(N){return N===r?(e.consume(N),r=void 0,Q):N===null?n(N):fe(N)?(s=re,V(N)):(e.consume(N),re)}function ee(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Xe(N)?B(N):(e.consume(N),ee)}function Q(N){return N===47||N===62||Xe(N)?B(N):n(N)}function F(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function V(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),H}function H(N){return Ne(N)?Me(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):te(N)}function te(N){return e.enter("htmlTextData"),s(N)}}const t0={name:"labelEnd",resolveAll:Tj,resolveTo:wj,tokenize:Sj},xj={tokenize:Aj},_j={tokenize:Cj},Ej={tokenize:kj};function Tj(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&&zn(e,0,e.length,n),e}function wj(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=si(o,e.slice(a+1,a+i+3)),o=si(o,[["enter",c,t]]),o=si(o,kd(t.parser.constructs.insideSpan.null,e.slice(a+i+4,s-3),t)),o=si(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=si(o,e.slice(s+1)),o=si(o,[["exit",l,t]]),zn(e,a,e.length,o),e}function Sj(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(f){return a?a._inactive?d(f):(s=i.parser.defined.includes(Ci(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(xj,c,s?c:d)(f):f===91?e.attempt(_j,c,s?u:d)(f):s?c(f):d(f)}function u(f){return e.attempt(Ej,c,d)(f)}function c(f){return t(f)}function d(f){return a._balanced=!0,n(f)}}function Aj(e,t,n){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return Xe(d)?Gl(e,a)(d):a(d)}function a(d){return d===41?c(d):O2(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Xe(d)?Gl(e,l)(d):c(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?R2(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Xe(d)?Gl(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Cj(e,t,n){const i=this;return r;function r(o){return N2.call(i,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return i.parser.defined.includes(Ci(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function kj(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 Oj={name:"labelStartImage",resolveAll:t0.resolveAll,tokenize:Nj};function Nj(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 Rj={name:"labelStartLink",resolveAll:t0.resolveAll,tokenize:Dj};function Dj(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 n0={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 Od={name:"thematicBreak",tokenize:Lj};function Lj(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 Tn={continuation:{tokenize:jj},exit:Uj,name:"list",tokenize:Bj},Ij={partial:!0,tokenize:Hj},Pj={partial:!0,tokenize:zj};function Bj(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:Hm(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(Od,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 Hm(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(Yl,i.interrupt?n:c,e.attempt(Ij,f,d))}function c(h){return i.containerState.initialBlankLine=!0,a++,f(h)}function d(h){return Ne(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function jj(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Yl,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(Pj,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Me(e,e.attempt(Tn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function zj(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 Uj(e){e.exit(this.containerState.type)}function Hj(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 M2={name:"setextUnderline",resolveTo:Fj,tokenize:Vj};function Fj(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 Vj(e,t,n){const i=this;let r;return a;function a(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(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 Yj={tokenize:Zj,partial:!0};function qj(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Kj,continuation:{tokenize:Qj},exit:Wj}},text:{91:{name:"gfmFootnoteCall",tokenize:Xj},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Gj,resolveTo:$j}}}}function Gj(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=Ci(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 $j(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 Xj(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(a>999||d===93&&!s||d===null||d===91||Xe(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return r.includes(Ci(i.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Xe(d)||(s=!0),a++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,u):u(d)}}function Kj(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=Ci(i.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Xe(g)||(o=!0),s++,e.consume(g),g===92?d:c}function d(g){return g===91||g===92||g===93?(e.consume(g),s++,c):c(g)}function f(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 Qj(e,t,n){return e.check(Yl,t,e.attempt(Yj,t,n))}function Wj(e){e.exit("gfmFootnoteDefinition")}function Zj(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 Jj(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)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",d,o]],h=o.parser.constructs.insideSpan.null;h&&zn(f,f.length,0,kd(h,s.slice(u+1,l),o)),zn(f,f.length,0,[["exit",d,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),zn(s,u-1,l-u+3,f),l=u+f.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 d=0;return f;function f(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const b=Zs(u);if(g===126)return d>1?l(g):(s.consume(g),d++,h);if(d<2&&!n)return l(g);const E=s.exit("strikethroughSequenceTemporary"),m=Zs(g);return E._open=!m||m===2&&!!b,E._close=!b||b===2&&!!m,o(g)}}}class ez{constructor(){this.map=[]}add(t,n,i){tz(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 tz(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 nz(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 iz(){return{flow:{null:{name:"table",tokenize:rz,resolveAll:az}}}}function rz(e,t,n){const i=this;let r=0,a=0,s;return o;function o(O){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 U=Y>-1?i.events[Y][1].type:null,re=U==="tableHead"||U==="tableRow"?A:l;return re===A&&i.parser.lazy[i.now().line]?n(O):re(O)}function l(O){return e.enter("tableHead"),e.enter("tableRow"),u(O)}function u(O){return O===124||(s=!0,a+=1),c(O)}function c(O){return O===null?n(O):fe(O)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),h):n(O):Ne(O)?Me(e,c,"whitespace")(O):(a+=1,s&&(s=!1,r+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(O)))}function d(O){return O===null||O===124||Xe(O)?(e.exit("data"),c(O)):(e.consume(O),O===92?f:d)}function f(O){return O===92||O===124?(e.consume(O),d):d(O)}function h(O){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(O):(e.enter("tableDelimiterRow"),s=!1,Ne(O)?Me(e,g,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):g(O))}function g(O){return O===45||O===58?E(O):O===124?(s=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),b):S(O)}function b(O){return Ne(O)?Me(e,E,"whitespace")(O):E(O)}function E(O){return O===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),m):O===45?(a+=1,m(O)):O===null||fe(O)?T(O):S(O)}function m(O){return O===45?(e.enter("tableDelimiterFiller"),v(O)):S(O)}function v(O){return O===45?(e.consume(O),v):O===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(O))}function x(O){return Ne(O)?Me(e,T,"whitespace")(O):T(O)}function T(O){return O===124?g(O):O===null||fe(O)?!s||r!==a?S(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):S(O)}function S(O){return n(O)}function A(O){return e.enter("tableRow"),D(O)}function D(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),D):O===null||fe(O)?(e.exit("tableRow"),t(O)):Ne(O)?Me(e,D,"whitespace")(O):(e.enter("data"),L(O))}function L(O){return O===null||O===124||Xe(O)?(e.exit("data"),D(O)):(e.consume(O),O===92?B:L)}function B(O){return O===92||O===124?(e.consume(O),L):L(O)}}function az(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,d;const f=new ez;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(L2(f,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(i=!0,d=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)},f.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],d=Nd(f,t,a,r,void 0,d),a=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(s[0]=s[1],d=Nd(f,t,a,r,void 0,d)),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],d=Nd(f,t,a,r,n,d)):s[1]!==0&&(d=Nd(f,t,s,r,n,d)),r=0):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&L2(f,t,l,u,c),f.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=nz(t.events,n))}return e}function Nd(e,t,n,i,r,a){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},eo(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=eo(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=eo(t.events,n[2]),c=eo(t.events,n[3]),d={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),i!==2){const f=t.events[n[2]],h=t.events[n[3]];if(f[1].end=Object.assign({},h[1].end),f[1].type="chunkText",f[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",d,t]])}return r!==void 0&&(a.end=Object.assign({},eo(t.events,r)),e.add(r,0,[["exit",a,t]]),a=void 0),a}function L2(e,t,n,i,r){const a=[],s=eo(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 eo(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const sz={name:"tasklistCheck",tokenize:lz};function oz(){return{text:{91:sz}}}function lz(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:uz},t,n)(l):n(l)}}function uz(e,t,n){return Me(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function cz(e){return h2([xB(),qj(),Jj(e),iz(),oz()])}const dz={};function I2(e){const t=this,n=e||dz,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(cz(n)),a.push(pB()),s.push(mB(n))}function P2(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 B2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const fz=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hz=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pz={};function j2(e,t){return(pz.jsx?hz:fz).test(e)}const mz=/[ \t\n\f\r]/g;function gz(e){return typeof e=="object"?e.type==="text"?z2(e.value):!1:z2(e)}function z2(e){return e.replace(mz,"")===""}let $l=class{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}};$l.prototype.normal={},$l.prototype.property={},$l.prototype.space=void 0;function U2(e,t){const n={},i={};for(const r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new $l(n,i,t)}function Xl(e){return e.toLowerCase()}let wn=class{constructor(t,n){this.attribute=n,this.property=t}};wn.prototype.attribute="",wn.prototype.booleanish=!1,wn.prototype.boolean=!1,wn.prototype.commaOrSpaceSeparated=!1,wn.prototype.commaSeparated=!1,wn.prototype.defined=!1,wn.prototype.mustUseProperty=!1,wn.prototype.number=!1,wn.prototype.overloadedBoolean=!1,wn.prototype.property="",wn.prototype.spaceSeparated=!1,wn.prototype.space=void 0;let bz=0;const we=$a(),kt=$a(),i0=$a(),W=$a(),Ze=$a(),to=$a(),Un=$a();function $a(){return 2**++bz}const r0=Object.freeze(Object.defineProperty({__proto__:null,boolean:we,booleanish:kt,commaOrSpaceSeparated:Un,commaSeparated:to,number:W,overloadedBoolean:i0,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),a0=Object.keys(r0);let s0=class extends wn{constructor(t,n,i,r){let a=-1;if(super(t,n),H2(this,"space",r),typeof i=="number")for(;++a<a0.length;){const s=a0[a];H2(this,a0[a],(i&r0[s])===r0[s])}}};s0.prototype.defined=!0;function H2(e,t,n){n&&(e[t]=n)}function no(e){const t={},n={};for(const[i,r]of Object.entries(e.properties)){const a=new s0(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,n[Xl(i)]=i,n[Xl(a.attribute)]=i}return new $l(t,n,e.space)}const F2=no({properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:Ze,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:W,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:Ze,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:kt,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 V2(e,t){return t in e?e[t]:t}function Y2(e,t){return V2(e,t.toLowerCase())}const vz=no({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:to,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:we,allowPaymentRequest:we,allowUserMedia:we,alt:null,as:null,async:we,autoCapitalize:null,autoComplete:Ze,autoFocus:we,autoPlay:we,blocking:Ze,capture:null,charSet:null,checked:we,cite:null,className:Ze,cols:W,colSpan:null,content:null,contentEditable:kt,controls:we,controlsList:Ze,coords:W|to,crossOrigin:null,data:null,dateTime:null,decoding:null,default:we,defer:we,dir:null,dirName:null,disabled:we,download:i0,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:we,formTarget:null,headers:Ze,height:W,hidden:i0,high:W,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:we,inputMode:null,integrity:null,is:null,isMap:we,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:we,itemType:Ze,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:Ze,placeholder:null,playsInline:we,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:we,referrerPolicy:null,rel:Ze,required:we,reversed:we,rows:W,rowSpan:W,sandbox:Ze,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:kt,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:kt,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,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:kt,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:Y2}),yz=no({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:Un,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: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: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:to,g2:to,glyphName:to,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:Un,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:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Un,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Un,rev:Un,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Un,requiredFeatures:Un,requiredFonts:Un,requiredFormats:Un,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:Un,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:Un,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:Un,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:V2}),q2=no({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()}}),G2=no({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Y2}),$2=no({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),xz={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"},_z=/[A-Z]/g,X2=/-[a-z]/g,Ez=/^data[-\w.:]+$/i;function o0(e,t){const n=Xl(t);let i=t,r=wn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ez.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(X2,wz);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!X2.test(a)){let s=a.replace(_z,Tz);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}r=s0}return new r(i,t)}function Tz(e){return"-"+e.toLowerCase()}function wz(e){return e.charAt(1).toUpperCase()}const Rd=U2([F2,vz,q2,G2,$2],"html"),io=U2([F2,yz,q2,G2,$2],"svg");function K2(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Q2(e){return e.join(" ").trim()}var l0={},W2=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Sz=/\n/g,Az=/^\s*/,Cz=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,kz=/^:\s*/,Oz=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Nz=/^[;\s]*/,Rz=/^\s+|\s+$/g,Dz=`
277
- `,Z2="/",J2="*",Xa="",Mz="comment",Lz="declaration",Iz=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(Sz);b&&(n+=b.length);var E=g.lastIndexOf(Dz);i=~E?g.length-E: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 E=b[0];return r(E),e=e.slice(E.length),b}}function u(){l(Az)}function c(g){var b;for(g=g||[];b=d();)b!==!1&&g.push(b);return g}function d(){var g=a();if(!(Z2!=e.charAt(0)||J2!=e.charAt(1))){for(var b=2;Xa!=e.charAt(b)&&(J2!=e.charAt(b)||Z2!=e.charAt(b+1));)++b;if(b+=2,Xa===e.charAt(b-1))return o("End of comment missing");var E=e.slice(2,b-2);return i+=2,r(E),e=e.slice(b),i+=2,g({type:Mz,comment:E})}}function f(){var g=a(),b=l(Cz);if(b){if(d(),!l(kz))return o("property missing ':'");var E=l(Oz),m=g({type:Lz,property:ew(b[0].replace(W2,Xa)),value:E?ew(E[0].replace(W2,Xa)):Xa});return l(Nz),m}}function h(){var g=[];c(g);for(var b;b=f();)b!==!1&&(g.push(b),c(g));return g}return u(),h()};function ew(e){return e?e.replace(Rz,Xa):Xa}var Pz=zr&&zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(l0,"__esModule",{value:!0}),l0.default=jz;var Bz=Pz(Iz);function jz(e,t){var n=null;if(!e||typeof e!="string")return n;var i=(0,Bz.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 Dd={};Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.camelCase=void 0;var zz=/^--[a-zA-Z0-9_-]+$/,Uz=/-([a-z])/g,Hz=/^[^-]+$/,Fz=/^-(webkit|moz|ms|o|khtml)-/,Vz=/^-(ms)-/,Yz=function(e){return!e||Hz.test(e)||zz.test(e)},qz=function(e,t){return t.toUpperCase()},tw=function(e,t){return"".concat(t,"-")},Gz=function(e,t){return t===void 0&&(t={}),Yz(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Vz,tw):e=e.replace(Fz,tw),e.replace(Uz,qz))};Dd.camelCase=Gz;var $z=zr&&zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Xz=$z(l0),Kz=Dd;function u0(e,t){var n={};return!e||typeof e!="string"||(0,Xz.default)(e,function(i,r){i&&r&&(n[(0,Kz.camelCase)(i,t)]=r)}),n}u0.default=u0;var Qz=u0;const Wz=hl(Qz),Md=nw("end"),Gi=nw("start");function nw(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 Zz(e){const t=Gi(e),n=Md(e);if(t&&n)return{start:t,end:n}}function Kl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?iw(e.position):"start"in e||"end"in e?iw(e):"line"in e||"column"in e?c0(e):""}function c0(e){return rw(e&&e.line)+":"+rw(e&&e.column)}function iw(e){return c0(e&&e.start)+"-"+c0(e&&e.end)}function rw(e){return e&&typeof e=="number"?e:1}class on 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=Kl(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}}on.prototype.file="",on.prototype.name="",on.prototype.reason="",on.prototype.message="",on.prototype.stack="",on.prototype.column=void 0,on.prototype.line=void 0,on.prototype.ancestors=void 0,on.prototype.cause=void 0,on.prototype.fatal=void 0,on.prototype.place=void 0,on.prototype.ruleId=void 0,on.prototype.source=void 0;const d0={}.hasOwnProperty,Jz=new Map,eU=/[A-Z]/g,tU=new Set(["table","tbody","thead","tfoot","tr"]),nU=new Set(["td","th"]),aw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iU(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=dU(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=cU(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"?io:Rd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=sw(r,e,void 0);return a&&typeof a!="string"?a:r.create(e,r.Fragment,{children:a||void 0},void 0)}function sw(e,t,n){if(t.type==="element")return rU(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return aU(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return oU(e,t,n);if(t.type==="mdxjsEsm")return sU(e,t);if(t.type==="root")return lU(e,t,n);if(t.type==="text")return uU(e,t)}function rU(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=io,e.schema=r),e.ancestors.push(t);const a=lw(e,t.tagName,!1),s=fU(e,t);let o=h0(e,t);return tU.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!gz(l):!0})),ow(e,s,a,t),f0(s,o),e.ancestors.pop(),e.schema=i,e.create(t,a,s,n)}function aU(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)}Ql(e,t.position)}function sU(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ql(e,t.position)}function oU(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=io,e.schema=r),e.ancestors.push(t);const a=t.name===null?e.Fragment:lw(e,t.name,!0),s=hU(e,t),o=h0(e,t);return ow(e,s,a,t),f0(s,o),e.ancestors.pop(),e.schema=i,e.create(t,a,s,n)}function lU(e,t,n){const i={};return f0(i,h0(e,t)),e.create(t,e.Fragment,i,n)}function uU(e,t){return t.value}function ow(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function f0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function cU(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 dU(e,t){return n;function n(i,r,a,s){const o=Array.isArray(a.children),l=Gi(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 fU(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&d0.call(t.properties,r)){const a=pU(e,r,t.properties[r]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&nU.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 hU(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 Ql(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 Ql(e,t.position);else a=i.value===null?!0:i.value;n[r]=a}return n}function h0(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:Jz;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=sw(e,a,s);o!==void 0&&n.push(o)}return n}function pU(e,t,n){const i=o0(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?B2(n):Q2(n)),i.property==="style"){let r=typeof n=="object"?n:mU(e,String(n));return e.stylePropertyNameCase==="css"&&(r=gU(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?xz[i.property]||i.property:i.attribute,n]}}function mU(e,t){try{return Wz(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,r=new on("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=aw+"#cannot-parse-style-attribute",r}}function lw(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=j2(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=j2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return d0.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ql(e)}function Ql(e,t){const n=new on("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=aw+"#cannot-handle-mdx-estrees-without-createevaluater",n}function gU(e){const t={};let n;for(n in e)d0.call(e,n)&&(t[bU(n)]=e[n]);return t}function bU(e){let t=e.replace(eU,vU);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function vU(e){return"-"+e.toLowerCase()}const p0={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"]},yU={tokenize:xU};function xU(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 _U={tokenize:EU},uw={tokenize:TU};function EU(e){const t=this,n=[];let i=0,r,a,s;return o;function o(x){if(i<n.length){const T=n[i];return t.containerState=T[1],e.attempt(T[0].continuation,l,u)(x)}return u(x)}function l(x){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const T=t.events.length;let S=T,A;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){A=t.events[S][1].end;break}m(i);let D=T;for(;D<t.events.length;)t.events[D][1].end={...A},D++;return zn(t.events,S+1,0,t.events.slice(T)),t.events.length=D,u(x)}return o(x)}function u(x){if(i===n.length){if(!r)return f(x);if(r.currentConstruct&&r.currentConstruct.concrete)return g(x);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(uw,c,d)(x)}function c(x){return r&&v(),m(i),f(x)}function d(x){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,g(x)}function f(x){return t.containerState={},e.attempt(uw,h,g)(x)}function h(x){return i++,n.push([t.currentConstruct,t.containerState]),f(x)}function g(x){if(x===null){r&&v(),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){E(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return fe(x)?(e.consume(x),E(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(x),b)}function E(x,T){const S=t.sliceStream(x);if(T&&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 A=r.events.length;for(;A--;)if(r.events[A][1].start.offset<s&&(!r.events[A][1].end||r.events[A][1].end.offset>s))return;const D=t.events.length;let L=D,B,O;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(B){O=t.events[L][1].end;break}B=!0}for(m(i),A=D;A<t.events.length;)t.events[A][1].end={...O},A++;zn(t.events,L+1,0,t.events.slice(D)),t.events.length=A}}function m(x){let T=n.length;for(;T-- >x;){const S=n[T];t.containerState=S[1],S[0].exit.call(t,e)}n.length=x}function v(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}function TU(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 wU={tokenize:SU};function SU(e){const t=this,n=e.attempt(Yl,i,e.attempt(this.parser.constructs.flowInitial,r,Me(e,e.attempt(this.parser.constructs.flow,r,e.attempt(QB,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 AU={resolveAll:dw()},CU=cw("string"),kU=cw("text");function cw(e){return{resolveAll:dw(e==="text"?OU: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 d=r[c];let f=-1;if(d)for(;++f<d.length;){const h=d[f];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}function dw(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 OU(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 NU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:tj},disable:{null:[]},document:{42:Tn,43:Tn,45:Tn,48:Tn,49:Tn,50:Tn,51:Tn,52:Tn,53:Tn,54:Tn,55:Tn,56:Tn,57:Tn,62:T2},flow:{35:oj,42:Od,45:[M2,Od],60:dj,61:M2,95:Od,96:C2,126:C2},flowInitial:{[-2]:e0,[-1]:e0,32:e0},insideSpan:{null:[Jm,AU]},string:{38:S2,92:w2},text:{[-5]:n0,[-4]:n0,[-3]:n0,33:Oj,38:S2,42:Jm,60:[RB,vj],91:Rj,92:[aj,w2],93:t0,95:Jm,96:YB}},Symbol.toStringTag,{value:"Module"}));function RU(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(A),consume:v,enter:x,exit:T,interrupt:D(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:h,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function d(Y){return s=si(s,Y),E(),s[s.length-1]!==null?[]:(L(t,0),u.events=kd(a,u.events,u),u.events)}function f(Y,U){return MU(h(Y),U)}function h(Y){return DU(s,Y)}function g(){const{_bufferIndex:Y,_index:U,line:re,column:ee,offset:Q}=i;return{_bufferIndex:Y,_index:U,line:re,column:ee,offset:Q}}function b(Y){r[Y.line]=Y.column,O()}function E(){let Y;for(;i._index<s.length;){const U=s[i._index];if(typeof U=="string")for(Y=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Y&&i._bufferIndex<U.length;)m(U.charCodeAt(i._bufferIndex));else m(U)}}function m(Y){c=c(Y)}function v(Y){fe(Y)?(i.line++,i.column=1,i.offset+=Y===-3?2:1,O()):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,U){const re=U||{};return re.type=Y,re.start=g(),u.events.push(["enter",re,u]),o.push(re),re}function T(Y){const U=o.pop();return U.end=g(),u.events.push(["exit",U,u]),U}function S(Y,U){L(Y,U.from)}function A(Y,U){U.restore()}function D(Y,U){return re;function re(ee,Q,F){let V,H,te,N;return Array.isArray(ee)?tt(ee):"tokenize"in ee?tt([ee]):be(ee);function be(je){return dn;function dn(We){const $t=We!==null&&je[We],Mt=We!==null&&je.null,Ut=[...Array.isArray($t)?$t:$t?[$t]:[],...Array.isArray(Mt)?Mt:Mt?[Mt]:[]];return tt(Ut)(We)}}function tt(je){return V=je,H=0,je.length===0?F:M(je[H])}function M(je){return dn;function dn(We){return N=B(),te=je,je.partial||(u.currentConstruct=je),je.name&&u.parser.constructs.disable.null.includes(je.name)?ge():je.tokenize.call(U?Object.assign(Object.create(u),U):u,l,Be,ge)(We)}}function Be(je){return Y(te,N),Q}function ge(je){return N.restore(),++H<V.length?M(V[H]):F}}}function L(Y,U){Y.resolveAll&&!a.includes(Y)&&a.push(Y),Y.resolve&&zn(u.events,U,u.events.length-U,Y.resolve(u.events.slice(U),u)),Y.resolveTo&&(u.events=Y.resolveTo(u.events,u))}function B(){const Y=g(),U=u.previous,re=u.currentConstruct,ee=u.events.length,Q=Array.from(o);return{from:ee,restore:F};function F(){i=Y,u.previous=U,u.currentConstruct=re,u.events.length=ee,o=Q,O()}}function O(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function DU(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 MU(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=`
275
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:l,tableRow:o}};function s(h,g,b,_){return u(c(h,b,_),h.align)}function o(h,g,b,_){const m=d(h,b,_),v=u([m]);return v.slice(0,v.indexOf(`
276
+ `))}function l(h,g,b,_){const m=b.enter("tableCell"),v=b.enter("phrasing"),x=b.containerPhrasing(h,{..._,before:a,after:a});return v(),m(),x}function u(h,g){return v7(h,{align:g,alignDelimiters:i,padding:n,stringLength:r})}function c(h,g,b){const _=h.children;let m=-1;const v=[],x=g.enter("table");for(;++m<_.length;)v[m]=d(_[m],g,b);return x(),v}function d(h,g,b){const _=h.children;let m=-1;const v=[],x=g.enter("tableRow");for(;++m<_.length;)v[m]=l(_[m],h,g,b);return x(),v}function f(h,g,b){let _=o2.inlineCode(h,g,b);return b.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function cB(){return{exit:{taskListCheckValueChecked:d2,taskListCheckValueUnchecked:d2,paragraph:fB}}}function dB(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:hB}}}function d2(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function fB(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 hB(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=o2.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 pB(){return[H9(),l7(),f7(),iB(),cB()]}function mB(e){return{extensions:[F9(),u7(e),h7(),uB(e),dB()]}}function zn(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 si(e,t){return e.length>0?(zn(e,e.length,0,t),e):t}const f2={}.hasOwnProperty;function h2(e){const t={};let n=-1;for(;++n<e.length;)gB(t,e[n]);return t}function gB(e,t){let n;for(n in t){const r=(f2.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){f2.call(r,s)||(r[s]=[]);const o=a[s];bB(r[s],Array.isArray(o)?o:o?[o]:[])}}}function bB(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);zn(e,0,0,i)}const vB={tokenize:wB,partial:!0},p2={tokenize:SB,partial:!0},m2={tokenize:AB,partial:!0},g2={tokenize:CB,partial:!0},yB={tokenize:kB,partial:!0},b2={name:"wwwAutolink",tokenize:EB,previous:y2},v2={name:"protocolAutolink",tokenize:TB,previous:x2},pr={name:"emailAutolink",tokenize:_B,previous:_2},qi={};function xB(){return{text:qi}}let Ga=48;for(;Ga<123;)qi[Ga]=pr,Ga++,Ga===58?Ga=65:Ga===91&&(Ga=97);qi[43]=pr,qi[45]=pr,qi[46]=pr,qi[95]=pr,qi[72]=[pr,v2],qi[104]=[pr,v2],qi[87]=[pr,b2],qi[119]=[pr,b2];function _B(e,t,n){const i=this;let r,a;return s;function s(d){return!Wm(d)||!_2.call(i,i.previous)||Zm(i.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return Wm(d)?(e.consume(d),o):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(yB,c,u)(d):d===45||d===95||sn(d)?(a=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),r=!0,l}function c(d){return a&&r&&bn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function EB(e,t,n){const i=this;return r;function r(s){return s!==87&&s!==119||!y2.call(i,i.previous)||Zm(i.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(vB,e.attempt(p2,e.attempt(m2,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function TB(e,t,n){const i=this;let r="",a=!1;return s;function s(d){return(d===72||d===104)&&x2.call(i,i.previous)&&!Zm(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(bn(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const f=r.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),a?u:(a=!0,l)):n(d)}function u(d){return d===null||Ed(d)||Xe(d)||qa(d)||Td(d)?n(d):e.attempt(p2,e.attempt(m2,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function wB(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 SB(e,t,n){let i,r,a;return s;function s(u){return u===46||u===95?e.check(g2,l,o)(u):u===null||Xe(u)||qa(u)||u!==45&&Td(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 AB(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(g2,t,a)(s):s===null||Xe(s)||qa(s)?t(s):(e.consume(s),r)}function a(s){return s===41&&i++,e.consume(s),r}}function CB(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)||qa(o)?t(o):n(o)}function r(o){return o===null||o===40||o===91||Xe(o)||qa(o)?t(o):i(o)}function a(o){return bn(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),i):bn(o)?(e.consume(o),s):n(o)}}function kB(e,t,n){return i;function i(a){return e.consume(a),r}function r(a){return sn(a)?n(a):t(a)}}function y2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Xe(e)}function x2(e){return!bn(e)}function _2(e){return!(e===47||Wm(e))}function Wm(e){return e===43||e===45||e===46||e===95||sn(e)}function Zm(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 Js(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&sn(e.charCodeAt(n+1))&&sn(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 kd(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 Jm={name:"attention",resolveAll:OB,tokenize:NB};function OB(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 d={...e[i][1].end},f={...e[n][1].start};E2(d,-l),E2(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},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=si(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=si(u,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=si(u,kd(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=si(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=si(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,zn(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 NB(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Zs(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=Zs(l),d=!c||c===2&&r||n.includes(l),f=!r||r===2&&c||n.includes(i);return u._open=!!(a===42?d:d&&(r||!f)),u._close=!!(a===42?f:f&&(c||!d)),t(l)}}function E2(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const RB={name:"autolink",tokenize:DB};function DB(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 bn(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||sn(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||sn(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||Ed(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):S9(h)?(e.consume(h),u):n(h)}function c(h){return sn(h)?d(h):n(h)}function d(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):f(h)}function f(h){if((h===45||sn(h))&&i++<63){const g=h===45?f:d;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 Yl={partial:!0,tokenize:MB};function MB(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 T2={continuation:{tokenize:IB},exit:PB,name:"blockQuote",tokenize:LB};function LB(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 IB(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(T2,t,n)(s)}}function PB(e){e.exit("blockQuote")}const w2={name:"characterEscape",tokenize:BB};function BB(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 C9(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const S2={name:"characterReference",tokenize:jB};function jB(e,t,n){const i=this;let r=0,a,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,s=sn,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=A9,c):(e.enter("characterReferenceValue"),a=7,s=Hm,c(d))}function c(d){if(d===59&&r){const f=e.exit("characterReferenceValue");return s===sn&&!Km(i.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&r++<a?(e.consume(d),c):n(d)}}const A2={partial:!0,tokenize:UB},C2={concrete:!0,name:"codeFenced",tokenize:zB};function zB(e,t,n){const i=this,r={partial:!0,tokenize:S};let a=0,s=0,o;return l;function l(A){return u(A)}function u(A){const D=i.events[i.events.length-1];return a=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===o?(s++,e.consume(A),c):s<3?n(A):(e.exit("codeFencedFenceSequence"),Ne(A)?Me(e,d,"whitespace")(A):d(A))}function d(A){return A===null||fe(A)?(e.exit("codeFencedFence"),i.interrupt?t(A):e.check(A2,b,T)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||fe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):Ne(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Me(e,h,"whitespace")(A)):A===96&&A===o?n(A):(e.consume(A),f)}function h(A){return A===null||fe(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||fe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===o?n(A):(e.consume(A),g)}function b(A){return e.attempt(r,T,_)(A)}function _(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),m}function m(A){return a>0&&Ne(A)?Me(e,v,"linePrefix",a+1)(A):v(A)}function v(A){return A===null||fe(A)?e.check(A2,b,T)(A):(e.enter("codeFlowValue"),x(A))}function x(A){return A===null||fe(A)?(e.exit("codeFlowValue"),v(A)):(e.consume(A),x)}function T(A){return e.exit("codeFenced"),t(A)}function S(A,D,L){let B=0;return O;function O(Q){return A.enter("lineEnding"),A.consume(Q),A.exit("lineEnding"),Y}function Y(Q){return A.enter("codeFencedFence"),Ne(Q)?Me(A,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):U(Q)}function U(Q){return Q===o?(A.enter("codeFencedFenceSequence"),re(Q)):L(Q)}function re(Q){return Q===o?(B++,A.consume(Q),re):B>=s?(A.exit("codeFencedFenceSequence"),Ne(Q)?Me(A,ee,"whitespace")(Q):ee(Q)):L(Q)}function ee(Q){return Q===null||fe(Q)?(A.exit("codeFencedFence"),D(Q)):L(Q)}}}function UB(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 e0={name:"codeIndented",tokenize:FB},HB={partial:!0,tokenize:VB};function FB(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(HB,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 VB(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 YB={name:"codeText",previous:GB,resolve:qB,tokenize:$B};function qB(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 GB(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $B(e,t,n){let i=0,r,a;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),i++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(a=e.enter("codeTextSequence"),r=0,c(d)):fe(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||fe(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(a.type="codeTextData",u(d))}}class XB{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&&ql(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),ql(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ql(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);ql(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ql(this.left,n.reverse())}}}function ql(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 k2(e){const t={};let n=-1,i,r,a,s,o,l,u;const c=new XB(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,KB(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 zn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function KB(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,d,f=-1,h=n,g=0,b=0;const _=[b];for(;h;){for(;e.get(++r)[1]!==h;);a.push(r),h._tokenizer||(c=i.sliceStream(h),h.next||c.push(null),d&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(b=f+1,_.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):_.pop(),f=_.length;f--;){const m=o.slice(_[f],_[f+1]),v=a.pop();l.push([v,v+m.length-1]),e.splice(v,2,m)}for(l.reverse(),f=-1;++f<l.length;)u[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return u}const QB={resolve:ZB,tokenize:JB},WB={partial:!0,tokenize:ej};function ZB(e){return k2(e),e}function JB(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(WB,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 ej(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 O2(e,t,n,i,r,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(m){return m===60?(e.enter(i),e.enter(r),e.enter(a),e.consume(m),e.exit(a),f):m===null||m===32||m===41||Ed(m)?n(m):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(m))}function f(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),f(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||Ed(m)?n(m):(e.consume(m),m===92?_:b)}function _(m){return m===40||m===41||m===92?(e.consume(m),b):b(m)}}function N2(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"}),d(h))}function d(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?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),o++,d):d(h)}}function R2(e,t,n,i,r,a){let s;return o;function o(f){return f===34||f===39||f===40?(e.enter(i),e.enter(r),e.consume(f),e.exit(r),s=f===40?41:f,l):n(f)}function l(f){return f===s?(e.enter(r),e.consume(f),e.exit(r),e.exit(i),t):(e.enter(a),u(f))}function u(f){return f===s?(e.exit(a),l(s)):f===null?n(f):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Me(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||fe(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===s||f===92?(e.consume(f),c):c(f)}}function Gl(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 tj={name:"definition",tokenize:ij},nj={partial:!0,tokenize:rj};function ij(e,t,n){const i=this;let r;return a;function a(h){return e.enter("definition"),s(h)}function s(h){return N2.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return r=Ci(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)?Gl(e,u)(h):u(h)}function u(h){return O2(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(nj,d,d)(h)}function d(h){return Ne(h)?Me(e,f,"whitespace")(h):f(h)}function f(h){return h===null||fe(h)?(e.exit("definition"),i.parser.defined.push(r),t(h)):n(h)}}function rj(e,t,n){return i;function i(o){return Xe(o)?Gl(e,r)(o):n(o)}function r(o){return R2(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 aj={name:"hardBreakEscape",tokenize:sj};function sj(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 oj={name:"headingAtx",resolve:lj,tokenize:uj};function lj(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"},zn(e,i,n-i+1,[["enter",r,t],["enter",a,t],["exit",a,t],["exit",r,t]])),e}function uj(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 cj=["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"],D2=["pre","script","style","textarea"],dj={concrete:!0,name:"htmlFlow",resolveTo:pj,tokenize:mj},fj={partial:!0,tokenize:bj},hj={partial:!0,tokenize:gj};function pj(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 mj(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),d}function d(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),a=!0,b):M===63?(e.consume(M),r=3,i.interrupt?t:N):bn(M)?(e.consume(M),s=String.fromCharCode(M),_):n(M)}function f(M){return M===45?(e.consume(M),r=2,h):M===91?(e.consume(M),r=5,o=0,g):bn(M)?(e.consume(M),r=4,i.interrupt?t:N):n(M)}function h(M){return M===45?(e.consume(M),i.interrupt?t:N):n(M)}function g(M){const Be="CDATA[";return M===Be.charCodeAt(o++)?(e.consume(M),o===Be.length?i.interrupt?t:U:g):n(M)}function b(M){return bn(M)?(e.consume(M),s=String.fromCharCode(M),_):n(M)}function _(M){if(M===null||M===47||M===62||Xe(M)){const Be=M===47,ge=s.toLowerCase();return!Be&&!a&&D2.includes(ge)?(r=1,i.interrupt?t(M):U(M)):cj.includes(s.toLowerCase())?(r=6,Be?(e.consume(M),m):i.interrupt?t(M):U(M)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(M):a?v(M):x(M))}return M===45||sn(M)?(e.consume(M),s+=String.fromCharCode(M),_):n(M)}function m(M){return M===62?(e.consume(M),i.interrupt?t:U):n(M)}function v(M){return Ne(M)?(e.consume(M),v):O(M)}function x(M){return M===47?(e.consume(M),O):M===58||M===95||bn(M)?(e.consume(M),T):Ne(M)?(e.consume(M),x):O(M)}function T(M){return M===45||M===46||M===58||M===95||sn(M)?(e.consume(M),T):S(M)}function S(M){return M===61?(e.consume(M),A):Ne(M)?(e.consume(M),S):x(M)}function A(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),A):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 O(M){return M===62?(e.consume(M),Y):n(M)}function Y(M){return M===null||fe(M)?U(M):Ne(M)?(e.consume(M),Y):n(M)}function U(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),be):M===63&&r===3?(e.consume(M),N):M===93&&r===5?(e.consume(M),te):fe(M)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(fj,tt,re)(M)):M===null||fe(M)?(e.exit("htmlFlowData"),re(M)):(e.consume(M),U)}function re(M){return e.check(hj,ee,tt)(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"),U(M))}function F(M){return M===45?(e.consume(M),N):U(M)}function V(M){return M===47?(e.consume(M),s="",H):U(M)}function H(M){if(M===62){const Be=s.toLowerCase();return D2.includes(Be)?(e.consume(M),be):U(M)}return bn(M)&&s.length<8?(e.consume(M),s+=String.fromCharCode(M),H):U(M)}function te(M){return M===93?(e.consume(M),N):U(M)}function N(M){return M===62?(e.consume(M),be):M===45&&r===2?(e.consume(M),N):U(M)}function be(M){return M===null||fe(M)?(e.exit("htmlFlowData"),tt(M)):(e.consume(M),be)}function tt(M){return e.exit("htmlFlow"),t(M)}}function gj(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 bj(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Yl,t,n)}}const vj={name:"htmlText",tokenize:yj};function yj(e,t,n){const i=this;let r,a,s;return o;function o(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),u):N===47?(e.consume(N),S):N===63?(e.consume(N),x):bn(N)?(e.consume(N),L):n(N)}function u(N){return N===45?(e.consume(N),c):N===91?(e.consume(N),a=0,g):bn(N)?(e.consume(N),v):n(N)}function c(N){return N===45?(e.consume(N),h):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),f):fe(N)?(s=d,V(N)):(e.consume(N),d)}function f(N){return N===45?(e.consume(N),h):d(N)}function h(N){return N===62?F(N):N===45?f(N):d(N)}function g(N){const be="CDATA[";return N===be.charCodeAt(a++)?(e.consume(N),a===be.length?b:g):n(N)}function b(N){return N===null?n(N):N===93?(e.consume(N),_):fe(N)?(s=b,V(N)):(e.consume(N),b)}function _(N){return N===93?(e.consume(N),m):b(N)}function m(N){return N===62?F(N):N===93?(e.consume(N),m):b(N)}function v(N){return N===null||N===62?F(N):fe(N)?(s=v,V(N)):(e.consume(N),v)}function x(N){return N===null?n(N):N===63?(e.consume(N),T):fe(N)?(s=x,V(N)):(e.consume(N),x)}function T(N){return N===62?F(N):x(N)}function S(N){return bn(N)?(e.consume(N),A):n(N)}function A(N){return N===45||sn(N)?(e.consume(N),A):D(N)}function D(N){return fe(N)?(s=D,V(N)):Ne(N)?(e.consume(N),D):F(N)}function L(N){return N===45||sn(N)?(e.consume(N),L):N===47||N===62||Xe(N)?B(N):n(N)}function B(N){return N===47?(e.consume(N),F):N===58||N===95||bn(N)?(e.consume(N),O):fe(N)?(s=B,V(N)):Ne(N)?(e.consume(N),B):F(N)}function O(N){return N===45||N===46||N===58||N===95||sn(N)?(e.consume(N),O):Y(N)}function Y(N){return N===61?(e.consume(N),U):fe(N)?(s=Y,V(N)):Ne(N)?(e.consume(N),Y):B(N)}function U(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),r=N,re):fe(N)?(s=U,V(N)):Ne(N)?(e.consume(N),U):(e.consume(N),ee)}function re(N){return N===r?(e.consume(N),r=void 0,Q):N===null?n(N):fe(N)?(s=re,V(N)):(e.consume(N),re)}function ee(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Xe(N)?B(N):(e.consume(N),ee)}function Q(N){return N===47||N===62||Xe(N)?B(N):n(N)}function F(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function V(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),H}function H(N){return Ne(N)?Me(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):te(N)}function te(N){return e.enter("htmlTextData"),s(N)}}const t0={name:"labelEnd",resolveAll:Tj,resolveTo:wj,tokenize:Sj},xj={tokenize:Aj},_j={tokenize:Cj},Ej={tokenize:kj};function Tj(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&&zn(e,0,e.length,n),e}function wj(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=si(o,e.slice(a+1,a+i+3)),o=si(o,[["enter",c,t]]),o=si(o,kd(t.parser.constructs.insideSpan.null,e.slice(a+i+4,s-3),t)),o=si(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=si(o,e.slice(s+1)),o=si(o,[["exit",l,t]]),zn(e,a,e.length,o),e}function Sj(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(f){return a?a._inactive?d(f):(s=i.parser.defined.includes(Ci(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(xj,c,s?c:d)(f):f===91?e.attempt(_j,c,s?u:d)(f):s?c(f):d(f)}function u(f){return e.attempt(Ej,c,d)(f)}function c(f){return t(f)}function d(f){return a._balanced=!0,n(f)}}function Aj(e,t,n){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return Xe(d)?Gl(e,a)(d):a(d)}function a(d){return d===41?c(d):O2(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Xe(d)?Gl(e,l)(d):c(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?R2(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Xe(d)?Gl(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Cj(e,t,n){const i=this;return r;function r(o){return N2.call(i,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return i.parser.defined.includes(Ci(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function kj(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 Oj={name:"labelStartImage",resolveAll:t0.resolveAll,tokenize:Nj};function Nj(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 Rj={name:"labelStartLink",resolveAll:t0.resolveAll,tokenize:Dj};function Dj(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 n0={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 Od={name:"thematicBreak",tokenize:Lj};function Lj(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 Tn={continuation:{tokenize:jj},exit:Uj,name:"list",tokenize:Bj},Ij={partial:!0,tokenize:Hj},Pj={partial:!0,tokenize:zj};function Bj(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:Hm(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(Od,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 Hm(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(Yl,i.interrupt?n:c,e.attempt(Ij,f,d))}function c(h){return i.containerState.initialBlankLine=!0,a++,f(h)}function d(h){return Ne(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function jj(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Yl,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(Pj,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Me(e,e.attempt(Tn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function zj(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 Uj(e){e.exit(this.containerState.type)}function Hj(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 M2={name:"setextUnderline",resolveTo:Fj,tokenize:Vj};function Fj(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 Vj(e,t,n){const i=this;let r;return a;function a(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(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 Yj={tokenize:Zj,partial:!0};function qj(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Kj,continuation:{tokenize:Qj},exit:Wj}},text:{91:{name:"gfmFootnoteCall",tokenize:Xj},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Gj,resolveTo:$j}}}}function Gj(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=Ci(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 $j(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 Xj(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(a>999||d===93&&!s||d===null||d===91||Xe(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return r.includes(Ci(i.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Xe(d)||(s=!0),a++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,u):u(d)}}function Kj(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=Ci(i.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Xe(g)||(o=!0),s++,e.consume(g),g===92?d:c}function d(g){return g===91||g===92||g===93?(e.consume(g),s++,c):c(g)}function f(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 Qj(e,t,n){return e.check(Yl,t,e.attempt(Yj,t,n))}function Wj(e){e.exit("gfmFootnoteDefinition")}function Zj(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 Jj(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)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",d,o]],h=o.parser.constructs.insideSpan.null;h&&zn(f,f.length,0,kd(h,s.slice(u+1,l),o)),zn(f,f.length,0,[["exit",d,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),zn(s,u-1,l-u+3,f),l=u+f.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 d=0;return f;function f(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const b=Zs(u);if(g===126)return d>1?l(g):(s.consume(g),d++,h);if(d<2&&!n)return l(g);const _=s.exit("strikethroughSequenceTemporary"),m=Zs(g);return _._open=!m||m===2&&!!b,_._close=!b||b===2&&!!m,o(g)}}}class ez{constructor(){this.map=[]}add(t,n,i){tz(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 tz(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 nz(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 iz(){return{flow:{null:{name:"table",tokenize:rz,resolveAll:az}}}}function rz(e,t,n){const i=this;let r=0,a=0,s;return o;function o(O){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 U=Y>-1?i.events[Y][1].type:null,re=U==="tableHead"||U==="tableRow"?A:l;return re===A&&i.parser.lazy[i.now().line]?n(O):re(O)}function l(O){return e.enter("tableHead"),e.enter("tableRow"),u(O)}function u(O){return O===124||(s=!0,a+=1),c(O)}function c(O){return O===null?n(O):fe(O)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),h):n(O):Ne(O)?Me(e,c,"whitespace")(O):(a+=1,s&&(s=!1,r+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(O)))}function d(O){return O===null||O===124||Xe(O)?(e.exit("data"),c(O)):(e.consume(O),O===92?f:d)}function f(O){return O===92||O===124?(e.consume(O),d):d(O)}function h(O){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(O):(e.enter("tableDelimiterRow"),s=!1,Ne(O)?Me(e,g,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):g(O))}function g(O){return O===45||O===58?_(O):O===124?(s=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),b):S(O)}function b(O){return Ne(O)?Me(e,_,"whitespace")(O):_(O)}function _(O){return O===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),m):O===45?(a+=1,m(O)):O===null||fe(O)?T(O):S(O)}function m(O){return O===45?(e.enter("tableDelimiterFiller"),v(O)):S(O)}function v(O){return O===45?(e.consume(O),v):O===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(O))}function x(O){return Ne(O)?Me(e,T,"whitespace")(O):T(O)}function T(O){return O===124?g(O):O===null||fe(O)?!s||r!==a?S(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):S(O)}function S(O){return n(O)}function A(O){return e.enter("tableRow"),D(O)}function D(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),D):O===null||fe(O)?(e.exit("tableRow"),t(O)):Ne(O)?Me(e,D,"whitespace")(O):(e.enter("data"),L(O))}function L(O){return O===null||O===124||Xe(O)?(e.exit("data"),D(O)):(e.consume(O),O===92?B:L)}function B(O){return O===92||O===124?(e.consume(O),L):L(O)}}function az(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,d;const f=new ez;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(L2(f,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(i=!0,d=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)},f.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],d=Nd(f,t,a,r,void 0,d),a=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(s[0]=s[1],d=Nd(f,t,a,r,void 0,d)),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],d=Nd(f,t,a,r,n,d)):s[1]!==0&&(d=Nd(f,t,s,r,n,d)),r=0):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&L2(f,t,l,u,c),f.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=nz(t.events,n))}return e}function Nd(e,t,n,i,r,a){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},eo(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=eo(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=eo(t.events,n[2]),c=eo(t.events,n[3]),d={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),i!==2){const f=t.events[n[2]],h=t.events[n[3]];if(f[1].end=Object.assign({},h[1].end),f[1].type="chunkText",f[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",d,t]])}return r!==void 0&&(a.end=Object.assign({},eo(t.events,r)),e.add(r,0,[["exit",a,t]]),a=void 0),a}function L2(e,t,n,i,r){const a=[],s=eo(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 eo(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const sz={name:"tasklistCheck",tokenize:lz};function oz(){return{text:{91:sz}}}function lz(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:uz},t,n)(l):n(l)}}function uz(e,t,n){return Me(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function cz(e){return h2([xB(),qj(),Jj(e),iz(),oz()])}const dz={};function I2(e){const t=this,n=e||dz,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(cz(n)),a.push(pB()),s.push(mB(n))}function P2(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 B2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const fz=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hz=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pz={};function j2(e,t){return(pz.jsx?hz:fz).test(e)}const mz=/[ \t\n\f\r]/g;function gz(e){return typeof e=="object"?e.type==="text"?z2(e.value):!1:z2(e)}function z2(e){return e.replace(mz,"")===""}let $l=class{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}};$l.prototype.normal={},$l.prototype.property={},$l.prototype.space=void 0;function U2(e,t){const n={},i={};for(const r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new $l(n,i,t)}function Xl(e){return e.toLowerCase()}let wn=class{constructor(t,n){this.attribute=n,this.property=t}};wn.prototype.attribute="",wn.prototype.booleanish=!1,wn.prototype.boolean=!1,wn.prototype.commaOrSpaceSeparated=!1,wn.prototype.commaSeparated=!1,wn.prototype.defined=!1,wn.prototype.mustUseProperty=!1,wn.prototype.number=!1,wn.prototype.overloadedBoolean=!1,wn.prototype.property="",wn.prototype.spaceSeparated=!1,wn.prototype.space=void 0;let bz=0;const we=$a(),kt=$a(),i0=$a(),W=$a(),Ze=$a(),to=$a(),Un=$a();function $a(){return 2**++bz}const r0=Object.freeze(Object.defineProperty({__proto__:null,boolean:we,booleanish:kt,commaOrSpaceSeparated:Un,commaSeparated:to,number:W,overloadedBoolean:i0,spaceSeparated:Ze},Symbol.toStringTag,{value:"Module"})),a0=Object.keys(r0);let s0=class extends wn{constructor(t,n,i,r){let a=-1;if(super(t,n),H2(this,"space",r),typeof i=="number")for(;++a<a0.length;){const s=a0[a];H2(this,a0[a],(i&r0[s])===r0[s])}}};s0.prototype.defined=!0;function H2(e,t,n){n&&(e[t]=n)}function no(e){const t={},n={};for(const[i,r]of Object.entries(e.properties)){const a=new s0(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,n[Xl(i)]=i,n[Xl(a.attribute)]=i}return new $l(t,n,e.space)}const F2=no({properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Ze,ariaCurrent:null,ariaDescribedBy:Ze,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:Ze,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:Ze,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ze,ariaLevel:W,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:Ze,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:Ze,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:kt,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 V2(e,t){return t in e?e[t]:t}function Y2(e,t){return V2(e,t.toLowerCase())}const vz=no({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:to,acceptCharset:Ze,accessKey:Ze,action:null,allow:null,allowFullScreen:we,allowPaymentRequest:we,allowUserMedia:we,alt:null,as:null,async:we,autoCapitalize:null,autoComplete:Ze,autoFocus:we,autoPlay:we,blocking:Ze,capture:null,charSet:null,checked:we,cite:null,className:Ze,cols:W,colSpan:null,content:null,contentEditable:kt,controls:we,controlsList:Ze,coords:W|to,crossOrigin:null,data:null,dateTime:null,decoding:null,default:we,defer:we,dir:null,dirName:null,disabled:we,download:i0,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:we,formTarget:null,headers:Ze,height:W,hidden:i0,high:W,href:null,hrefLang:null,htmlFor:Ze,httpEquiv:Ze,id:null,imageSizes:null,imageSrcSet:null,inert:we,inputMode:null,integrity:null,is:null,isMap:we,itemId:null,itemProp:Ze,itemRef:Ze,itemScope:we,itemType:Ze,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:Ze,placeholder:null,playsInline:we,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:we,referrerPolicy:null,rel:Ze,required:we,reversed:we,rows:W,rowSpan:W,sandbox:Ze,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:kt,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:kt,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ze,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:kt,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:Y2}),yz=no({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:Un,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: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: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:to,g2:to,glyphName:to,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:Un,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:Ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Un,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Un,rev:Un,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Un,requiredFeatures:Un,requiredFonts:Un,requiredFormats:Un,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:Un,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:Un,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:Un,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:V2}),q2=no({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()}}),G2=no({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Y2}),$2=no({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),xz={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"},_z=/[A-Z]/g,X2=/-[a-z]/g,Ez=/^data[-\w.:]+$/i;function o0(e,t){const n=Xl(t);let i=t,r=wn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ez.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(X2,wz);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!X2.test(a)){let s=a.replace(_z,Tz);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}r=s0}return new r(i,t)}function Tz(e){return"-"+e.toLowerCase()}function wz(e){return e.charAt(1).toUpperCase()}const Rd=U2([F2,vz,q2,G2,$2],"html"),io=U2([F2,yz,q2,G2,$2],"svg");function K2(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Q2(e){return e.join(" ").trim()}var l0={},W2=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Sz=/\n/g,Az=/^\s*/,Cz=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,kz=/^:\s*/,Oz=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Nz=/^[;\s]*/,Rz=/^\s+|\s+$/g,Dz=`
277
+ `,Z2="/",J2="*",Xa="",Mz="comment",Lz="declaration",Iz=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(Sz);b&&(n+=b.length);var _=g.lastIndexOf(Dz);i=~_?g.length-_: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 _=b[0];return r(_),e=e.slice(_.length),b}}function u(){l(Az)}function c(g){var b;for(g=g||[];b=d();)b!==!1&&g.push(b);return g}function d(){var g=a();if(!(Z2!=e.charAt(0)||J2!=e.charAt(1))){for(var b=2;Xa!=e.charAt(b)&&(J2!=e.charAt(b)||Z2!=e.charAt(b+1));)++b;if(b+=2,Xa===e.charAt(b-1))return o("End of comment missing");var _=e.slice(2,b-2);return i+=2,r(_),e=e.slice(b),i+=2,g({type:Mz,comment:_})}}function f(){var g=a(),b=l(Cz);if(b){if(d(),!l(kz))return o("property missing ':'");var _=l(Oz),m=g({type:Lz,property:ew(b[0].replace(W2,Xa)),value:_?ew(_[0].replace(W2,Xa)):Xa});return l(Nz),m}}function h(){var g=[];c(g);for(var b;b=f();)b!==!1&&(g.push(b),c(g));return g}return u(),h()};function ew(e){return e?e.replace(Rz,Xa):Xa}var Pz=zr&&zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(l0,"__esModule",{value:!0}),l0.default=jz;var Bz=Pz(Iz);function jz(e,t){var n=null;if(!e||typeof e!="string")return n;var i=(0,Bz.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 Dd={};Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.camelCase=void 0;var zz=/^--[a-zA-Z0-9_-]+$/,Uz=/-([a-z])/g,Hz=/^[^-]+$/,Fz=/^-(webkit|moz|ms|o|khtml)-/,Vz=/^-(ms)-/,Yz=function(e){return!e||Hz.test(e)||zz.test(e)},qz=function(e,t){return t.toUpperCase()},tw=function(e,t){return"".concat(t,"-")},Gz=function(e,t){return t===void 0&&(t={}),Yz(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Vz,tw):e=e.replace(Fz,tw),e.replace(Uz,qz))};Dd.camelCase=Gz;var $z=zr&&zr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Xz=$z(l0),Kz=Dd;function u0(e,t){var n={};return!e||typeof e!="string"||(0,Xz.default)(e,function(i,r){i&&r&&(n[(0,Kz.camelCase)(i,t)]=r)}),n}u0.default=u0;var Qz=u0;const Wz=hl(Qz),Md=nw("end"),Gi=nw("start");function nw(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 Zz(e){const t=Gi(e),n=Md(e);if(t&&n)return{start:t,end:n}}function Kl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?iw(e.position):"start"in e||"end"in e?iw(e):"line"in e||"column"in e?c0(e):""}function c0(e){return rw(e&&e.line)+":"+rw(e&&e.column)}function iw(e){return c0(e&&e.start)+"-"+c0(e&&e.end)}function rw(e){return e&&typeof e=="number"?e:1}class on 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=Kl(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}}on.prototype.file="",on.prototype.name="",on.prototype.reason="",on.prototype.message="",on.prototype.stack="",on.prototype.column=void 0,on.prototype.line=void 0,on.prototype.ancestors=void 0,on.prototype.cause=void 0,on.prototype.fatal=void 0,on.prototype.place=void 0,on.prototype.ruleId=void 0,on.prototype.source=void 0;const d0={}.hasOwnProperty,Jz=new Map,eU=/[A-Z]/g,tU=new Set(["table","tbody","thead","tfoot","tr"]),nU=new Set(["td","th"]),aw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function iU(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=dU(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=cU(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"?io:Rd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=sw(r,e,void 0);return a&&typeof a!="string"?a:r.create(e,r.Fragment,{children:a||void 0},void 0)}function sw(e,t,n){if(t.type==="element")return rU(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return aU(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return oU(e,t,n);if(t.type==="mdxjsEsm")return sU(e,t);if(t.type==="root")return lU(e,t,n);if(t.type==="text")return uU(e,t)}function rU(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=io,e.schema=r),e.ancestors.push(t);const a=lw(e,t.tagName,!1),s=fU(e,t);let o=h0(e,t);return tU.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!gz(l):!0})),ow(e,s,a,t),f0(s,o),e.ancestors.pop(),e.schema=i,e.create(t,a,s,n)}function aU(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)}Ql(e,t.position)}function sU(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ql(e,t.position)}function oU(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=io,e.schema=r),e.ancestors.push(t);const a=t.name===null?e.Fragment:lw(e,t.name,!0),s=hU(e,t),o=h0(e,t);return ow(e,s,a,t),f0(s,o),e.ancestors.pop(),e.schema=i,e.create(t,a,s,n)}function lU(e,t,n){const i={};return f0(i,h0(e,t)),e.create(t,e.Fragment,i,n)}function uU(e,t){return t.value}function ow(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function f0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function cU(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 dU(e,t){return n;function n(i,r,a,s){const o=Array.isArray(a.children),l=Gi(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 fU(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&d0.call(t.properties,r)){const a=pU(e,r,t.properties[r]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&nU.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 hU(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 Ql(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 Ql(e,t.position);else a=i.value===null?!0:i.value;n[r]=a}return n}function h0(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:Jz;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=sw(e,a,s);o!==void 0&&n.push(o)}return n}function pU(e,t,n){const i=o0(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?B2(n):Q2(n)),i.property==="style"){let r=typeof n=="object"?n:mU(e,String(n));return e.stylePropertyNameCase==="css"&&(r=gU(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?xz[i.property]||i.property:i.attribute,n]}}function mU(e,t){try{return Wz(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,r=new on("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=aw+"#cannot-parse-style-attribute",r}}function lw(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=j2(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=j2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return d0.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ql(e)}function Ql(e,t){const n=new on("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=aw+"#cannot-handle-mdx-estrees-without-createevaluater",n}function gU(e){const t={};let n;for(n in e)d0.call(e,n)&&(t[bU(n)]=e[n]);return t}function bU(e){let t=e.replace(eU,vU);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function vU(e){return"-"+e.toLowerCase()}const p0={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"]},yU={tokenize:xU};function xU(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 _U={tokenize:EU},uw={tokenize:TU};function EU(e){const t=this,n=[];let i=0,r,a,s;return o;function o(x){if(i<n.length){const T=n[i];return t.containerState=T[1],e.attempt(T[0].continuation,l,u)(x)}return u(x)}function l(x){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const T=t.events.length;let S=T,A;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){A=t.events[S][1].end;break}m(i);let D=T;for(;D<t.events.length;)t.events[D][1].end={...A},D++;return zn(t.events,S+1,0,t.events.slice(T)),t.events.length=D,u(x)}return o(x)}function u(x){if(i===n.length){if(!r)return f(x);if(r.currentConstruct&&r.currentConstruct.concrete)return g(x);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(uw,c,d)(x)}function c(x){return r&&v(),m(i),f(x)}function d(x){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,g(x)}function f(x){return t.containerState={},e.attempt(uw,h,g)(x)}function h(x){return i++,n.push([t.currentConstruct,t.containerState]),f(x)}function g(x){if(x===null){r&&v(),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){_(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return fe(x)?(e.consume(x),_(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(x),b)}function _(x,T){const S=t.sliceStream(x);if(T&&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 A=r.events.length;for(;A--;)if(r.events[A][1].start.offset<s&&(!r.events[A][1].end||r.events[A][1].end.offset>s))return;const D=t.events.length;let L=D,B,O;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(B){O=t.events[L][1].end;break}B=!0}for(m(i),A=D;A<t.events.length;)t.events[A][1].end={...O},A++;zn(t.events,L+1,0,t.events.slice(D)),t.events.length=A}}function m(x){let T=n.length;for(;T-- >x;){const S=n[T];t.containerState=S[1],S[0].exit.call(t,e)}n.length=x}function v(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}function TU(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 wU={tokenize:SU};function SU(e){const t=this,n=e.attempt(Yl,i,e.attempt(this.parser.constructs.flowInitial,r,Me(e,e.attempt(this.parser.constructs.flow,r,e.attempt(QB,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 AU={resolveAll:dw()},CU=cw("string"),kU=cw("text");function cw(e){return{resolveAll:dw(e==="text"?OU: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 d=r[c];let f=-1;if(d)for(;++f<d.length;){const h=d[f];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}function dw(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 OU(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 NU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:tj},disable:{null:[]},document:{42:Tn,43:Tn,45:Tn,48:Tn,49:Tn,50:Tn,51:Tn,52:Tn,53:Tn,54:Tn,55:Tn,56:Tn,57:Tn,62:T2},flow:{35:oj,42:Od,45:[M2,Od],60:dj,61:M2,95:Od,96:C2,126:C2},flowInitial:{[-2]:e0,[-1]:e0,32:e0},insideSpan:{null:[Jm,AU]},string:{38:S2,92:w2},text:{[-5]:n0,[-4]:n0,[-3]:n0,33:Oj,38:S2,42:Jm,60:[RB,vj],91:Rj,92:[aj,w2],93:t0,95:Jm,96:YB}},Symbol.toStringTag,{value:"Module"}));function RU(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(A),consume:v,enter:x,exit:T,interrupt:D(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:h,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function d(Y){return s=si(s,Y),_(),s[s.length-1]!==null?[]:(L(t,0),u.events=kd(a,u.events,u),u.events)}function f(Y,U){return MU(h(Y),U)}function h(Y){return DU(s,Y)}function g(){const{_bufferIndex:Y,_index:U,line:re,column:ee,offset:Q}=i;return{_bufferIndex:Y,_index:U,line:re,column:ee,offset:Q}}function b(Y){r[Y.line]=Y.column,O()}function _(){let Y;for(;i._index<s.length;){const U=s[i._index];if(typeof U=="string")for(Y=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Y&&i._bufferIndex<U.length;)m(U.charCodeAt(i._bufferIndex));else m(U)}}function m(Y){c=c(Y)}function v(Y){fe(Y)?(i.line++,i.column=1,i.offset+=Y===-3?2:1,O()):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,U){const re=U||{};return re.type=Y,re.start=g(),u.events.push(["enter",re,u]),o.push(re),re}function T(Y){const U=o.pop();return U.end=g(),u.events.push(["exit",U,u]),U}function S(Y,U){L(Y,U.from)}function A(Y,U){U.restore()}function D(Y,U){return re;function re(ee,Q,F){let V,H,te,N;return Array.isArray(ee)?tt(ee):"tokenize"in ee?tt([ee]):be(ee);function be(je){return dn;function dn(We){const $t=We!==null&&je[We],Mt=We!==null&&je.null,Ut=[...Array.isArray($t)?$t:$t?[$t]:[],...Array.isArray(Mt)?Mt:Mt?[Mt]:[]];return tt(Ut)(We)}}function tt(je){return V=je,H=0,je.length===0?F:M(je[H])}function M(je){return dn;function dn(We){return N=B(),te=je,je.partial||(u.currentConstruct=je),je.name&&u.parser.constructs.disable.null.includes(je.name)?ge():je.tokenize.call(U?Object.assign(Object.create(u),U):u,l,Be,ge)(We)}}function Be(je){return Y(te,N),Q}function ge(je){return N.restore(),++H<V.length?M(V[H]):F}}}function L(Y,U){Y.resolveAll&&!a.includes(Y)&&a.push(Y),Y.resolve&&zn(u.events,U,u.events.length-U,Y.resolve(u.events.slice(U),u)),Y.resolveTo&&(u.events=Y.resolveTo(u.events,u))}function B(){const Y=g(),U=u.previous,re=u.currentConstruct,ee=u.events.length,Q=Array.from(o);return{from:ee,restore:F};function F(){i=Y,u.previous=U,u.currentConstruct=re,u.events.length=ee,o=Q,O()}}function O(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function DU(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 MU(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=`
278
278
  `;break}case-3:{s=`\r
279
- `;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 LU(e){const i={constructs:h2([NU,...(e||{}).extensions||[]]),content:r(yU),defined:[],document:r(_U),flow:r(wU),lazy:{},string:r(CU),text:r(kU)};return i;function r(a){return s;function s(o){return RU(i,a,o)}}}function IU(e){for(;!k2(e););return e}const fw=/[\0\t\n\r]/g;function PU(){let e=1,t="",n=!0,i;return r;function r(a,s,o){const l=[];let u,c,d,f,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(fw.lastIndex=d,u=fw.exec(a),f=u&&u.index!==void 0?u.index:a.length,h=a.charCodeAt(f),!u){t=a.slice(d);break}if(h===10&&d===f&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),d<f&&(l.push(a.slice(d,f)),e+=f-d),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}d=f+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const hw={}.hasOwnProperty;function BU(e,t,n){return typeof t!="string"&&(n=t,t=void 0),jU(n)(IU(LU(n).document().write(PU()(e,t,!0))))}function jU(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(tn),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(Li),blockQuote:a(Mt),characterEscape:B,characterReference:B,codeFenced:a(Ut),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Ut,s),codeText:a(Lt,s),codeTextData:B,data:B,codeFlowValue:B,definition:a(ae),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(yi),hardBreakEscape:a(Ii),hardBreakTrailing:a(Ii),htmlFlow:a(nt,s),htmlFlowData:B,htmlText:a(nt,s),htmlTextData:B,image:a(fn),label:s,link:a(tn),listItem:a(Es),listItemValue:f,listOrdered:a(At,d),listUnordered:a(At),paragraph:a(Rn),reference:M,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Li),strong:a(Ir),thematicBreak:a(he)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:$t,autolinkProtocol:We,blockQuote:l(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:je,characterReference:dn,codeFenced:l(E),codeFencedFence:b,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:O,codeIndented:l(m),codeText:l(Q),codeTextData:O,data:O,definition:l(),definitionDestinationString:T,definitionLabelString:v,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(U),hardBreakTrailing:l(U),htmlFlow:l(re),htmlFlowData:O,htmlText:l(ee),htmlTextData:O,image:l(V),label:te,labelText:H,lineEnding:Y,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Be,resourceDestinationString:N,resourceTitleString:be,resource:tt,setextHeading:l(L),setextHeadingLineSequence:D,setextHeadingText:A,strong:l(),thematicBreak:l()}};pw(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(j){let $={type:"root",children:[]};const ue={stack:[$],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:n},_e=[];let ve=-1;for(;++ve<j.length;)if(j[ve][1].type==="listOrdered"||j[ve][1].type==="listUnordered")if(j[ve][0]==="enter")_e.push(ve);else{const Xt=_e.pop();ve=r(j,Xt,ve)}for(ve=-1;++ve<j.length;){const Xt=t[j[ve][0]];hw.call(Xt,j[ve][1].type)&&Xt[j[ve][1].type].call(Object.assign({sliceSerialize:j[ve][2].sliceSerialize},ue),j[ve][1])}if(ue.tokenStack.length>0){const Xt=ue.tokenStack[ue.tokenStack.length-1];(Xt[1]||mw).call(ue,void 0,Xt[0])}for($.position={start:Zr(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Zr(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)$=t.transforms[ve]($)||$;return $}function r(j,$,ue){let _e=$-1,ve=-1,Xt=!1,Dn,yn,Jn,Mn;for(;++_e<=ue;){const It=j[_e];switch(It[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{It[0]==="enter"?ve++:ve--,Mn=void 0;break}case"lineEndingBlank":{It[0]==="enter"&&(Dn&&!Mn&&!ve&&!Jn&&(Jn=_e),Mn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mn=void 0}if(!ve&&It[0]==="enter"&&It[1].type==="listItemPrefix"||ve===-1&&It[0]==="exit"&&(It[1].type==="listUnordered"||It[1].type==="listOrdered")){if(Dn){let ei=_e;for(yn=void 0;ei--;){const xn=j[ei];if(xn[1].type==="lineEnding"||xn[1].type==="lineEndingBlank"){if(xn[0]==="exit")continue;yn&&(j[yn][1].type="lineEndingBlank",Xt=!0),xn[1].type="lineEnding",yn=ei}else if(!(xn[1].type==="linePrefix"||xn[1].type==="blockQuotePrefix"||xn[1].type==="blockQuotePrefixWhitespace"||xn[1].type==="blockQuoteMarker"||xn[1].type==="listItemIndent"))break}Jn&&(!yn||Jn<yn)&&(Dn._spread=!0),Dn.end=Object.assign({},yn?j[yn][1].start:It[1].end),j.splice(yn||_e,0,["exit",Dn,It[2]]),_e++,ue++}if(It[1].type==="listItemPrefix"){const ei={type:"listItem",_spread:!1,start:Object.assign({},It[1].start),end:void 0};Dn=ei,j.splice(_e,0,["enter",ei,It[2]]),_e++,ue++,Jn=void 0,Mn=!0}}}return j[$][1]._spread=Xt,ue}function a(j,$){return ue;function ue(_e){o.call(this,j(_e),_e),$&&$.call(this,_e)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,$,ue){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([$,ue||void 0]),j.position={start:Zr($.start),end:void 0}}function l(j){return $;function $(ue){j&&j.call(this,ue),u.call(this,ue)}}function u(j,$){const ue=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==j.type&&($?$.call(this,j,_e[0]):(_e[1]||mw).call(this,j,_e[0]));else throw new Error("Cannot close `"+j.type+"` ("+Kl({start:j.start,end:j.end})+"): it’s not open");ue.position.end=Zr(j.end)}function c(){return $m(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(j){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function h(){const j=this.resume(),$=this.stack[this.stack.length-1];$.lang=j}function g(){const j=this.resume(),$=this.stack[this.stack.length-1];$.meta=j}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j.replace(/(\r?\n|\r)$/g,"")}function v(j){const $=this.resume(),ue=this.stack[this.stack.length-1];ue.label=$,ue.identifier=Ci(this.sliceSerialize(j)).toLowerCase()}function x(){const j=this.resume(),$=this.stack[this.stack.length-1];$.title=j}function T(){const j=this.resume(),$=this.stack[this.stack.length-1];$.url=j}function S(j){const $=this.stack[this.stack.length-1];if(!$.depth){const ue=this.sliceSerialize(j).length;$.depth=ue}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function D(j){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function B(j){const ue=this.stack[this.stack.length-1].children;let _e=ue[ue.length-1];(!_e||_e.type!=="text")&&(_e=ne(),_e.position={start:Zr(j.start),end:void 0},ue.push(_e)),this.stack.push(_e)}function O(j){const $=this.stack.pop();$.value+=this.sliceSerialize(j),$.position.end=Zr(j.end)}function Y(j){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ue=$.children[$.children.length-1];ue.position.end=Zr(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(B.call(this,j),O.call(this,j))}function U(){this.data.atHardBreak=!0}function re(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function ee(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function Q(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function F(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=$,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function V(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=$,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function H(j){const $=this.sliceSerialize(j),ue=this.stack[this.stack.length-2];ue.label=tB($),ue.identifier=Ci($).toLowerCase()}function te(){const j=this.stack[this.stack.length-1],$=this.resume(),ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,ue.type==="link"){const _e=j.children;ue.children=_e}else ue.alt=$}function N(){const j=this.resume(),$=this.stack[this.stack.length-1];$.url=j}function be(){const j=this.resume(),$=this.stack[this.stack.length-1];$.title=j}function tt(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function Be(j){const $=this.resume(),ue=this.stack[this.stack.length-1];ue.label=$,ue.identifier=Ci(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function ge(j){this.data.characterReferenceType=j.type}function je(j){const $=this.sliceSerialize(j),ue=this.data.characterReferenceType;let _e;ue?(_e=u2($,ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=Km($);const ve=this.stack[this.stack.length-1];ve.value+=_e}function dn(j){const $=this.stack.pop();$.position.end=Zr(j.end)}function We(j){O.call(this,j);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(j)}function $t(j){O.call(this,j);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(j)}function Mt(){return{type:"blockquote",children:[]}}function Ut(){return{type:"code",lang:null,meta:null,value:""}}function Lt(){return{type:"inlineCode",value:""}}function ae(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yi(){return{type:"emphasis",children:[]}}function Li(){return{type:"heading",depth:0,children:[]}}function Ii(){return{type:"break"}}function nt(){return{type:"html",value:""}}function fn(){return{type:"image",title:null,url:"",alt:null}}function tn(){return{type:"link",title:null,url:"",children:[]}}function At(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function Es(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function Rn(){return{type:"paragraph",children:[]}}function Ir(){return{type:"strong",children:[]}}function ne(){return{type:"text",value:""}}function he(){return{type:"thematicBreak"}}}function Zr(e){return{line:e.line,column:e.column,offset:e.offset}}function pw(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?pw(e,i):zU(e,i)}}function zU(e,t){let n;for(n in t)if(hw.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 mw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Kl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Kl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Kl({start:t.start,end:t.end})+") is still open")}function UU(e){const t=this;t.parser=n;function n(i){return BU(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function HU(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 FU(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
279
+ `;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 LU(e){const i={constructs:h2([NU,...(e||{}).extensions||[]]),content:r(yU),defined:[],document:r(_U),flow:r(wU),lazy:{},string:r(CU),text:r(kU)};return i;function r(a){return s;function s(o){return RU(i,a,o)}}}function IU(e){for(;!k2(e););return e}const fw=/[\0\t\n\r]/g;function PU(){let e=1,t="",n=!0,i;return r;function r(a,s,o){const l=[];let u,c,d,f,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),d=0,t="",n&&(a.charCodeAt(0)===65279&&d++,n=void 0);d<a.length;){if(fw.lastIndex=d,u=fw.exec(a),f=u&&u.index!==void 0?u.index:a.length,h=a.charCodeAt(f),!u){t=a.slice(d);break}if(h===10&&d===f&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),d<f&&(l.push(a.slice(d,f)),e+=f-d),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}d=f+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const hw={}.hasOwnProperty;function BU(e,t,n){return typeof t!="string"&&(n=t,t=void 0),jU(n)(IU(LU(n).document().write(PU()(e,t,!0))))}function jU(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(tn),autolinkProtocol:B,autolinkEmail:B,atxHeading:a(Li),blockQuote:a(Mt),characterEscape:B,characterReference:B,codeFenced:a(Ut),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Ut,s),codeText:a(Lt,s),codeTextData:B,data:B,codeFlowValue:B,definition:a(ae),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(yi),hardBreakEscape:a(Ii),hardBreakTrailing:a(Ii),htmlFlow:a(nt,s),htmlFlowData:B,htmlText:a(nt,s),htmlTextData:B,image:a(fn),label:s,link:a(tn),listItem:a(Es),listItemValue:f,listOrdered:a(At,d),listUnordered:a(At),paragraph:a(Rn),reference:M,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Li),strong:a(Ir),thematicBreak:a(he)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:$t,autolinkProtocol:We,blockQuote:l(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:je,characterReference:dn,codeFenced:l(_),codeFencedFence:b,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:O,codeIndented:l(m),codeText:l(Q),codeTextData:O,data:O,definition:l(),definitionDestinationString:T,definitionLabelString:v,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(U),hardBreakTrailing:l(U),htmlFlow:l(re),htmlFlowData:O,htmlText:l(ee),htmlTextData:O,image:l(V),label:te,labelText:H,lineEnding:Y,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Be,resourceDestinationString:N,resourceTitleString:be,resource:tt,setextHeading:l(L),setextHeadingLineSequence:D,setextHeadingText:A,strong:l(),thematicBreak:l()}};pw(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(j){let $={type:"root",children:[]};const ue={stack:[$],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:n},_e=[];let ve=-1;for(;++ve<j.length;)if(j[ve][1].type==="listOrdered"||j[ve][1].type==="listUnordered")if(j[ve][0]==="enter")_e.push(ve);else{const Xt=_e.pop();ve=r(j,Xt,ve)}for(ve=-1;++ve<j.length;){const Xt=t[j[ve][0]];hw.call(Xt,j[ve][1].type)&&Xt[j[ve][1].type].call(Object.assign({sliceSerialize:j[ve][2].sliceSerialize},ue),j[ve][1])}if(ue.tokenStack.length>0){const Xt=ue.tokenStack[ue.tokenStack.length-1];(Xt[1]||mw).call(ue,void 0,Xt[0])}for($.position={start:Zr(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Zr(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)$=t.transforms[ve]($)||$;return $}function r(j,$,ue){let _e=$-1,ve=-1,Xt=!1,Dn,yn,Jn,Mn;for(;++_e<=ue;){const It=j[_e];switch(It[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{It[0]==="enter"?ve++:ve--,Mn=void 0;break}case"lineEndingBlank":{It[0]==="enter"&&(Dn&&!Mn&&!ve&&!Jn&&(Jn=_e),Mn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mn=void 0}if(!ve&&It[0]==="enter"&&It[1].type==="listItemPrefix"||ve===-1&&It[0]==="exit"&&(It[1].type==="listUnordered"||It[1].type==="listOrdered")){if(Dn){let ei=_e;for(yn=void 0;ei--;){const xn=j[ei];if(xn[1].type==="lineEnding"||xn[1].type==="lineEndingBlank"){if(xn[0]==="exit")continue;yn&&(j[yn][1].type="lineEndingBlank",Xt=!0),xn[1].type="lineEnding",yn=ei}else if(!(xn[1].type==="linePrefix"||xn[1].type==="blockQuotePrefix"||xn[1].type==="blockQuotePrefixWhitespace"||xn[1].type==="blockQuoteMarker"||xn[1].type==="listItemIndent"))break}Jn&&(!yn||Jn<yn)&&(Dn._spread=!0),Dn.end=Object.assign({},yn?j[yn][1].start:It[1].end),j.splice(yn||_e,0,["exit",Dn,It[2]]),_e++,ue++}if(It[1].type==="listItemPrefix"){const ei={type:"listItem",_spread:!1,start:Object.assign({},It[1].start),end:void 0};Dn=ei,j.splice(_e,0,["enter",ei,It[2]]),_e++,ue++,Jn=void 0,Mn=!0}}}return j[$][1]._spread=Xt,ue}function a(j,$){return ue;function ue(_e){o.call(this,j(_e),_e),$&&$.call(this,_e)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,$,ue){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([$,ue||void 0]),j.position={start:Zr($.start),end:void 0}}function l(j){return $;function $(ue){j&&j.call(this,ue),u.call(this,ue)}}function u(j,$){const ue=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==j.type&&($?$.call(this,j,_e[0]):(_e[1]||mw).call(this,j,_e[0]));else throw new Error("Cannot close `"+j.type+"` ("+Kl({start:j.start,end:j.end})+"): it’s not open");ue.position.end=Zr(j.end)}function c(){return $m(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(j){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function h(){const j=this.resume(),$=this.stack[this.stack.length-1];$.lang=j}function g(){const j=this.resume(),$=this.stack[this.stack.length-1];$.meta=j}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j.replace(/(\r?\n|\r)$/g,"")}function v(j){const $=this.resume(),ue=this.stack[this.stack.length-1];ue.label=$,ue.identifier=Ci(this.sliceSerialize(j)).toLowerCase()}function x(){const j=this.resume(),$=this.stack[this.stack.length-1];$.title=j}function T(){const j=this.resume(),$=this.stack[this.stack.length-1];$.url=j}function S(j){const $=this.stack[this.stack.length-1];if(!$.depth){const ue=this.sliceSerialize(j).length;$.depth=ue}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function D(j){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function B(j){const ue=this.stack[this.stack.length-1].children;let _e=ue[ue.length-1];(!_e||_e.type!=="text")&&(_e=ne(),_e.position={start:Zr(j.start),end:void 0},ue.push(_e)),this.stack.push(_e)}function O(j){const $=this.stack.pop();$.value+=this.sliceSerialize(j),$.position.end=Zr(j.end)}function Y(j){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ue=$.children[$.children.length-1];ue.position.end=Zr(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(B.call(this,j),O.call(this,j))}function U(){this.data.atHardBreak=!0}function re(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function ee(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function Q(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function F(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=$,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function V(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=$,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function H(j){const $=this.sliceSerialize(j),ue=this.stack[this.stack.length-2];ue.label=tB($),ue.identifier=Ci($).toLowerCase()}function te(){const j=this.stack[this.stack.length-1],$=this.resume(),ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,ue.type==="link"){const _e=j.children;ue.children=_e}else ue.alt=$}function N(){const j=this.resume(),$=this.stack[this.stack.length-1];$.url=j}function be(){const j=this.resume(),$=this.stack[this.stack.length-1];$.title=j}function tt(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function Be(j){const $=this.resume(),ue=this.stack[this.stack.length-1];ue.label=$,ue.identifier=Ci(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function ge(j){this.data.characterReferenceType=j.type}function je(j){const $=this.sliceSerialize(j),ue=this.data.characterReferenceType;let _e;ue?(_e=u2($,ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=Km($);const ve=this.stack[this.stack.length-1];ve.value+=_e}function dn(j){const $=this.stack.pop();$.position.end=Zr(j.end)}function We(j){O.call(this,j);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(j)}function $t(j){O.call(this,j);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(j)}function Mt(){return{type:"blockquote",children:[]}}function Ut(){return{type:"code",lang:null,meta:null,value:""}}function Lt(){return{type:"inlineCode",value:""}}function ae(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yi(){return{type:"emphasis",children:[]}}function Li(){return{type:"heading",depth:0,children:[]}}function Ii(){return{type:"break"}}function nt(){return{type:"html",value:""}}function fn(){return{type:"image",title:null,url:"",alt:null}}function tn(){return{type:"link",title:null,url:"",children:[]}}function At(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function Es(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function Rn(){return{type:"paragraph",children:[]}}function Ir(){return{type:"strong",children:[]}}function ne(){return{type:"text",value:""}}function he(){return{type:"thematicBreak"}}}function Zr(e){return{line:e.line,column:e.column,offset:e.offset}}function pw(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?pw(e,i):zU(e,i)}}function zU(e,t){let n;for(n in t)if(hw.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 mw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Kl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Kl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Kl({start:t.start,end:t.end})+") is still open")}function UU(e){const t=this;t.parser=n;function n(i){return BU(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function HU(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 FU(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
280
280
  `}]}function VU(e,t){const n=t.value?t.value+`
281
281
  `:"",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 YU(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qU(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function GU(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),r=Js(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 $U(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 XU(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function gw(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 KU(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return gw(e,t);const r={src:Js(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 QU(e,t){const n={src:Js(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 WU(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 ZU(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return gw(e,t);const r={href:Js(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 JU(e,t){const n={href:Js(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 eH(e,t,n){const i=e.all(t),r=n?tH(n):bw(t),a={},s=[];if(typeof t.checked=="boolean"){const c=i[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.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:`
282
282
  `}),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:`
283
- `});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function tH(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=bw(n[i])}return t}function bw(e){const t=e.spread;return t??e.children.length>1}function nH(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 iH(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function rH(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function aH(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sH(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=Gi(t.children[1]),l=Md(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 oH(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 d=t.children[l],f={},h=s?s[l]:void 0;h&&(f.align=h);let g={type:"element",tagName:a,properties:f,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(d,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 lH(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const vw=9,yw=32;function uH(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),r=0;const a=[];for(;i;)a.push(xw(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return a.push(xw(t.slice(r),r>0,!1)),a.join("")}function xw(e,t,n){let i=0,r=e.length;if(t){let a=e.codePointAt(i);for(;a===vw||a===yw;)i++,a=e.codePointAt(i)}if(n){let a=e.codePointAt(r-1);for(;a===vw||a===yw;)r--,a=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function cH(e,t){const n={type:"text",value:uH(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function dH(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const fH={blockquote:HU,break:FU,code:VU,delete:YU,emphasis:qU,footnoteReference:GU,heading:$U,html:XU,imageReference:KU,image:QU,inlineCode:WU,linkReference:ZU,link:JU,listItem:eH,list:nH,paragraph:iH,root:rH,strong:aH,table:sH,tableCell:lH,tableRow:oH,text:cH,thematicBreak:dH,toml:Ld,yaml:Ld,definition:Ld,footnoteDefinition:Ld};function Ld(){}const _w=-1,Id=0,Wl=1,Pd=2,m0=3,g0=4,b0=5,v0=6,Ew=7,Tw=8,ww=typeof self=="object"?self:globalThis,hH=(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 Id:case _w:return n(s,r);case Wl:{const o=n([],r);for(const l of s)o.push(i(l));return o}case Pd:{const o=n({},r);for(const[l,u]of s)o[i(l)]=i(u);return o}case m0:return n(new Date(s),r);case g0:{const{source:o,flags:l}=s;return n(new RegExp(o,l),r)}case b0:{const o=n(new Map,r);for(const[l,u]of s)o.set(i(l),i(u));return o}case v0:{const o=n(new Set,r);for(const l of s)o.add(i(l));return o}case Ew:{const{name:o,message:l}=s;return n(new ww[o](l),r)}case Tw: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 ww[a](s),r)};return i},Sw=e=>hH(new Map,e)(0),ro="",{toString:pH}={},{keys:mH}=Object,Zl=e=>{const t=typeof e;if(t!=="object"||!e)return[Id,t];const n=pH.call(e).slice(8,-1);switch(n){case"Array":return[Wl,ro];case"Object":return[Pd,ro];case"Date":return[m0,ro];case"RegExp":return[g0,ro];case"Map":return[b0,ro];case"Set":return[v0,ro];case"DataView":return[Wl,n]}return n.includes("Array")?[Wl,n]:n.includes("Error")?[Ew,n]:[Pd,n]},Bd=([e,t])=>e===Id&&(t==="function"||t==="symbol"),gH=(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]=Zl(s);switch(o){case Id:{let c=s;switch(l){case"bigint":o=Tw,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return r([_w],s)}return r([o,c],s)}case Wl:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),r([l,[...f]],s)}const c=[],d=r([o,c],s);for(const f of s)c.push(a(f));return d}case Pd:{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=[],d=r([o,c],s);for(const f of mH(s))(e||!Bd(Zl(s[f])))&&c.push([a(f),a(s[f])]);return d}case m0:return r([o,s.toISOString()],s);case g0:{const{source:c,flags:d}=s;return r([o,{source:c,flags:d}],s)}case b0:{const c=[],d=r([o,c],s);for(const[f,h]of s)(e||!(Bd(Zl(f))||Bd(Zl(h))))&&c.push([a(f),a(h)]);return d}case v0:{const c=[],d=r([o,c],s);for(const f of s)(e||!Bd(Zl(f)))&&c.push(a(f));return d}}const{message:u}=s;return r([o,{name:l,message:u}],s)};return a},Aw=(e,{json:t,lossy:n}={})=>{const i=[];return gH(!(t||n),!!t,new Map,i)(e),i},ao=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Sw(Aw(e,t)):structuredClone(e):(e,t)=>Sw(Aw(e,t));function bH(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 vH(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function yH(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||bH,i=e.options.footnoteBackLabel||vH,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),d=String(u.identifier).toUpperCase(),f=Js(d.toLowerCase());let h=0;const g=[],b=e.footnoteCounts.get(d);for(;b!==void 0&&++h<=b;){g.length>0&&g.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,h);typeof v=="string"&&(v={type:"text",value:v}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const E=c[c.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const v=E.children[E.children.length-1];v&&v.type==="text"?v.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...g)}else c.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+f},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:{...ao(s),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
283
+ `});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function tH(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=bw(n[i])}return t}function bw(e){const t=e.spread;return t??e.children.length>1}function nH(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 iH(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function rH(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function aH(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sH(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=Gi(t.children[1]),l=Md(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 oH(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 d=t.children[l],f={},h=s?s[l]:void 0;h&&(f.align=h);let g={type:"element",tagName:a,properties:f,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(d,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 lH(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const vw=9,yw=32;function uH(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),r=0;const a=[];for(;i;)a.push(xw(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return a.push(xw(t.slice(r),r>0,!1)),a.join("")}function xw(e,t,n){let i=0,r=e.length;if(t){let a=e.codePointAt(i);for(;a===vw||a===yw;)i++,a=e.codePointAt(i)}if(n){let a=e.codePointAt(r-1);for(;a===vw||a===yw;)r--,a=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function cH(e,t){const n={type:"text",value:uH(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function dH(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const fH={blockquote:HU,break:FU,code:VU,delete:YU,emphasis:qU,footnoteReference:GU,heading:$U,html:XU,imageReference:KU,image:QU,inlineCode:WU,linkReference:ZU,link:JU,listItem:eH,list:nH,paragraph:iH,root:rH,strong:aH,table:sH,tableCell:lH,tableRow:oH,text:cH,thematicBreak:dH,toml:Ld,yaml:Ld,definition:Ld,footnoteDefinition:Ld};function Ld(){}const _w=-1,Id=0,Wl=1,Pd=2,m0=3,g0=4,b0=5,v0=6,Ew=7,Tw=8,ww=typeof self=="object"?self:globalThis,hH=(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 Id:case _w:return n(s,r);case Wl:{const o=n([],r);for(const l of s)o.push(i(l));return o}case Pd:{const o=n({},r);for(const[l,u]of s)o[i(l)]=i(u);return o}case m0:return n(new Date(s),r);case g0:{const{source:o,flags:l}=s;return n(new RegExp(o,l),r)}case b0:{const o=n(new Map,r);for(const[l,u]of s)o.set(i(l),i(u));return o}case v0:{const o=n(new Set,r);for(const l of s)o.add(i(l));return o}case Ew:{const{name:o,message:l}=s;return n(new ww[o](l),r)}case Tw: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 ww[a](s),r)};return i},Sw=e=>hH(new Map,e)(0),ro="",{toString:pH}={},{keys:mH}=Object,Zl=e=>{const t=typeof e;if(t!=="object"||!e)return[Id,t];const n=pH.call(e).slice(8,-1);switch(n){case"Array":return[Wl,ro];case"Object":return[Pd,ro];case"Date":return[m0,ro];case"RegExp":return[g0,ro];case"Map":return[b0,ro];case"Set":return[v0,ro];case"DataView":return[Wl,n]}return n.includes("Array")?[Wl,n]:n.includes("Error")?[Ew,n]:[Pd,n]},Bd=([e,t])=>e===Id&&(t==="function"||t==="symbol"),gH=(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]=Zl(s);switch(o){case Id:{let c=s;switch(l){case"bigint":o=Tw,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return r([_w],s)}return r([o,c],s)}case Wl:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),r([l,[...f]],s)}const c=[],d=r([o,c],s);for(const f of s)c.push(a(f));return d}case Pd:{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=[],d=r([o,c],s);for(const f of mH(s))(e||!Bd(Zl(s[f])))&&c.push([a(f),a(s[f])]);return d}case m0:return r([o,s.toISOString()],s);case g0:{const{source:c,flags:d}=s;return r([o,{source:c,flags:d}],s)}case b0:{const c=[],d=r([o,c],s);for(const[f,h]of s)(e||!(Bd(Zl(f))||Bd(Zl(h))))&&c.push([a(f),a(h)]);return d}case v0:{const c=[],d=r([o,c],s);for(const f of s)(e||!Bd(Zl(f)))&&c.push(a(f));return d}}const{message:u}=s;return r([o,{name:l,message:u}],s)};return a},Aw=(e,{json:t,lossy:n}={})=>{const i=[];return gH(!(t||n),!!t,new Map,i)(e),i},ao=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Sw(Aw(e,t)):structuredClone(e):(e,t)=>Sw(Aw(e,t));function bH(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 vH(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function yH(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||bH,i=e.options.footnoteBackLabel||vH,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),d=String(u.identifier).toUpperCase(),f=Js(d.toLowerCase());let h=0;const g=[],b=e.footnoteCounts.get(d);for(;b!==void 0&&++h<=b;){g.length>0&&g.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,h);typeof v=="string"&&(v={type:"text",value:v}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const _=c[c.length-1];if(_&&_.type==="element"&&_.tagName==="p"){const v=_.children[_.children.length-1];v&&v.type==="text"?v.value+=" ":_.children.push({type:"text",value:" "}),_.children.push(...g)}else c.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+f},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:{...ao(s),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
284
284
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
285
- `}]}}const y0={}.hasOwnProperty,xH={};function _H(e,t){const n=t||xH,i=new Map,r=new Map,a=new Map,s={...fH,...n.handlers},o={all:u,applyData:TH,definitionById:i,footnoteById:r,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:n,patch:EH,wrap:SH};return Cd(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?i:r,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),o;function l(c,d){const f=c.type,h=o.handlers[f];if(y0.call(o.handlers,f)&&h)return h(o,c,d);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in c){const{children:b,...E}=c,m=ao(E);return m.children=o.all(c),m}return ao(c)}return(o.options.unknownHandler||wH)(o,c,d)}function u(c){const d=[];if("children"in c){const f=c.children;let h=-1;for(;++h<f.length;){const g=o.one(f[h],c);if(g){if(h&&f[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Cw(g.value)),!Array.isArray(g)&&g.type==="element")){const b=g.children[0];b&&b.type==="text"&&(b.value=Cw(b.value))}Array.isArray(g)?d.push(...g):d.push(g)}}}return d}}function EH(e,t){e.position&&(t.position=Zz(e))}function TH(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,ao(a)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function wH(e,t){const n=t.data||{},i="value"in t&&!(y0.call(n,"hProperties")||y0.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 SH(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
285
+ `}]}}const y0={}.hasOwnProperty,xH={};function _H(e,t){const n=t||xH,i=new Map,r=new Map,a=new Map,s={...fH,...n.handlers},o={all:u,applyData:TH,definitionById:i,footnoteById:r,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:n,patch:EH,wrap:SH};return Cd(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?i:r,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),o;function l(c,d){const f=c.type,h=o.handlers[f];if(y0.call(o.handlers,f)&&h)return h(o,c,d);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in c){const{children:b,..._}=c,m=ao(_);return m.children=o.all(c),m}return ao(c)}return(o.options.unknownHandler||wH)(o,c,d)}function u(c){const d=[];if("children"in c){const f=c.children;let h=-1;for(;++h<f.length;){const g=o.one(f[h],c);if(g){if(h&&f[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Cw(g.value)),!Array.isArray(g)&&g.type==="element")){const b=g.children[0];b&&b.type==="text"&&(b.value=Cw(b.value))}Array.isArray(g)?d.push(...g):d.push(g)}}}return d}}function EH(e,t){e.position&&(t.position=Zz(e))}function TH(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,ao(a)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function wH(e,t){const n=t.data||{},i="value"in t&&!(y0.call(n,"hProperties")||y0.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 SH(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
286
286
  `});++i<e.length;)i&&n.push({type:"text",value:`
287
287
  `}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
288
288
  `}),n}function Cw(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function kw(e,t){const n=_H(e,t),i=n.one(e,void 0),r=yH(n),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&a.children.push({type:"text",value:`
@@ -295,11 +295,11 @@ ${a}`:a})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOStr
295
295
  *
296
296
  * This source code is licensed under the MIT license found in the
297
297
  * LICENSE file in the root directory of this source tree.
298
- */var po=_;function Eq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tq=typeof Object.is=="function"?Object.is:Eq,wq=po.useState,Sq=po.useEffect,Aq=po.useLayoutEffect,Cq=po.useDebugValue;function kq(e,t){var n=t(),i=wq({inst:{value:n,getSnapshot:t}}),r=i[0].inst,a=i[1];return Aq(function(){r.value=n,r.getSnapshot=t,$0(r)&&a({inst:r})},[e,n,t]),Sq(function(){return $0(r)&&a({inst:r}),e(function(){$0(r)&&a({inst:r})})},[e]),Cq(n),n}function $0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tq(e,n)}catch{return!0}}function Oq(e,t){return t()}var Nq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Oq:kq;eA.useSyncExternalStore=po.useSyncExternalStore!==void 0?po.useSyncExternalStore:Nq,JS.exports=eA;var Rq=JS.exports;function Dq(){return Rq.useSyncExternalStore(Mq,()=>!0,()=>!1)}function Mq(){return()=>{}}var X0="Avatar",[Lq,mJ]=Oc(X0),[Iq,tA]=Lq(X0),nA=_.forwardRef((e,t)=>{const{__scopeAvatar:n,...i}=e,[r,a]=_.useState("idle");return y.jsx(Iq,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:a,children:y.jsx(Ln.span,{...i,ref:t})})});nA.displayName=X0;var iA="AvatarImage",rA=_.forwardRef((e,t)=>{const{__scopeAvatar:n,src:i,onLoadingStatusChange:r=()=>{},...a}=e,s=tA(iA,n),o=Pq(i,a),l=Ia(u=>{r(u),s.onImageLoadingStatusChange(u)});return ji(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?y.jsx(Ln.img,{...a,ref:t,src:i}):null});rA.displayName=iA;var aA="AvatarFallback",sA=_.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:i,...r}=e,a=tA(aA,n),[s,o]=_.useState(i===void 0);return _.useEffect(()=>{if(i!==void 0){const l=window.setTimeout(()=>o(!0),i);return()=>window.clearTimeout(l)}},[i]),s&&a.imageLoadingStatus!=="loaded"?y.jsx(Ln.span,{...r,ref:t}):null});sA.displayName=aA;function oA(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Pq(e,{referrerPolicy:t,crossOrigin:n}){const i=Dq(),r=_.useRef(null),a=i?(r.current||(r.current=new window.Image),r.current):null,[s,o]=_.useState(()=>oA(a,e));return ji(()=>{o(oA(a,e))},[a,e]),ji(()=>{const l=d=>()=>{o(d)};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 lA=nA,uA=rA,cA=sA;function K0(){return K0=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},K0.apply(null,arguments)}function Bq(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 dA,fA;typeof document<"u"&&(dA=document),typeof window<"u"&&(fA=window);var jq=pn.createContext({document:dA,window:fA}),zq=["children","head","initialContent","src","mountTarget"],Q0=_.forwardRef((e,t)=>{var{children:n,head:i,initialContent:r,src:a,mountTarget:s}=e,o=Bq(e,zq),[l,u]=_.useState(!1),[c,d]=_.useState(),f=T=>{T&&d(T)};_.useImperativeHandle(t,()=>c,[c]);var h=r||"<!DOCTYPE html><html><head></head><body></body></html>",g=()=>c?c.contentDocument:null,b=()=>{var T=g();return s?T==null?void 0:T.querySelector(s):T==null?void 0:T.body},E=_.useRef(),m=_.useCallback(T=>{E.current=T;var S=()=>setInterval(()=>m(T),500);clearInterval(S()),l||u(!0)},[l]);_.useMemo(()=>{!a&&o.onLoad&&l&&o.onLoad(E.current)},[l]),_.useEffect(()=>{if(c&&!a){var T;(T=c.contentWindow)==null||T.addEventListener("DOMContentLoaded",m)}return()=>{if(c&&!a){var S;(S=c.contentWindow)==null||S.removeEventListener("DOMContentLoaded",m)}}},[c,m]);var v=()=>{var T,S=g(),A=(T=g())==null?void 0:T.head,D=b(),L=(S==null?void 0:S.defaultView)||(S==null?void 0:S.parentView),B=y.jsx(jq.Provider,{value:{document:S,window:L},children:n});return[A&&i&&ml.createPortal(i,A),c&&D&&ml.createPortal(B,D)]},x={};return a?(delete x.srcDoc,x.src=a,x.onLoad=o.onLoad):x.srcDoc=h,y.jsx("iframe",K0({title:o.title,ref:f},o,{onLoad:m},x,{children:l&&v()}))});Q0.displayName="IFrame";var Uq=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"}),Hq="VisuallyHidden",hA=_.forwardRef((e,t)=>y.jsx(Ln.span,{...e,ref:t,style:{...Uq,...e.style}}));hA.displayName=Hq;var Fq=hA,[Qd,gJ]=Oc("Tooltip",[Uc]),Wd=Uc(),pA="TooltipProvider",Vq=700,W0="tooltip.open",[Yq,Z0]=Qd(pA),mA=e=>{const{__scopeTooltip:t,delayDuration:n=Vq,skipDelayDuration:i=300,disableHoverableContent:r=!1,children:a}=e,s=_.useRef(!0),o=_.useRef(!1),l=_.useRef(0);return _.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),y.jsx(Yq,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:_.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:_.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:o,onPointerInTransitChange:_.useCallback(u=>{o.current=u},[]),disableHoverableContent:r,children:a})};mA.displayName=pA;var fu="Tooltip",[qq,Zd]=Qd(fu),gA=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:r,onOpenChange:a,disableHoverableContent:s,delayDuration:o}=e,l=Z0(fu,e.__scopeTooltip),u=Wd(t),[c,d]=_.useState(null),f=zv(),h=_.useRef(0),g=s??l.disableHoverableContent,b=o??l.delayDuration,E=_.useRef(!1),[m,v]=xy({prop:i,defaultProp:r??!1,onChange:D=>{D?(l.onOpen(),document.dispatchEvent(new CustomEvent(W0))):l.onClose(),a==null||a(D)},caller:fu}),x=_.useMemo(()=>m?E.current?"delayed-open":"instant-open":"closed",[m]),T=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,E.current=!1,v(!0)},[v]),S=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v(!1)},[v]),A=_.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{E.current=!0,v(!0),h.current=0},b)},[b,v]);return _.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),y.jsx(by,{...u,children:y.jsx(qq,{scope:t,contentId:f,open:m,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:_.useCallback(()=>{l.isOpenDelayedRef.current?A():T()},[l.isOpenDelayedRef,A,T]),onTriggerLeave:_.useCallback(()=>{g?S():(window.clearTimeout(h.current),h.current=0)},[S,g]),onOpen:T,onClose:S,disableHoverableContent:g,children:n})})};gA.displayName=fu;var J0="TooltipTrigger",bA=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=Zd(J0,n),a=Z0(J0,n),s=Wd(n),o=_.useRef(null),l=Bi(t,o,r.onTriggerChange),u=_.useRef(!1),c=_.useRef(!1),d=_.useCallback(()=>u.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(mp,{asChild:!0,...s,children:y.jsx(Ln.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...i,ref:l,onPointerMove:_n(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(r.onTriggerEnter(),c.current=!0)}),onPointerLeave:_n(e.onPointerLeave,()=>{r.onTriggerLeave(),c.current=!1}),onPointerDown:_n(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:_n(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:_n(e.onBlur,r.onClose),onClick:_n(e.onClick,r.onClose)})})});bA.displayName=J0;var Gq="TooltipPortal",[bJ,$q]=Qd(Gq,{forceMount:void 0}),mo="TooltipContent",vA=_.forwardRef((e,t)=>{const n=$q(mo,e.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...a}=e,s=Zd(mo,e.__scopeTooltip);return y.jsx(gp,{present:i||s.open,children:s.disableHoverableContent?y.jsx(yA,{side:r,...a,ref:t}):y.jsx(Xq,{side:r,...a,ref:t})})}),Xq=_.forwardRef((e,t)=>{const n=Zd(mo,e.__scopeTooltip),i=Z0(mo,e.__scopeTooltip),r=_.useRef(null),a=Bi(t,r),[s,o]=_.useState(null),{trigger:l,onClose:u}=n,c=r.current,{onPointerInTransitChange:d}=i,f=_.useCallback(()=>{o(null),d(!1)},[d]),h=_.useCallback((g,b)=>{const E=g.currentTarget,m={x:g.clientX,y:g.clientY},v=Jq(m,E.getBoundingClientRect()),x=eG(m,v),T=tG(b.getBoundingClientRect()),S=iG([...x,...T]);o(S),d(!0)},[d]);return _.useEffect(()=>()=>f(),[f]),_.useEffect(()=>{if(l&&c){const g=E=>h(E,c),b=E=>h(E,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[l,c,h,f]),_.useEffect(()=>{if(s){const g=b=>{const E=b.target,m={x:b.clientX,y:b.clientY},v=(l==null?void 0:l.contains(E))||(c==null?void 0:c.contains(E)),x=!nG(m,s);v?f():x&&(f(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,s,u,f]),y.jsx(yA,{...e,ref:a})}),[Kq,Qq]=Qd(fu,{isInside:!1}),Wq=jN("TooltipContent"),yA=_.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":r,onEscapeKeyDown:a,onPointerDownOutside:s,...o}=e,l=Zd(mo,n),u=Wd(n),{onClose:c}=l;return _.useEffect(()=>(document.addEventListener(W0,c),()=>document.removeEventListener(W0,c)),[c]),_.useEffect(()=>{if(l.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),y.jsx(Wh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:y.jsxs(vy,{"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:[y.jsx(Wq,{children:i}),y.jsx(Kq,{scope:n,isInside:!0,children:y.jsx(Fq,{id:l.contentId,role:"tooltip",children:r||i})})]})})});vA.displayName=mo;var xA="TooltipArrow",Zq=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=Wd(n);return Qq(xA,n).isInside?null:y.jsx(yy,{...r,...i,ref:t})});Zq.displayName=xA;function Jq(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 eG(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 tG(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 nG(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,d=l.x,f=l.y;c>i!=f>i&&n<(d-u)*(i-c)/(f-c)+u&&(r=!r)}return r}function iG(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),rG(t)}function rG(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 aG=mA,sG=gA,oG=bA,_A=vA;function Jd(e){"@babel/helpers - typeof";return Jd=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},Jd(e)}var lG=/^\s+/,uG=/\s+$/;function de(e,t){if(e=e||"",t=t||{},e instanceof de)return e;if(!(this instanceof de))return new de(e,t);var n=cG(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}de.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=CA(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=TA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=TA(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=EA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=EA(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 wA(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return pG(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:AG[wA(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+SA(this._r,this._g,this._b,this._a),i=n,r=this._gradientType?"GradientType = 1, ":"";if(t){var a=de(t);i="#"+SA(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 de(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(vG,arguments)},brighten:function(){return this._applyModification(yG,arguments)},darken:function(){return this._applyModification(xG,arguments)},desaturate:function(){return this._applyModification(mG,arguments)},saturate:function(){return this._applyModification(gG,arguments)},greyscale:function(){return this._applyModification(bG,arguments)},spin:function(){return this._applyModification(_G,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(wG,arguments)},complement:function(){return this._applyCombination(EG,arguments)},monochromatic:function(){return this._applyCombination(SG,arguments)},splitcomplement:function(){return this._applyCombination(TG,arguments)},triad:function(){return this._applyCombination(AA,[3])},tetrad:function(){return this._applyCombination(AA,[4])}},de.fromRatio=function(e,t){if(Jd(e)=="object"){var n={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?n[i]=e[i]:n[i]=hu(e[i]));e=n}return de(e,t)};function cG(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=NG(e)),Jd(e)=="object"&&(gr(e.r)&&gr(e.g)&&gr(e.b)?(t=dG(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gr(e.h)&&gr(e.s)&&gr(e.v)?(i=hu(e.s),r=hu(e.v),t=hG(e.h,i,r),s=!0,o="hsv"):gr(e.h)&&gr(e.s)&&gr(e.l)&&(i=hu(e.s),a=hu(e.l),t=fG(e.h,i,a),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=CA(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 dG(e,t,n){return{r:ct(e,255)*255,g:ct(t,255)*255,b:ct(n,255)*255}}function EA(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 fG(e,t,n){var i,r,a;e=ct(e,360),t=ct(t,100),n=ct(n,100);function s(u,c,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?u+(c-u)*6*d:d<1/2?c:d<2/3?u+(c-u)*(2/3-d)*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 TA(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 hG(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],d=[a,a,o,n,n,s][l];return{r:u*255,g:c*255,b:d*255}}function wA(e,t,n,i){var r=[Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(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 pG(e,t,n,i,r){var a=[Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16)),Oi(kA(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 SA(e,t,n,i){var r=[Oi(kA(i)),Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16))];return r.join("")}de.equals=function(e,t){return!e||!t?!1:de(e).toRgbString()==de(t).toRgbString()},de.random=function(){return de.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function mG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.s-=t/100,n.s=ef(n.s),de(n)}function gG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.s+=t/100,n.s=ef(n.s),de(n)}function bG(e){return de(e).desaturate(100)}function vG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.l+=t/100,n.l=ef(n.l),de(n)}function yG(e,t){t=t===0?0:t||10;var n=de(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)))),de(n)}function xG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.l-=t/100,n.l=ef(n.l),de(n)}function _G(e,t){var n=de(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,de(n)}function EG(e){var t=de(e).toHsl();return t.h=(t.h+180)%360,de(t)}function AA(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=de(e).toHsl(),i=[de(e)],r=360/t,a=1;a<t;a++)i.push(de({h:(n.h+a*r)%360,s:n.s,l:n.l}));return i}function TG(e){var t=de(e).toHsl(),n=t.h;return[de(e),de({h:(n+72)%360,s:t.s,l:t.l}),de({h:(n+216)%360,s:t.s,l:t.l})]}function wG(e,t,n){t=t||6,n=n||30;var i=de(e).toHsl(),r=360/n,a=[de(e)];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,a.push(de(i));return a}function SG(e,t){t=t||6;for(var n=de(e).toHsv(),i=n.h,r=n.s,a=n.v,s=[],o=1/t;t--;)s.push(de({h:i,s:r,v:a})),a=(a+o)%1;return s}de.mix=function(e,t,n){n=n===0?0:n||50;var i=de(e).toRgb(),r=de(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 de(s)},de.readability=function(e,t){var n=de(e),i=de(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},de.isReadable=function(e,t,n){var i=de.readability(e,t),r,a;switch(a=!1,r=RG(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},de.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=de.readability(e,t[u]),a>r&&(r=a,i=de(t[u]));return de.isReadable(e,i,{level:o,size:l})||!s?i:(n.includeFallbackColors=!1,de.mostReadable(e,["#fff","#000"],n))};var eg=de.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"},AG=de.hexNames=CG(eg);function CG(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function CA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ct(e,t){kG(e)&&(e="100%");var n=OG(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 ef(e){return Math.min(1,Math.max(0,e))}function Fn(e){return parseInt(e,16)}function kG(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function OG(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Oi(e){return e.length==1?"0"+e:""+e}function hu(e){return e<=1&&(e=e*100+"%"),e}function kA(e){return Math.round(parseFloat(e)*255).toString(16)}function OA(e){return Fn(e)/255}var Ni=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 gr(e){return!!Ni.CSS_UNIT.exec(e)}function NG(e){e=e.replace(lG,"").replace(uG,"").toLowerCase();var t=!1;if(eg[e])e=eg[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Ni.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Ni.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ni.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Ni.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ni.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Ni.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ni.hex8.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),a:OA(n[4]),format:t?"name":"hex8"}:(n=Ni.hex6.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),format:t?"name":"hex"}:(n=Ni.hex4.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),a:OA(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Ni.hex3.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function RG(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}}var NA={exports:{}},DG="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",MG=DG,LG=MG;function RA(){}function DA(){}DA.resetWarningCache=RA;var IG=function(){function e(i,r,a,s,o,l){if(l!==LG){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:DA,resetWarningCache:RA};return n.PropTypes=n,n};NA.exports=IG();var PG=NA.exports;const Ke=hl(PG),BG=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 go(e,t,n){const i=jG(e),{webkitRelativePath:r}=e,a=typeof t=="string"?t:typeof r=="string"&&r.length>0?r:`./${e.name}`;return typeof i.path!="string"&&MA(i,"path",a),MA(i,"relativePath",a),i}function jG(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),r=BG.get(i);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}function MA(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const zG=[".DS_Store","Thumbs.db"];function UG(e){return ur(this,void 0,void 0,function*(){return tf(e)&&HG(e.dataTransfer)?qG(e.dataTransfer,e.type):FG(e)?VG(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?YG(e):[]})}function HG(e){return tf(e)}function FG(e){return tf(e)&&tf(e.target)}function tf(e){return typeof e=="object"&&e!==null}function VG(e){return tg(e.target.files).map(t=>go(t))}function YG(e){return ur(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>go(n))})}function qG(e,t){return ur(this,void 0,void 0,function*(){if(e.items){const n=tg(e.items).filter(r=>r.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(GG));return LA(IA(i))}return LA(tg(e.files).map(n=>go(n)))})}function LA(e){return e.filter(t=>zG.indexOf(t.name)===-1)}function tg(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 GG(e){if(typeof e.webkitGetAsEntry!="function")return PA(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?BA(t):PA(e,t)}function IA(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?IA(n):[n]],[])}function PA(e,t){return ur(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,go(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return go(i,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function $G(e){return ur(this,void 0,void 0,function*(){return e.isDirectory?BA(e):XG(e)})}function BA(e){const t=e.createReader();return new Promise((n,i)=>{const r=[];function a(){t.readEntries(s=>ur(this,void 0,void 0,function*(){if(s.length){const o=Promise.all(s.map($G));r.push(o),a()}else try{const o=yield Promise.all(r);n(o)}catch(o){i(o)}}),s=>{i(s)})}a()})}function XG(e){return ur(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const r=go(i,e.fullPath);t(r)},i=>{n(i)})})})}var ng=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 jA(e){return WG(e)||QG(e)||FA(e)||KG()}function KG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
298
+ */var po=E;function Eq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tq=typeof Object.is=="function"?Object.is:Eq,wq=po.useState,Sq=po.useEffect,Aq=po.useLayoutEffect,Cq=po.useDebugValue;function kq(e,t){var n=t(),i=wq({inst:{value:n,getSnapshot:t}}),r=i[0].inst,a=i[1];return Aq(function(){r.value=n,r.getSnapshot=t,$0(r)&&a({inst:r})},[e,n,t]),Sq(function(){return $0(r)&&a({inst:r}),e(function(){$0(r)&&a({inst:r})})},[e]),Cq(n),n}function $0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tq(e,n)}catch{return!0}}function Oq(e,t){return t()}var Nq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Oq:kq;eA.useSyncExternalStore=po.useSyncExternalStore!==void 0?po.useSyncExternalStore:Nq,JS.exports=eA;var Rq=JS.exports;function Dq(){return Rq.useSyncExternalStore(Mq,()=>!0,()=>!1)}function Mq(){return()=>{}}var X0="Avatar",[Lq,mJ]=Oc(X0),[Iq,tA]=Lq(X0),nA=E.forwardRef((e,t)=>{const{__scopeAvatar:n,...i}=e,[r,a]=E.useState("idle");return y.jsx(Iq,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:a,children:y.jsx(Ln.span,{...i,ref:t})})});nA.displayName=X0;var iA="AvatarImage",rA=E.forwardRef((e,t)=>{const{__scopeAvatar:n,src:i,onLoadingStatusChange:r=()=>{},...a}=e,s=tA(iA,n),o=Pq(i,a),l=Ia(u=>{r(u),s.onImageLoadingStatusChange(u)});return ji(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?y.jsx(Ln.img,{...a,ref:t,src:i}):null});rA.displayName=iA;var aA="AvatarFallback",sA=E.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:i,...r}=e,a=tA(aA,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"?y.jsx(Ln.span,{...r,ref:t}):null});sA.displayName=aA;function oA(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Pq(e,{referrerPolicy:t,crossOrigin:n}){const i=Dq(),r=E.useRef(null),a=i?(r.current||(r.current=new window.Image),r.current):null,[s,o]=E.useState(()=>oA(a,e));return ji(()=>{o(oA(a,e))},[a,e]),ji(()=>{const l=d=>()=>{o(d)};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 lA=nA,uA=rA,cA=sA;function K0(){return K0=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},K0.apply(null,arguments)}function Bq(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 dA,fA;typeof document<"u"&&(dA=document),typeof window<"u"&&(fA=window);var jq=pn.createContext({document:dA,window:fA}),zq=["children","head","initialContent","src","mountTarget"],Q0=E.forwardRef((e,t)=>{var{children:n,head:i,initialContent:r,src:a,mountTarget:s}=e,o=Bq(e,zq),[l,u]=E.useState(!1),[c,d]=E.useState(),f=T=>{T&&d(T)};E.useImperativeHandle(t,()=>c,[c]);var h=r||"<!DOCTYPE html><html><head></head><body></body></html>",g=()=>c?c.contentDocument:null,b=()=>{var T=g();return s?T==null?void 0:T.querySelector(s):T==null?void 0:T.body},_=E.useRef(),m=E.useCallback(T=>{_.current=T;var S=()=>setInterval(()=>m(T),500);clearInterval(S()),l||u(!0)},[l]);E.useMemo(()=>{!a&&o.onLoad&&l&&o.onLoad(_.current)},[l]),E.useEffect(()=>{if(c&&!a){var T;(T=c.contentWindow)==null||T.addEventListener("DOMContentLoaded",m)}return()=>{if(c&&!a){var S;(S=c.contentWindow)==null||S.removeEventListener("DOMContentLoaded",m)}}},[c,m]);var v=()=>{var T,S=g(),A=(T=g())==null?void 0:T.head,D=b(),L=(S==null?void 0:S.defaultView)||(S==null?void 0:S.parentView),B=y.jsx(jq.Provider,{value:{document:S,window:L},children:n});return[A&&i&&ml.createPortal(i,A),c&&D&&ml.createPortal(B,D)]},x={};return a?(delete x.srcDoc,x.src=a,x.onLoad=o.onLoad):x.srcDoc=h,y.jsx("iframe",K0({title:o.title,ref:f},o,{onLoad:m},x,{children:l&&v()}))});Q0.displayName="IFrame";var Uq=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"}),Hq="VisuallyHidden",hA=E.forwardRef((e,t)=>y.jsx(Ln.span,{...e,ref:t,style:{...Uq,...e.style}}));hA.displayName=Hq;var Fq=hA,[Qd,gJ]=Oc("Tooltip",[Uc]),Wd=Uc(),pA="TooltipProvider",Vq=700,W0="tooltip.open",[Yq,Z0]=Qd(pA),mA=e=>{const{__scopeTooltip:t,delayDuration:n=Vq,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)},[]),y.jsx(Yq,{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})};mA.displayName=pA;var fu="Tooltip",[qq,Zd]=Qd(fu),gA=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:r,onOpenChange:a,disableHoverableContent:s,delayDuration:o}=e,l=Z0(fu,e.__scopeTooltip),u=Wd(t),[c,d]=E.useState(null),f=zv(),h=E.useRef(0),g=s??l.disableHoverableContent,b=o??l.delayDuration,_=E.useRef(!1),[m,v]=xy({prop:i,defaultProp:r??!1,onChange:D=>{D?(l.onOpen(),document.dispatchEvent(new CustomEvent(W0))):l.onClose(),a==null||a(D)},caller:fu}),x=E.useMemo(()=>m?_.current?"delayed-open":"instant-open":"closed",[m]),T=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,_.current=!1,v(!0)},[v]),S=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v(!1)},[v]),A=E.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{_.current=!0,v(!0),h.current=0},b)},[b,v]);return E.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),y.jsx(by,{...u,children:y.jsx(qq,{scope:t,contentId:f,open:m,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:E.useCallback(()=>{l.isOpenDelayedRef.current?A():T()},[l.isOpenDelayedRef,A,T]),onTriggerLeave:E.useCallback(()=>{g?S():(window.clearTimeout(h.current),h.current=0)},[S,g]),onOpen:T,onClose:S,disableHoverableContent:g,children:n})})};gA.displayName=fu;var J0="TooltipTrigger",bA=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=Zd(J0,n),a=Z0(J0,n),s=Wd(n),o=E.useRef(null),l=Bi(t,o,r.onTriggerChange),u=E.useRef(!1),c=E.useRef(!1),d=E.useCallback(()=>u.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(mp,{asChild:!0,...s,children:y.jsx(Ln.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...i,ref:l,onPointerMove:_n(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(r.onTriggerEnter(),c.current=!0)}),onPointerLeave:_n(e.onPointerLeave,()=>{r.onTriggerLeave(),c.current=!1}),onPointerDown:_n(e.onPointerDown,()=>{r.open&&r.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:_n(e.onFocus,()=>{u.current||r.onOpen()}),onBlur:_n(e.onBlur,r.onClose),onClick:_n(e.onClick,r.onClose)})})});bA.displayName=J0;var Gq="TooltipPortal",[bJ,$q]=Qd(Gq,{forceMount:void 0}),mo="TooltipContent",vA=E.forwardRef((e,t)=>{const n=$q(mo,e.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...a}=e,s=Zd(mo,e.__scopeTooltip);return y.jsx(gp,{present:i||s.open,children:s.disableHoverableContent?y.jsx(yA,{side:r,...a,ref:t}):y.jsx(Xq,{side:r,...a,ref:t})})}),Xq=E.forwardRef((e,t)=>{const n=Zd(mo,e.__scopeTooltip),i=Z0(mo,e.__scopeTooltip),r=E.useRef(null),a=Bi(t,r),[s,o]=E.useState(null),{trigger:l,onClose:u}=n,c=r.current,{onPointerInTransitChange:d}=i,f=E.useCallback(()=>{o(null),d(!1)},[d]),h=E.useCallback((g,b)=>{const _=g.currentTarget,m={x:g.clientX,y:g.clientY},v=Jq(m,_.getBoundingClientRect()),x=eG(m,v),T=tG(b.getBoundingClientRect()),S=iG([...x,...T]);o(S),d(!0)},[d]);return E.useEffect(()=>()=>f(),[f]),E.useEffect(()=>{if(l&&c){const g=_=>h(_,c),b=_=>h(_,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[l,c,h,f]),E.useEffect(()=>{if(s){const g=b=>{const _=b.target,m={x:b.clientX,y:b.clientY},v=(l==null?void 0:l.contains(_))||(c==null?void 0:c.contains(_)),x=!nG(m,s);v?f():x&&(f(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,s,u,f]),y.jsx(yA,{...e,ref:a})}),[Kq,Qq]=Qd(fu,{isInside:!1}),Wq=jN("TooltipContent"),yA=E.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":r,onEscapeKeyDown:a,onPointerDownOutside:s,...o}=e,l=Zd(mo,n),u=Wd(n),{onClose:c}=l;return E.useEffect(()=>(document.addEventListener(W0,c),()=>document.removeEventListener(W0,c)),[c]),E.useEffect(()=>{if(l.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),y.jsx(Wh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:y.jsxs(vy,{"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:[y.jsx(Wq,{children:i}),y.jsx(Kq,{scope:n,isInside:!0,children:y.jsx(Fq,{id:l.contentId,role:"tooltip",children:r||i})})]})})});vA.displayName=mo;var xA="TooltipArrow",Zq=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=Wd(n);return Qq(xA,n).isInside?null:y.jsx(yy,{...r,...i,ref:t})});Zq.displayName=xA;function Jq(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 eG(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 tG(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 nG(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,d=l.x,f=l.y;c>i!=f>i&&n<(d-u)*(i-c)/(f-c)+u&&(r=!r)}return r}function iG(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),rG(t)}function rG(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 aG=mA,sG=gA,oG=bA,_A=vA;function Jd(e){"@babel/helpers - typeof";return Jd=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},Jd(e)}var lG=/^\s+/,uG=/\s+$/;function de(e,t){if(e=e||"",t=t||{},e instanceof de)return e;if(!(this instanceof de))return new de(e,t);var n=cG(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}de.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=CA(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=TA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=TA(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=EA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=EA(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 wA(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return pG(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:AG[wA(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+SA(this._r,this._g,this._b,this._a),i=n,r=this._gradientType?"GradientType = 1, ":"";if(t){var a=de(t);i="#"+SA(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 de(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(vG,arguments)},brighten:function(){return this._applyModification(yG,arguments)},darken:function(){return this._applyModification(xG,arguments)},desaturate:function(){return this._applyModification(mG,arguments)},saturate:function(){return this._applyModification(gG,arguments)},greyscale:function(){return this._applyModification(bG,arguments)},spin:function(){return this._applyModification(_G,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(wG,arguments)},complement:function(){return this._applyCombination(EG,arguments)},monochromatic:function(){return this._applyCombination(SG,arguments)},splitcomplement:function(){return this._applyCombination(TG,arguments)},triad:function(){return this._applyCombination(AA,[3])},tetrad:function(){return this._applyCombination(AA,[4])}},de.fromRatio=function(e,t){if(Jd(e)=="object"){var n={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?n[i]=e[i]:n[i]=hu(e[i]));e=n}return de(e,t)};function cG(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=NG(e)),Jd(e)=="object"&&(gr(e.r)&&gr(e.g)&&gr(e.b)?(t=dG(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gr(e.h)&&gr(e.s)&&gr(e.v)?(i=hu(e.s),r=hu(e.v),t=hG(e.h,i,r),s=!0,o="hsv"):gr(e.h)&&gr(e.s)&&gr(e.l)&&(i=hu(e.s),a=hu(e.l),t=fG(e.h,i,a),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=CA(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 dG(e,t,n){return{r:ct(e,255)*255,g:ct(t,255)*255,b:ct(n,255)*255}}function EA(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 fG(e,t,n){var i,r,a;e=ct(e,360),t=ct(t,100),n=ct(n,100);function s(u,c,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?u+(c-u)*6*d:d<1/2?c:d<2/3?u+(c-u)*(2/3-d)*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 TA(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 hG(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],d=[a,a,o,n,n,s][l];return{r:u*255,g:c*255,b:d*255}}function wA(e,t,n,i){var r=[Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(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 pG(e,t,n,i,r){var a=[Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16)),Oi(kA(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 SA(e,t,n,i){var r=[Oi(kA(i)),Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16))];return r.join("")}de.equals=function(e,t){return!e||!t?!1:de(e).toRgbString()==de(t).toRgbString()},de.random=function(){return de.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function mG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.s-=t/100,n.s=ef(n.s),de(n)}function gG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.s+=t/100,n.s=ef(n.s),de(n)}function bG(e){return de(e).desaturate(100)}function vG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.l+=t/100,n.l=ef(n.l),de(n)}function yG(e,t){t=t===0?0:t||10;var n=de(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)))),de(n)}function xG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.l-=t/100,n.l=ef(n.l),de(n)}function _G(e,t){var n=de(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,de(n)}function EG(e){var t=de(e).toHsl();return t.h=(t.h+180)%360,de(t)}function AA(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=de(e).toHsl(),i=[de(e)],r=360/t,a=1;a<t;a++)i.push(de({h:(n.h+a*r)%360,s:n.s,l:n.l}));return i}function TG(e){var t=de(e).toHsl(),n=t.h;return[de(e),de({h:(n+72)%360,s:t.s,l:t.l}),de({h:(n+216)%360,s:t.s,l:t.l})]}function wG(e,t,n){t=t||6,n=n||30;var i=de(e).toHsl(),r=360/n,a=[de(e)];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,a.push(de(i));return a}function SG(e,t){t=t||6;for(var n=de(e).toHsv(),i=n.h,r=n.s,a=n.v,s=[],o=1/t;t--;)s.push(de({h:i,s:r,v:a})),a=(a+o)%1;return s}de.mix=function(e,t,n){n=n===0?0:n||50;var i=de(e).toRgb(),r=de(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 de(s)},de.readability=function(e,t){var n=de(e),i=de(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},de.isReadable=function(e,t,n){var i=de.readability(e,t),r,a;switch(a=!1,r=RG(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},de.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=de.readability(e,t[u]),a>r&&(r=a,i=de(t[u]));return de.isReadable(e,i,{level:o,size:l})||!s?i:(n.includeFallbackColors=!1,de.mostReadable(e,["#fff","#000"],n))};var eg=de.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"},AG=de.hexNames=CG(eg);function CG(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function CA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ct(e,t){kG(e)&&(e="100%");var n=OG(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 ef(e){return Math.min(1,Math.max(0,e))}function Fn(e){return parseInt(e,16)}function kG(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function OG(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Oi(e){return e.length==1?"0"+e:""+e}function hu(e){return e<=1&&(e=e*100+"%"),e}function kA(e){return Math.round(parseFloat(e)*255).toString(16)}function OA(e){return Fn(e)/255}var Ni=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 gr(e){return!!Ni.CSS_UNIT.exec(e)}function NG(e){e=e.replace(lG,"").replace(uG,"").toLowerCase();var t=!1;if(eg[e])e=eg[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Ni.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Ni.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ni.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Ni.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ni.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Ni.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ni.hex8.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),a:OA(n[4]),format:t?"name":"hex8"}:(n=Ni.hex6.exec(e))?{r:Fn(n[1]),g:Fn(n[2]),b:Fn(n[3]),format:t?"name":"hex"}:(n=Ni.hex4.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),a:OA(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Ni.hex3.exec(e))?{r:Fn(n[1]+""+n[1]),g:Fn(n[2]+""+n[2]),b:Fn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function RG(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}}var NA={exports:{}},DG="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",MG=DG,LG=MG;function RA(){}function DA(){}DA.resetWarningCache=RA;var IG=function(){function e(i,r,a,s,o,l){if(l!==LG){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:DA,resetWarningCache:RA};return n.PropTypes=n,n};NA.exports=IG();var PG=NA.exports;const Ke=hl(PG),BG=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 go(e,t,n){const i=jG(e),{webkitRelativePath:r}=e,a=typeof t=="string"?t:typeof r=="string"&&r.length>0?r:`./${e.name}`;return typeof i.path!="string"&&MA(i,"path",a),MA(i,"relativePath",a),i}function jG(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),r=BG.get(i);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}function MA(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const zG=[".DS_Store","Thumbs.db"];function UG(e){return ur(this,void 0,void 0,function*(){return tf(e)&&HG(e.dataTransfer)?qG(e.dataTransfer,e.type):FG(e)?VG(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?YG(e):[]})}function HG(e){return tf(e)}function FG(e){return tf(e)&&tf(e.target)}function tf(e){return typeof e=="object"&&e!==null}function VG(e){return tg(e.target.files).map(t=>go(t))}function YG(e){return ur(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>go(n))})}function qG(e,t){return ur(this,void 0,void 0,function*(){if(e.items){const n=tg(e.items).filter(r=>r.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(GG));return LA(IA(i))}return LA(tg(e.files).map(n=>go(n)))})}function LA(e){return e.filter(t=>zG.indexOf(t.name)===-1)}function tg(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 GG(e){if(typeof e.webkitGetAsEntry!="function")return PA(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?BA(t):PA(e,t)}function IA(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?IA(n):[n]],[])}function PA(e,t){return ur(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,go(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return go(i,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function $G(e){return ur(this,void 0,void 0,function*(){return e.isDirectory?BA(e):XG(e)})}function BA(e){const t=e.createReader();return new Promise((n,i)=>{const r=[];function a(){t.readEntries(s=>ur(this,void 0,void 0,function*(){if(s.length){const o=Promise.all(s.map($G));r.push(o),a()}else try{const o=yield Promise.all(r);n(o)}catch(o){i(o)}}),s=>{i(s)})}a()})}function XG(e){return ur(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const r=go(i,e.fullPath);t(r)},i=>{n(i)})})})}var ng=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 jA(e){return WG(e)||QG(e)||FA(e)||KG()}function KG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
299
299
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WG(e){if(Array.isArray(e))return ig(e)}function zA(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 UA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zA(Object(n),!0).forEach(function(i){HA(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function HA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pu(e,t){return e$(e)||JG(e,t)||FA(e,t)||ZG()}function ZG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
300
300
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FA(e,t){if(e){if(typeof e=="string")return ig(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 ig(e,t)}}function ig(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 JG(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 e$(e){if(Array.isArray(e))return e}var t$=typeof ng=="function"?ng:ng.default,n$="file-invalid-type",i$="file-too-large",r$="file-too-small",a$="too-many-files",s$=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:n$,message:"File type must be ".concat(i)}},VA=function(t){return{code:i$,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},YA=function(t){return{code:r$,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},o$={code:a$,message:"Too many files"};function qA(e,t){var n=e.type==="application/x-moz-file"||t$(e,t);return[n,n?null:s$(t)]}function GA(e,t,n){if(Ja(e.size))if(Ja(t)&&Ja(n)){if(e.size>n)return[!1,VA(n)];if(e.size<t)return[!1,YA(t)]}else{if(Ja(t)&&e.size<t)return[!1,YA(t)];if(Ja(n)&&e.size>n)return[!1,VA(n)]}return[!0,null]}function Ja(e){return e!=null}function l$(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=qA(l,n),c=pu(u,1),d=c[0],f=GA(l,i,r),h=pu(f,1),g=h[0],b=o?o(l):null;return d&&g&&!b})}function nf(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function rf(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 $A(e){e.preventDefault()}function u$(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function c$(e){return e.indexOf("Edge/")!==-1}function d$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return u$(e)||c$(e)}function Ki(){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!nf(i)&&o&&o.apply(void 0,[i].concat(a)),nf(i)})}}function f$(){return"showOpenFilePicker"in window}function h$(e){if(Ja(e)){var t=Object.entries(e).filter(function(n){var i=pu(n,2),r=i[0],a=i[1],s=!0;return XA(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(KA))&&(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,i){var r=pu(i,2),a=r[0],s=r[1];return UA(UA({},n),{},HA({},a,s))},{});return[{description:"Files",accept:t}]}return e}function p$(e){if(Ja(e))return Object.entries(e).reduce(function(t,n){var i=pu(n,2),r=i[0],a=i[1];return[].concat(jA(t),[r],jA(a))},[]).filter(function(t){return XA(t)||KA(t)}).join(",")}function m$(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function g$(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function XA(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function KA(e){return/^.*\.[\w]+$/.test(e)}var b$=["children"],v$=["open"],y$=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],x$=["refKey","onChange","onClick"];function _$(e){return w$(e)||T$(e)||QA(e)||E$()}function E$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
301
301
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function w$(e){if(Array.isArray(e))return ag(e)}function rg(e,t){return C$(e)||A$(e,t)||QA(e,t)||S$()}function S$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
302
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QA(e,t){if(e){if(typeof e=="string")return ag(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 ag(e,t)}}function ag(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 A$(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 C$(e){if(Array.isArray(e))return e}function WA(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 pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WA(Object(n),!0).forEach(function(i){sg(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function sg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function af(e,t){if(e==null)return{};var n=k$(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 k$(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 og=_.forwardRef(function(e,t){var n=e.children,i=af(e,b$),r=JA(i),a=r.open,s=af(r,v$);return _.useImperativeHandle(t,function(){return{open:a}},[a]),pn.createElement(_.Fragment,null,n(pt(pt({},s),{},{open:a})))});og.displayName="Dropzone";var ZA={disabled:!1,getFilesFromEvent:UG,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};og.defaultProps=ZA,og.propTypes={children:Ke.func,accept:Ke.objectOf(Ke.arrayOf(Ke.string)),multiple:Ke.bool,preventDropOnDocument:Ke.bool,noClick:Ke.bool,noKeyboard:Ke.bool,noDrag:Ke.bool,noDragEventsBubbling:Ke.bool,minSize:Ke.number,maxSize:Ke.number,maxFiles:Ke.number,disabled:Ke.bool,getFilesFromEvent:Ke.func,onFileDialogCancel:Ke.func,onFileDialogOpen:Ke.func,useFsAccessApi:Ke.bool,autoFocus:Ke.bool,onDragEnter:Ke.func,onDragLeave:Ke.func,onDragOver:Ke.func,onDrop:Ke.func,onDropAccepted:Ke.func,onDropRejected:Ke.func,onError:Ke.func,validator:Ke.func};var lg={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function JA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=pt(pt({},ZA),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,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,E=t.onFileDialogOpen,m=t.useFsAccessApi,v=t.autoFocus,x=t.preventDropOnDocument,T=t.noClick,S=t.noKeyboard,A=t.noDrag,D=t.noDragEventsBubbling,L=t.onError,B=t.validator,O=_.useMemo(function(){return p$(n)},[n]),Y=_.useMemo(function(){return h$(n)},[n]),U=_.useMemo(function(){return typeof E=="function"?E:eC},[E]),re=_.useMemo(function(){return typeof b=="function"?b:eC},[b]),ee=_.useRef(null),Q=_.useRef(null),F=_.useReducer(O$,lg),V=rg(F,2),H=V[0],te=V[1],N=H.isFocused,be=H.isFileDialogActive,tt=_.useRef(typeof window<"u"&&window.isSecureContext&&m&&f$()),M=function(){!tt.current&&be&&setTimeout(function(){if(Q.current){var he=Q.current.files;he.length||(te({type:"closeDialog"}),re())}},300)};_.useEffect(function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}},[Q,be,re,tt]);var Be=_.useRef([]),ge=function(he){ee.current&&ee.current.contains(he.target)||(he.preventDefault(),Be.current=[])};_.useEffect(function(){return x&&(document.addEventListener("dragover",$A,!1),document.addEventListener("drop",ge,!1)),function(){x&&(document.removeEventListener("dragover",$A),document.removeEventListener("drop",ge))}},[ee,x]),_.useEffect(function(){return!i&&v&&ee.current&&ee.current.focus(),function(){}},[ee,v,i]);var je=_.useCallback(function(ne){L?L(ne):console.error(ne)},[L]),dn=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne),Be.current=[].concat(_$(Be.current),[ne.target]),rf(ne)&&Promise.resolve(r(ne)).then(function(he){if(!(nf(ne)&&!D)){var j=he.length,$=j>0&&l$({files:he,accept:O,minSize:s,maxSize:a,multiple:o,maxFiles:l,validator:B}),ue=j>0&&!$;te({isDragAccept:$,isDragReject:ue,isDragActive:!0,type:"setDraggedFiles"}),u&&u(ne)}}).catch(function(he){return je(he)})},[r,u,je,D,O,s,a,o,l,B]),We=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne);var he=rf(ne);if(he&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return he&&d&&d(ne),!1},[d,D]),$t=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne);var he=Be.current.filter(function($){return ee.current&&ee.current.contains($)}),j=he.indexOf(ne.target);j!==-1&&he.splice(j,1),Be.current=he,!(he.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),rf(ne)&&c&&c(ne))},[ee,c,D]),Mt=_.useCallback(function(ne,he){var j=[],$=[];ne.forEach(function(ue){var _e=qA(ue,O),ve=rg(_e,2),Xt=ve[0],Dn=ve[1],yn=GA(ue,s,a),Jn=rg(yn,2),Mn=Jn[0],It=Jn[1],ei=B?B(ue):null;if(Xt&&Mn&&!ei)j.push(ue);else{var xn=[Dn,It];ei&&(xn=xn.concat(ei)),$.push({file:ue,errors:xn.filter(function(Pr){return Pr})})}}),(!o&&j.length>1||o&&l>=1&&j.length>l)&&(j.forEach(function(ue){$.push({file:ue,errors:[o$]})}),j.splice(0)),te({acceptedFiles:j,fileRejections:$,isDragReject:$.length>0,type:"setFiles"}),f&&f(j,$,he),$.length>0&&g&&g($,he),j.length>0&&h&&h(j,he)},[te,o,O,s,a,l,f,h,g,B]),Ut=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne),Be.current=[],rf(ne)&&Promise.resolve(r(ne)).then(function(he){nf(ne)&&!D||Mt(he,ne)}).catch(function(he){return je(he)}),te({type:"reset"})},[r,Mt,je,D]),Lt=_.useCallback(function(){if(tt.current){te({type:"openDialog"}),U();var ne={multiple:o,types:Y};window.showOpenFilePicker(ne).then(function(he){return r(he)}).then(function(he){Mt(he,null),te({type:"closeDialog"})}).catch(function(he){m$(he)?(re(he),te({type:"closeDialog"})):g$(he)?(tt.current=!1,Q.current?(Q.current.value=null,Q.current.click()):je(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."))):je(he)});return}Q.current&&(te({type:"openDialog"}),U(),Q.current.value=null,Q.current.click())},[te,U,re,m,Mt,je,Y,o]),ae=_.useCallback(function(ne){!ee.current||!ee.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),Lt())},[ee,Lt]),yi=_.useCallback(function(){te({type:"focus"})},[]),Li=_.useCallback(function(){te({type:"blur"})},[]),Ii=_.useCallback(function(){T||(d$()?setTimeout(Lt,0):Lt())},[T,Lt]),nt=function(he){return i?null:he},fn=function(he){return S?null:nt(he)},tn=function(he){return A?null:nt(he)},At=function(he){D&&he.stopPropagation()},Es=_.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=ne.refKey,j=he===void 0?"ref":he,$=ne.role,ue=ne.onKeyDown,_e=ne.onFocus,ve=ne.onBlur,Xt=ne.onClick,Dn=ne.onDragEnter,yn=ne.onDragOver,Jn=ne.onDragLeave,Mn=ne.onDrop,It=af(ne,y$);return pt(pt(sg({onKeyDown:fn(Ki(ue,ae)),onFocus:fn(Ki(_e,yi)),onBlur:fn(Ki(ve,Li)),onClick:nt(Ki(Xt,Ii)),onDragEnter:tn(Ki(Dn,dn)),onDragOver:tn(Ki(yn,We)),onDragLeave:tn(Ki(Jn,$t)),onDrop:tn(Ki(Mn,Ut)),role:typeof $=="string"&&$!==""?$:"presentation"},j,ee),!i&&!S?{tabIndex:0}:{}),It)}},[ee,ae,yi,Li,Ii,dn,We,$t,Ut,S,A,i]),Rn=_.useCallback(function(ne){ne.stopPropagation()},[]),Ir=_.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=ne.refKey,j=he===void 0?"ref":he,$=ne.onChange,ue=ne.onClick,_e=af(ne,x$),ve=sg({accept:O,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:nt(Ki($,Ut)),onClick:nt(Ki(ue,Rn)),tabIndex:-1},j,Q);return pt(pt({},ve),_e)}},[Q,n,o,Ut,i]);return pt(pt({},H),{},{isFocused:N&&!i,getRootProps:Es,getInputProps:Ir,rootRef:ee,inputRef:Q,open:nt(Lt)})}function O$(e,t){switch(t.type){case"focus":return pt(pt({},e),{},{isFocused:!0});case"blur":return pt(pt({},e),{},{isFocused:!1});case"openDialog":return pt(pt({},lg),{},{isFileDialogActive:!0});case"closeDialog":return pt(pt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return pt(pt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return pt(pt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return pt({},lg);default:return e}}function eC(){}var tC={};const N$=pN(zR);var sf={},nC;function R$(){if(nC)return sf;nC=1,Object.defineProperty(sf,"__esModule",{value:!0});var 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 sf.default=t,sf}Object.defineProperty(tC,"__esModule",{value:!0});var ug=N$,cg=_,D$=ug.__importDefault(R$());function M$(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var i=cg.useRef(0),r=D$.default(),a=cg.useState(n),s=a[0],o=a[1],l=cg.useCallback(function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var d=++i.current;return s.loading||o(function(f){return ug.__assign(ug.__assign({},f),{loading:!0})}),e.apply(void 0,u).then(function(f){return r()&&d===i.current&&o({value:f,loading:!1}),f},function(f){return r()&&d===i.current&&o({error:f,loading:!1}),f})},t);return[s,l]}var L$=tC.default=M$,ze;(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})(ze||(ze={}));var iC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(iC||(iC={}));const oe=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),na=e=>{switch(typeof e){case"undefined":return oe.undefined;case"string":return oe.string;case"number":return Number.isNaN(e)?oe.nan:oe.number;case"boolean":return oe.boolean;case"function":return oe.function;case"bigint":return oe.bigint;case"symbol":return oe.symbol;case"object":return Array.isArray(e)?oe.array:e===null?oe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?oe.promise:typeof Map<"u"&&e instanceof Map?oe.map:typeof Set<"u"&&e instanceof Set?oe.set:typeof Date<"u"&&e instanceof Date?oe.date:oe.object;default:return oe.unknown}},J=ze.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 br 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 br))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.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()}}br.create=e=>new br(e);const dg=(e,t)=>{let n;switch(e.code){case J.invalid_type:e.received===oe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case J.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ze.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:n=`Unrecognized key(s) in object: ${ze.joinValues(e.keys,", ")}`;break;case J.invalid_union:n="Invalid input";break;case J.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ze.joinValues(e.options)}`;break;case J.invalid_enum_value:n=`Invalid enum value. Expected ${ze.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}"`:ze.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,ze.assertNever(e)}return{message:n}};let I$=dg;function P$(){return I$}const B$=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=P$(),i=B$({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===dg?void 0:dg].filter(r=>!!r)});e.common.issues.push(i)}class Vn{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 Vn.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"}),mu=e=>({status:"dirty",value:e}),ui=e=>({status:"valid",value:e}),rC=e=>e.status==="aborted",aC=e=>e.status==="dirty",bo=e=>e.status==="valid",of=e=>typeof Promise<"u"&&e instanceof Promise;var ce;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ce||(ce={}));class ia{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 sC=(e,t)=>{if(bo(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 br(e.common.issues);return this._error=n,this._error}}};function Oe(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 Pe{get description(){return this._def.description}_getType(t){return na(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:na(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Vn,ctx:{common:t.parent.common,data:t.data,parsedType:na(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(of(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:na(t)},r=this._parseSync({data:t,path:i.path,parent:i});return sC(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:na(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return bo(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=>bo(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:na(t)},r=this._parse({data:t,path:i.path,parent:i}),a=await(of(r)?r:Promise.resolve(r));return sC(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 xo({schema:this,typeName:xe.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 sa.create(this,this._def)}nullable(){return _o.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qi.create(this)}promise(){return df.create(this,this._def)}or(t){return uf.create([this,t],this._def)}and(t){return cf.create(this,t,this._def)}transform(t){return new xo({...Oe(this._def),schema:this,typeName:xe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new pg({...Oe(this._def),innerType:this,defaultValue:n,typeName:xe.ZodDefault})}brand(){return new sX({typeName:xe.ZodBranded,type:this,...Oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new mg({...Oe(this._def),innerType:this,catchValue:n,typeName:xe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return gg.create(this,t)}readonly(){return bg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const j$=/^c[^\s-]{8,}$/i,z$=/^[0-9a-z]+$/,U$=/^[0-9A-HJKMNP-TV-Z]{26}$/i,H$=/^[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,F$=/^[a-z0-9_-]{21}$/i,V$=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Y$=/^[-+]?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)?)??$/,q$=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,G$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let fg;const $$=/^(?:(?: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])$/,X$=/^(?:(?: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])$/,K$=/^(([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]))$/,Q$=/^(([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])$/,W$=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Z$=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,oC="((\\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])))",J$=new RegExp(`^${oC}$`);function lC(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 eX(e){return new RegExp(`^${lC(e)}$`)}function tX(e){let t=`${oC}T${lC(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 nX(e,t){return!!((t==="v4"||!t)&&$$.test(e)||(t==="v6"||!t)&&K$.test(e))}function iX(e,t){if(!V$.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 rX(e,t){return!!((t==="v4"||!t)&&X$.test(e)||(t==="v6"||!t)&&Q$.test(e))}class ra extends Pe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==oe.string){const a=this._getOrReturnCtx(t);return ie(a,{code:J.invalid_type,expected:oe.string,received:a.parsedType}),ye}const i=new Vn;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")q$.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")fg||(fg=new RegExp(G$,"u")),fg.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")H$.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")F$.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")j$.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")z$.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")U$.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"?tX(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"?J$.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:J.invalid_string,validation:"date",message:a.message}),i.dirty()):a.kind==="time"?eX(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"?Y$.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"duration",code:J.invalid_string,message:a.message}),i.dirty()):a.kind==="ip"?nX(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"?iX(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"?rX(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"?W$.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"base64",code:J.invalid_string,message:a.message}),i.dirty()):a.kind==="base64url"?Z$.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"base64url",code:J.invalid_string,message:a.message}),i.dirty()):ze.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,...ce.errToObj(i)})}_addCheck(t){return new ra({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ce.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ce.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ce.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ce.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ce.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ce.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ce.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ce.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ce.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ce.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ce.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ce.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ce.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,...ce.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,...ce.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ce.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ce.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ce.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ce.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ce.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ce.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ce.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ce.errToObj(n)})}nonempty(t){return this.min(1,ce.errToObj(t))}trim(){return new ra({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ra({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ra({...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}}ra.create=e=>new ra({checks:[],typeName:xe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});function aX(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 gu extends Pe{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)!==oe.number){const a=this._getOrReturnCtx(t);return ie(a,{code:J.invalid_type,expected:oe.number,received:a.parsedType}),ye}let i;const r=new Vn;for(const a of this._def.checks)a.kind==="int"?ze.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"?aX(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()):ze.assertNever(a);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,i,r){return new gu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ce.toString(r)}]})}_addCheck(t){return new gu({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ce.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ce.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.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"&&ze.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)}}gu.create=e=>new gu({checks:[],typeName:xe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class bu extends Pe{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)!==oe.bigint)return this._getInvalidInput(t);let i;const r=new Vn;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()):ze.assertNever(a);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:oe.bigint,received:n.parsedType}),ye}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,i,r){return new bu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ce.toString(r)}]})}_addCheck(t){return new bu({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.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}}bu.create=e=>new bu({checks:[],typeName:xe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});class uC extends Pe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==oe.boolean){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.boolean,received:i.parsedType}),ye}return ui(t.data)}}uC.create=e=>new uC({typeName:xe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class lf extends Pe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==oe.date){const a=this._getOrReturnCtx(t);return ie(a,{code:J.invalid_type,expected:oe.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 Vn;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()):ze.assertNever(a);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new lf({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ce.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ce.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}}lf.create=e=>new lf({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:xe.ZodDate,...Oe(e)});class cC extends Pe{_parse(t){if(this._getType(t)!==oe.symbol){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.symbol,received:i.parsedType}),ye}return ui(t.data)}}cC.create=e=>new cC({typeName:xe.ZodSymbol,...Oe(e)});class dC extends Pe{_parse(t){if(this._getType(t)!==oe.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.undefined,received:i.parsedType}),ye}return ui(t.data)}}dC.create=e=>new dC({typeName:xe.ZodUndefined,...Oe(e)});class fC extends Pe{_parse(t){if(this._getType(t)!==oe.null){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.null,received:i.parsedType}),ye}return ui(t.data)}}fC.create=e=>new fC({typeName:xe.ZodNull,...Oe(e)});class hC extends Pe{constructor(){super(...arguments),this._any=!0}_parse(t){return ui(t.data)}}hC.create=e=>new hC({typeName:xe.ZodAny,...Oe(e)});class pC extends Pe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ui(t.data)}}pC.create=e=>new pC({typeName:xe.ZodUnknown,...Oe(e)});class aa extends Pe{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:oe.never,received:n.parsedType}),ye}}aa.create=e=>new aa({typeName:xe.ZodNever,...Oe(e)});class mC extends Pe{_parse(t){if(this._getType(t)!==oe.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.void,received:i.parsedType}),ye}return ui(t.data)}}mC.create=e=>new mC({typeName:xe.ZodVoid,...Oe(e)});class Qi extends Pe{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==oe.array)return ie(n,{code:J.invalid_type,expected:oe.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 ia(n,s,n.path,o)))).then(s=>Vn.mergeArray(i,s));const a=[...n.data].map((s,o)=>r.type._parseSync(new ia(n,s,n.path,o)));return Vn.mergeArray(i,a)}get element(){return this._def.type}min(t,n){return new Qi({...this._def,minLength:{value:t,message:ce.toString(n)}})}max(t,n){return new Qi({...this._def,maxLength:{value:t,message:ce.toString(n)}})}length(t,n){return new Qi({...this._def,exactLength:{value:t,message:ce.toString(n)}})}nonempty(t){return this.min(1,t)}}Qi.create=(e,t)=>new Qi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:xe.ZodArray,...Oe(t)});function vo(e){if(e instanceof Nt){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=sa.create(vo(i))}return new Nt({...e._def,shape:()=>t})}else return e instanceof Qi?new Qi({...e._def,type:vo(e.element)}):e instanceof sa?sa.create(vo(e.unwrap())):e instanceof _o?_o.create(vo(e.unwrap())):e instanceof es?es.create(e.items.map(t=>vo(t))):e}class Nt extends Pe{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=ze.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==oe.object){const u=this._getOrReturnCtx(t);return ie(u,{code:J.invalid_type,expected:oe.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 aa&&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],d=r.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ia(r,d,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof aa){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 d=r.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ia(r,d,r.path,c)),alwaysSet:c in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>Vn.mergeObjectSync(i,u)):Vn.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return ce.errToObj,new Nt({...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:ce.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new Nt({...this._def,unknownKeys:"strip"})}passthrough(){return new Nt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Nt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Nt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:xe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Nt({...this._def,catchall:t})}pick(t){const n={};for(const i of ze.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new Nt({...this._def,shape:()=>n})}omit(t){const n={};for(const i of ze.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new Nt({...this._def,shape:()=>n})}deepPartial(){return vo(this)}partial(t){const n={};for(const i of ze.objectKeys(this.shape)){const r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new Nt({...this._def,shape:()=>n})}required(t){const n={};for(const i of ze.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let a=this.shape[i];for(;a instanceof sa;)a=a._def.innerType;n[i]=a}return new Nt({...this._def,shape:()=>n})}keyof(){return yC(ze.objectKeys(this.shape))}}Nt.create=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strip",catchall:aa.create(),typeName:xe.ZodObject,...Oe(t)}),Nt.strictCreate=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strict",catchall:aa.create(),typeName:xe.ZodObject,...Oe(t)}),Nt.lazycreate=(e,t)=>new Nt({shape:e,unknownKeys:"strip",catchall:aa.create(),typeName:xe.ZodObject,...Oe(t)});class uf extends Pe{_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 br(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 br(l));return ie(n,{code:J.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}uf.create=(e,t)=>new uf({options:e,typeName:xe.ZodUnion,...Oe(t)});function hg(e,t){const n=na(e),i=na(t);if(e===t)return{valid:!0,data:e};if(n===oe.object&&i===oe.object){const r=ze.objectKeys(t),a=ze.objectKeys(e).filter(o=>r.indexOf(o)!==-1),s={...e,...t};for(const o of a){const l=hg(e[o],t[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===oe.array&&i===oe.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=hg(s,o);if(!l.valid)return{valid:!1};r.push(l.data)}return{valid:!0,data:r}}else return n===oe.date&&i===oe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class cf extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=(a,s)=>{if(rC(a)||rC(s))return ye;const o=hg(a.value,s.value);return o.valid?((aC(a)||aC(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}))}}cf.create=(e,t,n)=>new cf({left:e,right:t,typeName:xe.ZodIntersection,...Oe(n)});class es extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==oe.array)return ie(i,{code:J.invalid_type,expected:oe.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 ia(i,s,i.path,o)):null}).filter(s=>!!s);return i.common.async?Promise.all(a).then(s=>Vn.mergeArray(n,s)):Vn.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:xe.ZodTuple,rest:null,...Oe(t)})};class gC extends Pe{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!==oe.map)return ie(i,{code:J.invalid_type,expected:oe.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 ia(i,o,i.path,[u,"key"])),value:a._parse(new ia(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}}}}gC.create=(e,t,n)=>new gC({valueType:t,keyType:e,typeName:xe.ZodMap,...Oe(n)});class vu extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==oe.set)return ie(i,{code:J.invalid_type,expected:oe.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 ia(i,l,i.path,u)));return i.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(t,n){return new vu({...this._def,minSize:{value:t,message:ce.toString(n)}})}max(t,n){return new vu({...this._def,maxSize:{value:t,message:ce.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}vu.create=(e,t)=>new vu({valueType:e,minSize:null,maxSize:null,typeName:xe.ZodSet,...Oe(t)});class bC extends Pe{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})}}bC.create=(e,t)=>new bC({getter:e,typeName:xe.ZodLazy,...Oe(t)});class vC extends Pe{_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}}vC.create=(e,t)=>new vC({value:e,typeName:xe.ZodLiteral,...Oe(t)});function yC(e,t){return new yo({values:e,typeName:xe.ZodEnum,...Oe(t)})}class yo extends Pe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{expected:ze.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 ui(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 yo.create(t,{...this._def,...n})}exclude(t,n=this._def){return yo.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}yo.create=yC;class xC extends Pe{_parse(t){const n=ze.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==oe.string&&i.parsedType!==oe.number){const r=ze.objectValues(n);return ie(i,{expected:ze.joinValues(r),received:i.parsedType,code:J.invalid_type}),ye}if(this._cache||(this._cache=new Set(ze.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const r=ze.objectValues(n);return ie(i,{received:i.data,code:J.invalid_enum_value,options:r}),ye}return ui(t.data)}get enum(){return this._def.values}}xC.create=(e,t)=>new xC({values:e,typeName:xe.ZodNativeEnum,...Oe(t)});class df extends Pe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==oe.promise&&n.common.async===!1)return ie(n,{code:J.invalid_type,expected:oe.promise,received:n.parsedType}),ye;const i=n.parsedType===oe.promise?n.data:Promise.resolve(n.data);return ui(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}df.create=(e,t)=>new df({type:e,typeName:xe.ZodPromise,...Oe(t)});class xo extends Pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===xe.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"?mu(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"?mu(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(!bo(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=>bo(s)?Promise.resolve(r.transform(s.value,a)).then(o=>({status:n.value,value:o})):ye);ze.assertNever(r)}}xo.create=(e,t,n)=>new xo({schema:e,typeName:xe.ZodEffects,effect:t,...Oe(n)}),xo.createWithPreprocess=(e,t,n)=>new xo({schema:t,effect:{type:"preprocess",transform:e},typeName:xe.ZodEffects,...Oe(n)});class sa extends Pe{_parse(t){return this._getType(t)===oe.undefined?ui(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}sa.create=(e,t)=>new sa({innerType:e,typeName:xe.ZodOptional,...Oe(t)});class _o extends Pe{_parse(t){return this._getType(t)===oe.null?ui(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_o.create=(e,t)=>new _o({innerType:e,typeName:xe.ZodNullable,...Oe(t)});class pg extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===oe.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}pg.create=(e,t)=>new pg({innerType:e,typeName:xe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Oe(t)});class mg extends Pe{_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 of(r)?r.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new br(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new br(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}mg.create=(e,t)=>new mg({innerType:e,typeName:xe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Oe(t)});class _C extends Pe{_parse(t){if(this._getType(t)!==oe.nan){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.nan,received:i.parsedType}),ye}return{status:"valid",value:t.data}}}_C.create=e=>new _C({typeName:xe.ZodNaN,...Oe(e)});class sX extends Pe{_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 gg extends Pe{_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(),mu(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 gg({in:t,out:n,typeName:xe.ZodPipeline})}}class bg extends Pe{_parse(t){const n=this._def.innerType._parse(t),i=r=>(bo(r)&&(r.value=Object.freeze(r.value)),r);return of(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}}bg.create=(e,t)=>new bg({innerType:e,typeName:xe.ZodReadonly,...Oe(t)});var xe;(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"})(xe||(xe={}));const EC=ra.create;aa.create,Qi.create;const oX=Nt.create;uf.create,cf.create,es.create,yo.create,df.create,sa.create,_o.create;function Ue(e){return{"data-component":e}}function le(...e){return JM(Bx(e))}const Eo={x:2,y:2},vr=_.memo(_.forwardRef(({children:e,className:t,scale:n=1.02,off:i=!1},r)=>{const[a,s]=_.useState(!1),[o,l]=_.useState({x:0,y:0});if(i||/translate/.test(e.props.className||""))return e;const u=h=>{var g,b;const{clientX:E,clientY:m}=h,v=h.currentTarget.getBoundingClientRect(),x=E-(v.left+v.width/2),T=m-(v.top+v.height/2),S=Math.max(-1,Math.min(1,x/(v.width/2))),A=Math.max(-1,Math.min(1,T/(v.height/2))),D=S*Eo.x,L=A*Eo.y;l({x:D,y:L}),(b=(g=e.props).onMouseMove)==null||b.call(g,h)},c=()=>{var h,g;s(!0),(g=(h=e.props).onMouseEnter)==null||g.call(h)},d=()=>{var h,g;s(!1),l({x:0,y:0}),(g=(h=e.props).onMouseLeave)==null||g.call(h)},f={"--wobble-x":a?`${o.x}px`:"0px","--wobble-y":a?`${o.y}px`:"0px","--scale":1-(n-1)};return _.cloneElement(e,{ref:r,onMouseMove:u,onMouseEnter:c,onMouseLeave:d,style:{...f,...e.props.style},className:le("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")})}));vr.displayName="Wobble";const lX=10,uX=(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}}),cX=(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}}),dX=(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}}),fX=(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}}),hX={right:uX,left:cX,up:dX,down:fX},at=_.forwardRef(({fadeIn:e="down",distance:t=lX,children:n,snapExit:i=!1,overrides:r={},delay:a=0,...s},o)=>{const l=e?hX[e](t,r,a):{};return i&&l.exit&&typeof l.exit=="object"&&!Array.isArray(l.exit)&&(l.exit.transition={duration:0}),y.jsx(Fl.div,{ref:o,...s,...l,children:n})});at.displayName="MotionDiv";const pX=w9(le("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=_.forwardRef(({className:e,variant:t="default",size:n,asChild:i=!1,...r},a)=>y.jsx(vr,{ref:a,children:y.jsx(i?PN:"button",{...Ue("ui_lib/btn"),"data-variant":t,className:le(pX({variant:t,size:n,className:e})),...r})}));Tt.displayName="Button";const TC=_.createContext(null);function mX({children:e}){const[t,n]=_.useState(!1),[i,r]=_.useState(null),a=o=>{r(o),n(!0)},s=()=>{n(!1),setTimeout(()=>{r(null)},200)};return y.jsxs(TC.Provider,{value:{open:a,close:s,isOpen:t,content:i},children:[y.jsx(gX,{}),e]})}function ff(){return _.useContext(TC)||(console.error("useDialoger must be used within a DialogerProvider"),{open:()=>{},close:()=>{},isOpen:!1,content:null})}function gX(){const{contentIframeRef:e}=Ct(),{isOpen:t,content:n,close:i}=ff();return _.useEffect(()=>{var r,a;const s=o=>{o.key==="Escape"&&i()};return(a=(r=e==null?void 0:e.current)==null?void 0:r.contentWindow)==null||a.document.addEventListener("keydown",s),()=>{var o,l;return(l=(o=e==null?void 0:e.current)==null?void 0:o.contentWindow)==null?void 0:l.document.removeEventListener("keydown",s)}},[]),y.jsx(Pt,{mode:"wait",children:t&&n&&y.jsx(at,{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 vg({children:e,className:t,withClose:n=!1}){const{close:i}=ff();return y.jsxs("div",{className:le("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&&y.jsxs(Tt,{size:"fit",className:"rounded-full absolute top-4 right-4 opacity-50 hover:opacity-100",onClick:i,children:[y.jsx(td,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})}const wC=({className:e,...t})=>y.jsx("div",{className:le("flex flex-col gap-2 text-center pt-2",e),...t});wC.displayName="DialogerHeader";const SC=({className:e,...t})=>y.jsx("div",{className:le("flex flex-col gap-2 text-center",e),...t});SC.displayName="DialogerBody";const AC=({className:e,...t})=>y.jsx("div",{className:le("flex flex-col gap-2",e),...t});AC.displayName="DialogerFooter";const CC=pn.forwardRef(({className:e,...t},n)=>y.jsx("p",{ref:n,className:le("text-lg font-semibold leading-none tracking-tight",e),...t}));CC.displayName="DialogerTitle";const kC=pn.forwardRef(({className:e,...t},n)=>y.jsx("p",{ref:n,className:le("text-sm text-muted-foreground",e),...t}));kC.displayName="DialogerDescription";function yg({children:e,trigger:t}){const{open:n}=ff();return _.cloneElement(t,{onClick:()=>n(e)})}const OC=1,NC=5,hf=.5,bX=2.5;function vX(e,t,n,i){if(!n||!i||t<=1)return{x:0,y:0};const r=n.getBoundingClientRect(),a=i.offsetWidth,s=i.offsetHeight,o=Math.max(0,(a*t-r.width)/(2*t)),l=Math.max(0,(s*t-r.height)/(2*t));return{x:Math.min(o,Math.max(-o,e.x)),y:Math.min(l,Math.max(-l,e.y))}}function RC({src:e,alt:t}){const[n,i]=_.useState(1),[r,a]=_.useState({x:0,y:0}),[s,o]=_.useState(!1),l=_.useRef({x:0,y:0}),u=_.useRef({x:0,y:0}),c=_.useRef(null),d=_.useRef(null),f=_.useRef(!1),h=S=>Math.min(NC,Math.max(OC,S)),g=_.useCallback(()=>{i(1),a({x:0,y:0})},[]),b=_.useCallback(()=>{i(S=>h(S+hf))},[]),E=_.useCallback(()=>{i(S=>{const A=h(S-hf);return A<=1&&a({x:0,y:0}),A})},[]);_.useCallback(S=>{S.preventDefault(),S.stopPropagation();const A=S.deltaY>0?-hf:hf;i(D=>{const L=h(D+A);return L<=1&&a({x:0,y:0}),L})},[]);const m=_.useCallback(S=>{S.preventDefault(),f.current=!1,o(!0),l.current={x:S.clientX,y:S.clientY},u.current={...r},S.target.setPointerCapture(S.pointerId)},[r]),v=_.useCallback(S=>{if(!s)return;const A=S.clientX-l.current.x,D=S.clientY-l.current.y;if((Math.abs(A)>3||Math.abs(D)>3)&&(f.current=!0),n<=1)return;const L={x:u.current.x+A/n,y:u.current.y+D/n};a(vX(L,n,c.current,d.current))},[s,n]),x=_.useCallback(()=>{const S=f.current;o(!1),!S&&i(A=>A>1?(a({x:0,y:0}),1):bX)},[]),T=n>1;return y.jsxs("div",{className:"relative size-full flex items-center justify-center select-none",onClick:S=>S.stopPropagation(),children:[y.jsx("div",{ref:c,className:le("overflow-hidden max-h-full max-w-full rounded-2xl flex items-center justify-center",T&&"size-full"),onPointerDown:m,onPointerMove:v,onPointerUp:x,onPointerCancel:x,style:{cursor:s?"grabbing":T?"grab":"zoom-in",touchAction:"none"},children:y.jsx("img",{ref:d,src:e,alt:t,className:"block max-w-full object-contain pointer-events-none",draggable:!1,style:{maxHeight:"100vh",transform:`scale(${n}) translate(${r.x}px, ${r.y}px)`,transformOrigin:"center center"}})}),y.jsxs("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex items-center gap-1 bg-black/60 backdrop-blur-sm rounded-full px-1.5 py-1 transition opacity-50 hover:opacity-100",children:[y.jsx(xg,{onClick:E,label:"Zoom out",disabled:n<=OC,children:y.jsx(EM,{className:"size-3.5"})}),y.jsxs("span",{className:"text-white text-xs font-medium min-w-[3ch] text-center tabular-nums",children:[Math.round(n*100),"%"]}),y.jsx(xg,{onClick:b,label:"Zoom in",disabled:n>=NC,children:y.jsx(_M,{className:"size-3.5"})}),T&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"w-px h-4 bg-white/30 mx-0.5"}),y.jsx(xg,{onClick:g,label:"Reset zoom",children:y.jsx(pM,{className:"size-3.5"})})]})]})]})}function xg({onClick:e,label:t,children:n,disabled:i}){return y.jsx("button",{onClick:e,"aria-label":t,disabled:i,className:"text-white/80 hover:text-white disabled:text-white/30 disabled:hover:bg-transparent p-1.5 rounded-full hover:bg-white/15 transition-colors",children:n})}function DC({attachment:e}){const{name:t,size:n,type:i,url:r}=e,a=i.startsWith("image/"),s=i.startsWith("video/");return i.startsWith("audio/")?y.jsx(vr,{children:y.jsx("div",{className:"w-full shrink-0 overflow-hidden",children:y.jsxs("audio",{controls:!0,className:"w-full",children:[y.jsx("source",{src:r,type:i}),"Your browser does not support the audio tag."]})})}):s?y.jsx(vr,{children:y.jsx("div",{className:"w-full border shrink-0 rounded-2xl overflow-hidden",children:y.jsxs("video",{controls:!0,children:[y.jsx("source",{src:r,type:i}),"Your browser does not support the video tag."]})})}):a?y.jsx(yg,{trigger:y.jsx("div",{children:y.jsx(vr,{children:y.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:y.jsx("img",{src:r,className:"object-cover size-16",alt:t})})})}),children:y.jsx(vg,{className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:y.jsx(RC,{src:r,alt:t})})}):i==="application/pdf"?y.jsx(vr,{children:y.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:le("block size-fit max-w-[min(100%,16rem)] shrink-0 rounded-2xl border","bg-background/80 transition-colors hover:bg-accent/60","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),children:y.jsxs("div",{className:"flex items-center gap-3 p-3 min-w-0",children:[y.jsx("div",{className:le("flex size-10 shrink-0 items-center justify-center rounded-xl","bg-secondary text-muted-foreground"),"aria-hidden":!0,children:y.jsx(Lx,{className:"size-5",strokeWidth:1.75})}),y.jsxs("div",{className:"min-w-0 flex-1 flex flex-col gap-0.5 text-left",children:[y.jsx("span",{className:le("text-xs font-medium text-foreground line-clamp-1","break-words [word-break:break-word]"),children:t}),y.jsxs("span",{className:"text-xs text-muted-foreground tabular-nums",children:[(n/1024).toFixed(2)," KB · PDF"]})]})]})})}):y.jsx(vr,{children:y.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:y.jsxs("div",{className:"flex items-end gap-2 p-2",children:[y.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:le("text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600","break-words [word-break:break-word]"),children:t}),y.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(n/1024).toFixed(2)," KB"]})]})})})}const MC=pn.memo(QH,(e,t)=>e.children===t.children&&e.className===t.className);function _g({children:e,messageType:t,messageId:n}){const{anchorTarget:i}=$e();return y.jsx(MC,{"data-type":t,"data-id":n,remarkPlugins:[I2],rehypePlugins:[ZS],components:{a:({children:r,...a})=>y.jsx("a",{target:a.target||i||"_top",...a,children:r}),img:({src:r,alt:a,...s})=>r?y.jsx(yg,{trigger:y.jsx("img",{src:r,alt:a,...s,className:"cursor-pointer rounded-xl"}),children:y.jsx(vg,{className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:y.jsx(RC,{src:r,alt:a})})}):y.jsx("img",{src:r,alt:a,...s})},children:e})}function To(){const{widgetCtx:{org:e}}=Ct(),{sessionState:{session:t}}=wi(),n=$e(),{messagesState:{messages:i}}=En(),{routerState:{screen:r}}=Si();return{react:pn,org:e,session:t,config:n,messages:i,currentScreen:r}}function yX({currentMessage:e}){var t;const n=To(),i=(t=n.config.customComponents)==null?void 0:t["message::after"];return i?y.jsx(i,{...n,currentMessage:e}):null}function Eg(e){const{data:t,id:n,type:i,attachments:r,isFirstInGroup:a,isLastInGroup:s,isAloneInGroup:o,dataComponentNames:l,classNames:u}=e;if(i!=="AI"&&i!=="AGENT")return null;const{message:c,variant:d="default"}=t;return y.jsxs("div",{...Ue((l==null?void 0:l.messageContainer)??"chat/agent_msg/root"),className:le("w-5/6 flex flex-col items-start gap-1",u==null?void 0:u.messageContainer),children:[r&&r.length>0&&y.jsx("div",{className:"w-full gap-1 flex flex-row flex-wrap items-center justify-start",children:r==null?void 0:r.map(f=>y.jsx(DC,{attachment:f},f.id))}),c.length>0&&y.jsxs("div",{className:"flex flex-row gap-2",children:[y.jsx("div",{...Ue((l==null?void 0:l.message)??"chat/agent_msg/msg"),"data-first":a,"data-last":s,"data-alone":o,"data-variant":d,className:le("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]",d==="error"&&"bg-destructive/15 text-destructive",a&&!o&&"rounded-bl-md",s&&!o&&"rounded-tl-md",!a&&!s&&!o&&"rounded-l-md",u==null?void 0:u.message),children:y.jsx(_g,{messageType:i,messageId:n,children:c})}),y.jsx(yX,{currentMessage:e})]})]})}function xX(e){return y.jsx("div",{className:"w-full max-w-full overflow-auto shrink-0",children:y.jsx("pre",{className:"text-xs leading-tight whitespace-pre-wrap break-word",children:JSON.stringify(e,null,1)})})}const Tg=_.forwardRef(({className:e,...t},n)=>y.jsx(lA,{ref:n,className:le("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",e),...t}));Tg.displayName=lA.displayName;const wg=_.forwardRef(({className:e,...t},n)=>y.jsx(uA,{ref:n,className:le("aspect-square h-full w-full",e),...t}));wg.displayName=uA.displayName;const Sg=_.forwardRef(({className:e,...t},n)=>y.jsx(cA,{ref:n,className:le("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));Sg.displayName=cA.displayName;function Ag({agent:e,...t}){var n,i;return y.jsxs(Tg,{...t,children:[y.jsx(wg,{src:(e==null?void 0:e.avatarUrl)||(e==null?void 0:e.avatar)||"",alt:"Agent Icon"}),(e==null?void 0:e.name)&&y.jsx(Sg,{children:(i=(n=e==null?void 0:e.name)==null?void 0:n.slice(0,1))==null?void 0:i.toUpperCase()})]})}function _X({agent:e}){return y.jsx(Pt,{children:y.jsxs(at,{...Ue("chat/bot_loading/root"),className:"flex flex-row items-end w-full gap-2 animate-pulse",children:[y.jsx(Ag,{agent:e}),y.jsxs("div",{...Ue("chat/bot_loading/bouncing_dots_container"),className:le("flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"),children:[y.jsx(Fl.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),y.jsx(Fl.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),y.jsx(Fl.span,{className:"rounded-full animate-bounce"})]})]})})}const LC='*,: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%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.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}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.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-0\\.5{margin-left:.125rem;margin-right:.125rem}.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-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.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-dvh{height:100dvh}.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-dvw{width:100dvw}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-\\[min\\(100\\%\\,16rem\\)\\]{max-width:min(100%,16rem)}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.shrink-0{flex-shrink:0}.-translate-x-1\\/2,.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))}.transform{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-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.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-background\\/80{background-color:hsl(var(--opencx-background) / .8)}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.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-white\\/30{background-color:#ffffff4d}.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-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.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{padding-top:.25rem;padding-bottom:.25rem}.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-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.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}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.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))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.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{--tw-enter-scale: 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}.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-accent\\/60:hover{background-color:hsl(var(--opencx-accent) / .6)}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}.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\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.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))}',EX=aG,TX=sG,wX=oG,IC=_.forwardRef(({className:e,sideOffset:t=4,...n},i)=>y.jsx(_A,{ref:i,sideOffset:t,className:le("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}));IC.displayName=_A.displayName;function yu({children:e,content:t,side:n,align:i}){const{disableTooltips:r}=$e();return!t||r?e:y.jsxs(TX,{children:[y.jsx(wX,{asChild:!0,children:e}),y.jsx(IC,{side:n,align:i,collisionPadding:8,avoidCollisions:!0,children:t})]})}const PC=450;function Wi(){const[e,t]=pn.useState(()=>(window.top||window).innerWidth<PC);return pn.useEffect(()=>{const n=window.top||window,i=()=>{t(n.innerWidth<PC)};return i(),n.addEventListener("resize",i),()=>{n.removeEventListener("resize",i)}},[]),{isSmallScreen:e}}const pf={transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"1000ms"};function ts(){var e,t,n,i,r,a,s,o,l,u,c,d,f,h,g,b,E,m,v,x,T,S,A,D,L,B,O,Y,U,re,ee,Q,F,V,H,te,N,be,tt,M,Be,ge,je,dn,We,$t,Mt;const{dir:Ut}=kp(),{isSmallScreen:Lt}=Wi(),{theme:ae,inline:yi}=$e(),Li=Rn=>yi?"100%":Rn,Ii=(Rn,Ir)=>Lt?`100dv${Rn}`:Ir,nt=(Rn,Ir)=>Li(Ii(Rn,Ir)),fn={zIndex:((e=ae==null?void 0:ae.widgetTrigger)==null?void 0:e.zIndex)??1e7,offset:{bottom:((n=(t=ae==null?void 0:ae.widgetTrigger)==null?void 0:t.offset)==null?void 0:n.bottom)??20,right:((r=(i=ae==null?void 0:ae.widgetTrigger)==null?void 0:i.offset)==null?void 0:r.right)??(Ut==="ltr"?20:"initial"),left:((s=(a=ae==null?void 0:ae.widgetTrigger)==null?void 0:a.offset)==null?void 0:s.left)??(Ut==="rtl"?20:"initial")},size:{button:((l=(o=ae==null?void 0:ae.widgetTrigger)==null?void 0:o.size)==null?void 0:l.button)??48,icon:((c=(u=ae==null?void 0:ae.widgetTrigger)==null?void 0:u.size)==null?void 0:c.icon)??24}},tn=(()=>{const Rn=Ut==="ltr"?fn.offset.right:fn.offset.left;return typeof Rn!="number"?0:Rn})(),At={palette:(ae==null?void 0:ae.palette)??"neutral",primaryColor:(ae==null?void 0:ae.primaryColor)??"hsl(0 0% 9%)",widgetTrigger:fn,widgetContentContainer:{borderRadius:Lt?"0px":((d=ae==null?void 0:ae.widgetContentContainer)==null?void 0:d.borderRadius)??"32px",zIndex:((f=ae==null?void 0:ae.widgetContentContainer)==null?void 0:f.zIndex)??fn.zIndex+1,outline:((h=ae==null?void 0:ae.widgetContentContainer)==null?void 0:h.outline)??"none",outlineColor:((g=ae==null?void 0:ae.widgetContentContainer)==null?void 0:g.outlineColor)??"hsl(0 0% 50% / .5)",boxShadow:((b=ae==null?void 0:ae.widgetContentContainer)==null?void 0:b.boxShadow)??"0 0px 100px 0px rgb(0 0 0 / 0.25)",transitionProperty:((E=ae==null?void 0:ae.widgetContentContainer)==null?void 0:E.transitionProperty)??"all",transitionTimingFunction:((m=ae==null?void 0:ae.widgetContentContainer)==null?void 0:m.transitionTimingFunction)??pf.transitionTimingFunction,transitionDuration:((v=ae==null?void 0:ae.widgetContentContainer)==null?void 0:v.transitionDuration)??pf.transitionDuration,offset:{side:Lt?0:fn.offset.bottom+fn.size.button+Eo.y*2+(((T=(x=ae==null?void 0:ae.widgetContentContainer)==null?void 0:x.offset)==null?void 0:T.side)??10),align:Lt?0:tn+(((A=(S=ae==null?void 0:ae.widgetContentContainer)==null?void 0:S.offset)==null?void 0:A.align)??0)}},screens:{welcome:{width:nt("w",((L=(D=ae==null?void 0:ae.screens)==null?void 0:D.welcome)==null?void 0:L.width)??"400px"),minHeight:nt("h",((O=(B=ae==null?void 0:ae.screens)==null?void 0:B.welcome)==null?void 0:O.minHeight)??"1px")},sessions:{width:nt("w",((U=(Y=ae==null?void 0:ae.screens)==null?void 0:Y.sessions)==null?void 0:U.width)??"450px"),height:nt("h",((ee=(re=ae==null?void 0:ae.screens)==null?void 0:re.sessions)==null?void 0:ee.height)??"600px")},chat:{width:nt("w",((F=(Q=ae==null?void 0:ae.screens)==null?void 0:Q.chat)==null?void 0:F.width)??"525px"),height:nt("h",((H=(V=ae==null?void 0:ae.screens)==null?void 0:V.chat)==null?void 0:H.height)??"700px"),withCanvas:{width:nt("w",((be=(N=(te=ae==null?void 0:ae.screens)==null?void 0:te.chat)==null?void 0:N.withCanvas)==null?void 0:be.width)??"min(1050px, 100vw)"),height:nt("h",((Be=(M=(tt=ae==null?void 0:ae.screens)==null?void 0:tt.chat)==null?void 0:M.withCanvas)==null?void 0:Be.height)??"min(800px, 100vh)"),transitionTimingFunction:((dn=(je=(ge=ae==null?void 0:ae.screens)==null?void 0:ge.chat)==null?void 0:je.withCanvas)==null?void 0:dn.transitionTimingFunction)??pf.transitionTimingFunction,transitionDuration:((Mt=($t=(We=ae==null?void 0:ae.screens)==null?void 0:We.chat)==null?void 0:$t.withCanvas)==null?void 0:Mt.transitionDuration)??pf.transitionDuration}}}},Es={maxHeight:nt("h",`calc(
302
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QA(e,t){if(e){if(typeof e=="string")return ag(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 ag(e,t)}}function ag(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 A$(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 C$(e){if(Array.isArray(e))return e}function WA(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 pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WA(Object(n),!0).forEach(function(i){sg(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function sg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function af(e,t){if(e==null)return{};var n=k$(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 k$(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 og=E.forwardRef(function(e,t){var n=e.children,i=af(e,b$),r=JA(i),a=r.open,s=af(r,v$);return E.useImperativeHandle(t,function(){return{open:a}},[a]),pn.createElement(E.Fragment,null,n(pt(pt({},s),{},{open:a})))});og.displayName="Dropzone";var ZA={disabled:!1,getFilesFromEvent:UG,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};og.defaultProps=ZA,og.propTypes={children:Ke.func,accept:Ke.objectOf(Ke.arrayOf(Ke.string)),multiple:Ke.bool,preventDropOnDocument:Ke.bool,noClick:Ke.bool,noKeyboard:Ke.bool,noDrag:Ke.bool,noDragEventsBubbling:Ke.bool,minSize:Ke.number,maxSize:Ke.number,maxFiles:Ke.number,disabled:Ke.bool,getFilesFromEvent:Ke.func,onFileDialogCancel:Ke.func,onFileDialogOpen:Ke.func,useFsAccessApi:Ke.bool,autoFocus:Ke.bool,onDragEnter:Ke.func,onDragLeave:Ke.func,onDragOver:Ke.func,onDrop:Ke.func,onDropAccepted:Ke.func,onDropRejected:Ke.func,onError:Ke.func,validator:Ke.func};var lg={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function JA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=pt(pt({},ZA),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,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,_=t.onFileDialogOpen,m=t.useFsAccessApi,v=t.autoFocus,x=t.preventDropOnDocument,T=t.noClick,S=t.noKeyboard,A=t.noDrag,D=t.noDragEventsBubbling,L=t.onError,B=t.validator,O=E.useMemo(function(){return p$(n)},[n]),Y=E.useMemo(function(){return h$(n)},[n]),U=E.useMemo(function(){return typeof _=="function"?_:eC},[_]),re=E.useMemo(function(){return typeof b=="function"?b:eC},[b]),ee=E.useRef(null),Q=E.useRef(null),F=E.useReducer(O$,lg),V=rg(F,2),H=V[0],te=V[1],N=H.isFocused,be=H.isFileDialogActive,tt=E.useRef(typeof window<"u"&&window.isSecureContext&&m&&f$()),M=function(){!tt.current&&be&&setTimeout(function(){if(Q.current){var he=Q.current.files;he.length||(te({type:"closeDialog"}),re())}},300)};E.useEffect(function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}},[Q,be,re,tt]);var Be=E.useRef([]),ge=function(he){ee.current&&ee.current.contains(he.target)||(he.preventDefault(),Be.current=[])};E.useEffect(function(){return x&&(document.addEventListener("dragover",$A,!1),document.addEventListener("drop",ge,!1)),function(){x&&(document.removeEventListener("dragover",$A),document.removeEventListener("drop",ge))}},[ee,x]),E.useEffect(function(){return!i&&v&&ee.current&&ee.current.focus(),function(){}},[ee,v,i]);var je=E.useCallback(function(ne){L?L(ne):console.error(ne)},[L]),dn=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne),Be.current=[].concat(_$(Be.current),[ne.target]),rf(ne)&&Promise.resolve(r(ne)).then(function(he){if(!(nf(ne)&&!D)){var j=he.length,$=j>0&&l$({files:he,accept:O,minSize:s,maxSize:a,multiple:o,maxFiles:l,validator:B}),ue=j>0&&!$;te({isDragAccept:$,isDragReject:ue,isDragActive:!0,type:"setDraggedFiles"}),u&&u(ne)}}).catch(function(he){return je(he)})},[r,u,je,D,O,s,a,o,l,B]),We=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne);var he=rf(ne);if(he&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return he&&d&&d(ne),!1},[d,D]),$t=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne);var he=Be.current.filter(function($){return ee.current&&ee.current.contains($)}),j=he.indexOf(ne.target);j!==-1&&he.splice(j,1),Be.current=he,!(he.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),rf(ne)&&c&&c(ne))},[ee,c,D]),Mt=E.useCallback(function(ne,he){var j=[],$=[];ne.forEach(function(ue){var _e=qA(ue,O),ve=rg(_e,2),Xt=ve[0],Dn=ve[1],yn=GA(ue,s,a),Jn=rg(yn,2),Mn=Jn[0],It=Jn[1],ei=B?B(ue):null;if(Xt&&Mn&&!ei)j.push(ue);else{var xn=[Dn,It];ei&&(xn=xn.concat(ei)),$.push({file:ue,errors:xn.filter(function(Pr){return Pr})})}}),(!o&&j.length>1||o&&l>=1&&j.length>l)&&(j.forEach(function(ue){$.push({file:ue,errors:[o$]})}),j.splice(0)),te({acceptedFiles:j,fileRejections:$,isDragReject:$.length>0,type:"setFiles"}),f&&f(j,$,he),$.length>0&&g&&g($,he),j.length>0&&h&&h(j,he)},[te,o,O,s,a,l,f,h,g,B]),Ut=E.useCallback(function(ne){ne.preventDefault(),ne.persist(),At(ne),Be.current=[],rf(ne)&&Promise.resolve(r(ne)).then(function(he){nf(ne)&&!D||Mt(he,ne)}).catch(function(he){return je(he)}),te({type:"reset"})},[r,Mt,je,D]),Lt=E.useCallback(function(){if(tt.current){te({type:"openDialog"}),U();var ne={multiple:o,types:Y};window.showOpenFilePicker(ne).then(function(he){return r(he)}).then(function(he){Mt(he,null),te({type:"closeDialog"})}).catch(function(he){m$(he)?(re(he),te({type:"closeDialog"})):g$(he)?(tt.current=!1,Q.current?(Q.current.value=null,Q.current.click()):je(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."))):je(he)});return}Q.current&&(te({type:"openDialog"}),U(),Q.current.value=null,Q.current.click())},[te,U,re,m,Mt,je,Y,o]),ae=E.useCallback(function(ne){!ee.current||!ee.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),Lt())},[ee,Lt]),yi=E.useCallback(function(){te({type:"focus"})},[]),Li=E.useCallback(function(){te({type:"blur"})},[]),Ii=E.useCallback(function(){T||(d$()?setTimeout(Lt,0):Lt())},[T,Lt]),nt=function(he){return i?null:he},fn=function(he){return S?null:nt(he)},tn=function(he){return A?null:nt(he)},At=function(he){D&&he.stopPropagation()},Es=E.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=ne.refKey,j=he===void 0?"ref":he,$=ne.role,ue=ne.onKeyDown,_e=ne.onFocus,ve=ne.onBlur,Xt=ne.onClick,Dn=ne.onDragEnter,yn=ne.onDragOver,Jn=ne.onDragLeave,Mn=ne.onDrop,It=af(ne,y$);return pt(pt(sg({onKeyDown:fn(Ki(ue,ae)),onFocus:fn(Ki(_e,yi)),onBlur:fn(Ki(ve,Li)),onClick:nt(Ki(Xt,Ii)),onDragEnter:tn(Ki(Dn,dn)),onDragOver:tn(Ki(yn,We)),onDragLeave:tn(Ki(Jn,$t)),onDrop:tn(Ki(Mn,Ut)),role:typeof $=="string"&&$!==""?$:"presentation"},j,ee),!i&&!S?{tabIndex:0}:{}),It)}},[ee,ae,yi,Li,Ii,dn,We,$t,Ut,S,A,i]),Rn=E.useCallback(function(ne){ne.stopPropagation()},[]),Ir=E.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=ne.refKey,j=he===void 0?"ref":he,$=ne.onChange,ue=ne.onClick,_e=af(ne,x$),ve=sg({accept:O,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:nt(Ki($,Ut)),onClick:nt(Ki(ue,Rn)),tabIndex:-1},j,Q);return pt(pt({},ve),_e)}},[Q,n,o,Ut,i]);return pt(pt({},H),{},{isFocused:N&&!i,getRootProps:Es,getInputProps:Ir,rootRef:ee,inputRef:Q,open:nt(Lt)})}function O$(e,t){switch(t.type){case"focus":return pt(pt({},e),{},{isFocused:!0});case"blur":return pt(pt({},e),{},{isFocused:!1});case"openDialog":return pt(pt({},lg),{},{isFileDialogActive:!0});case"closeDialog":return pt(pt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return pt(pt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return pt(pt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return pt({},lg);default:return e}}function eC(){}var tC={};const N$=pN(zR);var sf={},nC;function R$(){if(nC)return sf;nC=1,Object.defineProperty(sf,"__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 sf.default=t,sf}Object.defineProperty(tC,"__esModule",{value:!0});var ug=N$,cg=E,D$=ug.__importDefault(R$());function M$(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var i=cg.useRef(0),r=D$.default(),a=cg.useState(n),s=a[0],o=a[1],l=cg.useCallback(function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var d=++i.current;return s.loading||o(function(f){return ug.__assign(ug.__assign({},f),{loading:!0})}),e.apply(void 0,u).then(function(f){return r()&&d===i.current&&o({value:f,loading:!1}),f},function(f){return r()&&d===i.current&&o({error:f,loading:!1}),f})},t);return[s,l]}var L$=tC.default=M$,ze;(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})(ze||(ze={}));var iC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(iC||(iC={}));const oe=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),na=e=>{switch(typeof e){case"undefined":return oe.undefined;case"string":return oe.string;case"number":return Number.isNaN(e)?oe.nan:oe.number;case"boolean":return oe.boolean;case"function":return oe.function;case"bigint":return oe.bigint;case"symbol":return oe.symbol;case"object":return Array.isArray(e)?oe.array:e===null?oe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?oe.promise:typeof Map<"u"&&e instanceof Map?oe.map:typeof Set<"u"&&e instanceof Set?oe.set:typeof Date<"u"&&e instanceof Date?oe.date:oe.object;default:return oe.unknown}},J=ze.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 br 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 br))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.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()}}br.create=e=>new br(e);const dg=(e,t)=>{let n;switch(e.code){case J.invalid_type:e.received===oe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case J.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ze.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:n=`Unrecognized key(s) in object: ${ze.joinValues(e.keys,", ")}`;break;case J.invalid_union:n="Invalid input";break;case J.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ze.joinValues(e.options)}`;break;case J.invalid_enum_value:n=`Invalid enum value. Expected ${ze.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}"`:ze.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,ze.assertNever(e)}return{message:n}};let I$=dg;function P$(){return I$}const B$=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=P$(),i=B$({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===dg?void 0:dg].filter(r=>!!r)});e.common.issues.push(i)}class Vn{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 Vn.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"}),mu=e=>({status:"dirty",value:e}),ui=e=>({status:"valid",value:e}),rC=e=>e.status==="aborted",aC=e=>e.status==="dirty",bo=e=>e.status==="valid",of=e=>typeof Promise<"u"&&e instanceof Promise;var ce;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ce||(ce={}));class ia{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 sC=(e,t)=>{if(bo(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 br(e.common.issues);return this._error=n,this._error}}};function Oe(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 Pe{get description(){return this._def.description}_getType(t){return na(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:na(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Vn,ctx:{common:t.parent.common,data:t.data,parsedType:na(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(of(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:na(t)},r=this._parseSync({data:t,path:i.path,parent:i});return sC(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:na(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return bo(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=>bo(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:na(t)},r=this._parse({data:t,path:i.path,parent:i}),a=await(of(r)?r:Promise.resolve(r));return sC(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 xo({schema:this,typeName:xe.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 sa.create(this,this._def)}nullable(){return _o.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qi.create(this)}promise(){return df.create(this,this._def)}or(t){return uf.create([this,t],this._def)}and(t){return cf.create(this,t,this._def)}transform(t){return new xo({...Oe(this._def),schema:this,typeName:xe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new pg({...Oe(this._def),innerType:this,defaultValue:n,typeName:xe.ZodDefault})}brand(){return new sX({typeName:xe.ZodBranded,type:this,...Oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new mg({...Oe(this._def),innerType:this,catchValue:n,typeName:xe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return gg.create(this,t)}readonly(){return bg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const j$=/^c[^\s-]{8,}$/i,z$=/^[0-9a-z]+$/,U$=/^[0-9A-HJKMNP-TV-Z]{26}$/i,H$=/^[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,F$=/^[a-z0-9_-]{21}$/i,V$=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Y$=/^[-+]?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)?)??$/,q$=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,G$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let fg;const $$=/^(?:(?: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])$/,X$=/^(?:(?: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])$/,K$=/^(([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]))$/,Q$=/^(([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])$/,W$=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Z$=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,oC="((\\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])))",J$=new RegExp(`^${oC}$`);function lC(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 eX(e){return new RegExp(`^${lC(e)}$`)}function tX(e){let t=`${oC}T${lC(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 nX(e,t){return!!((t==="v4"||!t)&&$$.test(e)||(t==="v6"||!t)&&K$.test(e))}function iX(e,t){if(!V$.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 rX(e,t){return!!((t==="v4"||!t)&&X$.test(e)||(t==="v6"||!t)&&Q$.test(e))}class ra extends Pe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==oe.string){const a=this._getOrReturnCtx(t);return ie(a,{code:J.invalid_type,expected:oe.string,received:a.parsedType}),ye}const i=new Vn;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")q$.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")fg||(fg=new RegExp(G$,"u")),fg.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")H$.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")F$.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")j$.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")z$.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")U$.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"?tX(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"?J$.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:J.invalid_string,validation:"date",message:a.message}),i.dirty()):a.kind==="time"?eX(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"?Y$.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"duration",code:J.invalid_string,message:a.message}),i.dirty()):a.kind==="ip"?nX(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"?iX(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"?rX(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"?W$.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"base64",code:J.invalid_string,message:a.message}),i.dirty()):a.kind==="base64url"?Z$.test(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{validation:"base64url",code:J.invalid_string,message:a.message}),i.dirty()):ze.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,...ce.errToObj(i)})}_addCheck(t){return new ra({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ce.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ce.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ce.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ce.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ce.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ce.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ce.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ce.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ce.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ce.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ce.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ce.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ce.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,...ce.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,...ce.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ce.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ce.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ce.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ce.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ce.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ce.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ce.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ce.errToObj(n)})}nonempty(t){return this.min(1,ce.errToObj(t))}trim(){return new ra({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ra({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ra({...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}}ra.create=e=>new ra({checks:[],typeName:xe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});function aX(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 gu extends Pe{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)!==oe.number){const a=this._getOrReturnCtx(t);return ie(a,{code:J.invalid_type,expected:oe.number,received:a.parsedType}),ye}let i;const r=new Vn;for(const a of this._def.checks)a.kind==="int"?ze.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"?aX(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()):ze.assertNever(a);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,i,r){return new gu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ce.toString(r)}]})}_addCheck(t){return new gu({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ce.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ce.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.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"&&ze.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)}}gu.create=e=>new gu({checks:[],typeName:xe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class bu extends Pe{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)!==oe.bigint)return this._getInvalidInput(t);let i;const r=new Vn;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()):ze.assertNever(a);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:oe.bigint,received:n.parsedType}),ye}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,i,r){return new bu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ce.toString(r)}]})}_addCheck(t){return new bu({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.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}}bu.create=e=>new bu({checks:[],typeName:xe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});class uC extends Pe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==oe.boolean){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.boolean,received:i.parsedType}),ye}return ui(t.data)}}uC.create=e=>new uC({typeName:xe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class lf extends Pe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==oe.date){const a=this._getOrReturnCtx(t);return ie(a,{code:J.invalid_type,expected:oe.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 Vn;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()):ze.assertNever(a);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new lf({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ce.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ce.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}}lf.create=e=>new lf({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:xe.ZodDate,...Oe(e)});class cC extends Pe{_parse(t){if(this._getType(t)!==oe.symbol){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.symbol,received:i.parsedType}),ye}return ui(t.data)}}cC.create=e=>new cC({typeName:xe.ZodSymbol,...Oe(e)});class dC extends Pe{_parse(t){if(this._getType(t)!==oe.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.undefined,received:i.parsedType}),ye}return ui(t.data)}}dC.create=e=>new dC({typeName:xe.ZodUndefined,...Oe(e)});class fC extends Pe{_parse(t){if(this._getType(t)!==oe.null){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.null,received:i.parsedType}),ye}return ui(t.data)}}fC.create=e=>new fC({typeName:xe.ZodNull,...Oe(e)});class hC extends Pe{constructor(){super(...arguments),this._any=!0}_parse(t){return ui(t.data)}}hC.create=e=>new hC({typeName:xe.ZodAny,...Oe(e)});class pC extends Pe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ui(t.data)}}pC.create=e=>new pC({typeName:xe.ZodUnknown,...Oe(e)});class aa extends Pe{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:oe.never,received:n.parsedType}),ye}}aa.create=e=>new aa({typeName:xe.ZodNever,...Oe(e)});class mC extends Pe{_parse(t){if(this._getType(t)!==oe.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.void,received:i.parsedType}),ye}return ui(t.data)}}mC.create=e=>new mC({typeName:xe.ZodVoid,...Oe(e)});class Qi extends Pe{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==oe.array)return ie(n,{code:J.invalid_type,expected:oe.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 ia(n,s,n.path,o)))).then(s=>Vn.mergeArray(i,s));const a=[...n.data].map((s,o)=>r.type._parseSync(new ia(n,s,n.path,o)));return Vn.mergeArray(i,a)}get element(){return this._def.type}min(t,n){return new Qi({...this._def,minLength:{value:t,message:ce.toString(n)}})}max(t,n){return new Qi({...this._def,maxLength:{value:t,message:ce.toString(n)}})}length(t,n){return new Qi({...this._def,exactLength:{value:t,message:ce.toString(n)}})}nonempty(t){return this.min(1,t)}}Qi.create=(e,t)=>new Qi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:xe.ZodArray,...Oe(t)});function vo(e){if(e instanceof Nt){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=sa.create(vo(i))}return new Nt({...e._def,shape:()=>t})}else return e instanceof Qi?new Qi({...e._def,type:vo(e.element)}):e instanceof sa?sa.create(vo(e.unwrap())):e instanceof _o?_o.create(vo(e.unwrap())):e instanceof es?es.create(e.items.map(t=>vo(t))):e}class Nt extends Pe{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=ze.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==oe.object){const u=this._getOrReturnCtx(t);return ie(u,{code:J.invalid_type,expected:oe.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 aa&&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],d=r.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ia(r,d,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof aa){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 d=r.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ia(r,d,r.path,c)),alwaysSet:c in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>Vn.mergeObjectSync(i,u)):Vn.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return ce.errToObj,new Nt({...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:ce.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new Nt({...this._def,unknownKeys:"strip"})}passthrough(){return new Nt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Nt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Nt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:xe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Nt({...this._def,catchall:t})}pick(t){const n={};for(const i of ze.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new Nt({...this._def,shape:()=>n})}omit(t){const n={};for(const i of ze.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new Nt({...this._def,shape:()=>n})}deepPartial(){return vo(this)}partial(t){const n={};for(const i of ze.objectKeys(this.shape)){const r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new Nt({...this._def,shape:()=>n})}required(t){const n={};for(const i of ze.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let a=this.shape[i];for(;a instanceof sa;)a=a._def.innerType;n[i]=a}return new Nt({...this._def,shape:()=>n})}keyof(){return yC(ze.objectKeys(this.shape))}}Nt.create=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strip",catchall:aa.create(),typeName:xe.ZodObject,...Oe(t)}),Nt.strictCreate=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strict",catchall:aa.create(),typeName:xe.ZodObject,...Oe(t)}),Nt.lazycreate=(e,t)=>new Nt({shape:e,unknownKeys:"strip",catchall:aa.create(),typeName:xe.ZodObject,...Oe(t)});class uf extends Pe{_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 br(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 br(l));return ie(n,{code:J.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}uf.create=(e,t)=>new uf({options:e,typeName:xe.ZodUnion,...Oe(t)});function hg(e,t){const n=na(e),i=na(t);if(e===t)return{valid:!0,data:e};if(n===oe.object&&i===oe.object){const r=ze.objectKeys(t),a=ze.objectKeys(e).filter(o=>r.indexOf(o)!==-1),s={...e,...t};for(const o of a){const l=hg(e[o],t[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===oe.array&&i===oe.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=hg(s,o);if(!l.valid)return{valid:!1};r.push(l.data)}return{valid:!0,data:r}}else return n===oe.date&&i===oe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class cf extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),r=(a,s)=>{if(rC(a)||rC(s))return ye;const o=hg(a.value,s.value);return o.valid?((aC(a)||aC(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}))}}cf.create=(e,t,n)=>new cf({left:e,right:t,typeName:xe.ZodIntersection,...Oe(n)});class es extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==oe.array)return ie(i,{code:J.invalid_type,expected:oe.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 ia(i,s,i.path,o)):null}).filter(s=>!!s);return i.common.async?Promise.all(a).then(s=>Vn.mergeArray(n,s)):Vn.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:xe.ZodTuple,rest:null,...Oe(t)})};class gC extends Pe{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!==oe.map)return ie(i,{code:J.invalid_type,expected:oe.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 ia(i,o,i.path,[u,"key"])),value:a._parse(new ia(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}}}}gC.create=(e,t,n)=>new gC({valueType:t,keyType:e,typeName:xe.ZodMap,...Oe(n)});class vu extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==oe.set)return ie(i,{code:J.invalid_type,expected:oe.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 ia(i,l,i.path,u)));return i.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(t,n){return new vu({...this._def,minSize:{value:t,message:ce.toString(n)}})}max(t,n){return new vu({...this._def,maxSize:{value:t,message:ce.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}vu.create=(e,t)=>new vu({valueType:e,minSize:null,maxSize:null,typeName:xe.ZodSet,...Oe(t)});class bC extends Pe{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})}}bC.create=(e,t)=>new bC({getter:e,typeName:xe.ZodLazy,...Oe(t)});class vC extends Pe{_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}}vC.create=(e,t)=>new vC({value:e,typeName:xe.ZodLiteral,...Oe(t)});function yC(e,t){return new yo({values:e,typeName:xe.ZodEnum,...Oe(t)})}class yo extends Pe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{expected:ze.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 ui(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 yo.create(t,{...this._def,...n})}exclude(t,n=this._def){return yo.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}yo.create=yC;class xC extends Pe{_parse(t){const n=ze.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==oe.string&&i.parsedType!==oe.number){const r=ze.objectValues(n);return ie(i,{expected:ze.joinValues(r),received:i.parsedType,code:J.invalid_type}),ye}if(this._cache||(this._cache=new Set(ze.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const r=ze.objectValues(n);return ie(i,{received:i.data,code:J.invalid_enum_value,options:r}),ye}return ui(t.data)}get enum(){return this._def.values}}xC.create=(e,t)=>new xC({values:e,typeName:xe.ZodNativeEnum,...Oe(t)});class df extends Pe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==oe.promise&&n.common.async===!1)return ie(n,{code:J.invalid_type,expected:oe.promise,received:n.parsedType}),ye;const i=n.parsedType===oe.promise?n.data:Promise.resolve(n.data);return ui(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}df.create=(e,t)=>new df({type:e,typeName:xe.ZodPromise,...Oe(t)});class xo extends Pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===xe.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"?mu(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"?mu(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(!bo(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=>bo(s)?Promise.resolve(r.transform(s.value,a)).then(o=>({status:n.value,value:o})):ye);ze.assertNever(r)}}xo.create=(e,t,n)=>new xo({schema:e,typeName:xe.ZodEffects,effect:t,...Oe(n)}),xo.createWithPreprocess=(e,t,n)=>new xo({schema:t,effect:{type:"preprocess",transform:e},typeName:xe.ZodEffects,...Oe(n)});class sa extends Pe{_parse(t){return this._getType(t)===oe.undefined?ui(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}sa.create=(e,t)=>new sa({innerType:e,typeName:xe.ZodOptional,...Oe(t)});class _o extends Pe{_parse(t){return this._getType(t)===oe.null?ui(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_o.create=(e,t)=>new _o({innerType:e,typeName:xe.ZodNullable,...Oe(t)});class pg extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===oe.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}pg.create=(e,t)=>new pg({innerType:e,typeName:xe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Oe(t)});class mg extends Pe{_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 of(r)?r.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new br(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new br(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}mg.create=(e,t)=>new mg({innerType:e,typeName:xe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Oe(t)});class _C extends Pe{_parse(t){if(this._getType(t)!==oe.nan){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:oe.nan,received:i.parsedType}),ye}return{status:"valid",value:t.data}}}_C.create=e=>new _C({typeName:xe.ZodNaN,...Oe(e)});class sX extends Pe{_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 gg extends Pe{_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(),mu(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 gg({in:t,out:n,typeName:xe.ZodPipeline})}}class bg extends Pe{_parse(t){const n=this._def.innerType._parse(t),i=r=>(bo(r)&&(r.value=Object.freeze(r.value)),r);return of(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}}bg.create=(e,t)=>new bg({innerType:e,typeName:xe.ZodReadonly,...Oe(t)});var xe;(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"})(xe||(xe={}));const EC=ra.create;aa.create,Qi.create;const oX=Nt.create;uf.create,cf.create,es.create,yo.create,df.create,sa.create,_o.create;function Ue(e){return{"data-component":e}}function le(...e){return JM(Bx(e))}const Eo={x:2,y:2},vr=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 u=h=>{var g,b;const{clientX:_,clientY:m}=h,v=h.currentTarget.getBoundingClientRect(),x=_-(v.left+v.width/2),T=m-(v.top+v.height/2),S=Math.max(-1,Math.min(1,x/(v.width/2))),A=Math.max(-1,Math.min(1,T/(v.height/2))),D=S*Eo.x,L=A*Eo.y;l({x:D,y:L}),(b=(g=e.props).onMouseMove)==null||b.call(g,h)},c=()=>{var h,g;s(!0),(g=(h=e.props).onMouseEnter)==null||g.call(h)},d=()=>{var h,g;s(!1),l({x:0,y:0}),(g=(h=e.props).onMouseLeave)==null||g.call(h)},f={"--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:u,onMouseEnter:c,onMouseLeave:d,style:{...f,...e.props.style},className:le("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")})}));vr.displayName="Wobble";const lX=10,uX=(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}}),cX=(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}}),dX=(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}}),fX=(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}}),hX={right:uX,left:cX,up:dX,down:fX},at=E.forwardRef(({fadeIn:e="down",distance:t=lX,children:n,snapExit:i=!1,overrides:r={},delay:a=0,...s},o)=>{const l=e?hX[e](t,r,a):{};return i&&l.exit&&typeof l.exit=="object"&&!Array.isArray(l.exit)&&(l.exit.transition={duration:0}),y.jsx(Fl.div,{ref:o,...s,...l,children:n})});at.displayName="MotionDiv";const pX=w9(le("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)=>y.jsx(vr,{ref:a,children:y.jsx(i?PN:"button",{...Ue("ui_lib/btn"),"data-variant":t,className:le(pX({variant:t,size:n,className:e})),...r})}));Tt.displayName="Button";const TC=E.createContext(null);function mX({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 y.jsxs(TC.Provider,{value:{open:a,close:s,isOpen:t,content:i},children:[y.jsx(gX,{}),e]})}function ff(){return E.useContext(TC)||(console.error("useDialoger must be used within a DialogerProvider"),{open:()=>{},close:()=>{},isOpen:!1,content:null})}function gX(){const{contentIframeRef:e}=Ct(),{isOpen:t,content:n,close:i}=ff();return E.useEffect(()=>{var r,a;const s=o=>{o.key==="Escape"&&i()};return(a=(r=e==null?void 0:e.current)==null?void 0:r.contentWindow)==null||a.document.addEventListener("keydown",s),()=>{var o,l;return(l=(o=e==null?void 0:e.current)==null?void 0:o.contentWindow)==null?void 0:l.document.removeEventListener("keydown",s)}},[]),y.jsx(Pt,{mode:"wait",children:t&&n&&y.jsx(at,{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 vg({children:e,className:t,withClose:n=!1}){const{close:i}=ff();return y.jsxs("div",{className:le("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&&y.jsxs(Tt,{size:"fit",className:"rounded-full absolute top-4 right-4 opacity-50 hover:opacity-100",onClick:i,children:[y.jsx(td,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})}const wC=({className:e,...t})=>y.jsx("div",{className:le("flex flex-col gap-2 text-center pt-2",e),...t});wC.displayName="DialogerHeader";const SC=({className:e,...t})=>y.jsx("div",{className:le("flex flex-col gap-2 text-center",e),...t});SC.displayName="DialogerBody";const AC=({className:e,...t})=>y.jsx("div",{className:le("flex flex-col gap-2",e),...t});AC.displayName="DialogerFooter";const CC=pn.forwardRef(({className:e,...t},n)=>y.jsx("p",{ref:n,className:le("text-lg font-semibold leading-none tracking-tight",e),...t}));CC.displayName="DialogerTitle";const kC=pn.forwardRef(({className:e,...t},n)=>y.jsx("p",{ref:n,className:le("text-sm text-muted-foreground",e),...t}));kC.displayName="DialogerDescription";function yg({children:e,trigger:t}){const{open:n}=ff();return E.cloneElement(t,{onClick:()=>n(e)})}const OC=1,NC=5,hf=.5,bX=2.5;function vX(e,t,n,i){if(!n||!i||t<=1)return{x:0,y:0};const r=n.getBoundingClientRect(),a=i.offsetWidth,s=i.offsetHeight,o=Math.max(0,(a*t-r.width)/(2*t)),l=Math.max(0,(s*t-r.height)/(2*t));return{x:Math.min(o,Math.max(-o,e.x)),y:Math.min(l,Math.max(-l,e.y))}}function RC({src:e,alt:t}){const[n,i]=E.useState(1),[r,a]=E.useState({x:0,y:0}),[s,o]=E.useState(!1),l=E.useRef({x:0,y:0}),u=E.useRef({x:0,y:0}),c=E.useRef(null),d=E.useRef(null),f=E.useRef(!1),h=S=>Math.min(NC,Math.max(OC,S)),g=E.useCallback(()=>{i(1),a({x:0,y:0})},[]),b=E.useCallback(()=>{i(S=>h(S+hf))},[]),_=E.useCallback(()=>{i(S=>{const A=h(S-hf);return A<=1&&a({x:0,y:0}),A})},[]);E.useCallback(S=>{S.preventDefault(),S.stopPropagation();const A=S.deltaY>0?-hf:hf;i(D=>{const L=h(D+A);return L<=1&&a({x:0,y:0}),L})},[]);const m=E.useCallback(S=>{S.preventDefault(),f.current=!1,o(!0),l.current={x:S.clientX,y:S.clientY},u.current={...r},S.target.setPointerCapture(S.pointerId)},[r]),v=E.useCallback(S=>{if(!s)return;const A=S.clientX-l.current.x,D=S.clientY-l.current.y;if((Math.abs(A)>3||Math.abs(D)>3)&&(f.current=!0),n<=1)return;const L={x:u.current.x+A/n,y:u.current.y+D/n};a(vX(L,n,c.current,d.current))},[s,n]),x=E.useCallback(()=>{const S=f.current;o(!1),!S&&i(A=>A>1?(a({x:0,y:0}),1):bX)},[]),T=n>1;return y.jsxs("div",{className:"relative size-full flex items-center justify-center select-none",onClick:S=>S.stopPropagation(),children:[y.jsx("div",{ref:c,className:le("overflow-hidden max-h-full max-w-full rounded-2xl flex items-center justify-center",T&&"size-full"),onPointerDown:m,onPointerMove:v,onPointerUp:x,onPointerCancel:x,style:{cursor:s?"grabbing":T?"grab":"zoom-in",touchAction:"none"},children:y.jsx("img",{ref:d,src:e,alt:t,className:"block max-w-full object-contain pointer-events-none",draggable:!1,style:{maxHeight:"100vh",transform:`scale(${n}) translate(${r.x}px, ${r.y}px)`,transformOrigin:"center center"}})}),y.jsxs("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex items-center gap-1 bg-black/60 backdrop-blur-sm rounded-full px-1.5 py-1 transition opacity-50 hover:opacity-100",children:[y.jsx(xg,{onClick:_,label:"Zoom out",disabled:n<=OC,children:y.jsx(EM,{className:"size-3.5"})}),y.jsxs("span",{className:"text-white text-xs font-medium min-w-[3ch] text-center tabular-nums",children:[Math.round(n*100),"%"]}),y.jsx(xg,{onClick:b,label:"Zoom in",disabled:n>=NC,children:y.jsx(_M,{className:"size-3.5"})}),T&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"w-px h-4 bg-white/30 mx-0.5"}),y.jsx(xg,{onClick:g,label:"Reset zoom",children:y.jsx(pM,{className:"size-3.5"})})]})]})]})}function xg({onClick:e,label:t,children:n,disabled:i}){return y.jsx("button",{onClick:e,"aria-label":t,disabled:i,className:"text-white/80 hover:text-white disabled:text-white/30 disabled:hover:bg-transparent p-1.5 rounded-full hover:bg-white/15 transition-colors",children:n})}function DC({attachment:e}){const{name:t,size:n,type:i,url:r}=e,a=i.startsWith("image/"),s=i.startsWith("video/");return i.startsWith("audio/")?y.jsx(vr,{children:y.jsx("div",{className:"w-full shrink-0 overflow-hidden",children:y.jsxs("audio",{controls:!0,className:"w-full",children:[y.jsx("source",{src:r,type:i}),"Your browser does not support the audio tag."]})})}):s?y.jsx(vr,{children:y.jsx("div",{className:"w-full border shrink-0 rounded-2xl overflow-hidden",children:y.jsxs("video",{controls:!0,children:[y.jsx("source",{src:r,type:i}),"Your browser does not support the video tag."]})})}):a?y.jsx(yg,{trigger:y.jsx("div",{children:y.jsx(vr,{children:y.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:y.jsx("img",{src:r,className:"object-cover size-16",alt:t})})})}),children:y.jsx(vg,{className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:y.jsx(RC,{src:r,alt:t})})}):i==="application/pdf"?y.jsx(vr,{children:y.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:le("block size-fit max-w-[min(100%,16rem)] shrink-0 rounded-2xl border","bg-background/80 transition-colors hover:bg-accent/60","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),children:y.jsxs("div",{className:"flex items-center gap-3 p-3 min-w-0",children:[y.jsx("div",{className:le("flex size-10 shrink-0 items-center justify-center rounded-xl","bg-secondary text-muted-foreground"),"aria-hidden":!0,children:y.jsx(Lx,{className:"size-5",strokeWidth:1.75})}),y.jsxs("div",{className:"min-w-0 flex-1 flex flex-col gap-0.5 text-left",children:[y.jsx("span",{className:le("text-xs font-medium text-foreground line-clamp-1","break-words [word-break:break-word]"),children:t}),y.jsxs("span",{className:"text-xs text-muted-foreground tabular-nums",children:[(n/1024).toFixed(2)," KB · PDF"]})]})]})})}):y.jsx(vr,{children:y.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:y.jsxs("div",{className:"flex items-end gap-2 p-2",children:[y.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:le("text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600","break-words [word-break:break-word]"),children:t}),y.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(n/1024).toFixed(2)," KB"]})]})})})}const MC=pn.memo(QH,(e,t)=>e.children===t.children&&e.className===t.className);function _g({children:e,messageType:t,messageId:n}){const{anchorTarget:i}=$e();return y.jsx(MC,{"data-type":t,"data-id":n,remarkPlugins:[I2],rehypePlugins:[ZS],components:{a:({children:r,...a})=>y.jsx("a",{target:a.target||i||"_top",...a,children:r}),img:({src:r,alt:a,...s})=>r?y.jsx(yg,{trigger:y.jsx("img",{src:r,alt:a,...s,className:"cursor-pointer rounded-xl"}),children:y.jsx(vg,{className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:y.jsx(RC,{src:r,alt:a})})}):y.jsx("img",{src:r,alt:a,...s})},children:e})}function To(){const{widgetCtx:{org:e}}=Ct(),{sessionState:{session:t}}=wi(),n=$e(),{messagesState:{messages:i}}=En(),{routerState:{screen:r}}=Si();return{react:pn,org:e,session:t,config:n,messages:i,currentScreen:r}}function yX({currentMessage:e}){var t;const n=To(),i=(t=n.config.customComponents)==null?void 0:t["message::after"];return i?y.jsx(i,{...n,currentMessage:e}):null}function Eg(e){const{data:t,id:n,type:i,attachments:r,isFirstInGroup:a,isLastInGroup:s,isAloneInGroup:o,dataComponentNames:l,classNames:u}=e;if(i!=="AI"&&i!=="AGENT")return null;const{message:c,variant:d="default"}=t;return y.jsxs("div",{...Ue((l==null?void 0:l.messageContainer)??"chat/agent_msg/root"),className:le("w-5/6 flex flex-col items-start gap-1",u==null?void 0:u.messageContainer),children:[r&&r.length>0&&y.jsx("div",{className:"w-full gap-1 flex flex-row flex-wrap items-center justify-start",children:r==null?void 0:r.map(f=>y.jsx(DC,{attachment:f},f.id))}),c.length>0&&y.jsxs("div",{className:"flex flex-row gap-2",children:[y.jsx("div",{...Ue((l==null?void 0:l.message)??"chat/agent_msg/msg"),"data-first":a,"data-last":s,"data-alone":o,"data-variant":d,className:le("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]",d==="error"&&"bg-destructive/15 text-destructive",a&&!o&&"rounded-bl-md",s&&!o&&"rounded-tl-md",!a&&!s&&!o&&"rounded-l-md",u==null?void 0:u.message),children:y.jsx(_g,{messageType:i,messageId:n,children:c})}),y.jsx(yX,{currentMessage:e})]})]})}function xX(e){return y.jsx("div",{className:"w-full max-w-full overflow-auto shrink-0",children:y.jsx("pre",{className:"text-xs leading-tight whitespace-pre-wrap break-word",children:JSON.stringify(e,null,1)})})}const Tg=E.forwardRef(({className:e,...t},n)=>y.jsx(lA,{ref:n,className:le("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",e),...t}));Tg.displayName=lA.displayName;const wg=E.forwardRef(({className:e,...t},n)=>y.jsx(uA,{ref:n,className:le("aspect-square h-full w-full",e),...t}));wg.displayName=uA.displayName;const Sg=E.forwardRef(({className:e,...t},n)=>y.jsx(cA,{ref:n,className:le("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));Sg.displayName=cA.displayName;function Ag({agent:e,...t}){var n,i;return y.jsxs(Tg,{...t,children:[y.jsx(wg,{src:(e==null?void 0:e.avatarUrl)||(e==null?void 0:e.avatar)||"",alt:"Agent Icon"}),(e==null?void 0:e.name)&&y.jsx(Sg,{children:(i=(n=e==null?void 0:e.name)==null?void 0:n.slice(0,1))==null?void 0:i.toUpperCase()})]})}function _X({agent:e}){return y.jsx(Pt,{children:y.jsxs(at,{...Ue("chat/bot_loading/root"),className:"flex flex-row items-end w-full gap-2 animate-pulse",children:[y.jsx(Ag,{agent:e}),y.jsxs("div",{...Ue("chat/bot_loading/bouncing_dots_container"),className:le("flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"),children:[y.jsx(Fl.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),y.jsx(Fl.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),y.jsx(Fl.span,{className:"rounded-full animate-bounce"})]})]})})}const LC='*,: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%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.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}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.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-0\\.5{margin-left:.125rem;margin-right:.125rem}.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-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.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-dvh{height:100dvh}.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-dvw{width:100dvw}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-\\[min\\(100\\%\\,16rem\\)\\]{max-width:min(100%,16rem)}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.shrink-0{flex-shrink:0}.-translate-x-1\\/2,.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))}.transform{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-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.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-background\\/80{background-color:hsl(var(--opencx-background) / .8)}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.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-white\\/30{background-color:#ffffff4d}.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-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.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{padding-top:.25rem;padding-bottom:.25rem}.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-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.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}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.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))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.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{--tw-enter-scale: 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}.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-accent\\/60:hover{background-color:hsl(var(--opencx-accent) / .6)}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}.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\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.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))}',EX=aG,TX=sG,wX=oG,IC=E.forwardRef(({className:e,sideOffset:t=4,...n},i)=>y.jsx(_A,{ref:i,sideOffset:t,className:le("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}));IC.displayName=_A.displayName;function yu({children:e,content:t,side:n,align:i}){const{disableTooltips:r}=$e();return!t||r?e:y.jsxs(TX,{children:[y.jsx(wX,{asChild:!0,children:e}),y.jsx(IC,{side:n,align:i,collisionPadding:8,avoidCollisions:!0,children:t})]})}const PC=450;function Wi(){const[e,t]=pn.useState(()=>(window.top||window).innerWidth<PC);return pn.useEffect(()=>{const n=window.top||window,i=()=>{t(n.innerWidth<PC)};return i(),n.addEventListener("resize",i),()=>{n.removeEventListener("resize",i)}},[]),{isSmallScreen:e}}const pf={transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"1000ms"};function ts(){var e,t,n,i,r,a,s,o,l,u,c,d,f,h,g,b,_,m,v,x,T,S,A,D,L,B,O,Y,U,re,ee,Q,F,V,H,te,N,be,tt,M,Be,ge,je,dn,We,$t,Mt;const{dir:Ut}=kp(),{isSmallScreen:Lt}=Wi(),{theme:ae,inline:yi}=$e(),Li=Rn=>yi?"100%":Rn,Ii=(Rn,Ir)=>Lt?`100dv${Rn}`:Ir,nt=(Rn,Ir)=>Li(Ii(Rn,Ir)),fn={zIndex:((e=ae==null?void 0:ae.widgetTrigger)==null?void 0:e.zIndex)??1e7,offset:{bottom:((n=(t=ae==null?void 0:ae.widgetTrigger)==null?void 0:t.offset)==null?void 0:n.bottom)??20,right:((r=(i=ae==null?void 0:ae.widgetTrigger)==null?void 0:i.offset)==null?void 0:r.right)??(Ut==="ltr"?20:"initial"),left:((s=(a=ae==null?void 0:ae.widgetTrigger)==null?void 0:a.offset)==null?void 0:s.left)??(Ut==="rtl"?20:"initial")},size:{button:((l=(o=ae==null?void 0:ae.widgetTrigger)==null?void 0:o.size)==null?void 0:l.button)??48,icon:((c=(u=ae==null?void 0:ae.widgetTrigger)==null?void 0:u.size)==null?void 0:c.icon)??24}},tn=(()=>{const Rn=Ut==="ltr"?fn.offset.right:fn.offset.left;return typeof Rn!="number"?0:Rn})(),At={palette:(ae==null?void 0:ae.palette)??"neutral",primaryColor:(ae==null?void 0:ae.primaryColor)??"hsl(0 0% 9%)",widgetTrigger:fn,widgetContentContainer:{borderRadius:Lt?"0px":((d=ae==null?void 0:ae.widgetContentContainer)==null?void 0:d.borderRadius)??"32px",zIndex:((f=ae==null?void 0:ae.widgetContentContainer)==null?void 0:f.zIndex)??fn.zIndex+1,outline:((h=ae==null?void 0:ae.widgetContentContainer)==null?void 0:h.outline)??"none",outlineColor:((g=ae==null?void 0:ae.widgetContentContainer)==null?void 0:g.outlineColor)??"hsl(0 0% 50% / .5)",boxShadow:((b=ae==null?void 0:ae.widgetContentContainer)==null?void 0:b.boxShadow)??"0 0px 100px 0px rgb(0 0 0 / 0.25)",transitionProperty:((_=ae==null?void 0:ae.widgetContentContainer)==null?void 0:_.transitionProperty)??"all",transitionTimingFunction:((m=ae==null?void 0:ae.widgetContentContainer)==null?void 0:m.transitionTimingFunction)??pf.transitionTimingFunction,transitionDuration:((v=ae==null?void 0:ae.widgetContentContainer)==null?void 0:v.transitionDuration)??pf.transitionDuration,offset:{side:Lt?0:fn.offset.bottom+fn.size.button+Eo.y*2+(((T=(x=ae==null?void 0:ae.widgetContentContainer)==null?void 0:x.offset)==null?void 0:T.side)??10),align:Lt?0:tn+(((A=(S=ae==null?void 0:ae.widgetContentContainer)==null?void 0:S.offset)==null?void 0:A.align)??0)}},screens:{welcome:{width:nt("w",((L=(D=ae==null?void 0:ae.screens)==null?void 0:D.welcome)==null?void 0:L.width)??"400px"),minHeight:nt("h",((O=(B=ae==null?void 0:ae.screens)==null?void 0:B.welcome)==null?void 0:O.minHeight)??"1px")},sessions:{width:nt("w",((U=(Y=ae==null?void 0:ae.screens)==null?void 0:Y.sessions)==null?void 0:U.width)??"450px"),height:nt("h",((ee=(re=ae==null?void 0:ae.screens)==null?void 0:re.sessions)==null?void 0:ee.height)??"600px")},chat:{width:nt("w",((F=(Q=ae==null?void 0:ae.screens)==null?void 0:Q.chat)==null?void 0:F.width)??"525px"),height:nt("h",((H=(V=ae==null?void 0:ae.screens)==null?void 0:V.chat)==null?void 0:H.height)??"700px"),withCanvas:{width:nt("w",((be=(N=(te=ae==null?void 0:ae.screens)==null?void 0:te.chat)==null?void 0:N.withCanvas)==null?void 0:be.width)??"min(1050px, 100vw)"),height:nt("h",((Be=(M=(tt=ae==null?void 0:ae.screens)==null?void 0:tt.chat)==null?void 0:M.withCanvas)==null?void 0:Be.height)??"min(800px, 100vh)"),transitionTimingFunction:((dn=(je=(ge=ae==null?void 0:ae.screens)==null?void 0:ge.chat)==null?void 0:je.withCanvas)==null?void 0:dn.transitionTimingFunction)??pf.transitionTimingFunction,transitionDuration:((Mt=($t=(We=ae==null?void 0:ae.screens)==null?void 0:We.chat)==null?void 0:$t.withCanvas)==null?void 0:Mt.transitionDuration)??pf.transitionDuration}}}},Es={maxHeight:nt("h",`calc(
303
303
  100vh
304
304
  - ${At.widgetTrigger.offset.bottom}px
305
305
  - ${At.widgetContentContainer.offset.side}px
@@ -315,7 +315,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
315
315
  ${At.screens.welcome.width},
316
316
  ${At.screens.sessions.width},
317
317
  ${At.screens.chat.width}
318
- )`)};return{theme:At,computed:Es,cssVars:SX({palette:At.palette,primary:At.primaryColor})}}function SX({palette:e,primary:t}){const n=BC(e),i=de(t).toHsl(),r=de(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 BC(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 ii(e,BC.name),t}}function jC(){const{contentIframeRef:e}=Ct(),{inline:t}=$e();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 Cg({width:e,height:t}){const{isSmallScreen:n}=Wi(),{setWidth:i,setHeight:r}=jC();_.useEffect(()=>{e&&i(e),t&&r(t)},[n,t,e,i,r])}const zC=Mx;function xu({name:e,className:t}){const n=(()=>{switch(e){case"Check":return W5;case"CheckCheck":return Q5;case"CircleCheck":return Dx;case"CircleCheckBig":return nM;case"CircleX":return iM;case"Expand":return rM;case"Maximize":return dM;case"Maximize2":return cM;case"Minimize":return hM;case"Minimize2":return fM;case"Shrink":return gM;case"SquareCheck":return vM;case"SquareCheckBig":return bM;case"SquareX":return yM;case"X":return td;case void 0:return zC;default:return ii(e,xu.name),zC}})();return y.jsx(n,{className:le("size-4",t)})}function AX(){var e;const t=To(),n=(e=t.config.customComponents)==null?void 0:e.headerBottom;return n?y.jsx(n,{...t}):null}function CX({fallback:e}){var t;const n=To(),i=(t=n.config.customComponents)==null?void 0:t.headerTitle;return i?y.jsx(i,{...n}):e}function kg(){const{widgetCtx:{org:e}}=Ct(),{routerState:{screen:t}}=Si(),{textContent:n}=$e();return(()=>{var i,r;switch(t){case"chat":return(i=n==null?void 0:n.chatScreen)==null?void 0:i.headerTitle;case"sessions":return(r=n==null?void 0:n.sessionsScreen)==null?void 0:r.headerTitle;case"welcome":return;default:ii(t,kg.name);return}})()??e.name??"Chat"}function kX(e){switch(e){case"chat":return Ue("chat/header");case"sessions":return Ue("sessions/header");case"welcome":return;default:ii(e,kg.name);return}}function OX(){const{router:e}=$e(),{routerState:{screen:t},toSessionsScreen:n}=Si();return t!=="chat"||e!=null&&e.chatScreenOnly?null:y.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:n,children:y.jsx(J5,{className:"size-4 rtl:-scale-100"})})}function NX({button:e}){const{setIsOpen:t}=ja(),{isSmallScreen:n}=Wi();return n&&e.hideOnSmallScreen||!n&&e.hideOnLargeScreen?null:y.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:()=>{if(e.handleClick)return e.handleClick();t(!1)},children:y.jsx(xu,{name:e.icon})})}function Og({button:e}){const[t,n]=_.useState(!1),{routerState:{screen:i}}=Si(),{isSmallScreen:r}=Wi(),{theme:a}=ts(),{setWidth:s,setHeight:o}=jC();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 ii(i,Og.name),a.screens.chat.height}})(),u=(()=>{switch(i){case"chat":return a.screens.chat.width;case"sessions":return a.screens.sessions.width;default:return ii(i,Og.name),a.screens.chat.width}})(),c=()=>{n(d=>{const f=!d;return o(f?"100vh":l),s(f?`max(40vw, ${u})`:u),f})};return r&&e.hideOnSmallScreen||!r&&e.hideOnLargeScreen?null:y.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:c,children:y.jsx(xu,{name:e.icon||(t?e.shrinkIcon:e.expandIcon)})})}function UC({button:e}){var t,n;const{close:i}=ff(),{widgetCtx:r}=Ct(),{setIsOpen:a}=ja(),{resolveSession:s,sessionState:o}=wi(),{isSmallScreen:l}=Wi(),u=!o.session,c=((t=o.session)==null?void 0:t.isOpened)===!1,d=e.onResolved||"stay-in-chat",f=e.behaviorBeforeSessionCreation||"disabled",h=e.behaviorIfSessionIsResolved||"disabled",g=!!(o.isResolvingSession||u&&f==="disabled"||c&&h==="disabled"),b=async()=>{const{success:m,error:v}=await s();if(i(),!m)return console.error(v);switch(d){case"stay-in-chat":return;case"close-widget":a(!1);break;case"reset-chat":r.resetChat();break;case"reset-chat-and-close-widget":a(!1),r.resetChat();break;default:ii(d,UC.name);break}},E=()=>{if(u)switch(f){case"disabled":return;case"close-widget":a(!1);break;default:ii(f,E.name)}if(c)switch(h){case"disabled":return;case"close-widget":a(!1);break;case"reset-chat":r.resetChat();break;case"reset-chat-and-close-widget":a(!1),setTimeout(()=>{r.resetChat()},200);break;default:ii(h,E.name)}};return l&&e.hideOnSmallScreen||!l&&e.hideOnLargeScreen?null:((n=e.confirmation)==null?void 0:n.type)==="modal"&&!c&&!u?y.jsx(yg,{trigger:y.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",disabled:g,children:y.jsx(xu,{name:e.icon})}),children:y.jsxs(vg,{children:[y.jsx(wC,{children:y.jsx(CC,{children:e.confirmation.title||"Close conversation"})}),y.jsx(SC,{children:y.jsx(kC,{children:e.confirmation.description||"Are you sure you want to close this conversation?"})}),y.jsxs(AC,{children:[y.jsx(Tt,{variant:"secondary",onClick:i,disabled:o.isResolvingSession,children:e.confirmation.cancelButtonText||"No"}),y.jsx(Tt,{variant:"destructive",onClick:b,disabled:o.isResolvingSession,children:e.confirmation.confirmButtonText||"Yes"})]})]})}):y.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:c||u?E:b,disabled:g,children:y.jsx(xu,{name:e.icon})})}function Ng({button:e}){switch(e.functionality){case"close-widget":return y.jsx(NX,{button:e});case"expand-shrink":return y.jsx(Og,{button:e});case"resolve-session":return y.jsx(UC,{button:e});default:return ii(e,Ng.name),null}}const RX={functionality:"close-widget",hideOnLargeScreen:!0,icon:"X"};function DX(){const{routerState:{screen:e}}=Si(),{headerButtons:t}=$e(),n=e==="chat"?t==null?void 0:t.chatScreen:e==="sessions"?t==null?void 0:t.sessionsScreen:[];return!n||n.length===0?y.jsx(Ng,{button:RX}):y.jsx(y.Fragment,{children:n.map(i=>y.jsx(Ng,{button:i},`${i.functionality}-${i.icon}`))})}function HC(){const{routerState:{screen:e}}=Si(),t=kX(e),n=kg();return y.jsxs("header",{...t,className:"py-2 px-4 shrink-0",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(OX,{}),y.jsx("div",{className:le("flex-1 h-8 flex items-center",e==="sessions"&&"ps-2"),children:y.jsx(CX,{fallback:y.jsx("h2",{className:"font-semibold",children:n})})}),y.jsx(DX,{})]}),y.jsx(AX,{})]})}function FC({className:e}){return y.jsx(uM,{className:le("size-4 animate-spin",e)})}function MX(){const{messagesState:{isInitialFetchLoading:e}}=En(),{isSmallScreen:t}=Wi(),{activeMode:n,Component:i}=kx();return{isCanvasOpen:!e&&!t&&!!n&&!!i}}function LX(){const e=To(),{activeMode:t,Component:n}=kx(),{sendMessage:i}=En(),{createStateCheckpoint:r}=wi(),[a,s]=_.useState(!1),o=async l=>{try{s(!0),await i(l)}catch(u){console.error(u)}finally{s(!1)}};return!t||!n?null:y.jsx(n,{...e,mode:t,createStateCheckpoint:r,sendMessage:o,isSendingMessage:a})}const Zi=pn.forwardRef((e,t)=>{var n,i,r;return y.jsx(at,{...e,ref:t,className:le("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}}})});Zi.displayName="MotionDiv__VerticalReveal";const IX=[{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 PX(){const{isSmallScreen:e}=Wi(),{submitCsat:t,isCsatRequested:n,isCsatSubmitted:i,submittedScore:r,submittedFeedback:a}=Ox(),[s,o]=_.useState(null),[l,u]=_.useState(null),c=f=>{o(h=>h===f?null:f)},d=()=>{s&&t({score:s,feedback:l||void 0})};return!n&&!i?null:y.jsxs("div",{className:"w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden",children:[y.jsx(Pt,{mode:"wait",children:n&&!s?y.jsx(Zi,{children:y.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:"How was your conversation?"})},"csat-requested-title"):i?y.jsx(Zi,{children:y.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:"You rated the conversation as"})},"csat-submitted-title"):null}),y.jsx("div",{className:le("flex gap-4 justify-between pt-2 px-2 pb-2","transition-all",i&&"gap-0 justify-center"),children:IX.map(f=>y.jsx(Tt,{variant:f.value===s?"secondary":"ghost",size:"selfless",className:le("transition-all overflow-hidden","text-2xl size-8 rounded-full","opacity-35","hover:opacity-100",!s&&"opacity-100",f.value===s&&"opacity-100",i&&f.value!==r&&"opacity-0 size-0",i&&f.value===r&&"opacity-100 size-fit text-4xl"),onClick:n?()=>c(f.value):void 0,children:f.emoji},f.value))}),y.jsx(Pt,{mode:"wait",children:(s||r)&&y.jsx(Zi,{children:y.jsxs("div",{className:"pb-2 px-2 flex items-end",children:[y.jsx("textarea",{rows:3,className:le("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?f=>u(f.target.value):void 0,readOnly:i,placeholder:n?"Tell us more... (optional)":void 0}),y.jsx(Tt,{size:"fit",onClick:d,disabled:!s,className:le("transition-all overflow-hidden","rounded-full size-8 flex items-center justify-center p-0",i&&"opacity-0 size-0"),children:y.jsx(Rx,{className:"size-4"})})]})},"feedback-box")}),y.jsx("div",{className:le("h-0 transition-[height]",i&&"h-4")})]})}function ns(){const{dir:e}=kp(),t=$e();return _.useMemo(()=>{const n=U5(t.language)?t.language:"en";return{t:i=>H5(i,n,t.translationOverrides),language:n,dir:n==="ar"?"rtl":"ltr",hostDocumentDir:e}},[t.language,e])}function Rg({suggestion:e,className:t,...n}){const{sendMessage:i}=En(),r=()=>{const a=e.trim();a&&i({content:a})};return y.jsx(Tt,{...Ue("chat/suggested_reply_btn"),size:"sm",className:le("rounded-xl w-fit",t),...n,onClick:r,children:e})}function BX(){const{t:e}=ns(),t=[e("i_need_more_help"),e("this_was_helpful")];return y.jsx("div",{...Ue("chat/might_solve_user_issue_suggested_replies_container"),className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:t.map(n=>y.jsx(Rg,{suggestion:n,className:"flex-1"},n))})}function VC(){const{sessionState:e}=wi(),{chatFooterItems:t}=$e(),n=!!e.session&&!e.session.isOpened,i=!n;return y.jsx(Pt,{mode:"wait",children:t==null?void 0:t.map((r,a)=>r.showWhenSessionIsOpen===!1&&i||r.showWhenSessionIsResolved===!1&&n?null:y.jsx(Zi,{children:y.jsx("div",{className:"pb-2 text-center text-xs",children:y.jsx(_g,{children:r.message})})},`${r.message}-${a}`))})}function jX({file:{status:e,file:t,error:n},onCancel:i}){const[r,a]=_.useState(null);_.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 y.jsx(lM,{className:"size-4 animate-spin"});case"error":return y.jsx(tM,{className:"size-4 text-destructive"});default:return null}},o=()=>{const l=t.type.split("/")[0];return l==="image"&&r?y.jsx("img",{src:typeof r=="string"?r:"",className:"object-cover bg-secondary size-full",alt:t.name}):l==="audio"?y.jsx(aM,{className:"size-4 text-muted-foreground"}):l==="video"?y.jsx(sM,{className:"size-4 text-muted-foreground"}):t.type==="application/pdf"?y.jsx(Lx,{className:"size-4 text-muted-foreground"}):y.jsx(oM,{className:"size-4 text-muted-foreground"})};return y.jsx(yu,{side:"bottom",content:e==="error"?y.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:y.jsxs("div",{className:le(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s()}),y.jsx("button",{type:"button",className:le("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:y.jsx(td,{className:"size-4 text-primary-foreground"})}),y.jsx(o,{})]})})}function zX(){var e;const{isSmallScreen:t}=Wi(),n=_.useRef(null),{sendMessage:i}=En(),{sessionState:r}=wi(),{disableSendingWhenAwaitingAIReply:a}=$e(),{t:s}=ns(),[o,l]=_.useState(""),{allFiles:u,emptyTheFiles:c,handleCancelUpload:d,appendFiles:f,isUploading:h,successFiles:g}=q5(),b=!!((e=r.session)!=null&&e.isHandedOff),{isAwaitingBotReply:E}=Ax(),m=a!==!1&&E,v=B=>{f(B)},x=!o.trim()&&g.length===0,T=async()=>{if(m||x)return;h&&console.info("please wait for the file(s) to upload");const B=o.trim();i({content:B,attachments:g.flatMap(O=>O.fileUrl?[{url:O.fileUrl,type:O.file.type,name:O.file.name,id:O.id,size:O.file.size}]:[])}),l(""),c()},{getRootProps:S,getInputProps:A,open:D}=JA({onDrop:v,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:b?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"],"application/pdf":[".pdf"]}}),L=B=>{const O=B.clipboardData;O&&O.files.length>0&&v(Array.from(O.files))};return y.jsxs("div",{...Ue("chat/input_box/root"),className:"p-2 relative space-y-1",...S(),children:[y.jsx("input",{...A()}),y.jsxs("div",{...Ue("chat/input_box/inner_root"),className:le("transition-all","bg-white","relative rounded-3xl flex flex-col gap-2 p-2","hover:border-primary focus-within:border-primary"),children:[y.jsxs("div",{...Ue("chat/input_box/textarea_and_attachments_container"),className:"flex flex-col gap-2",children:[u.length>0&&y.jsx("div",{...Ue("chat/input_box/attachments_container"),className:"flex items-center gap-1",children:y.jsx(Pt,{mode:"popLayout",children:u.map(B=>y.jsx(at,{snapExit:!0,children:y.jsx(jX,{onCancel:()=>d(B.id),file:B})},B.id))})}),y.jsx("textarea",{...Ue("chat/input_box/textarea"),onPaste:L,ref:n,id:"chat-input",value:o,rows:3,className:le("max-h-16 [field-sizing:content]","w-full resize-none px-2",u.length===0&&"pt-1","bg-transparent outline-none","placeholder:text-muted-foreground",t?"text-[16px]":"text-sm"),onChange:B=>l(B.target.value),onKeyDown:async B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),T())},placeholder:s("write_a_message_placeholder")})]}),y.jsxs("div",{className:"gap-2 flex justify-between",children:[y.jsx(yu,{side:"top",align:"start",content:"attach images or PDF (maximum size 5mb)",children:y.jsx(Tt,{onClick:D,size:"fit",variant:"ghost",className:le("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:y.jsx(Pt,{mode:"wait",children:m?y.jsx(at,{children:y.jsx(Ix,{className:"size-4 opacity-50"})},"paper-clip-disabled"):y.jsx(at,{children:y.jsx(Ix,{className:"size-4"})},"paper-clip")})})}),y.jsx(yu,{content:"send message",side:"top",align:"end",children:y.jsx(Tt,{size:"fit",onClick:T,disabled:m||h||x,className:"rounded-full size-8 flex items-center justify-center p-0",children:y.jsx(Pt,{mode:"wait",children:m||h?y.jsx(at,{snapExit:!0,children:y.jsx(Mx,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):y.jsx(at,{snapExit:!0,children:y.jsx(Rx,{className:"size-4"})},"send")})})})]})]})]})}function YC(){const{widgetCtx:e}=Ct(),{router:t}=$e(),{canCreateNewSession:n}=wi(),{toSessionsScreen:i}=Si(),{t:r}=ns();return y.jsx(y.Fragment,{children:n||t!=null&&t.chatScreenOnly?y.jsx(Tt,{onClick:e.resetChat,className:"rounded-2xl w-full",children:r("new_conversation")}):y.jsx(Tt,{onClick:i,className:"rounded-2xl w-full",children:r("back_to_conversations")})})}function UX(){const{t:e}=ns(),{isCsatRequested:t,isCsatSubmitted:n}=Ox();return y.jsx("div",{className:"p-2",children:y.jsx("div",{className:"p-2 bg-muted rounded-3xl",children:y.jsx(Pt,{mode:"wait",children:t||n?y.jsxs(Zi,{children:[y.jsx(PX,{}),y.jsx(Pt,{mode:"wait",children:n&&y.jsx(Zi,{children:y.jsx(YC,{})},"new-conv-or-back-to-convs-button")})]},"csat"):y.jsxs(Zi,{children:[y.jsxs("div",{className:"ps-2 flex items-center gap-1 pb-2",children:[y.jsx(Dx,{className:"size-4 text-emerald-600"}),y.jsx("h2",{className:"text-sm font-medium",children:e("your_issue_has_been_resolved")})]}),y.jsx(YC,{})]},"session-closed")})})})}function HX(){var e;const{initialQuestions:t,initialQuestionsPosition:n,thisWasHelpfulOrNot:i}=$e(),{sessionState:r}=wi(),{messagesState:a}=En(),s=a.messages.length===0;return y.jsx("footer",{children:y.jsx(Pt,{mode:"wait",children:r.session&&!((e=r.session)!=null&&e.isOpened)?y.jsxs(Zi,{children:[y.jsx(UX,{}),y.jsx(VC,{})]},"session-closed"):y.jsxs(Zi,{children:[a.lastAIResMightSolveUserIssue&&(i==null?void 0:i.enabled)!==!1&&y.jsx(BX,{}),s&&t&&n!=="below-initial-messages"&&y.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:t==null?void 0:t.map((o,l)=>y.jsx(Rg,{suggestion:o},`${o}-${l}`))}),y.jsx(zX,{}),y.jsx(VC,{})]},"chat-input")})})}function FX({isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n,...i}){const{componentStore:r}=Ct();if(i.type!=="AGENT"&&i.type!=="AI")return null;if(i.data.action){const s=r.getComponent(i.data.action.name);if(s)return y.jsx(s,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}const a=r.getComponent(i.component);return a?y.jsx(a,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n}):y.jsx(Eg,{...i,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}function qC({messages:e,className:t,containerClassName:n}){var i,r;const{timestamps:a}=$e();if(!((i=a==null?void 0:a.perMessageGroup)!=null&&i.enabled))return null;const s=(r=e[e.length-1])==null?void 0:r.timestamp;if(!s)return null;const o=(()=>{try{return new Date(s).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!0})}catch(l){return console.error(l),null}})();return o?y.jsx("div",{className:n,children:y.jsx("span",{className:le("text-xs text-muted-foreground",t),children:o})}):null}function mf({messages:e,agent:t,suggestedReplies:n}){return y.jsxs("div",{...Ue("chat/agent_msg_group/root"),className:le("flex items-end gap-2"),children:[y.jsx(yu,{content:t==null?void 0:t.name,side:"right",align:"end",children:y.jsx(Ag,{...Ue("chat/agent_msg_group/root/avatar"),agent:t,className:"hidden"})}),y.jsxs("div",{className:le("flex-1 flex flex-col gap-1"),children:[y.jsxs("div",{...Ue("chat/agent_msg_group/avatar_and_msgs/root"),className:le("flex items-end gap-2"),children:[y.jsx(yu,{content:t==null?void 0:t.name,side:"right",align:"end",children:y.jsx(Ag,{...Ue("chat/agent_msg_group/avatar_and_msgs/avatar"),agent:t})}),y.jsxs("div",{...Ue("chat/agent_msg_group/avatar_and_msgs/msgs"),className:le("flex-1 flex flex-col gap-1"),children:[e.map((i,r,a)=>y.jsx(FX,{isFirstInGroup:r===0,isLastInGroup:r===a.length-1,isAloneInGroup:a.length===1,...i},i.id)),y.jsx(qC,{messages:e})]})]}),n&&n.length>0&&y.jsx("div",{...Ue("chat/agent_msg_group/suggestions"),className:le("flex flex-col gap-1 ps-8"),children:n==null?void 0:n.map((i,r)=>y.jsx(Rg,{suggestion:i},`${i}-${r}`))})]})]})}function VX(){var e,t;const n=To();if((e=n.session)!=null&&e.isOpened||!n.session)return null;const i=(t=n.config.customComponents)==null?void 0:t.onSessionResolved;return i?y.jsx(i,{...n}):null}function YX({message:e,isFirstInGroup:t,isLastInGroup:n,isAloneInGroup:i}){var r;return y.jsxs("div",{...Ue("chat/user_msg/root"),className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&y.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(r=e.attachments)==null?void 0:r.map(a=>y.jsx(DC,{attachment:a},a.id))}),e.content.length>0&&y.jsx("div",{...Ue("chat/user_msg/msg"),"data-first":t,"data-last":n,"data-alone":i,className:le("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 qX({messages:e}){return y.jsxs("div",{...Ue("chat/user_msg_group/root"),className:le("group","flex flex-col gap-1 justify-end items-end"),children:[e.map((t,n,i)=>y.jsx(YX,{message:t,isFirstInGroup:n===0,isLastInGroup:n===i.length-1,isAloneInGroup:i.length===1},t.id)),y.jsx(qC,{messages:e,containerClassName:"ms-auto"})]})}function GX(e){const t=[];let n=null;return e.forEach(i=>{var r,a,s,o,l,u;(((r=n==null?void 0:n[0])==null?void 0:r.type)!==i.type||((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 $X(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="USER"}function XX(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AI"}function KX(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AGENT"}function QX(){const{messagesState:{messages:e}}=En(),{advancedInitialMessages:t=[],initialQuestionsPosition:n,initialQuestions:i,bot:r}=$e();return y.jsx(y.Fragment,{children:e.length===0&&t.length>0&&y.jsx(mf,{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 WX(){const{messagesState:{messages:e}}=En(),{chatBannerItems:t}=$e();return!(t!=null&&t.length)||e.length>0&&t.every(n=>!n.persistent)?null:y.jsx("div",{className:"w-full text-center text-xs",children:t.map(({message:n,persistent:i},r)=>e.length>0&&!i?null:y.jsx("div",{children:y.jsx(_g,{children:n})},`${n}-${r}`))})}function ZX(){const{messagesState:{messages:e}}=En(),t=$e(),{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 y.jsx(y.Fragment,{children:e.length===0&&a.length>0&&y.jsx(mf,{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 JX(){var e;const t=To(),n=(e=t.config.customComponents)==null?void 0:e.chatBottomComponents;return n?y.jsx("div",{children:n.map(({key:i,component:r})=>y.jsx(r,{...t},i))}):null}function eK(){const{messagesState:{messages:e}}=En(),{isAwaitingBotReply:t}=Ax(),{componentStore:n}=Ct(),{bot:i,humanAgent:r}=$e(),a=_.useMemo(()=>GX(e),[e]),s=n.getComponent("loading"),o=_.useRef(null);function l(){setTimeout(()=>{const u=o.current;u&&(u.scrollTop=u.scrollHeight)},0)}return _.useEffect(()=>{l()},[e]),y.jsxs("div",{...Ue("chat/msgs/root"),ref:o,className:"max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",children:[y.jsx(WX,{}),y.jsx(QX,{}),y.jsx(ZX,{}),a.map((u,c)=>{var d,f,h,g;const b=(d=u==null?void 0:u[0])==null?void 0:d.type,E=(f=u[0])==null?void 0:f.id;if(!b||!E)return null;if($X(u))return y.jsx(qX,{messages:u},E);if(XX(u)){const m=c===a.length-1;return t&&m?null:((h=u[0])==null||h.agent,y.jsx(mf,{messages:u,agent:i?{...i,isAi:!0,id:null}:void 0},E))}if(KX(u)){const m=(g=u[0])==null?void 0:g.agent;return y.jsx(mf,{messages:u,agent:m?{...m,name:(r==null?void 0:r.name)||m.name||"",avatarUrl:(r==null?void 0:r.avatarUrl)||m.avatarUrl||null}:r?{isAi:!1,id:null,name:r.name||"",avatarUrl:r.avatarUrl||null}:void 0},E)}return null}),t&&s&&y.jsx(s,{agent:i}),y.jsx(JX,{}),y.jsx(VX,{})]})}function tK(){const{messagesState:{isInitialFetchLoading:e}}=En(),{sessionState:{session:t}}=wi(),{isCanvasOpen:n}=MX(),{theme:i}=ts();Cg({width:n?i.screens.chat.withCanvas.width:i.screens.chat.width,height:n?i.screens.chat.withCanvas.height:i.screens.chat.height});const r=_.useRef((t==null?void 0:t.id)||"chat").current;return y.jsx("div",{...Ue("chat/root"),className:le("flex flex-col overflow-hidden"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:y.jsxs("div",{className:"size-full justify-between flex flex-col",children:[y.jsx(HC,{}),y.jsx(Pt,{mode:"wait",children:e?y.jsx(at,{className:"flex flex-col items-center justify-center w-full flex-1",children:y.jsx(FC,{})},"loading"):y.jsxs(at,{className:"flex items-start h-full flex-1 overflow-auto",snapExit:!0,children:[y.jsxs("div",{...Ue("chat/main/root"),className:le("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:[y.jsx(eK,{}),y.jsx(HX,{})]}),y.jsx("div",{...Ue("chat/canvas/root"),className:le("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:y.jsx(LX,{})})]},r)})]})})}function nK({className:e,...t}){return y.jsx("div",{className:le("animate-pulse rounded-md bg-secondary",e),...t})}function iK({className:e}){return y.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:le("text-primary-foreground",e),children:y.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 GC({className:e}){const{token:t}=$e();return y.jsx("div",{className:le("flex items-center justify-center gap-2 p-2 pt-0",e),children:y.jsx(vr,{children:y.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:le("text-[10px] flex items-center","text-muted-foreground/70 [&_svg]:text-muted-foreground/70","hover:text-primary [&_svg]:hover:text-primary"),children:[y.jsx("span",{children:"Powered by"}),y.jsx("span",{children:" "}),y.jsxs("span",{className:"flex items-center gap-[1px]",children:[y.jsx("span",{children:y.jsx(iK,{className:"size-3 inline-block"})}),y.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}function rK({children:e}){return y.jsx("p",{className:"ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight",children:e})}function $C({session:e,className:t}){const{bot:n,humanAgent:i}=$e(),{toChatScreen:r}=Si(),a=e.assignee.kind==="human"?(i==null?void 0:i.name)||e.assignee.name||"Support Agent":(n==null?void 0:n.name)||"AI Support Agent",s=e.assignee.kind==="human"?(i==null?void 0:i.avatarUrl)||e.assignee.avatarUrl||"":(n==null?void 0:n.avatarUrl)||(n==null?void 0:n.avatar)||"";return y.jsxs(Tt,{variant:"ghost",size:"lg",className:le("rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",t),onClick:()=>r(e.id),children:[y.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[y.jsx(Pt,{mode:"wait",children:y.jsx(at,{snapExit:!0,children:y.jsxs(Tg,{className:"size-10",children:[y.jsx(wg,{src:s,alt:"Agent Icon"}),y.jsx(Sg,{children:y.jsx(xM,{className:"size-4"})})]})})}),y.jsxs("div",{className:"flex-1",children:[y.jsx(Pt,{mode:"wait",children:y.jsx(at,{snapExit:!0,children:a},a)}),y.jsx(Pt,{mode:"wait",children:e.lastMessage?y.jsx(at,{snapExit:!0,children:y.jsx(MC,{remarkPlugins:[I2],rehypePlugins:[ZS],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):y.jsx(at,{className:"w-1/2",snapExit:!0,children:y.jsx(nK,{className:"h-4 w-full"})},"skeleton")})]})]}),y.jsx(eM,{className:"size-4 text-muted-foreground shrink-0 rtl:-scale-100"})]})}function aK(){const{t:e}=ns(),{toChatScreen:t}=Si(),{sessionsState:{data:n,isInitialFetchLoading:i},openSessions:r,closedSessions:a,canCreateNewSession:s}=wi();return y.jsx("div",{className:"flex-1 flex flex-col overflow-scroll py-2 px-2",children:y.jsx(Pt,{mode:"wait",children:i?y.jsx(at,{className:"flex-1 flex items-center justify-center",children:y.jsx(FC,{})},"loading"):y.jsx(at,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?y.jsxs(y.Fragment,{children:[y.jsxs(Pt,{children:[r.length>0&&y.jsx(at,{fadeIn:"up",delay:.2,className:"space-y-2",snapExit:!0,children:r.map(o=>y.jsx($C,{session:o},o.id))},"open-sessions"),a.length>0&&y.jsxs(at,{className:"space-y-2",delay:.2,snapExit:!0,children:[y.jsx(rK,{children:e("closed_conversations")}),a.map(o=>y.jsx($C,{session:o,className:"opacity-50 hover:opacity-100"},o.id))]},"closed-sessions")]}),s&&y.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background",children:_.createElement(Tt,{...Ue("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new_conversation"))})]}):y.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[y.jsx("div",{className:"flex-1 flex items-center justify-center",children:y.jsx("p",{className:"text-muted-foreground",children:e("no_conversations_yet")})}),_.createElement(Tt,{...Ue("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new_conversation"))]})},"sessions")})})}function sK(){const{theme:e}=ts();return Cg({width:e.screens.sessions.width,height:e.screens.sessions.height}),y.jsx("div",{...Ue("sessions/root"),className:le("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:y.jsxs("div",{className:"size-full flex flex-col",children:[y.jsx(HC,{}),y.jsx(aK,{}),y.jsx(GC,{})]})})}const gf=_.forwardRef(({className:e,type:t,...n},i)=>{const{isSmallScreen:r}=Wi();return y.jsx("input",{ref:i,type:t,className:le(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})});gf.displayName="Input";function oK(){const{contentIframeRef:e}=Ct(),{inline:t}=$e(),n=_.useRef(null);return _.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 lK=oX({name:EC().min(2),email:EC().email()});function uK(){var e,t,n,i,r,a,s,o;const{widgetCtx:{org:l}}=Ct(),{setIsOpen:u}=ja(),{createUnverifiedContact:c}=Sx(),{isSmallScreen:d}=Wi(),f=$e(),{theme:h}=ts(),{t:g}=ns(),{observedElementRef:b}=oK();Cg({height:void 0,width:h.screens.welcome.width});const[E,m]=_.useState(((e=f.prefillUserData)==null?void 0:e.name)||""),[v,x]=_.useState(((t=f.prefillUserData)==null?void 0:t.email)||""),T=(f.extraDataCollectionFields||[]).filter(B=>B!=="name"&&B!=="email"&&!!B),[S,A]=_.useState({}),[D,L]=L$(async B=>{B.preventDefault();const O=lK.safeParse({name:E,email:v});O.success&&await c({email:O.data.email,non_verified_name:O.data.name},Object.values(S).filter(Boolean).length?S:void 0)},[E,v,S]);return y.jsx("div",{style:{width:"100vw",maxWidth:"100vw",minHeight:h.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:y.jsxs("div",{ref:b,className:le("flex flex-col",d&&"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:[y.jsxs("div",{className:le("flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10","text-primary-foreground"),children:[d&&y.jsx(at,{className:"absolute top-6 end-6",children:y.jsx(Tt,{size:"selfless",onClick:()=>u(!1),children:y.jsx(td,{className:"size-4"})})}),y.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(n=f.assets)!=null&&n.organizationLogo?y.jsx("img",{src:(i=f.assets)==null?void 0:i.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):y.jsx("h2",{className:"font-bold text-sm",children:l.name})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-tight leading-none",children:((a=(r=f.textContent)==null?void 0:r.welcomeScreen)==null?void 0:a.title)||g("welcome_screen_title")}),y.jsx("p",{className:"text-sm",children:((o=(s=f.textContent)==null?void 0:s.welcomeScreen)==null?void 0:o.description)||g("welcome_screen_description")})]})]}),y.jsxs("div",{className:le("z-10 m-2 px-2 pt-2 bp-0 space-y-2","bg-[white]","border shadow","rounded-3xl"),children:[y.jsxs("form",{onSubmit:L,className:"space-y-2",children:[y.jsx(gf,{value:E,onChange:B=>m(B.target.value),required:!0,placeholder:g("your_name_placeholder"),name:"name"}),y.jsx(gf,{required:!0,value:v,onChange:B=>x(B.target.value),type:"email",placeholder:g("your_email_placeholder"),name:"email"}),T.map(B=>y.jsx(gf,{value:S[B],onChange:O=>A(Y=>({...Y,[B]:O.target.value})),placeholder:`${B} (${g("optional")})`},B)),y.jsxs(Tt,{disabled:D.loading,className:"w-full",size:"lg",children:[D.loading?g("start_chat_button_loading"):g("start_chat_button"),y.jsx(mM,{className:"size-4 rtl:-scale-100"})]})]}),y.jsx(GC,{})]})]})})}function XC(){const{routerState:{screen:e}}=Si();return y.jsx("div",{className:"relative bg-background size-full",children:y.jsx(Pt,{mode:"wait",children:(()=>{switch(e){case"welcome":return y.jsx(at,{fadeIn:"right",className:"size-full",snapExit:!0,children:y.jsx(uK,{})},e);case"sessions":return y.jsx(at,{fadeIn:"right",className:"size-full",snapExit:!0,children:y.jsx(sK,{})},e);case"chat":return y.jsx(at,{fadeIn:"right",className:"size-full",snapExit:!0,children:y.jsx(tK,{})},e);default:return ii(e,XC.name),null}})()})})}const cK="4.0.50",dK=`<!DOCTYPE html>
318
+ )`)};return{theme:At,computed:Es,cssVars:SX({palette:At.palette,primary:At.primaryColor})}}function SX({palette:e,primary:t}){const n=BC(e),i=de(t).toHsl(),r=de(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 BC(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 ii(e,BC.name),t}}function jC(){const{contentIframeRef:e}=Ct(),{inline:t}=$e();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 Cg({width:e,height:t}){const{isSmallScreen:n}=Wi(),{setWidth:i,setHeight:r}=jC();E.useEffect(()=>{e&&i(e),t&&r(t)},[n,t,e,i,r])}const zC=Mx;function xu({name:e,className:t}){const n=(()=>{switch(e){case"Check":return W5;case"CheckCheck":return Q5;case"CircleCheck":return Dx;case"CircleCheckBig":return nM;case"CircleX":return iM;case"Expand":return rM;case"Maximize":return dM;case"Maximize2":return cM;case"Minimize":return hM;case"Minimize2":return fM;case"Shrink":return gM;case"SquareCheck":return vM;case"SquareCheckBig":return bM;case"SquareX":return yM;case"X":return td;case void 0:return zC;default:return ii(e,xu.name),zC}})();return y.jsx(n,{className:le("size-4",t)})}function AX(){var e;const t=To(),n=(e=t.config.customComponents)==null?void 0:e.headerBottom;return n?y.jsx(n,{...t}):null}function CX({fallback:e}){var t;const n=To(),i=(t=n.config.customComponents)==null?void 0:t.headerTitle;return i?y.jsx(i,{...n}):e}function kg(){const{widgetCtx:{org:e}}=Ct(),{routerState:{screen:t}}=Si(),{textContent:n}=$e();return(()=>{var i,r;switch(t){case"chat":return(i=n==null?void 0:n.chatScreen)==null?void 0:i.headerTitle;case"sessions":return(r=n==null?void 0:n.sessionsScreen)==null?void 0:r.headerTitle;case"welcome":return;default:ii(t,kg.name);return}})()??e.name??"Chat"}function kX(e){switch(e){case"chat":return Ue("chat/header");case"sessions":return Ue("sessions/header");case"welcome":return;default:ii(e,kg.name);return}}function OX(){const{router:e}=$e(),{routerState:{screen:t},toSessionsScreen:n}=Si();return t!=="chat"||e!=null&&e.chatScreenOnly?null:y.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:n,children:y.jsx(J5,{className:"size-4 rtl:-scale-100"})})}function NX({button:e}){const{setIsOpen:t}=ja(),{isSmallScreen:n}=Wi();return n&&e.hideOnSmallScreen||!n&&e.hideOnLargeScreen?null:y.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:()=>{if(e.handleClick)return e.handleClick();t(!1)},children:y.jsx(xu,{name:e.icon})})}function Og({button:e}){const[t,n]=E.useState(!1),{routerState:{screen:i}}=Si(),{isSmallScreen:r}=Wi(),{theme:a}=ts(),{setWidth:s,setHeight:o}=jC();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 ii(i,Og.name),a.screens.chat.height}})(),u=(()=>{switch(i){case"chat":return a.screens.chat.width;case"sessions":return a.screens.sessions.width;default:return ii(i,Og.name),a.screens.chat.width}})(),c=()=>{n(d=>{const f=!d;return o(f?"100vh":l),s(f?`max(40vw, ${u})`:u),f})};return r&&e.hideOnSmallScreen||!r&&e.hideOnLargeScreen?null:y.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:c,children:y.jsx(xu,{name:e.icon||(t?e.shrinkIcon:e.expandIcon)})})}function UC({button:e}){var t,n;const{close:i}=ff(),{widgetCtx:r}=Ct(),{setIsOpen:a}=ja(),{resolveSession:s,sessionState:o}=wi(),{isSmallScreen:l}=Wi(),u=!o.session,c=((t=o.session)==null?void 0:t.isOpened)===!1,d=e.onResolved||"stay-in-chat",f=e.behaviorBeforeSessionCreation||"disabled",h=e.behaviorIfSessionIsResolved||"disabled",g=!!(o.isResolvingSession||u&&f==="disabled"||c&&h==="disabled"),b=async()=>{const{success:m,error:v}=await s();if(i(),!m)return console.error(v);switch(d){case"stay-in-chat":return;case"close-widget":a(!1);break;case"reset-chat":r.resetChat();break;case"reset-chat-and-close-widget":a(!1),r.resetChat();break;default:ii(d,UC.name);break}},_=()=>{if(u)switch(f){case"disabled":return;case"close-widget":a(!1);break;default:ii(f,_.name)}if(c)switch(h){case"disabled":return;case"close-widget":a(!1);break;case"reset-chat":r.resetChat();break;case"reset-chat-and-close-widget":a(!1),setTimeout(()=>{r.resetChat()},200);break;default:ii(h,_.name)}};return l&&e.hideOnSmallScreen||!l&&e.hideOnLargeScreen?null:((n=e.confirmation)==null?void 0:n.type)==="modal"&&!c&&!u?y.jsx(yg,{trigger:y.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",disabled:g,children:y.jsx(xu,{name:e.icon})}),children:y.jsxs(vg,{children:[y.jsx(wC,{children:y.jsx(CC,{children:e.confirmation.title||"Close conversation"})}),y.jsx(SC,{children:y.jsx(kC,{children:e.confirmation.description||"Are you sure you want to close this conversation?"})}),y.jsxs(AC,{children:[y.jsx(Tt,{variant:"secondary",onClick:i,disabled:o.isResolvingSession,children:e.confirmation.cancelButtonText||"No"}),y.jsx(Tt,{variant:"destructive",onClick:b,disabled:o.isResolvingSession,children:e.confirmation.confirmButtonText||"Yes"})]})]})}):y.jsx(Tt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:c||u?_:b,disabled:g,children:y.jsx(xu,{name:e.icon})})}function Ng({button:e}){switch(e.functionality){case"close-widget":return y.jsx(NX,{button:e});case"expand-shrink":return y.jsx(Og,{button:e});case"resolve-session":return y.jsx(UC,{button:e});default:return ii(e,Ng.name),null}}const RX={functionality:"close-widget",hideOnLargeScreen:!0,icon:"X"};function DX(){const{routerState:{screen:e}}=Si(),{headerButtons:t}=$e(),n=e==="chat"?t==null?void 0:t.chatScreen:e==="sessions"?t==null?void 0:t.sessionsScreen:[];return!n||n.length===0?y.jsx(Ng,{button:RX}):y.jsx(y.Fragment,{children:n.map(i=>y.jsx(Ng,{button:i},`${i.functionality}-${i.icon}`))})}function HC(){const{routerState:{screen:e}}=Si(),t=kX(e),n=kg();return y.jsxs("header",{...t,className:"py-2 px-4 shrink-0",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(OX,{}),y.jsx("div",{className:le("flex-1 h-8 flex items-center",e==="sessions"&&"ps-2"),children:y.jsx(CX,{fallback:y.jsx("h2",{className:"font-semibold",children:n})})}),y.jsx(DX,{})]}),y.jsx(AX,{})]})}function FC({className:e}){return y.jsx(uM,{className:le("size-4 animate-spin",e)})}function MX(){const{messagesState:{isInitialFetchLoading:e}}=En(),{isSmallScreen:t}=Wi(),{activeMode:n,Component:i}=kx();return{isCanvasOpen:!e&&!t&&!!n&&!!i}}function LX(){const e=To(),{activeMode:t,Component:n}=kx(),{sendMessage:i}=En(),{createStateCheckpoint:r}=wi(),[a,s]=E.useState(!1),o=async l=>{try{s(!0),await i(l)}catch(u){console.error(u)}finally{s(!1)}};return!t||!n?null:y.jsx(n,{...e,mode:t,createStateCheckpoint:r,sendMessage:o,isSendingMessage:a})}const Zi=pn.forwardRef((e,t)=>{var n,i,r;return y.jsx(at,{...e,ref:t,className:le("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}}})});Zi.displayName="MotionDiv__VerticalReveal";const IX=[{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 PX(){const{isSmallScreen:e}=Wi(),{submitCsat:t,isCsatRequested:n,isCsatSubmitted:i,submittedScore:r,submittedFeedback:a}=Ox(),[s,o]=E.useState(null),[l,u]=E.useState(null),c=f=>{o(h=>h===f?null:f)},d=()=>{s&&t({score:s,feedback:l||void 0})};return!n&&!i?null:y.jsxs("div",{className:"w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden",children:[y.jsx(Pt,{mode:"wait",children:n&&!s?y.jsx(Zi,{children:y.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:"How was your conversation?"})},"csat-requested-title"):i?y.jsx(Zi,{children:y.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:"You rated the conversation as"})},"csat-submitted-title"):null}),y.jsx("div",{className:le("flex gap-4 justify-between pt-2 px-2 pb-2","transition-all",i&&"gap-0 justify-center"),children:IX.map(f=>y.jsx(Tt,{variant:f.value===s?"secondary":"ghost",size:"selfless",className:le("transition-all overflow-hidden","text-2xl size-8 rounded-full","opacity-35","hover:opacity-100",!s&&"opacity-100",f.value===s&&"opacity-100",i&&f.value!==r&&"opacity-0 size-0",i&&f.value===r&&"opacity-100 size-fit text-4xl"),onClick:n?()=>c(f.value):void 0,children:f.emoji},f.value))}),y.jsx(Pt,{mode:"wait",children:(s||r)&&y.jsx(Zi,{children:y.jsxs("div",{className:"pb-2 px-2 flex items-end",children:[y.jsx("textarea",{rows:3,className:le("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?f=>u(f.target.value):void 0,readOnly:i,placeholder:n?"Tell us more... (optional)":void 0}),y.jsx(Tt,{size:"fit",onClick:d,disabled:!s,className:le("transition-all overflow-hidden","rounded-full size-8 flex items-center justify-center p-0",i&&"opacity-0 size-0"),children:y.jsx(Rx,{className:"size-4"})})]})},"feedback-box")}),y.jsx("div",{className:le("h-0 transition-[height]",i&&"h-4")})]})}function ns(){const{dir:e}=kp(),t=$e();return E.useMemo(()=>{const n=U5(t.language)?t.language:"en";return{t:i=>H5(i,n,t.translationOverrides),language:n,dir:n==="ar"?"rtl":"ltr",hostDocumentDir:e}},[t.language,e])}function Rg({suggestion:e,className:t,...n}){const{sendMessage:i}=En(),r=()=>{const a=e.trim();a&&i({content:a})};return y.jsx(Tt,{...Ue("chat/suggested_reply_btn"),size:"sm",className:le("rounded-xl w-fit",t),...n,onClick:r,children:e})}function BX(){const{t:e}=ns(),t=[e("i_need_more_help"),e("this_was_helpful")];return y.jsx("div",{...Ue("chat/might_solve_user_issue_suggested_replies_container"),className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:t.map(n=>y.jsx(Rg,{suggestion:n,className:"flex-1"},n))})}function VC(){const{sessionState:e}=wi(),{chatFooterItems:t}=$e(),n=!!e.session&&!e.session.isOpened,i=!n;return y.jsx(Pt,{mode:"wait",children:t==null?void 0:t.map((r,a)=>r.showWhenSessionIsOpen===!1&&i||r.showWhenSessionIsResolved===!1&&n?null:y.jsx(Zi,{children:y.jsx("div",{className:"pb-2 text-center text-xs",children:y.jsx(_g,{children:r.message})})},`${r.message}-${a}`))})}function jX({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 y.jsx(lM,{className:"size-4 animate-spin"});case"error":return y.jsx(tM,{className:"size-4 text-destructive"});default:return null}},o=()=>{const l=t.type.split("/")[0];return l==="image"&&r?y.jsx("img",{src:typeof r=="string"?r:"",className:"object-cover bg-secondary size-full",alt:t.name}):l==="audio"?y.jsx(aM,{className:"size-4 text-muted-foreground"}):l==="video"?y.jsx(sM,{className:"size-4 text-muted-foreground"}):t.type==="application/pdf"?y.jsx(Lx,{className:"size-4 text-muted-foreground"}):y.jsx(oM,{className:"size-4 text-muted-foreground"})};return y.jsx(yu,{side:"bottom",content:e==="error"?y.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:y.jsxs("div",{className:le(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s()}),y.jsx("button",{type:"button",className:le("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:y.jsx(td,{className:"size-4 text-primary-foreground"})}),y.jsx(o,{})]})})}function zX(){var e;const{isSmallScreen:t}=Wi(),n=E.useRef(null),{sendMessage:i}=En(),{sessionState:r}=wi(),{disableSendingWhenAwaitingAIReply:a}=$e(),{t:s}=ns(),[o,l]=E.useState(""),{allFiles:u,emptyTheFiles:c,handleCancelUpload:d,appendFiles:f,isUploading:h,successFiles:g}=q5(),b=!!((e=r.session)!=null&&e.isHandedOff),{isAwaitingBotReply:_}=Ax(),m=a!==!1&&_,v=B=>{f(B)},x=!o.trim()&&g.length===0,T=async()=>{if(m||x)return;h&&console.info("please wait for the file(s) to upload");const B=o.trim();i({content:B,attachments:g.flatMap(O=>O.fileUrl?[{url:O.fileUrl,type:O.file.type,name:O.file.name,id:O.id,size:O.file.size}]:[])}),l(""),c()},{getRootProps:S,getInputProps:A,open:D}=JA({onDrop:v,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:b?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"],"application/pdf":[".pdf"]}}),L=B=>{const O=B.clipboardData;O&&O.files.length>0&&v(Array.from(O.files))};return y.jsxs("div",{...Ue("chat/input_box/root"),className:"p-2 relative space-y-1",...S(),children:[y.jsx("input",{...A()}),y.jsxs("div",{...Ue("chat/input_box/inner_root"),className:le("transition-all","bg-white","relative rounded-3xl flex flex-col gap-2 p-2","hover:border-primary focus-within:border-primary"),children:[y.jsxs("div",{...Ue("chat/input_box/textarea_and_attachments_container"),className:"flex flex-col gap-2",children:[u.length>0&&y.jsx("div",{...Ue("chat/input_box/attachments_container"),className:"flex items-center gap-1",children:y.jsx(Pt,{mode:"popLayout",children:u.map(B=>y.jsx(at,{snapExit:!0,children:y.jsx(jX,{onCancel:()=>d(B.id),file:B})},B.id))})}),y.jsx("textarea",{...Ue("chat/input_box/textarea"),onPaste:L,ref:n,id:"chat-input",value:o,rows:3,className:le("max-h-16 [field-sizing:content]","w-full resize-none px-2",u.length===0&&"pt-1","bg-transparent outline-none","placeholder:text-muted-foreground",t?"text-[16px]":"text-sm"),onChange:B=>l(B.target.value),onKeyDown:async B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),T())},placeholder:s("write_a_message_placeholder")})]}),y.jsxs("div",{className:"gap-2 flex justify-between",children:[y.jsx(yu,{side:"top",align:"start",content:"attach images or PDF (maximum size 5mb)",children:y.jsx(Tt,{onClick:D,size:"fit",variant:"ghost",className:le("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:y.jsx(Pt,{mode:"wait",children:m?y.jsx(at,{children:y.jsx(Ix,{className:"size-4 opacity-50"})},"paper-clip-disabled"):y.jsx(at,{children:y.jsx(Ix,{className:"size-4"})},"paper-clip")})})}),y.jsx(yu,{content:"send message",side:"top",align:"end",children:y.jsx(Tt,{size:"fit",onClick:T,disabled:m||h||x,className:"rounded-full size-8 flex items-center justify-center p-0",children:y.jsx(Pt,{mode:"wait",children:m||h?y.jsx(at,{snapExit:!0,children:y.jsx(Mx,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):y.jsx(at,{snapExit:!0,children:y.jsx(Rx,{className:"size-4"})},"send")})})})]})]})]})}function YC(){const{widgetCtx:e}=Ct(),{router:t}=$e(),{canCreateNewSession:n}=wi(),{toSessionsScreen:i}=Si(),{t:r}=ns();return y.jsx(y.Fragment,{children:n||t!=null&&t.chatScreenOnly?y.jsx(Tt,{onClick:e.resetChat,className:"rounded-2xl w-full",children:r("new_conversation")}):y.jsx(Tt,{onClick:i,className:"rounded-2xl w-full",children:r("back_to_conversations")})})}function UX(){const{t:e}=ns(),{isCsatRequested:t,isCsatSubmitted:n}=Ox();return y.jsx("div",{className:"p-2",children:y.jsx("div",{className:"p-2 bg-muted rounded-3xl",children:y.jsx(Pt,{mode:"wait",children:t||n?y.jsxs(Zi,{children:[y.jsx(PX,{}),y.jsx(Pt,{mode:"wait",children:n&&y.jsx(Zi,{children:y.jsx(YC,{})},"new-conv-or-back-to-convs-button")})]},"csat"):y.jsxs(Zi,{children:[y.jsxs("div",{className:"ps-2 flex items-center gap-1 pb-2",children:[y.jsx(Dx,{className:"size-4 text-emerald-600"}),y.jsx("h2",{className:"text-sm font-medium",children:e("your_issue_has_been_resolved")})]}),y.jsx(YC,{})]},"session-closed")})})})}function HX(){var e;const{initialQuestions:t,initialQuestionsPosition:n,thisWasHelpfulOrNot:i}=$e(),{sessionState:r}=wi(),{messagesState:a}=En(),s=a.messages.length===0;return y.jsx("footer",{children:y.jsx(Pt,{mode:"wait",children:r.session&&!((e=r.session)!=null&&e.isOpened)?y.jsxs(Zi,{children:[y.jsx(UX,{}),y.jsx(VC,{})]},"session-closed"):y.jsxs(Zi,{children:[a.lastAIResMightSolveUserIssue&&(i==null?void 0:i.enabled)!==!1&&y.jsx(BX,{}),s&&t&&n!=="below-initial-messages"&&y.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:t==null?void 0:t.map((o,l)=>y.jsx(Rg,{suggestion:o},`${o}-${l}`))}),y.jsx(zX,{}),y.jsx(VC,{})]},"chat-input")})})}function FX({isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n,...i}){const{componentStore:r}=Ct();if(i.type!=="AGENT"&&i.type!=="AI")return null;if(i.data.action){const s=r.getComponent(i.data.action.name);if(s)return y.jsx(s,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}const a=r.getComponent(i.component);return a?y.jsx(a,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n}):y.jsx(Eg,{...i,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}function qC({messages:e,className:t,containerClassName:n}){var i,r;const{timestamps:a}=$e();if(!((i=a==null?void 0:a.perMessageGroup)!=null&&i.enabled))return null;const s=(r=e[e.length-1])==null?void 0:r.timestamp;if(!s)return null;const o=(()=>{try{return new Date(s).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!0})}catch(l){return console.error(l),null}})();return o?y.jsx("div",{className:n,children:y.jsx("span",{className:le("text-xs text-muted-foreground",t),children:o})}):null}function mf({messages:e,agent:t,suggestedReplies:n}){return y.jsxs("div",{...Ue("chat/agent_msg_group/root"),className:le("flex items-end gap-2"),children:[y.jsx(yu,{content:t==null?void 0:t.name,side:"right",align:"end",children:y.jsx(Ag,{...Ue("chat/agent_msg_group/root/avatar"),agent:t,className:"hidden"})}),y.jsxs("div",{className:le("flex-1 flex flex-col gap-1"),children:[y.jsxs("div",{...Ue("chat/agent_msg_group/avatar_and_msgs/root"),className:le("flex items-end gap-2"),children:[y.jsx(yu,{content:t==null?void 0:t.name,side:"right",align:"end",children:y.jsx(Ag,{...Ue("chat/agent_msg_group/avatar_and_msgs/avatar"),agent:t})}),y.jsxs("div",{...Ue("chat/agent_msg_group/avatar_and_msgs/msgs"),className:le("flex-1 flex flex-col gap-1"),children:[e.map((i,r,a)=>y.jsx(FX,{isFirstInGroup:r===0,isLastInGroup:r===a.length-1,isAloneInGroup:a.length===1,...i},i.id)),y.jsx(qC,{messages:e})]})]}),n&&n.length>0&&y.jsx("div",{...Ue("chat/agent_msg_group/suggestions"),className:le("flex flex-col gap-1 ps-8"),children:n==null?void 0:n.map((i,r)=>y.jsx(Rg,{suggestion:i},`${i}-${r}`))})]})]})}function VX(){var e,t;const n=To();if((e=n.session)!=null&&e.isOpened||!n.session)return null;const i=(t=n.config.customComponents)==null?void 0:t.onSessionResolved;return i?y.jsx(i,{...n}):null}function YX({message:e,isFirstInGroup:t,isLastInGroup:n,isAloneInGroup:i}){var r;return y.jsxs("div",{...Ue("chat/user_msg/root"),className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&y.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(r=e.attachments)==null?void 0:r.map(a=>y.jsx(DC,{attachment:a},a.id))}),e.content.length>0&&y.jsx("div",{...Ue("chat/user_msg/msg"),"data-first":t,"data-last":n,"data-alone":i,className:le("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 qX({messages:e}){return y.jsxs("div",{...Ue("chat/user_msg_group/root"),className:le("group","flex flex-col gap-1 justify-end items-end"),children:[e.map((t,n,i)=>y.jsx(YX,{message:t,isFirstInGroup:n===0,isLastInGroup:n===i.length-1,isAloneInGroup:i.length===1},t.id)),y.jsx(qC,{messages:e,containerClassName:"ms-auto"})]})}function GX(e){const t=[];let n=null;return e.forEach(i=>{var r,a,s,o,l,u;(((r=n==null?void 0:n[0])==null?void 0:r.type)!==i.type||((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 $X(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="USER"}function XX(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AI"}function KX(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AGENT"}function QX(){const{messagesState:{messages:e}}=En(),{advancedInitialMessages:t=[],initialQuestionsPosition:n,initialQuestions:i,bot:r}=$e();return y.jsx(y.Fragment,{children:e.length===0&&t.length>0&&y.jsx(mf,{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 WX(){const{messagesState:{messages:e}}=En(),{chatBannerItems:t}=$e();return!(t!=null&&t.length)||e.length>0&&t.every(n=>!n.persistent)?null:y.jsx("div",{className:"w-full text-center text-xs",children:t.map(({message:n,persistent:i},r)=>e.length>0&&!i?null:y.jsx("div",{children:y.jsx(_g,{children:n})},`${n}-${r}`))})}function ZX(){const{messagesState:{messages:e}}=En(),t=$e(),{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 y.jsx(y.Fragment,{children:e.length===0&&a.length>0&&y.jsx(mf,{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 JX(){var e;const t=To(),n=(e=t.config.customComponents)==null?void 0:e.chatBottomComponents;return n?y.jsx("div",{children:n.map(({key:i,component:r})=>y.jsx(r,{...t},i))}):null}function eK(){const{messagesState:{messages:e}}=En(),{isAwaitingBotReply:t}=Ax(),{componentStore:n}=Ct(),{bot:i,humanAgent:r}=$e(),a=E.useMemo(()=>GX(e),[e]),s=n.getComponent("loading"),o=E.useRef(null);function l(){setTimeout(()=>{const u=o.current;u&&(u.scrollTop=u.scrollHeight)},0)}return E.useEffect(()=>{l()},[e]),y.jsxs("div",{...Ue("chat/msgs/root"),ref:o,className:"max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",children:[y.jsx(WX,{}),y.jsx(QX,{}),y.jsx(ZX,{}),a.map((u,c)=>{var d,f,h,g;const b=(d=u==null?void 0:u[0])==null?void 0:d.type,_=(f=u[0])==null?void 0:f.id;if(!b||!_)return null;if($X(u))return y.jsx(qX,{messages:u},_);if(XX(u)){const m=c===a.length-1;return t&&m?null:((h=u[0])==null||h.agent,y.jsx(mf,{messages:u,agent:i?{...i,isAi:!0,id:null}:void 0},_))}if(KX(u)){const m=(g=u[0])==null?void 0:g.agent;return y.jsx(mf,{messages:u,agent:m?{...m,name:(r==null?void 0:r.name)||m.name||"",avatarUrl:(r==null?void 0:r.avatarUrl)||m.avatarUrl||null}:r?{isAi:!1,id:null,name:r.name||"",avatarUrl:r.avatarUrl||null}:void 0},_)}return null}),t&&s&&y.jsx(s,{agent:i}),y.jsx(JX,{}),y.jsx(VX,{})]})}function tK(){const{messagesState:{isInitialFetchLoading:e}}=En(),{sessionState:{session:t}}=wi(),{isCanvasOpen:n}=MX(),{theme:i}=ts();Cg({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 y.jsx("div",{...Ue("chat/root"),className:le("flex flex-col overflow-hidden"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:y.jsxs("div",{className:"size-full justify-between flex flex-col",children:[y.jsx(HC,{}),y.jsx(Pt,{mode:"wait",children:e?y.jsx(at,{className:"flex flex-col items-center justify-center w-full flex-1",children:y.jsx(FC,{})},"loading"):y.jsxs(at,{className:"flex items-start h-full flex-1 overflow-auto",snapExit:!0,children:[y.jsxs("div",{...Ue("chat/main/root"),className:le("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:[y.jsx(eK,{}),y.jsx(HX,{})]}),y.jsx("div",{...Ue("chat/canvas/root"),className:le("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:y.jsx(LX,{})})]},r)})]})})}function nK({className:e,...t}){return y.jsx("div",{className:le("animate-pulse rounded-md bg-secondary",e),...t})}function iK({className:e}){return y.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:le("text-primary-foreground",e),children:y.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 GC({className:e}){const{token:t}=$e();return y.jsx("div",{className:le("flex items-center justify-center gap-2 p-2 pt-0",e),children:y.jsx(vr,{children:y.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:le("text-[10px] flex items-center","text-muted-foreground/70 [&_svg]:text-muted-foreground/70","hover:text-primary [&_svg]:hover:text-primary"),children:[y.jsx("span",{children:"Powered by"}),y.jsx("span",{children:" "}),y.jsxs("span",{className:"flex items-center gap-[1px]",children:[y.jsx("span",{children:y.jsx(iK,{className:"size-3 inline-block"})}),y.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}function rK({children:e}){return y.jsx("p",{className:"ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight",children:e})}function $C({session:e,className:t}){const{bot:n,humanAgent:i}=$e(),{toChatScreen:r}=Si(),a=e.assignee.kind==="human"?(i==null?void 0:i.name)||e.assignee.name||"Support Agent":(n==null?void 0:n.name)||"AI Support Agent",s=e.assignee.kind==="human"?(i==null?void 0:i.avatarUrl)||e.assignee.avatarUrl||"":(n==null?void 0:n.avatarUrl)||(n==null?void 0:n.avatar)||"";return y.jsxs(Tt,{variant:"ghost",size:"lg",className:le("rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",t),onClick:()=>r(e.id),children:[y.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[y.jsx(Pt,{mode:"wait",children:y.jsx(at,{snapExit:!0,children:y.jsxs(Tg,{className:"size-10",children:[y.jsx(wg,{src:s,alt:"Agent Icon"}),y.jsx(Sg,{children:y.jsx(xM,{className:"size-4"})})]})})}),y.jsxs("div",{className:"flex-1",children:[y.jsx(Pt,{mode:"wait",children:y.jsx(at,{snapExit:!0,children:a},a)}),y.jsx(Pt,{mode:"wait",children:e.lastMessage?y.jsx(at,{snapExit:!0,children:y.jsx(MC,{remarkPlugins:[I2],rehypePlugins:[ZS],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):y.jsx(at,{className:"w-1/2",snapExit:!0,children:y.jsx(nK,{className:"h-4 w-full"})},"skeleton")})]})]}),y.jsx(eM,{className:"size-4 text-muted-foreground shrink-0 rtl:-scale-100"})]})}function aK(){const{t:e}=ns(),{toChatScreen:t}=Si(),{sessionsState:{data:n,isInitialFetchLoading:i},openSessions:r,closedSessions:a,canCreateNewSession:s}=wi();return y.jsx("div",{className:"flex-1 flex flex-col overflow-scroll py-2 px-2",children:y.jsx(Pt,{mode:"wait",children:i?y.jsx(at,{className:"flex-1 flex items-center justify-center",children:y.jsx(FC,{})},"loading"):y.jsx(at,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?y.jsxs(y.Fragment,{children:[y.jsxs(Pt,{children:[r.length>0&&y.jsx(at,{fadeIn:"up",delay:.2,className:"space-y-2",snapExit:!0,children:r.map(o=>y.jsx($C,{session:o},o.id))},"open-sessions"),a.length>0&&y.jsxs(at,{className:"space-y-2",delay:.2,snapExit:!0,children:[y.jsx(rK,{children:e("closed_conversations")}),a.map(o=>y.jsx($C,{session:o,className:"opacity-50 hover:opacity-100"},o.id))]},"closed-sessions")]}),s&&y.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background",children:E.createElement(Tt,{...Ue("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new_conversation"))})]}):y.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[y.jsx("div",{className:"flex-1 flex items-center justify-center",children:y.jsx("p",{className:"text-muted-foreground",children:e("no_conversations_yet")})}),E.createElement(Tt,{...Ue("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new_conversation"))]})},"sessions")})})}function sK(){const{theme:e}=ts();return Cg({width:e.screens.sessions.width,height:e.screens.sessions.height}),y.jsx("div",{...Ue("sessions/root"),className:le("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:y.jsxs("div",{className:"size-full flex flex-col",children:[y.jsx(HC,{}),y.jsx(aK,{}),y.jsx(GC,{})]})})}const gf=E.forwardRef(({className:e,type:t,...n},i)=>{const{isSmallScreen:r}=Wi();return y.jsx("input",{ref:i,type:t,className:le(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})});gf.displayName="Input";function oK(){const{contentIframeRef:e}=Ct(),{inline:t}=$e(),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 lK=oX({name:EC().min(2),email:EC().email()});function uK(){var e,t,n,i,r,a,s,o;const{widgetCtx:{org:l}}=Ct(),{setIsOpen:u}=ja(),{createUnverifiedContact:c}=Sx(),{isSmallScreen:d}=Wi(),f=$e(),{theme:h}=ts(),{t:g}=ns(),{observedElementRef:b}=oK();Cg({height:void 0,width:h.screens.welcome.width});const[_,m]=E.useState(((e=f.prefillUserData)==null?void 0:e.name)||""),[v,x]=E.useState(((t=f.prefillUserData)==null?void 0:t.email)||""),T=(f.extraDataCollectionFields||[]).filter(B=>B!=="name"&&B!=="email"&&!!B),[S,A]=E.useState({}),[D,L]=L$(async B=>{B.preventDefault();const O=lK.safeParse({name:_,email:v});O.success&&await c({email:O.data.email,non_verified_name:O.data.name},Object.values(S).filter(Boolean).length?S:void 0)},[_,v,S]);return y.jsx("div",{style:{width:"100vw",maxWidth:"100vw",minHeight:h.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:y.jsxs("div",{ref:b,className:le("flex flex-col",d&&"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:[y.jsxs("div",{className:le("flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10","text-primary-foreground"),children:[d&&y.jsx(at,{className:"absolute top-6 end-6",children:y.jsx(Tt,{size:"selfless",onClick:()=>u(!1),children:y.jsx(td,{className:"size-4"})})}),y.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(n=f.assets)!=null&&n.organizationLogo?y.jsx("img",{src:(i=f.assets)==null?void 0:i.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):y.jsx("h2",{className:"font-bold text-sm",children:l.name})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-tight leading-none",children:((a=(r=f.textContent)==null?void 0:r.welcomeScreen)==null?void 0:a.title)||g("welcome_screen_title")}),y.jsx("p",{className:"text-sm",children:((o=(s=f.textContent)==null?void 0:s.welcomeScreen)==null?void 0:o.description)||g("welcome_screen_description")})]})]}),y.jsxs("div",{className:le("z-10 m-2 px-2 pt-2 bp-0 space-y-2","bg-[white]","border shadow","rounded-3xl"),children:[y.jsxs("form",{onSubmit:L,className:"space-y-2",children:[y.jsx(gf,{value:_,onChange:B=>m(B.target.value),required:!0,placeholder:g("your_name_placeholder"),name:"name"}),y.jsx(gf,{required:!0,value:v,onChange:B=>x(B.target.value),type:"email",placeholder:g("your_email_placeholder"),name:"email"}),T.map(B=>y.jsx(gf,{value:S[B],onChange:O=>A(Y=>({...Y,[B]:O.target.value})),placeholder:`${B} (${g("optional")})`},B)),y.jsxs(Tt,{disabled:D.loading,className:"w-full",size:"lg",children:[D.loading?g("start_chat_button_loading"):g("start_chat_button"),y.jsx(mM,{className:"size-4 rtl:-scale-100"})]})]}),y.jsx(GC,{})]})]})})}function XC(){const{routerState:{screen:e}}=Si();return y.jsx("div",{className:"relative bg-background size-full",children:y.jsx(Pt,{mode:"wait",children:(()=>{switch(e){case"welcome":return y.jsx(at,{fadeIn:"right",className:"size-full",snapExit:!0,children:y.jsx(uK,{})},e);case"sessions":return y.jsx(at,{fadeIn:"right",className:"size-full",snapExit:!0,children:y.jsx(sK,{})},e);case"chat":return y.jsx(at,{fadeIn:"right",className:"size-full",snapExit:!0,children:y.jsx(tK,{})},e);default:return ii(e,XC.name),null}})()})})}const cK="4.0.52",dK=`<!DOCTYPE html>
319
319
  <html>
320
320
  <head>
321
321
  <style>
@@ -348,7 +348,7 @@ html, body {
348
348
  </head>
349
349
  <body>
350
350
  </body>
351
- </html>`;function mK(){var e,t;const{isOpen:n,setIsOpen:i}=ja(),{cssOverrides:r,assets:a,customComponents:s}=$e(),{theme:o,cssVars:l}=ts();return s!=null&&s.widgetTrigger?s.widgetTrigger({react:pn,isOpen:n,setIsOpen:u=>i(u)}):y.jsxs(Q0,{initialContent:pK,title:"OpenCX Live Chat Trigger",style:{height:`calc(${o.widgetTrigger.size.button}px + ${Eo.x*2}px)`,width:`calc(${o.widgetTrigger.size.button}px + ${Eo.y*2}px)`,fontSize:"16px",position:"fixed",zIndex:o.widgetTrigger.zIndex,right:o.widgetTrigger.offset.right,bottom:o.widgetTrigger.offset.bottom,left:o.widgetTrigger.offset.left,boxSizing:"border-box",borderWidth:"0px",borderRadius:"100%"},children:[r&&y.jsx("style",{children:r}),y.jsx("div",{style:{...l,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:y.jsx(ux,{className:le("font-sans flex items-center justify-center rounded-full"),style:{height:o.widgetTrigger.size.button,width:o.widgetTrigger.size.button},children:y.jsx(vr,{children:y.jsx("div",{...Ue("trigger/btn"),className:le("relative size-full rounded-full","flex items-center justify-center","overflow-hidden","transition-all","bg-primary","text-primary-foreground"),children:y.jsx(Pt,{mode:"wait",children:n?y.jsx(at,{snapExit:!0,fadeIn:"up",overrides:{initial:{rotate:45},animate:{rotate:0}},children:(e=a==null?void 0:a.widgetTrigger)!=null&&e.closeIcon?y.jsx("img",{src:a.widgetTrigger.closeIcon,alt:"Widget trigger close icon",style:{width:o.widgetTrigger.size.icon,height:o.widgetTrigger.size.icon}}):y.jsx(Z5,{style:{width:o.widgetTrigger.size.icon,height:o.widgetTrigger.size.icon}})},"x-icon"):y.jsx(at,{snapExit:!0,overrides:{initial:{rotate:45},animate:{rotate:0}},children:(t=a==null?void 0:a.widgetTrigger)!=null&&t.openIcon?y.jsx("img",{src:a.widgetTrigger.openIcon,alt:"Widget trigger open icon",style:{width:o.widgetTrigger.size.icon,height:o.widgetTrigger.size.icon}}):y.jsx(hK,{style:{width:o.widgetTrigger.size.icon,height:o.widgetTrigger.size.icon},className:"mt-0.5 opacity-95"})},"message-icon")})})})})})]})}function gK(){const{dir:e}=kp();return y.jsx(RD,{style:{position:"fixed",bottom:0,right:e==="ltr"?0:void 0,left:e==="rtl"?0:void 0}})}function bK({widgetRef:e}){const{widgetCtx:t}=Ct(),{contactState:n}=Sx(),{setIsOpen:i,isOpen:r}=ja(),{toChatScreen:a,routerState:{screen:s}}=Si(),{sendMessage:o}=En();return pn.useImperativeHandle(e,()=>({newChat:async l=>{var u;if(!((u=n.contact)!=null&&u.token)){console.warn("Cannot start a new chat: contact not yet initialized.");return}console.log({isOpen:r}),r||i(!0),s==="chat"&&t.resetChat(),a(),l!=null&&l.message&&o({content:l.message})}}),[t,n,i,r,s,a,o]),null}function vK(){const{isOpen:e,setIsOpen:t}=ja();return y.jsxs(ND,{open:e,onOpenChange:t,children:[y.jsx(gK,{}),y.jsx(mK,{}),y.jsx(fK,{})]})}const yK=[{key:"loading",component:_X},{key:"fallback",component:xX},{key:"bot_message",component:Eg},{key:"agent_message",component:Eg}],xK={get:async e=>localStorage.getItem(e),set:async(e,t)=>{localStorage.setItem(e,t)},remove:async e=>{localStorage.removeItem(e)}},QC=pn.forwardRef(function({options:e,components:t=[],loadingComponent:n},i){return y.jsx(Y5,{components:[...yK,...t],options:e,storage:xK,loadingComponent:n,children:y.jsxs(G5,{children:[y.jsx(bK,{widgetRef:i}),e.inline?y.jsx(KC,{}):y.jsx(vK,{})]})})});QC.displayName="Widget";var WC={exports:{}},bf={},ZC={exports:{}},JC={};/**
351
+ </html>`;function mK(){var e,t,n;const{isOpen:i,setIsOpen:r}=ja(),{cssOverrides:a,assets:s,customComponents:o,accessibility:l}=$e(),{theme:u,cssVars:c}=ts(),d=((e=l==null?void 0:l.widgetTriggerButton)==null?void 0:e.label)??"Chat with us";return o!=null&&o.widgetTrigger?o.widgetTrigger({react:pn,isOpen:i,setIsOpen:f=>r(f)}):y.jsxs(Q0,{initialContent:pK,title:"OpenCX Live Chat Trigger",style:{height:`calc(${u.widgetTrigger.size.button}px + ${Eo.x*2}px)`,width:`calc(${u.widgetTrigger.size.button}px + ${Eo.y*2}px)`,fontSize:"16px",position:"fixed",zIndex:u.widgetTrigger.zIndex,right:u.widgetTrigger.offset.right,bottom:u.widgetTrigger.offset.bottom,left:u.widgetTrigger.offset.left,boxSizing:"border-box",borderWidth:"0px",borderRadius:"100%"},children:[a&&y.jsx("style",{children:a}),y.jsx("div",{style:{...c,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:y.jsx(ux,{"aria-label":d,title:d,className:le("font-sans flex items-center justify-center rounded-full"),style:{height:u.widgetTrigger.size.button,width:u.widgetTrigger.size.button},children:y.jsx(vr,{children:y.jsx("div",{...Ue("trigger/btn"),className:le("relative size-full rounded-full","flex items-center justify-center","overflow-hidden","transition-all","bg-primary","text-primary-foreground"),children:y.jsx(Pt,{mode:"wait",children:i?y.jsx(at,{snapExit:!0,fadeIn:"up",overrides:{initial:{rotate:45},animate:{rotate:0}},children:(t=s==null?void 0:s.widgetTrigger)!=null&&t.closeIcon?y.jsx("img",{src:s.widgetTrigger.closeIcon,alt:"Widget trigger close icon",style:{width:u.widgetTrigger.size.icon,height:u.widgetTrigger.size.icon}}):y.jsx(Z5,{style:{width:u.widgetTrigger.size.icon,height:u.widgetTrigger.size.icon}})},"x-icon"):y.jsx(at,{snapExit:!0,overrides:{initial:{rotate:45},animate:{rotate:0}},children:(n=s==null?void 0:s.widgetTrigger)!=null&&n.openIcon?y.jsx("img",{src:s.widgetTrigger.openIcon,alt:"Widget trigger open icon",style:{width:u.widgetTrigger.size.icon,height:u.widgetTrigger.size.icon}}):y.jsx(hK,{style:{width:u.widgetTrigger.size.icon,height:u.widgetTrigger.size.icon},className:"mt-0.5 opacity-95"})},"message-icon")})})})})})]})}function gK(){const{dir:e}=kp();return y.jsx(RD,{style:{position:"fixed",bottom:0,right:e==="ltr"?0:void 0,left:e==="rtl"?0:void 0}})}function bK({widgetRef:e}){const{widgetCtx:t}=Ct(),{contactState:n}=Sx(),{setIsOpen:i,isOpen:r}=ja(),{toChatScreen:a,routerState:{screen:s}}=Si(),{sendMessage:o}=En();return pn.useImperativeHandle(e,()=>({newChat:async l=>{var u;if(!((u=n.contact)!=null&&u.token)){console.warn("Cannot start a new chat: contact not yet initialized.");return}console.log({isOpen:r}),r||i(!0),s==="chat"&&t.resetChat(),a(),l!=null&&l.message&&o({content:l.message})}}),[t,n,i,r,s,a,o]),null}function vK(){const{isOpen:e,setIsOpen:t}=ja();return y.jsxs(ND,{open:e,onOpenChange:t,children:[y.jsx(gK,{}),y.jsx(mK,{}),y.jsx(fK,{})]})}const yK=[{key:"loading",component:_X},{key:"fallback",component:xX},{key:"bot_message",component:Eg},{key:"agent_message",component:Eg}],xK={get:async e=>localStorage.getItem(e),set:async(e,t)=>{localStorage.setItem(e,t)},remove:async e=>{localStorage.removeItem(e)}},QC=pn.forwardRef(function({options:e,components:t=[],loadingComponent:n},i){return y.jsx(Y5,{components:[...yK,...t],options:e,storage:xK,loadingComponent:n,children:y.jsxs(G5,{children:[y.jsx(bK,{widgetRef:i}),e.inline?y.jsx(KC,{}):y.jsx(vK,{})]})})});QC.displayName="Widget";var WC={exports:{}},bf={},ZC={exports:{}},JC={};/**
352
352
  * @license React
353
353
  * scheduler.production.js
354
354
  *
@@ -356,7 +356,7 @@ html, body {
356
356
  *
357
357
  * This source code is licensed under the MIT license found in the
358
358
  * LICENSE file in the root directory of this source tree.
359
- */(function(e){function t(F,V){var H=F.length;F.push(V);e:for(;0<H;){var te=H-1>>>1,N=F[te];if(0<r(N,V))F[te]=V,F[H]=N,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,N=F.length,be=N>>>1;te<be;){var tt=2*(te+1)-1,M=F[tt],Be=tt+1,ge=F[Be];if(0>r(M,H))Be<N&&0>r(ge,M)?(F[te]=ge,F[Be]=H,te=Be):(F[te]=M,F[tt]=H,te=tt);else if(Be<N&&0>r(ge,H))F[te]=ge,F[Be]=H,te=Be;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,d=null,f=3,h=!1,g=!1,b=!1,E=!1,m=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function T(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,T(F),!g)if(n(l)!==null)g=!0,A||(A=!0,U());else{var V=n(u);V!==null&&Q(S,V.startTime-F)}}var A=!1,D=-1,L=5,B=-1;function O(){return E?!0:!(e.unstable_now()-B<L)}function Y(){if(E=!1,A){var F=e.unstable_now();B=F;var V=!0;try{e:{g=!1,b&&(b=!1,v(D),D=-1),h=!0;var H=f;try{t:{for(T(F),d=n(l);d!==null&&!(d.expirationTime>F&&O());){var te=d.callback;if(typeof te=="function"){d.callback=null,f=d.priorityLevel;var N=te(d.expirationTime<=F);if(F=e.unstable_now(),typeof N=="function"){d.callback=N,T(F),V=!0;break t}d===n(l)&&i(l),T(F)}else i(l);d=n(l)}if(d!==null)V=!0;else{var be=n(u);be!==null&&Q(S,be.startTime-F),V=!1}}break e}finally{d=null,f=H,h=!1}V=void 0}}finally{V?U():A=!1}}}var U;if(typeof x=="function")U=function(){x(Y)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,ee=re.port2;re.port1.onmessage=Y,U=function(){ee.postMessage(null)}}else U=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 f},e.unstable_next=function(F){switch(f){case 1:case 2:case 3:var V=3;break;default:V=f}var H=f;f=V;try{return F()}finally{f=H}},e.unstable_requestPaint=function(){E=!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=f;f=F;try{return V()}finally{f=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 N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=H+N,F={id:c++,callback:V,priorityLevel:F,startTime:H,expirationTime:N,sortIndex:-1},H>te?(F.sortIndex=H,t(u,F),n(l)===null&&F===n(u)&&(b?(v(D),D=-1):b=!0,Q(S,H-te))):(F.sortIndex=N,t(l,F),g||h||(g=!0,A||(A=!0,U()))),F},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(F){var V=f;return function(){var H=f;f=V;try{return F.apply(this,arguments)}finally{f=H}}}})(JC),ZC.exports=JC;var _K=ZC.exports;/**
359
+ */(function(e){function t(F,V){var H=F.length;F.push(V);e:for(;0<H;){var te=H-1>>>1,N=F[te];if(0<r(N,V))F[te]=V,F[H]=N,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,N=F.length,be=N>>>1;te<be;){var tt=2*(te+1)-1,M=F[tt],Be=tt+1,ge=F[Be];if(0>r(M,H))Be<N&&0>r(ge,M)?(F[te]=ge,F[Be]=H,te=Be):(F[te]=M,F[tt]=H,te=tt);else if(Be<N&&0>r(ge,H))F[te]=ge,F[Be]=H,te=Be;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,d=null,f=3,h=!1,g=!1,b=!1,_=!1,m=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function T(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,T(F),!g)if(n(l)!==null)g=!0,A||(A=!0,U());else{var V=n(u);V!==null&&Q(S,V.startTime-F)}}var A=!1,D=-1,L=5,B=-1;function O(){return _?!0:!(e.unstable_now()-B<L)}function Y(){if(_=!1,A){var F=e.unstable_now();B=F;var V=!0;try{e:{g=!1,b&&(b=!1,v(D),D=-1),h=!0;var H=f;try{t:{for(T(F),d=n(l);d!==null&&!(d.expirationTime>F&&O());){var te=d.callback;if(typeof te=="function"){d.callback=null,f=d.priorityLevel;var N=te(d.expirationTime<=F);if(F=e.unstable_now(),typeof N=="function"){d.callback=N,T(F),V=!0;break t}d===n(l)&&i(l),T(F)}else i(l);d=n(l)}if(d!==null)V=!0;else{var be=n(u);be!==null&&Q(S,be.startTime-F),V=!1}}break e}finally{d=null,f=H,h=!1}V=void 0}}finally{V?U():A=!1}}}var U;if(typeof x=="function")U=function(){x(Y)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,ee=re.port2;re.port1.onmessage=Y,U=function(){ee.postMessage(null)}}else U=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 f},e.unstable_next=function(F){switch(f){case 1:case 2:case 3:var V=3;break;default:V=f}var H=f;f=V;try{return F()}finally{f=H}},e.unstable_requestPaint=function(){_=!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=f;f=F;try{return V()}finally{f=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 N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=H+N,F={id:c++,callback:V,priorityLevel:F,startTime:H,expirationTime:N,sortIndex:-1},H>te?(F.sortIndex=H,t(u,F),n(l)===null&&F===n(u)&&(b?(v(D),D=-1):b=!0,Q(S,H-te))):(F.sortIndex=N,t(l,F),g||h||(g=!0,A||(A=!0,U()))),F},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(F){var V=f;return function(){var H=f;f=V;try{return F.apply(this,arguments)}finally{f=H}}}})(JC),ZC.exports=JC;var _K=ZC.exports;/**
360
360
  * @license React
361
361
  * react-dom-client.production.js
362
362
  *
@@ -364,13 +364,13 @@ html, body {
364
364
  *
365
365
  * This source code is licensed under the MIT license found in the
366
366
  * LICENSE file in the root directory of this source tree.
367
- */var Bt=_K,ek=_,EK=ml;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 tk(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _u(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 nk(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 ik(e){if(_u(e)!==e)throw Error(q(188))}function TK(e){var t=e.alternate;if(!t){if(t=_u(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 ik(r),e;if(a===i)return ik(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 rk(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=rk(e),t!==null)return t;e=e.sibling}return null}var st=Object.assign,wK=Symbol.for("react.element"),vf=Symbol.for("react.transitional.element"),Eu=Symbol.for("react.portal"),wo=Symbol.for("react.fragment"),ak=Symbol.for("react.strict_mode"),Dg=Symbol.for("react.profiler"),SK=Symbol.for("react.provider"),sk=Symbol.for("react.consumer"),yr=Symbol.for("react.context"),Mg=Symbol.for("react.forward_ref"),Lg=Symbol.for("react.suspense"),Ig=Symbol.for("react.suspense_list"),Pg=Symbol.for("react.memo"),oa=Symbol.for("react.lazy"),Bg=Symbol.for("react.activity"),AK=Symbol.for("react.memo_cache_sentinel"),ok=Symbol.iterator;function Tu(e){return e===null||typeof e!="object"?null:(e=ok&&e[ok]||e["@@iterator"],typeof e=="function"?e:null)}var CK=Symbol.for("react.client.reference");function jg(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===CK?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wo:return"Fragment";case Dg:return"Profiler";case ak:return"StrictMode";case Lg:return"Suspense";case Ig:return"SuspenseList";case Bg:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Eu:return"Portal";case yr:return(e.displayName||"Context")+".Provider";case sk:return(e._context.displayName||"Context")+".Consumer";case Mg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pg:return t=e.displayName||null,t!==null?t:jg(e.type)||"Memo";case oa:t=e._payload,e=e._init;try{return jg(e(t))}catch{}}return null}var wu=Array.isArray,me=ek.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,He=EK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,is={pending:!1,data:null,method:null,action:null},zg=[],So=-1;function Ji(e){return{current:e}}function Vt(e){0>So||(e.current=zg[So],zg[So]=null,So--)}function dt(e,t){So++,zg[So]=e.current,e.current=t}var er=Ji(null),Su=Ji(null),la=Ji(null),yf=Ji(null);function xf(e,t){switch(dt(la,t),dt(Su,e),dt(er,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?kO(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=kO(t),e=OO(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Vt(er),dt(er,e)}function Ao(){Vt(er),Vt(Su),Vt(la)}function Ug(e){e.memoizedState!==null&&dt(yf,e);var t=er.current,n=OO(t,e.type);t!==n&&(dt(Su,e),dt(er,n))}function _f(e){Su.current===e&&(Vt(er),Vt(Su)),yf.current===e&&(Vt(yf),vc._currentValue=is)}var Hg=Object.prototype.hasOwnProperty,Fg=Bt.unstable_scheduleCallback,Vg=Bt.unstable_cancelCallback,kK=Bt.unstable_shouldYield,OK=Bt.unstable_requestPaint,tr=Bt.unstable_now,NK=Bt.unstable_getCurrentPriorityLevel,lk=Bt.unstable_ImmediatePriority,uk=Bt.unstable_UserBlockingPriority,Ef=Bt.unstable_NormalPriority,RK=Bt.unstable_LowPriority,ck=Bt.unstable_IdlePriority,DK=Bt.log,MK=Bt.unstable_setDisableYieldValue,Au=null,Yn=null;function ua(e){if(typeof DK=="function"&&MK(e),Yn&&typeof Yn.setStrictMode=="function")try{Yn.setStrictMode(Au,e)}catch{}}var qn=Math.clz32?Math.clz32:PK,LK=Math.log,IK=Math.LN2;function PK(e){return e>>>=0,e===0?32:31-(LK(e)/IK|0)|0}var Tf=256,wf=4194304;function rs(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 Sf(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=rs(i):(s&=o,s!==0?r=rs(s):n||(n=o&~e,n!==0&&(r=rs(n))))):(o=i&~a,o!==0?r=rs(o):s!==0?r=rs(s):n||(n=i&~e,n!==0&&(r=rs(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 Cu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function BK(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 dk(){var e=Tf;return Tf<<=1,!(Tf&4194048)&&(Tf=256),e}function fk(){var e=wf;return wf<<=1,!(wf&62914560)&&(wf=4194304),e}function Yg(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ku(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function jK(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-qn(n),d=1<<c;o[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var h=f[c];h!==null&&(h.lane&=-536870913)}n&=~d}i!==0&&hk(e,i,0),a!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=a&~(s&~t))}function hk(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-qn(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&4194090}function pk(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-qn(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function qg(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 Gg(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function mk(){var e=He.p;return e!==0?e:(e=window.event,e===void 0?32:XO(e.type))}function zK(e,t){var n=He.p;try{return He.p=e,t()}finally{He.p=n}}var ca=Math.random().toString(36).slice(2),un="__reactFiber$"+ca,An="__reactProps$"+ca,Co="__reactContainer$"+ca,$g="__reactEvents$"+ca,UK="__reactListeners$"+ca,HK="__reactHandles$"+ca,gk="__reactResources$"+ca,Ou="__reactMarker$"+ca;function Xg(e){delete e[un],delete e[An],delete e[$g],delete e[UK],delete e[HK]}function ko(e){var t=e[un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Co]||n[un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=MO(e);e!==null;){if(n=e[un])return n;e=MO(e)}return t}e=n,n=e.parentNode}return null}function Oo(e){if(e=e[un]||e[Co]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Nu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(q(33))}function No(e){var t=e[gk];return t||(t=e[gk]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Yt(e){e[Ou]=!0}var bk=new Set,vk={};function as(e,t){Ro(e,t),Ro(e+"Capture",t)}function Ro(e,t){for(vk[e]=t,e=0;e<t.length;e++)bk.add(t[e])}var FK=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]*$"),yk={},xk={};function VK(e){return Hg.call(xk,e)?!0:Hg.call(yk,e)?!1:FK.test(e)?xk[e]=!0:(yk[e]=!0,!1)}function Af(e,t,n){if(VK(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 Cf(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 xr(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 Kg,_k;function Do(e){if(Kg===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Kg=t&&t[1]||"",_k=-1<n.stack.indexOf(`
367
+ */var Bt=_K,ek=E,EK=ml;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 tk(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _u(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 nk(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 ik(e){if(_u(e)!==e)throw Error(q(188))}function TK(e){var t=e.alternate;if(!t){if(t=_u(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 ik(r),e;if(a===i)return ik(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 rk(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=rk(e),t!==null)return t;e=e.sibling}return null}var st=Object.assign,wK=Symbol.for("react.element"),vf=Symbol.for("react.transitional.element"),Eu=Symbol.for("react.portal"),wo=Symbol.for("react.fragment"),ak=Symbol.for("react.strict_mode"),Dg=Symbol.for("react.profiler"),SK=Symbol.for("react.provider"),sk=Symbol.for("react.consumer"),yr=Symbol.for("react.context"),Mg=Symbol.for("react.forward_ref"),Lg=Symbol.for("react.suspense"),Ig=Symbol.for("react.suspense_list"),Pg=Symbol.for("react.memo"),oa=Symbol.for("react.lazy"),Bg=Symbol.for("react.activity"),AK=Symbol.for("react.memo_cache_sentinel"),ok=Symbol.iterator;function Tu(e){return e===null||typeof e!="object"?null:(e=ok&&e[ok]||e["@@iterator"],typeof e=="function"?e:null)}var CK=Symbol.for("react.client.reference");function jg(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===CK?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wo:return"Fragment";case Dg:return"Profiler";case ak:return"StrictMode";case Lg:return"Suspense";case Ig:return"SuspenseList";case Bg:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Eu:return"Portal";case yr:return(e.displayName||"Context")+".Provider";case sk:return(e._context.displayName||"Context")+".Consumer";case Mg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pg:return t=e.displayName||null,t!==null?t:jg(e.type)||"Memo";case oa:t=e._payload,e=e._init;try{return jg(e(t))}catch{}}return null}var wu=Array.isArray,me=ek.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,He=EK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,is={pending:!1,data:null,method:null,action:null},zg=[],So=-1;function Ji(e){return{current:e}}function Vt(e){0>So||(e.current=zg[So],zg[So]=null,So--)}function dt(e,t){So++,zg[So]=e.current,e.current=t}var er=Ji(null),Su=Ji(null),la=Ji(null),yf=Ji(null);function xf(e,t){switch(dt(la,t),dt(Su,e),dt(er,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?kO(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=kO(t),e=OO(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Vt(er),dt(er,e)}function Ao(){Vt(er),Vt(Su),Vt(la)}function Ug(e){e.memoizedState!==null&&dt(yf,e);var t=er.current,n=OO(t,e.type);t!==n&&(dt(Su,e),dt(er,n))}function _f(e){Su.current===e&&(Vt(er),Vt(Su)),yf.current===e&&(Vt(yf),vc._currentValue=is)}var Hg=Object.prototype.hasOwnProperty,Fg=Bt.unstable_scheduleCallback,Vg=Bt.unstable_cancelCallback,kK=Bt.unstable_shouldYield,OK=Bt.unstable_requestPaint,tr=Bt.unstable_now,NK=Bt.unstable_getCurrentPriorityLevel,lk=Bt.unstable_ImmediatePriority,uk=Bt.unstable_UserBlockingPriority,Ef=Bt.unstable_NormalPriority,RK=Bt.unstable_LowPriority,ck=Bt.unstable_IdlePriority,DK=Bt.log,MK=Bt.unstable_setDisableYieldValue,Au=null,Yn=null;function ua(e){if(typeof DK=="function"&&MK(e),Yn&&typeof Yn.setStrictMode=="function")try{Yn.setStrictMode(Au,e)}catch{}}var qn=Math.clz32?Math.clz32:PK,LK=Math.log,IK=Math.LN2;function PK(e){return e>>>=0,e===0?32:31-(LK(e)/IK|0)|0}var Tf=256,wf=4194304;function rs(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 Sf(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=rs(i):(s&=o,s!==0?r=rs(s):n||(n=o&~e,n!==0&&(r=rs(n))))):(o=i&~a,o!==0?r=rs(o):s!==0?r=rs(s):n||(n=i&~e,n!==0&&(r=rs(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 Cu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function BK(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 dk(){var e=Tf;return Tf<<=1,!(Tf&4194048)&&(Tf=256),e}function fk(){var e=wf;return wf<<=1,!(wf&62914560)&&(wf=4194304),e}function Yg(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ku(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function jK(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-qn(n),d=1<<c;o[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var h=f[c];h!==null&&(h.lane&=-536870913)}n&=~d}i!==0&&hk(e,i,0),a!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=a&~(s&~t))}function hk(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-qn(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&4194090}function pk(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-qn(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function qg(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 Gg(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function mk(){var e=He.p;return e!==0?e:(e=window.event,e===void 0?32:XO(e.type))}function zK(e,t){var n=He.p;try{return He.p=e,t()}finally{He.p=n}}var ca=Math.random().toString(36).slice(2),un="__reactFiber$"+ca,An="__reactProps$"+ca,Co="__reactContainer$"+ca,$g="__reactEvents$"+ca,UK="__reactListeners$"+ca,HK="__reactHandles$"+ca,gk="__reactResources$"+ca,Ou="__reactMarker$"+ca;function Xg(e){delete e[un],delete e[An],delete e[$g],delete e[UK],delete e[HK]}function ko(e){var t=e[un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Co]||n[un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=MO(e);e!==null;){if(n=e[un])return n;e=MO(e)}return t}e=n,n=e.parentNode}return null}function Oo(e){if(e=e[un]||e[Co]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Nu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(q(33))}function No(e){var t=e[gk];return t||(t=e[gk]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Yt(e){e[Ou]=!0}var bk=new Set,vk={};function as(e,t){Ro(e,t),Ro(e+"Capture",t)}function Ro(e,t){for(vk[e]=t,e=0;e<t.length;e++)bk.add(t[e])}var FK=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]*$"),yk={},xk={};function VK(e){return Hg.call(xk,e)?!0:Hg.call(yk,e)?!1:FK.test(e)?xk[e]=!0:(yk[e]=!0,!1)}function Af(e,t,n){if(VK(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 Cf(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 xr(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 Kg,_k;function Do(e){if(Kg===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Kg=t&&t[1]||"",_k=-1<n.stack.indexOf(`
368
368
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
369
369
  `+Kg+e+_k}var Qg=!1;function Wg(e,t){if(!e||Qg)return"";Qg=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(h){var f=h}Reflect.construct(e,[],d)}else{try{d.call()}catch(h){f=h}e.call(d.prototype)}}else{try{throw Error()}catch(h){f=h}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(h){if(h&&f&&typeof h.stack=="string")return[h.stack,f.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(`
370
370
  `),u=o.split(`
371
371
  `);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=`
372
372
  `+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{Qg=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Do(n):""}function YK(e){switch(e.tag){case 26:case 27:case 5:return Do(e.type);case 16:return Do("Lazy");case 13:return Do("Suspense");case 19:return Do("SuspenseList");case 0:case 15:return Wg(e.type,!1);case 11:return Wg(e.type.render,!1);case 1:return Wg(e.type,!0);case 31:return Do("Activity");default:return""}}function Ek(e){try{var t="";do t+=YK(e),e=e.return;while(e);return t}catch(n){return`
373
373
  Error generating stack: `+n.message+`
374
- `+n.stack}}function ci(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qK(e){var t=Tk(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 kf(e){e._valueTracker||(e._valueTracker=qK(e))}function wk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Tk(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Of(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 GK=/[\n"\\]/g;function di(e){return e.replace(GK,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zg(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=""+ci(t)):e.value!==""+ci(t)&&(e.value=""+ci(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Jg(e,s,ci(t)):n!=null?Jg(e,s,ci(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=""+ci(o):e.removeAttribute("name")}function Sk(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?""+ci(n):"",t=t!=null?""+ci(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 Jg(e,t,n){t==="number"&&Of(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Mo(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=""+ci(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 Ak(e,t,n){if(t!=null&&(t=""+ci(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ci(n):""}function Ck(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(q(92));if(wu(i)){if(1<i.length)throw Error(q(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=ci(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i)}function Lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $K=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 kk(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||$K.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ok(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&&kk(e,r,i)}else for(var a in t)t.hasOwnProperty(a)&&kk(e,a,t[a])}function eb(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 XK=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"]]),KK=/^[\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 Nf(e){return KK.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var tb=null;function nb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Io=null,Po=null;function Nk(e){var t=Oo(e);if(t&&(e=t.stateNode)){var n=e[An]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zg(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="'+di(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[An]||null;if(!r)throw Error(q(90));Zg(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&&wk(i)}break e;case"textarea":Ak(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Mo(e,!!n.multiple,t,!1)}}}var ib=!1;function Rk(e,t,n){if(ib)return e(t,n);ib=!0;try{var i=e(t);return i}finally{if(ib=!1,(Io!==null||Po!==null)&&(mh(),Io&&(t=Io,e=Po,Po=Io=null,Nk(t),e)))for(t=0;t<e.length;t++)Nk(e[t])}}function Ru(e,t){var n=e.stateNode;if(n===null)return null;var i=n[An]||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 _r=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rb=!1;if(_r)try{var Du={};Object.defineProperty(Du,"passive",{get:function(){rb=!0}}),window.addEventListener("test",Du,Du),window.removeEventListener("test",Du,Du)}catch{rb=!1}var da=null,ab=null,Rf=null;function Dk(){if(Rf)return Rf;var e,t=ab,n=t.length,i,r="value"in da?da.value:da.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 Rf=r.slice(e,1<i?1-i:void 0)}function Df(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 Mf(){return!0}function Mk(){return!1}function Cn(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)?Mf:Mk,this.isPropagationStopped=Mk,this}return st(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=Mf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mf)},persist:function(){},isPersistent:Mf}),t}var ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lf=Cn(ss),Mu=st({},ss,{view:0,detail:0}),QK=Cn(Mu),sb,ob,Lu,If=st({},Mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ub,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!==Lu&&(Lu&&e.type==="mousemove"?(sb=e.screenX-Lu.screenX,ob=e.screenY-Lu.screenY):ob=sb=0,Lu=e),sb)},movementY:function(e){return"movementY"in e?e.movementY:ob}}),Lk=Cn(If),WK=st({},If,{dataTransfer:0}),ZK=Cn(WK),JK=st({},Mu,{relatedTarget:0}),lb=Cn(JK),eQ=st({},ss,{animationName:0,elapsedTime:0,pseudoElement:0}),tQ=Cn(eQ),nQ=st({},ss,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iQ=Cn(nQ),rQ=st({},ss,{data:0}),Ik=Cn(rQ),aQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sQ={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"},oQ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lQ(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=oQ[e])?!!t[e]:!1}function ub(){return lQ}var uQ=st({},Mu,{key:function(e){if(e.key){var t=aQ[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Df(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sQ[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ub,charCode:function(e){return e.type==="keypress"?Df(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Df(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cQ=Cn(uQ),dQ=st({},If,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pk=Cn(dQ),fQ=st({},Mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ub}),hQ=Cn(fQ),pQ=st({},ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),mQ=Cn(pQ),gQ=st({},If,{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}),bQ=Cn(gQ),vQ=st({},ss,{newState:0,oldState:0}),yQ=Cn(vQ),xQ=[9,13,27,32],cb=_r&&"CompositionEvent"in window,Iu=null;_r&&"documentMode"in document&&(Iu=document.documentMode);var _Q=_r&&"TextEvent"in window&&!Iu,Bk=_r&&(!cb||Iu&&8<Iu&&11>=Iu),jk=" ",zk=!1;function Uk(e,t){switch(e){case"keyup":return xQ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bo=!1;function EQ(e,t){switch(e){case"compositionend":return Hk(t);case"keypress":return t.which!==32?null:(zk=!0,jk);case"textInput":return e=t.data,e===jk&&zk?null:e;default:return null}}function TQ(e,t){if(Bo)return e==="compositionend"||!cb&&Uk(e,t)?(e=Dk(),Rf=ab=da=null,Bo=!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 Bk&&t.locale!=="ko"?null:t.data;default:return null}}var wQ={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 Fk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wQ[e.type]:t==="textarea"}function Vk(e,t,n,i){Io?Po?Po.push(i):Po=[i]:Io=i,t=_h(t,"onChange"),0<t.length&&(n=new Lf("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Pu=null,Bu=null;function SQ(e){TO(e,0)}function Pf(e){var t=Nu(e);if(wk(t))return e}function Yk(e,t){if(e==="change")return t}var qk=!1;if(_r){var db;if(_r){var fb="oninput"in document;if(!fb){var Gk=document.createElement("div");Gk.setAttribute("oninput","return;"),fb=typeof Gk.oninput=="function"}db=fb}else db=!1;qk=db&&(!document.documentMode||9<document.documentMode)}function $k(){Pu&&(Pu.detachEvent("onpropertychange",Xk),Bu=Pu=null)}function Xk(e){if(e.propertyName==="value"&&Pf(Bu)){var t=[];Vk(t,Bu,e,nb(e)),Rk(SQ,t)}}function AQ(e,t,n){e==="focusin"?($k(),Pu=t,Bu=n,Pu.attachEvent("onpropertychange",Xk)):e==="focusout"&&$k()}function CQ(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pf(Bu)}function kQ(e,t){if(e==="click")return Pf(t)}function OQ(e,t){if(e==="input"||e==="change")return Pf(t)}function NQ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gn=typeof Object.is=="function"?Object.is:NQ;function ju(e,t){if(Gn(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(!Hg.call(t,r)||!Gn(e[r],t[r]))return!1}return!0}function Kk(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qk(e,t){var n=Kk(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=Kk(n)}}function Wk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zk(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Of(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=Of(e.document)}return t}function hb(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 RQ=_r&&"documentMode"in document&&11>=document.documentMode,jo=null,pb=null,zu=null,mb=!1;function Jk(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mb||jo==null||jo!==Of(i)||(i=jo,"selectionStart"in i&&hb(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}),zu&&ju(zu,i)||(zu=i,i=_h(pb,"onSelect"),0<i.length&&(t=new Lf("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=jo)))}function os(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zo={animationend:os("Animation","AnimationEnd"),animationiteration:os("Animation","AnimationIteration"),animationstart:os("Animation","AnimationStart"),transitionrun:os("Transition","TransitionRun"),transitionstart:os("Transition","TransitionStart"),transitioncancel:os("Transition","TransitionCancel"),transitionend:os("Transition","TransitionEnd")},gb={},e3={};_r&&(e3=document.createElement("div").style,"AnimationEvent"in window||(delete zo.animationend.animation,delete zo.animationiteration.animation,delete zo.animationstart.animation),"TransitionEvent"in window||delete zo.transitionend.transition);function ls(e){if(gb[e])return gb[e];if(!zo[e])return e;var t=zo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in e3)return gb[e]=t[n];return e}var t3=ls("animationend"),n3=ls("animationiteration"),i3=ls("animationstart"),DQ=ls("transitionrun"),MQ=ls("transitionstart"),LQ=ls("transitioncancel"),r3=ls("transitionend"),a3=new Map,bb="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(" ");bb.push("scrollEnd");function Ri(e,t){a3.set(e,t),as(t,[e])}var s3=new WeakMap;function fi(e,t){if(typeof e=="object"&&e!==null){var n=s3.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ek(t)},s3.set(e,t),t)}return{value:e,source:t,stack:Ek(t)}}var hi=[],Uo=0,vb=0;function Bf(){for(var e=Uo,t=vb=Uo=0;t<e;){var n=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var r=hi[t];hi[t++]=null;var a=hi[t];if(hi[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&&o3(n,r,a)}}function jf(e,t,n,i){hi[Uo++]=e,hi[Uo++]=t,hi[Uo++]=n,hi[Uo++]=i,vb|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function yb(e,t,n,i){return jf(e,t,n,i),zf(e)}function Ho(e,t){return jf(e,null,null,t),zf(e)}function o3(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-qn(n),e=a.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),a):null}function zf(e){if(50<cc)throw cc=0,S1=null,Error(q(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fo={};function IQ(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 $n(e,t,n,i){return new IQ(e,t,n,i)}function xb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Er(e,t){var n=e.alternate;return n===null?(n=$n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&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 l3(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 Uf(e,t,n,i,r,a){var s=0;if(i=e,typeof e=="function")xb(e)&&(s=1);else if(typeof e=="string")s=BW(e,n,er.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Bg:return e=$n(31,n,t,r),e.elementType=Bg,e.lanes=a,e;case wo:return us(n.children,r,a,t);case ak:s=8,r|=24;break;case Dg:return e=$n(12,n,t,r|2),e.elementType=Dg,e.lanes=a,e;case Lg:return e=$n(13,n,t,r),e.elementType=Lg,e.lanes=a,e;case Ig:return e=$n(19,n,t,r),e.elementType=Ig,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case SK:case yr:s=10;break e;case sk:s=9;break e;case Mg:s=11;break e;case Pg:s=14;break e;case oa:s=16,i=null;break e}s=29,n=Error(q(130,e===null?"null":typeof e,"")),i=null}return t=$n(s,n,t,r),t.elementType=e,t.type=i,t.lanes=a,t}function us(e,t,n,i){return e=$n(7,e,i,t),e.lanes=n,e}function _b(e,t,n){return e=$n(6,e,null,t),e.lanes=n,e}function Eb(e,t,n){return t=$n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vo=[],Yo=0,Hf=null,Ff=0,pi=[],mi=0,cs=null,Tr=1,wr="";function ds(e,t){Vo[Yo++]=Ff,Vo[Yo++]=Hf,Hf=e,Ff=t}function u3(e,t,n){pi[mi++]=Tr,pi[mi++]=wr,pi[mi++]=cs,cs=e;var i=Tr;e=wr;var r=32-qn(i)-1;i&=~(1<<r),n+=1;var a=32-qn(t)+r;if(30<a){var s=r-r%5;a=(i&(1<<s)-1).toString(32),i>>=s,r-=s,Tr=1<<32-qn(t)+r|n<<r|i,wr=a+e}else Tr=1<<a|n<<r|i,wr=e}function Tb(e){e.return!==null&&(ds(e,1),u3(e,1,0))}function wb(e){for(;e===Hf;)Hf=Vo[--Yo],Vo[Yo]=null,Ff=Vo[--Yo],Vo[Yo]=null;for(;e===cs;)cs=pi[--mi],pi[mi]=null,wr=pi[--mi],pi[mi]=null,Tr=pi[--mi],pi[mi]=null}var vn=null,vt=null,Fe=!1,fs=null,nr=!1,Sb=Error(q(519));function hs(e){var t=Error(q(418,""));throw Fu(fi(t,e)),Sb}function c3(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[un]=e,t[An]=i,n){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(n=0;n<fc.length;n++)De(fc[n],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Sk(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),kf(t);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Ck(t,i.value,i.defaultValue,i.children),kf(t)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||CO(t.textContent,n)?(i.popover!=null&&(De("beforetoggle",t),De("toggle",t)),i.onScroll!=null&&De("scroll",t),i.onScrollEnd!=null&&De("scrollend",t),i.onClick!=null&&(t.onclick=Eh),t=!0):t=!1,t||hs(e)}function d3(e){for(vn=e.return;vn;)switch(vn.tag){case 5:case 13:nr=!1;return;case 27:case 3:nr=!0;return;default:vn=vn.return}}function Uu(e){if(e!==vn)return!1;if(!Fe)return d3(e),Fe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||H1(e.type,e.memoizedProps)),n=!n),n&&vt&&hs(e),d3(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){vt=Mi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}vt=null}}else t===27?(t=vt,Ca(e.type)?(e=q1,q1=null,vt=e):vt=t):vt=vn?Mi(e.stateNode.nextSibling):null;return!0}function Hu(){vt=vn=null,Fe=!1}function f3(){var e=fs;return e!==null&&(Nn===null?Nn=e:Nn.push.apply(Nn,e),fs=null),e}function Fu(e){fs===null?fs=[e]:fs.push(e)}var Ab=Ji(null),ps=null,Sr=null;function fa(e,t,n){dt(Ab,t._currentValue),t._currentValue=n}function Ar(e){e._currentValue=Ab.current,Vt(Ab)}function Cb(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 kb(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),Cb(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),Cb(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 Vu(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;Gn(r.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(r===yf.current){if(s=r.alternate,s===null)throw Error(q(387));s.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(vc):e=[vc])}r=r.return}e!==null&&kb(t,e,n,i),t.flags|=262144}function Vf(e){for(e=e.firstContext;e!==null;){if(!Gn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ms(e){ps=e,Sr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function cn(e){return h3(ps,e)}function Yf(e,t){return ps===null&&ms(e),h3(e,t)}function h3(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Sr===null){if(e===null)throw Error(q(308));Sr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sr=Sr.next=t;return n}var PQ=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()})}},BQ=Bt.unstable_scheduleCallback,jQ=Bt.unstable_NormalPriority,jt={$$typeof:yr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ob(){return{controller:new PQ,data:new Map,refCount:0}}function Yu(e){e.refCount--,e.refCount===0&&BQ(jQ,function(){e.controller.abort()})}var qu=null,Nb=0,qo=0,Go=null;function zQ(e,t){if(qu===null){var n=qu=[];Nb=0,qo=D1(),Go={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Nb++,t.then(p3,p3),t}function p3(){if(--Nb===0&&qu!==null){Go!==null&&(Go.status="fulfilled");var e=qu;qu=null,qo=0,Go=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function UQ(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 m3=me.S;me.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&zQ(e,t),m3!==null&&m3(e,t)};var gs=Ji(null);function Rb(){var e=gs.current;return e!==null?e:et.pooledCache}function qf(e,t){t===null?dt(gs,gs.current):dt(gs,t.pool)}function g3(){var e=Rb();return e===null?null:{parent:jt._currentValue,pool:e}}var Gu=Error(q(460)),b3=Error(q(474)),Gf=Error(q(542)),Db={then:function(){}};function v3(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $f(){}function y3(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($f,$f),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_3(e),e;default:if(typeof t.status=="string")t.then($f,$f);else{if(e=et,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,_3(e),e}throw $u=t,Gu}}var $u=null;function x3(){if($u===null)throw Error(q(459));var e=$u;return $u=null,e}function _3(e){if(e===Gu||e===Gf)throw Error(q(483))}var ha=!1;function Mb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lb(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 pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ma(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,Ve&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=zf(e),o3(e,null,n),t}return jf(e,i,t,n),zf(e)}function Xu(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,pk(e,n)}}function Ib(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 Pb=!1;function Ku(){if(Pb){var e=Go;if(e!==null)throw e}}function Qu(e,t,n,i){Pb=!1;var r=e.updateQueue;ha=!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 d=r.baseState;s=0,c=u=l=null,o=a;do{var f=o.lane&-536870913,h=f!==o.lane;if(h?(Le&f)===f:(i&f)===f){f!==0&&f===qo&&(Pb=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,b=o;f=t;var E=n;switch(b.tag){case 1:if(g=b.payload,typeof g=="function"){d=g.call(E,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,f=typeof g=="function"?g.call(E,d,f):g,f==null)break e;d=st({},d,f);break e;case 2:ha=!0}}f=o.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=r.callbacks,h===null?r.callbacks=[f]:h.push(f))}else h={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;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=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,a===null&&(r.shared.lanes=0),Ta|=s,e.lanes=s,e.memoizedState=d}}function E3(e,t){if(typeof e!="function")throw Error(q(191,e));e.call(t)}function T3(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)E3(n[e],t)}var $o=Ji(null),Xf=Ji(0);function w3(e,t){e=Mr,dt(Xf,e),dt($o,t),Mr=e|t.baseLanes}function Bb(){dt(Xf,Mr),dt($o,$o.current)}function jb(){Mr=Xf.current,Vt($o),Vt(Xf)}var ga=0,Ce=null,qe=null,Rt=null,Kf=!1,Xo=!1,bs=!1,Qf=0,Wu=0,Ko=null,HQ=0;function wt(){throw Error(q(321))}function zb(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gn(e[n],t[n]))return!1;return!0}function Ub(e,t,n,i,r,a){return ga=a,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,me.H=e===null||e.memoizedState===null?o6:l6,bs=!1,a=n(i,r),bs=!1,Xo&&(a=A3(t,n,i,r)),S3(e),a}function S3(e){me.H=nh;var t=qe!==null&&qe.next!==null;if(ga=0,Rt=qe=Ce=null,Kf=!1,Wu=0,Ko=null,t)throw Error(q(300));e===null||qt||(e=e.dependencies,e!==null&&Vf(e)&&(qt=!0))}function A3(e,t,n,i){Ce=e;var r=0;do{if(Xo&&(Ko=null),Wu=0,Xo=!1,25<=r)throw Error(q(301));if(r+=1,Rt=qe=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}me.H=XQ,a=t(n,i)}while(Xo);return a}function FQ(){var e=me.H,t=e.useState()[0];return t=typeof t.then=="function"?Zu(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Hb(){var e=Qf!==0;return Qf=0,e}function Fb(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Vb(e){if(Kf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kf=!1}ga=0,Rt=qe=Ce=null,Xo=!1,Wu=Qf=0,Ko=null}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e,Rt}function Dt(){if(qe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Rt===null?Ce.memoizedState:Rt.next;if(t!==null)Rt=t,qe=e;else{if(e===null)throw Ce.alternate===null?Error(q(467)):Error(q(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e}return Rt}function Yb(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zu(e){var t=Wu;return Wu+=1,Ko===null&&(Ko=[]),e=y3(Ko,e,t),t=Ce,(Rt===null?t.memoizedState:Rt.next)===null&&(t=t.alternate,me.H=t===null||t.memoizedState===null?o6:l6),e}function Wf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Zu(e);if(e.$$typeof===yr)return cn(e)}throw Error(q(438,String(e)))}function qb(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ce.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=Yb(),Ce.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]=AK;return t.index++,n}function Cr(e,t){return typeof t=="function"?t(e):t}function Zf(e){var t=Dt();return Gb(t,qe,e)}function Gb(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 d=u.lane&-536870913;if(d!==u.lane?(Le&d)===d:(ga&d)===d){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===qo&&(c=!0);else if((ga&f)===f){u=u.next,f===qo&&(c=!0);continue}else d={lane:0,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,Ce.lanes|=f,Ta|=f;d=u.action,bs&&n(a,d),a=u.hasEagerState?u.eagerState:n(a,d)}else f={lane:d,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,Ce.lanes|=d,Ta|=d;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=o,!Gn(a,e.memoizedState)&&(qt=!0,c&&(n=Go,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 $b(e){var t=Dt(),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);Gn(a,t.memoizedState)||(qt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function C3(e,t,n){var i=Ce,r=Dt(),a=Fe;if(a){if(n===void 0)throw Error(q(407));n=n()}else n=t();var s=!Gn((qe||r).memoizedState,n);s&&(r.memoizedState=n,qt=!0),r=r.queue;var o=N3.bind(null,i,r,e);if(Ju(2048,8,o,[e]),r.getSnapshot!==t||s||Rt!==null&&Rt.memoizedState.tag&1){if(i.flags|=2048,Qo(9,Jf(),O3.bind(null,i,r,n,t),null),et===null)throw Error(q(349));a||ga&124||k3(i,t,n)}return n}function k3(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Yb(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function O3(e,t,n,i){t.value=n,t.getSnapshot=i,R3(t)&&D3(e)}function N3(e,t,n){return n(function(){R3(t)&&D3(e)})}function R3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gn(e,n)}catch{return!0}}function D3(e){var t=Ho(e,2);t!==null&&Zn(t,e,2)}function Xb(e){var t=kn();if(typeof e=="function"){var n=e;if(e=n(),bs){ua(!0);try{n()}finally{ua(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:e},t}function M3(e,t,n,i){return e.baseState=n,Gb(e,qe,typeof i=="function"?i:Cr)}function VQ(e,t,n,i,r){if(th(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)}};me.T!==null?n(!0):a.isTransition=!1,i(a),n=t.pending,n===null?(a.next=t.pending=a,L3(t,a)):(a.next=n.next,t.pending=n.next=a)}}function L3(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var a=me.T,s={};me.T=s;try{var o=n(r,i),l=me.S;l!==null&&l(s,o),I3(e,t,o)}catch(u){Kb(e,t,u)}finally{me.T=a}}else try{a=n(r,i),I3(e,t,a)}catch(u){Kb(e,t,u)}}function I3(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){P3(e,t,i)},function(i){return Kb(e,t,i)}):P3(e,t,n)}function P3(e,t,n){t.status="fulfilled",t.value=n,B3(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,L3(e,n)))}function Kb(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,B3(t),t=t.next;while(t!==i)}e.action=null}function B3(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function j3(e,t){return t}function z3(e,t){if(Fe){var n=et.formState;if(n!==null){e:{var i=Ce;if(Fe){if(vt){t:{for(var r=vt,a=nr;r.nodeType!==8;){if(!a){r=null;break t}if(r=Mi(r.nextSibling),r===null){r=null;break t}}a=r.data,r=a==="F!"||a==="F"?r:null}if(r){vt=Mi(r.nextSibling),i=r.data==="F!";break e}}hs(i)}i=!1}i&&(t=n[0])}}return n=kn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:j3,lastRenderedState:t},n.queue=i,n=r6.bind(null,Ce,i),i.dispatch=n,i=Xb(!1),a=e1.bind(null,Ce,!1,i.queue),i=kn(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=VQ.bind(null,Ce,r,a,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function U3(e){var t=Dt();return H3(t,qe,e)}function H3(e,t,n){if(t=Gb(e,t,j3)[0],e=Zf(Cr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Zu(t)}catch(s){throw s===Gu?Gf:s}else i=t;t=Dt();var r=t.queue,a=r.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Qo(9,Jf(),YQ.bind(null,r,n),null)),[i,a,e]}function YQ(e,t){e.action=t}function F3(e){var t=Dt(),n=qe;if(n!==null)return H3(t,n,e);Dt(),t=t.memoizedState,n=Dt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Qo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Yb(),Ce.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 Jf(){return{destroy:void 0,resource:void 0}}function V3(){return Dt().memoizedState}function eh(e,t,n,i){var r=kn();i=i===void 0?null:i,Ce.flags|=e,r.memoizedState=Qo(1|t,Jf(),n,i)}function Ju(e,t,n,i){var r=Dt();i=i===void 0?null:i;var a=r.memoizedState.inst;qe!==null&&i!==null&&zb(i,qe.memoizedState.deps)?r.memoizedState=Qo(t,a,n,i):(Ce.flags|=e,r.memoizedState=Qo(1|t,a,n,i))}function Y3(e,t){eh(8390656,8,e,t)}function q3(e,t){Ju(2048,8,e,t)}function G3(e,t){return Ju(4,2,e,t)}function $3(e,t){return Ju(4,4,e,t)}function X3(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 K3(e,t,n){n=n!=null?n.concat([e]):null,Ju(4,4,X3.bind(null,t,e),n)}function Qb(){}function Q3(e,t){var n=Dt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&zb(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function W3(e,t){var n=Dt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&zb(t,i[1]))return i[0];if(i=e(),bs){ua(!0);try{e()}finally{ua(!1)}}return n.memoizedState=[i,t],i}function Wb(e,t,n){return n===void 0||ga&1073741824?e.memoizedState=t:(e.memoizedState=n,e=eO(),Ce.lanes|=e,Ta|=e,n)}function Z3(e,t,n,i){return Gn(n,t)?n:$o.current!==null?(e=Wb(e,n,i),Gn(e,t)||(qt=!0),e):ga&42?(e=eO(),Ce.lanes|=e,Ta|=e,t):(qt=!0,e.memoizedState=n)}function J3(e,t,n,i,r){var a=He.p;He.p=a!==0&&8>a?a:8;var s=me.T,o={};me.T=o,e1(e,!1,t,n);try{var l=r(),u=me.S;if(u!==null&&u(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=UQ(l,i);ec(e,t,c,Wn(e))}else ec(e,t,i,Wn(e))}catch(d){ec(e,t,{then:function(){},status:"rejected",reason:d},Wn())}finally{He.p=a,me.T=s}}function qQ(){}function Zb(e,t,n,i){if(e.tag!==5)throw Error(q(476));var r=e6(e).queue;J3(e,r,t,is,n===null?qQ:function(){return t6(e),n(i)})}function e6(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:is,baseState:is,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:is},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function t6(e){var t=e6(e).next.queue;ec(e,t,{},Wn())}function Jb(){return cn(vc)}function n6(){return Dt().memoizedState}function i6(){return Dt().memoizedState}function GQ(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Wn();e=pa(n);var i=ma(t,e,n);i!==null&&(Zn(i,t,n),Xu(i,t,n)),t={cache:Ob()},e.payload=t;return}t=t.return}}function $Q(e,t,n){var i=Wn();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},th(e)?a6(t,n):(n=yb(e,t,n,i),n!==null&&(Zn(n,e,i),s6(n,t,i)))}function r6(e,t,n){var i=Wn();ec(e,t,n,i)}function ec(e,t,n,i){var r={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(th(e))a6(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,Gn(o,s))return jf(e,t,r,0),et===null&&Bf(),!1}catch{}finally{}if(n=yb(e,t,r,i),n!==null)return Zn(n,e,i),s6(n,t,i),!0}return!1}function e1(e,t,n,i){if(i={lane:2,revertLane:D1(),action:i,hasEagerState:!1,eagerState:null,next:null},th(e)){if(t)throw Error(q(479))}else t=yb(e,n,i,2),t!==null&&Zn(t,e,2)}function th(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function a6(e,t){Xo=Kf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function s6(e,t,n){if(n&4194048){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,pk(e,n)}}var nh={readContext:cn,use:Wf,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt},o6={readContext:cn,use:Wf,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:Y3,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,eh(4194308,4,X3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return eh(4194308,4,e,t)},useInsertionEffect:function(e,t){eh(4,2,e,t)},useMemo:function(e,t){var n=kn();t=t===void 0?null:t;var i=e();if(bs){ua(!0);try{e()}finally{ua(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=kn();if(n!==void 0){var r=n(t);if(bs){ua(!0);try{n(t)}finally{ua(!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=$Q.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:function(e){e=Xb(e);var t=e.queue,n=r6.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Qb,useDeferredValue:function(e,t){var n=kn();return Wb(n,e,t)},useTransition:function(){var e=Xb(!1);return e=J3.bind(null,Ce,e.queue,!0,!1),kn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ce,r=kn();if(Fe){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),et===null)throw Error(q(349));Le&124||k3(i,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,Y3(N3.bind(null,i,a,e),[e]),i.flags|=2048,Qo(9,Jf(),O3.bind(null,i,a,n,t),null),n},useId:function(){var e=kn(),t=et.identifierPrefix;if(Fe){var n=wr,i=Tr;n=(i&~(1<<32-qn(i)-1)).toString(32)+n,t="«"+t+"R"+n,n=Qf++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=HQ++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Jb,useFormState:z3,useActionState:z3,useOptimistic:function(e){var t=kn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=e1.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:qb,useCacheRefresh:function(){return kn().memoizedState=GQ.bind(null,Ce)}},l6={readContext:cn,use:Wf,useCallback:Q3,useContext:cn,useEffect:q3,useImperativeHandle:K3,useInsertionEffect:G3,useLayoutEffect:$3,useMemo:W3,useReducer:Zf,useRef:V3,useState:function(){return Zf(Cr)},useDebugValue:Qb,useDeferredValue:function(e,t){var n=Dt();return Z3(n,qe.memoizedState,e,t)},useTransition:function(){var e=Zf(Cr)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:Zu(e),t]},useSyncExternalStore:C3,useId:n6,useHostTransitionStatus:Jb,useFormState:U3,useActionState:U3,useOptimistic:function(e,t){var n=Dt();return M3(n,qe,e,t)},useMemoCache:qb,useCacheRefresh:i6},XQ={readContext:cn,use:Wf,useCallback:Q3,useContext:cn,useEffect:q3,useImperativeHandle:K3,useInsertionEffect:G3,useLayoutEffect:$3,useMemo:W3,useReducer:$b,useRef:V3,useState:function(){return $b(Cr)},useDebugValue:Qb,useDeferredValue:function(e,t){var n=Dt();return qe===null?Wb(n,e,t):Z3(n,qe.memoizedState,e,t)},useTransition:function(){var e=$b(Cr)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:Zu(e),t]},useSyncExternalStore:C3,useId:n6,useHostTransitionStatus:Jb,useFormState:F3,useActionState:F3,useOptimistic:function(e,t){var n=Dt();return qe!==null?M3(n,qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:qb,useCacheRefresh:i6},Wo=null,tc=0;function ih(e){var t=tc;return tc+=1,Wo===null&&(Wo=[]),y3(Wo,e,t)}function nc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function rh(e,t){throw t.$$typeof===wK?Error(q(525)):(e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function u6(e){var t=e._init;return t(e._payload)}function c6(e){function t(m,v){if(e){var x=m.deletions;x===null?(m.deletions=[v],m.flags|=16):x.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function i(m){for(var v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function r(m,v){return m=Er(m,v),m.index=0,m.sibling=null,m}function a(m,v,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<v?(m.flags|=67108866,v):x):(m.flags|=67108866,v)):(m.flags|=1048576,v)}function s(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function o(m,v,x,T){return v===null||v.tag!==6?(v=_b(x,m.mode,T),v.return=m,v):(v=r(v,x),v.return=m,v)}function l(m,v,x,T){var S=x.type;return S===wo?c(m,v,x.props.children,T,x.key):v!==null&&(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===oa&&u6(S)===v.type)?(v=r(v,x.props),nc(v,x),v.return=m,v):(v=Uf(x.type,x.key,x.props,null,m.mode,T),nc(v,x),v.return=m,v)}function u(m,v,x,T){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Eb(x,m.mode,T),v.return=m,v):(v=r(v,x.children||[]),v.return=m,v)}function c(m,v,x,T,S){return v===null||v.tag!==7?(v=us(x,m.mode,T,S),v.return=m,v):(v=r(v,x),v.return=m,v)}function d(m,v,x){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=_b(""+v,m.mode,x),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case vf:return x=Uf(v.type,v.key,v.props,null,m.mode,x),nc(x,v),x.return=m,x;case Eu:return v=Eb(v,m.mode,x),v.return=m,v;case oa:var T=v._init;return v=T(v._payload),d(m,v,x)}if(wu(v)||Tu(v))return v=us(v,m.mode,x,null),v.return=m,v;if(typeof v.then=="function")return d(m,ih(v),x);if(v.$$typeof===yr)return d(m,Yf(m,v),x);rh(m,v)}return null}function f(m,v,x,T){var S=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:o(m,v,""+x,T);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case vf:return x.key===S?l(m,v,x,T):null;case Eu:return x.key===S?u(m,v,x,T):null;case oa:return S=x._init,x=S(x._payload),f(m,v,x,T)}if(wu(x)||Tu(x))return S!==null?null:c(m,v,x,T,null);if(typeof x.then=="function")return f(m,v,ih(x),T);if(x.$$typeof===yr)return f(m,v,Yf(m,x),T);rh(m,x)}return null}function h(m,v,x,T,S){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return m=m.get(x)||null,o(v,m,""+T,S);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case vf:return m=m.get(T.key===null?x:T.key)||null,l(v,m,T,S);case Eu:return m=m.get(T.key===null?x:T.key)||null,u(v,m,T,S);case oa:var A=T._init;return T=A(T._payload),h(m,v,x,T,S)}if(wu(T)||Tu(T))return m=m.get(x)||null,c(v,m,T,S,null);if(typeof T.then=="function")return h(m,v,x,ih(T),S);if(T.$$typeof===yr)return h(m,v,x,Yf(v,T),S);rh(v,T)}return null}function g(m,v,x,T){for(var S=null,A=null,D=v,L=v=0,B=null;D!==null&&L<x.length;L++){D.index>L?(B=D,D=null):B=D.sibling;var O=f(m,D,x[L],T);if(O===null){D===null&&(D=B);break}e&&D&&O.alternate===null&&t(m,D),v=a(O,v,L),A===null?S=O:A.sibling=O,A=O,D=B}if(L===x.length)return n(m,D),Fe&&ds(m,L),S;if(D===null){for(;L<x.length;L++)D=d(m,x[L],T),D!==null&&(v=a(D,v,L),A===null?S=D:A.sibling=D,A=D);return Fe&&ds(m,L),S}for(D=i(D);L<x.length;L++)B=h(D,m,L,x[L],T),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?L:B.key),v=a(B,v,L),A===null?S=B:A.sibling=B,A=B);return e&&D.forEach(function(Y){return t(m,Y)}),Fe&&ds(m,L),S}function b(m,v,x,T){if(x==null)throw Error(q(151));for(var S=null,A=null,D=v,L=v=0,B=null,O=x.next();D!==null&&!O.done;L++,O=x.next()){D.index>L?(B=D,D=null):B=D.sibling;var Y=f(m,D,O.value,T);if(Y===null){D===null&&(D=B);break}e&&D&&Y.alternate===null&&t(m,D),v=a(Y,v,L),A===null?S=Y:A.sibling=Y,A=Y,D=B}if(O.done)return n(m,D),Fe&&ds(m,L),S;if(D===null){for(;!O.done;L++,O=x.next())O=d(m,O.value,T),O!==null&&(v=a(O,v,L),A===null?S=O:A.sibling=O,A=O);return Fe&&ds(m,L),S}for(D=i(D);!O.done;L++,O=x.next())O=h(D,m,L,O.value,T),O!==null&&(e&&O.alternate!==null&&D.delete(O.key===null?L:O.key),v=a(O,v,L),A===null?S=O:A.sibling=O,A=O);return e&&D.forEach(function(U){return t(m,U)}),Fe&&ds(m,L),S}function E(m,v,x,T){if(typeof x=="object"&&x!==null&&x.type===wo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case vf:e:{for(var S=x.key;v!==null;){if(v.key===S){if(S=x.type,S===wo){if(v.tag===7){n(m,v.sibling),T=r(v,x.props.children),T.return=m,m=T;break e}}else if(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===oa&&u6(S)===v.type){n(m,v.sibling),T=r(v,x.props),nc(T,x),T.return=m,m=T;break e}n(m,v);break}else t(m,v);v=v.sibling}x.type===wo?(T=us(x.props.children,m.mode,T,x.key),T.return=m,m=T):(T=Uf(x.type,x.key,x.props,null,m.mode,T),nc(T,x),T.return=m,m=T)}return s(m);case Eu:e:{for(S=x.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(m,v.sibling),T=r(v,x.children||[]),T.return=m,m=T;break e}else{n(m,v);break}else t(m,v);v=v.sibling}T=Eb(x,m.mode,T),T.return=m,m=T}return s(m);case oa:return S=x._init,x=S(x._payload),E(m,v,x,T)}if(wu(x))return g(m,v,x,T);if(Tu(x)){if(S=Tu(x),typeof S!="function")throw Error(q(150));return x=S.call(x),b(m,v,x,T)}if(typeof x.then=="function")return E(m,v,ih(x),T);if(x.$$typeof===yr)return E(m,v,Yf(m,x),T);rh(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,v!==null&&v.tag===6?(n(m,v.sibling),T=r(v,x),T.return=m,m=T):(n(m,v),T=_b(x,m.mode,T),T.return=m,m=T),s(m)):n(m,v)}return function(m,v,x,T){try{tc=0;var S=E(m,v,x,T);return Wo=null,S}catch(D){if(D===Gu||D===Gf)throw D;var A=$n(29,D,null,m.mode);return A.lanes=T,A.return=m,A}finally{}}}var Zo=c6(!0),d6=c6(!1),gi=Ji(null),ir=null;function ba(e){var t=e.alternate;dt(zt,zt.current&1),dt(gi,e),ir===null&&(t===null||$o.current!==null||t.memoizedState!==null)&&(ir=e)}function f6(e){if(e.tag===22){if(dt(zt,zt.current),dt(gi,e),ir===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(ir=e)}}else va()}function va(){dt(zt,zt.current),dt(gi,gi.current)}function kr(e){Vt(gi),ir===e&&(ir=null),Vt(zt)}var zt=Ji(0);function ah(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==="$?"||Y1(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 t1(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:st({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var n1={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Wn(),r=pa(i);r.payload=t,n!=null&&(r.callback=n),t=ma(e,r,i),t!==null&&(Zn(t,e,i),Xu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Wn(),r=pa(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=ma(e,r,i),t!==null&&(Zn(t,e,i),Xu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wn(),i=pa(n);i.tag=2,t!=null&&(i.callback=t),t=ma(e,i,n),t!==null&&(Zn(t,e,n),Xu(t,e,n))}};function h6(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?!ju(n,i)||!ju(r,a):!0}function p6(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&&n1.enqueueReplaceState(t,t.state,null)}function vs(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=st({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}var sh=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 m6(e){sh(e)}function g6(e){console.error(e)}function b6(e){sh(e)}function oh(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function v6(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 i1(e,t,n){return n=pa(n),n.tag=3,n.payload={element:null},n.callback=function(){oh(e,t)},n}function y6(e){return e=pa(e),e.tag=3,e}function x6(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(){v6(t,n,i)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){v6(t,n,i),typeof r!="function"&&(wa===null?wa=new Set([this]):wa.add(this));var o=i.stack;this.componentDidCatch(i.value,{componentStack:o!==null?o:""})})}function KQ(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Vu(t,n,r,!0),n=gi.current,n!==null){switch(n.tag){case 13:return ir===null?C1():n.alternate===null&&yt===0&&(yt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===Db?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),O1(e,i,r)),!1;case 22:return n.flags|=65536,i===Db?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)),O1(e,i,r)),!1}throw Error(q(435,n.tag))}return O1(e,i,r),C1(),!1}if(Fe)return t=gi.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==Sb&&(e=Error(q(422),{cause:i}),Fu(fi(e,n)))):(i!==Sb&&(t=Error(q(423),{cause:i}),Fu(fi(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=fi(i,n),r=i1(e.stateNode,i,r),Ib(e,r),yt!==4&&(yt=2)),!1;var a=Error(q(520),{cause:i});if(a=fi(a,n),uc===null?uc=[a]:uc.push(a),yt!==4&&(yt=2),t===null)return!0;i=fi(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=i1(n.stateNode,i,e),Ib(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"&&(wa===null||!wa.has(a))))return n.flags|=65536,r&=-r,n.lanes|=r,r=y6(r),x6(r,e,n,i),Ib(n,r),!1}n=n.return}while(n!==null);return!1}var _6=Error(q(461)),qt=!1;function Zt(e,t,n,i){t.child=e===null?d6(t,null,n,i):Zo(t,e.child,n,i)}function E6(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 ms(t),i=Ub(e,t,n,s,a,r),o=Hb(),e!==null&&!qt?(Fb(e,t,r),Or(e,t,r)):(Fe&&o&&Tb(t),t.flags|=1,Zt(e,t,i,r),t.child)}function T6(e,t,n,i,r){if(e===null){var a=n.type;return typeof a=="function"&&!xb(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,w6(e,t,a,i,r)):(e=Uf(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!d1(e,r)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:ju,n(s,i)&&e.ref===t.ref)return Or(e,t,r)}return t.flags|=1,e=Er(a,i),e.ref=t.ref,e.return=t,t.child=e}function w6(e,t,n,i,r){if(e!==null){var a=e.memoizedProps;if(ju(a,i)&&e.ref===t.ref)if(qt=!1,t.pendingProps=i=a,d1(e,r))e.flags&131072&&(qt=!0);else return t.lanes=e.lanes,Or(e,t,r)}return r1(e,t,n,i,r)}function S6(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 A6(e,t,i,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qf(t,a!==null?a.cachePool:null),a!==null?w3(t,a):Bb(),f6(t);else return t.lanes=t.childLanes=536870912,A6(e,t,a!==null?a.baseLanes|n:n,n)}else a!==null?(qf(t,a.cachePool),w3(t,a),va(),t.memoizedState=null):(e!==null&&qf(t,null),Bb(),va());return Zt(e,t,r,n),t.child}function A6(e,t,n,i){var r=Rb();return r=r===null?null:{parent:jt._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&qf(t,null),Bb(),f6(t),e!==null&&Vu(e,t,i,!0),null}function lh(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 r1(e,t,n,i,r){return ms(t),n=Ub(e,t,n,i,void 0,r),i=Hb(),e!==null&&!qt?(Fb(e,t,r),Or(e,t,r)):(Fe&&i&&Tb(t),t.flags|=1,Zt(e,t,n,r),t.child)}function C6(e,t,n,i,r,a){return ms(t),t.updateQueue=null,n=A3(t,i,n,r),S3(e),i=Hb(),e!==null&&!qt?(Fb(e,t,a),Or(e,t,a)):(Fe&&i&&Tb(t),t.flags|=1,Zt(e,t,n,a),t.child)}function k6(e,t,n,i,r){if(ms(t),t.stateNode===null){var a=Fo,s=n.contextType;typeof s=="object"&&s!==null&&(a=cn(s)),a=new n(i,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=n1,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=i,a.state=t.memoizedState,a.refs={},Mb(t),s=n.contextType,a.context=typeof s=="object"&&s!==null?cn(s):Fo,a.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(t1(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&&n1.enqueueReplaceState(a,a.state,null),Qu(t,i,a,r),Ku(),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=vs(n,o);a.props=l;var u=a.context,c=n.contextType;s=Fo,typeof c=="object"&&c!==null&&(s=cn(c));var d=n.getDerivedStateFromProps;c=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o||u!==s)&&p6(t,a,i,s),ha=!1;var f=t.memoizedState;a.state=f,Qu(t,i,a,r),Ku(),u=t.memoizedState,o||f!==u||ha?(typeof d=="function"&&(t1(t,n,d,i),u=t.memoizedState),(l=ha||h6(t,n,l,i,f,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,Lb(e,t),s=t.memoizedProps,c=vs(n,s),a.props=c,d=t.pendingProps,f=a.context,u=n.contextType,l=Fo,typeof u=="object"&&u!==null&&(l=cn(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&p6(t,a,i,l),ha=!1,f=t.memoizedState,a.state=f,Qu(t,i,a,r),Ku();var h=t.memoizedState;s!==d||f!==h||ha||e!==null&&e.dependencies!==null&&Vf(e.dependencies)?(typeof o=="function"&&(t1(t,n,o,i),h=t.memoizedState),(c=ha||h6(t,n,c,i,f,h,l)||e!==null&&e.dependencies!==null&&Vf(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&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===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&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return a=i,lh(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=Zo(t,e.child,null,r),t.child=Zo(t,null,n,r)):Zt(e,t,n,r),t.memoizedState=a.state,e=t.child):e=Or(e,t,r),e}function O6(e,t,n,i){return Hu(),t.flags|=256,Zt(e,t,n,i),t.child}var a1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function s1(e){return{baseLanes:e,cachePool:g3()}}function o1(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=bi),e}function N6(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:(zt.current&2)!==0),s&&(r=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Fe){if(r?ba(t):va(),Fe){var o=vt,l;if(l=o){e:{for(l=o,o=nr;l.nodeType!==8;){if(!o){o=null;break e}if(l=Mi(l.nextSibling),l===null){o=null;break e}}o=l}o!==null?(t.memoizedState={dehydrated:o,treeContext:cs!==null?{id:Tr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},l=$n(18,null,null,0),l.stateNode=o,l.return=t,t.child=l,vn=t,vt=null,l=!0):l=!1}l||hs(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return Y1(o)?t.lanes=32:t.lanes=536870912,null;kr(t)}return o=i.children,i=i.fallback,r?(va(),r=t.mode,o=uh({mode:"hidden",children:o},r),i=us(i,r,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,r=t.child,r.memoizedState=s1(n),r.childLanes=o1(e,s,n),t.memoizedState=a1,i):(ba(t),l1(t,o))}if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null)){if(a)t.flags&256?(ba(t),t.flags&=-257,t=u1(e,t,n)):t.memoizedState!==null?(va(),t.child=e.child,t.flags|=128,t=null):(va(),r=i.fallback,o=t.mode,i=uh({mode:"visible",children:i.children},o),r=us(r,o,n,null),r.flags|=2,i.return=t,r.return=t,i.sibling=r,t.child=i,Zo(t,e.child,null,n),i=t.child,i.memoizedState=s1(n),i.childLanes=o1(e,s,n),t.memoizedState=a1,t=r);else if(ba(t),Y1(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var u=s.dgst;s=u,i=Error(q(419)),i.stack="",i.digest=s,Fu({value:i,source:null,stack:null}),t=u1(e,t,n)}else if(qt||Vu(e,t,n,!1),s=(n&e.childLanes)!==0,qt||s){if(s=et,s!==null&&(i=n&-n,i=i&42?1:qg(i),i=i&(s.suspendedLanes|n)?0:i,i!==0&&i!==l.retryLane))throw l.retryLane=i,Ho(e,i),Zn(s,e,i),_6;o.data==="$?"||C1(),t=u1(e,t,n)}else o.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,vt=Mi(o.nextSibling),vn=t,Fe=!0,fs=null,nr=!1,e!==null&&(pi[mi++]=Tr,pi[mi++]=wr,pi[mi++]=cs,Tr=e.id,wr=e.overflow,cs=t),t=l1(t,i.children),t.flags|=4096);return t}return r?(va(),r=i.fallback,o=t.mode,l=e.child,u=l.sibling,i=Er(l,{mode:"hidden",children:i.children}),i.subtreeFlags=l.subtreeFlags&65011712,u!==null?r=Er(u,r):(r=us(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=s1(n):(l=o.cachePool,l!==null?(u=jt._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=g3(),o={baseLanes:o.baseLanes|n,cachePool:l}),r.memoizedState=o,r.childLanes=o1(e,s,n),t.memoizedState=a1,i):(ba(t),n=e.child,e=n.sibling,n=Er(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 l1(e,t){return t=uh({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function uh(e,t){return e=$n(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function u1(e,t,n){return Zo(t,e.child,null,n),e=l1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function R6(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Cb(e.return,t,n)}function c1(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 D6(e,t,n){var i=t.pendingProps,r=i.revealOrder,a=i.tail;if(Zt(e,t,i.children,n),i=zt.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&&R6(e,n,t);else if(e.tag===19)R6(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(dt(zt,i),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&ah(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),c1(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&&ah(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}c1(t,!0,n,null,a);break;case"together":c1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Or(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ta|=t.lanes,!(n&t.childLanes))if(e!==null){if(Vu(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=Er(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Er(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function d1(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Vf(e)))}function QQ(e,t,n){switch(t.tag){case 3:xf(t,t.stateNode.containerInfo),fa(t,jt,e.memoizedState.cache),Hu();break;case 27:case 5:Ug(t);break;case 4:xf(t,t.stateNode.containerInfo);break;case 10:fa(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(ba(t),t.flags|=128,null):n&t.child.childLanes?N6(e,t,n):(ba(t),e=Or(e,t,n),e!==null?e.sibling:null);ba(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Vu(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return D6(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),dt(zt,zt.current),i)break;return null;case 22:case 23:return t.lanes=0,S6(e,t,n);case 24:fa(t,jt,e.memoizedState.cache)}return Or(e,t,n)}function M6(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)qt=!0;else{if(!d1(e,n)&&!(t.flags&128))return qt=!1,QQ(e,t,n);qt=!!(e.flags&131072)}else qt=!1,Fe&&t.flags&1048576&&u3(t,Ff,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")xb(i)?(e=vs(i,e),t.tag=1,t=k6(null,t,i,e,n)):(t.tag=0,t=r1(null,t,i,e,n));else{if(i!=null){if(r=i.$$typeof,r===Mg){t.tag=11,t=E6(null,t,i,e,n);break e}else if(r===Pg){t.tag=14,t=T6(null,t,i,e,n);break e}}throw t=jg(i)||i,Error(q(306,t,""))}}return t;case 0:return r1(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=vs(i,t.pendingProps),k6(e,t,i,r,n);case 3:e:{if(xf(t,t.stateNode.containerInfo),e===null)throw Error(q(387));i=t.pendingProps;var a=t.memoizedState;r=a.element,Lb(e,t),Qu(t,i,null,n);var s=t.memoizedState;if(i=s.cache,fa(t,jt,i),i!==a.cache&&kb(t,[jt],n,!0),Ku(),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=O6(e,t,i,n);break e}else if(i!==r){r=fi(Error(q(424)),t),Fu(r),t=O6(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(vt=Mi(e.firstChild),vn=t,Fe=!0,fs=null,nr=!0,n=d6(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hu(),i===r){t=Or(e,t,n);break e}Zt(e,t,i,n)}t=t.child}return t;case 26:return lh(e,t),e===null?(n=BO(t.type,null,t.pendingProps,null))?t.memoizedState=n:Fe||(n=t.type,e=t.pendingProps,i=Th(la.current).createElement(n),i[un]=t,i[An]=e,en(i,n,e),Yt(i),t.stateNode=i):t.memoizedState=BO(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ug(t),e===null&&Fe&&(i=t.stateNode=LO(t.type,t.pendingProps,la.current),vn=t,nr=!0,r=vt,Ca(t.type)?(q1=r,vt=Mi(i.firstChild)):vt=r),Zt(e,t,t.pendingProps.children,n),lh(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Fe&&((r=i=vt)&&(i=wW(i,t.type,t.pendingProps,nr),i!==null?(t.stateNode=i,vn=t,vt=Mi(i.firstChild),nr=!1,r=!0):r=!1),r||hs(t)),Ug(t),r=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,i=a.children,H1(r,a)?i=null:s!==null&&H1(r,s)&&(t.flags|=32),t.memoizedState!==null&&(r=Ub(e,t,FQ,null,null,n),vc._currentValue=r),lh(e,t),Zt(e,t,i,n),t.child;case 6:return e===null&&Fe&&((e=n=vt)&&(n=SW(n,t.pendingProps,nr),n!==null?(t.stateNode=n,vn=t,vt=null,e=!0):e=!1),e||hs(t)),null;case 13:return N6(e,t,n);case 4:return xf(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Zo(t,null,i,n):Zt(e,t,i,n),t.child;case 11:return E6(e,t,t.type,t.pendingProps,n);case 7:return Zt(e,t,t.pendingProps,n),t.child;case 8:return Zt(e,t,t.pendingProps.children,n),t.child;case 12:return Zt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,fa(t,t.type,i.value),Zt(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,ms(t),r=cn(r),i=i(r),t.flags|=1,Zt(e,t,i,n),t.child;case 14:return T6(e,t,t.type,t.pendingProps,n);case 15:return w6(e,t,t.type,t.pendingProps,n);case 19:return D6(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},e===null?(n=uh(i,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Er(e.child,i),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return S6(e,t,n);case 24:return ms(t),i=cn(jt),e===null?(r=Rb(),r===null&&(r=et,a=Ob(),r.pooledCache=a,a.refCount++,a!==null&&(r.pooledCacheLanes|=n),r=a),t.memoizedState={parent:i,cache:r},Mb(t),fa(t,jt,r)):(e.lanes&n&&(Lb(e,t),Qu(t,null,null,n),Ku()),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),fa(t,jt,i)):(i=a.cache,fa(t,jt,i),i!==r.cache&&kb(t,[jt],n,!0))),Zt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(q(156,t.tag))}function Nr(e){e.flags|=4}function L6(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!FO(t)){if(t=gi.current,t!==null&&((Le&4194048)===Le?ir!==null:(Le&62914560)!==Le&&!(Le&536870912)||t!==ir))throw $u=Db,b3;e.flags|=8192}}function ch(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fk():536870912,e.lanes|=t,nl|=t)}function ic(e,t){if(!Fe)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 mt(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 WQ(e,t,n){var i=t.pendingProps;switch(wb(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return mt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ar(jt),Ao(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Uu(t)?Nr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,f3())),mt(t),null;case 26:return n=t.memoizedState,e===null?(Nr(t),n!==null?(mt(t),L6(t,n)):(mt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Nr(t),mt(t),L6(t,n)):(mt(t),t.flags&=-16777217):(e.memoizedProps!==i&&Nr(t),mt(t),t.flags&=-16777217),null;case 27:_f(t),n=la.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Nr(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return mt(t),null}e=er.current,Uu(t)?c3(t):(e=LO(r,i,n),t.stateNode=e,Nr(t))}return mt(t),null;case 5:if(_f(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Nr(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return mt(t),null}if(e=er.current,Uu(t))c3(t);else{switch(r=Th(la.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[un]=t,e[An]=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(en(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&&Nr(t)}}return mt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Nr(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(q(166));if(e=la.current,Uu(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=vn,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[un]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||CO(e.nodeValue,n)),e||hs(t)}else e=Th(e).createTextNode(i),e[un]=t,t.stateNode=e}return mt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Uu(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[un]=t}else Hu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;mt(t),r=!1}else r=f3(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(kr(t),t):(kr(t),null)}if(kr(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),ch(t,t.updateQueue),mt(t),null;case 4:return Ao(),e===null&&P1(t.stateNode.containerInfo),mt(t),null;case 10:return Ar(t.type),mt(t),null;case 19:if(Vt(zt),r=t.memoizedState,r===null)return mt(t),null;if(i=(t.flags&128)!==0,a=r.rendering,a===null)if(i)ic(r,!1);else{if(yt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ah(e),a!==null){for(t.flags|=128,ic(r,!1),e=a.updateQueue,t.updateQueue=e,ch(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)l3(n,e),n=n.sibling;return dt(zt,zt.current&1|2),t.child}e=e.sibling}r.tail!==null&&tr()>hh&&(t.flags|=128,i=!0,ic(r,!1),t.lanes=4194304)}else{if(!i)if(e=ah(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ch(t,e),ic(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!Fe)return mt(t),null}else 2*tr()-r.renderingStartTime>hh&&n!==536870912&&(t.flags|=128,i=!0,ic(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=tr(),t.sibling=null,e=zt.current,dt(zt,i?e&1|2:e&1),t):(mt(t),null);case 22:case 23:return kr(t),jb(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),n=t.updateQueue,n!==null&&ch(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&&Vt(gs),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ar(jt),mt(t),null;case 25:return null;case 30:return null}throw Error(q(156,t.tag))}function ZQ(e,t){switch(wb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ar(jt),Ao(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _f(t),null;case 13:if(kr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Hu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Vt(zt),null;case 4:return Ao(),null;case 10:return Ar(t.type),null;case 22:case 23:return kr(t),jb(),e!==null&&Vt(gs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ar(jt),null;case 25:return null;default:return null}}function I6(e,t){switch(wb(t),t.tag){case 3:Ar(jt),Ao();break;case 26:case 27:case 5:_f(t);break;case 4:Ao();break;case 13:kr(t);break;case 19:Vt(zt);break;case 10:Ar(t.type);break;case 22:case 23:kr(t),jb(),e!==null&&Vt(gs);break;case 24:Ar(jt)}}function rc(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){Qe(t,t.return,o)}}function ya(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){Qe(r,l,c)}}}i=i.next}while(i!==a)}}catch(c){Qe(t,t.return,c)}}function P6(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{T3(t,n)}catch(i){Qe(e,e.return,i)}}}function B6(e,t,n){n.props=vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Qe(e,t,i)}}function ac(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){Qe(e,t,r)}}function rr(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){Qe(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){Qe(e,t,r)}else n.current=null}function j6(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){Qe(e,e.return,r)}}function f1(e,t,n){try{var i=e.stateNode;yW(i,e.type,n,t),i[An]=t}catch(r){Qe(e,e.return,r)}}function z6(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ca(e.type)||e.tag===4}function h1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||z6(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&&Ca(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 p1(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=Eh));else if(i!==4&&(i===27&&Ca(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(p1(e,t,n),e=e.sibling;e!==null;)p1(e,t,n),e=e.sibling}function dh(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&&Ca(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(dh(e,t,n),e=e.sibling;e!==null;)dh(e,t,n),e=e.sibling}function U6(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);en(t,i,n),t[un]=e,t[An]=n}catch(a){Qe(e,e.return,a)}}var Rr=!1,St=!1,m1=!1,H6=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function JQ(e,t){if(e=e.containerInfo,z1=Oh,e=Zk(e),hb(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,d=e,f=null;t:for(;;){for(var h;d!==n||r!==0&&d.nodeType!==3||(o=s+r),d!==a||i!==0&&d.nodeType!==3||(l=s+i),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===r&&(o=s),f===a&&++c===i&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(U1={focusedElem:e,selectionRange:n},Oh=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){switch(t=Gt,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=vs(n.type,r,n.elementType===n.type);e=i.getSnapshotBeforeUpdate(g,a),i.__reactInternalSnapshotBeforeUpdate=e}catch(b){Qe(n,n.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)V1(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":V1(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,Gt=e;break}Gt=t.return}}function F6(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:xa(e,n),i&4&&rc(5,n);break;case 1:if(xa(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){Qe(n,n.return,s)}else{var r=vs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Qe(n,n.return,s)}}i&64&&P6(n),i&512&&ac(n,n.return);break;case 3:if(xa(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{T3(e,t)}catch(s){Qe(n,n.return,s)}}break;case 27:t===null&&i&4&&U6(n);case 26:case 5:xa(e,n),t===null&&i&4&&j6(n),i&512&&ac(n,n.return);break;case 12:xa(e,n);break;case 13:xa(e,n),i&4&&q6(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=lW.bind(null,n),AW(e,n))));break;case 22:if(i=n.memoizedState!==null||Rr,!i){t=t!==null&&t.memoizedState!==null||St,r=Rr;var a=St;Rr=i,(St=t)&&!a?_a(e,n,(n.subtreeFlags&8772)!==0):xa(e,n),Rr=r,St=a}break;case 30:break;default:xa(e,n)}}function V6(e){var t=e.alternate;t!==null&&(e.alternate=null,V6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xg(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 ft=null,On=!1;function Dr(e,t,n){for(n=n.child;n!==null;)Y6(e,t,n),n=n.sibling}function Y6(e,t,n){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(Au,n)}catch{}switch(n.tag){case 26:St||rr(n,t),Dr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:St||rr(n,t);var i=ft,r=On;Ca(n.type)&&(ft=n.stateNode,On=!1),Dr(e,t,n),pc(n.stateNode),ft=i,On=r;break;case 5:St||rr(n,t);case 6:if(i=ft,r=On,ft=null,Dr(e,t,n),ft=i,On=r,ft!==null)if(On)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(n.stateNode)}catch(a){Qe(n,t,a)}else try{ft.removeChild(n.stateNode)}catch(a){Qe(n,t,a)}break;case 18:ft!==null&&(On?(e=ft,DO(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ec(e)):DO(ft,n.stateNode));break;case 4:i=ft,r=On,ft=n.stateNode.containerInfo,On=!0,Dr(e,t,n),ft=i,On=r;break;case 0:case 11:case 14:case 15:St||ya(2,n,t),St||ya(4,n,t),Dr(e,t,n);break;case 1:St||(rr(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&B6(n,t,i)),Dr(e,t,n);break;case 21:Dr(e,t,n);break;case 22:St=(i=St)||n.memoizedState!==null,Dr(e,t,n),St=i;break;default:Dr(e,t,n)}}function q6(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ec(e)}catch(n){Qe(t,t.return,n)}}function eW(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new H6),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new H6),t;default:throw Error(q(435,e.tag))}}function g1(e,t){var n=eW(e);t.forEach(function(i){var r=uW.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}function Xn(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(Ca(o.type)){ft=o.stateNode,On=!1;break e}break;case 5:ft=o.stateNode,On=!1;break e;case 3:case 4:ft=o.stateNode.containerInfo,On=!0;break e}o=o.return}if(ft===null)throw Error(q(160));Y6(a,s,r),ft=null,On=!1,a=r.alternate,a!==null&&(a.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)G6(t,e),t=t.sibling}var Di=null;function G6(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xn(t,e),Kn(e),i&4&&(ya(3,e,e.return),rc(3,e),ya(5,e,e.return));break;case 1:Xn(t,e),Kn(e),i&512&&(St||n===null||rr(n,n.return)),i&64&&Rr&&(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=Di;if(Xn(t,e),Kn(e),i&512&&(St||n===null||rr(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[Ou]||a[un]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=r.createElement(i),r.head.insertBefore(a,r.querySelector("head > title"))),en(a,i,n),a[un]=e,Yt(a),i=a;break e;case"link":var s=UO("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),en(a,i,n),r.head.appendChild(a);break;case"meta":if(s=UO("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),en(a,i,n),r.head.appendChild(a);break;default:throw Error(q(468,i))}a[un]=e,Yt(a),i=a}e.stateNode=i}else HO(r,e.type,e.stateNode);else e.stateNode=zO(r,i,e.memoizedProps);else a!==i?(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,i===null?HO(r,e.type,e.stateNode):zO(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&f1(e,e.memoizedProps,n.memoizedProps)}break;case 27:Xn(t,e),Kn(e),i&512&&(St||n===null||rr(n,n.return)),n!==null&&i&4&&f1(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Xn(t,e),Kn(e),i&512&&(St||n===null||rr(n,n.return)),e.flags&32){r=e.stateNode;try{Lo(r,"")}catch(h){Qe(e,e.return,h)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,f1(e,r,n!==null?n.memoizedProps:r)),i&1024&&(m1=!0);break;case 6:if(Xn(t,e),Kn(e),i&4){if(e.stateNode===null)throw Error(q(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(h){Qe(e,e.return,h)}}break;case 3:if(Ah=null,r=Di,Di=wh(t.containerInfo),Xn(t,e),Di=r,Kn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ec(t.containerInfo)}catch(h){Qe(e,e.return,h)}m1&&(m1=!1,$6(e));break;case 4:i=Di,Di=wh(e.stateNode.containerInfo),Xn(t,e),Kn(e),Di=i;break;case 12:Xn(t,e),Kn(e);break;case 13:Xn(t,e),Kn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(E1=tr()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,g1(e,i)));break;case 22:r=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Rr,c=St;if(Rr=u||r,St=c||l,Xn(t,e),St=c,Rr=u,Kn(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||l||Rr||St||ys(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 d=l.memoizedProps.style,f=d!=null&&d.hasOwnProperty("display")?d.display:null;o.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(h){Qe(l,l.return,h)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=r?"":l.memoizedProps}catch(h){Qe(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,g1(e,n))));break;case 19:Xn(t,e),Kn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,g1(e,i)));break;case 30:break;case 21:break;default:Xn(t,e),Kn(e)}}function Kn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(z6(i)){n=i;break}i=i.return}if(n==null)throw Error(q(160));switch(n.tag){case 27:var r=n.stateNode,a=h1(e);dh(e,a,r);break;case 5:var s=n.stateNode;n.flags&32&&(Lo(s,""),n.flags&=-33);var o=h1(e);dh(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,u=h1(e);p1(e,u,l);break;default:throw Error(q(161))}}catch(c){Qe(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $6(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$6(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)F6(e,t.alternate,t),t=t.sibling}function ys(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ya(4,t,t.return),ys(t);break;case 1:rr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&B6(t,t.return,n),ys(t);break;case 27:pc(t.stateNode);case 26:case 5:rr(t,t.return),ys(t);break;case 22:t.memoizedState===null&&ys(t);break;case 30:ys(t);break;default:ys(t)}e=e.sibling}}function _a(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:_a(r,a,n),rc(4,a);break;case 1:if(_a(r,a,n),i=a,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){Qe(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++)E3(l[r],o)}catch(u){Qe(i,i.return,u)}}n&&s&64&&P6(a),ac(a,a.return);break;case 27:U6(a);case 26:case 5:_a(r,a,n),n&&i===null&&s&4&&j6(a),ac(a,a.return);break;case 12:_a(r,a,n);break;case 13:_a(r,a,n),n&&s&4&&q6(r,a);break;case 22:a.memoizedState===null&&_a(r,a,n),ac(a,a.return);break;case 30:break;default:_a(r,a,n)}t=t.sibling}}function b1(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&&Yu(n))}function v1(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yu(e))}function ar(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)X6(e,t,n,i),t=t.sibling}function X6(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:ar(e,t,n,i),r&2048&&rc(9,t);break;case 1:ar(e,t,n,i);break;case 3:ar(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&&Yu(e)));break;case 12:if(r&2048){ar(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){Qe(t,t.return,l)}}else ar(e,t,n,i);break;case 13:ar(e,t,n,i);break;case 23:break;case 22:a=t.stateNode,s=t.alternate,t.memoizedState!==null?a._visibility&2?ar(e,t,n,i):sc(e,t):a._visibility&2?ar(e,t,n,i):(a._visibility|=2,Jo(e,t,n,i,(t.subtreeFlags&10256)!==0)),r&2048&&b1(s,t);break;case 24:ar(e,t,n,i),r&2048&&v1(t.alternate,t);break;default:ar(e,t,n,i)}}function Jo(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:Jo(a,s,o,l,r),rc(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?Jo(a,s,o,l,r):sc(a,s):(c._visibility|=2,Jo(a,s,o,l,r)),r&&u&2048&&b1(s.alternate,s);break;case 24:Jo(a,s,o,l,r),r&&u&2048&&v1(s.alternate,s);break;default:Jo(a,s,o,l,r)}t=t.sibling}}function sc(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:sc(n,i),r&2048&&b1(i.alternate,i);break;case 24:sc(n,i),r&2048&&v1(i.alternate,i);break;default:sc(n,i)}t=t.sibling}}var oc=8192;function el(e){if(e.subtreeFlags&oc)for(e=e.child;e!==null;)K6(e),e=e.sibling}function K6(e){switch(e.tag){case 26:el(e),e.flags&oc&&e.memoizedState!==null&&zW(Di,e.memoizedState,e.memoizedProps);break;case 5:el(e);break;case 3:case 4:var t=Di;Di=wh(e.stateNode.containerInfo),el(e),Di=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=oc,oc=16777216,el(e),oc=t):el(e));break;default:el(e)}}function Q6(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 lc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Gt=i,Z6(i,e)}Q6(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)W6(e),e=e.sibling}function W6(e){switch(e.tag){case 0:case 11:case 15:lc(e),e.flags&2048&&ya(9,e,e.return);break;case 3:lc(e);break;case 12:lc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fh(e)):lc(e);break;default:lc(e)}}function fh(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Gt=i,Z6(i,e)}Q6(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ya(8,t,t.return),fh(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,fh(t));break;default:fh(t)}e=e.sibling}}function Z6(e,t){for(;Gt!==null;){var n=Gt;switch(n.tag){case 0:case 11:case 15:ya(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:Yu(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Gt=i;else e:for(n=e;Gt!==null;){i=Gt;var r=i.sibling,a=i.return;if(V6(i),i===n){Gt=null;break e}if(r!==null){r.return=a,Gt=r;break e}Gt=a}}}var tW={getCacheForType:function(e){var t=cn(jt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},nW=typeof WeakMap=="function"?WeakMap:Map,Ve=0,et=null,Re=null,Le=0,Ye=0,Qn=null,Ea=!1,tl=!1,y1=!1,Mr=0,yt=0,Ta=0,xs=0,x1=0,bi=0,nl=0,uc=null,Nn=null,_1=!1,E1=0,hh=1/0,ph=null,wa=null,Jt=0,Sa=null,il=null,rl=0,T1=0,w1=null,J6=null,cc=0,S1=null;function Wn(){if(Ve&2&&Le!==0)return Le&-Le;if(me.T!==null){var e=qo;return e!==0?e:D1()}return mk()}function eO(){bi===0&&(bi=!(Le&536870912)||Fe?dk():536870912);var e=gi.current;return e!==null&&(e.flags|=32),bi}function Zn(e,t,n){(e===et&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(al(e,0),Aa(e,Le,bi,!1)),ku(e,n),(!(Ve&2)||e!==et)&&(e===et&&(!(Ve&2)&&(xs|=n),yt===4&&Aa(e,Le,bi,!1)),sr(e))}function tO(e,t,n){if(Ve&6)throw Error(q(327));var i=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Cu(e,t),r=i?aW(e,t):k1(e,t,!0),a=i;do{if(r===0){tl&&!i&&Aa(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!iW(n)){r=k1(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=uc;var l=o.current.memoizedState.isDehydrated;if(l&&(al(o,s).flags|=256),s=k1(o,s,!1),s!==2){if(y1&&!l){o.errorRecoveryDisabledLanes|=a,xs|=a,r=4;break e}a=Nn,Nn=r,a!==null&&(Nn===null?Nn=a:Nn.push.apply(Nn,a))}r=s}if(a=!1,r!==2)continue}}if(r===1){al(e,0),Aa(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:Aa(i,t,bi,!Ea);break e;case 2:Nn=null;break;case 3:case 5:break;default:throw Error(q(329))}if((t&62914560)===t&&(r=E1+300-tr(),10<r)){if(Aa(i,t,bi,!Ea),Sf(i,0,!0)!==0)break e;i.timeoutHandle=NO(nO.bind(null,i,n,Nn,ph,_1,t,bi,xs,nl,Ea,a,2,-0,0),r);break e}nO(i,n,Nn,ph,_1,t,bi,xs,nl,Ea,a,0,-0,0)}}break}while(!0);sr(e)}function nO(e,t,n,i,r,a,s,o,l,u,c,d,f,h){if(e.timeoutHandle=-1,d=t.subtreeFlags,(d&8192||(d&16785408)===16785408)&&(bc={stylesheets:null,count:0,unsuspend:jW},K6(t),d=UW(),d!==null)){e.cancelPendingCommit=d(uO.bind(null,e,t,a,n,i,r,s,o,l,c,1,f,h)),Aa(e,a,s,!u);return}uO(e,t,a,n,i,r,s,o,l)}function iW(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(!Gn(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 Aa(e,t,n,i){t&=~x1,t&=~xs,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var a=31-qn(r),s=1<<a;i[a]=-1,r&=~s}n!==0&&hk(e,n,t)}function mh(){return Ve&6?!0:(dc(0),!1)}function A1(){if(Re!==null){if(Ye===0)var e=Re.return;else e=Re,Sr=ps=null,Vb(e),Wo=null,tc=0,e=Re;for(;e!==null;)I6(e.alternate,e),e=e.return;Re=null}}function al(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,_W(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),A1(),et=e,Re=n=Er(e.current,null),Le=t,Ye=0,Qn=null,Ea=!1,tl=Cu(e,t),y1=!1,nl=bi=x1=xs=Ta=yt=0,Nn=uc=null,_1=!1,t&8&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-qn(i),a=1<<r;t|=e[r],i&=~a}return Mr=t,Bf(),n}function iO(e,t){Ce=null,me.H=nh,t===Gu||t===Gf?(t=x3(),Ye=3):t===b3?(t=x3(),Ye=4):Ye=t===_6?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qn=t,Re===null&&(yt=1,oh(e,fi(t,e.current)))}function rO(){var e=me.H;return me.H=nh,e===null?nh:e}function aO(){var e=me.A;return me.A=tW,e}function C1(){yt=4,Ea||(Le&4194048)!==Le&&gi.current!==null||(tl=!0),!(Ta&134217727)&&!(xs&134217727)||et===null||Aa(et,Le,bi,!1)}function k1(e,t,n){var i=Ve;Ve|=2;var r=rO(),a=aO();(et!==e||Le!==t)&&(ph=null,al(e,t)),t=!1;var s=yt;e:do try{if(Ye!==0&&Re!==null){var o=Re,l=Qn;switch(Ye){case 8:A1(),s=6;break e;case 3:case 2:case 9:case 6:gi.current===null&&(t=!0);var u=Ye;if(Ye=0,Qn=null,sl(e,o,l,u),n&&tl){s=0;break e}break;default:u=Ye,Ye=0,Qn=null,sl(e,o,l,u)}}rW(),s=yt;break}catch(c){iO(e,c)}while(!0);return t&&e.shellSuspendCounter++,Sr=ps=null,Ve=i,me.H=r,me.A=a,Re===null&&(et=null,Le=0,Bf()),s}function rW(){for(;Re!==null;)sO(Re)}function aW(e,t){var n=Ve;Ve|=2;var i=rO(),r=aO();et!==e||Le!==t?(ph=null,hh=tr()+500,al(e,t)):tl=Cu(e,t);e:do try{if(Ye!==0&&Re!==null){t=Re;var a=Qn;t:switch(Ye){case 1:Ye=0,Qn=null,sl(e,t,a,1);break;case 2:case 9:if(v3(a)){Ye=0,Qn=null,oO(t);break}t=function(){Ye!==2&&Ye!==9||et!==e||(Ye=7),sr(e)},a.then(t,t);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:v3(a)?(Ye=0,Qn=null,oO(t)):(Ye=0,Qn=null,sl(e,t,a,7));break;case 5:var s=null;switch(Re.tag){case 26:s=Re.memoizedState;case 5:case 27:var o=Re;if(!s||FO(s)){Ye=0,Qn=null;var l=o.sibling;if(l!==null)Re=l;else{var u=o.return;u!==null?(Re=u,gh(u)):Re=null}break t}}Ye=0,Qn=null,sl(e,t,a,5);break;case 6:Ye=0,Qn=null,sl(e,t,a,6);break;case 8:A1(),yt=6;break e;default:throw Error(q(462))}}sW();break}catch(c){iO(e,c)}while(!0);return Sr=ps=null,me.H=i,me.A=r,Ve=n,Re!==null?0:(et=null,Le=0,Bf(),yt)}function sW(){for(;Re!==null&&!kK();)sO(Re)}function sO(e){var t=M6(e.alternate,e,Mr);e.memoizedProps=e.pendingProps,t===null?gh(e):Re=t}function oO(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=C6(n,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=C6(n,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:Vb(t);default:I6(n,t),t=Re=l3(t,Mr),t=M6(n,t,Mr)}e.memoizedProps=e.pendingProps,t===null?gh(e):Re=t}function sl(e,t,n,i){Sr=ps=null,Vb(t),Wo=null,tc=0;var r=t.return;try{if(KQ(e,r,t,n,Le)){yt=1,oh(e,fi(n,e.current)),Re=null;return}}catch(a){if(r!==null)throw Re=r,a;yt=1,oh(e,fi(n,e.current)),Re=null;return}t.flags&32768?(Fe||i===1?e=!0:tl||Le&536870912?e=!1:(Ea=e=!0,(i===2||i===9||i===3||i===6)&&(i=gi.current,i!==null&&i.tag===13&&(i.flags|=16384))),lO(t,e)):gh(t)}function gh(e){var t=e;do{if(t.flags&32768){lO(t,Ea);return}e=t.return;var n=WQ(t.alternate,t,Mr);if(n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);yt===0&&(yt=5)}function lO(e,t){do{var n=ZQ(e.alternate,e);if(n!==null){n.flags&=32767,Re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=n}while(e!==null);yt=6,Re=null}function uO(e,t,n,i,r,a,s,o,l){e.cancelPendingCommit=null;do bh();while(Jt!==0);if(Ve&6)throw Error(q(327));if(t!==null){if(t===e.current)throw Error(q(177));if(a=t.lanes|t.childLanes,a|=vb,jK(e,n,a,s,o,l),e===et&&(Re=et=null,Le=0),il=t,Sa=e,rl=n,T1=a,w1=r,J6=i,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,cW(Ef,function(){return pO(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,t.subtreeFlags&13878||i){i=me.T,me.T=null,r=He.p,He.p=2,s=Ve,Ve|=4;try{JQ(e,t,n)}finally{Ve=s,He.p=r,me.T=i}}Jt=1,cO(),dO(),fO()}}function cO(){if(Jt===1){Jt=0;var e=Sa,t=il,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=me.T,me.T=null;var i=He.p;He.p=2;var r=Ve;Ve|=4;try{G6(t,e);var a=U1,s=Zk(e.containerInfo),o=a.focusedElem,l=a.selectionRange;if(s!==o&&o&&o.ownerDocument&&Wk(o.ownerDocument.documentElement,o)){if(l!==null&&hb(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 d=o.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),g=o.textContent.length,b=Math.min(l.start,g),E=l.end===void 0?b:Math.min(l.end,g);!h.extend&&b>E&&(s=E,E=b,b=s);var m=Qk(o,b),v=Qk(o,E);if(m&&v&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==v.node||h.focusOffset!==v.offset)){var x=d.createRange();x.setStart(m.node,m.offset),h.removeAllRanges(),b>E?(h.addRange(x),h.extend(v.node,v.offset)):(x.setEnd(v.node,v.offset),h.addRange(x))}}}}for(d=[],h=o;h=h.parentNode;)h.nodeType===1&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<d.length;o++){var T=d[o];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}Oh=!!z1,U1=z1=null}finally{Ve=r,He.p=i,me.T=n}}e.current=t,Jt=2}}function dO(){if(Jt===2){Jt=0;var e=Sa,t=il,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=me.T,me.T=null;var i=He.p;He.p=2;var r=Ve;Ve|=4;try{F6(e,t.alternate,t)}finally{Ve=r,He.p=i,me.T=n}}Jt=3}}function fO(){if(Jt===4||Jt===3){Jt=0,OK();var e=Sa,t=il,n=rl,i=J6;t.subtreeFlags&10256||t.flags&10256?Jt=5:(Jt=0,il=Sa=null,hO(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(wa=null),Gg(n),t=t.stateNode,Yn&&typeof Yn.onCommitFiberRoot=="function")try{Yn.onCommitFiberRoot(Au,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=me.T,r=He.p,He.p=2,me.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{me.T=t,He.p=r}}rl&3&&bh(),sr(e),r=e.pendingLanes,n&4194090&&r&42?e===S1?cc++:(cc=0,S1=e):cc=0,dc(0)}}function hO(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yu(t)))}function bh(e){return cO(),dO(),fO(),pO()}function pO(){if(Jt!==5)return!1;var e=Sa,t=T1;T1=0;var n=Gg(rl),i=me.T,r=He.p;try{He.p=32>n?32:n,me.T=null,n=w1,w1=null;var a=Sa,s=rl;if(Jt=0,il=Sa=null,rl=0,Ve&6)throw Error(q(331));var o=Ve;if(Ve|=4,W6(a.current),X6(a,a.current,s,n),Ve=o,dc(0,!1),Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(Au,a)}catch{}return!0}finally{He.p=r,me.T=i,hO(e,t)}}function mO(e,t,n){t=fi(n,t),t=i1(e.stateNode,t,2),e=ma(e,t,2),e!==null&&(ku(e,2),sr(e))}function Qe(e,t,n){if(e.tag===3)mO(e,e,n);else for(;t!==null;){if(t.tag===3){mO(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(wa===null||!wa.has(i))){e=fi(n,e),n=y6(2),i=ma(t,n,2),i!==null&&(x6(n,i,t,e),ku(i,2),sr(i));break}}t=t.return}}function O1(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new nW;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)||(y1=!0,r.add(n),e=oW.bind(null,e,t,n),t.then(e,e))}function oW(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,et===e&&(Le&n)===n&&(yt===4||yt===3&&(Le&62914560)===Le&&300>tr()-E1?!(Ve&2)&&al(e,0):x1|=n,nl===Le&&(nl=0)),sr(e)}function gO(e,t){t===0&&(t=fk()),e=Ho(e,t),e!==null&&(ku(e,t),sr(e))}function lW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gO(e,n)}function uW(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),gO(e,n)}function cW(e,t){return Fg(e,t)}var vh=null,ol=null,N1=!1,yh=!1,R1=!1,_s=0;function sr(e){e!==ol&&e.next===null&&(ol===null?vh=ol=e:ol=ol.next=e),yh=!0,N1||(N1=!0,fW())}function dc(e,t){if(!R1&&yh){R1=!0;do for(var n=!1,i=vh;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-qn(42|e)+1)-1,a&=r&~(s&~o),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,xO(i,a))}else a=Le,a=Sf(i,i===et?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),!(a&3)||Cu(i,a)||(n=!0,xO(i,a));i=i.next}while(n);R1=!1}}function dW(){bO()}function bO(){yh=N1=!1;var e=0;_s!==0&&(xW()&&(e=_s),_s=0);for(var t=tr(),n=null,i=vh;i!==null;){var r=i.next,a=vO(i,t);a===0?(i.next=null,n===null?vh=r:n.next=r,r===null&&(ol=n)):(n=i,(e!==0||a&3)&&(yh=!0)),i=r}dc(e)}function vO(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var s=31-qn(a),o=1<<s,l=r[s];l===-1?(!(o&n)||o&i)&&(r[s]=BK(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}if(t=et,n=Le,n=Sf(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Vg(i),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Cu(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Vg(i),Gg(n)){case 2:case 8:n=uk;break;case 32:n=Ef;break;case 268435456:n=ck;break;default:n=Ef}return i=yO.bind(null,e),n=Fg(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Vg(i),e.callbackPriority=2,e.callbackNode=null,2}function yO(e,t){if(Jt!==0&&Jt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bh()&&e.callbackNode!==n)return null;var i=Le;return i=Sf(e,e===et?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(tO(e,i,t),vO(e,tr()),e.callbackNode!=null&&e.callbackNode===n?yO.bind(null,e):null)}function xO(e,t){if(bh())return null;tO(e,t,!0)}function fW(){EW(function(){Ve&6?Fg(lk,dW):bO()})}function D1(){return _s===0&&(_s=dk()),_s}function _O(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Nf(""+e)}function EO(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 hW(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var a=_O((r[An]||null).action),s=i.submitter;s&&(t=(t=s[An]||null)?_O(t.formAction):s.getAttribute("formAction"),t!==null&&(a=t,s=null));var o=new Lf("action","action",null,i,r);e.push({event:o,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(_s!==0){var l=s?EO(r,s):new FormData(r);Zb(n,{pending:!0,data:l,method:r.method,action:a},null,l)}}else typeof a=="function"&&(o.preventDefault(),l=s?EO(r,s):new FormData(r),Zb(n,{pending:!0,data:l,method:r.method,action:a},a,l))},currentTarget:r}]})}}for(var M1=0;M1<bb.length;M1++){var L1=bb[M1],pW=L1.toLowerCase(),mW=L1[0].toUpperCase()+L1.slice(1);Ri(pW,"on"+mW)}Ri(t3,"onAnimationEnd"),Ri(n3,"onAnimationIteration"),Ri(i3,"onAnimationStart"),Ri("dblclick","onDoubleClick"),Ri("focusin","onFocus"),Ri("focusout","onBlur"),Ri(DQ,"onTransitionRun"),Ri(MQ,"onTransitionStart"),Ri(LQ,"onTransitionCancel"),Ri(r3,"onTransitionEnd"),Ro("onMouseEnter",["mouseout","mouseover"]),Ro("onMouseLeave",["mouseout","mouseover"]),Ro("onPointerEnter",["pointerout","pointerover"]),Ro("onPointerLeave",["pointerout","pointerover"]),as("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),as("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),as("onBeforeInput",["compositionend","keypress","textInput","paste"]),as("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fc="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(" "),gW=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fc));function TO(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){sh(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){sh(c)}r.currentTarget=null,a=l}}}}function De(e,t){var n=t[$g];n===void 0&&(n=t[$g]=new Set);var i=e+"__bubble";n.has(i)||(wO(t,e,2,!1),n.add(i))}function I1(e,t,n){var i=0;t&&(i|=4),wO(n,e,i,t)}var xh="_reactListening"+Math.random().toString(36).slice(2);function P1(e){if(!e[xh]){e[xh]=!0,bk.forEach(function(n){n!=="selectionchange"&&(gW.has(n)||I1(n,!1,e),I1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xh]||(t[xh]=!0,I1("selectionchange",!1,t))}}function wO(e,t,n,i){switch(XO(t)){case 2:var r=VW;break;case 8:r=YW;break;default:r=Q1}n=r.bind(null,t,n,e),r=void 0,!rb||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 B1(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=ko(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}Rk(function(){var u=a,c=nb(n),d=[];e:{var f=a3.get(e);if(f!==void 0){var h=Lf,g=e;switch(e){case"keypress":if(Df(n)===0)break e;case"keydown":case"keyup":h=cQ;break;case"focusin":g="focus",h=lb;break;case"focusout":g="blur",h=lb;break;case"beforeblur":case"afterblur":h=lb;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=Lk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=ZK;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=hQ;break;case t3:case n3:case i3:h=tQ;break;case r3:h=mQ;break;case"scroll":case"scrollend":h=QK;break;case"wheel":h=bQ;break;case"copy":case"cut":case"paste":h=iQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Pk;break;case"toggle":case"beforetoggle":h=yQ}var b=(t&4)!==0,E=!b&&(e==="scroll"||e==="scrollend"),m=b?f!==null?f+"Capture":null:f;b=[];for(var v=u,x;v!==null;){var T=v;if(x=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||x===null||m===null||(T=Ru(v,m),T!=null&&b.push(hc(v,T,x))),E)break;v=v.return}0<b.length&&(f=new h(f,g,null,n,c),d.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==tb&&(g=n.relatedTarget||n.fromElement)&&(ko(g)||g[Co]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?ko(g):null,g!==null&&(E=_u(g),b=g.tag,g!==E||b!==5&&b!==27&&b!==6)&&(g=null)):(h=null,g=u),h!==g)){if(b=Lk,T="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(b=Pk,T="onPointerLeave",m="onPointerEnter",v="pointer"),E=h==null?f:Nu(h),x=g==null?f:Nu(g),f=new b(T,v+"leave",h,n,c),f.target=E,f.relatedTarget=x,T=null,ko(c)===u&&(b=new b(m,v+"enter",g,n,c),b.target=x,b.relatedTarget=E,T=b),E=T,h&&g)t:{for(b=h,m=g,v=0,x=b;x;x=ll(x))v++;for(x=0,T=m;T;T=ll(T))x++;for(;0<v-x;)b=ll(b),v--;for(;0<x-v;)m=ll(m),x--;for(;v--;){if(b===m||m!==null&&b===m.alternate)break t;b=ll(b),m=ll(m)}b=null}else b=null;h!==null&&SO(d,f,h,b,!1),g!==null&&E!==null&&SO(d,E,g,b,!0)}}e:{if(f=u?Nu(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=Yk;else if(Fk(f))if(qk)S=OQ;else{S=CQ;var A=AQ}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&eb(u.elementType)&&(S=Yk):S=kQ;if(S&&(S=S(e,u))){Vk(d,S,n,c);break e}A&&A(e,f,u),e==="focusout"&&u&&f.type==="number"&&u.memoizedProps.value!=null&&Jg(f,"number",f.value)}switch(A=u?Nu(u):window,e){case"focusin":(Fk(A)||A.contentEditable==="true")&&(jo=A,pb=u,zu=null);break;case"focusout":zu=pb=jo=null;break;case"mousedown":mb=!0;break;case"contextmenu":case"mouseup":case"dragend":mb=!1,Jk(d,n,c);break;case"selectionchange":if(RQ)break;case"keydown":case"keyup":Jk(d,n,c)}var D;if(cb)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 Bo?Uk(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Bk&&n.locale!=="ko"&&(Bo||L!=="onCompositionStart"?L==="onCompositionEnd"&&Bo&&(D=Dk()):(da=c,ab="value"in da?da.value:da.textContent,Bo=!0)),A=_h(u,L),0<A.length&&(L=new Ik(L,e,null,n,c),d.push({event:L,listeners:A}),D?L.data=D:(D=Hk(n),D!==null&&(L.data=D)))),(D=_Q?EQ(e,n):TQ(e,n))&&(L=_h(u,"onBeforeInput"),0<L.length&&(A=new Ik("onBeforeInput","beforeinput",null,n,c),d.push({event:A,listeners:L}),A.data=D)),hW(d,e,u,n,c)}TO(d,t)})}function hc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _h(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=Ru(e,n),r!=null&&i.unshift(hc(e,r,a)),r=Ru(e,t),r!=null&&i.push(hc(e,r,a))),e.tag===3)return i;e=e.return}return[]}function ll(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function SO(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=Ru(n,a),u!=null&&s.unshift(hc(n,u,l))):r||(u=Ru(n,a),u!=null&&s.push(hc(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var bW=/\r\n?/g,vW=/\u0000|\uFFFD/g;function AO(e){return(typeof e=="string"?e:""+e).replace(bW,`
375
- `).replace(vW,"")}function CO(e,t){return t=AO(t),AO(e)===t}function Eh(){}function Ge(e,t,n,i,r,a){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Lo(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Lo(e,""+i);break;case"className":Cf(e,"class",i);break;case"tabIndex":Cf(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Cf(e,n,i);break;case"style":Ok(e,i,a);break;case"data":if(t!=="object"){Cf(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=Nf(""+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"&&Ge(e,t,"name",r.name,r,null),Ge(e,t,"formEncType",r.formEncType,r,null),Ge(e,t,"formMethod",r.formMethod,r,null),Ge(e,t,"formTarget",r.formTarget,r,null)):(Ge(e,t,"encType",r.encType,r,null),Ge(e,t,"method",r.method,r,null),Ge(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Nf(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Eh);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("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=Nf(""+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":De("beforetoggle",e),De("toggle",e),Af(e,"popover",i);break;case"xlinkActuate":xr(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":xr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":xr(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":xr(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":xr(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":xr(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":xr(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":xr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":xr(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Af(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=XK.get(n)||n,Af(e,n,i))}}function j1(e,t,n,i,r,a){switch(n){case"style":Ok(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"?Lo(e,i):(typeof i=="number"||typeof i=="bigint")&&Lo(e,""+i);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Eh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vk.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[An]||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,""):Af(e,n,i)}}}function en(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("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:Ge(e,t,a,s,n,null)}}r&&Ge(e,t,"srcSet",n.srcSet,n,null),i&&Ge(e,t,"src",n.src,n,null);return;case"input":De("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:Ge(e,t,i,c,n,null)}}Sk(e,a,o,l,u,s,r,!1),kf(e);return;case"select":De("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:Ge(e,t,r,o,n,null)}t=a,n=s,e.multiple=!!i,t!=null?Mo(e,!!i,t,!1):n!=null&&Mo(e,!!i,n,!0);return;case"textarea":De("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:Ge(e,t,s,o,n,null)}Ck(e,i,r,a),kf(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:Ge(e,t,l,i,n,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(i=0;i<fc.length;i++)De(fc[i],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("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:Ge(e,t,u,i,n,null)}return;default:if(eb(t)){for(c in n)n.hasOwnProperty(c)&&(i=n[c],i!==void 0&&j1(e,t,c,i,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(i=n[o],i!=null&&Ge(e,t,o,i,n,null))}function yW(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 d=n[h];if(n.hasOwnProperty(h)&&d!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=d;default:i.hasOwnProperty(h)||Ge(e,t,h,null,i,d)}}for(var f in i){var h=i[f];if(d=n[f],i.hasOwnProperty(f)&&(h!=null||d!=null))switch(f){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!==d&&Ge(e,t,f,h,i,d)}}Zg(e,s,o,l,u,c,a,r);return;case"select":h=s=o=f=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)||Ge(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":f=a;break;case"defaultValue":o=a;break;case"multiple":s=a;default:a!==l&&Ge(e,t,r,a,i,l)}t=o,n=s,i=h,f!=null?Mo(e,!!n,f,!1):!!i!=!!n&&(t!=null?Mo(e,!!n,t,!0):Mo(e,!!n,n?[]:"",!1));return;case"textarea":h=f=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:Ge(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":f=r;break;case"defaultValue":h=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(q(91));break;default:r!==a&&Ge(e,t,s,r,i,a)}Ak(e,f,h);return;case"option":for(var g in n)if(f=n[g],n.hasOwnProperty(g)&&f!=null&&!i.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Ge(e,t,g,null,i,f)}for(l in i)if(f=i[l],h=n[l],i.hasOwnProperty(l)&&f!==h&&(f!=null||h!=null))switch(l){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ge(e,t,l,f,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)f=n[b],n.hasOwnProperty(b)&&f!=null&&!i.hasOwnProperty(b)&&Ge(e,t,b,null,i,f);for(u in i)if(f=i[u],h=n[u],i.hasOwnProperty(u)&&f!==h&&(f!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(q(137,t));break;default:Ge(e,t,u,f,i,h)}return;default:if(eb(t)){for(var E in n)f=n[E],n.hasOwnProperty(E)&&f!==void 0&&!i.hasOwnProperty(E)&&j1(e,t,E,void 0,i,f);for(c in i)f=i[c],h=n[c],!i.hasOwnProperty(c)||f===h||f===void 0&&h===void 0||j1(e,t,c,f,i,h);return}}for(var m in n)f=n[m],n.hasOwnProperty(m)&&f!=null&&!i.hasOwnProperty(m)&&Ge(e,t,m,null,i,f);for(d in i)f=i[d],h=n[d],!i.hasOwnProperty(d)||f===h||f==null&&h==null||Ge(e,t,d,f,i,h)}var z1=null,U1=null;function Th(e){return e.nodeType===9?e:e.ownerDocument}function kO(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 OO(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 H1(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 F1=null;function xW(){var e=window.event;return e&&e.type==="popstate"?e===F1?!1:(F1=e,!0):(F1=null,!1)}var NO=typeof setTimeout=="function"?setTimeout:void 0,_W=typeof clearTimeout=="function"?clearTimeout:void 0,RO=typeof Promise=="function"?Promise:void 0,EW=typeof queueMicrotask=="function"?queueMicrotask:typeof RO<"u"?function(e){return RO.resolve(null).then(e).catch(TW)}:NO;function TW(e){setTimeout(function(){throw e})}function Ca(e){return e==="head"}function DO(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&&pc(s.documentElement),n&2&&pc(s.body),n&4)for(n=s.head,pc(n),s=n.firstChild;s;){var o=s.nextSibling,l=s.nodeName;s[Ou]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=o}}if(r===0){e.removeChild(a),Ec(t);return}r--}else n==="$"||n==="$?"||n==="$!"?r++:i=n.charCodeAt(0)-48;else i=0;n=a}while(n);Ec(t)}function V1(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":V1(n),Xg(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function wW(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[Ou])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=Mi(e.nextSibling),e===null)break}return null}function SW(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Mi(e.nextSibling),e===null))return null;return e}function Y1(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function AW(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 Mi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var q1=null;function MO(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 LO(e,t,n){switch(t=Th(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 pc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xg(e)}var vi=new Map,IO=new Set;function wh(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Lr=He.d;He.d={f:CW,r:kW,D:OW,C:NW,L:RW,m:DW,X:LW,S:MW,M:IW};function CW(){var e=Lr.f(),t=mh();return e||t}function kW(e){var t=Oo(e);t!==null&&t.tag===5&&t.type==="form"?t6(t):Lr.r(e)}var ul=typeof document>"u"?null:document;function PO(e,t,n){var i=ul;if(i&&typeof t=="string"&&t){var r=di(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),IO.has(r)||(IO.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),en(t,"link",e),Yt(t),i.head.appendChild(t)))}}function OW(e){Lr.D(e),PO("dns-prefetch",e,null)}function NW(e,t){Lr.C(e,t),PO("preconnect",e,t)}function RW(e,t,n){Lr.L(e,t,n);var i=ul;if(i&&e&&t){var r='link[rel="preload"][as="'+di(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+di(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+di(n.imageSizes)+'"]')):r+='[href="'+di(e)+'"]';var a=r;switch(t){case"style":a=cl(e);break;case"script":a=dl(e)}vi.has(a)||(e=st({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),vi.set(a,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(mc(a))||t==="script"&&i.querySelector(gc(a))||(t=i.createElement("link"),en(t,"link",e),Yt(t),i.head.appendChild(t)))}}function DW(e,t){Lr.m(e,t);var n=ul;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+di(i)+'"][href="'+di(e)+'"]',a=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=dl(e)}if(!vi.has(a)&&(e=st({rel:"modulepreload",href:e},t),vi.set(a,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gc(a)))return}i=n.createElement("link"),en(i,"link",e),Yt(i),n.head.appendChild(i)}}}function MW(e,t,n){Lr.S(e,t,n);var i=ul;if(i&&e){var r=No(i).hoistableStyles,a=cl(e);t=t||"default";var s=r.get(a);if(!s){var o={loading:0,preload:null};if(s=i.querySelector(mc(a)))o.loading=5;else{e=st({rel:"stylesheet",href:e,"data-precedence":t},n),(n=vi.get(a))&&G1(e,n);var l=s=i.createElement("link");Yt(l),en(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,Sh(s,t,i)}s={type:"stylesheet",instance:s,count:1,state:o},r.set(a,s)}}}function LW(e,t){Lr.X(e,t);var n=ul;if(n&&e){var i=No(n).hoistableScripts,r=dl(e),a=i.get(r);a||(a=n.querySelector(gc(r)),a||(e=st({src:e,async:!0},t),(t=vi.get(r))&&$1(e,t),a=n.createElement("script"),Yt(a),en(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(r,a))}}function IW(e,t){Lr.M(e,t);var n=ul;if(n&&e){var i=No(n).hoistableScripts,r=dl(e),a=i.get(r);a||(a=n.querySelector(gc(r)),a||(e=st({src:e,async:!0,type:"module"},t),(t=vi.get(r))&&$1(e,t),a=n.createElement("script"),Yt(a),en(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(r,a))}}function BO(e,t,n,i){var r=(r=la.current)?wh(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=cl(n.href),n=No(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=cl(n.href);var a=No(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(mc(e)))&&!a._p&&(s.instance=a,s.state.loading=5),vi.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},vi.set(e,n),a||PW(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=dl(n),n=No(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 cl(e){return'href="'+di(e)+'"'}function mc(e){return'link[rel="stylesheet"]['+e+"]"}function jO(e){return st({},e,{"data-precedence":e.precedence,precedence:null})}function PW(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}),en(t,"link",n),Yt(t),e.head.appendChild(t))}function dl(e){return'[src="'+di(e)+'"]'}function gc(e){return"script[async]"+e}function zO(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+di(n.href)+'"]');if(i)return t.instance=i,Yt(i),i;var r=st({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Yt(i),en(i,"style",r),Sh(i,n.precedence,e),t.instance=i;case"stylesheet":r=cl(n.href);var a=e.querySelector(mc(r));if(a)return t.state.loading|=4,t.instance=a,Yt(a),a;i=jO(n),(r=vi.get(r))&&G1(i,r),a=(e.ownerDocument||e).createElement("link"),Yt(a);var s=a;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(a,"link",i),t.state.loading|=4,Sh(a,n.precedence,e),t.instance=a;case"script":return a=dl(n.src),(r=e.querySelector(gc(a)))?(t.instance=r,Yt(r),r):(i=n,(r=vi.get(a))&&(i=st({},n),$1(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),Yt(r),en(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,Sh(i,n.precedence,e));return t.instance}function Sh(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 G1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ah=null;function UO(e,t,n){if(Ah===null){var i=new Map,r=Ah=new Map;r.set(n,i)}else r=Ah,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[Ou]||a[un]||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 HO(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function BW(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 FO(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var bc=null;function jW(){}function zW(e,t,n){if(bc===null)throw Error(q(475));var i=bc;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=cl(n.href),a=e.querySelector(mc(r));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=Ch.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=a,Yt(a);return}a=e.ownerDocument||e,n=jO(n),(r=vi.get(r))&&G1(n,r),a=a.createElement("link"),Yt(a);var s=a;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(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=Ch.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function UW(){if(bc===null)throw Error(q(475));var e=bc;return e.stylesheets&&e.count===0&&X1(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&X1(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 Ch(){if(this.count--,this.count===0){if(this.stylesheets)X1(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var kh=null;function X1(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,kh=new Map,t.forEach(HW,e),kh=null,Ch.call(e))}function HW(e,t){if(!(t.state.loading&4)){var n=kh.get(e);if(n)var i=n.get(null);else{n=new Map,kh.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=Ch.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 vc={$$typeof:yr,Provider:null,Consumer:null,_currentValue:is,_currentValue2:is,_threadCount:0};function FW(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=Yg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yg(0),this.hiddenUpdates=Yg(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 VO(e,t,n,i,r,a,s,o,l,u,c,d){return e=new FW(e,t,n,s,o,l,u,d),t=1,a===!0&&(t|=24),a=$n(3,null,null,t),e.current=a,a.stateNode=e,t=Ob(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:i,isDehydrated:n,cache:t},Mb(a),e}function YO(e){return e?(e=Fo,e):Fo}function qO(e,t,n,i,r,a){r=YO(r),i.context===null?i.context=r:i.pendingContext=r,i=pa(t),i.payload={element:n},a=a===void 0?null:a,a!==null&&(i.callback=a),n=ma(e,i,t),n!==null&&(Zn(n,e,t),Xu(n,e,t))}function GO(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function K1(e,t){GO(e,t),(e=e.alternate)&&GO(e,t)}function $O(e){if(e.tag===13){var t=Ho(e,67108864);t!==null&&Zn(t,e,67108864),K1(e,67108864)}}var Oh=!0;function VW(e,t,n,i){var r=me.T;me.T=null;var a=He.p;try{He.p=2,Q1(e,t,n,i)}finally{He.p=a,me.T=r}}function YW(e,t,n,i){var r=me.T;me.T=null;var a=He.p;try{He.p=8,Q1(e,t,n,i)}finally{He.p=a,me.T=r}}function Q1(e,t,n,i){if(Oh){var r=W1(i);if(r===null)B1(e,t,i,Nh,n),KO(e,i);else if(GW(r,e,t,n,i))i.stopPropagation();else if(KO(e,i),t&4&&-1<qW.indexOf(e)){for(;r!==null;){var a=Oo(r);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var s=rs(a.pendingLanes);if(s!==0){var o=a;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-qn(s);o.entanglements[1]|=l,s&=~l}sr(a),!(Ve&6)&&(hh=tr()+500,dc(0))}}break;case 13:o=Ho(a,2),o!==null&&Zn(o,a,2),mh(),K1(a,2)}if(a=W1(i),a===null&&B1(e,t,i,Nh,n),a===r)break;r=a}r!==null&&i.stopPropagation()}else B1(e,t,i,null,n)}}function W1(e){return e=nb(e),Z1(e)}var Nh=null;function Z1(e){if(Nh=null,e=ko(e),e!==null){var t=_u(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=nk(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 Nh=e,null}function XO(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(NK()){case lk:return 2;case uk:return 8;case Ef:case RK:return 32;case ck:return 268435456;default:return 32}default:return 32}}var J1=!1,ka=null,Oa=null,Na=null,yc=new Map,xc=new Map,Ra=[],qW="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 KO(e,t){switch(e){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":Oa=null;break;case"mouseover":case"mouseout":Na=null;break;case"pointerover":case"pointerout":yc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xc.delete(t.pointerId)}}function _c(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=Oo(t),t!==null&&$O(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function GW(e,t,n,i,r){switch(t){case"focusin":return ka=_c(ka,e,t,n,i,r),!0;case"dragenter":return Oa=_c(Oa,e,t,n,i,r),!0;case"mouseover":return Na=_c(Na,e,t,n,i,r),!0;case"pointerover":var a=r.pointerId;return yc.set(a,_c(yc.get(a)||null,e,t,n,i,r)),!0;case"gotpointercapture":return a=r.pointerId,xc.set(a,_c(xc.get(a)||null,e,t,n,i,r)),!0}return!1}function QO(e){var t=ko(e.target);if(t!==null){var n=_u(t);if(n!==null){if(t=n.tag,t===13){if(t=nk(n),t!==null){e.blockedOn=t,zK(e.priority,function(){if(n.tag===13){var i=Wn();i=qg(i);var r=Ho(n,i);r!==null&&Zn(r,n,i),K1(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 Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=W1(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);tb=i,n.target.dispatchEvent(i),tb=null}else return t=Oo(n),t!==null&&$O(t),e.blockedOn=n,!1;t.shift()}return!0}function WO(e,t,n){Rh(e)&&n.delete(t)}function $W(){J1=!1,ka!==null&&Rh(ka)&&(ka=null),Oa!==null&&Rh(Oa)&&(Oa=null),Na!==null&&Rh(Na)&&(Na=null),yc.forEach(WO),xc.forEach(WO)}function Dh(e,t){e.blockedOn===t&&(e.blockedOn=null,J1||(J1=!0,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,$W)))}var Mh=null;function ZO(e){Mh!==e&&(Mh=e,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,function(){Mh===e&&(Mh=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(Z1(i||n)===null)continue;break}var a=Oo(n);a!==null&&(e.splice(t,3),t-=3,Zb(a,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function Ec(e){function t(l){return Dh(l,e)}ka!==null&&Dh(ka,e),Oa!==null&&Dh(Oa,e),Na!==null&&Dh(Na,e),yc.forEach(t),xc.forEach(t);for(var n=0;n<Ra.length;n++){var i=Ra[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Ra.length&&(n=Ra[0],n.blockedOn===null);)QO(n),n.blockedOn===null&&Ra.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[An]||null;if(typeof a=="function")s||ZO(n);else if(s){var o=null;if(a&&a.hasAttribute("formAction")){if(r=a,s=a[An]||null)o=s.formAction;else if(Z1(r)!==null)continue}else o=s.action;typeof o=="function"?n[i+1]=o:(n.splice(i,3),i-=3),ZO(n)}}}function ev(e){this._internalRoot=e}Lh.prototype.render=ev.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));var n=t.current,i=Wn();qO(n,i,e,t,null,null)},Lh.prototype.unmount=ev.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qO(e.current,2,null,e,null,null),mh(),t[Co]=null}};function Lh(e){this._internalRoot=e}Lh.prototype.unstable_scheduleHydration=function(e){if(e){var t=mk();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ra.length&&t!==0&&t<Ra[n].priority;n++);Ra.splice(n,0,e),n===0&&QO(e)}};var JO=ek.version;if(JO!=="19.1.1")throw Error(q(527,JO,"19.1.1"));He.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=TK(t),e=e!==null?rk(e):null,e=e===null?null:e.stateNode,e};var XW={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:me,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ih=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ih.isDisabled&&Ih.supportsFiber)try{Au=Ih.inject(XW),Yn=Ih}catch{}}bf.createRoot=function(e,t){if(!tk(e))throw Error(q(299));var n=!1,i="",r=m6,a=g6,s=b6,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=VO(e,1,!1,null,null,n,i,r,a,s,o,null),e[Co]=t.current,P1(e),new ev(t)},bf.hydrateRoot=function(e,t,n){if(!tk(e))throw Error(q(299));var i=!1,r="",a=m6,s=g6,o=b6,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=VO(e,1,!0,t,n??null,i,r,a,s,o,l,u),t.context=YO(null),n=t.current,i=Wn(),i=qg(i),r=pa(i),r.callback=null,ma(n,r,i),n=i,t.current.lanes=n,ku(t,n),sr(t),e[Co]=t.current,P1(e),new Lh(t)},bf.version="19.1.1";function eN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eN)}catch(e){console.error(e)}}eN(),WC.exports=bf;var KW=WC.exports;const QW="4.0.50",WW="opencx-root";function ZW(e){JW(WW,y.jsx(QC,{options:e}))}window.initOpenScript=ZW,window.openCXWidgetVersion=QW;function JW(e,t){let n=document.getElementById(e);return n||(n=document.createElement("div"),n.id=e,document.body.appendChild(n)),KW.createRoot(n).render(t)}})();
374
+ `+n.stack}}function ci(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qK(e){var t=Tk(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 kf(e){e._valueTracker||(e._valueTracker=qK(e))}function wk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Tk(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Of(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 GK=/[\n"\\]/g;function di(e){return e.replace(GK,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zg(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=""+ci(t)):e.value!==""+ci(t)&&(e.value=""+ci(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Jg(e,s,ci(t)):n!=null?Jg(e,s,ci(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=""+ci(o):e.removeAttribute("name")}function Sk(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?""+ci(n):"",t=t!=null?""+ci(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 Jg(e,t,n){t==="number"&&Of(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Mo(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=""+ci(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 Ak(e,t,n){if(t!=null&&(t=""+ci(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ci(n):""}function Ck(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(q(92));if(wu(i)){if(1<i.length)throw Error(q(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=ci(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i)}function Lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $K=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 kk(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||$K.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ok(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&&kk(e,r,i)}else for(var a in t)t.hasOwnProperty(a)&&kk(e,a,t[a])}function eb(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 XK=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"]]),KK=/^[\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 Nf(e){return KK.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var tb=null;function nb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Io=null,Po=null;function Nk(e){var t=Oo(e);if(t&&(e=t.stateNode)){var n=e[An]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zg(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="'+di(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[An]||null;if(!r)throw Error(q(90));Zg(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&&wk(i)}break e;case"textarea":Ak(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Mo(e,!!n.multiple,t,!1)}}}var ib=!1;function Rk(e,t,n){if(ib)return e(t,n);ib=!0;try{var i=e(t);return i}finally{if(ib=!1,(Io!==null||Po!==null)&&(mh(),Io&&(t=Io,e=Po,Po=Io=null,Nk(t),e)))for(t=0;t<e.length;t++)Nk(e[t])}}function Ru(e,t){var n=e.stateNode;if(n===null)return null;var i=n[An]||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 _r=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rb=!1;if(_r)try{var Du={};Object.defineProperty(Du,"passive",{get:function(){rb=!0}}),window.addEventListener("test",Du,Du),window.removeEventListener("test",Du,Du)}catch{rb=!1}var da=null,ab=null,Rf=null;function Dk(){if(Rf)return Rf;var e,t=ab,n=t.length,i,r="value"in da?da.value:da.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 Rf=r.slice(e,1<i?1-i:void 0)}function Df(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 Mf(){return!0}function Mk(){return!1}function Cn(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)?Mf:Mk,this.isPropagationStopped=Mk,this}return st(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=Mf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mf)},persist:function(){},isPersistent:Mf}),t}var ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lf=Cn(ss),Mu=st({},ss,{view:0,detail:0}),QK=Cn(Mu),sb,ob,Lu,If=st({},Mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ub,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!==Lu&&(Lu&&e.type==="mousemove"?(sb=e.screenX-Lu.screenX,ob=e.screenY-Lu.screenY):ob=sb=0,Lu=e),sb)},movementY:function(e){return"movementY"in e?e.movementY:ob}}),Lk=Cn(If),WK=st({},If,{dataTransfer:0}),ZK=Cn(WK),JK=st({},Mu,{relatedTarget:0}),lb=Cn(JK),eQ=st({},ss,{animationName:0,elapsedTime:0,pseudoElement:0}),tQ=Cn(eQ),nQ=st({},ss,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iQ=Cn(nQ),rQ=st({},ss,{data:0}),Ik=Cn(rQ),aQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sQ={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"},oQ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lQ(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=oQ[e])?!!t[e]:!1}function ub(){return lQ}var uQ=st({},Mu,{key:function(e){if(e.key){var t=aQ[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Df(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sQ[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ub,charCode:function(e){return e.type==="keypress"?Df(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Df(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cQ=Cn(uQ),dQ=st({},If,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pk=Cn(dQ),fQ=st({},Mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ub}),hQ=Cn(fQ),pQ=st({},ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),mQ=Cn(pQ),gQ=st({},If,{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}),bQ=Cn(gQ),vQ=st({},ss,{newState:0,oldState:0}),yQ=Cn(vQ),xQ=[9,13,27,32],cb=_r&&"CompositionEvent"in window,Iu=null;_r&&"documentMode"in document&&(Iu=document.documentMode);var _Q=_r&&"TextEvent"in window&&!Iu,Bk=_r&&(!cb||Iu&&8<Iu&&11>=Iu),jk=" ",zk=!1;function Uk(e,t){switch(e){case"keyup":return xQ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bo=!1;function EQ(e,t){switch(e){case"compositionend":return Hk(t);case"keypress":return t.which!==32?null:(zk=!0,jk);case"textInput":return e=t.data,e===jk&&zk?null:e;default:return null}}function TQ(e,t){if(Bo)return e==="compositionend"||!cb&&Uk(e,t)?(e=Dk(),Rf=ab=da=null,Bo=!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 Bk&&t.locale!=="ko"?null:t.data;default:return null}}var wQ={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 Fk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wQ[e.type]:t==="textarea"}function Vk(e,t,n,i){Io?Po?Po.push(i):Po=[i]:Io=i,t=_h(t,"onChange"),0<t.length&&(n=new Lf("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Pu=null,Bu=null;function SQ(e){TO(e,0)}function Pf(e){var t=Nu(e);if(wk(t))return e}function Yk(e,t){if(e==="change")return t}var qk=!1;if(_r){var db;if(_r){var fb="oninput"in document;if(!fb){var Gk=document.createElement("div");Gk.setAttribute("oninput","return;"),fb=typeof Gk.oninput=="function"}db=fb}else db=!1;qk=db&&(!document.documentMode||9<document.documentMode)}function $k(){Pu&&(Pu.detachEvent("onpropertychange",Xk),Bu=Pu=null)}function Xk(e){if(e.propertyName==="value"&&Pf(Bu)){var t=[];Vk(t,Bu,e,nb(e)),Rk(SQ,t)}}function AQ(e,t,n){e==="focusin"?($k(),Pu=t,Bu=n,Pu.attachEvent("onpropertychange",Xk)):e==="focusout"&&$k()}function CQ(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pf(Bu)}function kQ(e,t){if(e==="click")return Pf(t)}function OQ(e,t){if(e==="input"||e==="change")return Pf(t)}function NQ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gn=typeof Object.is=="function"?Object.is:NQ;function ju(e,t){if(Gn(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(!Hg.call(t,r)||!Gn(e[r],t[r]))return!1}return!0}function Kk(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qk(e,t){var n=Kk(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=Kk(n)}}function Wk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zk(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Of(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=Of(e.document)}return t}function hb(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 RQ=_r&&"documentMode"in document&&11>=document.documentMode,jo=null,pb=null,zu=null,mb=!1;function Jk(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mb||jo==null||jo!==Of(i)||(i=jo,"selectionStart"in i&&hb(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}),zu&&ju(zu,i)||(zu=i,i=_h(pb,"onSelect"),0<i.length&&(t=new Lf("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=jo)))}function os(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zo={animationend:os("Animation","AnimationEnd"),animationiteration:os("Animation","AnimationIteration"),animationstart:os("Animation","AnimationStart"),transitionrun:os("Transition","TransitionRun"),transitionstart:os("Transition","TransitionStart"),transitioncancel:os("Transition","TransitionCancel"),transitionend:os("Transition","TransitionEnd")},gb={},e3={};_r&&(e3=document.createElement("div").style,"AnimationEvent"in window||(delete zo.animationend.animation,delete zo.animationiteration.animation,delete zo.animationstart.animation),"TransitionEvent"in window||delete zo.transitionend.transition);function ls(e){if(gb[e])return gb[e];if(!zo[e])return e;var t=zo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in e3)return gb[e]=t[n];return e}var t3=ls("animationend"),n3=ls("animationiteration"),i3=ls("animationstart"),DQ=ls("transitionrun"),MQ=ls("transitionstart"),LQ=ls("transitioncancel"),r3=ls("transitionend"),a3=new Map,bb="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(" ");bb.push("scrollEnd");function Ri(e,t){a3.set(e,t),as(t,[e])}var s3=new WeakMap;function fi(e,t){if(typeof e=="object"&&e!==null){var n=s3.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Ek(t)},s3.set(e,t),t)}return{value:e,source:t,stack:Ek(t)}}var hi=[],Uo=0,vb=0;function Bf(){for(var e=Uo,t=vb=Uo=0;t<e;){var n=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var r=hi[t];hi[t++]=null;var a=hi[t];if(hi[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&&o3(n,r,a)}}function jf(e,t,n,i){hi[Uo++]=e,hi[Uo++]=t,hi[Uo++]=n,hi[Uo++]=i,vb|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function yb(e,t,n,i){return jf(e,t,n,i),zf(e)}function Ho(e,t){return jf(e,null,null,t),zf(e)}function o3(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-qn(n),e=a.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),a):null}function zf(e){if(50<cc)throw cc=0,S1=null,Error(q(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fo={};function IQ(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 $n(e,t,n,i){return new IQ(e,t,n,i)}function xb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Er(e,t){var n=e.alternate;return n===null?(n=$n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&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 l3(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 Uf(e,t,n,i,r,a){var s=0;if(i=e,typeof e=="function")xb(e)&&(s=1);else if(typeof e=="string")s=BW(e,n,er.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Bg:return e=$n(31,n,t,r),e.elementType=Bg,e.lanes=a,e;case wo:return us(n.children,r,a,t);case ak:s=8,r|=24;break;case Dg:return e=$n(12,n,t,r|2),e.elementType=Dg,e.lanes=a,e;case Lg:return e=$n(13,n,t,r),e.elementType=Lg,e.lanes=a,e;case Ig:return e=$n(19,n,t,r),e.elementType=Ig,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case SK:case yr:s=10;break e;case sk:s=9;break e;case Mg:s=11;break e;case Pg:s=14;break e;case oa:s=16,i=null;break e}s=29,n=Error(q(130,e===null?"null":typeof e,"")),i=null}return t=$n(s,n,t,r),t.elementType=e,t.type=i,t.lanes=a,t}function us(e,t,n,i){return e=$n(7,e,i,t),e.lanes=n,e}function _b(e,t,n){return e=$n(6,e,null,t),e.lanes=n,e}function Eb(e,t,n){return t=$n(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vo=[],Yo=0,Hf=null,Ff=0,pi=[],mi=0,cs=null,Tr=1,wr="";function ds(e,t){Vo[Yo++]=Ff,Vo[Yo++]=Hf,Hf=e,Ff=t}function u3(e,t,n){pi[mi++]=Tr,pi[mi++]=wr,pi[mi++]=cs,cs=e;var i=Tr;e=wr;var r=32-qn(i)-1;i&=~(1<<r),n+=1;var a=32-qn(t)+r;if(30<a){var s=r-r%5;a=(i&(1<<s)-1).toString(32),i>>=s,r-=s,Tr=1<<32-qn(t)+r|n<<r|i,wr=a+e}else Tr=1<<a|n<<r|i,wr=e}function Tb(e){e.return!==null&&(ds(e,1),u3(e,1,0))}function wb(e){for(;e===Hf;)Hf=Vo[--Yo],Vo[Yo]=null,Ff=Vo[--Yo],Vo[Yo]=null;for(;e===cs;)cs=pi[--mi],pi[mi]=null,wr=pi[--mi],pi[mi]=null,Tr=pi[--mi],pi[mi]=null}var vn=null,vt=null,Fe=!1,fs=null,nr=!1,Sb=Error(q(519));function hs(e){var t=Error(q(418,""));throw Fu(fi(t,e)),Sb}function c3(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[un]=e,t[An]=i,n){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(n=0;n<fc.length;n++)De(fc[n],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Sk(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),kf(t);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Ck(t,i.value,i.defaultValue,i.children),kf(t)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||CO(t.textContent,n)?(i.popover!=null&&(De("beforetoggle",t),De("toggle",t)),i.onScroll!=null&&De("scroll",t),i.onScrollEnd!=null&&De("scrollend",t),i.onClick!=null&&(t.onclick=Eh),t=!0):t=!1,t||hs(e)}function d3(e){for(vn=e.return;vn;)switch(vn.tag){case 5:case 13:nr=!1;return;case 27:case 3:nr=!0;return;default:vn=vn.return}}function Uu(e){if(e!==vn)return!1;if(!Fe)return d3(e),Fe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||H1(e.type,e.memoizedProps)),n=!n),n&&vt&&hs(e),d3(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){vt=Mi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}vt=null}}else t===27?(t=vt,Ca(e.type)?(e=q1,q1=null,vt=e):vt=t):vt=vn?Mi(e.stateNode.nextSibling):null;return!0}function Hu(){vt=vn=null,Fe=!1}function f3(){var e=fs;return e!==null&&(Nn===null?Nn=e:Nn.push.apply(Nn,e),fs=null),e}function Fu(e){fs===null?fs=[e]:fs.push(e)}var Ab=Ji(null),ps=null,Sr=null;function fa(e,t,n){dt(Ab,t._currentValue),t._currentValue=n}function Ar(e){e._currentValue=Ab.current,Vt(Ab)}function Cb(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 kb(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),Cb(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),Cb(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 Vu(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;Gn(r.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(r===yf.current){if(s=r.alternate,s===null)throw Error(q(387));s.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(vc):e=[vc])}r=r.return}e!==null&&kb(t,e,n,i),t.flags|=262144}function Vf(e){for(e=e.firstContext;e!==null;){if(!Gn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ms(e){ps=e,Sr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function cn(e){return h3(ps,e)}function Yf(e,t){return ps===null&&ms(e),h3(e,t)}function h3(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Sr===null){if(e===null)throw Error(q(308));Sr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sr=Sr.next=t;return n}var PQ=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()})}},BQ=Bt.unstable_scheduleCallback,jQ=Bt.unstable_NormalPriority,jt={$$typeof:yr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ob(){return{controller:new PQ,data:new Map,refCount:0}}function Yu(e){e.refCount--,e.refCount===0&&BQ(jQ,function(){e.controller.abort()})}var qu=null,Nb=0,qo=0,Go=null;function zQ(e,t){if(qu===null){var n=qu=[];Nb=0,qo=D1(),Go={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Nb++,t.then(p3,p3),t}function p3(){if(--Nb===0&&qu!==null){Go!==null&&(Go.status="fulfilled");var e=qu;qu=null,qo=0,Go=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function UQ(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 m3=me.S;me.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&zQ(e,t),m3!==null&&m3(e,t)};var gs=Ji(null);function Rb(){var e=gs.current;return e!==null?e:et.pooledCache}function qf(e,t){t===null?dt(gs,gs.current):dt(gs,t.pool)}function g3(){var e=Rb();return e===null?null:{parent:jt._currentValue,pool:e}}var Gu=Error(q(460)),b3=Error(q(474)),Gf=Error(q(542)),Db={then:function(){}};function v3(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $f(){}function y3(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($f,$f),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,_3(e),e;default:if(typeof t.status=="string")t.then($f,$f);else{if(e=et,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,_3(e),e}throw $u=t,Gu}}var $u=null;function x3(){if($u===null)throw Error(q(459));var e=$u;return $u=null,e}function _3(e){if(e===Gu||e===Gf)throw Error(q(483))}var ha=!1;function Mb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lb(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 pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ma(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,Ve&2){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=zf(e),o3(e,null,n),t}return jf(e,i,t,n),zf(e)}function Xu(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,pk(e,n)}}function Ib(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 Pb=!1;function Ku(){if(Pb){var e=Go;if(e!==null)throw e}}function Qu(e,t,n,i){Pb=!1;var r=e.updateQueue;ha=!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 d=r.baseState;s=0,c=u=l=null,o=a;do{var f=o.lane&-536870913,h=f!==o.lane;if(h?(Le&f)===f:(i&f)===f){f!==0&&f===qo&&(Pb=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,b=o;f=t;var _=n;switch(b.tag){case 1:if(g=b.payload,typeof g=="function"){d=g.call(_,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,f=typeof g=="function"?g.call(_,d,f):g,f==null)break e;d=st({},d,f);break e;case 2:ha=!0}}f=o.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=r.callbacks,h===null?r.callbacks=[f]:h.push(f))}else h={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;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=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,a===null&&(r.shared.lanes=0),Ta|=s,e.lanes=s,e.memoizedState=d}}function E3(e,t){if(typeof e!="function")throw Error(q(191,e));e.call(t)}function T3(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)E3(n[e],t)}var $o=Ji(null),Xf=Ji(0);function w3(e,t){e=Mr,dt(Xf,e),dt($o,t),Mr=e|t.baseLanes}function Bb(){dt(Xf,Mr),dt($o,$o.current)}function jb(){Mr=Xf.current,Vt($o),Vt(Xf)}var ga=0,Ce=null,qe=null,Rt=null,Kf=!1,Xo=!1,bs=!1,Qf=0,Wu=0,Ko=null,HQ=0;function wt(){throw Error(q(321))}function zb(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gn(e[n],t[n]))return!1;return!0}function Ub(e,t,n,i,r,a){return ga=a,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,me.H=e===null||e.memoizedState===null?o6:l6,bs=!1,a=n(i,r),bs=!1,Xo&&(a=A3(t,n,i,r)),S3(e),a}function S3(e){me.H=nh;var t=qe!==null&&qe.next!==null;if(ga=0,Rt=qe=Ce=null,Kf=!1,Wu=0,Ko=null,t)throw Error(q(300));e===null||qt||(e=e.dependencies,e!==null&&Vf(e)&&(qt=!0))}function A3(e,t,n,i){Ce=e;var r=0;do{if(Xo&&(Ko=null),Wu=0,Xo=!1,25<=r)throw Error(q(301));if(r+=1,Rt=qe=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}me.H=XQ,a=t(n,i)}while(Xo);return a}function FQ(){var e=me.H,t=e.useState()[0];return t=typeof t.then=="function"?Zu(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Hb(){var e=Qf!==0;return Qf=0,e}function Fb(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Vb(e){if(Kf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kf=!1}ga=0,Rt=qe=Ce=null,Xo=!1,Wu=Qf=0,Ko=null}function kn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e,Rt}function Dt(){if(qe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Rt===null?Ce.memoizedState:Rt.next;if(t!==null)Rt=t,qe=e;else{if(e===null)throw Ce.alternate===null?Error(q(467)):Error(q(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e}return Rt}function Yb(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zu(e){var t=Wu;return Wu+=1,Ko===null&&(Ko=[]),e=y3(Ko,e,t),t=Ce,(Rt===null?t.memoizedState:Rt.next)===null&&(t=t.alternate,me.H=t===null||t.memoizedState===null?o6:l6),e}function Wf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Zu(e);if(e.$$typeof===yr)return cn(e)}throw Error(q(438,String(e)))}function qb(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ce.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=Yb(),Ce.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]=AK;return t.index++,n}function Cr(e,t){return typeof t=="function"?t(e):t}function Zf(e){var t=Dt();return Gb(t,qe,e)}function Gb(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 d=u.lane&-536870913;if(d!==u.lane?(Le&d)===d:(ga&d)===d){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===qo&&(c=!0);else if((ga&f)===f){u=u.next,f===qo&&(c=!0);continue}else d={lane:0,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,Ce.lanes|=f,Ta|=f;d=u.action,bs&&n(a,d),a=u.hasEagerState?u.eagerState:n(a,d)}else f={lane:d,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,Ce.lanes|=d,Ta|=d;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=o,!Gn(a,e.memoizedState)&&(qt=!0,c&&(n=Go,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 $b(e){var t=Dt(),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);Gn(a,t.memoizedState)||(qt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function C3(e,t,n){var i=Ce,r=Dt(),a=Fe;if(a){if(n===void 0)throw Error(q(407));n=n()}else n=t();var s=!Gn((qe||r).memoizedState,n);s&&(r.memoizedState=n,qt=!0),r=r.queue;var o=N3.bind(null,i,r,e);if(Ju(2048,8,o,[e]),r.getSnapshot!==t||s||Rt!==null&&Rt.memoizedState.tag&1){if(i.flags|=2048,Qo(9,Jf(),O3.bind(null,i,r,n,t),null),et===null)throw Error(q(349));a||ga&124||k3(i,t,n)}return n}function k3(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Yb(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function O3(e,t,n,i){t.value=n,t.getSnapshot=i,R3(t)&&D3(e)}function N3(e,t,n){return n(function(){R3(t)&&D3(e)})}function R3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gn(e,n)}catch{return!0}}function D3(e){var t=Ho(e,2);t!==null&&Zn(t,e,2)}function Xb(e){var t=kn();if(typeof e=="function"){var n=e;if(e=n(),bs){ua(!0);try{n()}finally{ua(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:e},t}function M3(e,t,n,i){return e.baseState=n,Gb(e,qe,typeof i=="function"?i:Cr)}function VQ(e,t,n,i,r){if(th(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)}};me.T!==null?n(!0):a.isTransition=!1,i(a),n=t.pending,n===null?(a.next=t.pending=a,L3(t,a)):(a.next=n.next,t.pending=n.next=a)}}function L3(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var a=me.T,s={};me.T=s;try{var o=n(r,i),l=me.S;l!==null&&l(s,o),I3(e,t,o)}catch(u){Kb(e,t,u)}finally{me.T=a}}else try{a=n(r,i),I3(e,t,a)}catch(u){Kb(e,t,u)}}function I3(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){P3(e,t,i)},function(i){return Kb(e,t,i)}):P3(e,t,n)}function P3(e,t,n){t.status="fulfilled",t.value=n,B3(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,L3(e,n)))}function Kb(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,B3(t),t=t.next;while(t!==i)}e.action=null}function B3(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function j3(e,t){return t}function z3(e,t){if(Fe){var n=et.formState;if(n!==null){e:{var i=Ce;if(Fe){if(vt){t:{for(var r=vt,a=nr;r.nodeType!==8;){if(!a){r=null;break t}if(r=Mi(r.nextSibling),r===null){r=null;break t}}a=r.data,r=a==="F!"||a==="F"?r:null}if(r){vt=Mi(r.nextSibling),i=r.data==="F!";break e}}hs(i)}i=!1}i&&(t=n[0])}}return n=kn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:j3,lastRenderedState:t},n.queue=i,n=r6.bind(null,Ce,i),i.dispatch=n,i=Xb(!1),a=e1.bind(null,Ce,!1,i.queue),i=kn(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=VQ.bind(null,Ce,r,a,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function U3(e){var t=Dt();return H3(t,qe,e)}function H3(e,t,n){if(t=Gb(e,t,j3)[0],e=Zf(Cr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Zu(t)}catch(s){throw s===Gu?Gf:s}else i=t;t=Dt();var r=t.queue,a=r.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Qo(9,Jf(),YQ.bind(null,r,n),null)),[i,a,e]}function YQ(e,t){e.action=t}function F3(e){var t=Dt(),n=qe;if(n!==null)return H3(t,n,e);Dt(),t=t.memoizedState,n=Dt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Qo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Yb(),Ce.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 Jf(){return{destroy:void 0,resource:void 0}}function V3(){return Dt().memoizedState}function eh(e,t,n,i){var r=kn();i=i===void 0?null:i,Ce.flags|=e,r.memoizedState=Qo(1|t,Jf(),n,i)}function Ju(e,t,n,i){var r=Dt();i=i===void 0?null:i;var a=r.memoizedState.inst;qe!==null&&i!==null&&zb(i,qe.memoizedState.deps)?r.memoizedState=Qo(t,a,n,i):(Ce.flags|=e,r.memoizedState=Qo(1|t,a,n,i))}function Y3(e,t){eh(8390656,8,e,t)}function q3(e,t){Ju(2048,8,e,t)}function G3(e,t){return Ju(4,2,e,t)}function $3(e,t){return Ju(4,4,e,t)}function X3(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 K3(e,t,n){n=n!=null?n.concat([e]):null,Ju(4,4,X3.bind(null,t,e),n)}function Qb(){}function Q3(e,t){var n=Dt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&zb(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function W3(e,t){var n=Dt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&zb(t,i[1]))return i[0];if(i=e(),bs){ua(!0);try{e()}finally{ua(!1)}}return n.memoizedState=[i,t],i}function Wb(e,t,n){return n===void 0||ga&1073741824?e.memoizedState=t:(e.memoizedState=n,e=eO(),Ce.lanes|=e,Ta|=e,n)}function Z3(e,t,n,i){return Gn(n,t)?n:$o.current!==null?(e=Wb(e,n,i),Gn(e,t)||(qt=!0),e):ga&42?(e=eO(),Ce.lanes|=e,Ta|=e,t):(qt=!0,e.memoizedState=n)}function J3(e,t,n,i,r){var a=He.p;He.p=a!==0&&8>a?a:8;var s=me.T,o={};me.T=o,e1(e,!1,t,n);try{var l=r(),u=me.S;if(u!==null&&u(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=UQ(l,i);ec(e,t,c,Wn(e))}else ec(e,t,i,Wn(e))}catch(d){ec(e,t,{then:function(){},status:"rejected",reason:d},Wn())}finally{He.p=a,me.T=s}}function qQ(){}function Zb(e,t,n,i){if(e.tag!==5)throw Error(q(476));var r=e6(e).queue;J3(e,r,t,is,n===null?qQ:function(){return t6(e),n(i)})}function e6(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:is,baseState:is,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:is},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function t6(e){var t=e6(e).next.queue;ec(e,t,{},Wn())}function Jb(){return cn(vc)}function n6(){return Dt().memoizedState}function i6(){return Dt().memoizedState}function GQ(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Wn();e=pa(n);var i=ma(t,e,n);i!==null&&(Zn(i,t,n),Xu(i,t,n)),t={cache:Ob()},e.payload=t;return}t=t.return}}function $Q(e,t,n){var i=Wn();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},th(e)?a6(t,n):(n=yb(e,t,n,i),n!==null&&(Zn(n,e,i),s6(n,t,i)))}function r6(e,t,n){var i=Wn();ec(e,t,n,i)}function ec(e,t,n,i){var r={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(th(e))a6(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,Gn(o,s))return jf(e,t,r,0),et===null&&Bf(),!1}catch{}finally{}if(n=yb(e,t,r,i),n!==null)return Zn(n,e,i),s6(n,t,i),!0}return!1}function e1(e,t,n,i){if(i={lane:2,revertLane:D1(),action:i,hasEagerState:!1,eagerState:null,next:null},th(e)){if(t)throw Error(q(479))}else t=yb(e,n,i,2),t!==null&&Zn(t,e,2)}function th(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function a6(e,t){Xo=Kf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function s6(e,t,n){if(n&4194048){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,pk(e,n)}}var nh={readContext:cn,use:Wf,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt},o6={readContext:cn,use:Wf,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:Y3,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,eh(4194308,4,X3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return eh(4194308,4,e,t)},useInsertionEffect:function(e,t){eh(4,2,e,t)},useMemo:function(e,t){var n=kn();t=t===void 0?null:t;var i=e();if(bs){ua(!0);try{e()}finally{ua(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=kn();if(n!==void 0){var r=n(t);if(bs){ua(!0);try{n(t)}finally{ua(!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=$Q.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:function(e){e=Xb(e);var t=e.queue,n=r6.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Qb,useDeferredValue:function(e,t){var n=kn();return Wb(n,e,t)},useTransition:function(){var e=Xb(!1);return e=J3.bind(null,Ce,e.queue,!0,!1),kn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ce,r=kn();if(Fe){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),et===null)throw Error(q(349));Le&124||k3(i,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,Y3(N3.bind(null,i,a,e),[e]),i.flags|=2048,Qo(9,Jf(),O3.bind(null,i,a,n,t),null),n},useId:function(){var e=kn(),t=et.identifierPrefix;if(Fe){var n=wr,i=Tr;n=(i&~(1<<32-qn(i)-1)).toString(32)+n,t="«"+t+"R"+n,n=Qf++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=HQ++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Jb,useFormState:z3,useActionState:z3,useOptimistic:function(e){var t=kn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=e1.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:qb,useCacheRefresh:function(){return kn().memoizedState=GQ.bind(null,Ce)}},l6={readContext:cn,use:Wf,useCallback:Q3,useContext:cn,useEffect:q3,useImperativeHandle:K3,useInsertionEffect:G3,useLayoutEffect:$3,useMemo:W3,useReducer:Zf,useRef:V3,useState:function(){return Zf(Cr)},useDebugValue:Qb,useDeferredValue:function(e,t){var n=Dt();return Z3(n,qe.memoizedState,e,t)},useTransition:function(){var e=Zf(Cr)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:Zu(e),t]},useSyncExternalStore:C3,useId:n6,useHostTransitionStatus:Jb,useFormState:U3,useActionState:U3,useOptimistic:function(e,t){var n=Dt();return M3(n,qe,e,t)},useMemoCache:qb,useCacheRefresh:i6},XQ={readContext:cn,use:Wf,useCallback:Q3,useContext:cn,useEffect:q3,useImperativeHandle:K3,useInsertionEffect:G3,useLayoutEffect:$3,useMemo:W3,useReducer:$b,useRef:V3,useState:function(){return $b(Cr)},useDebugValue:Qb,useDeferredValue:function(e,t){var n=Dt();return qe===null?Wb(n,e,t):Z3(n,qe.memoizedState,e,t)},useTransition:function(){var e=$b(Cr)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:Zu(e),t]},useSyncExternalStore:C3,useId:n6,useHostTransitionStatus:Jb,useFormState:F3,useActionState:F3,useOptimistic:function(e,t){var n=Dt();return qe!==null?M3(n,qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:qb,useCacheRefresh:i6},Wo=null,tc=0;function ih(e){var t=tc;return tc+=1,Wo===null&&(Wo=[]),y3(Wo,e,t)}function nc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function rh(e,t){throw t.$$typeof===wK?Error(q(525)):(e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function u6(e){var t=e._init;return t(e._payload)}function c6(e){function t(m,v){if(e){var x=m.deletions;x===null?(m.deletions=[v],m.flags|=16):x.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function i(m){for(var v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function r(m,v){return m=Er(m,v),m.index=0,m.sibling=null,m}function a(m,v,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<v?(m.flags|=67108866,v):x):(m.flags|=67108866,v)):(m.flags|=1048576,v)}function s(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function o(m,v,x,T){return v===null||v.tag!==6?(v=_b(x,m.mode,T),v.return=m,v):(v=r(v,x),v.return=m,v)}function l(m,v,x,T){var S=x.type;return S===wo?c(m,v,x.props.children,T,x.key):v!==null&&(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===oa&&u6(S)===v.type)?(v=r(v,x.props),nc(v,x),v.return=m,v):(v=Uf(x.type,x.key,x.props,null,m.mode,T),nc(v,x),v.return=m,v)}function u(m,v,x,T){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Eb(x,m.mode,T),v.return=m,v):(v=r(v,x.children||[]),v.return=m,v)}function c(m,v,x,T,S){return v===null||v.tag!==7?(v=us(x,m.mode,T,S),v.return=m,v):(v=r(v,x),v.return=m,v)}function d(m,v,x){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=_b(""+v,m.mode,x),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case vf:return x=Uf(v.type,v.key,v.props,null,m.mode,x),nc(x,v),x.return=m,x;case Eu:return v=Eb(v,m.mode,x),v.return=m,v;case oa:var T=v._init;return v=T(v._payload),d(m,v,x)}if(wu(v)||Tu(v))return v=us(v,m.mode,x,null),v.return=m,v;if(typeof v.then=="function")return d(m,ih(v),x);if(v.$$typeof===yr)return d(m,Yf(m,v),x);rh(m,v)}return null}function f(m,v,x,T){var S=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:o(m,v,""+x,T);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case vf:return x.key===S?l(m,v,x,T):null;case Eu:return x.key===S?u(m,v,x,T):null;case oa:return S=x._init,x=S(x._payload),f(m,v,x,T)}if(wu(x)||Tu(x))return S!==null?null:c(m,v,x,T,null);if(typeof x.then=="function")return f(m,v,ih(x),T);if(x.$$typeof===yr)return f(m,v,Yf(m,x),T);rh(m,x)}return null}function h(m,v,x,T,S){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return m=m.get(x)||null,o(v,m,""+T,S);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case vf:return m=m.get(T.key===null?x:T.key)||null,l(v,m,T,S);case Eu:return m=m.get(T.key===null?x:T.key)||null,u(v,m,T,S);case oa:var A=T._init;return T=A(T._payload),h(m,v,x,T,S)}if(wu(T)||Tu(T))return m=m.get(x)||null,c(v,m,T,S,null);if(typeof T.then=="function")return h(m,v,x,ih(T),S);if(T.$$typeof===yr)return h(m,v,x,Yf(v,T),S);rh(v,T)}return null}function g(m,v,x,T){for(var S=null,A=null,D=v,L=v=0,B=null;D!==null&&L<x.length;L++){D.index>L?(B=D,D=null):B=D.sibling;var O=f(m,D,x[L],T);if(O===null){D===null&&(D=B);break}e&&D&&O.alternate===null&&t(m,D),v=a(O,v,L),A===null?S=O:A.sibling=O,A=O,D=B}if(L===x.length)return n(m,D),Fe&&ds(m,L),S;if(D===null){for(;L<x.length;L++)D=d(m,x[L],T),D!==null&&(v=a(D,v,L),A===null?S=D:A.sibling=D,A=D);return Fe&&ds(m,L),S}for(D=i(D);L<x.length;L++)B=h(D,m,L,x[L],T),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?L:B.key),v=a(B,v,L),A===null?S=B:A.sibling=B,A=B);return e&&D.forEach(function(Y){return t(m,Y)}),Fe&&ds(m,L),S}function b(m,v,x,T){if(x==null)throw Error(q(151));for(var S=null,A=null,D=v,L=v=0,B=null,O=x.next();D!==null&&!O.done;L++,O=x.next()){D.index>L?(B=D,D=null):B=D.sibling;var Y=f(m,D,O.value,T);if(Y===null){D===null&&(D=B);break}e&&D&&Y.alternate===null&&t(m,D),v=a(Y,v,L),A===null?S=Y:A.sibling=Y,A=Y,D=B}if(O.done)return n(m,D),Fe&&ds(m,L),S;if(D===null){for(;!O.done;L++,O=x.next())O=d(m,O.value,T),O!==null&&(v=a(O,v,L),A===null?S=O:A.sibling=O,A=O);return Fe&&ds(m,L),S}for(D=i(D);!O.done;L++,O=x.next())O=h(D,m,L,O.value,T),O!==null&&(e&&O.alternate!==null&&D.delete(O.key===null?L:O.key),v=a(O,v,L),A===null?S=O:A.sibling=O,A=O);return e&&D.forEach(function(U){return t(m,U)}),Fe&&ds(m,L),S}function _(m,v,x,T){if(typeof x=="object"&&x!==null&&x.type===wo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case vf:e:{for(var S=x.key;v!==null;){if(v.key===S){if(S=x.type,S===wo){if(v.tag===7){n(m,v.sibling),T=r(v,x.props.children),T.return=m,m=T;break e}}else if(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===oa&&u6(S)===v.type){n(m,v.sibling),T=r(v,x.props),nc(T,x),T.return=m,m=T;break e}n(m,v);break}else t(m,v);v=v.sibling}x.type===wo?(T=us(x.props.children,m.mode,T,x.key),T.return=m,m=T):(T=Uf(x.type,x.key,x.props,null,m.mode,T),nc(T,x),T.return=m,m=T)}return s(m);case Eu:e:{for(S=x.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(m,v.sibling),T=r(v,x.children||[]),T.return=m,m=T;break e}else{n(m,v);break}else t(m,v);v=v.sibling}T=Eb(x,m.mode,T),T.return=m,m=T}return s(m);case oa:return S=x._init,x=S(x._payload),_(m,v,x,T)}if(wu(x))return g(m,v,x,T);if(Tu(x)){if(S=Tu(x),typeof S!="function")throw Error(q(150));return x=S.call(x),b(m,v,x,T)}if(typeof x.then=="function")return _(m,v,ih(x),T);if(x.$$typeof===yr)return _(m,v,Yf(m,x),T);rh(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,v!==null&&v.tag===6?(n(m,v.sibling),T=r(v,x),T.return=m,m=T):(n(m,v),T=_b(x,m.mode,T),T.return=m,m=T),s(m)):n(m,v)}return function(m,v,x,T){try{tc=0;var S=_(m,v,x,T);return Wo=null,S}catch(D){if(D===Gu||D===Gf)throw D;var A=$n(29,D,null,m.mode);return A.lanes=T,A.return=m,A}finally{}}}var Zo=c6(!0),d6=c6(!1),gi=Ji(null),ir=null;function ba(e){var t=e.alternate;dt(zt,zt.current&1),dt(gi,e),ir===null&&(t===null||$o.current!==null||t.memoizedState!==null)&&(ir=e)}function f6(e){if(e.tag===22){if(dt(zt,zt.current),dt(gi,e),ir===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(ir=e)}}else va()}function va(){dt(zt,zt.current),dt(gi,gi.current)}function kr(e){Vt(gi),ir===e&&(ir=null),Vt(zt)}var zt=Ji(0);function ah(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==="$?"||Y1(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 t1(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:st({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var n1={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Wn(),r=pa(i);r.payload=t,n!=null&&(r.callback=n),t=ma(e,r,i),t!==null&&(Zn(t,e,i),Xu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Wn(),r=pa(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=ma(e,r,i),t!==null&&(Zn(t,e,i),Xu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wn(),i=pa(n);i.tag=2,t!=null&&(i.callback=t),t=ma(e,i,n),t!==null&&(Zn(t,e,n),Xu(t,e,n))}};function h6(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?!ju(n,i)||!ju(r,a):!0}function p6(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&&n1.enqueueReplaceState(t,t.state,null)}function vs(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=st({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}var sh=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 m6(e){sh(e)}function g6(e){console.error(e)}function b6(e){sh(e)}function oh(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function v6(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 i1(e,t,n){return n=pa(n),n.tag=3,n.payload={element:null},n.callback=function(){oh(e,t)},n}function y6(e){return e=pa(e),e.tag=3,e}function x6(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(){v6(t,n,i)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){v6(t,n,i),typeof r!="function"&&(wa===null?wa=new Set([this]):wa.add(this));var o=i.stack;this.componentDidCatch(i.value,{componentStack:o!==null?o:""})})}function KQ(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Vu(t,n,r,!0),n=gi.current,n!==null){switch(n.tag){case 13:return ir===null?C1():n.alternate===null&&yt===0&&(yt=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===Db?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),O1(e,i,r)),!1;case 22:return n.flags|=65536,i===Db?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)),O1(e,i,r)),!1}throw Error(q(435,n.tag))}return O1(e,i,r),C1(),!1}if(Fe)return t=gi.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==Sb&&(e=Error(q(422),{cause:i}),Fu(fi(e,n)))):(i!==Sb&&(t=Error(q(423),{cause:i}),Fu(fi(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=fi(i,n),r=i1(e.stateNode,i,r),Ib(e,r),yt!==4&&(yt=2)),!1;var a=Error(q(520),{cause:i});if(a=fi(a,n),uc===null?uc=[a]:uc.push(a),yt!==4&&(yt=2),t===null)return!0;i=fi(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=i1(n.stateNode,i,e),Ib(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"&&(wa===null||!wa.has(a))))return n.flags|=65536,r&=-r,n.lanes|=r,r=y6(r),x6(r,e,n,i),Ib(n,r),!1}n=n.return}while(n!==null);return!1}var _6=Error(q(461)),qt=!1;function Zt(e,t,n,i){t.child=e===null?d6(t,null,n,i):Zo(t,e.child,n,i)}function E6(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 ms(t),i=Ub(e,t,n,s,a,r),o=Hb(),e!==null&&!qt?(Fb(e,t,r),Or(e,t,r)):(Fe&&o&&Tb(t),t.flags|=1,Zt(e,t,i,r),t.child)}function T6(e,t,n,i,r){if(e===null){var a=n.type;return typeof a=="function"&&!xb(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,w6(e,t,a,i,r)):(e=Uf(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!d1(e,r)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:ju,n(s,i)&&e.ref===t.ref)return Or(e,t,r)}return t.flags|=1,e=Er(a,i),e.ref=t.ref,e.return=t,t.child=e}function w6(e,t,n,i,r){if(e!==null){var a=e.memoizedProps;if(ju(a,i)&&e.ref===t.ref)if(qt=!1,t.pendingProps=i=a,d1(e,r))e.flags&131072&&(qt=!0);else return t.lanes=e.lanes,Or(e,t,r)}return r1(e,t,n,i,r)}function S6(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 A6(e,t,i,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qf(t,a!==null?a.cachePool:null),a!==null?w3(t,a):Bb(),f6(t);else return t.lanes=t.childLanes=536870912,A6(e,t,a!==null?a.baseLanes|n:n,n)}else a!==null?(qf(t,a.cachePool),w3(t,a),va(),t.memoizedState=null):(e!==null&&qf(t,null),Bb(),va());return Zt(e,t,r,n),t.child}function A6(e,t,n,i){var r=Rb();return r=r===null?null:{parent:jt._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&qf(t,null),Bb(),f6(t),e!==null&&Vu(e,t,i,!0),null}function lh(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 r1(e,t,n,i,r){return ms(t),n=Ub(e,t,n,i,void 0,r),i=Hb(),e!==null&&!qt?(Fb(e,t,r),Or(e,t,r)):(Fe&&i&&Tb(t),t.flags|=1,Zt(e,t,n,r),t.child)}function C6(e,t,n,i,r,a){return ms(t),t.updateQueue=null,n=A3(t,i,n,r),S3(e),i=Hb(),e!==null&&!qt?(Fb(e,t,a),Or(e,t,a)):(Fe&&i&&Tb(t),t.flags|=1,Zt(e,t,n,a),t.child)}function k6(e,t,n,i,r){if(ms(t),t.stateNode===null){var a=Fo,s=n.contextType;typeof s=="object"&&s!==null&&(a=cn(s)),a=new n(i,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=n1,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=i,a.state=t.memoizedState,a.refs={},Mb(t),s=n.contextType,a.context=typeof s=="object"&&s!==null?cn(s):Fo,a.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(t1(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&&n1.enqueueReplaceState(a,a.state,null),Qu(t,i,a,r),Ku(),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=vs(n,o);a.props=l;var u=a.context,c=n.contextType;s=Fo,typeof c=="object"&&c!==null&&(s=cn(c));var d=n.getDerivedStateFromProps;c=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o||u!==s)&&p6(t,a,i,s),ha=!1;var f=t.memoizedState;a.state=f,Qu(t,i,a,r),Ku(),u=t.memoizedState,o||f!==u||ha?(typeof d=="function"&&(t1(t,n,d,i),u=t.memoizedState),(l=ha||h6(t,n,l,i,f,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,Lb(e,t),s=t.memoizedProps,c=vs(n,s),a.props=c,d=t.pendingProps,f=a.context,u=n.contextType,l=Fo,typeof u=="object"&&u!==null&&(l=cn(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&p6(t,a,i,l),ha=!1,f=t.memoizedState,a.state=f,Qu(t,i,a,r),Ku();var h=t.memoizedState;s!==d||f!==h||ha||e!==null&&e.dependencies!==null&&Vf(e.dependencies)?(typeof o=="function"&&(t1(t,n,o,i),h=t.memoizedState),(c=ha||h6(t,n,c,i,f,h,l)||e!==null&&e.dependencies!==null&&Vf(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&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===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&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return a=i,lh(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=Zo(t,e.child,null,r),t.child=Zo(t,null,n,r)):Zt(e,t,n,r),t.memoizedState=a.state,e=t.child):e=Or(e,t,r),e}function O6(e,t,n,i){return Hu(),t.flags|=256,Zt(e,t,n,i),t.child}var a1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function s1(e){return{baseLanes:e,cachePool:g3()}}function o1(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=bi),e}function N6(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:(zt.current&2)!==0),s&&(r=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Fe){if(r?ba(t):va(),Fe){var o=vt,l;if(l=o){e:{for(l=o,o=nr;l.nodeType!==8;){if(!o){o=null;break e}if(l=Mi(l.nextSibling),l===null){o=null;break e}}o=l}o!==null?(t.memoizedState={dehydrated:o,treeContext:cs!==null?{id:Tr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},l=$n(18,null,null,0),l.stateNode=o,l.return=t,t.child=l,vn=t,vt=null,l=!0):l=!1}l||hs(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return Y1(o)?t.lanes=32:t.lanes=536870912,null;kr(t)}return o=i.children,i=i.fallback,r?(va(),r=t.mode,o=uh({mode:"hidden",children:o},r),i=us(i,r,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,r=t.child,r.memoizedState=s1(n),r.childLanes=o1(e,s,n),t.memoizedState=a1,i):(ba(t),l1(t,o))}if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null)){if(a)t.flags&256?(ba(t),t.flags&=-257,t=u1(e,t,n)):t.memoizedState!==null?(va(),t.child=e.child,t.flags|=128,t=null):(va(),r=i.fallback,o=t.mode,i=uh({mode:"visible",children:i.children},o),r=us(r,o,n,null),r.flags|=2,i.return=t,r.return=t,i.sibling=r,t.child=i,Zo(t,e.child,null,n),i=t.child,i.memoizedState=s1(n),i.childLanes=o1(e,s,n),t.memoizedState=a1,t=r);else if(ba(t),Y1(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var u=s.dgst;s=u,i=Error(q(419)),i.stack="",i.digest=s,Fu({value:i,source:null,stack:null}),t=u1(e,t,n)}else if(qt||Vu(e,t,n,!1),s=(n&e.childLanes)!==0,qt||s){if(s=et,s!==null&&(i=n&-n,i=i&42?1:qg(i),i=i&(s.suspendedLanes|n)?0:i,i!==0&&i!==l.retryLane))throw l.retryLane=i,Ho(e,i),Zn(s,e,i),_6;o.data==="$?"||C1(),t=u1(e,t,n)}else o.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,vt=Mi(o.nextSibling),vn=t,Fe=!0,fs=null,nr=!1,e!==null&&(pi[mi++]=Tr,pi[mi++]=wr,pi[mi++]=cs,Tr=e.id,wr=e.overflow,cs=t),t=l1(t,i.children),t.flags|=4096);return t}return r?(va(),r=i.fallback,o=t.mode,l=e.child,u=l.sibling,i=Er(l,{mode:"hidden",children:i.children}),i.subtreeFlags=l.subtreeFlags&65011712,u!==null?r=Er(u,r):(r=us(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=s1(n):(l=o.cachePool,l!==null?(u=jt._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=g3(),o={baseLanes:o.baseLanes|n,cachePool:l}),r.memoizedState=o,r.childLanes=o1(e,s,n),t.memoizedState=a1,i):(ba(t),n=e.child,e=n.sibling,n=Er(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 l1(e,t){return t=uh({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function uh(e,t){return e=$n(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function u1(e,t,n){return Zo(t,e.child,null,n),e=l1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function R6(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Cb(e.return,t,n)}function c1(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 D6(e,t,n){var i=t.pendingProps,r=i.revealOrder,a=i.tail;if(Zt(e,t,i.children,n),i=zt.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&&R6(e,n,t);else if(e.tag===19)R6(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(dt(zt,i),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&ah(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),c1(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&&ah(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}c1(t,!0,n,null,a);break;case"together":c1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Or(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ta|=t.lanes,!(n&t.childLanes))if(e!==null){if(Vu(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=Er(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Er(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function d1(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Vf(e)))}function QQ(e,t,n){switch(t.tag){case 3:xf(t,t.stateNode.containerInfo),fa(t,jt,e.memoizedState.cache),Hu();break;case 27:case 5:Ug(t);break;case 4:xf(t,t.stateNode.containerInfo);break;case 10:fa(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(ba(t),t.flags|=128,null):n&t.child.childLanes?N6(e,t,n):(ba(t),e=Or(e,t,n),e!==null?e.sibling:null);ba(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Vu(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return D6(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),dt(zt,zt.current),i)break;return null;case 22:case 23:return t.lanes=0,S6(e,t,n);case 24:fa(t,jt,e.memoizedState.cache)}return Or(e,t,n)}function M6(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)qt=!0;else{if(!d1(e,n)&&!(t.flags&128))return qt=!1,QQ(e,t,n);qt=!!(e.flags&131072)}else qt=!1,Fe&&t.flags&1048576&&u3(t,Ff,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")xb(i)?(e=vs(i,e),t.tag=1,t=k6(null,t,i,e,n)):(t.tag=0,t=r1(null,t,i,e,n));else{if(i!=null){if(r=i.$$typeof,r===Mg){t.tag=11,t=E6(null,t,i,e,n);break e}else if(r===Pg){t.tag=14,t=T6(null,t,i,e,n);break e}}throw t=jg(i)||i,Error(q(306,t,""))}}return t;case 0:return r1(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=vs(i,t.pendingProps),k6(e,t,i,r,n);case 3:e:{if(xf(t,t.stateNode.containerInfo),e===null)throw Error(q(387));i=t.pendingProps;var a=t.memoizedState;r=a.element,Lb(e,t),Qu(t,i,null,n);var s=t.memoizedState;if(i=s.cache,fa(t,jt,i),i!==a.cache&&kb(t,[jt],n,!0),Ku(),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=O6(e,t,i,n);break e}else if(i!==r){r=fi(Error(q(424)),t),Fu(r),t=O6(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(vt=Mi(e.firstChild),vn=t,Fe=!0,fs=null,nr=!0,n=d6(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hu(),i===r){t=Or(e,t,n);break e}Zt(e,t,i,n)}t=t.child}return t;case 26:return lh(e,t),e===null?(n=BO(t.type,null,t.pendingProps,null))?t.memoizedState=n:Fe||(n=t.type,e=t.pendingProps,i=Th(la.current).createElement(n),i[un]=t,i[An]=e,en(i,n,e),Yt(i),t.stateNode=i):t.memoizedState=BO(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ug(t),e===null&&Fe&&(i=t.stateNode=LO(t.type,t.pendingProps,la.current),vn=t,nr=!0,r=vt,Ca(t.type)?(q1=r,vt=Mi(i.firstChild)):vt=r),Zt(e,t,t.pendingProps.children,n),lh(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Fe&&((r=i=vt)&&(i=wW(i,t.type,t.pendingProps,nr),i!==null?(t.stateNode=i,vn=t,vt=Mi(i.firstChild),nr=!1,r=!0):r=!1),r||hs(t)),Ug(t),r=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,i=a.children,H1(r,a)?i=null:s!==null&&H1(r,s)&&(t.flags|=32),t.memoizedState!==null&&(r=Ub(e,t,FQ,null,null,n),vc._currentValue=r),lh(e,t),Zt(e,t,i,n),t.child;case 6:return e===null&&Fe&&((e=n=vt)&&(n=SW(n,t.pendingProps,nr),n!==null?(t.stateNode=n,vn=t,vt=null,e=!0):e=!1),e||hs(t)),null;case 13:return N6(e,t,n);case 4:return xf(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Zo(t,null,i,n):Zt(e,t,i,n),t.child;case 11:return E6(e,t,t.type,t.pendingProps,n);case 7:return Zt(e,t,t.pendingProps,n),t.child;case 8:return Zt(e,t,t.pendingProps.children,n),t.child;case 12:return Zt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,fa(t,t.type,i.value),Zt(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,ms(t),r=cn(r),i=i(r),t.flags|=1,Zt(e,t,i,n),t.child;case 14:return T6(e,t,t.type,t.pendingProps,n);case 15:return w6(e,t,t.type,t.pendingProps,n);case 19:return D6(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},e===null?(n=uh(i,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Er(e.child,i),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return S6(e,t,n);case 24:return ms(t),i=cn(jt),e===null?(r=Rb(),r===null&&(r=et,a=Ob(),r.pooledCache=a,a.refCount++,a!==null&&(r.pooledCacheLanes|=n),r=a),t.memoizedState={parent:i,cache:r},Mb(t),fa(t,jt,r)):(e.lanes&n&&(Lb(e,t),Qu(t,null,null,n),Ku()),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),fa(t,jt,i)):(i=a.cache,fa(t,jt,i),i!==r.cache&&kb(t,[jt],n,!0))),Zt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(q(156,t.tag))}function Nr(e){e.flags|=4}function L6(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!FO(t)){if(t=gi.current,t!==null&&((Le&4194048)===Le?ir!==null:(Le&62914560)!==Le&&!(Le&536870912)||t!==ir))throw $u=Db,b3;e.flags|=8192}}function ch(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fk():536870912,e.lanes|=t,nl|=t)}function ic(e,t){if(!Fe)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 mt(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 WQ(e,t,n){var i=t.pendingProps;switch(wb(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return mt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ar(jt),Ao(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Uu(t)?Nr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,f3())),mt(t),null;case 26:return n=t.memoizedState,e===null?(Nr(t),n!==null?(mt(t),L6(t,n)):(mt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Nr(t),mt(t),L6(t,n)):(mt(t),t.flags&=-16777217):(e.memoizedProps!==i&&Nr(t),mt(t),t.flags&=-16777217),null;case 27:_f(t),n=la.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Nr(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return mt(t),null}e=er.current,Uu(t)?c3(t):(e=LO(r,i,n),t.stateNode=e,Nr(t))}return mt(t),null;case 5:if(_f(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Nr(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return mt(t),null}if(e=er.current,Uu(t))c3(t);else{switch(r=Th(la.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[un]=t,e[An]=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(en(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&&Nr(t)}}return mt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Nr(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(q(166));if(e=la.current,Uu(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=vn,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[un]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||CO(e.nodeValue,n)),e||hs(t)}else e=Th(e).createTextNode(i),e[un]=t,t.stateNode=e}return mt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Uu(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[un]=t}else Hu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;mt(t),r=!1}else r=f3(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(kr(t),t):(kr(t),null)}if(kr(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),ch(t,t.updateQueue),mt(t),null;case 4:return Ao(),e===null&&P1(t.stateNode.containerInfo),mt(t),null;case 10:return Ar(t.type),mt(t),null;case 19:if(Vt(zt),r=t.memoizedState,r===null)return mt(t),null;if(i=(t.flags&128)!==0,a=r.rendering,a===null)if(i)ic(r,!1);else{if(yt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ah(e),a!==null){for(t.flags|=128,ic(r,!1),e=a.updateQueue,t.updateQueue=e,ch(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)l3(n,e),n=n.sibling;return dt(zt,zt.current&1|2),t.child}e=e.sibling}r.tail!==null&&tr()>hh&&(t.flags|=128,i=!0,ic(r,!1),t.lanes=4194304)}else{if(!i)if(e=ah(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ch(t,e),ic(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!Fe)return mt(t),null}else 2*tr()-r.renderingStartTime>hh&&n!==536870912&&(t.flags|=128,i=!0,ic(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=tr(),t.sibling=null,e=zt.current,dt(zt,i?e&1|2:e&1),t):(mt(t),null);case 22:case 23:return kr(t),jb(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),n=t.updateQueue,n!==null&&ch(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&&Vt(gs),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ar(jt),mt(t),null;case 25:return null;case 30:return null}throw Error(q(156,t.tag))}function ZQ(e,t){switch(wb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ar(jt),Ao(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _f(t),null;case 13:if(kr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Hu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Vt(zt),null;case 4:return Ao(),null;case 10:return Ar(t.type),null;case 22:case 23:return kr(t),jb(),e!==null&&Vt(gs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ar(jt),null;case 25:return null;default:return null}}function I6(e,t){switch(wb(t),t.tag){case 3:Ar(jt),Ao();break;case 26:case 27:case 5:_f(t);break;case 4:Ao();break;case 13:kr(t);break;case 19:Vt(zt);break;case 10:Ar(t.type);break;case 22:case 23:kr(t),jb(),e!==null&&Vt(gs);break;case 24:Ar(jt)}}function rc(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){Qe(t,t.return,o)}}function ya(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){Qe(r,l,c)}}}i=i.next}while(i!==a)}}catch(c){Qe(t,t.return,c)}}function P6(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{T3(t,n)}catch(i){Qe(e,e.return,i)}}}function B6(e,t,n){n.props=vs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Qe(e,t,i)}}function ac(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){Qe(e,t,r)}}function rr(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){Qe(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){Qe(e,t,r)}else n.current=null}function j6(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){Qe(e,e.return,r)}}function f1(e,t,n){try{var i=e.stateNode;yW(i,e.type,n,t),i[An]=t}catch(r){Qe(e,e.return,r)}}function z6(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ca(e.type)||e.tag===4}function h1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||z6(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&&Ca(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 p1(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=Eh));else if(i!==4&&(i===27&&Ca(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(p1(e,t,n),e=e.sibling;e!==null;)p1(e,t,n),e=e.sibling}function dh(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&&Ca(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(dh(e,t,n),e=e.sibling;e!==null;)dh(e,t,n),e=e.sibling}function U6(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);en(t,i,n),t[un]=e,t[An]=n}catch(a){Qe(e,e.return,a)}}var Rr=!1,St=!1,m1=!1,H6=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function JQ(e,t){if(e=e.containerInfo,z1=Oh,e=Zk(e),hb(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,d=e,f=null;t:for(;;){for(var h;d!==n||r!==0&&d.nodeType!==3||(o=s+r),d!==a||i!==0&&d.nodeType!==3||(l=s+i),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===r&&(o=s),f===a&&++c===i&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(U1={focusedElem:e,selectionRange:n},Oh=!1,Gt=t;Gt!==null;)if(t=Gt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Gt=e;else for(;Gt!==null;){switch(t=Gt,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=vs(n.type,r,n.elementType===n.type);e=i.getSnapshotBeforeUpdate(g,a),i.__reactInternalSnapshotBeforeUpdate=e}catch(b){Qe(n,n.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)V1(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":V1(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,Gt=e;break}Gt=t.return}}function F6(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:xa(e,n),i&4&&rc(5,n);break;case 1:if(xa(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){Qe(n,n.return,s)}else{var r=vs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Qe(n,n.return,s)}}i&64&&P6(n),i&512&&ac(n,n.return);break;case 3:if(xa(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{T3(e,t)}catch(s){Qe(n,n.return,s)}}break;case 27:t===null&&i&4&&U6(n);case 26:case 5:xa(e,n),t===null&&i&4&&j6(n),i&512&&ac(n,n.return);break;case 12:xa(e,n);break;case 13:xa(e,n),i&4&&q6(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=lW.bind(null,n),AW(e,n))));break;case 22:if(i=n.memoizedState!==null||Rr,!i){t=t!==null&&t.memoizedState!==null||St,r=Rr;var a=St;Rr=i,(St=t)&&!a?_a(e,n,(n.subtreeFlags&8772)!==0):xa(e,n),Rr=r,St=a}break;case 30:break;default:xa(e,n)}}function V6(e){var t=e.alternate;t!==null&&(e.alternate=null,V6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xg(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 ft=null,On=!1;function Dr(e,t,n){for(n=n.child;n!==null;)Y6(e,t,n),n=n.sibling}function Y6(e,t,n){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(Au,n)}catch{}switch(n.tag){case 26:St||rr(n,t),Dr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:St||rr(n,t);var i=ft,r=On;Ca(n.type)&&(ft=n.stateNode,On=!1),Dr(e,t,n),pc(n.stateNode),ft=i,On=r;break;case 5:St||rr(n,t);case 6:if(i=ft,r=On,ft=null,Dr(e,t,n),ft=i,On=r,ft!==null)if(On)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(n.stateNode)}catch(a){Qe(n,t,a)}else try{ft.removeChild(n.stateNode)}catch(a){Qe(n,t,a)}break;case 18:ft!==null&&(On?(e=ft,DO(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ec(e)):DO(ft,n.stateNode));break;case 4:i=ft,r=On,ft=n.stateNode.containerInfo,On=!0,Dr(e,t,n),ft=i,On=r;break;case 0:case 11:case 14:case 15:St||ya(2,n,t),St||ya(4,n,t),Dr(e,t,n);break;case 1:St||(rr(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&B6(n,t,i)),Dr(e,t,n);break;case 21:Dr(e,t,n);break;case 22:St=(i=St)||n.memoizedState!==null,Dr(e,t,n),St=i;break;default:Dr(e,t,n)}}function q6(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ec(e)}catch(n){Qe(t,t.return,n)}}function eW(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new H6),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new H6),t;default:throw Error(q(435,e.tag))}}function g1(e,t){var n=eW(e);t.forEach(function(i){var r=uW.bind(null,e,i);n.has(i)||(n.add(i),i.then(r,r))})}function Xn(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(Ca(o.type)){ft=o.stateNode,On=!1;break e}break;case 5:ft=o.stateNode,On=!1;break e;case 3:case 4:ft=o.stateNode.containerInfo,On=!0;break e}o=o.return}if(ft===null)throw Error(q(160));Y6(a,s,r),ft=null,On=!1,a=r.alternate,a!==null&&(a.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)G6(t,e),t=t.sibling}var Di=null;function G6(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xn(t,e),Kn(e),i&4&&(ya(3,e,e.return),rc(3,e),ya(5,e,e.return));break;case 1:Xn(t,e),Kn(e),i&512&&(St||n===null||rr(n,n.return)),i&64&&Rr&&(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=Di;if(Xn(t,e),Kn(e),i&512&&(St||n===null||rr(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[Ou]||a[un]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=r.createElement(i),r.head.insertBefore(a,r.querySelector("head > title"))),en(a,i,n),a[un]=e,Yt(a),i=a;break e;case"link":var s=UO("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),en(a,i,n),r.head.appendChild(a);break;case"meta":if(s=UO("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),en(a,i,n),r.head.appendChild(a);break;default:throw Error(q(468,i))}a[un]=e,Yt(a),i=a}e.stateNode=i}else HO(r,e.type,e.stateNode);else e.stateNode=zO(r,i,e.memoizedProps);else a!==i?(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,i===null?HO(r,e.type,e.stateNode):zO(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&f1(e,e.memoizedProps,n.memoizedProps)}break;case 27:Xn(t,e),Kn(e),i&512&&(St||n===null||rr(n,n.return)),n!==null&&i&4&&f1(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Xn(t,e),Kn(e),i&512&&(St||n===null||rr(n,n.return)),e.flags&32){r=e.stateNode;try{Lo(r,"")}catch(h){Qe(e,e.return,h)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,f1(e,r,n!==null?n.memoizedProps:r)),i&1024&&(m1=!0);break;case 6:if(Xn(t,e),Kn(e),i&4){if(e.stateNode===null)throw Error(q(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(h){Qe(e,e.return,h)}}break;case 3:if(Ah=null,r=Di,Di=wh(t.containerInfo),Xn(t,e),Di=r,Kn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ec(t.containerInfo)}catch(h){Qe(e,e.return,h)}m1&&(m1=!1,$6(e));break;case 4:i=Di,Di=wh(e.stateNode.containerInfo),Xn(t,e),Kn(e),Di=i;break;case 12:Xn(t,e),Kn(e);break;case 13:Xn(t,e),Kn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(E1=tr()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,g1(e,i)));break;case 22:r=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Rr,c=St;if(Rr=u||r,St=c||l,Xn(t,e),St=c,Rr=u,Kn(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||l||Rr||St||ys(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 d=l.memoizedProps.style,f=d!=null&&d.hasOwnProperty("display")?d.display:null;o.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(h){Qe(l,l.return,h)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=r?"":l.memoizedProps}catch(h){Qe(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,g1(e,n))));break;case 19:Xn(t,e),Kn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,g1(e,i)));break;case 30:break;case 21:break;default:Xn(t,e),Kn(e)}}function Kn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(z6(i)){n=i;break}i=i.return}if(n==null)throw Error(q(160));switch(n.tag){case 27:var r=n.stateNode,a=h1(e);dh(e,a,r);break;case 5:var s=n.stateNode;n.flags&32&&(Lo(s,""),n.flags&=-33);var o=h1(e);dh(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,u=h1(e);p1(e,u,l);break;default:throw Error(q(161))}}catch(c){Qe(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $6(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$6(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)F6(e,t.alternate,t),t=t.sibling}function ys(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ya(4,t,t.return),ys(t);break;case 1:rr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&B6(t,t.return,n),ys(t);break;case 27:pc(t.stateNode);case 26:case 5:rr(t,t.return),ys(t);break;case 22:t.memoizedState===null&&ys(t);break;case 30:ys(t);break;default:ys(t)}e=e.sibling}}function _a(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:_a(r,a,n),rc(4,a);break;case 1:if(_a(r,a,n),i=a,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){Qe(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++)E3(l[r],o)}catch(u){Qe(i,i.return,u)}}n&&s&64&&P6(a),ac(a,a.return);break;case 27:U6(a);case 26:case 5:_a(r,a,n),n&&i===null&&s&4&&j6(a),ac(a,a.return);break;case 12:_a(r,a,n);break;case 13:_a(r,a,n),n&&s&4&&q6(r,a);break;case 22:a.memoizedState===null&&_a(r,a,n),ac(a,a.return);break;case 30:break;default:_a(r,a,n)}t=t.sibling}}function b1(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&&Yu(n))}function v1(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yu(e))}function ar(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)X6(e,t,n,i),t=t.sibling}function X6(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:ar(e,t,n,i),r&2048&&rc(9,t);break;case 1:ar(e,t,n,i);break;case 3:ar(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&&Yu(e)));break;case 12:if(r&2048){ar(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){Qe(t,t.return,l)}}else ar(e,t,n,i);break;case 13:ar(e,t,n,i);break;case 23:break;case 22:a=t.stateNode,s=t.alternate,t.memoizedState!==null?a._visibility&2?ar(e,t,n,i):sc(e,t):a._visibility&2?ar(e,t,n,i):(a._visibility|=2,Jo(e,t,n,i,(t.subtreeFlags&10256)!==0)),r&2048&&b1(s,t);break;case 24:ar(e,t,n,i),r&2048&&v1(t.alternate,t);break;default:ar(e,t,n,i)}}function Jo(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:Jo(a,s,o,l,r),rc(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?Jo(a,s,o,l,r):sc(a,s):(c._visibility|=2,Jo(a,s,o,l,r)),r&&u&2048&&b1(s.alternate,s);break;case 24:Jo(a,s,o,l,r),r&&u&2048&&v1(s.alternate,s);break;default:Jo(a,s,o,l,r)}t=t.sibling}}function sc(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:sc(n,i),r&2048&&b1(i.alternate,i);break;case 24:sc(n,i),r&2048&&v1(i.alternate,i);break;default:sc(n,i)}t=t.sibling}}var oc=8192;function el(e){if(e.subtreeFlags&oc)for(e=e.child;e!==null;)K6(e),e=e.sibling}function K6(e){switch(e.tag){case 26:el(e),e.flags&oc&&e.memoizedState!==null&&zW(Di,e.memoizedState,e.memoizedProps);break;case 5:el(e);break;case 3:case 4:var t=Di;Di=wh(e.stateNode.containerInfo),el(e),Di=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=oc,oc=16777216,el(e),oc=t):el(e));break;default:el(e)}}function Q6(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 lc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Gt=i,Z6(i,e)}Q6(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)W6(e),e=e.sibling}function W6(e){switch(e.tag){case 0:case 11:case 15:lc(e),e.flags&2048&&ya(9,e,e.return);break;case 3:lc(e);break;case 12:lc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fh(e)):lc(e);break;default:lc(e)}}function fh(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Gt=i,Z6(i,e)}Q6(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ya(8,t,t.return),fh(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,fh(t));break;default:fh(t)}e=e.sibling}}function Z6(e,t){for(;Gt!==null;){var n=Gt;switch(n.tag){case 0:case 11:case 15:ya(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:Yu(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Gt=i;else e:for(n=e;Gt!==null;){i=Gt;var r=i.sibling,a=i.return;if(V6(i),i===n){Gt=null;break e}if(r!==null){r.return=a,Gt=r;break e}Gt=a}}}var tW={getCacheForType:function(e){var t=cn(jt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},nW=typeof WeakMap=="function"?WeakMap:Map,Ve=0,et=null,Re=null,Le=0,Ye=0,Qn=null,Ea=!1,tl=!1,y1=!1,Mr=0,yt=0,Ta=0,xs=0,x1=0,bi=0,nl=0,uc=null,Nn=null,_1=!1,E1=0,hh=1/0,ph=null,wa=null,Jt=0,Sa=null,il=null,rl=0,T1=0,w1=null,J6=null,cc=0,S1=null;function Wn(){if(Ve&2&&Le!==0)return Le&-Le;if(me.T!==null){var e=qo;return e!==0?e:D1()}return mk()}function eO(){bi===0&&(bi=!(Le&536870912)||Fe?dk():536870912);var e=gi.current;return e!==null&&(e.flags|=32),bi}function Zn(e,t,n){(e===et&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(al(e,0),Aa(e,Le,bi,!1)),ku(e,n),(!(Ve&2)||e!==et)&&(e===et&&(!(Ve&2)&&(xs|=n),yt===4&&Aa(e,Le,bi,!1)),sr(e))}function tO(e,t,n){if(Ve&6)throw Error(q(327));var i=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Cu(e,t),r=i?aW(e,t):k1(e,t,!0),a=i;do{if(r===0){tl&&!i&&Aa(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!iW(n)){r=k1(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=uc;var l=o.current.memoizedState.isDehydrated;if(l&&(al(o,s).flags|=256),s=k1(o,s,!1),s!==2){if(y1&&!l){o.errorRecoveryDisabledLanes|=a,xs|=a,r=4;break e}a=Nn,Nn=r,a!==null&&(Nn===null?Nn=a:Nn.push.apply(Nn,a))}r=s}if(a=!1,r!==2)continue}}if(r===1){al(e,0),Aa(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:Aa(i,t,bi,!Ea);break e;case 2:Nn=null;break;case 3:case 5:break;default:throw Error(q(329))}if((t&62914560)===t&&(r=E1+300-tr(),10<r)){if(Aa(i,t,bi,!Ea),Sf(i,0,!0)!==0)break e;i.timeoutHandle=NO(nO.bind(null,i,n,Nn,ph,_1,t,bi,xs,nl,Ea,a,2,-0,0),r);break e}nO(i,n,Nn,ph,_1,t,bi,xs,nl,Ea,a,0,-0,0)}}break}while(!0);sr(e)}function nO(e,t,n,i,r,a,s,o,l,u,c,d,f,h){if(e.timeoutHandle=-1,d=t.subtreeFlags,(d&8192||(d&16785408)===16785408)&&(bc={stylesheets:null,count:0,unsuspend:jW},K6(t),d=UW(),d!==null)){e.cancelPendingCommit=d(uO.bind(null,e,t,a,n,i,r,s,o,l,c,1,f,h)),Aa(e,a,s,!u);return}uO(e,t,a,n,i,r,s,o,l)}function iW(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(!Gn(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 Aa(e,t,n,i){t&=~x1,t&=~xs,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var a=31-qn(r),s=1<<a;i[a]=-1,r&=~s}n!==0&&hk(e,n,t)}function mh(){return Ve&6?!0:(dc(0),!1)}function A1(){if(Re!==null){if(Ye===0)var e=Re.return;else e=Re,Sr=ps=null,Vb(e),Wo=null,tc=0,e=Re;for(;e!==null;)I6(e.alternate,e),e=e.return;Re=null}}function al(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,_W(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),A1(),et=e,Re=n=Er(e.current,null),Le=t,Ye=0,Qn=null,Ea=!1,tl=Cu(e,t),y1=!1,nl=bi=x1=xs=Ta=yt=0,Nn=uc=null,_1=!1,t&8&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-qn(i),a=1<<r;t|=e[r],i&=~a}return Mr=t,Bf(),n}function iO(e,t){Ce=null,me.H=nh,t===Gu||t===Gf?(t=x3(),Ye=3):t===b3?(t=x3(),Ye=4):Ye=t===_6?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qn=t,Re===null&&(yt=1,oh(e,fi(t,e.current)))}function rO(){var e=me.H;return me.H=nh,e===null?nh:e}function aO(){var e=me.A;return me.A=tW,e}function C1(){yt=4,Ea||(Le&4194048)!==Le&&gi.current!==null||(tl=!0),!(Ta&134217727)&&!(xs&134217727)||et===null||Aa(et,Le,bi,!1)}function k1(e,t,n){var i=Ve;Ve|=2;var r=rO(),a=aO();(et!==e||Le!==t)&&(ph=null,al(e,t)),t=!1;var s=yt;e:do try{if(Ye!==0&&Re!==null){var o=Re,l=Qn;switch(Ye){case 8:A1(),s=6;break e;case 3:case 2:case 9:case 6:gi.current===null&&(t=!0);var u=Ye;if(Ye=0,Qn=null,sl(e,o,l,u),n&&tl){s=0;break e}break;default:u=Ye,Ye=0,Qn=null,sl(e,o,l,u)}}rW(),s=yt;break}catch(c){iO(e,c)}while(!0);return t&&e.shellSuspendCounter++,Sr=ps=null,Ve=i,me.H=r,me.A=a,Re===null&&(et=null,Le=0,Bf()),s}function rW(){for(;Re!==null;)sO(Re)}function aW(e,t){var n=Ve;Ve|=2;var i=rO(),r=aO();et!==e||Le!==t?(ph=null,hh=tr()+500,al(e,t)):tl=Cu(e,t);e:do try{if(Ye!==0&&Re!==null){t=Re;var a=Qn;t:switch(Ye){case 1:Ye=0,Qn=null,sl(e,t,a,1);break;case 2:case 9:if(v3(a)){Ye=0,Qn=null,oO(t);break}t=function(){Ye!==2&&Ye!==9||et!==e||(Ye=7),sr(e)},a.then(t,t);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:v3(a)?(Ye=0,Qn=null,oO(t)):(Ye=0,Qn=null,sl(e,t,a,7));break;case 5:var s=null;switch(Re.tag){case 26:s=Re.memoizedState;case 5:case 27:var o=Re;if(!s||FO(s)){Ye=0,Qn=null;var l=o.sibling;if(l!==null)Re=l;else{var u=o.return;u!==null?(Re=u,gh(u)):Re=null}break t}}Ye=0,Qn=null,sl(e,t,a,5);break;case 6:Ye=0,Qn=null,sl(e,t,a,6);break;case 8:A1(),yt=6;break e;default:throw Error(q(462))}}sW();break}catch(c){iO(e,c)}while(!0);return Sr=ps=null,me.H=i,me.A=r,Ve=n,Re!==null?0:(et=null,Le=0,Bf(),yt)}function sW(){for(;Re!==null&&!kK();)sO(Re)}function sO(e){var t=M6(e.alternate,e,Mr);e.memoizedProps=e.pendingProps,t===null?gh(e):Re=t}function oO(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=C6(n,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=C6(n,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:Vb(t);default:I6(n,t),t=Re=l3(t,Mr),t=M6(n,t,Mr)}e.memoizedProps=e.pendingProps,t===null?gh(e):Re=t}function sl(e,t,n,i){Sr=ps=null,Vb(t),Wo=null,tc=0;var r=t.return;try{if(KQ(e,r,t,n,Le)){yt=1,oh(e,fi(n,e.current)),Re=null;return}}catch(a){if(r!==null)throw Re=r,a;yt=1,oh(e,fi(n,e.current)),Re=null;return}t.flags&32768?(Fe||i===1?e=!0:tl||Le&536870912?e=!1:(Ea=e=!0,(i===2||i===9||i===3||i===6)&&(i=gi.current,i!==null&&i.tag===13&&(i.flags|=16384))),lO(t,e)):gh(t)}function gh(e){var t=e;do{if(t.flags&32768){lO(t,Ea);return}e=t.return;var n=WQ(t.alternate,t,Mr);if(n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);yt===0&&(yt=5)}function lO(e,t){do{var n=ZQ(e.alternate,e);if(n!==null){n.flags&=32767,Re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=n}while(e!==null);yt=6,Re=null}function uO(e,t,n,i,r,a,s,o,l){e.cancelPendingCommit=null;do bh();while(Jt!==0);if(Ve&6)throw Error(q(327));if(t!==null){if(t===e.current)throw Error(q(177));if(a=t.lanes|t.childLanes,a|=vb,jK(e,n,a,s,o,l),e===et&&(Re=et=null,Le=0),il=t,Sa=e,rl=n,T1=a,w1=r,J6=i,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,cW(Ef,function(){return pO(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,t.subtreeFlags&13878||i){i=me.T,me.T=null,r=He.p,He.p=2,s=Ve,Ve|=4;try{JQ(e,t,n)}finally{Ve=s,He.p=r,me.T=i}}Jt=1,cO(),dO(),fO()}}function cO(){if(Jt===1){Jt=0;var e=Sa,t=il,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=me.T,me.T=null;var i=He.p;He.p=2;var r=Ve;Ve|=4;try{G6(t,e);var a=U1,s=Zk(e.containerInfo),o=a.focusedElem,l=a.selectionRange;if(s!==o&&o&&o.ownerDocument&&Wk(o.ownerDocument.documentElement,o)){if(l!==null&&hb(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 d=o.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),g=o.textContent.length,b=Math.min(l.start,g),_=l.end===void 0?b:Math.min(l.end,g);!h.extend&&b>_&&(s=_,_=b,b=s);var m=Qk(o,b),v=Qk(o,_);if(m&&v&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==v.node||h.focusOffset!==v.offset)){var x=d.createRange();x.setStart(m.node,m.offset),h.removeAllRanges(),b>_?(h.addRange(x),h.extend(v.node,v.offset)):(x.setEnd(v.node,v.offset),h.addRange(x))}}}}for(d=[],h=o;h=h.parentNode;)h.nodeType===1&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<d.length;o++){var T=d[o];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}Oh=!!z1,U1=z1=null}finally{Ve=r,He.p=i,me.T=n}}e.current=t,Jt=2}}function dO(){if(Jt===2){Jt=0;var e=Sa,t=il,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=me.T,me.T=null;var i=He.p;He.p=2;var r=Ve;Ve|=4;try{F6(e,t.alternate,t)}finally{Ve=r,He.p=i,me.T=n}}Jt=3}}function fO(){if(Jt===4||Jt===3){Jt=0,OK();var e=Sa,t=il,n=rl,i=J6;t.subtreeFlags&10256||t.flags&10256?Jt=5:(Jt=0,il=Sa=null,hO(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(wa=null),Gg(n),t=t.stateNode,Yn&&typeof Yn.onCommitFiberRoot=="function")try{Yn.onCommitFiberRoot(Au,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=me.T,r=He.p,He.p=2,me.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{me.T=t,He.p=r}}rl&3&&bh(),sr(e),r=e.pendingLanes,n&4194090&&r&42?e===S1?cc++:(cc=0,S1=e):cc=0,dc(0)}}function hO(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yu(t)))}function bh(e){return cO(),dO(),fO(),pO()}function pO(){if(Jt!==5)return!1;var e=Sa,t=T1;T1=0;var n=Gg(rl),i=me.T,r=He.p;try{He.p=32>n?32:n,me.T=null,n=w1,w1=null;var a=Sa,s=rl;if(Jt=0,il=Sa=null,rl=0,Ve&6)throw Error(q(331));var o=Ve;if(Ve|=4,W6(a.current),X6(a,a.current,s,n),Ve=o,dc(0,!1),Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(Au,a)}catch{}return!0}finally{He.p=r,me.T=i,hO(e,t)}}function mO(e,t,n){t=fi(n,t),t=i1(e.stateNode,t,2),e=ma(e,t,2),e!==null&&(ku(e,2),sr(e))}function Qe(e,t,n){if(e.tag===3)mO(e,e,n);else for(;t!==null;){if(t.tag===3){mO(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(wa===null||!wa.has(i))){e=fi(n,e),n=y6(2),i=ma(t,n,2),i!==null&&(x6(n,i,t,e),ku(i,2),sr(i));break}}t=t.return}}function O1(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new nW;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)||(y1=!0,r.add(n),e=oW.bind(null,e,t,n),t.then(e,e))}function oW(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,et===e&&(Le&n)===n&&(yt===4||yt===3&&(Le&62914560)===Le&&300>tr()-E1?!(Ve&2)&&al(e,0):x1|=n,nl===Le&&(nl=0)),sr(e)}function gO(e,t){t===0&&(t=fk()),e=Ho(e,t),e!==null&&(ku(e,t),sr(e))}function lW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gO(e,n)}function uW(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),gO(e,n)}function cW(e,t){return Fg(e,t)}var vh=null,ol=null,N1=!1,yh=!1,R1=!1,_s=0;function sr(e){e!==ol&&e.next===null&&(ol===null?vh=ol=e:ol=ol.next=e),yh=!0,N1||(N1=!0,fW())}function dc(e,t){if(!R1&&yh){R1=!0;do for(var n=!1,i=vh;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-qn(42|e)+1)-1,a&=r&~(s&~o),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,xO(i,a))}else a=Le,a=Sf(i,i===et?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),!(a&3)||Cu(i,a)||(n=!0,xO(i,a));i=i.next}while(n);R1=!1}}function dW(){bO()}function bO(){yh=N1=!1;var e=0;_s!==0&&(xW()&&(e=_s),_s=0);for(var t=tr(),n=null,i=vh;i!==null;){var r=i.next,a=vO(i,t);a===0?(i.next=null,n===null?vh=r:n.next=r,r===null&&(ol=n)):(n=i,(e!==0||a&3)&&(yh=!0)),i=r}dc(e)}function vO(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var s=31-qn(a),o=1<<s,l=r[s];l===-1?(!(o&n)||o&i)&&(r[s]=BK(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}if(t=et,n=Le,n=Sf(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Vg(i),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Cu(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Vg(i),Gg(n)){case 2:case 8:n=uk;break;case 32:n=Ef;break;case 268435456:n=ck;break;default:n=Ef}return i=yO.bind(null,e),n=Fg(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Vg(i),e.callbackPriority=2,e.callbackNode=null,2}function yO(e,t){if(Jt!==0&&Jt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bh()&&e.callbackNode!==n)return null;var i=Le;return i=Sf(e,e===et?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(tO(e,i,t),vO(e,tr()),e.callbackNode!=null&&e.callbackNode===n?yO.bind(null,e):null)}function xO(e,t){if(bh())return null;tO(e,t,!0)}function fW(){EW(function(){Ve&6?Fg(lk,dW):bO()})}function D1(){return _s===0&&(_s=dk()),_s}function _O(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Nf(""+e)}function EO(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 hW(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var a=_O((r[An]||null).action),s=i.submitter;s&&(t=(t=s[An]||null)?_O(t.formAction):s.getAttribute("formAction"),t!==null&&(a=t,s=null));var o=new Lf("action","action",null,i,r);e.push({event:o,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(_s!==0){var l=s?EO(r,s):new FormData(r);Zb(n,{pending:!0,data:l,method:r.method,action:a},null,l)}}else typeof a=="function"&&(o.preventDefault(),l=s?EO(r,s):new FormData(r),Zb(n,{pending:!0,data:l,method:r.method,action:a},a,l))},currentTarget:r}]})}}for(var M1=0;M1<bb.length;M1++){var L1=bb[M1],pW=L1.toLowerCase(),mW=L1[0].toUpperCase()+L1.slice(1);Ri(pW,"on"+mW)}Ri(t3,"onAnimationEnd"),Ri(n3,"onAnimationIteration"),Ri(i3,"onAnimationStart"),Ri("dblclick","onDoubleClick"),Ri("focusin","onFocus"),Ri("focusout","onBlur"),Ri(DQ,"onTransitionRun"),Ri(MQ,"onTransitionStart"),Ri(LQ,"onTransitionCancel"),Ri(r3,"onTransitionEnd"),Ro("onMouseEnter",["mouseout","mouseover"]),Ro("onMouseLeave",["mouseout","mouseover"]),Ro("onPointerEnter",["pointerout","pointerover"]),Ro("onPointerLeave",["pointerout","pointerover"]),as("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),as("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),as("onBeforeInput",["compositionend","keypress","textInput","paste"]),as("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fc="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(" "),gW=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fc));function TO(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){sh(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){sh(c)}r.currentTarget=null,a=l}}}}function De(e,t){var n=t[$g];n===void 0&&(n=t[$g]=new Set);var i=e+"__bubble";n.has(i)||(wO(t,e,2,!1),n.add(i))}function I1(e,t,n){var i=0;t&&(i|=4),wO(n,e,i,t)}var xh="_reactListening"+Math.random().toString(36).slice(2);function P1(e){if(!e[xh]){e[xh]=!0,bk.forEach(function(n){n!=="selectionchange"&&(gW.has(n)||I1(n,!1,e),I1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xh]||(t[xh]=!0,I1("selectionchange",!1,t))}}function wO(e,t,n,i){switch(XO(t)){case 2:var r=VW;break;case 8:r=YW;break;default:r=Q1}n=r.bind(null,t,n,e),r=void 0,!rb||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 B1(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=ko(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}Rk(function(){var u=a,c=nb(n),d=[];e:{var f=a3.get(e);if(f!==void 0){var h=Lf,g=e;switch(e){case"keypress":if(Df(n)===0)break e;case"keydown":case"keyup":h=cQ;break;case"focusin":g="focus",h=lb;break;case"focusout":g="blur",h=lb;break;case"beforeblur":case"afterblur":h=lb;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=Lk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=ZK;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=hQ;break;case t3:case n3:case i3:h=tQ;break;case r3:h=mQ;break;case"scroll":case"scrollend":h=QK;break;case"wheel":h=bQ;break;case"copy":case"cut":case"paste":h=iQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Pk;break;case"toggle":case"beforetoggle":h=yQ}var b=(t&4)!==0,_=!b&&(e==="scroll"||e==="scrollend"),m=b?f!==null?f+"Capture":null:f;b=[];for(var v=u,x;v!==null;){var T=v;if(x=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||x===null||m===null||(T=Ru(v,m),T!=null&&b.push(hc(v,T,x))),_)break;v=v.return}0<b.length&&(f=new h(f,g,null,n,c),d.push({event:f,listeners:b}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==tb&&(g=n.relatedTarget||n.fromElement)&&(ko(g)||g[Co]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?ko(g):null,g!==null&&(_=_u(g),b=g.tag,g!==_||b!==5&&b!==27&&b!==6)&&(g=null)):(h=null,g=u),h!==g)){if(b=Lk,T="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(b=Pk,T="onPointerLeave",m="onPointerEnter",v="pointer"),_=h==null?f:Nu(h),x=g==null?f:Nu(g),f=new b(T,v+"leave",h,n,c),f.target=_,f.relatedTarget=x,T=null,ko(c)===u&&(b=new b(m,v+"enter",g,n,c),b.target=x,b.relatedTarget=_,T=b),_=T,h&&g)t:{for(b=h,m=g,v=0,x=b;x;x=ll(x))v++;for(x=0,T=m;T;T=ll(T))x++;for(;0<v-x;)b=ll(b),v--;for(;0<x-v;)m=ll(m),x--;for(;v--;){if(b===m||m!==null&&b===m.alternate)break t;b=ll(b),m=ll(m)}b=null}else b=null;h!==null&&SO(d,f,h,b,!1),g!==null&&_!==null&&SO(d,_,g,b,!0)}}e:{if(f=u?Nu(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=Yk;else if(Fk(f))if(qk)S=OQ;else{S=CQ;var A=AQ}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&eb(u.elementType)&&(S=Yk):S=kQ;if(S&&(S=S(e,u))){Vk(d,S,n,c);break e}A&&A(e,f,u),e==="focusout"&&u&&f.type==="number"&&u.memoizedProps.value!=null&&Jg(f,"number",f.value)}switch(A=u?Nu(u):window,e){case"focusin":(Fk(A)||A.contentEditable==="true")&&(jo=A,pb=u,zu=null);break;case"focusout":zu=pb=jo=null;break;case"mousedown":mb=!0;break;case"contextmenu":case"mouseup":case"dragend":mb=!1,Jk(d,n,c);break;case"selectionchange":if(RQ)break;case"keydown":case"keyup":Jk(d,n,c)}var D;if(cb)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 Bo?Uk(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Bk&&n.locale!=="ko"&&(Bo||L!=="onCompositionStart"?L==="onCompositionEnd"&&Bo&&(D=Dk()):(da=c,ab="value"in da?da.value:da.textContent,Bo=!0)),A=_h(u,L),0<A.length&&(L=new Ik(L,e,null,n,c),d.push({event:L,listeners:A}),D?L.data=D:(D=Hk(n),D!==null&&(L.data=D)))),(D=_Q?EQ(e,n):TQ(e,n))&&(L=_h(u,"onBeforeInput"),0<L.length&&(A=new Ik("onBeforeInput","beforeinput",null,n,c),d.push({event:A,listeners:L}),A.data=D)),hW(d,e,u,n,c)}TO(d,t)})}function hc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _h(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=Ru(e,n),r!=null&&i.unshift(hc(e,r,a)),r=Ru(e,t),r!=null&&i.push(hc(e,r,a))),e.tag===3)return i;e=e.return}return[]}function ll(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function SO(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=Ru(n,a),u!=null&&s.unshift(hc(n,u,l))):r||(u=Ru(n,a),u!=null&&s.push(hc(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var bW=/\r\n?/g,vW=/\u0000|\uFFFD/g;function AO(e){return(typeof e=="string"?e:""+e).replace(bW,`
375
+ `).replace(vW,"")}function CO(e,t){return t=AO(t),AO(e)===t}function Eh(){}function Ge(e,t,n,i,r,a){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Lo(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Lo(e,""+i);break;case"className":Cf(e,"class",i);break;case"tabIndex":Cf(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Cf(e,n,i);break;case"style":Ok(e,i,a);break;case"data":if(t!=="object"){Cf(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=Nf(""+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"&&Ge(e,t,"name",r.name,r,null),Ge(e,t,"formEncType",r.formEncType,r,null),Ge(e,t,"formMethod",r.formMethod,r,null),Ge(e,t,"formTarget",r.formTarget,r,null)):(Ge(e,t,"encType",r.encType,r,null),Ge(e,t,"method",r.method,r,null),Ge(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Nf(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Eh);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("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=Nf(""+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":De("beforetoggle",e),De("toggle",e),Af(e,"popover",i);break;case"xlinkActuate":xr(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":xr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":xr(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":xr(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":xr(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":xr(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":xr(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":xr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":xr(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Af(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=XK.get(n)||n,Af(e,n,i))}}function j1(e,t,n,i,r,a){switch(n){case"style":Ok(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"?Lo(e,i):(typeof i=="number"||typeof i=="bigint")&&Lo(e,""+i);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Eh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vk.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[An]||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,""):Af(e,n,i)}}}function en(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("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:Ge(e,t,a,s,n,null)}}r&&Ge(e,t,"srcSet",n.srcSet,n,null),i&&Ge(e,t,"src",n.src,n,null);return;case"input":De("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:Ge(e,t,i,c,n,null)}}Sk(e,a,o,l,u,s,r,!1),kf(e);return;case"select":De("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:Ge(e,t,r,o,n,null)}t=a,n=s,e.multiple=!!i,t!=null?Mo(e,!!i,t,!1):n!=null&&Mo(e,!!i,n,!0);return;case"textarea":De("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:Ge(e,t,s,o,n,null)}Ck(e,i,r,a),kf(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:Ge(e,t,l,i,n,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(i=0;i<fc.length;i++)De(fc[i],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("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:Ge(e,t,u,i,n,null)}return;default:if(eb(t)){for(c in n)n.hasOwnProperty(c)&&(i=n[c],i!==void 0&&j1(e,t,c,i,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(i=n[o],i!=null&&Ge(e,t,o,i,n,null))}function yW(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 d=n[h];if(n.hasOwnProperty(h)&&d!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=d;default:i.hasOwnProperty(h)||Ge(e,t,h,null,i,d)}}for(var f in i){var h=i[f];if(d=n[f],i.hasOwnProperty(f)&&(h!=null||d!=null))switch(f){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!==d&&Ge(e,t,f,h,i,d)}}Zg(e,s,o,l,u,c,a,r);return;case"select":h=s=o=f=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)||Ge(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":f=a;break;case"defaultValue":o=a;break;case"multiple":s=a;default:a!==l&&Ge(e,t,r,a,i,l)}t=o,n=s,i=h,f!=null?Mo(e,!!n,f,!1):!!i!=!!n&&(t!=null?Mo(e,!!n,t,!0):Mo(e,!!n,n?[]:"",!1));return;case"textarea":h=f=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:Ge(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":f=r;break;case"defaultValue":h=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(q(91));break;default:r!==a&&Ge(e,t,s,r,i,a)}Ak(e,f,h);return;case"option":for(var g in n)if(f=n[g],n.hasOwnProperty(g)&&f!=null&&!i.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Ge(e,t,g,null,i,f)}for(l in i)if(f=i[l],h=n[l],i.hasOwnProperty(l)&&f!==h&&(f!=null||h!=null))switch(l){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ge(e,t,l,f,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)f=n[b],n.hasOwnProperty(b)&&f!=null&&!i.hasOwnProperty(b)&&Ge(e,t,b,null,i,f);for(u in i)if(f=i[u],h=n[u],i.hasOwnProperty(u)&&f!==h&&(f!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(q(137,t));break;default:Ge(e,t,u,f,i,h)}return;default:if(eb(t)){for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!==void 0&&!i.hasOwnProperty(_)&&j1(e,t,_,void 0,i,f);for(c in i)f=i[c],h=n[c],!i.hasOwnProperty(c)||f===h||f===void 0&&h===void 0||j1(e,t,c,f,i,h);return}}for(var m in n)f=n[m],n.hasOwnProperty(m)&&f!=null&&!i.hasOwnProperty(m)&&Ge(e,t,m,null,i,f);for(d in i)f=i[d],h=n[d],!i.hasOwnProperty(d)||f===h||f==null&&h==null||Ge(e,t,d,f,i,h)}var z1=null,U1=null;function Th(e){return e.nodeType===9?e:e.ownerDocument}function kO(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 OO(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 H1(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 F1=null;function xW(){var e=window.event;return e&&e.type==="popstate"?e===F1?!1:(F1=e,!0):(F1=null,!1)}var NO=typeof setTimeout=="function"?setTimeout:void 0,_W=typeof clearTimeout=="function"?clearTimeout:void 0,RO=typeof Promise=="function"?Promise:void 0,EW=typeof queueMicrotask=="function"?queueMicrotask:typeof RO<"u"?function(e){return RO.resolve(null).then(e).catch(TW)}:NO;function TW(e){setTimeout(function(){throw e})}function Ca(e){return e==="head"}function DO(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&&pc(s.documentElement),n&2&&pc(s.body),n&4)for(n=s.head,pc(n),s=n.firstChild;s;){var o=s.nextSibling,l=s.nodeName;s[Ou]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=o}}if(r===0){e.removeChild(a),Ec(t);return}r--}else n==="$"||n==="$?"||n==="$!"?r++:i=n.charCodeAt(0)-48;else i=0;n=a}while(n);Ec(t)}function V1(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":V1(n),Xg(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function wW(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[Ou])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=Mi(e.nextSibling),e===null)break}return null}function SW(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Mi(e.nextSibling),e===null))return null;return e}function Y1(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function AW(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 Mi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var q1=null;function MO(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 LO(e,t,n){switch(t=Th(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 pc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xg(e)}var vi=new Map,IO=new Set;function wh(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Lr=He.d;He.d={f:CW,r:kW,D:OW,C:NW,L:RW,m:DW,X:LW,S:MW,M:IW};function CW(){var e=Lr.f(),t=mh();return e||t}function kW(e){var t=Oo(e);t!==null&&t.tag===5&&t.type==="form"?t6(t):Lr.r(e)}var ul=typeof document>"u"?null:document;function PO(e,t,n){var i=ul;if(i&&typeof t=="string"&&t){var r=di(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),IO.has(r)||(IO.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),en(t,"link",e),Yt(t),i.head.appendChild(t)))}}function OW(e){Lr.D(e),PO("dns-prefetch",e,null)}function NW(e,t){Lr.C(e,t),PO("preconnect",e,t)}function RW(e,t,n){Lr.L(e,t,n);var i=ul;if(i&&e&&t){var r='link[rel="preload"][as="'+di(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+di(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+di(n.imageSizes)+'"]')):r+='[href="'+di(e)+'"]';var a=r;switch(t){case"style":a=cl(e);break;case"script":a=dl(e)}vi.has(a)||(e=st({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),vi.set(a,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(mc(a))||t==="script"&&i.querySelector(gc(a))||(t=i.createElement("link"),en(t,"link",e),Yt(t),i.head.appendChild(t)))}}function DW(e,t){Lr.m(e,t);var n=ul;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+di(i)+'"][href="'+di(e)+'"]',a=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=dl(e)}if(!vi.has(a)&&(e=st({rel:"modulepreload",href:e},t),vi.set(a,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gc(a)))return}i=n.createElement("link"),en(i,"link",e),Yt(i),n.head.appendChild(i)}}}function MW(e,t,n){Lr.S(e,t,n);var i=ul;if(i&&e){var r=No(i).hoistableStyles,a=cl(e);t=t||"default";var s=r.get(a);if(!s){var o={loading:0,preload:null};if(s=i.querySelector(mc(a)))o.loading=5;else{e=st({rel:"stylesheet",href:e,"data-precedence":t},n),(n=vi.get(a))&&G1(e,n);var l=s=i.createElement("link");Yt(l),en(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,Sh(s,t,i)}s={type:"stylesheet",instance:s,count:1,state:o},r.set(a,s)}}}function LW(e,t){Lr.X(e,t);var n=ul;if(n&&e){var i=No(n).hoistableScripts,r=dl(e),a=i.get(r);a||(a=n.querySelector(gc(r)),a||(e=st({src:e,async:!0},t),(t=vi.get(r))&&$1(e,t),a=n.createElement("script"),Yt(a),en(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(r,a))}}function IW(e,t){Lr.M(e,t);var n=ul;if(n&&e){var i=No(n).hoistableScripts,r=dl(e),a=i.get(r);a||(a=n.querySelector(gc(r)),a||(e=st({src:e,async:!0,type:"module"},t),(t=vi.get(r))&&$1(e,t),a=n.createElement("script"),Yt(a),en(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(r,a))}}function BO(e,t,n,i){var r=(r=la.current)?wh(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=cl(n.href),n=No(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=cl(n.href);var a=No(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(mc(e)))&&!a._p&&(s.instance=a,s.state.loading=5),vi.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},vi.set(e,n),a||PW(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=dl(n),n=No(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 cl(e){return'href="'+di(e)+'"'}function mc(e){return'link[rel="stylesheet"]['+e+"]"}function jO(e){return st({},e,{"data-precedence":e.precedence,precedence:null})}function PW(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}),en(t,"link",n),Yt(t),e.head.appendChild(t))}function dl(e){return'[src="'+di(e)+'"]'}function gc(e){return"script[async]"+e}function zO(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+di(n.href)+'"]');if(i)return t.instance=i,Yt(i),i;var r=st({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Yt(i),en(i,"style",r),Sh(i,n.precedence,e),t.instance=i;case"stylesheet":r=cl(n.href);var a=e.querySelector(mc(r));if(a)return t.state.loading|=4,t.instance=a,Yt(a),a;i=jO(n),(r=vi.get(r))&&G1(i,r),a=(e.ownerDocument||e).createElement("link"),Yt(a);var s=a;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(a,"link",i),t.state.loading|=4,Sh(a,n.precedence,e),t.instance=a;case"script":return a=dl(n.src),(r=e.querySelector(gc(a)))?(t.instance=r,Yt(r),r):(i=n,(r=vi.get(a))&&(i=st({},n),$1(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),Yt(r),en(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,Sh(i,n.precedence,e));return t.instance}function Sh(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 G1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ah=null;function UO(e,t,n){if(Ah===null){var i=new Map,r=Ah=new Map;r.set(n,i)}else r=Ah,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[Ou]||a[un]||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 HO(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function BW(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 FO(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var bc=null;function jW(){}function zW(e,t,n){if(bc===null)throw Error(q(475));var i=bc;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=cl(n.href),a=e.querySelector(mc(r));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=Ch.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=a,Yt(a);return}a=e.ownerDocument||e,n=jO(n),(r=vi.get(r))&&G1(n,r),a=a.createElement("link"),Yt(a);var s=a;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(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=Ch.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function UW(){if(bc===null)throw Error(q(475));var e=bc;return e.stylesheets&&e.count===0&&X1(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&X1(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 Ch(){if(this.count--,this.count===0){if(this.stylesheets)X1(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var kh=null;function X1(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,kh=new Map,t.forEach(HW,e),kh=null,Ch.call(e))}function HW(e,t){if(!(t.state.loading&4)){var n=kh.get(e);if(n)var i=n.get(null);else{n=new Map,kh.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=Ch.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 vc={$$typeof:yr,Provider:null,Consumer:null,_currentValue:is,_currentValue2:is,_threadCount:0};function FW(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=Yg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yg(0),this.hiddenUpdates=Yg(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 VO(e,t,n,i,r,a,s,o,l,u,c,d){return e=new FW(e,t,n,s,o,l,u,d),t=1,a===!0&&(t|=24),a=$n(3,null,null,t),e.current=a,a.stateNode=e,t=Ob(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:i,isDehydrated:n,cache:t},Mb(a),e}function YO(e){return e?(e=Fo,e):Fo}function qO(e,t,n,i,r,a){r=YO(r),i.context===null?i.context=r:i.pendingContext=r,i=pa(t),i.payload={element:n},a=a===void 0?null:a,a!==null&&(i.callback=a),n=ma(e,i,t),n!==null&&(Zn(n,e,t),Xu(n,e,t))}function GO(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function K1(e,t){GO(e,t),(e=e.alternate)&&GO(e,t)}function $O(e){if(e.tag===13){var t=Ho(e,67108864);t!==null&&Zn(t,e,67108864),K1(e,67108864)}}var Oh=!0;function VW(e,t,n,i){var r=me.T;me.T=null;var a=He.p;try{He.p=2,Q1(e,t,n,i)}finally{He.p=a,me.T=r}}function YW(e,t,n,i){var r=me.T;me.T=null;var a=He.p;try{He.p=8,Q1(e,t,n,i)}finally{He.p=a,me.T=r}}function Q1(e,t,n,i){if(Oh){var r=W1(i);if(r===null)B1(e,t,i,Nh,n),KO(e,i);else if(GW(r,e,t,n,i))i.stopPropagation();else if(KO(e,i),t&4&&-1<qW.indexOf(e)){for(;r!==null;){var a=Oo(r);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var s=rs(a.pendingLanes);if(s!==0){var o=a;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-qn(s);o.entanglements[1]|=l,s&=~l}sr(a),!(Ve&6)&&(hh=tr()+500,dc(0))}}break;case 13:o=Ho(a,2),o!==null&&Zn(o,a,2),mh(),K1(a,2)}if(a=W1(i),a===null&&B1(e,t,i,Nh,n),a===r)break;r=a}r!==null&&i.stopPropagation()}else B1(e,t,i,null,n)}}function W1(e){return e=nb(e),Z1(e)}var Nh=null;function Z1(e){if(Nh=null,e=ko(e),e!==null){var t=_u(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=nk(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 Nh=e,null}function XO(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(NK()){case lk:return 2;case uk:return 8;case Ef:case RK:return 32;case ck:return 268435456;default:return 32}default:return 32}}var J1=!1,ka=null,Oa=null,Na=null,yc=new Map,xc=new Map,Ra=[],qW="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 KO(e,t){switch(e){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":Oa=null;break;case"mouseover":case"mouseout":Na=null;break;case"pointerover":case"pointerout":yc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xc.delete(t.pointerId)}}function _c(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=Oo(t),t!==null&&$O(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function GW(e,t,n,i,r){switch(t){case"focusin":return ka=_c(ka,e,t,n,i,r),!0;case"dragenter":return Oa=_c(Oa,e,t,n,i,r),!0;case"mouseover":return Na=_c(Na,e,t,n,i,r),!0;case"pointerover":var a=r.pointerId;return yc.set(a,_c(yc.get(a)||null,e,t,n,i,r)),!0;case"gotpointercapture":return a=r.pointerId,xc.set(a,_c(xc.get(a)||null,e,t,n,i,r)),!0}return!1}function QO(e){var t=ko(e.target);if(t!==null){var n=_u(t);if(n!==null){if(t=n.tag,t===13){if(t=nk(n),t!==null){e.blockedOn=t,zK(e.priority,function(){if(n.tag===13){var i=Wn();i=qg(i);var r=Ho(n,i);r!==null&&Zn(r,n,i),K1(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 Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=W1(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);tb=i,n.target.dispatchEvent(i),tb=null}else return t=Oo(n),t!==null&&$O(t),e.blockedOn=n,!1;t.shift()}return!0}function WO(e,t,n){Rh(e)&&n.delete(t)}function $W(){J1=!1,ka!==null&&Rh(ka)&&(ka=null),Oa!==null&&Rh(Oa)&&(Oa=null),Na!==null&&Rh(Na)&&(Na=null),yc.forEach(WO),xc.forEach(WO)}function Dh(e,t){e.blockedOn===t&&(e.blockedOn=null,J1||(J1=!0,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,$W)))}var Mh=null;function ZO(e){Mh!==e&&(Mh=e,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,function(){Mh===e&&(Mh=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(Z1(i||n)===null)continue;break}var a=Oo(n);a!==null&&(e.splice(t,3),t-=3,Zb(a,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function Ec(e){function t(l){return Dh(l,e)}ka!==null&&Dh(ka,e),Oa!==null&&Dh(Oa,e),Na!==null&&Dh(Na,e),yc.forEach(t),xc.forEach(t);for(var n=0;n<Ra.length;n++){var i=Ra[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Ra.length&&(n=Ra[0],n.blockedOn===null);)QO(n),n.blockedOn===null&&Ra.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[An]||null;if(typeof a=="function")s||ZO(n);else if(s){var o=null;if(a&&a.hasAttribute("formAction")){if(r=a,s=a[An]||null)o=s.formAction;else if(Z1(r)!==null)continue}else o=s.action;typeof o=="function"?n[i+1]=o:(n.splice(i,3),i-=3),ZO(n)}}}function ev(e){this._internalRoot=e}Lh.prototype.render=ev.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));var n=t.current,i=Wn();qO(n,i,e,t,null,null)},Lh.prototype.unmount=ev.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qO(e.current,2,null,e,null,null),mh(),t[Co]=null}};function Lh(e){this._internalRoot=e}Lh.prototype.unstable_scheduleHydration=function(e){if(e){var t=mk();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ra.length&&t!==0&&t<Ra[n].priority;n++);Ra.splice(n,0,e),n===0&&QO(e)}};var JO=ek.version;if(JO!=="19.1.1")throw Error(q(527,JO,"19.1.1"));He.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=TK(t),e=e!==null?rk(e):null,e=e===null?null:e.stateNode,e};var XW={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:me,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ih=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ih.isDisabled&&Ih.supportsFiber)try{Au=Ih.inject(XW),Yn=Ih}catch{}}bf.createRoot=function(e,t){if(!tk(e))throw Error(q(299));var n=!1,i="",r=m6,a=g6,s=b6,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=VO(e,1,!1,null,null,n,i,r,a,s,o,null),e[Co]=t.current,P1(e),new ev(t)},bf.hydrateRoot=function(e,t,n){if(!tk(e))throw Error(q(299));var i=!1,r="",a=m6,s=g6,o=b6,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=VO(e,1,!0,t,n??null,i,r,a,s,o,l,u),t.context=YO(null),n=t.current,i=Wn(),i=qg(i),r=pa(i),r.callback=null,ma(n,r,i),n=i,t.current.lanes=n,ku(t,n),sr(t),e[Co]=t.current,P1(e),new Lh(t)},bf.version="19.1.1";function eN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eN)}catch(e){console.error(e)}}eN(),WC.exports=bf;var KW=WC.exports;const QW="4.0.52",WW="opencx-root";function ZW(e){JW(WW,y.jsx(QC,{options:e}))}window.initOpenScript=ZW,window.openCXWidgetVersion=QW;function JW(e,t){let n=document.getElementById(e);return n||(n=document.createElement("div"),n.id=e,document.body.appendChild(n)),KW.createRoot(n).render(t)}})();
376
376
  //# sourceMappingURL=script.js.map