var WO=Object.defineProperty;var s4=e=>{throw TypeError(e)};var YO=(e,t,r)=>t in e?WO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Te=(e,t,r)=>YO(e,typeof t!="symbol"?t+"":t,r),cb=(e,t,r)=>t.has(e)||s4("Cannot "+r);var ve=(e,t,r)=>(cb(e,t,"read from private field"),r?r.call(e):t.get(e)),er=(e,t,r)=>t.has(e)?s4("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),wt=(e,t,r,n)=>(cb(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Sn=(e,t,r)=>(cb(e,t,"access private method"),r);var _m=(e,t,r,n)=>({set _(s){wt(e,t,s,r)},get _(){return ve(e,t,n)}});function QO(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in e)){const o=Object.getOwnPropertyDescriptor(n,s);o&&Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function oE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ub={exports:{}},Uf={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var i4;function XO(){if(i4)return Uf;i4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,s,o){var l=null;if(o!==void 0&&(l=""+o),s.key!==void 0&&(l=""+s.key),"key"in s){o={};for(var u in s)u!=="key"&&(o[u]=s[u])}else o=s;return s=o.ref,{$$typeof:e,type:n,key:l,ref:s!==void 0?s:null,props:o}}return Uf.Fragment=t,Uf.jsx=r,Uf.jsxs=r,Uf}var o4;function JO(){return o4||(o4=1,ub.exports=XO()),ub.exports}var B=JO(),db={exports:{}},Et={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var l4;function e9(){if(l4)return Et;l4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;function b(F){return F===null||typeof F!="object"?null:(F=m&&F[m]||F["@@iterator"],typeof F=="function"?F:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function $(F,J,fe){this.props=F,this.context=J,this.refs=C,this.updater=fe||S}$.prototype.isReactComponent={},$.prototype.setState=function(F,J){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,J,"setState")},$.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function _(){}_.prototype=$.prototype;function M(F,J,fe){this.props=F,this.context=J,this.refs=C,this.updater=fe||S}var T=M.prototype=new _;T.constructor=M,x(T,$.prototype),T.isPureReactComponent=!0;var R=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},j=Object.prototype.hasOwnProperty;function O(F,J,fe,ce,Ce,Se){return fe=Se.ref,{$$typeof:e,type:F,key:J,ref:fe!==void 0?fe:null,props:Se}}function N(F,J){return O(F.type,J,void 0,void 0,void 0,F.props)}function z(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function k(F){var J={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(fe){return J[fe]})}var H=/\/+/g;function q(F,J){return typeof F=="object"&&F!==null&&F.key!=null?k(""+F.key):J.toString(36)}function V(){}function W(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(V,V):(F.status="pending",F.then(function(J){F.status==="pending"&&(F.status="fulfilled",F.value=J)},function(J){F.status==="pending"&&(F.status="rejected",F.reason=J)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function ae(F,J,fe,ce,Ce){var Se=typeof F;(Se==="undefined"||Se==="boolean")&&(F=null);var me=!1;if(F===null)me=!0;else switch(Se){case"bigint":case"string":case"number":me=!0;break;case"object":switch(F.$$typeof){case e:case t:me=!0;break;case p:return me=F._init,ae(me(F._payload),J,fe,ce,Ce)}}if(me)return Ce=Ce(F),me=ce===""?"."+q(F,0):ce,R(Ce)?(fe="",me!=null&&(fe=me.replace(H,"$&/")+"/"),ae(Ce,J,fe,"",function(Pe){return Pe})):Ce!=null&&(z(Ce)&&(Ce=N(Ce,fe+(Ce.key==null||F&&F.key===Ce.key?"":(""+Ce.key).replace(H,"$&/")+"/")+me)),J.push(Ce)),1;me=0;var He=ce===""?".":ce+":";if(R(F))for(var Oe=0;Oe<F.length;Oe++)ce=F[Oe],Se=He+q(ce,Oe),me+=ae(ce,J,fe,Se,Ce);else if(Oe=b(F),typeof Oe=="function")for(F=Oe.call(F),Oe=0;!(ce=F.next()).done;)ce=ce.value,Se=He+q(ce,Oe++),me+=ae(ce,J,fe,Se,Ce);else if(Se==="object"){if(typeof F.then=="function")return ae(W(F),J,fe,ce,Ce);throw J=String(F),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return me}function Z(F,J,fe){if(F==null)return F;var ce=[],Ce=0;return ae(F,ce,"","",function(Se){return J.call(fe,Se,Ce++)}),ce}function ne(F){if(F._status===-1){var J=F._result;J=J(),J.then(function(fe){(F._status===0||F._status===-1)&&(F._status=1,F._result=fe)},function(fe){(F._status===0||F._status===-1)&&(F._status=2,F._result=fe)}),F._status===-1&&(F._status=0,F._result=J)}if(F._status===1)return F._result.default;throw F._result}var ee=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof F=="object"&&F!==null&&typeof F.message=="string"?String(F.message):String(F),error:F});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",F);return}console.error(F)};function re(){}return Et.Children={map:Z,forEach:function(F,J,fe){Z(F,function(){J.apply(this,arguments)},fe)},count:function(F){var J=0;return Z(F,function(){J++}),J},toArray:function(F){return Z(F,function(J){return J})||[]},only:function(F){if(!z(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},Et.Component=$,Et.Fragment=r,Et.Profiler=s,Et.PureComponent=M,Et.StrictMode=n,Et.Suspense=d,Et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Et.__COMPILER_RUNTIME={__proto__:null,c:function(F){return L.H.useMemoCache(F)}},Et.cache=function(F){return function(){return F.apply(null,arguments)}},Et.cloneElement=function(F,J,fe){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var ce=x({},F.props),Ce=F.key,Se=void 0;if(J!=null)for(me in J.ref!==void 0&&(Se=void 0),J.key!==void 0&&(Ce=""+J.key),J)!j.call(J,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&J.ref===void 0||(ce[me]=J[me]);var me=arguments.length-2;if(me===1)ce.children=fe;else if(1<me){for(var He=Array(me),Oe=0;Oe<me;Oe++)He[Oe]=arguments[Oe+2];ce.children=He}return O(F.type,Ce,void 0,void 0,Se,ce)},Et.createContext=function(F){return F={$$typeof:l,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:o,_context:F},F},Et.createElement=function(F,J,fe){var ce,Ce={},Se=null;if(J!=null)for(ce in J.key!==void 0&&(Se=""+J.key),J)j.call(J,ce)&&ce!=="key"&&ce!=="__self"&&ce!=="__source"&&(Ce[ce]=J[ce]);var me=arguments.length-2;if(me===1)Ce.children=fe;else if(1<me){for(var He=Array(me),Oe=0;Oe<me;Oe++)He[Oe]=arguments[Oe+2];Ce.children=He}if(F&&F.defaultProps)for(ce in me=F.defaultProps,me)Ce[ce]===void 0&&(Ce[ce]=me[ce]);return O(F,Se,void 0,void 0,null,Ce)},Et.createRef=function(){return{current:null}},Et.forwardRef=function(F){return{$$typeof:u,render:F}},Et.isValidElement=z,Et.lazy=function(F){return{$$typeof:p,_payload:{_status:-1,_result:F},_init:ne}},Et.memo=function(F,J){return{$$typeof:h,type:F,compare:J===void 0?null:J}},Et.startTransition=function(F){var J=L.T,fe={};L.T=fe;try{var ce=F(),Ce=L.S;Ce!==null&&Ce(fe,ce),typeof ce=="object"&&ce!==null&&typeof ce.then=="function"&&ce.then(re,ee)}catch(Se){ee(Se)}finally{L.T=J}},Et.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Et.use=function(F){return L.H.use(F)},Et.useActionState=function(F,J,fe){return L.H.useActionState(F,J,fe)},Et.useCallback=function(F,J){return L.H.useCallback(F,J)},Et.useContext=function(F){return L.H.useContext(F)},Et.useDebugValue=function(){},Et.useDeferredValue=function(F,J){return L.H.useDeferredValue(F,J)},Et.useEffect=function(F,J,fe){var ce=L.H;if(typeof fe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ce.useEffect(F,J)},Et.useId=function(){return L.H.useId()},Et.useImperativeHandle=function(F,J,fe){return L.H.useImperativeHandle(F,J,fe)},Et.useInsertionEffect=function(F,J){return L.H.useInsertionEffect(F,J)},Et.useLayoutEffect=function(F,J){return L.H.useLayoutEffect(F,J)},Et.useMemo=function(F,J){return L.H.useMemo(F,J)},Et.useOptimistic=function(F,J){return L.H.useOptimistic(F,J)},Et.useReducer=function(F,J,fe){return L.H.useReducer(F,J,fe)},Et.useRef=function(F){return L.H.useRef(F)},Et.useState=function(F){return L.H.useState(F)},Et.useSyncExternalStore=function(F,J,fe){return L.H.useSyncExternalStore(F,J,fe)},Et.useTransition=function(){return L.H.useTransition()},Et.version="19.1.0",Et}var c4;function Bh(){return c4||(c4=1,db.exports=e9()),db.exports}var P=Bh();const kn=oE(P),ug=QO({__proto__:null,default:kn},[P]);var fb={exports:{}},Hf={},hb={exports:{}},pb={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var u4;function t9(){return u4||(u4=1,function(e){function t(Z,ne){var ee=Z.length;Z.push(ne);e:for(;0<ee;){var re=ee-1>>>1,F=Z[re];if(0<s(F,ne))Z[re]=ne,Z[ee]=F,ee=re;else break e}}function r(Z){return Z.length===0?null:Z[0]}function n(Z){if(Z.length===0)return null;var ne=Z[0],ee=Z.pop();if(ee!==ne){Z[0]=ee;e:for(var re=0,F=Z.length,J=F>>>1;re<J;){var fe=2*(re+1)-1,ce=Z[fe],Ce=fe+1,Se=Z[Ce];if(0>s(ce,ee))Ce<F&&0>s(Se,ce)?(Z[re]=Se,Z[Ce]=ee,re=Ce):(Z[re]=ce,Z[fe]=ee,re=fe);else if(Ce<F&&0>s(Se,ee))Z[re]=Se,Z[Ce]=ee,re=Ce;else break e}}return ne}function s(Z,ne){var ee=Z.sortIndex-ne.sortIndex;return ee!==0?ee:Z.id-ne.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],h=[],p=1,m=null,b=3,S=!1,x=!1,C=!1,$=!1,_=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function R(Z){for(var ne=r(h);ne!==null;){if(ne.callback===null)n(h);else if(ne.startTime<=Z)n(h),ne.sortIndex=ne.expirationTime,t(d,ne);else break;ne=r(h)}}function L(Z){if(C=!1,R(Z),!x)if(r(d)!==null)x=!0,j||(j=!0,q());else{var ne=r(h);ne!==null&&ae(L,ne.startTime-Z)}}var j=!1,O=-1,N=5,z=-1;function k(){return $?!0:!(e.unstable_now()-z<N)}function H(){if($=!1,j){var Z=e.unstable_now();z=Z;var ne=!0;try{e:{x=!1,C&&(C=!1,M(O),O=-1),S=!0;var ee=b;try{t:{for(R(Z),m=r(d);m!==null&&!(m.expirationTime>Z&&k());){var re=m.callback;if(typeof re=="function"){m.callback=null,b=m.priorityLevel;var F=re(m.expirationTime<=Z);if(Z=e.unstable_now(),typeof F=="function"){m.callback=F,R(Z),ne=!0;break t}m===r(d)&&n(d),R(Z)}else n(d);m=r(d)}if(m!==null)ne=!0;else{var J=r(h);J!==null&&ae(L,J.startTime-Z),ne=!1}}break e}finally{m=null,b=ee,S=!1}ne=void 0}}finally{ne?q():j=!1}}}var q;if(typeof T=="function")q=function(){T(H)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,W=V.port2;V.port1.onmessage=H,q=function(){W.postMessage(null)}}else q=function(){_(H,0)};function ae(Z,ne){O=_(function(){Z(e.unstable_now())},ne)}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(Z){Z.callback=null},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(Z){switch(b){case 1:case 2:case 3:var ne=3;break;default:ne=b}var ee=b;b=ne;try{return Z()}finally{b=ee}},e.unstable_requestPaint=function(){$=!0},e.unstable_runWithPriority=function(Z,ne){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var ee=b;b=Z;try{return ne()}finally{b=ee}},e.unstable_scheduleCallback=function(Z,ne,ee){var re=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?re+ee:re):ee=re,Z){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=ee+F,Z={id:p++,callback:ne,priorityLevel:Z,startTime:ee,expirationTime:F,sortIndex:-1},ee>re?(Z.sortIndex=ee,t(h,Z),r(d)===null&&Z===r(h)&&(C?(M(O),O=-1):C=!0,ae(L,ee-re))):(Z.sortIndex=F,t(d,Z),x||S||(x=!0,j||(j=!0,q()))),Z},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(Z){var ne=b;return function(){var ee=b;b=ne;try{return Z.apply(this,arguments)}finally{b=ee}}}}(pb)),pb}var d4;function r9(){return d4||(d4=1,hb.exports=t9()),hb.exports}var mb={exports:{}},Xn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var f4;function n9(){if(f4)return Xn;f4=1;var e=Bh();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(d,h,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:m==null?null:""+m,children:d,containerInfo:h,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Xn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Xn.createPortal=function(d,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(d,h,null,p)},Xn.flushSync=function(d){var h=l.T,p=n.p;try{if(l.T=null,n.p=2,d)return d()}finally{l.T=h,n.p=p,n.d.f()}},Xn.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,n.d.C(d,h))},Xn.prefetchDNS=function(d){typeof d=="string"&&n.d.D(d)},Xn.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var p=h.as,m=u(p,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?n.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:m,integrity:b,fetchPriority:S}):p==="script"&&n.d.X(d,{crossOrigin:m,integrity:b,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Xn.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=u(h.as,h.crossOrigin);n.d.M(d,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&n.d.M(d)},Xn.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,m=u(p,h.crossOrigin);n.d.L(d,p,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Xn.preloadModule=function(d,h){if(typeof d=="string")if(h){var p=u(h.as,h.crossOrigin);n.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else n.d.m(d)},Xn.requestFormReset=function(d){n.d.r(d)},Xn.unstable_batchedUpdates=function(d,h){return d(h)},Xn.useFormState=function(d,h,p){return l.H.useFormState(d,h,p)},Xn.useFormStatus=function(){return l.H.useHostTransitionStatus()},Xn.version="19.1.0",Xn}var h4;function lE(){if(h4)return mb.exports;h4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),mb.exports=n9(),mb.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var p4;function a9(){if(p4)return Hf;p4=1;var e=r9(),t=Bh(),r=lE();function n(a){var i="https://react.dev/errors/"+a;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)i+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function o(a){var i=a,c=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(c=i.return),a=i.return;while(a)}return i.tag===3?c:null}function l(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function u(a){if(o(a)!==a)throw Error(n(188))}function d(a){var i=a.alternate;if(!i){if(i=o(a),i===null)throw Error(n(188));return i!==a?null:a}for(var c=a,f=i;;){var y=c.return;if(y===null)break;var v=y.alternate;if(v===null){if(f=y.return,f!==null){c=f;continue}break}if(y.child===v.child){for(v=y.child;v;){if(v===c)return u(y),a;if(v===f)return u(y),i;v=v.sibling}throw Error(n(188))}if(c.return!==f.return)c=y,f=v;else{for(var A=!1,D=y.child;D;){if(D===c){A=!0,c=y,f=v;break}if(D===f){A=!0,f=y,c=v;break}D=D.sibling}if(!A){for(D=v.child;D;){if(D===c){A=!0,c=v,f=y;break}if(D===f){A=!0,f=v,c=y;break}D=D.sibling}if(!A)throw Error(n(189))}}if(c.alternate!==f)throw Error(n(190))}if(c.tag!==3)throw Error(n(188));return c.stateNode.current===c?a:i}function h(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=h(a),i!==null)return i;a=a.sibling}return null}var p=Object.assign,m=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),M=Symbol.for("react.consumer"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function q(a){return a===null||typeof a!="object"?null:(a=H&&a[H]||a["@@iterator"],typeof a=="function"?a:null)}var V=Symbol.for("react.client.reference");function W(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===V?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case x:return"Fragment";case $:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case j:return"SuspenseList";case z:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case S:return"Portal";case T:return(a.displayName||"Context")+".Provider";case M:return(a._context.displayName||"Context")+".Consumer";case R:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case O:return i=a.displayName||null,i!==null?i:W(a.type)||"Memo";case N:i=a._payload,a=a._init;try{return W(a(i))}catch{}}return null}var ae=Array.isArray,Z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},re=[],F=-1;function J(a){return{current:a}}function fe(a){0>F||(a.current=re[F],re[F]=null,F--)}function ce(a,i){F++,re[F]=a.current,a.current=i}var Ce=J(null),Se=J(null),me=J(null),He=J(null);function Oe(a,i){switch(ce(me,i),ce(Se,a),ce(Ce,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?N6(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=N6(i),a=L6(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}fe(Ce),ce(Ce,a)}function Pe(){fe(Ce),fe(Se),fe(me)}function Ne(a){a.memoizedState!==null&&ce(He,a);var i=Ce.current,c=L6(i,a.type);i!==c&&(ce(Se,a),ce(Ce,c))}function qe(a){Se.current===a&&(fe(Ce),fe(Se)),He.current===a&&(fe(He),If._currentValue=ee)}var Ve=Object.prototype.hasOwnProperty,ht=e.unstable_scheduleCallback,ze=e.unstable_cancelCallback,rt=e.unstable_shouldYield,ct=e.unstable_requestPaint,nt=e.unstable_now,bt=e.unstable_getCurrentPriorityLevel,Tt=e.unstable_ImmediatePriority,Kt=e.unstable_UserBlockingPriority,vt=e.unstable_NormalPriority,_e=e.unstable_LowPriority,pt=e.unstable_IdlePriority,Pt=e.log,Qt=e.unstable_setDisableYieldValue,ir=null,It=null;function hr(a){if(typeof Pt=="function"&&Qt(a),It&&typeof It.setStrictMode=="function")try{It.setStrictMode(ir,a)}catch{}}var Xt=Math.clz32?Math.clz32:or,Dt=Math.log,Ye=Math.LN2;function or(a){return a>>>=0,a===0?32:31-(Dt(a)/Ye|0)|0}var $t=256,St=4194304;function pr(a){var i=a&42;if(i!==0)return i;switch(a&-a){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 a&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function wn(a,i,c){var f=a.pendingLanes;if(f===0)return 0;var y=0,v=a.suspendedLanes,A=a.pingedLanes;a=a.warmLanes;var D=f&134217727;return D!==0?(f=D&~v,f!==0?y=pr(f):(A&=D,A!==0?y=pr(A):c||(c=D&~a,c!==0&&(y=pr(c))))):(D=f&~v,D!==0?y=pr(D):A!==0?y=pr(A):c||(c=f&~a,c!==0&&(y=pr(c)))),y===0?0:i!==0&&i!==y&&(i&v)===0&&(v=y&-y,c=i&-i,v>=c||v===32&&(c&4194048)!==0)?i:y}function Ze(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function zt(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 nr(){var a=$t;return $t<<=1,($t&4194048)===0&&($t=256),a}function mn(){var a=St;return St<<=1,(St&62914560)===0&&(St=4194304),a}function zn(a){for(var i=[],c=0;31>c;c++)i.push(a);return i}function Xr(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Sa(a,i,c,f,y,v){var A=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var D=a.entanglements,K=a.expirationTimes,le=a.hiddenUpdates;for(c=A&~c;0<c;){var ye=31-Xt(c),we=1<<ye;D[ye]=0,K[ye]=-1;var ue=le[ye];if(ue!==null)for(le[ye]=null,ye=0;ye<ue.length;ye++){var de=ue[ye];de!==null&&(de.lane&=-536870913)}c&=~we}f!==0&&Qe(a,f,0),v!==0&&y===0&&a.tag!==0&&(a.suspendedLanes|=v&~(A&~i))}function Qe(a,i,c){a.pendingLanes|=i,a.suspendedLanes&=~i;var f=31-Xt(i);a.entangledLanes|=i,a.entanglements[f]=a.entanglements[f]|1073741824|c&4194090}function lr(a,i){var c=a.entangledLanes|=i;for(a=a.entanglements;c;){var f=31-Xt(c),y=1<<f;y&i|a[f]&i&&(a[f]|=i),c&=~y}}function gn(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function la(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function X(){var a=ne.p;return a!==0?a:(a=window.event,a===void 0?32:J6(a.type))}function ge(a,i){var c=ne.p;try{return ne.p=a,i()}finally{ne.p=c}}var Le=Math.random().toString(36).slice(2),Ge="__reactFiber$"+Le,kt="__reactProps$"+Le,At="__reactContainer$"+Le,Jt="__reactEvents$"+Le,dt="__reactListeners$"+Le,Je="__reactHandles$"+Le,xt="__reactResources$"+Le,at="__reactMarker$"+Le;function Mt(a){delete a[Ge],delete a[kt],delete a[Jt],delete a[dt],delete a[Je]}function ar(a){var i=a[Ge];if(i)return i;for(var c=a.parentNode;c;){if(i=c[At]||c[Ge]){if(c=i.alternate,i.child!==null||c!==null&&c.child!==null)for(a=z6(a);a!==null;){if(c=a[Ge])return c;a=z6(a)}return i}a=c,c=a.parentNode}return null}function En(a){if(a=a[Ge]||a[At]){var i=a.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return a}return null}function ca(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(n(33))}function Wn(a){var i=a[xt];return i||(i=a[xt]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function zr(a){a[at]=!0}var Q=new Set,je={};function Me(a,i){gt(a,i),gt(a+"Capture",i)}function gt(a,i){for(je[a]=i,a=0;a<i.length;a++)Q.add(i[a])}var Vr=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]*$"),Cr={},jn={};function Nr(a){return Ve.call(jn,a)?!0:Ve.call(Cr,a)?!1:Vr.test(a)?jn[a]=!0:(Cr[a]=!0,!1)}function ln(a,i,c){if(Nr(i))if(c===null)a.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var f=i.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){a.removeAttribute(i);return}}a.setAttribute(i,""+c)}}function Lr(a,i,c){if(c===null)a.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}a.setAttribute(i,""+c)}}function _n(a,i,c,f){if(f===null)a.removeAttribute(c);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(i,c,""+f)}}var Us,Yo;function xa(a){if(Us===void 0)try{throw Error()}catch(c){var i=c.stack.trim().match(/\n( *(at )?)/);Us=i&&i[1]||"",Yo=-1<c.stack.indexOf(`
    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Us+a+Yo}var ao=!1;function Ae(a,i){if(!a||ao)return"";ao=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(i){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(de){var ue=de}Reflect.construct(a,[],we)}else{try{we.call()}catch(de){ue=de}a.call(we.prototype)}}else{try{throw Error()}catch(de){ue=de}(we=a())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(de){if(de&&ue&&typeof de.stack=="string")return[de.stack,ue.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=f.DetermineComponentFrameRoot(),A=v[0],D=v[1];if(A&&D){var K=A.split(`
`),le=D.split(`
`);for(y=f=0;f<K.length&&!K[f].includes("DetermineComponentFrameRoot");)f++;for(;y<le.length&&!le[y].includes("DetermineComponentFrameRoot");)y++;if(f===K.length||y===le.length)for(f=K.length-1,y=le.length-1;1<=f&&0<=y&&K[f]!==le[y];)y--;for(;1<=f&&0<=y;f--,y--)if(K[f]!==le[y]){if(f!==1||y!==1)do if(f--,y--,0>y||K[f]!==le[y]){var ye=`
`+K[f].replace(" at new "," at ");return a.displayName&&ye.includes("<anonymous>")&&(ye=ye.replace("<anonymous>",a.displayName)),ye}while(1<=f&&0<=y);break}}}finally{ao=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?xa(c):""}function et(a){switch(a.tag){case 26:case 27:case 5:return xa(a.type);case 16:return xa("Lazy");case 13:return xa("Suspense");case 19:return xa("SuspenseList");case 0:case 15:return Ae(a.type,!1);case 11:return Ae(a.type.render,!1);case 1:return Ae(a.type,!0);case 31:return xa("Activity");default:return""}}function _t(a){try{var i="";do i+=et(a),a=a.return;while(a);return i}catch(c){return`
Error generating stack: `+c.message+`
`+c.stack}}function ft(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function br(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Fr(a){var i=br(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,i),f=""+a[i];if(!a.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var y=c.get,v=c.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return y.call(this)},set:function(A){f=""+A,v.call(this,A)}}),Object.defineProperty(a,i,{enumerable:c.enumerable}),{getValue:function(){return f},setValue:function(A){f=""+A},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Wr(a){a._valueTracker||(a._valueTracker=Fr(a))}function Bn(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var c=i.getValue(),f="";return a&&(f=br(a)?a.checked?"true":"false":a.value),a=f,a!==c?(i.setValue(a),!0):!1}function Pr(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var cn=/[\n"\\]/g;function Yr(a){return a.replace(cn,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function wa(a,i,c,f,y,v,A,D){a.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?a.type=A:a.removeAttribute("type"),i!=null?A==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+ft(i)):a.value!==""+ft(i)&&(a.value=""+ft(i)):A!=="submit"&&A!=="reset"||a.removeAttribute("value"),i!=null?Pa(a,A,ft(i)):c!=null?Pa(a,A,ft(c)):f!=null&&a.removeAttribute("value"),y==null&&v!=null&&(a.defaultChecked=!!v),y!=null&&(a.checked=y&&typeof y!="function"&&typeof y!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?a.name=""+ft(D):a.removeAttribute("name")}function La(a,i,c,f,y,v,A,D){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(a.type=v),i!=null||c!=null){if(!(v!=="submit"&&v!=="reset"||i!=null))return;c=c!=null?""+ft(c):"",i=i!=null?""+ft(i):c,D||i===a.value||(a.value=i),a.defaultValue=i}f=f??y,f=typeof f!="function"&&typeof f!="symbol"&&!!f,a.checked=D?a.checked:!!f,a.defaultChecked=!!f,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(a.name=A)}function Pa(a,i,c){i==="number"&&Pr(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function Yn(a,i,c,f){if(a=a.options,i){i={};for(var y=0;y<c.length;y++)i["$"+c[y]]=!0;for(c=0;c<a.length;c++)y=i.hasOwnProperty("$"+a[c].value),a[c].selected!==y&&(a[c].selected=y),y&&f&&(a[c].defaultSelected=!0)}else{for(c=""+ft(c),i=null,y=0;y<a.length;y++){if(a[y].value===c){a[y].selected=!0,f&&(a[y].defaultSelected=!0);return}i!==null||a[y].disabled||(i=a[y])}i!==null&&(i.selected=!0)}}function Ka(a,i,c){if(i!=null&&(i=""+ft(i),i!==a.value&&(a.value=i),c==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=c!=null?""+ft(c):""}function Wa(a,i,c,f){if(i==null){if(f!=null){if(c!=null)throw Error(n(92));if(ae(f)){if(1<f.length)throw Error(n(93));f=f[0]}c=f}c==null&&(c=""),i=c}c=ft(i),a.defaultValue=c,f=a.textContent,f===c&&f!==""&&f!==null&&(a.value=f)}function un(a,i){if(i){var c=a.firstChild;if(c&&c===a.lastChild&&c.nodeType===3){c.nodeValue=i;return}}a.textContent=i}var Jr=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 yn(a,i,c){var f=i.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?f?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":f?a.setProperty(i,c):typeof c!="number"||c===0||Jr.has(i)?i==="float"?a.cssFloat=c:a[i]=(""+c).trim():a[i]=c+"px"}function Ya(a,i,c){if(i!=null&&typeof i!="object")throw Error(n(62));if(a=a.style,c!=null){for(var f in c)!c.hasOwnProperty(f)||i!=null&&i.hasOwnProperty(f)||(f.indexOf("--")===0?a.setProperty(f,""):f==="float"?a.cssFloat="":a[f]="");for(var y in i)f=i[y],i.hasOwnProperty(y)&&c[y]!==f&&yn(a,y,f)}else for(var v in i)i.hasOwnProperty(v)&&yn(a,v,i[v])}function Ca(a){if(a.indexOf("-")===-1)return!1;switch(a){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 st=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"]]),Ia=/^[\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 vr(a){return Ia.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}var Rt=null;function Tn(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var dn=null,Un=null;function ua(a){var i=En(a);if(i&&(a=i.stateNode)){var c=a[kt]||null;e:switch(a=i.stateNode,i.type){case"input":if(wa(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),i=c.name,c.type==="radio"&&i!=null){for(c=a;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Yr(""+i)+'"][type="radio"]'),i=0;i<c.length;i++){var f=c[i];if(f!==a&&f.form===a.form){var y=f[kt]||null;if(!y)throw Error(n(90));wa(f,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(i=0;i<c.length;i++)f=c[i],f.form===a.form&&Bn(f)}break e;case"textarea":Ka(a,c.value,c.defaultValue);break e;case"select":i=c.value,i!=null&&Yn(a,!!c.multiple,i,!1)}}}var Ie=!1;function Fe(a,i,c){if(Ie)return a(i,c);Ie=!0;try{var f=a(i);return f}finally{if(Ie=!1,(dn!==null||Un!==null)&&(im(),dn&&(i=dn,a=Un,Un=dn=null,ua(i),a)))for(i=0;i<a.length;i++)ua(a[i])}}function it(a,i){var c=a.stateNode;if(c===null)return null;var f=c[kt]||null;if(f===null)return null;c=f[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(a=a.type,f=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!f;break e;default:a=!1}if(a)return null;if(c&&typeof c!="function")throw Error(n(231,i,typeof c));return c}var mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tr=!1;if(mt)try{var en={};Object.defineProperty(en,"passive",{get:function(){Tr=!0}}),window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{Tr=!1}var Hn=null,Qa=null,vs=null;function Hs(){if(vs)return vs;var a,i=Qa,c=i.length,f,y="value"in Hn?Hn.value:Hn.textContent,v=y.length;for(a=0;a<c&&i[a]===y[a];a++);var A=c-a;for(f=1;f<=A&&i[c-f]===y[v-f];f++);return vs=y.slice(a,1<f?1-f:void 0)}function Ss(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function G(){return!0}function w(){return!1}function E(a){function i(c,f,y,v,A){this._reactName=c,this._targetInst=y,this.type=f,this.nativeEvent=v,this.target=A,this.currentTarget=null;for(var D in a)a.hasOwnProperty(D)&&(c=a[D],this[D]=c?c(v):v[D]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?G:w,this.isPropagationStopped=w,this}return p(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=G)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=G)},persist:function(){},isPersistent:G}),i}var I={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},U=E(I),ke=p({},I,{view:0,detail:0}),Re=E(ke),xe,De,We,qt=p({},ke,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:y1,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==We&&(We&&a.type==="mousemove"?(xe=a.screenX-We.screenX,De=a.screenY-We.screenY):De=xe=0,We=a),xe)},movementY:function(a){return"movementY"in a?a.movementY:De}}),$a=E(qt),Qo=p({},qt,{dataTransfer:0}),QA=E(Qo),XA=p({},ke,{relatedTarget:0}),g1=E(XA),JA=p({},I,{animationName:0,elapsedTime:0,pseudoElement:0}),eR=E(JA),tR=p({},I,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),rR=E(tR),nR=p({},I,{data:0}),Bx=E(nR),aR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sR={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"},iR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oR(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=iR[a])?!!i[a]:!1}function y1(){return oR}var lR=p({},ke,{key:function(a){if(a.key){var i=aR[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=Ss(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?sR[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:y1,charCode:function(a){return a.type==="keypress"?Ss(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Ss(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),cR=E(lR),uR=p({},qt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ux=E(uR),dR=p({},ke,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:y1}),fR=E(dR),hR=p({},I,{propertyName:0,elapsedTime:0,pseudoElement:0}),pR=E(hR),mR=p({},qt,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),gR=E(mR),yR=p({},I,{newState:0,oldState:0}),bR=E(yR),vR=[9,13,27,32],b1=mt&&"CompositionEvent"in window,Xd=null;mt&&"documentMode"in document&&(Xd=document.documentMode);var SR=mt&&"TextEvent"in window&&!Xd,Hx=mt&&(!b1||Xd&&8<Xd&&11>=Xd),Zx=" ",Vx=!1;function Fx(a,i){switch(a){case"keyup":return vR.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qx(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Jl=!1;function xR(a,i){switch(a){case"compositionend":return qx(i);case"keypress":return i.which!==32?null:(Vx=!0,Zx);case"textInput":return a=i.data,a===Zx&&Vx?null:a;default:return null}}function wR(a,i){if(Jl)return a==="compositionend"||!b1&&Fx(a,i)?(a=Hs(),vs=Qa=Hn=null,Jl=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Hx&&i.locale!=="ko"?null:i.data;default:return null}}var CR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gx(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!CR[a.type]:i==="textarea"}function Kx(a,i,c,f){dn?Un?Un.push(f):Un=[f]:dn=f,i=fm(i,"onChange"),0<i.length&&(c=new U("onChange","change",null,c,f),a.push({event:c,listeners:i}))}var Jd=null,ef=null;function $R(a){T6(a,0)}function _p(a){var i=ca(a);if(Bn(i))return a}function Wx(a,i){if(a==="change")return i}var Yx=!1;if(mt){var v1;if(mt){var S1="oninput"in document;if(!S1){var Qx=document.createElement("div");Qx.setAttribute("oninput","return;"),S1=typeof Qx.oninput=="function"}v1=S1}else v1=!1;Yx=v1&&(!document.documentMode||9<document.documentMode)}function Xx(){Jd&&(Jd.detachEvent("onpropertychange",Jx),ef=Jd=null)}function Jx(a){if(a.propertyName==="value"&&_p(ef)){var i=[];Kx(i,ef,a,Tn(a)),Fe($R,i)}}function kR(a,i,c){a==="focusin"?(Xx(),Jd=i,ef=c,Jd.attachEvent("onpropertychange",Jx)):a==="focusout"&&Xx()}function ER(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return _p(ef)}function _R(a,i){if(a==="click")return _p(i)}function TR(a,i){if(a==="input"||a==="change")return _p(i)}function AR(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}var Da=typeof Object.is=="function"?Object.is:AR;function tf(a,i){if(Da(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var c=Object.keys(a),f=Object.keys(i);if(c.length!==f.length)return!1;for(f=0;f<c.length;f++){var y=c[f];if(!Ve.call(i,y)||!Da(a[y],i[y]))return!1}return!0}function ew(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function tw(a,i){var c=ew(a);a=0;for(var f;c;){if(c.nodeType===3){if(f=a+c.textContent.length,a<=i&&f>=i)return{node:c,offset:i-a};a=f}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=ew(c)}}function rw(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?rw(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function nw(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=Pr(a.document);i instanceof a.HTMLIFrameElement;){try{var c=typeof i.contentWindow.location.href=="string"}catch{c=!1}if(c)a=i.contentWindow;else break;i=Pr(a.document)}return i}function x1(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}var RR=mt&&"documentMode"in document&&11>=document.documentMode,ec=null,w1=null,rf=null,C1=!1;function aw(a,i,c){var f=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;C1||ec==null||ec!==Pr(f)||(f=ec,"selectionStart"in f&&x1(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),rf&&tf(rf,f)||(rf=f,f=fm(w1,"onSelect"),0<f.length&&(i=new U("onSelect","select",null,i,c),a.push({event:i,listeners:f}),i.target=ec)))}function Xo(a,i){var c={};return c[a.toLowerCase()]=i.toLowerCase(),c["Webkit"+a]="webkit"+i,c["Moz"+a]="moz"+i,c}var tc={animationend:Xo("Animation","AnimationEnd"),animationiteration:Xo("Animation","AnimationIteration"),animationstart:Xo("Animation","AnimationStart"),transitionrun:Xo("Transition","TransitionRun"),transitionstart:Xo("Transition","TransitionStart"),transitioncancel:Xo("Transition","TransitionCancel"),transitionend:Xo("Transition","TransitionEnd")},$1={},sw={};mt&&(sw=document.createElement("div").style,"AnimationEvent"in window||(delete tc.animationend.animation,delete tc.animationiteration.animation,delete tc.animationstart.animation),"TransitionEvent"in window||delete tc.transitionend.transition);function Jo(a){if($1[a])return $1[a];if(!tc[a])return a;var i=tc[a],c;for(c in i)if(i.hasOwnProperty(c)&&c in sw)return $1[a]=i[c];return a}var iw=Jo("animationend"),ow=Jo("animationiteration"),lw=Jo("animationstart"),OR=Jo("transitionrun"),MR=Jo("transitionstart"),NR=Jo("transitioncancel"),cw=Jo("transitionend"),uw=new Map,k1="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(" ");k1.push("scrollEnd");function xs(a,i){uw.set(a,i),Me(i,[a])}var dw=new WeakMap;function Xa(a,i){if(typeof a=="object"&&a!==null){var c=dw.get(a);return c!==void 0?c:(i={value:a,source:i,stack:_t(i)},dw.set(a,i),i)}return{value:a,source:i,stack:_t(i)}}var Ja=[],rc=0,E1=0;function Tp(){for(var a=rc,i=E1=rc=0;i<a;){var c=Ja[i];Ja[i++]=null;var f=Ja[i];Ja[i++]=null;var y=Ja[i];Ja[i++]=null;var v=Ja[i];if(Ja[i++]=null,f!==null&&y!==null){var A=f.pending;A===null?y.next=y:(y.next=A.next,A.next=y),f.pending=y}v!==0&&fw(c,y,v)}}function Ap(a,i,c,f){Ja[rc++]=a,Ja[rc++]=i,Ja[rc++]=c,Ja[rc++]=f,E1|=f,a.lanes|=f,a=a.alternate,a!==null&&(a.lanes|=f)}function _1(a,i,c,f){return Ap(a,i,c,f),Rp(a)}function nc(a,i){return Ap(a,null,null,i),Rp(a)}function fw(a,i,c){a.lanes|=c;var f=a.alternate;f!==null&&(f.lanes|=c);for(var y=!1,v=a.return;v!==null;)v.childLanes|=c,f=v.alternate,f!==null&&(f.childLanes|=c),v.tag===22&&(a=v.stateNode,a===null||a._visibility&1||(y=!0)),a=v,v=v.return;return a.tag===3?(v=a.stateNode,y&&i!==null&&(y=31-Xt(c),a=v.hiddenUpdates,f=a[y],f===null?a[y]=[i]:f.push(i),i.lane=c|536870912),v):null}function Rp(a){if(50<Tf)throw Tf=0,Ny=null,Error(n(185));for(var i=a.return;i!==null;)a=i,i=a.return;return a.tag===3?a.stateNode:null}var ac={};function LR(a,i,c,f){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function za(a,i,c,f){return new LR(a,i,c,f)}function T1(a){return a=a.prototype,!(!a||!a.isReactComponent)}function li(a,i){var c=a.alternate;return c===null?(c=za(a.tag,i,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=i,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=a.flags&65011712,c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,i=a.dependencies,c.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c.refCleanup=a.refCleanup,c}function hw(a,i){a.flags&=65011714;var c=a.alternate;return c===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,i=c.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),a}function Op(a,i,c,f,y,v){var A=0;if(f=a,typeof a=="function")T1(a)&&(A=1);else if(typeof a=="string")A=IO(a,c,Ce.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case z:return a=za(31,c,i,y),a.elementType=z,a.lanes=v,a;case x:return el(c.children,y,v,i);case C:A=8,y|=24;break;case $:return a=za(12,c,i,y|2),a.elementType=$,a.lanes=v,a;case L:return a=za(13,c,i,y),a.elementType=L,a.lanes=v,a;case j:return a=za(19,c,i,y),a.elementType=j,a.lanes=v,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case _:case T:A=10;break e;case M:A=9;break e;case R:A=11;break e;case O:A=14;break e;case N:A=16,f=null;break e}A=29,c=Error(n(130,a===null?"null":typeof a,"")),f=null}return i=za(A,c,i,y),i.elementType=a,i.type=f,i.lanes=v,i}function el(a,i,c,f){return a=za(7,a,f,i),a.lanes=c,a}function A1(a,i,c){return a=za(6,a,null,i),a.lanes=c,a}function R1(a,i,c){return i=za(4,a.children!==null?a.children:[],a.key,i),i.lanes=c,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}var sc=[],ic=0,Mp=null,Np=0,es=[],ts=0,tl=null,ci=1,ui="";function rl(a,i){sc[ic++]=Np,sc[ic++]=Mp,Mp=a,Np=i}function pw(a,i,c){es[ts++]=ci,es[ts++]=ui,es[ts++]=tl,tl=a;var f=ci;a=ui;var y=32-Xt(f)-1;f&=~(1<<y),c+=1;var v=32-Xt(i)+y;if(30<v){var A=y-y%5;v=(f&(1<<A)-1).toString(32),f>>=A,y-=A,ci=1<<32-Xt(i)+y|c<<y|f,ui=v+a}else ci=1<<v|c<<y|f,ui=a}function O1(a){a.return!==null&&(rl(a,1),pw(a,1,0))}function M1(a){for(;a===Mp;)Mp=sc[--ic],sc[ic]=null,Np=sc[--ic],sc[ic]=null;for(;a===tl;)tl=es[--ts],es[ts]=null,ui=es[--ts],es[ts]=null,ci=es[--ts],es[ts]=null}var da=null,tn=null,cr=!1,nl=null,Zs=!1,N1=Error(n(519));function al(a){var i=Error(n(418,""));throw sf(Xa(i,a)),N1}function mw(a){var i=a.stateNode,c=a.type,f=a.memoizedProps;switch(i[Ge]=a,i[kt]=f,c){case"dialog":Bt("cancel",i),Bt("close",i);break;case"iframe":case"object":case"embed":Bt("load",i);break;case"video":case"audio":for(c=0;c<Rf.length;c++)Bt(Rf[c],i);break;case"source":Bt("error",i);break;case"img":case"image":case"link":Bt("error",i),Bt("load",i);break;case"details":Bt("toggle",i);break;case"input":Bt("invalid",i),La(i,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0),Wr(i);break;case"select":Bt("invalid",i);break;case"textarea":Bt("invalid",i),Wa(i,f.value,f.defaultValue,f.children),Wr(i)}c=f.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||i.textContent===""+c||f.suppressHydrationWarning===!0||M6(i.textContent,c)?(f.popover!=null&&(Bt("beforetoggle",i),Bt("toggle",i)),f.onScroll!=null&&Bt("scroll",i),f.onScrollEnd!=null&&Bt("scrollend",i),f.onClick!=null&&(i.onclick=hm),i=!0):i=!1,i||al(a)}function gw(a){for(da=a.return;da;)switch(da.tag){case 5:case 13:Zs=!1;return;case 27:case 3:Zs=!0;return;default:da=da.return}}function nf(a){if(a!==da)return!1;if(!cr)return gw(a),cr=!0,!1;var i=a.tag,c;if((c=i!==3&&i!==27)&&((c=i===5)&&(c=a.type,c=!(c!=="form"&&c!=="button")||Wy(a.type,a.memoizedProps)),c=!c),c&&tn&&al(a),gw(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));e:{for(a=a.nextSibling,i=0;a;){if(a.nodeType===8)if(c=a.data,c==="/$"){if(i===0){tn=Cs(a.nextSibling);break e}i--}else c!=="$"&&c!=="$!"&&c!=="$?"||i++;a=a.nextSibling}tn=null}}else i===27?(i=tn,xo(a.type)?(a=Jy,Jy=null,tn=a):tn=i):tn=da?Cs(a.stateNode.nextSibling):null;return!0}function af(){tn=da=null,cr=!1}function yw(){var a=nl;return a!==null&&(_a===null?_a=a:_a.push.apply(_a,a),nl=null),a}function sf(a){nl===null?nl=[a]:nl.push(a)}var L1=J(null),sl=null,di=null;function so(a,i,c){ce(L1,i._currentValue),i._currentValue=c}function fi(a){a._currentValue=L1.current,fe(L1)}function P1(a,i,c){for(;a!==null;){var f=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),a===c)break;a=a.return}}function I1(a,i,c,f){var y=a.child;for(y!==null&&(y.return=a);y!==null;){var v=y.dependencies;if(v!==null){var A=y.child;v=v.firstContext;e:for(;v!==null;){var D=v;v=y;for(var K=0;K<i.length;K++)if(D.context===i[K]){v.lanes|=c,D=v.alternate,D!==null&&(D.lanes|=c),P1(v.return,c,a),f||(A=null);break e}v=D.next}}else if(y.tag===18){if(A=y.return,A===null)throw Error(n(341));A.lanes|=c,v=A.alternate,v!==null&&(v.lanes|=c),P1(A,c,a),A=null}else A=y.child;if(A!==null)A.return=y;else for(A=y;A!==null;){if(A===a){A=null;break}if(y=A.sibling,y!==null){y.return=A.return,A=y;break}A=A.return}y=A}}function of(a,i,c,f){a=null;for(var y=i,v=!1;y!==null;){if(!v){if((y.flags&524288)!==0)v=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var A=y.alternate;if(A===null)throw Error(n(387));if(A=A.memoizedProps,A!==null){var D=y.type;Da(y.pendingProps.value,A.value)||(a!==null?a.push(D):a=[D])}}else if(y===He.current){if(A=y.alternate,A===null)throw Error(n(387));A.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(a!==null?a.push(If):a=[If])}y=y.return}a!==null&&I1(i,a,c,f),i.flags|=262144}function Lp(a){for(a=a.firstContext;a!==null;){if(!Da(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function il(a){sl=a,di=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Qn(a){return bw(sl,a)}function Pp(a,i){return sl===null&&il(a),bw(a,i)}function bw(a,i){var c=i._currentValue;if(i={context:i,memoizedValue:c,next:null},di===null){if(a===null)throw Error(n(308));di=i,a.dependencies={lanes:0,firstContext:i},a.flags|=524288}else di=di.next=i;return c}var PR=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(c,f){a.push(f)}};this.abort=function(){i.aborted=!0,a.forEach(function(c){return c()})}},IR=e.unstable_scheduleCallback,DR=e.unstable_NormalPriority,Cn={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function D1(){return{controller:new PR,data:new Map,refCount:0}}function lf(a){a.refCount--,a.refCount===0&&IR(DR,function(){a.controller.abort()})}var cf=null,z1=0,oc=0,lc=null;function zR(a,i){if(cf===null){var c=cf=[];z1=0,oc=By(),lc={status:"pending",value:void 0,then:function(f){c.push(f)}}}return z1++,i.then(vw,vw),i}function vw(){if(--z1===0&&cf!==null){lc!==null&&(lc.status="fulfilled");var a=cf;cf=null,oc=0,lc=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function jR(a,i){var c=[],f={status:"pending",value:null,reason:null,then:function(y){c.push(y)}};return a.then(function(){f.status="fulfilled",f.value=i;for(var y=0;y<c.length;y++)(0,c[y])(i)},function(y){for(f.status="rejected",f.reason=y,y=0;y<c.length;y++)(0,c[y])(void 0)}),f}var Sw=Z.S;Z.S=function(a,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&zR(a,i),Sw!==null&&Sw(a,i)};var ol=J(null);function j1(){var a=ol.current;return a!==null?a:Ir.pooledCache}function Ip(a,i){i===null?ce(ol,ol.current):ce(ol,i.pool)}function xw(){var a=j1();return a===null?null:{parent:Cn._currentValue,pool:a}}var uf=Error(n(460)),ww=Error(n(474)),Dp=Error(n(542)),B1={then:function(){}};function Cw(a){return a=a.status,a==="fulfilled"||a==="rejected"}function zp(){}function $w(a,i,c){switch(c=a[c],c===void 0?a.push(i):c!==i&&(i.then(zp,zp),i=c),i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Ew(a),a;default:if(typeof i.status=="string")i.then(zp,zp);else{if(a=Ir,a!==null&&100<a.shellSuspendCounter)throw Error(n(482));a=i,a.status="pending",a.then(function(f){if(i.status==="pending"){var y=i;y.status="fulfilled",y.value=f}},function(f){if(i.status==="pending"){var y=i;y.status="rejected",y.reason=f}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Ew(a),a}throw df=i,uf}}var df=null;function kw(){if(df===null)throw Error(n(459));var a=df;return df=null,a}function Ew(a){if(a===uf||a===Dp)throw Error(n(483))}var io=!1;function U1(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function H1(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function oo(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function lo(a,i,c){var f=a.updateQueue;if(f===null)return null;if(f=f.shared,(Sr&2)!==0){var y=f.pending;return y===null?i.next=i:(i.next=y.next,y.next=i),f.pending=i,i=Rp(a),fw(a,null,c),i}return Ap(a,f,i,c),Rp(a)}function ff(a,i,c){if(i=i.updateQueue,i!==null&&(i=i.shared,(c&4194048)!==0)){var f=i.lanes;f&=a.pendingLanes,c|=f,i.lanes=c,lr(a,c)}}function Z1(a,i){var c=a.updateQueue,f=a.alternate;if(f!==null&&(f=f.updateQueue,c===f)){var y=null,v=null;if(c=c.firstBaseUpdate,c!==null){do{var A={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};v===null?y=v=A:v=v.next=A,c=c.next}while(c!==null);v===null?y=v=i:v=v.next=i}else y=v=i;c={baseState:f.baseState,firstBaseUpdate:y,lastBaseUpdate:v,shared:f.shared,callbacks:f.callbacks},a.updateQueue=c;return}a=c.lastBaseUpdate,a===null?c.firstBaseUpdate=i:a.next=i,c.lastBaseUpdate=i}var V1=!1;function hf(){if(V1){var a=lc;if(a!==null)throw a}}function pf(a,i,c,f){V1=!1;var y=a.updateQueue;io=!1;var v=y.firstBaseUpdate,A=y.lastBaseUpdate,D=y.shared.pending;if(D!==null){y.shared.pending=null;var K=D,le=K.next;K.next=null,A===null?v=le:A.next=le,A=K;var ye=a.alternate;ye!==null&&(ye=ye.updateQueue,D=ye.lastBaseUpdate,D!==A&&(D===null?ye.firstBaseUpdate=le:D.next=le,ye.lastBaseUpdate=K))}if(v!==null){var we=y.baseState;A=0,ye=le=K=null,D=v;do{var ue=D.lane&-536870913,de=ue!==D.lane;if(de?(Yt&ue)===ue:(f&ue)===ue){ue!==0&&ue===oc&&(V1=!0),ye!==null&&(ye=ye.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var ut=a,ot=D;ue=i;var Er=c;switch(ot.tag){case 1:if(ut=ot.payload,typeof ut=="function"){we=ut.call(Er,we,ue);break e}we=ut;break e;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=ot.payload,ue=typeof ut=="function"?ut.call(Er,we,ue):ut,ue==null)break e;we=p({},we,ue);break e;case 2:io=!0}}ue=D.callback,ue!==null&&(a.flags|=64,de&&(a.flags|=8192),de=y.callbacks,de===null?y.callbacks=[ue]:de.push(ue))}else de={lane:ue,tag:D.tag,payload:D.payload,callback:D.callback,next:null},ye===null?(le=ye=de,K=we):ye=ye.next=de,A|=ue;if(D=D.next,D===null){if(D=y.shared.pending,D===null)break;de=D,D=de.next,de.next=null,y.lastBaseUpdate=de,y.shared.pending=null}}while(!0);ye===null&&(K=we),y.baseState=K,y.firstBaseUpdate=le,y.lastBaseUpdate=ye,v===null&&(y.shared.lanes=0),yo|=A,a.lanes=A,a.memoizedState=we}}function _w(a,i){if(typeof a!="function")throw Error(n(191,a));a.call(i)}function Tw(a,i){var c=a.callbacks;if(c!==null)for(a.callbacks=null,a=0;a<c.length;a++)_w(c[a],i)}var cc=J(null),jp=J(0);function Aw(a,i){a=vi,ce(jp,a),ce(cc,i),vi=a|i.baseLanes}function F1(){ce(jp,vi),ce(cc,cc.current)}function q1(){vi=jp.current,fe(cc),fe(jp)}var co=0,Ot=null,$r=null,bn=null,Bp=!1,uc=!1,ll=!1,Up=0,mf=0,dc=null,BR=0;function fn(){throw Error(n(321))}function G1(a,i){if(i===null)return!1;for(var c=0;c<i.length&&c<a.length;c++)if(!Da(a[c],i[c]))return!1;return!0}function K1(a,i,c,f,y,v){return co=v,Ot=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Z.H=a===null||a.memoizedState===null?f8:h8,ll=!1,v=c(f,y),ll=!1,uc&&(v=Ow(i,c,f,y)),Rw(a),v}function Rw(a){Z.H=Gp;var i=$r!==null&&$r.next!==null;if(co=0,bn=$r=Ot=null,Bp=!1,mf=0,dc=null,i)throw Error(n(300));a===null||An||(a=a.dependencies,a!==null&&Lp(a)&&(An=!0))}function Ow(a,i,c,f){Ot=a;var y=0;do{if(uc&&(dc=null),mf=0,uc=!1,25<=y)throw Error(n(301));if(y+=1,bn=$r=null,a.updateQueue!=null){var v=a.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}Z.H=GR,v=i(c,f)}while(uc);return v}function UR(){var a=Z.H,i=a.useState()[0];return i=typeof i.then=="function"?gf(i):i,a=a.useState()[0],($r!==null?$r.memoizedState:null)!==a&&(Ot.flags|=1024),i}function W1(){var a=Up!==0;return Up=0,a}function Y1(a,i,c){i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~c}function Q1(a){if(Bp){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}Bp=!1}co=0,bn=$r=Ot=null,uc=!1,mf=Up=0,dc=null}function ka(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bn===null?Ot.memoizedState=bn=a:bn=bn.next=a,bn}function vn(){if($r===null){var a=Ot.alternate;a=a!==null?a.memoizedState:null}else a=$r.next;var i=bn===null?Ot.memoizedState:bn.next;if(i!==null)bn=i,$r=a;else{if(a===null)throw Ot.alternate===null?Error(n(467)):Error(n(310));$r=a,a={memoizedState:$r.memoizedState,baseState:$r.baseState,baseQueue:$r.baseQueue,queue:$r.queue,next:null},bn===null?Ot.memoizedState=bn=a:bn=bn.next=a}return bn}function X1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gf(a){var i=mf;return mf+=1,dc===null&&(dc=[]),a=$w(dc,a,i),i=Ot,(bn===null?i.memoizedState:bn.next)===null&&(i=i.alternate,Z.H=i===null||i.memoizedState===null?f8:h8),a}function Hp(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return gf(a);if(a.$$typeof===T)return Qn(a)}throw Error(n(438,String(a)))}function J1(a){var i=null,c=Ot.updateQueue;if(c!==null&&(i=c.memoCache),i==null){var f=Ot.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(i={data:f.data.map(function(y){return y.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),c===null&&(c=X1(),Ot.updateQueue=c),c.memoCache=i,c=i.data[i.index],c===void 0)for(c=i.data[i.index]=Array(a),f=0;f<a;f++)c[f]=k;return i.index++,c}function hi(a,i){return typeof i=="function"?i(a):i}function Zp(a){var i=vn();return ey(i,$r,a)}function ey(a,i,c){var f=a.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=c;var y=a.baseQueue,v=f.pending;if(v!==null){if(y!==null){var A=y.next;y.next=v.next,v.next=A}i.baseQueue=y=v,f.pending=null}if(v=a.baseState,y===null)a.memoizedState=v;else{i=y.next;var D=A=null,K=null,le=i,ye=!1;do{var we=le.lane&-536870913;if(we!==le.lane?(Yt&we)===we:(co&we)===we){var ue=le.revertLane;if(ue===0)K!==null&&(K=K.next={lane:0,revertLane:0,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),we===oc&&(ye=!0);else if((co&ue)===ue){le=le.next,ue===oc&&(ye=!0);continue}else we={lane:0,revertLane:le.revertLane,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},K===null?(D=K=we,A=v):K=K.next=we,Ot.lanes|=ue,yo|=ue;we=le.action,ll&&c(v,we),v=le.hasEagerState?le.eagerState:c(v,we)}else ue={lane:we,revertLane:le.revertLane,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},K===null?(D=K=ue,A=v):K=K.next=ue,Ot.lanes|=we,yo|=we;le=le.next}while(le!==null&&le!==i);if(K===null?A=v:K.next=D,!Da(v,a.memoizedState)&&(An=!0,ye&&(c=lc,c!==null)))throw c;a.memoizedState=v,a.baseState=A,a.baseQueue=K,f.lastRenderedState=v}return y===null&&(f.lanes=0),[a.memoizedState,f.dispatch]}function ty(a){var i=vn(),c=i.queue;if(c===null)throw Error(n(311));c.lastRenderedReducer=a;var f=c.dispatch,y=c.pending,v=i.memoizedState;if(y!==null){c.pending=null;var A=y=y.next;do v=a(v,A.action),A=A.next;while(A!==y);Da(v,i.memoizedState)||(An=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),c.lastRenderedState=v}return[v,f]}function Mw(a,i,c){var f=Ot,y=vn(),v=cr;if(v){if(c===void 0)throw Error(n(407));c=c()}else c=i();var A=!Da(($r||y).memoizedState,c);A&&(y.memoizedState=c,An=!0),y=y.queue;var D=Pw.bind(null,f,y,a);if(yf(2048,8,D,[a]),y.getSnapshot!==i||A||bn!==null&&bn.memoizedState.tag&1){if(f.flags|=2048,fc(9,Vp(),Lw.bind(null,f,y,c,i),null),Ir===null)throw Error(n(349));v||(co&124)!==0||Nw(f,i,c)}return c}function Nw(a,i,c){a.flags|=16384,a={getSnapshot:i,value:c},i=Ot.updateQueue,i===null?(i=X1(),Ot.updateQueue=i,i.stores=[a]):(c=i.stores,c===null?i.stores=[a]:c.push(a))}function Lw(a,i,c,f){i.value=c,i.getSnapshot=f,Iw(i)&&Dw(a)}function Pw(a,i,c){return c(function(){Iw(i)&&Dw(a)})}function Iw(a){var i=a.getSnapshot;a=a.value;try{var c=i();return!Da(a,c)}catch{return!0}}function Dw(a){var i=nc(a,2);i!==null&&Za(i,a,2)}function ry(a){var i=ka();if(typeof a=="function"){var c=a;if(a=c(),ll){hr(!0);try{c()}finally{hr(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:a},i}function zw(a,i,c,f){return a.baseState=c,ey(a,$r,typeof f=="function"?f:hi)}function HR(a,i,c,f,y){if(qp(a))throw Error(n(485));if(a=i.action,a!==null){var v={payload:y,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){v.listeners.push(A)}};Z.T!==null?c(!0):v.isTransition=!1,f(v),c=i.pending,c===null?(v.next=i.pending=v,jw(i,v)):(v.next=c.next,i.pending=c.next=v)}}function jw(a,i){var c=i.action,f=i.payload,y=a.state;if(i.isTransition){var v=Z.T,A={};Z.T=A;try{var D=c(y,f),K=Z.S;K!==null&&K(A,D),Bw(a,i,D)}catch(le){ny(a,i,le)}finally{Z.T=v}}else try{v=c(y,f),Bw(a,i,v)}catch(le){ny(a,i,le)}}function Bw(a,i,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(f){Uw(a,i,f)},function(f){return ny(a,i,f)}):Uw(a,i,c)}function Uw(a,i,c){i.status="fulfilled",i.value=c,Hw(i),a.state=c,i=a.pending,i!==null&&(c=i.next,c===i?a.pending=null:(c=c.next,i.next=c,jw(a,c)))}function ny(a,i,c){var f=a.pending;if(a.pending=null,f!==null){f=f.next;do i.status="rejected",i.reason=c,Hw(i),i=i.next;while(i!==f)}a.action=null}function Hw(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function Zw(a,i){return i}function Vw(a,i){if(cr){var c=Ir.formState;if(c!==null){e:{var f=Ot;if(cr){if(tn){t:{for(var y=tn,v=Zs;y.nodeType!==8;){if(!v){y=null;break t}if(y=Cs(y.nextSibling),y===null){y=null;break t}}v=y.data,y=v==="F!"||v==="F"?y:null}if(y){tn=Cs(y.nextSibling),f=y.data==="F!";break e}}al(f)}f=!1}f&&(i=c[0])}}return c=ka(),c.memoizedState=c.baseState=i,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zw,lastRenderedState:i},c.queue=f,c=c8.bind(null,Ot,f),f.dispatch=c,f=ry(!1),v=ly.bind(null,Ot,!1,f.queue),f=ka(),y={state:i,dispatch:null,action:a,pending:null},f.queue=y,c=HR.bind(null,Ot,y,v,c),y.dispatch=c,f.memoizedState=a,[i,c,!1]}function Fw(a){var i=vn();return qw(i,$r,a)}function qw(a,i,c){if(i=ey(a,i,Zw)[0],a=Zp(hi)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var f=gf(i)}catch(A){throw A===uf?Dp:A}else f=i;i=vn();var y=i.queue,v=y.dispatch;return c!==i.memoizedState&&(Ot.flags|=2048,fc(9,Vp(),ZR.bind(null,y,c),null)),[f,v,a]}function ZR(a,i){a.action=i}function Gw(a){var i=vn(),c=$r;if(c!==null)return qw(i,c,a);vn(),i=i.memoizedState,c=vn();var f=c.queue.dispatch;return c.memoizedState=a,[i,f,!1]}function fc(a,i,c,f){return a={tag:a,create:c,deps:f,inst:i,next:null},i=Ot.updateQueue,i===null&&(i=X1(),Ot.updateQueue=i),c=i.lastEffect,c===null?i.lastEffect=a.next=a:(f=c.next,c.next=a,a.next=f,i.lastEffect=a),a}function Vp(){return{destroy:void 0,resource:void 0}}function Kw(){return vn().memoizedState}function Fp(a,i,c,f){var y=ka();f=f===void 0?null:f,Ot.flags|=a,y.memoizedState=fc(1|i,Vp(),c,f)}function yf(a,i,c,f){var y=vn();f=f===void 0?null:f;var v=y.memoizedState.inst;$r!==null&&f!==null&&G1(f,$r.memoizedState.deps)?y.memoizedState=fc(i,v,c,f):(Ot.flags|=a,y.memoizedState=fc(1|i,v,c,f))}function Ww(a,i){Fp(8390656,8,a,i)}function Yw(a,i){yf(2048,8,a,i)}function Qw(a,i){return yf(4,2,a,i)}function Xw(a,i){return yf(4,4,a,i)}function Jw(a,i){if(typeof i=="function"){a=a();var c=i(a);return function(){typeof c=="function"?c():i(null)}}if(i!=null)return a=a(),i.current=a,function(){i.current=null}}function e8(a,i,c){c=c!=null?c.concat([a]):null,yf(4,4,Jw.bind(null,i,a),c)}function ay(){}function t8(a,i){var c=vn();i=i===void 0?null:i;var f=c.memoizedState;return i!==null&&G1(i,f[1])?f[0]:(c.memoizedState=[a,i],a)}function r8(a,i){var c=vn();i=i===void 0?null:i;var f=c.memoizedState;if(i!==null&&G1(i,f[1]))return f[0];if(f=a(),ll){hr(!0);try{a()}finally{hr(!1)}}return c.memoizedState=[f,i],f}function sy(a,i,c){return c===void 0||(co&1073741824)!==0?a.memoizedState=i:(a.memoizedState=c,a=s6(),Ot.lanes|=a,yo|=a,c)}function n8(a,i,c,f){return Da(c,i)?c:cc.current!==null?(a=sy(a,c,f),Da(a,i)||(An=!0),a):(co&42)===0?(An=!0,a.memoizedState=c):(a=s6(),Ot.lanes|=a,yo|=a,i)}function a8(a,i,c,f,y){var v=ne.p;ne.p=v!==0&&8>v?v:8;var A=Z.T,D={};Z.T=D,ly(a,!1,i,c);try{var K=y(),le=Z.S;if(le!==null&&le(D,K),K!==null&&typeof K=="object"&&typeof K.then=="function"){var ye=jR(K,f);bf(a,i,ye,Ha(a))}else bf(a,i,f,Ha(a))}catch(we){bf(a,i,{then:function(){},status:"rejected",reason:we},Ha())}finally{ne.p=v,Z.T=A}}function VR(){}function iy(a,i,c,f){if(a.tag!==5)throw Error(n(476));var y=s8(a).queue;a8(a,y,i,ee,c===null?VR:function(){return i8(a),c(f)})}function s8(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:ee},next:null};var c={};return i.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:c},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function i8(a){var i=s8(a).next.queue;bf(a,i,{},Ha())}function oy(){return Qn(If)}function o8(){return vn().memoizedState}function l8(){return vn().memoizedState}function FR(a){for(var i=a.return;i!==null;){switch(i.tag){case 24:case 3:var c=Ha();a=oo(c);var f=lo(i,a,c);f!==null&&(Za(f,i,c),ff(f,i,c)),i={cache:D1()},a.payload=i;return}i=i.return}}function qR(a,i,c){var f=Ha();c={lane:f,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},qp(a)?u8(i,c):(c=_1(a,i,c,f),c!==null&&(Za(c,a,f),d8(c,i,f)))}function c8(a,i,c){var f=Ha();bf(a,i,c,f)}function bf(a,i,c,f){var y={lane:f,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(qp(a))u8(i,y);else{var v=a.alternate;if(a.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null))try{var A=i.lastRenderedState,D=v(A,c);if(y.hasEagerState=!0,y.eagerState=D,Da(D,A))return Ap(a,i,y,0),Ir===null&&Tp(),!1}catch{}finally{}if(c=_1(a,i,y,f),c!==null)return Za(c,a,f),d8(c,i,f),!0}return!1}function ly(a,i,c,f){if(f={lane:2,revertLane:By(),action:f,hasEagerState:!1,eagerState:null,next:null},qp(a)){if(i)throw Error(n(479))}else i=_1(a,c,f,2),i!==null&&Za(i,a,2)}function qp(a){var i=a.alternate;return a===Ot||i!==null&&i===Ot}function u8(a,i){uc=Bp=!0;var c=a.pending;c===null?i.next=i:(i.next=c.next,c.next=i),a.pending=i}function d8(a,i,c){if((c&4194048)!==0){var f=i.lanes;f&=a.pendingLanes,c|=f,i.lanes=c,lr(a,c)}}var Gp={readContext:Qn,use:Hp,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useLayoutEffect:fn,useInsertionEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useSyncExternalStore:fn,useId:fn,useHostTransitionStatus:fn,useFormState:fn,useActionState:fn,useOptimistic:fn,useMemoCache:fn,useCacheRefresh:fn},f8={readContext:Qn,use:Hp,useCallback:function(a,i){return ka().memoizedState=[a,i===void 0?null:i],a},useContext:Qn,useEffect:Ww,useImperativeHandle:function(a,i,c){c=c!=null?c.concat([a]):null,Fp(4194308,4,Jw.bind(null,i,a),c)},useLayoutEffect:function(a,i){return Fp(4194308,4,a,i)},useInsertionEffect:function(a,i){Fp(4,2,a,i)},useMemo:function(a,i){var c=ka();i=i===void 0?null:i;var f=a();if(ll){hr(!0);try{a()}finally{hr(!1)}}return c.memoizedState=[f,i],f},useReducer:function(a,i,c){var f=ka();if(c!==void 0){var y=c(i);if(ll){hr(!0);try{c(i)}finally{hr(!1)}}}else y=i;return f.memoizedState=f.baseState=y,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:y},f.queue=a,a=a.dispatch=qR.bind(null,Ot,a),[f.memoizedState,a]},useRef:function(a){var i=ka();return a={current:a},i.memoizedState=a},useState:function(a){a=ry(a);var i=a.queue,c=c8.bind(null,Ot,i);return i.dispatch=c,[a.memoizedState,c]},useDebugValue:ay,useDeferredValue:function(a,i){var c=ka();return sy(c,a,i)},useTransition:function(){var a=ry(!1);return a=a8.bind(null,Ot,a.queue,!0,!1),ka().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,i,c){var f=Ot,y=ka();if(cr){if(c===void 0)throw Error(n(407));c=c()}else{if(c=i(),Ir===null)throw Error(n(349));(Yt&124)!==0||Nw(f,i,c)}y.memoizedState=c;var v={value:c,getSnapshot:i};return y.queue=v,Ww(Pw.bind(null,f,v,a),[a]),f.flags|=2048,fc(9,Vp(),Lw.bind(null,f,v,c,i),null),c},useId:function(){var a=ka(),i=Ir.identifierPrefix;if(cr){var c=ui,f=ci;c=(f&~(1<<32-Xt(f)-1)).toString(32)+c,i="«"+i+"R"+c,c=Up++,0<c&&(i+="H"+c.toString(32)),i+="»"}else c=BR++,i="«"+i+"r"+c.toString(32)+"»";return a.memoizedState=i},useHostTransitionStatus:oy,useFormState:Vw,useActionState:Vw,useOptimistic:function(a){var i=ka();i.memoizedState=i.baseState=a;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=c,i=ly.bind(null,Ot,!0,c),c.dispatch=i,[a,i]},useMemoCache:J1,useCacheRefresh:function(){return ka().memoizedState=FR.bind(null,Ot)}},h8={readContext:Qn,use:Hp,useCallback:t8,useContext:Qn,useEffect:Yw,useImperativeHandle:e8,useInsertionEffect:Qw,useLayoutEffect:Xw,useMemo:r8,useReducer:Zp,useRef:Kw,useState:function(){return Zp(hi)},useDebugValue:ay,useDeferredValue:function(a,i){var c=vn();return n8(c,$r.memoizedState,a,i)},useTransition:function(){var a=Zp(hi)[0],i=vn().memoizedState;return[typeof a=="boolean"?a:gf(a),i]},useSyncExternalStore:Mw,useId:o8,useHostTransitionStatus:oy,useFormState:Fw,useActionState:Fw,useOptimistic:function(a,i){var c=vn();return zw(c,$r,a,i)},useMemoCache:J1,useCacheRefresh:l8},GR={readContext:Qn,use:Hp,useCallback:t8,useContext:Qn,useEffect:Yw,useImperativeHandle:e8,useInsertionEffect:Qw,useLayoutEffect:Xw,useMemo:r8,useReducer:ty,useRef:Kw,useState:function(){return ty(hi)},useDebugValue:ay,useDeferredValue:function(a,i){var c=vn();return $r===null?sy(c,a,i):n8(c,$r.memoizedState,a,i)},useTransition:function(){var a=ty(hi)[0],i=vn().memoizedState;return[typeof a=="boolean"?a:gf(a),i]},useSyncExternalStore:Mw,useId:o8,useHostTransitionStatus:oy,useFormState:Gw,useActionState:Gw,useOptimistic:function(a,i){var c=vn();return $r!==null?zw(c,$r,a,i):(c.baseState=a,[a,c.queue.dispatch])},useMemoCache:J1,useCacheRefresh:l8},hc=null,vf=0;function Kp(a){var i=vf;return vf+=1,hc===null&&(hc=[]),$w(hc,a,i)}function Sf(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function Wp(a,i){throw i.$$typeof===m?Error(n(525)):(a=Object.prototype.toString.call(i),Error(n(31,a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)))}function p8(a){var i=a._init;return i(a._payload)}function m8(a){function i(ie,te){if(a){var oe=ie.deletions;oe===null?(ie.deletions=[te],ie.flags|=16):oe.push(te)}}function c(ie,te){if(!a)return null;for(;te!==null;)i(ie,te),te=te.sibling;return null}function f(ie){for(var te=new Map;ie!==null;)ie.key!==null?te.set(ie.key,ie):te.set(ie.index,ie),ie=ie.sibling;return te}function y(ie,te){return ie=li(ie,te),ie.index=0,ie.sibling=null,ie}function v(ie,te,oe){return ie.index=oe,a?(oe=ie.alternate,oe!==null?(oe=oe.index,oe<te?(ie.flags|=67108866,te):oe):(ie.flags|=67108866,te)):(ie.flags|=1048576,te)}function A(ie){return a&&ie.alternate===null&&(ie.flags|=67108866),ie}function D(ie,te,oe,be){return te===null||te.tag!==6?(te=A1(oe,ie.mode,be),te.return=ie,te):(te=y(te,oe),te.return=ie,te)}function K(ie,te,oe,be){var Ke=oe.type;return Ke===x?ye(ie,te,oe.props.children,be,oe.key):te!==null&&(te.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===N&&p8(Ke)===te.type)?(te=y(te,oe.props),Sf(te,oe),te.return=ie,te):(te=Op(oe.type,oe.key,oe.props,null,ie.mode,be),Sf(te,oe),te.return=ie,te)}function le(ie,te,oe,be){return te===null||te.tag!==4||te.stateNode.containerInfo!==oe.containerInfo||te.stateNode.implementation!==oe.implementation?(te=R1(oe,ie.mode,be),te.return=ie,te):(te=y(te,oe.children||[]),te.return=ie,te)}function ye(ie,te,oe,be,Ke){return te===null||te.tag!==7?(te=el(oe,ie.mode,be,Ke),te.return=ie,te):(te=y(te,oe),te.return=ie,te)}function we(ie,te,oe){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return te=A1(""+te,ie.mode,oe),te.return=ie,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case b:return oe=Op(te.type,te.key,te.props,null,ie.mode,oe),Sf(oe,te),oe.return=ie,oe;case S:return te=R1(te,ie.mode,oe),te.return=ie,te;case N:var be=te._init;return te=be(te._payload),we(ie,te,oe)}if(ae(te)||q(te))return te=el(te,ie.mode,oe,null),te.return=ie,te;if(typeof te.then=="function")return we(ie,Kp(te),oe);if(te.$$typeof===T)return we(ie,Pp(ie,te),oe);Wp(ie,te)}return null}function ue(ie,te,oe,be){var Ke=te!==null?te.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return Ke!==null?null:D(ie,te,""+oe,be);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case b:return oe.key===Ke?K(ie,te,oe,be):null;case S:return oe.key===Ke?le(ie,te,oe,be):null;case N:return Ke=oe._init,oe=Ke(oe._payload),ue(ie,te,oe,be)}if(ae(oe)||q(oe))return Ke!==null?null:ye(ie,te,oe,be,null);if(typeof oe.then=="function")return ue(ie,te,Kp(oe),be);if(oe.$$typeof===T)return ue(ie,te,Pp(ie,oe),be);Wp(ie,oe)}return null}function de(ie,te,oe,be,Ke){if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return ie=ie.get(oe)||null,D(te,ie,""+be,Ke);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case b:return ie=ie.get(be.key===null?oe:be.key)||null,K(te,ie,be,Ke);case S:return ie=ie.get(be.key===null?oe:be.key)||null,le(te,ie,be,Ke);case N:var Nt=be._init;return be=Nt(be._payload),de(ie,te,oe,be,Ke)}if(ae(be)||q(be))return ie=ie.get(oe)||null,ye(te,ie,be,Ke,null);if(typeof be.then=="function")return de(ie,te,oe,Kp(be),Ke);if(be.$$typeof===T)return de(ie,te,oe,Pp(te,be),Ke);Wp(te,be)}return null}function ut(ie,te,oe,be){for(var Ke=null,Nt=null,tt=te,lt=te=0,On=null;tt!==null&&lt<oe.length;lt++){tt.index>lt?(On=tt,tt=null):On=tt.sibling;var sr=ue(ie,tt,oe[lt],be);if(sr===null){tt===null&&(tt=On);break}a&&tt&&sr.alternate===null&&i(ie,tt),te=v(sr,te,lt),Nt===null?Ke=sr:Nt.sibling=sr,Nt=sr,tt=On}if(lt===oe.length)return c(ie,tt),cr&&rl(ie,lt),Ke;if(tt===null){for(;lt<oe.length;lt++)tt=we(ie,oe[lt],be),tt!==null&&(te=v(tt,te,lt),Nt===null?Ke=tt:Nt.sibling=tt,Nt=tt);return cr&&rl(ie,lt),Ke}for(tt=f(tt);lt<oe.length;lt++)On=de(tt,ie,lt,oe[lt],be),On!==null&&(a&&On.alternate!==null&&tt.delete(On.key===null?lt:On.key),te=v(On,te,lt),Nt===null?Ke=On:Nt.sibling=On,Nt=On);return a&&tt.forEach(function(Eo){return i(ie,Eo)}),cr&&rl(ie,lt),Ke}function ot(ie,te,oe,be){if(oe==null)throw Error(n(151));for(var Ke=null,Nt=null,tt=te,lt=te=0,On=null,sr=oe.next();tt!==null&&!sr.done;lt++,sr=oe.next()){tt.index>lt?(On=tt,tt=null):On=tt.sibling;var Eo=ue(ie,tt,sr.value,be);if(Eo===null){tt===null&&(tt=On);break}a&&tt&&Eo.alternate===null&&i(ie,tt),te=v(Eo,te,lt),Nt===null?Ke=Eo:Nt.sibling=Eo,Nt=Eo,tt=On}if(sr.done)return c(ie,tt),cr&&rl(ie,lt),Ke;if(tt===null){for(;!sr.done;lt++,sr=oe.next())sr=we(ie,sr.value,be),sr!==null&&(te=v(sr,te,lt),Nt===null?Ke=sr:Nt.sibling=sr,Nt=sr);return cr&&rl(ie,lt),Ke}for(tt=f(tt);!sr.done;lt++,sr=oe.next())sr=de(tt,ie,lt,sr.value,be),sr!==null&&(a&&sr.alternate!==null&&tt.delete(sr.key===null?lt:sr.key),te=v(sr,te,lt),Nt===null?Ke=sr:Nt.sibling=sr,Nt=sr);return a&&tt.forEach(function(KO){return i(ie,KO)}),cr&&rl(ie,lt),Ke}function Er(ie,te,oe,be){if(typeof oe=="object"&&oe!==null&&oe.type===x&&oe.key===null&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case b:e:{for(var Ke=oe.key;te!==null;){if(te.key===Ke){if(Ke=oe.type,Ke===x){if(te.tag===7){c(ie,te.sibling),be=y(te,oe.props.children),be.return=ie,ie=be;break e}}else if(te.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===N&&p8(Ke)===te.type){c(ie,te.sibling),be=y(te,oe.props),Sf(be,oe),be.return=ie,ie=be;break e}c(ie,te);break}else i(ie,te);te=te.sibling}oe.type===x?(be=el(oe.props.children,ie.mode,be,oe.key),be.return=ie,ie=be):(be=Op(oe.type,oe.key,oe.props,null,ie.mode,be),Sf(be,oe),be.return=ie,ie=be)}return A(ie);case S:e:{for(Ke=oe.key;te!==null;){if(te.key===Ke)if(te.tag===4&&te.stateNode.containerInfo===oe.containerInfo&&te.stateNode.implementation===oe.implementation){c(ie,te.sibling),be=y(te,oe.children||[]),be.return=ie,ie=be;break e}else{c(ie,te);break}else i(ie,te);te=te.sibling}be=R1(oe,ie.mode,be),be.return=ie,ie=be}return A(ie);case N:return Ke=oe._init,oe=Ke(oe._payload),Er(ie,te,oe,be)}if(ae(oe))return ut(ie,te,oe,be);if(q(oe)){if(Ke=q(oe),typeof Ke!="function")throw Error(n(150));return oe=Ke.call(oe),ot(ie,te,oe,be)}if(typeof oe.then=="function")return Er(ie,te,Kp(oe),be);if(oe.$$typeof===T)return Er(ie,te,Pp(ie,oe),be);Wp(ie,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint"?(oe=""+oe,te!==null&&te.tag===6?(c(ie,te.sibling),be=y(te,oe),be.return=ie,ie=be):(c(ie,te),be=A1(oe,ie.mode,be),be.return=ie,ie=be),A(ie)):c(ie,te)}return function(ie,te,oe,be){try{vf=0;var Ke=Er(ie,te,oe,be);return hc=null,Ke}catch(tt){if(tt===uf||tt===Dp)throw tt;var Nt=za(29,tt,null,ie.mode);return Nt.lanes=be,Nt.return=ie,Nt}finally{}}}var pc=m8(!0),g8=m8(!1),rs=J(null),Vs=null;function uo(a){var i=a.alternate;ce($n,$n.current&1),ce(rs,a),Vs===null&&(i===null||cc.current!==null||i.memoizedState!==null)&&(Vs=a)}function y8(a){if(a.tag===22){if(ce($n,$n.current),ce(rs,a),Vs===null){var i=a.alternate;i!==null&&i.memoizedState!==null&&(Vs=a)}}else fo()}function fo(){ce($n,$n.current),ce(rs,rs.current)}function pi(a){fe(rs),Vs===a&&(Vs=null),fe($n)}var $n=J(0);function Yp(a){for(var i=a;i!==null;){if(i.tag===13){var c=i.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||Xy(c)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function cy(a,i,c,f){i=a.memoizedState,c=c(f,i),c=c==null?i:p({},i,c),a.memoizedState=c,a.lanes===0&&(a.updateQueue.baseState=c)}var uy={enqueueSetState:function(a,i,c){a=a._reactInternals;var f=Ha(),y=oo(f);y.payload=i,c!=null&&(y.callback=c),i=lo(a,y,f),i!==null&&(Za(i,a,f),ff(i,a,f))},enqueueReplaceState:function(a,i,c){a=a._reactInternals;var f=Ha(),y=oo(f);y.tag=1,y.payload=i,c!=null&&(y.callback=c),i=lo(a,y,f),i!==null&&(Za(i,a,f),ff(i,a,f))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var c=Ha(),f=oo(c);f.tag=2,i!=null&&(f.callback=i),i=lo(a,f,c),i!==null&&(Za(i,a,c),ff(i,a,c))}};function b8(a,i,c,f,y,v,A){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(f,v,A):i.prototype&&i.prototype.isPureReactComponent?!tf(c,f)||!tf(y,v):!0}function v8(a,i,c,f){a=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(c,f),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(c,f),i.state!==a&&uy.enqueueReplaceState(i,i.state,null)}function cl(a,i){var c=i;if("ref"in i){c={};for(var f in i)f!=="ref"&&(c[f]=i[f])}if(a=a.defaultProps){c===i&&(c=p({},c));for(var y in a)c[y]===void 0&&(c[y]=a[y])}return c}var Qp=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function S8(a){Qp(a)}function x8(a){console.error(a)}function w8(a){Qp(a)}function Xp(a,i){try{var c=a.onUncaughtError;c(i.value,{componentStack:i.stack})}catch(f){setTimeout(function(){throw f})}}function C8(a,i,c){try{var f=a.onCaughtError;f(c.value,{componentStack:c.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function dy(a,i,c){return c=oo(c),c.tag=3,c.payload={element:null},c.callback=function(){Xp(a,i)},c}function $8(a){return a=oo(a),a.tag=3,a}function k8(a,i,c,f){var y=c.type.getDerivedStateFromError;if(typeof y=="function"){var v=f.value;a.payload=function(){return y(v)},a.callback=function(){C8(i,c,f)}}var A=c.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(a.callback=function(){C8(i,c,f),typeof y!="function"&&(bo===null?bo=new Set([this]):bo.add(this));var D=f.stack;this.componentDidCatch(f.value,{componentStack:D!==null?D:""})})}function KR(a,i,c,f,y){if(c.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(i=c.alternate,i!==null&&of(i,c,y,!0),c=rs.current,c!==null){switch(c.tag){case 13:return Vs===null?Py():c.alternate===null&&rn===0&&(rn=3),c.flags&=-257,c.flags|=65536,c.lanes=y,f===B1?c.flags|=16384:(i=c.updateQueue,i===null?c.updateQueue=new Set([f]):i.add(f),Dy(a,f,y)),!1;case 22:return c.flags|=65536,f===B1?c.flags|=16384:(i=c.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([f])},c.updateQueue=i):(c=i.retryQueue,c===null?i.retryQueue=new Set([f]):c.add(f)),Dy(a,f,y)),!1}throw Error(n(435,c.tag))}return Dy(a,f,y),Py(),!1}if(cr)return i=rs.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=y,f!==N1&&(a=Error(n(422),{cause:f}),sf(Xa(a,c)))):(f!==N1&&(i=Error(n(423),{cause:f}),sf(Xa(i,c))),a=a.current.alternate,a.flags|=65536,y&=-y,a.lanes|=y,f=Xa(f,c),y=dy(a.stateNode,f,y),Z1(a,y),rn!==4&&(rn=2)),!1;var v=Error(n(520),{cause:f});if(v=Xa(v,c),_f===null?_f=[v]:_f.push(v),rn!==4&&(rn=2),i===null)return!0;f=Xa(f,c),c=i;do{switch(c.tag){case 3:return c.flags|=65536,a=y&-y,c.lanes|=a,a=dy(c.stateNode,f,a),Z1(c,a),!1;case 1:if(i=c.type,v=c.stateNode,(c.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(bo===null||!bo.has(v))))return c.flags|=65536,y&=-y,c.lanes|=y,y=$8(y),k8(y,a,c,f),Z1(c,y),!1}c=c.return}while(c!==null);return!1}var E8=Error(n(461)),An=!1;function Zn(a,i,c,f){i.child=a===null?g8(i,null,c,f):pc(i,a.child,c,f)}function _8(a,i,c,f,y){c=c.render;var v=i.ref;if("ref"in f){var A={};for(var D in f)D!=="ref"&&(A[D]=f[D])}else A=f;return il(i),f=K1(a,i,c,A,v,y),D=W1(),a!==null&&!An?(Y1(a,i,y),mi(a,i,y)):(cr&&D&&O1(i),i.flags|=1,Zn(a,i,f,y),i.child)}function T8(a,i,c,f,y){if(a===null){var v=c.type;return typeof v=="function"&&!T1(v)&&v.defaultProps===void 0&&c.compare===null?(i.tag=15,i.type=v,A8(a,i,v,f,y)):(a=Op(c.type,null,f,i,i.mode,y),a.ref=i.ref,a.return=i,i.child=a)}if(v=a.child,!vy(a,y)){var A=v.memoizedProps;if(c=c.compare,c=c!==null?c:tf,c(A,f)&&a.ref===i.ref)return mi(a,i,y)}return i.flags|=1,a=li(v,f),a.ref=i.ref,a.return=i,i.child=a}function A8(a,i,c,f,y){if(a!==null){var v=a.memoizedProps;if(tf(v,f)&&a.ref===i.ref)if(An=!1,i.pendingProps=f=v,vy(a,y))(a.flags&131072)!==0&&(An=!0);else return i.lanes=a.lanes,mi(a,i,y)}return fy(a,i,c,f,y)}function R8(a,i,c){var f=i.pendingProps,y=f.children,v=a!==null?a.memoizedState:null;if(f.mode==="hidden"){if((i.flags&128)!==0){if(f=v!==null?v.baseLanes|c:c,a!==null){for(y=i.child=a.child,v=0;y!==null;)v=v|y.lanes|y.childLanes,y=y.sibling;i.childLanes=v&~f}else i.childLanes=0,i.child=null;return O8(a,i,f,c)}if((c&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&Ip(i,v!==null?v.cachePool:null),v!==null?Aw(i,v):F1(),y8(i);else return i.lanes=i.childLanes=536870912,O8(a,i,v!==null?v.baseLanes|c:c,c)}else v!==null?(Ip(i,v.cachePool),Aw(i,v),fo(),i.memoizedState=null):(a!==null&&Ip(i,null),F1(),fo());return Zn(a,i,y,c),i.child}function O8(a,i,c,f){var y=j1();return y=y===null?null:{parent:Cn._currentValue,pool:y},i.memoizedState={baseLanes:c,cachePool:y},a!==null&&Ip(i,null),F1(),y8(i),a!==null&&of(a,i,f,!0),null}function Jp(a,i){var c=i.ref;if(c===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(n(284));(a===null||a.ref!==c)&&(i.flags|=4194816)}}function fy(a,i,c,f,y){return il(i),c=K1(a,i,c,f,void 0,y),f=W1(),a!==null&&!An?(Y1(a,i,y),mi(a,i,y)):(cr&&f&&O1(i),i.flags|=1,Zn(a,i,c,y),i.child)}function M8(a,i,c,f,y,v){return il(i),i.updateQueue=null,c=Ow(i,f,c,y),Rw(a),f=W1(),a!==null&&!An?(Y1(a,i,v),mi(a,i,v)):(cr&&f&&O1(i),i.flags|=1,Zn(a,i,c,v),i.child)}function N8(a,i,c,f,y){if(il(i),i.stateNode===null){var v=ac,A=c.contextType;typeof A=="object"&&A!==null&&(v=Qn(A)),v=new c(f,v),i.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=uy,i.stateNode=v,v._reactInternals=i,v=i.stateNode,v.props=f,v.state=i.memoizedState,v.refs={},U1(i),A=c.contextType,v.context=typeof A=="object"&&A!==null?Qn(A):ac,v.state=i.memoizedState,A=c.getDerivedStateFromProps,typeof A=="function"&&(cy(i,c,A,f),v.state=i.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(A=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),A!==v.state&&uy.enqueueReplaceState(v,v.state,null),pf(i,f,v,y),hf(),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308),f=!0}else if(a===null){v=i.stateNode;var D=i.memoizedProps,K=cl(c,D);v.props=K;var le=v.context,ye=c.contextType;A=ac,typeof ye=="object"&&ye!==null&&(A=Qn(ye));var we=c.getDerivedStateFromProps;ye=typeof we=="function"||typeof v.getSnapshotBeforeUpdate=="function",D=i.pendingProps!==D,ye||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(D||le!==A)&&v8(i,v,f,A),io=!1;var ue=i.memoizedState;v.state=ue,pf(i,f,v,y),hf(),le=i.memoizedState,D||ue!==le||io?(typeof we=="function"&&(cy(i,c,we,f),le=i.memoizedState),(K=io||b8(i,c,K,f,ue,le,A))?(ye||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(i.flags|=4194308)):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=le),v.props=f,v.state=le,v.context=A,f=K):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{v=i.stateNode,H1(a,i),A=i.memoizedProps,ye=cl(c,A),v.props=ye,we=i.pendingProps,ue=v.context,le=c.contextType,K=ac,typeof le=="object"&&le!==null&&(K=Qn(le)),D=c.getDerivedStateFromProps,(le=typeof D=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(A!==we||ue!==K)&&v8(i,v,f,K),io=!1,ue=i.memoizedState,v.state=ue,pf(i,f,v,y),hf();var de=i.memoizedState;A!==we||ue!==de||io||a!==null&&a.dependencies!==null&&Lp(a.dependencies)?(typeof D=="function"&&(cy(i,c,D,f),de=i.memoizedState),(ye=io||b8(i,c,ye,f,ue,de,K)||a!==null&&a.dependencies!==null&&Lp(a.dependencies))?(le||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(f,de,K),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(f,de,K)),typeof v.componentDidUpdate=="function"&&(i.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof v.componentDidUpdate!="function"||A===a.memoizedProps&&ue===a.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||A===a.memoizedProps&&ue===a.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=de),v.props=f,v.state=de,v.context=K,f=ye):(typeof v.componentDidUpdate!="function"||A===a.memoizedProps&&ue===a.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||A===a.memoizedProps&&ue===a.memoizedState||(i.flags|=1024),f=!1)}return v=f,Jp(a,i),f=(i.flags&128)!==0,v||f?(v=i.stateNode,c=f&&typeof c.getDerivedStateFromError!="function"?null:v.render(),i.flags|=1,a!==null&&f?(i.child=pc(i,a.child,null,y),i.child=pc(i,null,c,y)):Zn(a,i,c,y),i.memoizedState=v.state,a=i.child):a=mi(a,i,y),a}function L8(a,i,c,f){return af(),i.flags|=256,Zn(a,i,c,f),i.child}var hy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function py(a){return{baseLanes:a,cachePool:xw()}}function my(a,i,c){return a=a!==null?a.childLanes&~c:0,i&&(a|=ns),a}function P8(a,i,c){var f=i.pendingProps,y=!1,v=(i.flags&128)!==0,A;if((A=v)||(A=a!==null&&a.memoizedState===null?!1:($n.current&2)!==0),A&&(y=!0,i.flags&=-129),A=(i.flags&32)!==0,i.flags&=-33,a===null){if(cr){if(y?uo(i):fo(),cr){var D=tn,K;if(K=D){e:{for(K=D,D=Zs;K.nodeType!==8;){if(!D){D=null;break e}if(K=Cs(K.nextSibling),K===null){D=null;break e}}D=K}D!==null?(i.memoizedState={dehydrated:D,treeContext:tl!==null?{id:ci,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},K=za(18,null,null,0),K.stateNode=D,K.return=i,i.child=K,da=i,tn=null,K=!0):K=!1}K||al(i)}if(D=i.memoizedState,D!==null&&(D=D.dehydrated,D!==null))return Xy(D)?i.lanes=32:i.lanes=536870912,null;pi(i)}return D=f.children,f=f.fallback,y?(fo(),y=i.mode,D=em({mode:"hidden",children:D},y),f=el(f,y,c,null),D.return=i,f.return=i,D.sibling=f,i.child=D,y=i.child,y.memoizedState=py(c),y.childLanes=my(a,A,c),i.memoizedState=hy,f):(uo(i),gy(i,D))}if(K=a.memoizedState,K!==null&&(D=K.dehydrated,D!==null)){if(v)i.flags&256?(uo(i),i.flags&=-257,i=yy(a,i,c)):i.memoizedState!==null?(fo(),i.child=a.child,i.flags|=128,i=null):(fo(),y=f.fallback,D=i.mode,f=em({mode:"visible",children:f.children},D),y=el(y,D,c,null),y.flags|=2,f.return=i,y.return=i,f.sibling=y,i.child=f,pc(i,a.child,null,c),f=i.child,f.memoizedState=py(c),f.childLanes=my(a,A,c),i.memoizedState=hy,i=y);else if(uo(i),Xy(D)){if(A=D.nextSibling&&D.nextSibling.dataset,A)var le=A.dgst;A=le,f=Error(n(419)),f.stack="",f.digest=A,sf({value:f,source:null,stack:null}),i=yy(a,i,c)}else if(An||of(a,i,c,!1),A=(c&a.childLanes)!==0,An||A){if(A=Ir,A!==null&&(f=c&-c,f=(f&42)!==0?1:gn(f),f=(f&(A.suspendedLanes|c))!==0?0:f,f!==0&&f!==K.retryLane))throw K.retryLane=f,nc(a,f),Za(A,a,f),E8;D.data==="$?"||Py(),i=yy(a,i,c)}else D.data==="$?"?(i.flags|=192,i.child=a.child,i=null):(a=K.treeContext,tn=Cs(D.nextSibling),da=i,cr=!0,nl=null,Zs=!1,a!==null&&(es[ts++]=ci,es[ts++]=ui,es[ts++]=tl,ci=a.id,ui=a.overflow,tl=i),i=gy(i,f.children),i.flags|=4096);return i}return y?(fo(),y=f.fallback,D=i.mode,K=a.child,le=K.sibling,f=li(K,{mode:"hidden",children:f.children}),f.subtreeFlags=K.subtreeFlags&65011712,le!==null?y=li(le,y):(y=el(y,D,c,null),y.flags|=2),y.return=i,f.return=i,f.sibling=y,i.child=f,f=y,y=i.child,D=a.child.memoizedState,D===null?D=py(c):(K=D.cachePool,K!==null?(le=Cn._currentValue,K=K.parent!==le?{parent:le,pool:le}:K):K=xw(),D={baseLanes:D.baseLanes|c,cachePool:K}),y.memoizedState=D,y.childLanes=my(a,A,c),i.memoizedState=hy,f):(uo(i),c=a.child,a=c.sibling,c=li(c,{mode:"visible",children:f.children}),c.return=i,c.sibling=null,a!==null&&(A=i.deletions,A===null?(i.deletions=[a],i.flags|=16):A.push(a)),i.child=c,i.memoizedState=null,c)}function gy(a,i){return i=em({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function em(a,i){return a=za(22,a,null,i),a.lanes=0,a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},a}function yy(a,i,c){return pc(i,a.child,null,c),a=gy(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function I8(a,i,c){a.lanes|=i;var f=a.alternate;f!==null&&(f.lanes|=i),P1(a.return,i,c)}function by(a,i,c,f,y){var v=a.memoizedState;v===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:c,tailMode:y}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=f,v.tail=c,v.tailMode=y)}function D8(a,i,c){var f=i.pendingProps,y=f.revealOrder,v=f.tail;if(Zn(a,i,f.children,c),f=$n.current,(f&2)!==0)f=f&1|2,i.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&I8(a,c,i);else if(a.tag===19)I8(a,c,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}f&=1}switch(ce($n,f),y){case"forwards":for(c=i.child,y=null;c!==null;)a=c.alternate,a!==null&&Yp(a)===null&&(y=c),c=c.sibling;c=y,c===null?(y=i.child,i.child=null):(y=c.sibling,c.sibling=null),by(i,!1,y,c,v);break;case"backwards":for(c=null,y=i.child,i.child=null;y!==null;){if(a=y.alternate,a!==null&&Yp(a)===null){i.child=y;break}a=y.sibling,y.sibling=c,c=y,y=a}by(i,!0,c,null,v);break;case"together":by(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function mi(a,i,c){if(a!==null&&(i.dependencies=a.dependencies),yo|=i.lanes,(c&i.childLanes)===0)if(a!==null){if(of(a,i,c,!1),(c&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error(n(153));if(i.child!==null){for(a=i.child,c=li(a,a.pendingProps),i.child=c,c.return=i;a.sibling!==null;)a=a.sibling,c=c.sibling=li(a,a.pendingProps),c.return=i;c.sibling=null}return i.child}function vy(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&Lp(a)))}function WR(a,i,c){switch(i.tag){case 3:Oe(i,i.stateNode.containerInfo),so(i,Cn,a.memoizedState.cache),af();break;case 27:case 5:Ne(i);break;case 4:Oe(i,i.stateNode.containerInfo);break;case 10:so(i,i.type,i.memoizedProps.value);break;case 13:var f=i.memoizedState;if(f!==null)return f.dehydrated!==null?(uo(i),i.flags|=128,null):(c&i.child.childLanes)!==0?P8(a,i,c):(uo(i),a=mi(a,i,c),a!==null?a.sibling:null);uo(i);break;case 19:var y=(a.flags&128)!==0;if(f=(c&i.childLanes)!==0,f||(of(a,i,c,!1),f=(c&i.childLanes)!==0),y){if(f)return D8(a,i,c);i.flags|=128}if(y=i.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),ce($n,$n.current),f)break;return null;case 22:case 23:return i.lanes=0,R8(a,i,c);case 24:so(i,Cn,a.memoizedState.cache)}return mi(a,i,c)}function z8(a,i,c){if(a!==null)if(a.memoizedProps!==i.pendingProps)An=!0;else{if(!vy(a,c)&&(i.flags&128)===0)return An=!1,WR(a,i,c);An=(a.flags&131072)!==0}else An=!1,cr&&(i.flags&1048576)!==0&&pw(i,Np,i.index);switch(i.lanes=0,i.tag){case 16:e:{a=i.pendingProps;var f=i.elementType,y=f._init;if(f=y(f._payload),i.type=f,typeof f=="function")T1(f)?(a=cl(f,a),i.tag=1,i=N8(null,i,f,a,c)):(i.tag=0,i=fy(null,i,f,a,c));else{if(f!=null){if(y=f.$$typeof,y===R){i.tag=11,i=_8(null,i,f,a,c);break e}else if(y===O){i.tag=14,i=T8(null,i,f,a,c);break e}}throw i=W(f)||f,Error(n(306,i,""))}}return i;case 0:return fy(a,i,i.type,i.pendingProps,c);case 1:return f=i.type,y=cl(f,i.pendingProps),N8(a,i,f,y,c);case 3:e:{if(Oe(i,i.stateNode.containerInfo),a===null)throw Error(n(387));f=i.pendingProps;var v=i.memoizedState;y=v.element,H1(a,i),pf(i,f,null,c);var A=i.memoizedState;if(f=A.cache,so(i,Cn,f),f!==v.cache&&I1(i,[Cn],c,!0),hf(),f=A.element,v.isDehydrated)if(v={element:f,isDehydrated:!1,cache:A.cache},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){i=L8(a,i,f,c);break e}else if(f!==y){y=Xa(Error(n(424)),i),sf(y),i=L8(a,i,f,c);break e}else{switch(a=i.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(tn=Cs(a.firstChild),da=i,cr=!0,nl=null,Zs=!0,c=g8(i,null,f,c),i.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(af(),f===y){i=mi(a,i,c);break e}Zn(a,i,f,c)}i=i.child}return i;case 26:return Jp(a,i),a===null?(c=H6(i.type,null,i.pendingProps,null))?i.memoizedState=c:cr||(c=i.type,a=i.pendingProps,f=pm(me.current).createElement(c),f[Ge]=i,f[kt]=a,Fn(f,c,a),zr(f),i.stateNode=f):i.memoizedState=H6(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return Ne(i),a===null&&cr&&(f=i.stateNode=j6(i.type,i.pendingProps,me.current),da=i,Zs=!0,y=tn,xo(i.type)?(Jy=y,tn=Cs(f.firstChild)):tn=y),Zn(a,i,i.pendingProps.children,c),Jp(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&cr&&((y=f=tn)&&(f=CO(f,i.type,i.pendingProps,Zs),f!==null?(i.stateNode=f,da=i,tn=Cs(f.firstChild),Zs=!1,y=!0):y=!1),y||al(i)),Ne(i),y=i.type,v=i.pendingProps,A=a!==null?a.memoizedProps:null,f=v.children,Wy(y,v)?f=null:A!==null&&Wy(y,A)&&(i.flags|=32),i.memoizedState!==null&&(y=K1(a,i,UR,null,null,c),If._currentValue=y),Jp(a,i),Zn(a,i,f,c),i.child;case 6:return a===null&&cr&&((a=c=tn)&&(c=$O(c,i.pendingProps,Zs),c!==null?(i.stateNode=c,da=i,tn=null,a=!0):a=!1),a||al(i)),null;case 13:return P8(a,i,c);case 4:return Oe(i,i.stateNode.containerInfo),f=i.pendingProps,a===null?i.child=pc(i,null,f,c):Zn(a,i,f,c),i.child;case 11:return _8(a,i,i.type,i.pendingProps,c);case 7:return Zn(a,i,i.pendingProps,c),i.child;case 8:return Zn(a,i,i.pendingProps.children,c),i.child;case 12:return Zn(a,i,i.pendingProps.children,c),i.child;case 10:return f=i.pendingProps,so(i,i.type,f.value),Zn(a,i,f.children,c),i.child;case 9:return y=i.type._context,f=i.pendingProps.children,il(i),y=Qn(y),f=f(y),i.flags|=1,Zn(a,i,f,c),i.child;case 14:return T8(a,i,i.type,i.pendingProps,c);case 15:return A8(a,i,i.type,i.pendingProps,c);case 19:return D8(a,i,c);case 31:return f=i.pendingProps,c=i.mode,f={mode:f.mode,children:f.children},a===null?(c=em(f,c),c.ref=i.ref,i.child=c,c.return=i,i=c):(c=li(a.child,f),c.ref=i.ref,i.child=c,c.return=i,i=c),i;case 22:return R8(a,i,c);case 24:return il(i),f=Qn(Cn),a===null?(y=j1(),y===null&&(y=Ir,v=D1(),y.pooledCache=v,v.refCount++,v!==null&&(y.pooledCacheLanes|=c),y=v),i.memoizedState={parent:f,cache:y},U1(i),so(i,Cn,y)):((a.lanes&c)!==0&&(H1(a,i),pf(i,null,null,c),hf()),y=a.memoizedState,v=i.memoizedState,y.parent!==f?(y={parent:f,cache:f},i.memoizedState=y,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=y),so(i,Cn,f)):(f=v.cache,so(i,Cn,f),f!==y.cache&&I1(i,[Cn],c,!0))),Zn(a,i,i.pendingProps.children,c),i.child;case 29:throw i.pendingProps}throw Error(n(156,i.tag))}function gi(a){a.flags|=4}function j8(a,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!G6(i)){if(i=rs.current,i!==null&&((Yt&4194048)===Yt?Vs!==null:(Yt&62914560)!==Yt&&(Yt&536870912)===0||i!==Vs))throw df=B1,ww;a.flags|=8192}}function tm(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?mn():536870912,a.lanes|=i,bc|=i)}function xf(a,i){if(!cr)switch(a.tailMode){case"hidden":i=a.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?a.tail=null:c.sibling=null;break;case"collapsed":c=a.tail;for(var f=null;c!==null;)c.alternate!==null&&(f=c),c=c.sibling;f===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:f.sibling=null}}function Qr(a){var i=a.alternate!==null&&a.alternate.child===a.child,c=0,f=0;if(i)for(var y=a.child;y!==null;)c|=y.lanes|y.childLanes,f|=y.subtreeFlags&65011712,f|=y.flags&65011712,y.return=a,y=y.sibling;else for(y=a.child;y!==null;)c|=y.lanes|y.childLanes,f|=y.subtreeFlags,f|=y.flags,y.return=a,y=y.sibling;return a.subtreeFlags|=f,a.childLanes=c,i}function YR(a,i,c){var f=i.pendingProps;switch(M1(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qr(i),null;case 1:return Qr(i),null;case 3:return c=i.stateNode,f=null,a!==null&&(f=a.memoizedState.cache),i.memoizedState.cache!==f&&(i.flags|=2048),fi(Cn),Pe(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(a===null||a.child===null)&&(nf(i)?gi(i):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,yw())),Qr(i),null;case 26:return c=i.memoizedState,a===null?(gi(i),c!==null?(Qr(i),j8(i,c)):(Qr(i),i.flags&=-16777217)):c?c!==a.memoizedState?(gi(i),Qr(i),j8(i,c)):(Qr(i),i.flags&=-16777217):(a.memoizedProps!==f&&gi(i),Qr(i),i.flags&=-16777217),null;case 27:qe(i),c=me.current;var y=i.type;if(a!==null&&i.stateNode!=null)a.memoizedProps!==f&&gi(i);else{if(!f){if(i.stateNode===null)throw Error(n(166));return Qr(i),null}a=Ce.current,nf(i)?mw(i):(a=j6(y,f,c),i.stateNode=a,gi(i))}return Qr(i),null;case 5:if(qe(i),c=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==f&&gi(i);else{if(!f){if(i.stateNode===null)throw Error(n(166));return Qr(i),null}if(a=Ce.current,nf(i))mw(i);else{switch(y=pm(me.current),a){case 1:a=y.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:a=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":a=y.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":a=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":a=y.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof f.is=="string"?y.createElement("select",{is:f.is}):y.createElement("select"),f.multiple?a.multiple=!0:f.size&&(a.size=f.size);break;default:a=typeof f.is=="string"?y.createElement(c,{is:f.is}):y.createElement(c)}}a[Ge]=i,a[kt]=f;e:for(y=i.child;y!==null;){if(y.tag===5||y.tag===6)a.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===i)break e;for(;y.sibling===null;){if(y.return===null||y.return===i)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}i.stateNode=a;e:switch(Fn(a,c,f),c){case"button":case"input":case"select":case"textarea":a=!!f.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&gi(i)}}return Qr(i),i.flags&=-16777217,null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==f&&gi(i);else{if(typeof f!="string"&&i.stateNode===null)throw Error(n(166));if(a=me.current,nf(i)){if(a=i.stateNode,c=i.memoizedProps,f=null,y=da,y!==null)switch(y.tag){case 27:case 5:f=y.memoizedProps}a[Ge]=i,a=!!(a.nodeValue===c||f!==null&&f.suppressHydrationWarning===!0||M6(a.nodeValue,c)),a||al(i)}else a=pm(a).createTextNode(f),a[Ge]=i,i.stateNode=a}return Qr(i),null;case 13:if(f=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(y=nf(i),f!==null&&f.dehydrated!==null){if(a===null){if(!y)throw Error(n(318));if(y=i.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Ge]=i}else af(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Qr(i),y=!1}else y=yw(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=y),y=!0;if(!y)return i.flags&256?(pi(i),i):(pi(i),null)}if(pi(i),(i.flags&128)!==0)return i.lanes=c,i;if(c=f!==null,a=a!==null&&a.memoizedState!==null,c){f=i.child,y=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(y=f.alternate.memoizedState.cachePool.pool);var v=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),v!==y&&(f.flags|=2048)}return c!==a&&c&&(i.child.flags|=8192),tm(i,i.updateQueue),Qr(i),null;case 4:return Pe(),a===null&&Vy(i.stateNode.containerInfo),Qr(i),null;case 10:return fi(i.type),Qr(i),null;case 19:if(fe($n),y=i.memoizedState,y===null)return Qr(i),null;if(f=(i.flags&128)!==0,v=y.rendering,v===null)if(f)xf(y,!1);else{if(rn!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(v=Yp(a),v!==null){for(i.flags|=128,xf(y,!1),a=v.updateQueue,i.updateQueue=a,tm(i,a),i.subtreeFlags=0,a=c,c=i.child;c!==null;)hw(c,a),c=c.sibling;return ce($n,$n.current&1|2),i.child}a=a.sibling}y.tail!==null&&nt()>am&&(i.flags|=128,f=!0,xf(y,!1),i.lanes=4194304)}else{if(!f)if(a=Yp(v),a!==null){if(i.flags|=128,f=!0,a=a.updateQueue,i.updateQueue=a,tm(i,a),xf(y,!0),y.tail===null&&y.tailMode==="hidden"&&!v.alternate&&!cr)return Qr(i),null}else 2*nt()-y.renderingStartTime>am&&c!==536870912&&(i.flags|=128,f=!0,xf(y,!1),i.lanes=4194304);y.isBackwards?(v.sibling=i.child,i.child=v):(a=y.last,a!==null?a.sibling=v:i.child=v,y.last=v)}return y.tail!==null?(i=y.tail,y.rendering=i,y.tail=i.sibling,y.renderingStartTime=nt(),i.sibling=null,a=$n.current,ce($n,f?a&1|2:a&1),i):(Qr(i),null);case 22:case 23:return pi(i),q1(),f=i.memoizedState!==null,a!==null?a.memoizedState!==null!==f&&(i.flags|=8192):f&&(i.flags|=8192),f?(c&536870912)!==0&&(i.flags&128)===0&&(Qr(i),i.subtreeFlags&6&&(i.flags|=8192)):Qr(i),c=i.updateQueue,c!==null&&tm(i,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==c&&(i.flags|=2048),a!==null&&fe(ol),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),fi(Cn),Qr(i),null;case 25:return null;case 30:return null}throw Error(n(156,i.tag))}function QR(a,i){switch(M1(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return fi(Cn),Pe(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return qe(i),null;case 13:if(pi(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(n(340));af()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return fe($n),null;case 4:return Pe(),null;case 10:return fi(i.type),null;case 22:case 23:return pi(i),q1(),a!==null&&fe(ol),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 24:return fi(Cn),null;case 25:return null;default:return null}}function B8(a,i){switch(M1(i),i.tag){case 3:fi(Cn),Pe();break;case 26:case 27:case 5:qe(i);break;case 4:Pe();break;case 13:pi(i);break;case 19:fe($n);break;case 10:fi(i.type);break;case 22:case 23:pi(i),q1(),a!==null&&fe(ol);break;case 24:fi(Cn)}}function wf(a,i){try{var c=i.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var y=f.next;c=y;do{if((c.tag&a)===a){f=void 0;var v=c.create,A=c.inst;f=v(),A.destroy=f}c=c.next}while(c!==y)}}catch(D){Ar(i,i.return,D)}}function ho(a,i,c){try{var f=i.updateQueue,y=f!==null?f.lastEffect:null;if(y!==null){var v=y.next;f=v;do{if((f.tag&a)===a){var A=f.inst,D=A.destroy;if(D!==void 0){A.destroy=void 0,y=i;var K=c,le=D;try{le()}catch(ye){Ar(y,K,ye)}}}f=f.next}while(f!==v)}}catch(ye){Ar(i,i.return,ye)}}function U8(a){var i=a.updateQueue;if(i!==null){var c=a.stateNode;try{Tw(i,c)}catch(f){Ar(a,a.return,f)}}}function H8(a,i,c){c.props=cl(a.type,a.memoizedProps),c.state=a.memoizedState;try{c.componentWillUnmount()}catch(f){Ar(a,i,f)}}function Cf(a,i){try{var c=a.ref;if(c!==null){switch(a.tag){case 26:case 27:case 5:var f=a.stateNode;break;case 30:f=a.stateNode;break;default:f=a.stateNode}typeof c=="function"?a.refCleanup=c(f):c.current=f}}catch(y){Ar(a,i,y)}}function Fs(a,i){var c=a.ref,f=a.refCleanup;if(c!==null)if(typeof f=="function")try{f()}catch(y){Ar(a,i,y)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(y){Ar(a,i,y)}else c.current=null}function Z8(a){var i=a.type,c=a.memoizedProps,f=a.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":c.autoFocus&&f.focus();break e;case"img":c.src?f.src=c.src:c.srcSet&&(f.srcset=c.srcSet)}}catch(y){Ar(a,a.return,y)}}function Sy(a,i,c){try{var f=a.stateNode;bO(f,a.type,c,i),f[kt]=i}catch(y){Ar(a,a.return,y)}}function V8(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&xo(a.type)||a.tag===4}function xy(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||V8(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&xo(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function wy(a,i,c){var f=a.tag;if(f===5||f===6)a=a.stateNode,i?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(a,i):(i=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,i.appendChild(a),c=c._reactRootContainer,c!=null||i.onclick!==null||(i.onclick=hm));else if(f!==4&&(f===27&&xo(a.type)&&(c=a.stateNode,i=null),a=a.child,a!==null))for(wy(a,i,c),a=a.sibling;a!==null;)wy(a,i,c),a=a.sibling}function rm(a,i,c){var f=a.tag;if(f===5||f===6)a=a.stateNode,i?c.insertBefore(a,i):c.appendChild(a);else if(f!==4&&(f===27&&xo(a.type)&&(c=a.stateNode),a=a.child,a!==null))for(rm(a,i,c),a=a.sibling;a!==null;)rm(a,i,c),a=a.sibling}function F8(a){var i=a.stateNode,c=a.memoizedProps;try{for(var f=a.type,y=i.attributes;y.length;)i.removeAttributeNode(y[0]);Fn(i,f,c),i[Ge]=a,i[kt]=c}catch(v){Ar(a,a.return,v)}}var yi=!1,hn=!1,Cy=!1,q8=typeof WeakSet=="function"?WeakSet:Set,Rn=null;function XR(a,i){if(a=a.containerInfo,Gy=Sm,a=nw(a),x1(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else e:{c=(c=a.ownerDocument)&&c.defaultView||window;var f=c.getSelection&&c.getSelection();if(f&&f.rangeCount!==0){c=f.anchorNode;var y=f.anchorOffset,v=f.focusNode;f=f.focusOffset;try{c.nodeType,v.nodeType}catch{c=null;break e}var A=0,D=-1,K=-1,le=0,ye=0,we=a,ue=null;t:for(;;){for(var de;we!==c||y!==0&&we.nodeType!==3||(D=A+y),we!==v||f!==0&&we.nodeType!==3||(K=A+f),we.nodeType===3&&(A+=we.nodeValue.length),(de=we.firstChild)!==null;)ue=we,we=de;for(;;){if(we===a)break t;if(ue===c&&++le===y&&(D=A),ue===v&&++ye===f&&(K=A),(de=we.nextSibling)!==null)break;we=ue,ue=we.parentNode}we=de}c=D===-1||K===-1?null:{start:D,end:K}}else c=null}c=c||{start:0,end:0}}else c=null;for(Ky={focusedElem:a,selectionRange:c},Sm=!1,Rn=i;Rn!==null;)if(i=Rn,a=i.child,(i.subtreeFlags&1024)!==0&&a!==null)a.return=i,Rn=a;else for(;Rn!==null;){switch(i=Rn,v=i.alternate,a=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((a&1024)!==0&&v!==null){a=void 0,c=i,y=v.memoizedProps,v=v.memoizedState,f=c.stateNode;try{var ut=cl(c.type,y,c.elementType===c.type);a=f.getSnapshotBeforeUpdate(ut,v),f.__reactInternalSnapshotBeforeUpdate=a}catch(ot){Ar(c,c.return,ot)}}break;case 3:if((a&1024)!==0){if(a=i.stateNode.containerInfo,c=a.nodeType,c===9)Qy(a);else if(c===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Qy(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(n(163))}if(a=i.sibling,a!==null){a.return=i.return,Rn=a;break}Rn=i.return}}function G8(a,i,c){var f=c.flags;switch(c.tag){case 0:case 11:case 15:po(a,c),f&4&&wf(5,c);break;case 1:if(po(a,c),f&4)if(a=c.stateNode,i===null)try{a.componentDidMount()}catch(A){Ar(c,c.return,A)}else{var y=cl(c.type,i.memoizedProps);i=i.memoizedState;try{a.componentDidUpdate(y,i,a.__reactInternalSnapshotBeforeUpdate)}catch(A){Ar(c,c.return,A)}}f&64&&U8(c),f&512&&Cf(c,c.return);break;case 3:if(po(a,c),f&64&&(a=c.updateQueue,a!==null)){if(i=null,c.child!==null)switch(c.child.tag){case 27:case 5:i=c.child.stateNode;break;case 1:i=c.child.stateNode}try{Tw(a,i)}catch(A){Ar(c,c.return,A)}}break;case 27:i===null&&f&4&&F8(c);case 26:case 5:po(a,c),i===null&&f&4&&Z8(c),f&512&&Cf(c,c.return);break;case 12:po(a,c);break;case 13:po(a,c),f&4&&Y8(a,c),f&64&&(a=c.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(c=oO.bind(null,c),kO(a,c))));break;case 22:if(f=c.memoizedState!==null||yi,!f){i=i!==null&&i.memoizedState!==null||hn,y=yi;var v=hn;yi=f,(hn=i)&&!v?mo(a,c,(c.subtreeFlags&8772)!==0):po(a,c),yi=y,hn=v}break;case 30:break;default:po(a,c)}}function K8(a){var i=a.alternate;i!==null&&(a.alternate=null,K8(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&Mt(i)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var qr=null,Ea=!1;function bi(a,i,c){for(c=c.child;c!==null;)W8(a,i,c),c=c.sibling}function W8(a,i,c){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(ir,c)}catch{}switch(c.tag){case 26:hn||Fs(c,i),bi(a,i,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:hn||Fs(c,i);var f=qr,y=Ea;xo(c.type)&&(qr=c.stateNode,Ea=!1),bi(a,i,c),Mf(c.stateNode),qr=f,Ea=y;break;case 5:hn||Fs(c,i);case 6:if(f=qr,y=Ea,qr=null,bi(a,i,c),qr=f,Ea=y,qr!==null)if(Ea)try{(qr.nodeType===9?qr.body:qr.nodeName==="HTML"?qr.ownerDocument.body:qr).removeChild(c.stateNode)}catch(v){Ar(c,i,v)}else try{qr.removeChild(c.stateNode)}catch(v){Ar(c,i,v)}break;case 18:qr!==null&&(Ea?(a=qr,D6(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,c.stateNode),Bf(a)):D6(qr,c.stateNode));break;case 4:f=qr,y=Ea,qr=c.stateNode.containerInfo,Ea=!0,bi(a,i,c),qr=f,Ea=y;break;case 0:case 11:case 14:case 15:hn||ho(2,c,i),hn||ho(4,c,i),bi(a,i,c);break;case 1:hn||(Fs(c,i),f=c.stateNode,typeof f.componentWillUnmount=="function"&&H8(c,i,f)),bi(a,i,c);break;case 21:bi(a,i,c);break;case 22:hn=(f=hn)||c.memoizedState!==null,bi(a,i,c),hn=f;break;default:bi(a,i,c)}}function Y8(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Bf(a)}catch(c){Ar(i,i.return,c)}}function JR(a){switch(a.tag){case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new q8),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new q8),i;default:throw Error(n(435,a.tag))}}function $y(a,i){var c=JR(a);i.forEach(function(f){var y=lO.bind(null,a,f);c.has(f)||(c.add(f),f.then(y,y))})}function ja(a,i){var c=i.deletions;if(c!==null)for(var f=0;f<c.length;f++){var y=c[f],v=a,A=i,D=A;e:for(;D!==null;){switch(D.tag){case 27:if(xo(D.type)){qr=D.stateNode,Ea=!1;break e}break;case 5:qr=D.stateNode,Ea=!1;break e;case 3:case 4:qr=D.stateNode.containerInfo,Ea=!0;break e}D=D.return}if(qr===null)throw Error(n(160));W8(v,A,y),qr=null,Ea=!1,v=y.alternate,v!==null&&(v.return=null),y.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)Q8(i,a),i=i.sibling}var ws=null;function Q8(a,i){var c=a.alternate,f=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ja(i,a),Ba(a),f&4&&(ho(3,a,a.return),wf(3,a),ho(5,a,a.return));break;case 1:ja(i,a),Ba(a),f&512&&(hn||c===null||Fs(c,c.return)),f&64&&yi&&(a=a.updateQueue,a!==null&&(f=a.callbacks,f!==null&&(c=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=c===null?f:c.concat(f))));break;case 26:var y=ws;if(ja(i,a),Ba(a),f&512&&(hn||c===null||Fs(c,c.return)),f&4){var v=c!==null?c.memoizedState:null;if(f=a.memoizedState,c===null)if(f===null)if(a.stateNode===null){e:{f=a.type,c=a.memoizedProps,y=y.ownerDocument||y;t:switch(f){case"title":v=y.getElementsByTagName("title")[0],(!v||v[at]||v[Ge]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=y.createElement(f),y.head.insertBefore(v,y.querySelector("head > title"))),Fn(v,f,c),v[Ge]=a,zr(v),f=v;break e;case"link":var A=F6("link","href",y).get(f+(c.href||""));if(A){for(var D=0;D<A.length;D++)if(v=A[D],v.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&v.getAttribute("rel")===(c.rel==null?null:c.rel)&&v.getAttribute("title")===(c.title==null?null:c.title)&&v.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){A.splice(D,1);break t}}v=y.createElement(f),Fn(v,f,c),y.head.appendChild(v);break;case"meta":if(A=F6("meta","content",y).get(f+(c.content||""))){for(D=0;D<A.length;D++)if(v=A[D],v.getAttribute("content")===(c.content==null?null:""+c.content)&&v.getAttribute("name")===(c.name==null?null:c.name)&&v.getAttribute("property")===(c.property==null?null:c.property)&&v.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&v.getAttribute("charset")===(c.charSet==null?null:c.charSet)){A.splice(D,1);break t}}v=y.createElement(f),Fn(v,f,c),y.head.appendChild(v);break;default:throw Error(n(468,f))}v[Ge]=a,zr(v),f=v}a.stateNode=f}else q6(y,a.type,a.stateNode);else a.stateNode=V6(y,f,a.memoizedProps);else v!==f?(v===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):v.count--,f===null?q6(y,a.type,a.stateNode):V6(y,f,a.memoizedProps)):f===null&&a.stateNode!==null&&Sy(a,a.memoizedProps,c.memoizedProps)}break;case 27:ja(i,a),Ba(a),f&512&&(hn||c===null||Fs(c,c.return)),c!==null&&f&4&&Sy(a,a.memoizedProps,c.memoizedProps);break;case 5:if(ja(i,a),Ba(a),f&512&&(hn||c===null||Fs(c,c.return)),a.flags&32){y=a.stateNode;try{un(y,"")}catch(de){Ar(a,a.return,de)}}f&4&&a.stateNode!=null&&(y=a.memoizedProps,Sy(a,y,c!==null?c.memoizedProps:y)),f&1024&&(Cy=!0);break;case 6:if(ja(i,a),Ba(a),f&4){if(a.stateNode===null)throw Error(n(162));f=a.memoizedProps,c=a.stateNode;try{c.nodeValue=f}catch(de){Ar(a,a.return,de)}}break;case 3:if(ym=null,y=ws,ws=mm(i.containerInfo),ja(i,a),ws=y,Ba(a),f&4&&c!==null&&c.memoizedState.isDehydrated)try{Bf(i.containerInfo)}catch(de){Ar(a,a.return,de)}Cy&&(Cy=!1,X8(a));break;case 4:f=ws,ws=mm(a.stateNode.containerInfo),ja(i,a),Ba(a),ws=f;break;case 12:ja(i,a),Ba(a);break;case 13:ja(i,a),Ba(a),a.child.flags&8192&&a.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Ry=nt()),f&4&&(f=a.updateQueue,f!==null&&(a.updateQueue=null,$y(a,f)));break;case 22:y=a.memoizedState!==null;var K=c!==null&&c.memoizedState!==null,le=yi,ye=hn;if(yi=le||y,hn=ye||K,ja(i,a),hn=ye,yi=le,Ba(a),f&8192)e:for(i=a.stateNode,i._visibility=y?i._visibility&-2:i._visibility|1,y&&(c===null||K||yi||hn||ul(a)),c=null,i=a;;){if(i.tag===5||i.tag===26){if(c===null){K=c=i;try{if(v=K.stateNode,y)A=v.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{D=K.stateNode;var we=K.memoizedProps.style,ue=we!=null&&we.hasOwnProperty("display")?we.display:null;D.style.display=ue==null||typeof ue=="boolean"?"":(""+ue).trim()}}catch(de){Ar(K,K.return,de)}}}else if(i.tag===6){if(c===null){K=i;try{K.stateNode.nodeValue=y?"":K.memoizedProps}catch(de){Ar(K,K.return,de)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;c===i&&(c=null),i=i.return}c===i&&(c=null),i.sibling.return=i.return,i=i.sibling}f&4&&(f=a.updateQueue,f!==null&&(c=f.retryQueue,c!==null&&(f.retryQueue=null,$y(a,c))));break;case 19:ja(i,a),Ba(a),f&4&&(f=a.updateQueue,f!==null&&(a.updateQueue=null,$y(a,f)));break;case 30:break;case 21:break;default:ja(i,a),Ba(a)}}function Ba(a){var i=a.flags;if(i&2){try{for(var c,f=a.return;f!==null;){if(V8(f)){c=f;break}f=f.return}if(c==null)throw Error(n(160));switch(c.tag){case 27:var y=c.stateNode,v=xy(a);rm(a,v,y);break;case 5:var A=c.stateNode;c.flags&32&&(un(A,""),c.flags&=-33);var D=xy(a);rm(a,D,A);break;case 3:case 4:var K=c.stateNode.containerInfo,le=xy(a);wy(a,le,K);break;default:throw Error(n(161))}}catch(ye){Ar(a,a.return,ye)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function X8(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;X8(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function po(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)G8(a,i.alternate,i),i=i.sibling}function ul(a){for(a=a.child;a!==null;){var i=a;switch(i.tag){case 0:case 11:case 14:case 15:ho(4,i,i.return),ul(i);break;case 1:Fs(i,i.return);var c=i.stateNode;typeof c.componentWillUnmount=="function"&&H8(i,i.return,c),ul(i);break;case 27:Mf(i.stateNode);case 26:case 5:Fs(i,i.return),ul(i);break;case 22:i.memoizedState===null&&ul(i);break;case 30:ul(i);break;default:ul(i)}a=a.sibling}}function mo(a,i,c){for(c=c&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var f=i.alternate,y=a,v=i,A=v.flags;switch(v.tag){case 0:case 11:case 15:mo(y,v,c),wf(4,v);break;case 1:if(mo(y,v,c),f=v,y=f.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(le){Ar(f,f.return,le)}if(f=v,y=f.updateQueue,y!==null){var D=f.stateNode;try{var K=y.shared.hiddenCallbacks;if(K!==null)for(y.shared.hiddenCallbacks=null,y=0;y<K.length;y++)_w(K[y],D)}catch(le){Ar(f,f.return,le)}}c&&A&64&&U8(v),Cf(v,v.return);break;case 27:F8(v);case 26:case 5:mo(y,v,c),c&&f===null&&A&4&&Z8(v),Cf(v,v.return);break;case 12:mo(y,v,c);break;case 13:mo(y,v,c),c&&A&4&&Y8(y,v);break;case 22:v.memoizedState===null&&mo(y,v,c),Cf(v,v.return);break;case 30:break;default:mo(y,v,c)}i=i.sibling}}function ky(a,i){var c=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==c&&(a!=null&&a.refCount++,c!=null&&lf(c))}function Ey(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&lf(a))}function qs(a,i,c,f){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)J8(a,i,c,f),i=i.sibling}function J8(a,i,c,f){var y=i.flags;switch(i.tag){case 0:case 11:case 15:qs(a,i,c,f),y&2048&&wf(9,i);break;case 1:qs(a,i,c,f);break;case 3:qs(a,i,c,f),y&2048&&(a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&lf(a)));break;case 12:if(y&2048){qs(a,i,c,f),a=i.stateNode;try{var v=i.memoizedProps,A=v.id,D=v.onPostCommit;typeof D=="function"&&D(A,i.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(K){Ar(i,i.return,K)}}else qs(a,i,c,f);break;case 13:qs(a,i,c,f);break;case 23:break;case 22:v=i.stateNode,A=i.alternate,i.memoizedState!==null?v._visibility&2?qs(a,i,c,f):$f(a,i):v._visibility&2?qs(a,i,c,f):(v._visibility|=2,mc(a,i,c,f,(i.subtreeFlags&10256)!==0)),y&2048&&ky(A,i);break;case 24:qs(a,i,c,f),y&2048&&Ey(i.alternate,i);break;default:qs(a,i,c,f)}}function mc(a,i,c,f,y){for(y=y&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var v=a,A=i,D=c,K=f,le=A.flags;switch(A.tag){case 0:case 11:case 15:mc(v,A,D,K,y),wf(8,A);break;case 23:break;case 22:var ye=A.stateNode;A.memoizedState!==null?ye._visibility&2?mc(v,A,D,K,y):$f(v,A):(ye._visibility|=2,mc(v,A,D,K,y)),y&&le&2048&&ky(A.alternate,A);break;case 24:mc(v,A,D,K,y),y&&le&2048&&Ey(A.alternate,A);break;default:mc(v,A,D,K,y)}i=i.sibling}}function $f(a,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var c=a,f=i,y=f.flags;switch(f.tag){case 22:$f(c,f),y&2048&&ky(f.alternate,f);break;case 24:$f(c,f),y&2048&&Ey(f.alternate,f);break;default:$f(c,f)}i=i.sibling}}var kf=8192;function gc(a){if(a.subtreeFlags&kf)for(a=a.child;a!==null;)e6(a),a=a.sibling}function e6(a){switch(a.tag){case 26:gc(a),a.flags&kf&&a.memoizedState!==null&&zO(ws,a.memoizedState,a.memoizedProps);break;case 5:gc(a);break;case 3:case 4:var i=ws;ws=mm(a.stateNode.containerInfo),gc(a),ws=i;break;case 22:a.memoizedState===null&&(i=a.alternate,i!==null&&i.memoizedState!==null?(i=kf,kf=16777216,gc(a),kf=i):gc(a));break;default:gc(a)}}function t6(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function Ef(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var c=0;c<i.length;c++){var f=i[c];Rn=f,n6(f,a)}t6(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)r6(a),a=a.sibling}function r6(a){switch(a.tag){case 0:case 11:case 15:Ef(a),a.flags&2048&&ho(9,a,a.return);break;case 3:Ef(a);break;case 12:Ef(a);break;case 22:var i=a.stateNode;a.memoizedState!==null&&i._visibility&2&&(a.return===null||a.return.tag!==13)?(i._visibility&=-3,nm(a)):Ef(a);break;default:Ef(a)}}function nm(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var c=0;c<i.length;c++){var f=i[c];Rn=f,n6(f,a)}t6(a)}for(a=a.child;a!==null;){switch(i=a,i.tag){case 0:case 11:case 15:ho(8,i,i.return),nm(i);break;case 22:c=i.stateNode,c._visibility&2&&(c._visibility&=-3,nm(i));break;default:nm(i)}a=a.sibling}}function n6(a,i){for(;Rn!==null;){var c=Rn;switch(c.tag){case 0:case 11:case 15:ho(8,c,i);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var f=c.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:lf(c.memoizedState.cache)}if(f=c.child,f!==null)f.return=c,Rn=f;else e:for(c=a;Rn!==null;){f=Rn;var y=f.sibling,v=f.return;if(K8(f),f===c){Rn=null;break e}if(y!==null){y.return=v,Rn=y;break e}Rn=v}}}var eO={getCacheForType:function(a){var i=Qn(Cn),c=i.data.get(a);return c===void 0&&(c=a(),i.data.set(a,c)),c}},tO=typeof WeakMap=="function"?WeakMap:Map,Sr=0,Ir=null,jt=null,Yt=0,xr=0,Ua=null,go=!1,yc=!1,_y=!1,vi=0,rn=0,yo=0,dl=0,Ty=0,ns=0,bc=0,_f=null,_a=null,Ay=!1,Ry=0,am=1/0,sm=null,bo=null,Vn=0,vo=null,vc=null,Sc=0,Oy=0,My=null,a6=null,Tf=0,Ny=null;function Ha(){if((Sr&2)!==0&&Yt!==0)return Yt&-Yt;if(Z.T!==null){var a=oc;return a!==0?a:By()}return X()}function s6(){ns===0&&(ns=(Yt&536870912)===0||cr?nr():536870912);var a=rs.current;return a!==null&&(a.flags|=32),ns}function Za(a,i,c){(a===Ir&&(xr===2||xr===9)||a.cancelPendingCommit!==null)&&(xc(a,0),So(a,Yt,ns,!1)),Xr(a,c),((Sr&2)===0||a!==Ir)&&(a===Ir&&((Sr&2)===0&&(dl|=c),rn===4&&So(a,Yt,ns,!1)),Gs(a))}function i6(a,i,c){if((Sr&6)!==0)throw Error(n(327));var f=!c&&(i&124)===0&&(i&a.expiredLanes)===0||Ze(a,i),y=f?aO(a,i):Iy(a,i,!0),v=f;do{if(y===0){yc&&!f&&So(a,i,0,!1);break}else{if(c=a.current.alternate,v&&!rO(c)){y=Iy(a,i,!1),v=!1;continue}if(y===2){if(v=i,a.errorRecoveryDisabledLanes&v)var A=0;else A=a.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){i=A;e:{var D=a;y=_f;var K=D.current.memoizedState.isDehydrated;if(K&&(xc(D,A).flags|=256),A=Iy(D,A,!1),A!==2){if(_y&&!K){D.errorRecoveryDisabledLanes|=v,dl|=v,y=4;break e}v=_a,_a=y,v!==null&&(_a===null?_a=v:_a.push.apply(_a,v))}y=A}if(v=!1,y!==2)continue}}if(y===1){xc(a,0),So(a,i,0,!0);break}e:{switch(f=a,v=y,v){case 0:case 1:throw Error(n(345));case 4:if((i&4194048)!==i)break;case 6:So(f,i,ns,!go);break e;case 2:_a=null;break;case 3:case 5:break;default:throw Error(n(329))}if((i&62914560)===i&&(y=Ry+300-nt(),10<y)){if(So(f,i,ns,!go),wn(f,0,!0)!==0)break e;f.timeoutHandle=P6(o6.bind(null,f,c,_a,sm,Ay,i,ns,dl,bc,go,v,2,-0,0),y);break e}o6(f,c,_a,sm,Ay,i,ns,dl,bc,go,v,0,-0,0)}}break}while(!0);Gs(a)}function o6(a,i,c,f,y,v,A,D,K,le,ye,we,ue,de){if(a.timeoutHandle=-1,we=i.subtreeFlags,(we&8192||(we&16785408)===16785408)&&(Pf={stylesheets:null,count:0,unsuspend:DO},e6(i),we=jO(),we!==null)){a.cancelPendingCommit=we(p6.bind(null,a,i,v,c,f,y,A,D,K,ye,1,ue,de)),So(a,v,A,!le);return}p6(a,i,v,c,f,y,A,D,K)}function rO(a){for(var i=a;;){var c=i.tag;if((c===0||c===11||c===15)&&i.flags&16384&&(c=i.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var f=0;f<c.length;f++){var y=c[f],v=y.getSnapshot;y=y.value;try{if(!Da(v(),y))return!1}catch{return!1}}if(c=i.child,i.subtreeFlags&16384&&c!==null)c.return=i,i=c;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function So(a,i,c,f){i&=~Ty,i&=~dl,a.suspendedLanes|=i,a.pingedLanes&=~i,f&&(a.warmLanes|=i),f=a.expirationTimes;for(var y=i;0<y;){var v=31-Xt(y),A=1<<v;f[v]=-1,y&=~A}c!==0&&Qe(a,c,i)}function im(){return(Sr&6)===0?(Af(0),!1):!0}function Ly(){if(jt!==null){if(xr===0)var a=jt.return;else a=jt,di=sl=null,Q1(a),hc=null,vf=0,a=jt;for(;a!==null;)B8(a.alternate,a),a=a.return;jt=null}}function xc(a,i){var c=a.timeoutHandle;c!==-1&&(a.timeoutHandle=-1,SO(c)),c=a.cancelPendingCommit,c!==null&&(a.cancelPendingCommit=null,c()),Ly(),Ir=a,jt=c=li(a.current,null),Yt=i,xr=0,Ua=null,go=!1,yc=Ze(a,i),_y=!1,bc=ns=Ty=dl=yo=rn=0,_a=_f=null,Ay=!1,(i&8)!==0&&(i|=i&32);var f=a.entangledLanes;if(f!==0)for(a=a.entanglements,f&=i;0<f;){var y=31-Xt(f),v=1<<y;i|=a[y],f&=~v}return vi=i,Tp(),c}function l6(a,i){Ot=null,Z.H=Gp,i===uf||i===Dp?(i=kw(),xr=3):i===ww?(i=kw(),xr=4):xr=i===E8?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Ua=i,jt===null&&(rn=1,Xp(a,Xa(i,a.current)))}function c6(){var a=Z.H;return Z.H=Gp,a===null?Gp:a}function u6(){var a=Z.A;return Z.A=eO,a}function Py(){rn=4,go||(Yt&4194048)!==Yt&&rs.current!==null||(yc=!0),(yo&134217727)===0&&(dl&134217727)===0||Ir===null||So(Ir,Yt,ns,!1)}function Iy(a,i,c){var f=Sr;Sr|=2;var y=c6(),v=u6();(Ir!==a||Yt!==i)&&(sm=null,xc(a,i)),i=!1;var A=rn;e:do try{if(xr!==0&&jt!==null){var D=jt,K=Ua;switch(xr){case 8:Ly(),A=6;break e;case 3:case 2:case 9:case 6:rs.current===null&&(i=!0);var le=xr;if(xr=0,Ua=null,wc(a,D,K,le),c&&yc){A=0;break e}break;default:le=xr,xr=0,Ua=null,wc(a,D,K,le)}}nO(),A=rn;break}catch(ye){l6(a,ye)}while(!0);return i&&a.shellSuspendCounter++,di=sl=null,Sr=f,Z.H=y,Z.A=v,jt===null&&(Ir=null,Yt=0,Tp()),A}function nO(){for(;jt!==null;)d6(jt)}function aO(a,i){var c=Sr;Sr|=2;var f=c6(),y=u6();Ir!==a||Yt!==i?(sm=null,am=nt()+500,xc(a,i)):yc=Ze(a,i);e:do try{if(xr!==0&&jt!==null){i=jt;var v=Ua;t:switch(xr){case 1:xr=0,Ua=null,wc(a,i,v,1);break;case 2:case 9:if(Cw(v)){xr=0,Ua=null,f6(i);break}i=function(){xr!==2&&xr!==9||Ir!==a||(xr=7),Gs(a)},v.then(i,i);break e;case 3:xr=7;break e;case 4:xr=5;break e;case 7:Cw(v)?(xr=0,Ua=null,f6(i)):(xr=0,Ua=null,wc(a,i,v,7));break;case 5:var A=null;switch(jt.tag){case 26:A=jt.memoizedState;case 5:case 27:var D=jt;if(!A||G6(A)){xr=0,Ua=null;var K=D.sibling;if(K!==null)jt=K;else{var le=D.return;le!==null?(jt=le,om(le)):jt=null}break t}}xr=0,Ua=null,wc(a,i,v,5);break;case 6:xr=0,Ua=null,wc(a,i,v,6);break;case 8:Ly(),rn=6;break e;default:throw Error(n(462))}}sO();break}catch(ye){l6(a,ye)}while(!0);return di=sl=null,Z.H=f,Z.A=y,Sr=c,jt!==null?0:(Ir=null,Yt=0,Tp(),rn)}function sO(){for(;jt!==null&&!rt();)d6(jt)}function d6(a){var i=z8(a.alternate,a,vi);a.memoizedProps=a.pendingProps,i===null?om(a):jt=i}function f6(a){var i=a,c=i.alternate;switch(i.tag){case 15:case 0:i=M8(c,i,i.pendingProps,i.type,void 0,Yt);break;case 11:i=M8(c,i,i.pendingProps,i.type.render,i.ref,Yt);break;case 5:Q1(i);default:B8(c,i),i=jt=hw(i,vi),i=z8(c,i,vi)}a.memoizedProps=a.pendingProps,i===null?om(a):jt=i}function wc(a,i,c,f){di=sl=null,Q1(i),hc=null,vf=0;var y=i.return;try{if(KR(a,y,i,c,Yt)){rn=1,Xp(a,Xa(c,a.current)),jt=null;return}}catch(v){if(y!==null)throw jt=y,v;rn=1,Xp(a,Xa(c,a.current)),jt=null;return}i.flags&32768?(cr||f===1?a=!0:yc||(Yt&536870912)!==0?a=!1:(go=a=!0,(f===2||f===9||f===3||f===6)&&(f=rs.current,f!==null&&f.tag===13&&(f.flags|=16384))),h6(i,a)):om(i)}function om(a){var i=a;do{if((i.flags&32768)!==0){h6(i,go);return}a=i.return;var c=YR(i.alternate,i,vi);if(c!==null){jt=c;return}if(i=i.sibling,i!==null){jt=i;return}jt=i=a}while(i!==null);rn===0&&(rn=5)}function h6(a,i){do{var c=QR(a.alternate,a);if(c!==null){c.flags&=32767,jt=c;return}if(c=a.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!i&&(a=a.sibling,a!==null)){jt=a;return}jt=a=c}while(a!==null);rn=6,jt=null}function p6(a,i,c,f,y,v,A,D,K){a.cancelPendingCommit=null;do lm();while(Vn!==0);if((Sr&6)!==0)throw Error(n(327));if(i!==null){if(i===a.current)throw Error(n(177));if(v=i.lanes|i.childLanes,v|=E1,Sa(a,c,v,A,D,K),a===Ir&&(jt=Ir=null,Yt=0),vc=i,vo=a,Sc=c,Oy=v,My=y,a6=f,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,cO(vt,function(){return v6(),null})):(a.callbackNode=null,a.callbackPriority=0),f=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||f){f=Z.T,Z.T=null,y=ne.p,ne.p=2,A=Sr,Sr|=4;try{XR(a,i,c)}finally{Sr=A,ne.p=y,Z.T=f}}Vn=1,m6(),g6(),y6()}}function m6(){if(Vn===1){Vn=0;var a=vo,i=vc,c=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||c){c=Z.T,Z.T=null;var f=ne.p;ne.p=2;var y=Sr;Sr|=4;try{Q8(i,a);var v=Ky,A=nw(a.containerInfo),D=v.focusedElem,K=v.selectionRange;if(A!==D&&D&&D.ownerDocument&&rw(D.ownerDocument.documentElement,D)){if(K!==null&&x1(D)){var le=K.start,ye=K.end;if(ye===void 0&&(ye=le),"selectionStart"in D)D.selectionStart=le,D.selectionEnd=Math.min(ye,D.value.length);else{var we=D.ownerDocument||document,ue=we&&we.defaultView||window;if(ue.getSelection){var de=ue.getSelection(),ut=D.textContent.length,ot=Math.min(K.start,ut),Er=K.end===void 0?ot:Math.min(K.end,ut);!de.extend&&ot>Er&&(A=Er,Er=ot,ot=A);var ie=tw(D,ot),te=tw(D,Er);if(ie&&te&&(de.rangeCount!==1||de.anchorNode!==ie.node||de.anchorOffset!==ie.offset||de.focusNode!==te.node||de.focusOffset!==te.offset)){var oe=we.createRange();oe.setStart(ie.node,ie.offset),de.removeAllRanges(),ot>Er?(de.addRange(oe),de.extend(te.node,te.offset)):(oe.setEnd(te.node,te.offset),de.addRange(oe))}}}}for(we=[],de=D;de=de.parentNode;)de.nodeType===1&&we.push({element:de,left:de.scrollLeft,top:de.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<we.length;D++){var be=we[D];be.element.scrollLeft=be.left,be.element.scrollTop=be.top}}Sm=!!Gy,Ky=Gy=null}finally{Sr=y,ne.p=f,Z.T=c}}a.current=i,Vn=2}}function g6(){if(Vn===2){Vn=0;var a=vo,i=vc,c=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||c){c=Z.T,Z.T=null;var f=ne.p;ne.p=2;var y=Sr;Sr|=4;try{G8(a,i.alternate,i)}finally{Sr=y,ne.p=f,Z.T=c}}Vn=3}}function y6(){if(Vn===4||Vn===3){Vn=0,ct();var a=vo,i=vc,c=Sc,f=a6;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Vn=5:(Vn=0,vc=vo=null,b6(a,a.pendingLanes));var y=a.pendingLanes;if(y===0&&(bo=null),la(c),i=i.stateNode,It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(ir,i,void 0,(i.current.flags&128)===128)}catch{}if(f!==null){i=Z.T,y=ne.p,ne.p=2,Z.T=null;try{for(var v=a.onRecoverableError,A=0;A<f.length;A++){var D=f[A];v(D.value,{componentStack:D.stack})}}finally{Z.T=i,ne.p=y}}(Sc&3)!==0&&lm(),Gs(a),y=a.pendingLanes,(c&4194090)!==0&&(y&42)!==0?a===Ny?Tf++:(Tf=0,Ny=a):Tf=0,Af(0)}}function b6(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,lf(i)))}function lm(a){return m6(),g6(),y6(),v6()}function v6(){if(Vn!==5)return!1;var a=vo,i=Oy;Oy=0;var c=la(Sc),f=Z.T,y=ne.p;try{ne.p=32>c?32:c,Z.T=null,c=My,My=null;var v=vo,A=Sc;if(Vn=0,vc=vo=null,Sc=0,(Sr&6)!==0)throw Error(n(331));var D=Sr;if(Sr|=4,r6(v.current),J8(v,v.current,A,c),Sr=D,Af(0,!1),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(ir,v)}catch{}return!0}finally{ne.p=y,Z.T=f,b6(a,i)}}function S6(a,i,c){i=Xa(c,i),i=dy(a.stateNode,i,2),a=lo(a,i,2),a!==null&&(Xr(a,2),Gs(a))}function Ar(a,i,c){if(a.tag===3)S6(a,a,c);else for(;i!==null;){if(i.tag===3){S6(i,a,c);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(bo===null||!bo.has(f))){a=Xa(c,a),c=$8(2),f=lo(i,c,2),f!==null&&(k8(c,f,i,a),Xr(f,2),Gs(f));break}}i=i.return}}function Dy(a,i,c){var f=a.pingCache;if(f===null){f=a.pingCache=new tO;var y=new Set;f.set(i,y)}else y=f.get(i),y===void 0&&(y=new Set,f.set(i,y));y.has(c)||(_y=!0,y.add(c),a=iO.bind(null,a,i,c),i.then(a,a))}function iO(a,i,c){var f=a.pingCache;f!==null&&f.delete(i),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,Ir===a&&(Yt&c)===c&&(rn===4||rn===3&&(Yt&62914560)===Yt&&300>nt()-Ry?(Sr&2)===0&&xc(a,0):Ty|=c,bc===Yt&&(bc=0)),Gs(a)}function x6(a,i){i===0&&(i=mn()),a=nc(a,i),a!==null&&(Xr(a,i),Gs(a))}function oO(a){var i=a.memoizedState,c=0;i!==null&&(c=i.retryLane),x6(a,c)}function lO(a,i){var c=0;switch(a.tag){case 13:var f=a.stateNode,y=a.memoizedState;y!==null&&(c=y.retryLane);break;case 19:f=a.stateNode;break;case 22:f=a.stateNode._retryCache;break;default:throw Error(n(314))}f!==null&&f.delete(i),x6(a,c)}function cO(a,i){return ht(a,i)}var cm=null,Cc=null,zy=!1,um=!1,jy=!1,fl=0;function Gs(a){a!==Cc&&a.next===null&&(Cc===null?cm=Cc=a:Cc=Cc.next=a),um=!0,zy||(zy=!0,dO())}function Af(a,i){if(!jy&&um){jy=!0;do for(var c=!1,f=cm;f!==null;){if(a!==0){var y=f.pendingLanes;if(y===0)var v=0;else{var A=f.suspendedLanes,D=f.pingedLanes;v=(1<<31-Xt(42|a)+1)-1,v&=y&~(A&~D),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(c=!0,k6(f,v))}else v=Yt,v=wn(f,f===Ir?v:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(v&3)===0||Ze(f,v)||(c=!0,k6(f,v));f=f.next}while(c);jy=!1}}function uO(){w6()}function w6(){um=zy=!1;var a=0;fl!==0&&(vO()&&(a=fl),fl=0);for(var i=nt(),c=null,f=cm;f!==null;){var y=f.next,v=C6(f,i);v===0?(f.next=null,c===null?cm=y:c.next=y,y===null&&(Cc=c)):(c=f,(a!==0||(v&3)!==0)&&(um=!0)),f=y}Af(a)}function C6(a,i){for(var c=a.suspendedLanes,f=a.pingedLanes,y=a.expirationTimes,v=a.pendingLanes&-62914561;0<v;){var A=31-Xt(v),D=1<<A,K=y[A];K===-1?((D&c)===0||(D&f)!==0)&&(y[A]=zt(D,i)):K<=i&&(a.expiredLanes|=D),v&=~D}if(i=Ir,c=Yt,c=wn(a,a===i?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),f=a.callbackNode,c===0||a===i&&(xr===2||xr===9)||a.cancelPendingCommit!==null)return f!==null&&f!==null&&ze(f),a.callbackNode=null,a.callbackPriority=0;if((c&3)===0||Ze(a,c)){if(i=c&-c,i===a.callbackPriority)return i;switch(f!==null&&ze(f),la(c)){case 2:case 8:c=Kt;break;case 32:c=vt;break;case 268435456:c=pt;break;default:c=vt}return f=$6.bind(null,a),c=ht(c,f),a.callbackPriority=i,a.callbackNode=c,i}return f!==null&&f!==null&&ze(f),a.callbackPriority=2,a.callbackNode=null,2}function $6(a,i){if(Vn!==0&&Vn!==5)return a.callbackNode=null,a.callbackPriority=0,null;var c=a.callbackNode;if(lm()&&a.callbackNode!==c)return null;var f=Yt;return f=wn(a,a===Ir?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),f===0?null:(i6(a,f,i),C6(a,nt()),a.callbackNode!=null&&a.callbackNode===c?$6.bind(null,a):null)}function k6(a,i){if(lm())return null;i6(a,i,!0)}function dO(){xO(function(){(Sr&6)!==0?ht(Tt,uO):w6()})}function By(){return fl===0&&(fl=nr()),fl}function E6(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:vr(""+a)}function _6(a,i){var c=i.ownerDocument.createElement("input");return c.name=i.name,c.value=i.value,a.id&&c.setAttribute("form",a.id),i.parentNode.insertBefore(c,i),a=new FormData(a),c.parentNode.removeChild(c),a}function fO(a,i,c,f,y){if(i==="submit"&&c&&c.stateNode===y){var v=E6((y[kt]||null).action),A=f.submitter;A&&(i=(i=A[kt]||null)?E6(i.formAction):A.getAttribute("formAction"),i!==null&&(v=i,A=null));var D=new U("action","action",null,f,y);a.push({event:D,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(fl!==0){var K=A?_6(y,A):new FormData(y);iy(c,{pending:!0,data:K,method:y.method,action:v},null,K)}}else typeof v=="function"&&(D.preventDefault(),K=A?_6(y,A):new FormData(y),iy(c,{pending:!0,data:K,method:y.method,action:v},v,K))},currentTarget:y}]})}}for(var Uy=0;Uy<k1.length;Uy++){var Hy=k1[Uy],hO=Hy.toLowerCase(),pO=Hy[0].toUpperCase()+Hy.slice(1);xs(hO,"on"+pO)}xs(iw,"onAnimationEnd"),xs(ow,"onAnimationIteration"),xs(lw,"onAnimationStart"),xs("dblclick","onDoubleClick"),xs("focusin","onFocus"),xs("focusout","onBlur"),xs(OR,"onTransitionRun"),xs(MR,"onTransitionStart"),xs(NR,"onTransitionCancel"),xs(cw,"onTransitionEnd"),gt("onMouseEnter",["mouseout","mouseover"]),gt("onMouseLeave",["mouseout","mouseover"]),gt("onPointerEnter",["pointerout","pointerover"]),gt("onPointerLeave",["pointerout","pointerover"]),Me("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Me("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Me("onBeforeInput",["compositionend","keypress","textInput","paste"]),Me("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Me("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Me("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rf="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(" "),mO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rf));function T6(a,i){i=(i&4)!==0;for(var c=0;c<a.length;c++){var f=a[c],y=f.event;f=f.listeners;e:{var v=void 0;if(i)for(var A=f.length-1;0<=A;A--){var D=f[A],K=D.instance,le=D.currentTarget;if(D=D.listener,K!==v&&y.isPropagationStopped())break e;v=D,y.currentTarget=le;try{v(y)}catch(ye){Qp(ye)}y.currentTarget=null,v=K}else for(A=0;A<f.length;A++){if(D=f[A],K=D.instance,le=D.currentTarget,D=D.listener,K!==v&&y.isPropagationStopped())break e;v=D,y.currentTarget=le;try{v(y)}catch(ye){Qp(ye)}y.currentTarget=null,v=K}}}}function Bt(a,i){var c=i[Jt];c===void 0&&(c=i[Jt]=new Set);var f=a+"__bubble";c.has(f)||(A6(i,a,2,!1),c.add(f))}function Zy(a,i,c){var f=0;i&&(f|=4),A6(c,a,f,i)}var dm="_reactListening"+Math.random().toString(36).slice(2);function Vy(a){if(!a[dm]){a[dm]=!0,Q.forEach(function(c){c!=="selectionchange"&&(mO.has(c)||Zy(c,!1,a),Zy(c,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[dm]||(i[dm]=!0,Zy("selectionchange",!1,i))}}function A6(a,i,c,f){switch(J6(i)){case 2:var y=HO;break;case 8:y=ZO;break;default:y=ab}c=y.bind(null,i,c,a),y=void 0,!Tr||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(y=!0),f?y!==void 0?a.addEventListener(i,c,{capture:!0,passive:y}):a.addEventListener(i,c,!0):y!==void 0?a.addEventListener(i,c,{passive:y}):a.addEventListener(i,c,!1)}function Fy(a,i,c,f,y){var v=f;if((i&1)===0&&(i&2)===0&&f!==null)e:for(;;){if(f===null)return;var A=f.tag;if(A===3||A===4){var D=f.stateNode.containerInfo;if(D===y)break;if(A===4)for(A=f.return;A!==null;){var K=A.tag;if((K===3||K===4)&&A.stateNode.containerInfo===y)return;A=A.return}for(;D!==null;){if(A=ar(D),A===null)return;if(K=A.tag,K===5||K===6||K===26||K===27){f=v=A;continue e}D=D.parentNode}}f=f.return}Fe(function(){var le=v,ye=Tn(c),we=[];e:{var ue=uw.get(a);if(ue!==void 0){var de=U,ut=a;switch(a){case"keypress":if(Ss(c)===0)break e;case"keydown":case"keyup":de=cR;break;case"focusin":ut="focus",de=g1;break;case"focusout":ut="blur",de=g1;break;case"beforeblur":case"afterblur":de=g1;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":de=$a;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=QA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=fR;break;case iw:case ow:case lw:de=eR;break;case cw:de=pR;break;case"scroll":case"scrollend":de=Re;break;case"wheel":de=gR;break;case"copy":case"cut":case"paste":de=rR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=Ux;break;case"toggle":case"beforetoggle":de=bR}var ot=(i&4)!==0,Er=!ot&&(a==="scroll"||a==="scrollend"),ie=ot?ue!==null?ue+"Capture":null:ue;ot=[];for(var te=le,oe;te!==null;){var be=te;if(oe=be.stateNode,be=be.tag,be!==5&&be!==26&&be!==27||oe===null||ie===null||(be=it(te,ie),be!=null&&ot.push(Of(te,be,oe))),Er)break;te=te.return}0<ot.length&&(ue=new de(ue,ut,null,c,ye),we.push({event:ue,listeners:ot}))}}if((i&7)===0){e:{if(ue=a==="mouseover"||a==="pointerover",de=a==="mouseout"||a==="pointerout",ue&&c!==Rt&&(ut=c.relatedTarget||c.fromElement)&&(ar(ut)||ut[At]))break e;if((de||ue)&&(ue=ye.window===ye?ye:(ue=ye.ownerDocument)?ue.defaultView||ue.parentWindow:window,de?(ut=c.relatedTarget||c.toElement,de=le,ut=ut?ar(ut):null,ut!==null&&(Er=o(ut),ot=ut.tag,ut!==Er||ot!==5&&ot!==27&&ot!==6)&&(ut=null)):(de=null,ut=le),de!==ut)){if(ot=$a,be="onMouseLeave",ie="onMouseEnter",te="mouse",(a==="pointerout"||a==="pointerover")&&(ot=Ux,be="onPointerLeave",ie="onPointerEnter",te="pointer"),Er=de==null?ue:ca(de),oe=ut==null?ue:ca(ut),ue=new ot(be,te+"leave",de,c,ye),ue.target=Er,ue.relatedTarget=oe,be=null,ar(ye)===le&&(ot=new ot(ie,te+"enter",ut,c,ye),ot.target=oe,ot.relatedTarget=Er,be=ot),Er=be,de&&ut)t:{for(ot=de,ie=ut,te=0,oe=ot;oe;oe=$c(oe))te++;for(oe=0,be=ie;be;be=$c(be))oe++;for(;0<te-oe;)ot=$c(ot),te--;for(;0<oe-te;)ie=$c(ie),oe--;for(;te--;){if(ot===ie||ie!==null&&ot===ie.alternate)break t;ot=$c(ot),ie=$c(ie)}ot=null}else ot=null;de!==null&&R6(we,ue,de,ot,!1),ut!==null&&Er!==null&&R6(we,Er,ut,ot,!0)}}e:{if(ue=le?ca(le):window,de=ue.nodeName&&ue.nodeName.toLowerCase(),de==="select"||de==="input"&&ue.type==="file")var Ke=Wx;else if(Gx(ue))if(Yx)Ke=TR;else{Ke=ER;var Nt=kR}else de=ue.nodeName,!de||de.toLowerCase()!=="input"||ue.type!=="checkbox"&&ue.type!=="radio"?le&&Ca(le.elementType)&&(Ke=Wx):Ke=_R;if(Ke&&(Ke=Ke(a,le))){Kx(we,Ke,c,ye);break e}Nt&&Nt(a,ue,le),a==="focusout"&&le&&ue.type==="number"&&le.memoizedProps.value!=null&&Pa(ue,"number",ue.value)}switch(Nt=le?ca(le):window,a){case"focusin":(Gx(Nt)||Nt.contentEditable==="true")&&(ec=Nt,w1=le,rf=null);break;case"focusout":rf=w1=ec=null;break;case"mousedown":C1=!0;break;case"contextmenu":case"mouseup":case"dragend":C1=!1,aw(we,c,ye);break;case"selectionchange":if(RR)break;case"keydown":case"keyup":aw(we,c,ye)}var tt;if(b1)e:{switch(a){case"compositionstart":var lt="onCompositionStart";break e;case"compositionend":lt="onCompositionEnd";break e;case"compositionupdate":lt="onCompositionUpdate";break e}lt=void 0}else Jl?Fx(a,c)&&(lt="onCompositionEnd"):a==="keydown"&&c.keyCode===229&&(lt="onCompositionStart");lt&&(Hx&&c.locale!=="ko"&&(Jl||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&Jl&&(tt=Hs()):(Hn=ye,Qa="value"in Hn?Hn.value:Hn.textContent,Jl=!0)),Nt=fm(le,lt),0<Nt.length&&(lt=new Bx(lt,a,null,c,ye),we.push({event:lt,listeners:Nt}),tt?lt.data=tt:(tt=qx(c),tt!==null&&(lt.data=tt)))),(tt=SR?xR(a,c):wR(a,c))&&(lt=fm(le,"onBeforeInput"),0<lt.length&&(Nt=new Bx("onBeforeInput","beforeinput",null,c,ye),we.push({event:Nt,listeners:lt}),Nt.data=tt)),fO(we,a,le,c,ye)}T6(we,i)})}function Of(a,i,c){return{instance:a,listener:i,currentTarget:c}}function fm(a,i){for(var c=i+"Capture",f=[];a!==null;){var y=a,v=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||v===null||(y=it(a,c),y!=null&&f.unshift(Of(a,y,v)),y=it(a,i),y!=null&&f.push(Of(a,y,v))),a.tag===3)return f;a=a.return}return[]}function $c(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function R6(a,i,c,f,y){for(var v=i._reactName,A=[];c!==null&&c!==f;){var D=c,K=D.alternate,le=D.stateNode;if(D=D.tag,K!==null&&K===f)break;D!==5&&D!==26&&D!==27||le===null||(K=le,y?(le=it(c,v),le!=null&&A.unshift(Of(c,le,K))):y||(le=it(c,v),le!=null&&A.push(Of(c,le,K)))),c=c.return}A.length!==0&&a.push({event:i,listeners:A})}var gO=/\r\n?/g,yO=/\u0000|\uFFFD/g;function O6(a){return(typeof a=="string"?a:""+a).replace(gO,`
`).replace(yO,"")}function M6(a,i){return i=O6(i),O6(a)===i}function hm(){}function kr(a,i,c,f,y,v){switch(c){case"children":typeof f=="string"?i==="body"||i==="textarea"&&f===""||un(a,f):(typeof f=="number"||typeof f=="bigint")&&i!=="body"&&un(a,""+f);break;case"className":Lr(a,"class",f);break;case"tabIndex":Lr(a,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Lr(a,c,f);break;case"style":Ya(a,f,v);break;case"data":if(i!=="object"){Lr(a,"data",f);break}case"src":case"href":if(f===""&&(i!=="a"||c!=="href")){a.removeAttribute(c);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){a.removeAttribute(c);break}f=vr(""+f),a.setAttribute(c,f);break;case"action":case"formAction":if(typeof f=="function"){a.setAttribute(c,"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 v=="function"&&(c==="formAction"?(i!=="input"&&kr(a,i,"name",y.name,y,null),kr(a,i,"formEncType",y.formEncType,y,null),kr(a,i,"formMethod",y.formMethod,y,null),kr(a,i,"formTarget",y.formTarget,y,null)):(kr(a,i,"encType",y.encType,y,null),kr(a,i,"method",y.method,y,null),kr(a,i,"target",y.target,y,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){a.removeAttribute(c);break}f=vr(""+f),a.setAttribute(c,f);break;case"onClick":f!=null&&(a.onclick=hm);break;case"onScroll":f!=null&&Bt("scroll",a);break;case"onScrollEnd":f!=null&&Bt("scrollend",a);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(n(61));if(c=f.__html,c!=null){if(y.children!=null)throw Error(n(60));a.innerHTML=c}}break;case"multiple":a.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":a.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){a.removeAttribute("xlink:href");break}c=vr(""+f),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(c,""+f):a.removeAttribute(c);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":f&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(c,""):a.removeAttribute(c);break;case"capture":case"download":f===!0?a.setAttribute(c,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(c,f):a.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?a.setAttribute(c,f):a.removeAttribute(c);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?a.removeAttribute(c):a.setAttribute(c,f);break;case"popover":Bt("beforetoggle",a),Bt("toggle",a),ln(a,"popover",f);break;case"xlinkActuate":_n(a,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":_n(a,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":_n(a,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":_n(a,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":_n(a,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":_n(a,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":_n(a,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":_n(a,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":_n(a,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":ln(a,"is",f);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=st.get(c)||c,ln(a,c,f))}}function qy(a,i,c,f,y,v){switch(c){case"style":Ya(a,f,v);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(n(61));if(c=f.__html,c!=null){if(y.children!=null)throw Error(n(60));a.innerHTML=c}}break;case"children":typeof f=="string"?un(a,f):(typeof f=="number"||typeof f=="bigint")&&un(a,""+f);break;case"onScroll":f!=null&&Bt("scroll",a);break;case"onScrollEnd":f!=null&&Bt("scrollend",a);break;case"onClick":f!=null&&(a.onclick=hm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!je.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(y=c.endsWith("Capture"),i=c.slice(2,y?c.length-7:void 0),v=a[kt]||null,v=v!=null?v[c]:null,typeof v=="function"&&a.removeEventListener(i,v,y),typeof f=="function")){typeof v!="function"&&v!==null&&(c in a?a[c]=null:a.hasAttribute(c)&&a.removeAttribute(c)),a.addEventListener(i,f,y);break e}c in a?a[c]=f:f===!0?a.setAttribute(c,""):ln(a,c,f)}}}function Fn(a,i,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Bt("error",a),Bt("load",a);var f=!1,y=!1,v;for(v in c)if(c.hasOwnProperty(v)){var A=c[v];if(A!=null)switch(v){case"src":f=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,i));default:kr(a,i,v,A,c,null)}}y&&kr(a,i,"srcSet",c.srcSet,c,null),f&&kr(a,i,"src",c.src,c,null);return;case"input":Bt("invalid",a);var D=v=A=y=null,K=null,le=null;for(f in c)if(c.hasOwnProperty(f)){var ye=c[f];if(ye!=null)switch(f){case"name":y=ye;break;case"type":A=ye;break;case"checked":K=ye;break;case"defaultChecked":le=ye;break;case"value":v=ye;break;case"defaultValue":D=ye;break;case"children":case"dangerouslySetInnerHTML":if(ye!=null)throw Error(n(137,i));break;default:kr(a,i,f,ye,c,null)}}La(a,v,D,K,le,A,y,!1),Wr(a);return;case"select":Bt("invalid",a),f=A=v=null;for(y in c)if(c.hasOwnProperty(y)&&(D=c[y],D!=null))switch(y){case"value":v=D;break;case"defaultValue":A=D;break;case"multiple":f=D;default:kr(a,i,y,D,c,null)}i=v,c=A,a.multiple=!!f,i!=null?Yn(a,!!f,i,!1):c!=null&&Yn(a,!!f,c,!0);return;case"textarea":Bt("invalid",a),v=y=f=null;for(A in c)if(c.hasOwnProperty(A)&&(D=c[A],D!=null))switch(A){case"value":f=D;break;case"defaultValue":y=D;break;case"children":v=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(n(91));break;default:kr(a,i,A,D,c,null)}Wa(a,f,y,v),Wr(a);return;case"option":for(K in c)if(c.hasOwnProperty(K)&&(f=c[K],f!=null))switch(K){case"selected":a.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:kr(a,i,K,f,c,null)}return;case"dialog":Bt("beforetoggle",a),Bt("toggle",a),Bt("cancel",a),Bt("close",a);break;case"iframe":case"object":Bt("load",a);break;case"video":case"audio":for(f=0;f<Rf.length;f++)Bt(Rf[f],a);break;case"image":Bt("error",a),Bt("load",a);break;case"details":Bt("toggle",a);break;case"embed":case"source":case"link":Bt("error",a),Bt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in c)if(c.hasOwnProperty(le)&&(f=c[le],f!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,i));default:kr(a,i,le,f,c,null)}return;default:if(Ca(i)){for(ye in c)c.hasOwnProperty(ye)&&(f=c[ye],f!==void 0&&qy(a,i,ye,f,c,void 0));return}}for(D in c)c.hasOwnProperty(D)&&(f=c[D],f!=null&&kr(a,i,D,f,c,null))}function bO(a,i,c,f){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,v=null,A=null,D=null,K=null,le=null,ye=null;for(de in c){var we=c[de];if(c.hasOwnProperty(de)&&we!=null)switch(de){case"checked":break;case"value":break;case"defaultValue":K=we;default:f.hasOwnProperty(de)||kr(a,i,de,null,f,we)}}for(var ue in f){var de=f[ue];if(we=c[ue],f.hasOwnProperty(ue)&&(de!=null||we!=null))switch(ue){case"type":v=de;break;case"name":y=de;break;case"checked":le=de;break;case"defaultChecked":ye=de;break;case"value":A=de;break;case"defaultValue":D=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(n(137,i));break;default:de!==we&&kr(a,i,ue,de,f,we)}}wa(a,A,D,K,le,ye,v,y);return;case"select":de=A=D=ue=null;for(v in c)if(K=c[v],c.hasOwnProperty(v)&&K!=null)switch(v){case"value":break;case"multiple":de=K;default:f.hasOwnProperty(v)||kr(a,i,v,null,f,K)}for(y in f)if(v=f[y],K=c[y],f.hasOwnProperty(y)&&(v!=null||K!=null))switch(y){case"value":ue=v;break;case"defaultValue":D=v;break;case"multiple":A=v;default:v!==K&&kr(a,i,y,v,f,K)}i=D,c=A,f=de,ue!=null?Yn(a,!!c,ue,!1):!!f!=!!c&&(i!=null?Yn(a,!!c,i,!0):Yn(a,!!c,c?[]:"",!1));return;case"textarea":de=ue=null;for(D in c)if(y=c[D],c.hasOwnProperty(D)&&y!=null&&!f.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:kr(a,i,D,null,f,y)}for(A in f)if(y=f[A],v=c[A],f.hasOwnProperty(A)&&(y!=null||v!=null))switch(A){case"value":ue=y;break;case"defaultValue":de=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(n(91));break;default:y!==v&&kr(a,i,A,y,f,v)}Ka(a,ue,de);return;case"option":for(var ut in c)if(ue=c[ut],c.hasOwnProperty(ut)&&ue!=null&&!f.hasOwnProperty(ut))switch(ut){case"selected":a.selected=!1;break;default:kr(a,i,ut,null,f,ue)}for(K in f)if(ue=f[K],de=c[K],f.hasOwnProperty(K)&&ue!==de&&(ue!=null||de!=null))switch(K){case"selected":a.selected=ue&&typeof ue!="function"&&typeof ue!="symbol";break;default:kr(a,i,K,ue,f,de)}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 ot in c)ue=c[ot],c.hasOwnProperty(ot)&&ue!=null&&!f.hasOwnProperty(ot)&&kr(a,i,ot,null,f,ue);for(le in f)if(ue=f[le],de=c[le],f.hasOwnProperty(le)&&ue!==de&&(ue!=null||de!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(n(137,i));break;default:kr(a,i,le,ue,f,de)}return;default:if(Ca(i)){for(var Er in c)ue=c[Er],c.hasOwnProperty(Er)&&ue!==void 0&&!f.hasOwnProperty(Er)&&qy(a,i,Er,void 0,f,ue);for(ye in f)ue=f[ye],de=c[ye],!f.hasOwnProperty(ye)||ue===de||ue===void 0&&de===void 0||qy(a,i,ye,ue,f,de);return}}for(var ie in c)ue=c[ie],c.hasOwnProperty(ie)&&ue!=null&&!f.hasOwnProperty(ie)&&kr(a,i,ie,null,f,ue);for(we in f)ue=f[we],de=c[we],!f.hasOwnProperty(we)||ue===de||ue==null&&de==null||kr(a,i,we,ue,f,de)}var Gy=null,Ky=null;function pm(a){return a.nodeType===9?a:a.ownerDocument}function N6(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function L6(a,i){if(a===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&i==="foreignObject"?0:a}function Wy(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Yy=null;function vO(){var a=window.event;return a&&a.type==="popstate"?a===Yy?!1:(Yy=a,!0):(Yy=null,!1)}var P6=typeof setTimeout=="function"?setTimeout:void 0,SO=typeof clearTimeout=="function"?clearTimeout:void 0,I6=typeof Promise=="function"?Promise:void 0,xO=typeof queueMicrotask=="function"?queueMicrotask:typeof I6<"u"?function(a){return I6.resolve(null).then(a).catch(wO)}:P6;function wO(a){setTimeout(function(){throw a})}function xo(a){return a==="head"}function D6(a,i){var c=i,f=0,y=0;do{var v=c.nextSibling;if(a.removeChild(c),v&&v.nodeType===8)if(c=v.data,c==="/$"){if(0<f&&8>f){c=f;var A=a.ownerDocument;if(c&1&&Mf(A.documentElement),c&2&&Mf(A.body),c&4)for(c=A.head,Mf(c),A=c.firstChild;A;){var D=A.nextSibling,K=A.nodeName;A[at]||K==="SCRIPT"||K==="STYLE"||K==="LINK"&&A.rel.toLowerCase()==="stylesheet"||c.removeChild(A),A=D}}if(y===0){a.removeChild(v),Bf(i);return}y--}else c==="$"||c==="$?"||c==="$!"?y++:f=c.charCodeAt(0)-48;else f=0;c=v}while(c);Bf(i)}function Qy(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var c=i;switch(i=i.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Qy(c),Mt(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}a.removeChild(c)}}function CO(a,i,c,f){for(;a.nodeType===1;){var y=c;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!f&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(f){if(!a[at])switch(i){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(v=a.getAttribute("rel"),v==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(v!==y.rel||a.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||a.getAttribute("title")!==(y.title==null?null:y.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(v=a.getAttribute("src"),(v!==(y.src==null?null:y.src)||a.getAttribute("type")!==(y.type==null?null:y.type)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&v&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){var v=y.name==null?null:""+y.name;if(y.type==="hidden"&&a.getAttribute("name")===v)return a}else return a;if(a=Cs(a.nextSibling),a===null)break}return null}function $O(a,i,c){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!c||(a=Cs(a.nextSibling),a===null))return null;return a}function Xy(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState==="complete"}function kO(a,i){var c=a.ownerDocument;if(a.data!=="$?"||c.readyState==="complete")i();else{var f=function(){i(),c.removeEventListener("DOMContentLoaded",f)};c.addEventListener("DOMContentLoaded",f),a._reactRetry=f}}function Cs(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return a}var Jy=null;function z6(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var c=a.data;if(c==="$"||c==="$!"||c==="$?"){if(i===0)return a;i--}else c==="/$"&&i++}a=a.previousSibling}return null}function j6(a,i,c){switch(i=pm(c),a){case"html":if(a=i.documentElement,!a)throw Error(n(452));return a;case"head":if(a=i.head,!a)throw Error(n(453));return a;case"body":if(a=i.body,!a)throw Error(n(454));return a;default:throw Error(n(451))}}function Mf(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);Mt(a)}var as=new Map,B6=new Set;function mm(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Si=ne.d;ne.d={f:EO,r:_O,D:TO,C:AO,L:RO,m:OO,X:NO,S:MO,M:LO};function EO(){var a=Si.f(),i=im();return a||i}function _O(a){var i=En(a);i!==null&&i.tag===5&&i.type==="form"?i8(i):Si.r(a)}var kc=typeof document>"u"?null:document;function U6(a,i,c){var f=kc;if(f&&typeof i=="string"&&i){var y=Yr(i);y='link[rel="'+a+'"][href="'+y+'"]',typeof c=="string"&&(y+='[crossorigin="'+c+'"]'),B6.has(y)||(B6.add(y),a={rel:a,crossOrigin:c,href:i},f.querySelector(y)===null&&(i=f.createElement("link"),Fn(i,"link",a),zr(i),f.head.appendChild(i)))}}function TO(a){Si.D(a),U6("dns-prefetch",a,null)}function AO(a,i){Si.C(a,i),U6("preconnect",a,i)}function RO(a,i,c){Si.L(a,i,c);var f=kc;if(f&&a&&i){var y='link[rel="preload"][as="'+Yr(i)+'"]';i==="image"&&c&&c.imageSrcSet?(y+='[imagesrcset="'+Yr(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(y+='[imagesizes="'+Yr(c.imageSizes)+'"]')):y+='[href="'+Yr(a)+'"]';var v=y;switch(i){case"style":v=Ec(a);break;case"script":v=_c(a)}as.has(v)||(a=p({rel:"preload",href:i==="image"&&c&&c.imageSrcSet?void 0:a,as:i},c),as.set(v,a),f.querySelector(y)!==null||i==="style"&&f.querySelector(Nf(v))||i==="script"&&f.querySelector(Lf(v))||(i=f.createElement("link"),Fn(i,"link",a),zr(i),f.head.appendChild(i)))}}function OO(a,i){Si.m(a,i);var c=kc;if(c&&a){var f=i&&typeof i.as=="string"?i.as:"script",y='link[rel="modulepreload"][as="'+Yr(f)+'"][href="'+Yr(a)+'"]',v=y;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=_c(a)}if(!as.has(v)&&(a=p({rel:"modulepreload",href:a},i),as.set(v,a),c.querySelector(y)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Lf(v)))return}f=c.createElement("link"),Fn(f,"link",a),zr(f),c.head.appendChild(f)}}}function MO(a,i,c){Si.S(a,i,c);var f=kc;if(f&&a){var y=Wn(f).hoistableStyles,v=Ec(a);i=i||"default";var A=y.get(v);if(!A){var D={loading:0,preload:null};if(A=f.querySelector(Nf(v)))D.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":i},c),(c=as.get(v))&&eb(a,c);var K=A=f.createElement("link");zr(K),Fn(K,"link",a),K._p=new Promise(function(le,ye){K.onload=le,K.onerror=ye}),K.addEventListener("load",function(){D.loading|=1}),K.addEventListener("error",function(){D.loading|=2}),D.loading|=4,gm(A,i,f)}A={type:"stylesheet",instance:A,count:1,state:D},y.set(v,A)}}}function NO(a,i){Si.X(a,i);var c=kc;if(c&&a){var f=Wn(c).hoistableScripts,y=_c(a),v=f.get(y);v||(v=c.querySelector(Lf(y)),v||(a=p({src:a,async:!0},i),(i=as.get(y))&&tb(a,i),v=c.createElement("script"),zr(v),Fn(v,"link",a),c.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(y,v))}}function LO(a,i){Si.M(a,i);var c=kc;if(c&&a){var f=Wn(c).hoistableScripts,y=_c(a),v=f.get(y);v||(v=c.querySelector(Lf(y)),v||(a=p({src:a,async:!0,type:"module"},i),(i=as.get(y))&&tb(a,i),v=c.createElement("script"),zr(v),Fn(v,"link",a),c.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(y,v))}}function H6(a,i,c,f){var y=(y=me.current)?mm(y):null;if(!y)throw Error(n(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(i=Ec(c.href),c=Wn(y).hoistableStyles,f=c.get(i),f||(f={type:"style",instance:null,count:0,state:null},c.set(i,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=Ec(c.href);var v=Wn(y).hoistableStyles,A=v.get(a);if(A||(y=y.ownerDocument||y,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(a,A),(v=y.querySelector(Nf(a)))&&!v._p&&(A.instance=v,A.state.loading=5),as.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},as.set(a,c),v||PO(y,a,c,A.state))),i&&f===null)throw Error(n(528,""));return A}if(i&&f!==null)throw Error(n(529,""));return null;case"script":return i=c.async,c=c.src,typeof c=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=_c(c),c=Wn(y).hoistableScripts,f=c.get(i),f||(f={type:"script",instance:null,count:0,state:null},c.set(i,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,a))}}function Ec(a){return'href="'+Yr(a)+'"'}function Nf(a){return'link[rel="stylesheet"]['+a+"]"}function Z6(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function PO(a,i,c,f){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?f.loading=1:(i=a.createElement("link"),f.preload=i,i.addEventListener("load",function(){return f.loading|=1}),i.addEventListener("error",function(){return f.loading|=2}),Fn(i,"link",c),zr(i),a.head.appendChild(i))}function _c(a){return'[src="'+Yr(a)+'"]'}function Lf(a){return"script[async]"+a}function V6(a,i,c){if(i.count++,i.instance===null)switch(i.type){case"style":var f=a.querySelector('style[data-href~="'+Yr(c.href)+'"]');if(f)return i.instance=f,zr(f),f;var y=p({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return f=(a.ownerDocument||a).createElement("style"),zr(f),Fn(f,"style",y),gm(f,c.precedence,a),i.instance=f;case"stylesheet":y=Ec(c.href);var v=a.querySelector(Nf(y));if(v)return i.state.loading|=4,i.instance=v,zr(v),v;f=Z6(c),(y=as.get(y))&&eb(f,y),v=(a.ownerDocument||a).createElement("link"),zr(v);var A=v;return A._p=new Promise(function(D,K){A.onload=D,A.onerror=K}),Fn(v,"link",f),i.state.loading|=4,gm(v,c.precedence,a),i.instance=v;case"script":return v=_c(c.src),(y=a.querySelector(Lf(v)))?(i.instance=y,zr(y),y):(f=c,(y=as.get(v))&&(f=p({},c),tb(f,y)),a=a.ownerDocument||a,y=a.createElement("script"),zr(y),Fn(y,"link",f),a.head.appendChild(y),i.instance=y);case"void":return null;default:throw Error(n(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(f=i.instance,i.state.loading|=4,gm(f,c.precedence,a));return i.instance}function gm(a,i,c){for(var f=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=f.length?f[f.length-1]:null,v=y,A=0;A<f.length;A++){var D=f[A];if(D.dataset.precedence===i)v=D;else if(v!==y)break}v?v.parentNode.insertBefore(a,v.nextSibling):(i=c.nodeType===9?c.head:c,i.insertBefore(a,i.firstChild))}function eb(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function tb(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}var ym=null;function F6(a,i,c){if(ym===null){var f=new Map,y=ym=new Map;y.set(c,f)}else y=ym,f=y.get(c),f||(f=new Map,y.set(c,f));if(f.has(a))return f;for(f.set(a,null),c=c.getElementsByTagName(a),y=0;y<c.length;y++){var v=c[y];if(!(v[at]||v[Ge]||a==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var A=v.getAttribute(i)||"";A=a+A;var D=f.get(A);D?D.push(v):f.set(A,[v])}}return f}function q6(a,i,c){a=a.ownerDocument||a,a.head.insertBefore(c,i==="title"?a.querySelector("head > title"):null)}function IO(a,i,c){if(c===1||i.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return a=i.disabled,typeof i.precedence=="string"&&a==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function G6(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var Pf=null;function DO(){}function zO(a,i,c){if(Pf===null)throw Error(n(475));var f=Pf;if(i.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var y=Ec(c.href),v=a.querySelector(Nf(y));if(v){a=v._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(f.count++,f=bm.bind(f),a.then(f,f)),i.state.loading|=4,i.instance=v,zr(v);return}v=a.ownerDocument||a,c=Z6(c),(y=as.get(y))&&eb(c,y),v=v.createElement("link"),zr(v);var A=v;A._p=new Promise(function(D,K){A.onload=D,A.onerror=K}),Fn(v,"link",c),i.instance=v}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(f.count++,i=bm.bind(f),a.addEventListener("load",i),a.addEventListener("error",i))}}function jO(){if(Pf===null)throw Error(n(475));var a=Pf;return a.stylesheets&&a.count===0&&rb(a,a.stylesheets),0<a.count?function(i){var c=setTimeout(function(){if(a.stylesheets&&rb(a,a.stylesheets),a.unsuspend){var f=a.unsuspend;a.unsuspend=null,f()}},6e4);return a.unsuspend=i,function(){a.unsuspend=null,clearTimeout(c)}}:null}function bm(){if(this.count--,this.count===0){if(this.stylesheets)rb(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var vm=null;function rb(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,vm=new Map,i.forEach(BO,a),vm=null,bm.call(a))}function BO(a,i){if(!(i.state.loading&4)){var c=vm.get(a);if(c)var f=c.get(null);else{c=new Map,vm.set(a,c);for(var y=a.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<y.length;v++){var A=y[v];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(c.set(A.dataset.precedence,A),f=A)}f&&c.set(null,f)}y=i.instance,A=y.getAttribute("data-precedence"),v=c.get(A)||f,v===f&&c.set(null,y),c.set(A,y),this.count++,f=bm.bind(this),y.addEventListener("load",f),y.addEventListener("error",f),v?v.parentNode.insertBefore(y,v.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(y,a.firstChild)),i.state.loading|=4}}var If={$$typeof:T,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function UO(a,i,c,f,y,v,A,D){this.tag=1,this.containerInfo=a,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=zn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zn(0),this.hiddenUpdates=zn(null),this.identifierPrefix=f,this.onUncaughtError=y,this.onCaughtError=v,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function K6(a,i,c,f,y,v,A,D,K,le,ye,we){return a=new UO(a,i,c,A,D,K,le,we),i=1,v===!0&&(i|=24),v=za(3,null,null,i),a.current=v,v.stateNode=a,i=D1(),i.refCount++,a.pooledCache=i,i.refCount++,v.memoizedState={element:f,isDehydrated:c,cache:i},U1(v),a}function W6(a){return a?(a=ac,a):ac}function Y6(a,i,c,f,y,v){y=W6(y),f.context===null?f.context=y:f.pendingContext=y,f=oo(i),f.payload={element:c},v=v===void 0?null:v,v!==null&&(f.callback=v),c=lo(a,f,i),c!==null&&(Za(c,a,i),ff(c,a,i))}function Q6(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var c=a.retryLane;a.retryLane=c!==0&&c<i?c:i}}function nb(a,i){Q6(a,i),(a=a.alternate)&&Q6(a,i)}function X6(a){if(a.tag===13){var i=nc(a,67108864);i!==null&&Za(i,a,67108864),nb(a,67108864)}}var Sm=!0;function HO(a,i,c,f){var y=Z.T;Z.T=null;var v=ne.p;try{ne.p=2,ab(a,i,c,f)}finally{ne.p=v,Z.T=y}}function ZO(a,i,c,f){var y=Z.T;Z.T=null;var v=ne.p;try{ne.p=8,ab(a,i,c,f)}finally{ne.p=v,Z.T=y}}function ab(a,i,c,f){if(Sm){var y=sb(f);if(y===null)Fy(a,i,f,xm,c),e4(a,f);else if(FO(y,a,i,c,f))f.stopPropagation();else if(e4(a,f),i&4&&-1<VO.indexOf(a)){for(;y!==null;){var v=En(y);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var A=pr(v.pendingLanes);if(A!==0){var D=v;for(D.pendingLanes|=2,D.entangledLanes|=2;A;){var K=1<<31-Xt(A);D.entanglements[1]|=K,A&=~K}Gs(v),(Sr&6)===0&&(am=nt()+500,Af(0))}}break;case 13:D=nc(v,2),D!==null&&Za(D,v,2),im(),nb(v,2)}if(v=sb(f),v===null&&Fy(a,i,f,xm,c),v===y)break;y=v}y!==null&&f.stopPropagation()}else Fy(a,i,f,null,c)}}function sb(a){return a=Tn(a),ib(a)}var xm=null;function ib(a){if(xm=null,a=ar(a),a!==null){var i=o(a);if(i===null)a=null;else{var c=i.tag;if(c===13){if(a=l(i),a!==null)return a;a=null}else if(c===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return xm=a,null}function J6(a){switch(a){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(bt()){case Tt:return 2;case Kt:return 8;case vt:case _e:return 32;case pt:return 268435456;default:return 32}default:return 32}}var ob=!1,wo=null,Co=null,$o=null,Df=new Map,zf=new Map,ko=[],VO="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 e4(a,i){switch(a){case"focusin":case"focusout":wo=null;break;case"dragenter":case"dragleave":Co=null;break;case"mouseover":case"mouseout":$o=null;break;case"pointerover":case"pointerout":Df.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":zf.delete(i.pointerId)}}function jf(a,i,c,f,y,v){return a===null||a.nativeEvent!==v?(a={blockedOn:i,domEventName:c,eventSystemFlags:f,nativeEvent:v,targetContainers:[y]},i!==null&&(i=En(i),i!==null&&X6(i)),a):(a.eventSystemFlags|=f,i=a.targetContainers,y!==null&&i.indexOf(y)===-1&&i.push(y),a)}function FO(a,i,c,f,y){switch(i){case"focusin":return wo=jf(wo,a,i,c,f,y),!0;case"dragenter":return Co=jf(Co,a,i,c,f,y),!0;case"mouseover":return $o=jf($o,a,i,c,f,y),!0;case"pointerover":var v=y.pointerId;return Df.set(v,jf(Df.get(v)||null,a,i,c,f,y)),!0;case"gotpointercapture":return v=y.pointerId,zf.set(v,jf(zf.get(v)||null,a,i,c,f,y)),!0}return!1}function t4(a){var i=ar(a.target);if(i!==null){var c=o(i);if(c!==null){if(i=c.tag,i===13){if(i=l(c),i!==null){a.blockedOn=i,ge(a.priority,function(){if(c.tag===13){var f=Ha();f=gn(f);var y=nc(c,f);y!==null&&Za(y,c,f),nb(c,f)}});return}}else if(i===3&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}a.blockedOn=null}function wm(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var c=sb(a.nativeEvent);if(c===null){c=a.nativeEvent;var f=new c.constructor(c.type,c);Rt=f,c.target.dispatchEvent(f),Rt=null}else return i=En(c),i!==null&&X6(i),a.blockedOn=c,!1;i.shift()}return!0}function r4(a,i,c){wm(a)&&c.delete(i)}function qO(){ob=!1,wo!==null&&wm(wo)&&(wo=null),Co!==null&&wm(Co)&&(Co=null),$o!==null&&wm($o)&&($o=null),Df.forEach(r4),zf.forEach(r4)}function Cm(a,i){a.blockedOn===i&&(a.blockedOn=null,ob||(ob=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,qO)))}var $m=null;function n4(a){$m!==a&&($m=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){$m===a&&($m=null);for(var i=0;i<a.length;i+=3){var c=a[i],f=a[i+1],y=a[i+2];if(typeof f!="function"){if(ib(f||c)===null)continue;break}var v=En(c);v!==null&&(a.splice(i,3),i-=3,iy(v,{pending:!0,data:y,method:c.method,action:f},f,y))}}))}function Bf(a){function i(K){return Cm(K,a)}wo!==null&&Cm(wo,a),Co!==null&&Cm(Co,a),$o!==null&&Cm($o,a),Df.forEach(i),zf.forEach(i);for(var c=0;c<ko.length;c++){var f=ko[c];f.blockedOn===a&&(f.blockedOn=null)}for(;0<ko.length&&(c=ko[0],c.blockedOn===null);)t4(c),c.blockedOn===null&&ko.shift();if(c=(a.ownerDocument||a).$$reactFormReplay,c!=null)for(f=0;f<c.length;f+=3){var y=c[f],v=c[f+1],A=y[kt]||null;if(typeof v=="function")A||n4(c);else if(A){var D=null;if(v&&v.hasAttribute("formAction")){if(y=v,A=v[kt]||null)D=A.formAction;else if(ib(y)!==null)continue}else D=A.action;typeof D=="function"?c[f+1]=D:(c.splice(f,3),f-=3),n4(c)}}}function lb(a){this._internalRoot=a}km.prototype.render=lb.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(n(409));var c=i.current,f=Ha();Y6(c,f,a,i,null,null)},km.prototype.unmount=lb.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var i=a.containerInfo;Y6(a.current,2,null,a,null,null),im(),i[At]=null}};function km(a){this._internalRoot=a}km.prototype.unstable_scheduleHydration=function(a){if(a){var i=X();a={blockedOn:null,target:a,priority:i};for(var c=0;c<ko.length&&i!==0&&i<ko[c].priority;c++);ko.splice(c,0,a),c===0&&t4(a)}};var a4=t.version;if(a4!=="19.1.0")throw Error(n(527,a4,"19.1.0"));ne.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error(n(188)):(a=Object.keys(a).join(","),Error(n(268,a)));return a=d(i),a=a!==null?h(a):null,a=a===null?null:a.stateNode,a};var GO={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Em=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Em.isDisabled&&Em.supportsFiber)try{ir=Em.inject(GO),It=Em}catch{}}return Hf.createRoot=function(a,i){if(!s(a))throw Error(n(299));var c=!1,f="",y=S8,v=x8,A=w8,D=null;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(y=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(A=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(D=i.unstable_transitionCallbacks)),i=K6(a,1,!1,null,null,c,f,y,v,A,D,null),a[At]=i.current,Vy(a),new lb(i)},Hf.hydrateRoot=function(a,i,c){if(!s(a))throw Error(n(299));var f=!1,y="",v=S8,A=x8,D=w8,K=null,le=null;return c!=null&&(c.unstable_strictMode===!0&&(f=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onUncaughtError!==void 0&&(v=c.onUncaughtError),c.onCaughtError!==void 0&&(A=c.onCaughtError),c.onRecoverableError!==void 0&&(D=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(K=c.unstable_transitionCallbacks),c.formState!==void 0&&(le=c.formState)),i=K6(a,1,!0,i,c??null,f,y,v,A,D,K,le),i.context=W6(null),c=i.current,f=Ha(),f=gn(f),y=oo(f),y.callback=null,lo(c,y,f),c=f,i.current.lanes=c,Xr(i,c),Gs(i),a[At]=i.current,Vy(a),new km(i)},Hf.version="19.1.0",Hf}var m4;function s9(){if(m4)return fb.exports;m4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fb.exports=a9(),fb.exports}var i9=s9(),o9="Invariant failed";function Ii(e,t){if(!e)throw new Error(o9)}const Gc=new WeakMap,Gm=new WeakMap,dg={current:[]};let gb=!1,dh=0;const sh=new Set,Tm=new Map;function cE(e){const t=Array.from(e).sort((r,n)=>r instanceof Kc&&r.options.deps.includes(n)?1:n instanceof Kc&&n.options.deps.includes(r)?-1:0);for(const r of t){if(dg.current.includes(r))continue;dg.current.push(r),r.recompute();const n=Gm.get(r);if(n)for(const s of n){const o=Gc.get(s);o&&cE(o)}}}function l9(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function c9(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function uE(e){if(dh>0&&!Tm.has(e)&&Tm.set(e,e.prevState),sh.add(e),!(dh>0)&&!gb)try{for(gb=!0;sh.size>0;){const t=Array.from(sh);sh.clear();for(const r of t){const n=Tm.get(r)??r.prevState;r.prevState=n,l9(r)}for(const r of t){const n=Gc.get(r);n&&(dg.current.push(r),cE(n))}for(const r of t){const n=Gc.get(r);if(n)for(const s of n)c9(s)}}}finally{gb=!1,dg.current=[],Tm.clear()}}function g4(e){dh++;try{e()}finally{if(dh--,dh===0){const t=Array.from(sh)[0];t&&uE(t)}}}class bv{constructor(t,r){this.listeners=new Set,this.subscribe=n=>{var s,o;this.listeners.add(n);const l=(o=(s=this.options)==null?void 0:s.onSubscribe)==null?void 0:o.call(s,n,this);return()=>{this.listeners.delete(n),l==null||l()}},this.setState=n=>{var s,o,l;this.prevState=this.state,this.state=(s=this.options)!=null&&s.updateFn?this.options.updateFn(this.prevState)(n):n(this.prevState),(l=(o=this.options)==null?void 0:o.onUpdate)==null||l.call(o),uE(this)},this.prevState=t,this.state=t,this.options=r}}class Kc{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const r=[],n=[];for(const s of this.options.deps)r.push(s.prevState),n.push(s.state);return this.lastSeenDepValues=n,{prevDepVals:r,currDepVals:n,prevVal:this.prevState??void 0}},this.recompute=()=>{var r,n;this.prevState=this.state;const{prevDepVals:s,currDepVals:o,prevVal:l}=this.getDepVals();this.state=this.options.fn({prevDepVals:s,currDepVals:o,prevVal:l}),(n=(r=this.options).onUpdate)==null||n.call(r)},this.checkIfRecalculationNeededDeeply=()=>{for(const o of this.options.deps)o instanceof Kc&&o.checkIfRecalculationNeededDeeply();let r=!1;const n=this.lastSeenDepValues,{currDepVals:s}=this.getDepVals();for(let o=0;o<s.length;o++)if(s[o]!==n[o]){r=!0;break}r&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const r of this._subscriptions)r()}),this.subscribe=r=>{var n,s;this.listeners.add(r);const o=(s=(n=this.options).onSubscribe)==null?void 0:s.call(n,r,this);return()=>{this.listeners.delete(r),o==null||o()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const r of t)if(r instanceof Kc)r.registerOnGraph(),this.registerOnGraph(r.options.deps);else if(r instanceof bv){let n=Gc.get(r);n||(n=new Set,Gc.set(r,n)),n.add(this);let s=Gm.get(this);s||(s=new Set,Gm.set(this,s)),s.add(r)}}unregisterFromGraph(t=this.options.deps){for(const r of t)if(r instanceof Kc)this.unregisterFromGraph(r.options.deps);else if(r instanceof bv){const n=Gc.get(r);n&&n.delete(this);const s=Gm.get(this);s&&s.delete(r)}}}const Bo="__TSR_index",y4="popstate",b4="beforeunload";function dE(e){let t=e.getLocation();const r=new Set,n=l=>{t=e.getLocation(),r.forEach(u=>u({location:t,action:l}))},s=l=>{e.notifyOnIndexChange??!0?n(l):t=e.getLocation()},o=async({task:l,navigateOpts:u,...d})=>{var h,p;if((u==null?void 0:u.ignoreBlocker)??!1){l();return}const b=((h=e.getBlockers)==null?void 0:h.call(e))??[],S=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&b.length&&S)for(const x of b){const C=bh(d.path,d.state);if(await x.blockerFn({currentLocation:t,nextLocation:C,action:d.type})){(p=e.onBlocked)==null||p.call(e);return}}l()};return{get location(){return t},get length(){return e.getLength()},subscribers:r,subscribe:l=>(r.add(l),()=>{r.delete(l)}),push:(l,u,d)=>{const h=t.state[Bo];u=vv(h+1,u),o({task:()=>{e.pushState(l,u),n({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:l,state:u})},replace:(l,u,d)=>{const h=t.state[Bo];u=vv(h,u),o({task:()=>{e.replaceState(l,u),n({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:l,state:u})},go:(l,u)=>{o({task:()=>{e.go(l),s({type:"GO",index:l})},navigateOpts:u,type:"GO"})},back:l=>{o({task:()=>{e.back((l==null?void 0:l.ignoreBlocker)??!1),s({type:"BACK"})},navigateOpts:l,type:"BACK"})},forward:l=>{o({task:()=>{e.forward((l==null?void 0:l.ignoreBlocker)??!1),s({type:"FORWARD"})},navigateOpts:l,type:"FORWARD"})},canGoBack:()=>t.state[Bo]!==0,createHref:l=>e.createHref(l),block:l=>{var u;if(!e.setBlockers)return()=>{};const d=((u=e.getBlockers)==null?void 0:u.call(e))??[];return e.setBlockers([...d,l]),()=>{var h,p;const m=((h=e.getBlockers)==null?void 0:h.call(e))??[];(p=e.setBlockers)==null||p.call(e,m.filter(b=>b!==l))}},flush:()=>{var l;return(l=e.flush)==null?void 0:l.call(e)},destroy:()=>{var l;return(l=e.destroy)==null?void 0:l.call(e)},notify:n}}function vv(e,t){t||(t={});const r=Z2();return{...t,key:r,__TSR_key:r,[Bo]:e}}function u9(e){var t,r;const n=typeof document<"u"?window:void 0,s=n.history.pushState,o=n.history.replaceState;let l=[];const u=()=>l,d=k=>l=k,h=k=>k,p=()=>bh(`${n.location.pathname}${n.location.search}${n.location.hash}`,n.history.state);if(!((t=n.history.state)!=null&&t.__TSR_key)&&!((r=n.history.state)!=null&&r.key)){const k=Z2();n.history.replaceState({[Bo]:0,key:k,__TSR_key:k},"")}let m=p(),b,S=!1,x=!1,C=!1,$=!1;const _=()=>m;let M,T;const R=()=>{M&&(z._ignoreSubscribers=!0,(M.isPush?n.history.pushState:n.history.replaceState)(M.state,"",M.href),z._ignoreSubscribers=!1,M=void 0,T=void 0,b=void 0)},L=(k,H,q)=>{const V=h(H);T||(b=m),m=bh(H,q),M={href:V,state:q,isPush:(M==null?void 0:M.isPush)||k==="push"},T||(T=Promise.resolve().then(()=>R()))},j=k=>{m=p(),z.notify({type:k})},O=async()=>{if(x){x=!1;return}const k=p(),H=k.state[Bo]-m.state[Bo],q=H===1,V=H===-1,W=!q&&!V||S;S=!1;const ae=W?"GO":V?"BACK":"FORWARD",Z=W?{type:"GO",index:H}:{type:V?"BACK":"FORWARD"};if(C)C=!1;else{const ne=u();if(typeof document<"u"&&ne.length){for(const ee of ne)if(await ee.blockerFn({currentLocation:m,nextLocation:k,action:ae})){x=!0,n.history.go(1),z.notify(Z);return}}}m=p(),z.notify(Z)},N=k=>{if($){$=!1;return}let H=!1;const q=u();if(typeof document<"u"&&q.length)for(const V of q){const W=V.enableBeforeUnload??!0;if(W===!0){H=!0;break}if(typeof W=="function"&&W()===!0){H=!0;break}}if(H)return k.preventDefault(),k.returnValue=""},z=dE({getLocation:_,getLength:()=>n.history.length,pushState:(k,H)=>L("push",k,H),replaceState:(k,H)=>L("replace",k,H),back:k=>(k&&(C=!0),$=!0,n.history.back()),forward:k=>{k&&(C=!0),$=!0,n.history.forward()},go:k=>{S=!0,n.history.go(k)},createHref:k=>h(k),flush:R,destroy:()=>{n.history.pushState=s,n.history.replaceState=o,n.removeEventListener(b4,N,{capture:!0}),n.removeEventListener(y4,O)},onBlocked:()=>{b&&m!==b&&(m=b)},getBlockers:u,setBlockers:d,notifyOnIndexChange:!1});return n.addEventListener(b4,N,{capture:!0}),n.addEventListener(y4,O),n.history.pushState=function(...k){const H=s.apply(n.history,k);return z._ignoreSubscribers||j("PUSH"),H},n.history.replaceState=function(...k){const H=o.apply(n.history,k);return z._ignoreSubscribers||j("REPLACE"),H},z}function d9(e={initialEntries:["/"]}){const t=e.initialEntries;let r=e.initialIndex?Math.min(Math.max(e.initialIndex,0),t.length-1):t.length-1;const n=t.map((o,l)=>vv(l,void 0));return dE({getLocation:()=>bh(t[r],n[r]),getLength:()=>t.length,pushState:(o,l)=>{r<t.length-1&&(t.splice(r+1),n.splice(r+1)),n.push(l),t.push(o),r=Math.max(t.length-1,0)},replaceState:(o,l)=>{n[r]=l,t[r]=o},back:()=>{r=Math.max(r-1,0)},forward:()=>{r=Math.min(r+1,t.length-1)},go:o=>{r=Math.min(Math.max(r+o,0),t.length-1)},createHref:o=>o})}function bh(e,t){const r=e.indexOf("#"),n=e.indexOf("?"),s=Z2();return{href:e,pathname:e.substring(0,r>0?n>0?Math.min(r,n):r:n>0?n:e.length),hash:r>-1?e.substring(r):"",search:n>-1?e.slice(n,r===-1?void 0:r):"",state:t||{[Bo]:0,key:s,__TSR_key:s}}}function Z2(){return(Math.random()+1).toString(36).substring(7)}function Sv(e){return e[e.length-1]}function f9(e){return typeof e=="function"}function Ol(e,t){return f9(e)?e(t):e}function fg(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function is(e,t){if(e===t)return e;const r=t,n=x4(e)&&x4(r);if(n||v4(e)&&v4(r)){const s=n?e:Object.keys(e).concat(Object.getOwnPropertySymbols(e)),o=s.length,l=n?r:Object.keys(r).concat(Object.getOwnPropertySymbols(r)),u=l.length,d=n?[]:{};let h=0;for(let p=0;p<u;p++){const m=n?p:l[p];(!n&&s.includes(m)||n)&&e[m]===void 0&&r[m]===void 0?(d[m]=void 0,h++):(d[m]=is(e[m],r[m]),d[m]===e[m]&&e[m]!==void 0&&h++)}return o===u&&h===o?e:d}return r}function v4(e){return xv(e)&&Object.getOwnPropertyNames(e).length===Object.keys(e).length}function xv(e){if(!S4(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!S4(r)||!r.hasOwnProperty("isPrototypeOf"))}function S4(e){return Object.prototype.toString.call(e)==="[object Object]"}function x4(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w4(e,t){let r=Object.keys(e);return t&&(r=r.filter(n=>e[n]!==void 0)),r}function Wc(e,t,r){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(xv(e)&&xv(t)){const n=(r==null?void 0:r.ignoreUndefined)??!0,s=w4(e,n),o=w4(t,n);return!(r!=null&&r.partial)&&s.length!==o.length?!1:o.every(l=>Wc(e[l],t[l],r))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((n,s)=>!Wc(n,t[s],r)):!1}function gl(e){let t,r;const n=new Promise((s,o)=>{t=s,r=o});return n.status="pending",n.resolve=s=>{n.status="resolved",n.value=s,t(s),e==null||e(s)},n.reject=s=>{n.status="rejected",r(s)},n}function Mi(e){return r0(e.filter(t=>t!==void 0).join("/"))}function r0(e){return e.replace(/\/{2,}/g,"/")}function V2(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Td(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function yb(e){return Td(V2(e))}function hg(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function h9(e,t,r){return hg(e,r)===hg(t,r)}function p9({basepath:e,base:t,to:r,trailingSlash:n="never",caseSensitive:s}){var o,l;t=pg(e,t,s),r=pg(e,r,s);let u=Ad(t);const d=Ad(r);u.length>1&&((o=Sv(u))==null?void 0:o.value)==="/"&&u.pop(),d.forEach((m,b)=>{m.value==="/"?b?b===d.length-1&&u.push(m):u=[m]:m.value===".."?u.pop():m.value==="."||u.push(m)}),u.length>1&&(((l=Sv(u))==null?void 0:l.value)==="/"?n==="never"&&u.pop():n==="always"&&u.push({type:"pathname",value:"/"}));const h=u.map(m=>{if(m.type==="param"){const b=m.value.substring(1);if(m.prefixSegment&&m.suffixSegment)return`${m.prefixSegment}{$${b}}${m.suffixSegment}`;if(m.prefixSegment)return`${m.prefixSegment}{$${b}}`;if(m.suffixSegment)return`{$${b}}${m.suffixSegment}`}if(m.type==="wildcard"){if(m.prefixSegment&&m.suffixSegment)return`${m.prefixSegment}{$}${m.suffixSegment}`;if(m.prefixSegment)return`${m.prefixSegment}{$}`;if(m.suffixSegment)return`{$}${m.suffixSegment}`}return m.value}),p=Mi([e,...h]);return r0(p)}const m9=/^\$.{1,}$/,g9=/^(.*?)\{(\$[a-zA-Z_$][a-zA-Z0-9_$]*)\}(.*)$/,y9=/^\$$/,b9=/^(.*?)\{\$\}(.*)$/;function Ad(e){if(!e)return[];e=r0(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const r=e.split("/").filter(Boolean);return t.push(...r.map(n=>{const s=n.match(b9);if(s){const l=s[1],u=s[2];return{type:"wildcard",value:"$",prefixSegment:l||void 0,suffixSegment:u||void 0}}const o=n.match(g9);if(o){const l=o[1],u=o[2],d=o[3];return{type:"param",value:""+u,prefixSegment:l||void 0,suffixSegment:d||void 0}}return m9.test(n)?{type:"param",value:"$"+n.substring(1),prefixSegment:void 0,suffixSegment:void 0}:y9.test(n)?{type:"wildcard",value:"$",prefixSegment:void 0,suffixSegment:void 0}:{type:"pathname",value:n.includes("%25")?n.split("%25").map(l=>decodeURI(l)).join("%25"):decodeURI(n)}})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function bb({path:e,params:t,leaveWildcards:r,leaveParams:n,decodeCharMap:s}){const o=Ad(e);function l(p){const m=t[p],b=typeof m=="string";return["*","_splat"].includes(p)?b?encodeURI(m):m:b?v9(m,s):m}let u=!1;const d={},h=Mi(o.map(p=>{if(p.type==="wildcard"){d._splat=t._splat;const m=p.prefixSegment||"",b=p.suffixSegment||"";if(!("_splat"in t))return u=!0,r?`${m}${p.value}${b}`:m||b?`${m}${b}`:void 0;const S=l("_splat");return r?`${m}${p.value}${S??""}${b}`:`${m}${S}${b}`}if(p.type==="param"){const m=p.value.substring(1);!u&&!(m in t)&&(u=!0),d[m]=t[m];const b=p.prefixSegment||"",S=p.suffixSegment||"";if(n){const x=l(p.value);return`${b}${p.value}${x??""}${S}`}return`${b}${l(m)??"undefined"}${S}`}return p.value}));return{usedParams:d,interpolatedPath:h,isMissingParams:u}}function v9(e,t){let r=encodeURIComponent(e);if(t)for(const[n,s]of t)r=r.replaceAll(n,s);return r}function wv(e,t,r){const n=S9(e,t,r);if(!(r.to&&!n))return n??{}}function pg(e,t,r=!1){const n=r?e:e.toLowerCase(),s=r?t:t.toLowerCase();switch(!0){case n==="/":return t;case s===n:return"";case t.length<e.length:return t;case s[n.length]!=="/":return t;case s.startsWith(n):return t.slice(e.length);default:return t}}function S9(e,t,r){if(e!=="/"&&!t.startsWith(e))return;t=pg(e,t,r.caseSensitive);const n=pg(e,`${r.to??"$"}`,r.caseSensitive),s=Ad(t),o=Ad(n);t.startsWith("/")||s.unshift({type:"pathname",value:"/"}),n.startsWith("/")||o.unshift({type:"pathname",value:"/"});const l={};return(()=>{var d;for(let h=0;h<Math.max(s.length,o.length);h++){const p=s[h],m=o[h],b=h>=s.length-1,S=h>=o.length-1;if(m){if(m.type==="wildcard"){const x=s.slice(h);let C;if(m.prefixSegment||m.suffixSegment){if(!p)return!1;const $=m.prefixSegment||"",_=m.suffixSegment||"",M=p.value;if("prefixSegment"in m&&!M.startsWith($)||"suffixSegment"in m&&!((d=s[s.length-1])!=null&&d.value.endsWith(_)))return!1;let T=decodeURI(Mi(x.map(R=>R.value)));$&&T.startsWith($)&&(T=T.slice($.length)),_&&T.endsWith(_)&&(T=T.slice(0,T.length-_.length)),C=T}else C=decodeURI(Mi(x.map($=>$.value)));return l["*"]=C,l._splat=C,!0}if(m.type==="pathname"){if(m.value==="/"&&!(p!=null&&p.value))return!0;if(p){if(r.caseSensitive){if(m.value!==p.value)return!1}else if(m.value.toLowerCase()!==p.value.toLowerCase())return!1}}if(!p)return!1;if(m.type==="param"){if(p.value==="/")return!1;let x;if(m.prefixSegment||m.suffixSegment){const C=m.prefixSegment||"",$=m.suffixSegment||"",_=p.value;if(C&&!_.startsWith(C)||$&&!_.endsWith($))return!1;let M=_;C&&M.startsWith(C)&&(M=M.slice(C.length)),$&&M.endsWith($)&&(M=M.slice(0,M.length-$.length)),x=decodeURIComponent(M)}else x=decodeURIComponent(p.value);l[m.value.substring(1)]=x}}if(!b&&S)return l["**"]=Mi(s.slice(h+1).map(x=>x.value)),!!r.fuzzy&&(m==null?void 0:m.value)!=="/"}return!0})()?l:void 0}function ls(e){return!!(e!=null&&e.isNotFound)}function x9(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{return}}const mg="tsr-scroll-restoration-v1_3",w9=(e,t)=>{let r;return(...n)=>{r||(r=setTimeout(()=>{e(...n),r=null},t))}};function C9(){const e=x9();if(!e)return;const t=e.getItem(mg);let r=t?JSON.parse(t):{};return{state:r,set:n=>(r=Ol(n,r)||r,e.setItem(mg,JSON.stringify(r)))}}const vb=C9(),Cv=e=>e.state.__TSR_key||e.href;function $9(e){const t=[];let r;for(;r=e.parentNode;)t.unshift(`${e.tagName}:nth-child(${[].indexOf.call(r.children,e)+1})`),e=r;return`${t.join(" > ")}`.toLowerCase()}let gg=!1;function fE(e,t,r,n,s){var o;let l;try{l=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(h){console.error(h);return}const u=t||((o=window.history.state)==null?void 0:o.key),d=l[u];gg=!0,(()=>{if(n&&d){for(const p in d){const m=d[p];if(p==="window")window.scrollTo({top:m.scrollY,left:m.scrollX,behavior:r});else if(p){const b=document.querySelector(p);b&&(b.scrollLeft=m.scrollX,b.scrollTop=m.scrollY)}}return}const h=window.location.hash.split("#")[1];if(h){const p=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(p){const m=document.getElementById(h);m&&m.scrollIntoView(p)}return}["window",...(s==null?void 0:s.filter(p=>p!=="window"))??[]].forEach(p=>{const m=p==="window"?window:typeof p=="function"?p():document.querySelector(p);m&&m.scrollTo({top:0,left:0,behavior:r})})})(),gg=!1}function k9(e,t){if(vb===void 0||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),typeof document>"u"||e.isScrollRestorationSetup))return;e.isScrollRestorationSetup=!0,gg=!1;const n=e.options.getScrollRestorationKey||Cv;window.history.scrollRestoration="manual";const s=o=>{if(gg||!e.isScrollRestoring)return;let l="";if(o.target===document||o.target===window)l="window";else{const d=o.target.getAttribute("data-scroll-restoration-id");d?l=`[data-scroll-restoration-id="${d}"]`:l=$9(o.target)}const u=n(e.state.location);vb.set(d=>{const h=d[u]=d[u]||{},p=h[l]=h[l]||{};if(l==="window")p.scrollX=window.scrollX||0,p.scrollY=window.scrollY||0;else if(l){const m=document.querySelector(l);m&&(p.scrollX=m.scrollLeft||0,p.scrollY=m.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",w9(s,100),!0),e.subscribe("onRendered",o=>{const l=n(o.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}fE(mg,l,e.options.scrollRestorationBehavior||void 0,e.isScrollRestoring||void 0,e.options.scrollToTopSelectors||void 0),e.isScrollRestoring&&vb.set(u=>(u[l]=u[l]||{},u))})}function E9(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const r=document.getElementById(e.state.location.hash);r&&r.scrollIntoView(t)}}}function _9(e,t){const r=Object.entries(e).flatMap(([s,o])=>Array.isArray(o)?o.map(l=>[s,String(l)]):[[s,String(o)]]);return""+new URLSearchParams(r).toString()}function Sb(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function T9(e,t){const r=e;return[...new URLSearchParams(r).entries()].reduce((o,[l,u])=>{const d=o[l];return d==null?o[l]=Sb(u):o[l]=Array.isArray(d)?[...d,Sb(u)]:[d,Sb(u)],o},{})}const A9=O9(JSON.parse),R9=M9(JSON.stringify,JSON.parse);function O9(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));const r=T9(t);for(const n in r){const s=r[n];if(typeof s=="string")try{r[n]=e(s)}catch{}}return r}}function M9(e,t){function r(n){if(typeof n=="object"&&n!==null)try{return e(n)}catch{}else if(typeof n=="string"&&typeof t=="function")try{return t(n),e(n)}catch{}return n}return n=>{n={...n},Object.keys(n).forEach(o=>{const l=n[o];typeof l>"u"||l===void 0?delete n[o]:n[o]=r(l)});const s=_9(n).toString();return s?`?${s}`:""}}const Rs="__root__";function hE(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument)try{new URL(`${e.href}`),e.reloadDocument=!0}catch{}const t=new Headers(e.headers||{});e.href&&t.get("Location")===null&&t.set("Location",e.href);const r=new Response(null,{status:e.statusCode,headers:t});if(r.options=e,e.throw)throw r;return r}function Xs(e){return e instanceof Response&&!!e.options}function Ml(e){const t=e.resolvedLocation,r=e.location,n=(t==null?void 0:t.pathname)!==r.pathname,s=(t==null?void 0:t.href)!==r.href,o=(t==null?void 0:t.hash)!==r.hash;return{fromLocation:t,toLocation:r,pathChanged:n,hrefChanged:s,hashChanged:o}}class N9{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=r=>r(),this.isShell=!1,this.update=r=>{var n;r.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const s=this.options;this.options={...this.options,...r},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(o=>[encodeURIComponent(o),o])):void 0,(!this.basepath||r.basepath&&r.basepath!==s.basepath)&&(r.basepath===void 0||r.basepath===""||r.basepath==="/"?this.basepath="/":this.basepath=`/${yb(r.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?d9({initialEntries:[this.basepath||"/"]}):u9()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new bv(P9(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(o=>!["redirected"].includes(o.status))}}}),k9(this)),typeof window<"u"&&"CSS"in window&&typeof((n=window.CSS)==null?void 0:n.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)")),this.latestLocation.search.__TSS_SHELL&&(this.isShell=!0)},this.buildRouteTree=()=>{const{routesById:r,routesByPath:n,flatRoutes:s}=I9({routeTree:this.routeTree,initRoute:(l,u)=>{l.init({originalIndex:u})}});this.routesById=r,this.routesByPath=n,this.flatRoutes=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)},this.subscribe=(r,n)=>{const s={eventType:r,fn:n};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=r=>{this.subscribers.forEach(n=>{n.eventType===r.type&&n.fn(r)})},this.parseLocation=(r,n)=>{const s=({pathname:d,search:h,hash:p,state:m})=>{const b=this.options.parseSearch(h),S=this.options.stringifySearch(b);return{pathname:d,searchStr:S,search:is(r==null?void 0:r.search,b),hash:p.split("#").reverse()[0]??"",href:`${d}${S}${p}`,state:is(r==null?void 0:r.state,m)}},o=s(n??this.history.location),{__tempLocation:l,__tempKey:u}=o.state;if(l&&(!u||u===this.tempLocationKey)){const d=s(l);return d.state.key=o.state.key,d.state.__TSR_key=o.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:o}}return o},this.resolvePathWithBase=(r,n)=>p9({basepath:this.basepath,base:r,to:r0(n),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.matchRoutes=(r,n,s)=>typeof r=="string"?this.matchRoutesInternal({pathname:r,search:n},s):this.matchRoutesInternal(r,n),this.getMatchedRoutes=(r,n)=>D9({pathname:r,routePathname:n,basepath:this.basepath,caseSensitive:this.options.caseSensitive,routesByPath:this.routesByPath,routesById:this.routesById,flatRoutes:this.flatRoutes}),this.cancelMatch=r=>{const n=this.getMatch(r);n&&(n.abortController.abort(),this.updateMatch(r,s=>(clearTimeout(s.pendingTimeout),{...s,pendingTimeout:void 0})))},this.cancelMatches=()=>{var r;(r=this.state.pendingMatches)==null||r.forEach(n=>{this.cancelMatch(n.id)})},this.buildLocation=r=>{const n=(o={})=>{var l;const u=o._fromLocation||this.latestLocation,d=this.matchRoutes(u,{_buildLocation:!0}),h=Sv(d);let p=h.fullPath;const m=o.to?this.resolvePathWithBase(p,`${o.to}`):this.resolvePathWithBase(p,"."),b=!!o.to&&!this.comparePaths(o.to.toString(),p)&&!this.comparePaths(m,p);o.unsafeRelative==="path"?p=u.pathname:b&&o.from&&(p=o.from,[...d].reverse().find(z=>this.comparePaths(z.fullPath,p))||console.warn(`Could not find match for from: ${p}`));const S=h.search,x={...h.params},C=o.to?this.resolvePathWithBase(p,`${o.to}`):this.resolvePathWithBase(p,".");let $=(o.params??!0)===!0?x:{...x,...Ol(o.params,x)};const _=this.matchRoutes(C,{},{_buildLocation:!0}).map(N=>this.looseRoutesById[N.routeId]);Object.keys($).length>0&&_.map(N=>{var z;return((z=N.options.params)==null?void 0:z.stringify)??N.options.stringifyParams}).filter(Boolean).forEach(N=>{$={...$,...N($)}});const M=bb({path:C,params:$??{},leaveWildcards:!1,leaveParams:r.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;let T=S;if(r._includeValidateSearch&&((l=this.options.search)!=null&&l.strict)){let N={};_.forEach(z=>{try{z.options.validateSearch&&(N={...N,...$v(z.options.validateSearch,{...N,...T})??{}})}catch{}}),T=N}T=z9({search:T,dest:o,destRoutes:_,_includeValidateSearch:r._includeValidateSearch}),T=is(S,T);const R=this.options.stringifySearch(T),L=o.hash===!0?u.hash:o.hash?Ol(o.hash,u.hash):void 0,j=L?`#${L}`:"";let O=o.state===!0?u.state:o.state?Ol(o.state,u.state):{};return O=is(u.state,O),{pathname:M,search:T,searchStr:R,state:O,hash:L??"",href:`${M}${R}${j}`,unmaskOnReload:o.unmaskOnReload}},s=(o={},l)=>{var u;const d=n(o);let h=l?n(l):void 0;if(!h){let p={};const m=(u=this.options.routeMasks)==null?void 0:u.find(b=>{const S=wv(this.basepath,d.pathname,{to:b.from,caseSensitive:!1,fuzzy:!1});return S?(p=S,!0):!1});if(m){const{from:b,...S}=m;l={...fg(r,["from"]),...S,params:p},h=n(l)}}if(h){const p=n(l);d.maskedLocation=p}return d};return r.mask?s(r,{...fg(r,["from"]),...r.mask}):s(r)},this.commitLocation=({viewTransition:r,ignoreBlocker:n,...s})=>{const o=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(p=>{s.state[p]=this.latestLocation.state[p]});const h=Wc(s.state,this.latestLocation.state);return d.forEach(p=>{delete s.state[p]}),h},l=this.latestLocation.href===s.href,u=this.commitLocationPromise;if(this.commitLocationPromise=gl(()=>{u==null||u.resolve()}),l&&o())this.load();else{let{maskedLocation:d,hashScrollIntoView:h,...p}=s;d&&(p={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...p,search:p.searchStr,state:{...p.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(p.unmaskOnReload??this.options.unmaskOnReload??!1)&&(p.state.__tempKey=this.tempLocationKey)),p.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=r,this.history[s.replace?"replace":"push"](p.href,p.state,{ignoreBlocker:n})}return this.resetNextScroll=s.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:r,resetScroll:n,hashScrollIntoView:s,viewTransition:o,ignoreBlocker:l,href:u,...d}={})=>{if(u){const p=this.history.location.state.__TSR_index,m=bh(u,{__TSR_index:r?p:p+1});d.to=m.pathname,d.search=this.options.parseSearch(m.search),d.hash=m.hash.slice(1)}const h=this.buildLocation({...d,_includeValidateSearch:!0});return this.commitLocation({...h,viewTransition:o,replace:r,resetScroll:n,hashScrollIntoView:s,ignoreBlocker:l})},this.navigate=({to:r,reloadDocument:n,href:s,...o})=>{if(!n&&s)try{new URL(`${s}`),n=!0}catch{}if(n){if(!s){const l=this.buildLocation({to:r,...o});s=this.history.createHref(l.href)}o.replace?window.location.replace(s):window.location.href=s;return}return this.buildAndCommitLocation({...o,href:s,to:r})},this.beforeLoad=()=>{if(this.cancelMatches(),this.latestLocation=this.parseLocation(this.latestLocation),this.isServer){const n=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(yb(this.latestLocation.href)!==yb(n.href))throw hE({href:n.href})}let r=this.matchRoutes(this.latestLocation);this.isShell&&(r=r.slice(0,1)),this.__store.setState(n=>({...n,status:"pending",isLoading:!0,location:this.latestLocation,pendingMatches:r,cachedMatches:n.cachedMatches.filter(s=>!r.find(o=>o.id===s.id))}))},this.load=async r=>{let n,s,o;for(o=new Promise(l=>{this.startTransition(async()=>{var u;try{this.beforeLoad();const d=this.latestLocation,h=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ml({resolvedLocation:h,location:d})}),this.emit({type:"onBeforeLoad",...Ml({resolvedLocation:h,location:d})}),await this.loadMatches({sync:r==null?void 0:r.sync,matches:this.state.pendingMatches,location:d,onReady:async()=>{this.startViewTransition(async()=>{let p,m,b;g4(()=>{this.__store.setState(S=>{const x=S.matches,C=S.pendingMatches||S.matches;return p=x.filter($=>!C.find(_=>_.id===$.id)),m=C.filter($=>!x.find(_=>_.id===$.id)),b=x.filter($=>C.find(_=>_.id===$.id)),{...S,isLoading:!1,loadedAt:Date.now(),matches:C,pendingMatches:void 0,cachedMatches:[...S.cachedMatches,...p.filter($=>$.status!=="error")]}}),this.clearExpiredCache()}),[[p,"onLeave"],[m,"onEnter"],[b,"onStay"]].forEach(([S,x])=>{S.forEach(C=>{var $,_;(_=($=this.looseRoutesById[C.routeId].options)[x])==null||_.call($,C)})})})}})}catch(d){Xs(d)?(n=d,this.isServer||this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):ls(d)&&(s=d),this.__store.setState(h=>({...h,statusCode:n?n.status:s?404:h.matches.some(p=>p.status==="error")?500:200,redirect:n}))}this.latestLoadPromise===o&&((u=this.commitLocationPromise)==null||u.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),l()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(l=>({...l,statusCode:404}))},this.startViewTransition=r=>{const n=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,n&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let s;if(typeof n=="object"&&this.isViewTransitionTypesSupported){const o=this.latestLocation,l=this.state.resolvedLocation,u=typeof n.types=="function"?n.types(Ml({resolvedLocation:l,location:o})):n.types;s={update:r,types:u}}else s=r;document.startViewTransition(s)}else r()},this.updateMatch=(r,n)=>{var s;let o;const l=(s=this.state.pendingMatches)==null?void 0:s.find(p=>p.id===r),u=this.state.matches.find(p=>p.id===r),d=this.state.cachedMatches.find(p=>p.id===r),h=l?"pendingMatches":u?"matches":d?"cachedMatches":"";return h&&this.__store.setState(p=>{var m;return{...p,[h]:(m=p[h])==null?void 0:m.map(b=>b.id===r?o=n(b):b)}}),o},this.getMatch=r=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(n=>n.id===r),this.loadMatches=async({location:r,matches:n,preload:s,onReady:o,updateMatch:l=this.updateMatch,sync:u})=>{let d,h=!1;const p=async()=>{h||(h=!0,!s&&!this.isServer&&n.forEach(x=>{const{id:C,routeId:$,_forcePending:_,minPendingPromise:M}=x,R=this.looseRoutesById[$].options.pendingMinMs??this.options.defaultPendingMinMs;if(_&&R&&!M){const L=gl();l(C,j=>({...j,minPendingPromise:L})),setTimeout(()=>{L.resolve(),l(C,j=>({...j,minPendingPromise:void 0}))},R)}}),await(o==null?void 0:o()))},m=x=>!!(s&&!this.state.matches.find(C=>C.id===x));!this.isServer&&this.state.matches.find(x=>x._forcePending)&&p();const b=(x,C)=>{var $,_,M,T;if(Xs(C)||ls(C)){if(Xs(C)&&C.redirectHandled&&!C.options.reloadDocument)throw C;if(($=x.beforeLoadPromise)==null||$.resolve(),(_=x.loaderPromise)==null||_.resolve(),l(x.id,R=>({...R,status:Xs(C)?"redirected":ls(C)?"notFound":"error",isFetching:!1,error:C,beforeLoadPromise:void 0,loaderPromise:void 0})),C.routeId||(C.routeId=x.routeId),(M=x.loadPromise)==null||M.resolve(),Xs(C))throw h=!0,C.options._fromLocation=r,C.redirectHandled=!0,C=this.resolveRedirect(C),C;if(ls(C))throw this._handleNotFound(n,C,{updateMatch:l}),(T=this.serverSsr)==null||T.onMatchSettled({router:this,match:this.getMatch(x.id)}),C}},S=x=>{const C=this.getMatch(x);return!!(!this.isServer&&C._dehydrated||this.isServer&&C.ssr===!1)};try{await new Promise((x,C)=>{(async()=>{var $,_,M,T;try{const R=(O,N,z)=>{var k,H;const{id:q,routeId:V}=n[O],W=this.looseRoutesById[V];if(N instanceof Promise)throw N;N.routerCode=z,d=d??O,b(this.getMatch(q),N);try{(H=(k=W.options).onError)==null||H.call(k,N)}catch(ae){N=ae,b(this.getMatch(q),N)}l(q,ae=>{var Z,ne;return(Z=ae.beforeLoadPromise)==null||Z.resolve(),(ne=ae.loadPromise)==null||ne.resolve(),{...ae,error:N,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[O,{id:N,routeId:z}]of n.entries()){const k=this.getMatch(N),H=($=n[O-1])==null?void 0:$.id,q=H?this.getMatch(H):void 0,V=this.looseRoutesById[z],W=V.options.pendingMs??this.options.defaultPendingMs;if(this.isServer){const ee=this.options.defaultSsr??!0;let re;if((q==null?void 0:q.ssr)===!1)re=!1;else{let F;if(V.options.ssr===void 0)F=ee;else if(typeof V.options.ssr=="function"){let J=function(Se,me){return me?{status:"error",error:me}:{status:"success",value:Se}};const{search:fe,params:ce}=this.getMatch(N),Ce={search:J(fe,k.searchError),params:J(ce,k.paramsError),location:r,matches:n.map(Se=>({index:Se.index,pathname:Se.pathname,fullPath:Se.fullPath,staticData:Se.staticData,id:Se.id,routeId:Se.routeId,search:J(Se.search,Se.searchError),params:J(Se.params,Se.paramsError),ssr:Se.ssr}))};F=await V.options.ssr(Ce)??ee}else F=V.options.ssr;F===!0&&(q==null?void 0:q.ssr)==="data-only"?re="data-only":re=F}l(N,F=>({...F,ssr:re}))}if(S(N))continue;const ae=!!(o&&!this.isServer&&!m(N)&&(V.options.loader||V.options.beforeLoad||C4(V))&&typeof W=="number"&&W!==1/0&&(V.options.pendingComponent??((_=this.options)==null?void 0:_.defaultPendingComponent)));let Z=!0;const ne=()=>{if(ae&&this.getMatch(N).pendingTimeout===void 0){const ee=setTimeout(()=>{try{p()}catch{}},W);l(N,re=>({...re,pendingTimeout:ee}))}};if(k.beforeLoadPromise||k.loaderPromise){ne(),await k.beforeLoadPromise;const ee=this.getMatch(N);ee.status==="error"?Z=!0:ee.preload&&(ee.status==="redirected"||ee.status==="notFound")&&b(ee,ee.error)}if(Z){try{l(N,Pe=>{const Ne=Pe.loadPromise;return{...Pe,loadPromise:gl(()=>{Ne==null||Ne.resolve()}),beforeLoadPromise:gl()}});const{paramsError:ee,searchError:re}=this.getMatch(N);ee&&R(O,ee,"PARSE_PARAMS"),re&&R(O,re,"VALIDATE_SEARCH"),ne();const F=new AbortController,J=(q==null?void 0:q.context)??this.options.context??{};l(N,Pe=>({...Pe,isFetching:"beforeLoad",fetchCount:Pe.fetchCount+1,abortController:F,context:{...J,...Pe.__routeContext}}));const{search:fe,params:ce,context:Ce,cause:Se}=this.getMatch(N),me=m(N),He={search:fe,abortController:F,params:ce,preload:me,context:Ce,location:r,navigate:Pe=>this.navigate({...Pe,_fromLocation:r}),buildLocation:this.buildLocation,cause:me?"preload":Se,matches:n},Oe=await((T=(M=V.options).beforeLoad)==null?void 0:T.call(M,He))??{};(Xs(Oe)||ls(Oe))&&R(O,Oe,"BEFORE_LOAD"),l(N,Pe=>({...Pe,__beforeLoadContext:Oe,context:{...J,...Pe.__routeContext,...Oe},abortController:F}))}catch(ee){R(O,ee,"BEFORE_LOAD")}l(N,ee=>{var re;return(re=ee.beforeLoadPromise)==null||re.resolve(),{...ee,beforeLoadPromise:void 0,isFetching:!1}})}}const L=n.slice(0,d),j=[];L.forEach(({id:O,routeId:N},z)=>{j.push((async()=>{var k,H;let q=!1,V=!1;const W=this.looseRoutesById[N],ae=async()=>{var ee,re,F,J,fe,ce;const Ce=this.getMatch(O);if(!Ce)return;const Se={matches:n,match:Ce,params:Ce.params,loaderData:Ce.loaderData},me=await((re=(ee=W.options).head)==null?void 0:re.call(ee,Se)),He=me==null?void 0:me.meta,Oe=me==null?void 0:me.links,Pe=me==null?void 0:me.scripts,Ne=me==null?void 0:me.styles,qe=await((J=(F=W.options).scripts)==null?void 0:J.call(F,Se)),Ve=await((ce=(fe=W.options).headers)==null?void 0:ce.call(fe,Se));return{meta:He,links:Oe,headScripts:Pe,headers:Ve,scripts:qe,styles:Ne}},Z=async()=>{const ee=this.getMatch(O);ee.minPendingPromise&&await ee.minPendingPromise},ne=this.getMatch(O);if(S(O))if(this.isServer){const ee=await ae();return l(O,re=>({...re,...ee})),(k=this.serverSsr)==null||k.onMatchSettled({router:this,match:this.getMatch(O)}),this.getMatch(O)}else await Z();else if(ne.loaderPromise){if(ne.status==="success"&&!u&&!ne.preload)return this.getMatch(O);await ne.loaderPromise;const ee=this.getMatch(O);ee.error&&b(ee,ee.error)}else{const ee=j[z-1],re=()=>{const{params:Pe,loaderDeps:Ne,abortController:qe,context:Ve,cause:ht}=this.getMatch(O),ze=m(O);return{params:Pe,deps:Ne,preload:!!ze,parentMatchPromise:ee,abortController:qe,context:Ve,location:r,navigate:rt=>this.navigate({...rt,_fromLocation:r}),cause:ze?"preload":ht,route:W}},F=Date.now()-this.getMatch(O).updatedAt,J=m(O),fe=J?W.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:W.options.staleTime??this.options.defaultStaleTime??0,ce=W.options.shouldReload,Ce=typeof ce=="function"?ce(re()):ce;l(O,Pe=>({...Pe,loaderPromise:gl(),preload:!!J&&!this.state.matches.find(Ne=>Ne.id===O)}));const Se=async()=>{var Pe,Ne,qe,Ve,ht;try{try{(!this.isServer||this.isServer&&this.getMatch(O).ssr===!0)&&this.loadRouteChunk(W),l(O,ct=>({...ct,isFetching:"loader"}));const ze=await((Ne=(Pe=W.options).loader)==null?void 0:Ne.call(Pe,re()));b(this.getMatch(O),ze),l(O,ct=>({...ct,loaderData:ze})),await W._lazyPromise;const rt=await ae();await Z(),await W._componentsPromise,l(O,ct=>({...ct,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...rt}))}catch(ze){let rt=ze;await Z(),b(this.getMatch(O),ze);try{(Ve=(qe=W.options).onError)==null||Ve.call(qe,ze)}catch(nt){rt=nt,b(this.getMatch(O),nt)}const ct=await ae();l(O,nt=>({...nt,error:rt,status:"error",isFetching:!1,...ct}))}(ht=this.serverSsr)==null||ht.onMatchSettled({router:this,match:this.getMatch(O)})}catch(ze){const rt=await ae();l(O,ct=>({...ct,loaderPromise:void 0,...rt})),b(this.getMatch(O),ze)}},{status:me,invalid:He,_forcePending:Oe}=this.getMatch(O);if(q=me==="success"&&(He||(Ce??F>fe)),!(J&&W.options.preload===!1))if(q&&!u&&!Oe)V=!0,(async()=>{try{await Se();const{loaderPromise:Pe,loadPromise:Ne}=this.getMatch(O);Pe==null||Pe.resolve(),Ne==null||Ne.resolve(),l(O,qe=>({...qe,loaderPromise:void 0}))}catch(Pe){Xs(Pe)&&await this.navigate(Pe.options)}})();else if(me!=="success"||q&&u)await Se();else{Oe&&await Z();const Pe=await ae();l(O,Ne=>({...Ne,...Pe})),(H=this.serverSsr)==null||H.onMatchSettled({router:this,match:this.getMatch(O)})}}if(!V){const{loaderPromise:ee,loadPromise:re}=this.getMatch(O);ee==null||ee.resolve(),re==null||re.resolve()}return l(O,ee=>(clearTimeout(ee.pendingTimeout),{...ee,isFetching:V?ee.isFetching:!1,loaderPromise:V?ee.loaderPromise:void 0,invalid:!1,pendingTimeout:void 0,_dehydrated:void 0,_forcePending:void 0})),this.getMatch(O)})())}),await Promise.all(j),x()}catch(R){C(R)}})()}),await p()}catch(x){if(Xs(x)||ls(x))throw ls(x)&&!s&&await p(),x}return n},this.invalidate=r=>{const n=s=>{var o;return((o=r==null?void 0:r.filter)==null?void 0:o.call(r,s))??!0?{...s,invalid:!0,...r!=null&&r.forcePending||s.status==="error"?{status:"pending",error:void 0}:{}}:s};return this.__store.setState(s=>{var o;return{...s,matches:s.matches.map(n),cachedMatches:s.cachedMatches.map(n),pendingMatches:(o=s.pendingMatches)==null?void 0:o.map(n)}}),this.shouldViewTransition=!1,this.load({sync:r==null?void 0:r.sync})},this.resolveRedirect=r=>(r.options.href||(r.options.href=this.buildLocation(r.options).href,r.headers.set("Location",r.options.href)),r.headers.get("Location")||r.headers.set("Location",r.options.href),r),this.clearCache=r=>{const n=r==null?void 0:r.filter;n!==void 0?this.__store.setState(s=>({...s,cachedMatches:s.cachedMatches.filter(o=>!n(o))})):this.__store.setState(s=>({...s,cachedMatches:[]}))},this.clearExpiredCache=()=>{const r=n=>{const s=this.looseRoutesById[n.routeId];if(!s.options.loader)return!0;const o=(n.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return!(n.status!=="error"&&Date.now()-n.updatedAt<o)};this.clearCache({filter:r})},this.loadRouteChunk=r=>(r._lazyPromise===void 0&&(r.lazyFn?r._lazyPromise=r.lazyFn().then(n=>{const{id:s,...o}=n.options;Object.assign(r.options,o)}):r._lazyPromise=Promise.resolve()),r._componentsPromise===void 0&&(r._componentsPromise=r._lazyPromise.then(()=>Promise.all(pE.map(async n=>{const s=r.options[n];s!=null&&s.preload&&await s.preload()})))),r._componentsPromise),this.preloadRoute=async r=>{const n=this.buildLocation(r);let s=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:r});const o=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(u=>u.id)),l=new Set([...o,...this.state.cachedMatches.map(u=>u.id)]);g4(()=>{s.forEach(u=>{l.has(u.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,u]}))})});try{return s=await this.loadMatches({matches:s,location:n,preload:!0,updateMatch:(u,d)=>{o.has(u)?s=s.map(h=>h.id===u?d(h):h):this.updateMatch(u,d)}}),s}catch(u){if(Xs(u))return u.options.reloadDocument?void 0:await this.preloadRoute({...u.options,_fromLocation:n});ls(u)||console.error(u);return}},this.matchRoute=(r,n)=>{const s={...r,to:r.to?this.resolvePathWithBase(r.from||"",r.to):void 0,params:r.params||{},leaveParams:!0},o=this.buildLocation(s);if(n!=null&&n.pending&&this.state.status!=="pending")return!1;const u=((n==null?void 0:n.pending)===void 0?!this.state.isLoading:n.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=wv(this.basepath,u.pathname,{...n,to:o.pathname});return!d||r.params&&!Wc(d,r.params,{partial:!0})?!1:d&&((n==null?void 0:n.includeSearch)??!0)?Wc(u.search,o.search,{partial:!0})?d:!1:d},this._handleNotFound=(r,n,{updateMatch:s=this.updateMatch}={})=>{var o;const l=this.routesById[n.routeId??""]??this.routeTree,u={};for(const h of r)u[h.routeId]=h;!l.options.notFoundComponent&&((o=this.options)!=null&&o.defaultNotFoundComponent)&&(l.options.notFoundComponent=this.options.defaultNotFoundComponent),Ii(l.options.notFoundComponent);const d=u[l.id];Ii(d,"Could not find match for route: "+l.id),s(d.id,h=>({...h,status:"notFound",error:n,isFetching:!1})),n.routerCode==="BEFORE_LOAD"&&l.parentRoute&&(n.routeId=l.parentRoute.id,this._handleNotFound(r,n,{updateMatch:s}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(r=>r.status==="notFound"||r.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??R9,parseSearch:t.parseSearch??A9}),typeof document<"u"&&(window.__TSR_ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,r){var n;const{foundRoute:s,matchedRoutes:o,routeParams:l}=this.getMatchedRoutes(t.pathname,(n=r==null?void 0:r.dest)==null?void 0:n.to);let u=!1;(s?s.path!=="/"&&l["**"]:Td(t.pathname))&&(this.options.notFoundRoute?o.push(this.options.notFoundRoute):u=!0);const d=(()=>{if(u){if(this.options.notFoundMode!=="root")for(let b=o.length-1;b>=0;b--){const S=o[b];if(S.children)return S.id}return Rs}})(),h=o.map(b=>{var S;let x;const C=((S=b.options.params)==null?void 0:S.parse)??b.options.parseParams;if(C)try{const $=C(l);Object.assign(l,$)}catch($){if(x=new L9($.message,{cause:$}),r!=null&&r.throwOnError)throw x;return x}}),p=[],m=b=>(b==null?void 0:b.id)?b.context??this.options.context??{}:this.options.context??{};return o.forEach((b,S)=>{var x,C;const $=p[S-1],[_,M,T]=(()=>{const W=($==null?void 0:$.search)??t.search,ae=($==null?void 0:$._strictSearch)??{};try{const Z=$v(b.options.validateSearch,{...W})??{};return[{...W,...Z},{...ae,...Z},void 0]}catch(Z){let ne=Z;if(Z instanceof yg||(ne=new yg(Z.message,{cause:Z})),r!=null&&r.throwOnError)throw ne;return[W,{},ne]}})(),R=((C=(x=b.options).loaderDeps)==null?void 0:C.call(x,{search:_}))??"",L=R?JSON.stringify(R):"",{usedParams:j,interpolatedPath:O}=bb({path:b.fullPath,params:l,decodeCharMap:this.pathParamsDecodeCharMap}),N=bb({path:b.id,params:l,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath+L,z=this.getMatch(N),k=this.state.matches.find(W=>W.routeId===b.id),H=k?"stay":"enter";let q;if(z)q={...z,cause:H,params:k?is(k.params,l):l,_strictParams:j,search:is(k?k.search:z.search,_),_strictSearch:M};else{const W=b.options.loader||b.options.beforeLoad||b.lazyFn||C4(b)?"pending":"success";q={id:N,index:S,routeId:b.id,params:k?is(k.params,l):l,_strictParams:j,pathname:Mi([this.basepath,O]),updatedAt:Date.now(),search:k?is(k.search,_):_,_strictSearch:M,searchError:void 0,status:W,isFetching:!1,error:void 0,paramsError:h[S],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:H,loaderDeps:k?is(k.loaderDeps,R):R,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:b.options.staticData||{},loadPromise:gl(),fullPath:b.fullPath}}r!=null&&r.preload||(q.globalNotFound=d===b.id),q.searchError=T;const V=m($);q.context={...V,...q.__routeContext,...q.__beforeLoadContext},p.push(q)}),p.forEach((b,S)=>{var x,C;const $=this.looseRoutesById[b.routeId];if(!this.getMatch(b.id)&&(r==null?void 0:r._buildLocation)!==!0){const M=p[S-1],T=m(M),R={deps:b.loaderDeps,params:b.params,context:T,location:t,navigate:L=>this.navigate({...L,_fromLocation:t}),buildLocation:this.buildLocation,cause:b.cause,abortController:b.abortController,preload:!!b.preload,matches:p};b.__routeContext=((C=(x=$.options).context)==null?void 0:C.call(x,R))??{},b.context={...T,...b.__routeContext,...b.__beforeLoadContext}}}),p}comparePaths(t,r){return t.replace(/(.+)\/$/,"$1")===r.replace(/(.+)\/$/,"$1")}}class yg extends Error{}class L9 extends Error{}function P9(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function $v(e,t){if(e==null)return{};if("~standard"in e){const r=e["~standard"].validate(t);if(r instanceof Promise)throw new yg("Async validation not supported");if(r.issues)throw new yg(JSON.stringify(r.issues,void 0,2),{cause:r});return r.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}const pE=["component","errorComponent","pendingComponent","notFoundComponent"];function C4(e){var t;for(const r of pE)if((t=e.options[r])!=null&&t.preload)return!0;return!1}function I9({routeTree:e,initRoute:t}){const r={},n={},s=d=>{d.forEach((h,p)=>{t==null||t(h,p);const m=r[h.id];if(Ii(!m,`Duplicate routes found with id: ${String(h.id)}`),r[h.id]=h,!h.isRoot&&h.path){const S=Td(h.fullPath);(!n[S]||h.fullPath.endsWith("/"))&&(n[S]=h)}const b=h.children;b!=null&&b.length&&s(b)})};s([e]);const o=[];Object.values(r).forEach((d,h)=>{var p;if(d.isRoot||!d.path)return;const m=V2(d.fullPath),b=Ad(m);for(;b.length>1&&((p=b[0])==null?void 0:p.value)==="/";)b.shift();const S=b.map(x=>x.value==="/"?.75:x.type==="param"&&x.prefixSegment&&x.suffixSegment?.55:x.type==="param"&&x.prefixSegment?.52:x.type==="param"&&x.suffixSegment?.51:x.type==="param"?.5:x.type==="wildcard"&&x.prefixSegment&&x.suffixSegment?.3:x.type==="wildcard"&&x.prefixSegment?.27:x.type==="wildcard"&&x.suffixSegment?.26:x.type==="wildcard"?.25:1);o.push({child:d,trimmed:m,parsed:b,index:h,scores:S})});const u=o.sort((d,h)=>{const p=Math.min(d.scores.length,h.scores.length);for(let m=0;m<p;m++)if(d.scores[m]!==h.scores[m])return h.scores[m]-d.scores[m];if(d.scores.length!==h.scores.length)return h.scores.length-d.scores.length;for(let m=0;m<p;m++)if(d.parsed[m].value!==h.parsed[m].value)return d.parsed[m].value>h.parsed[m].value?1:-1;return d.index-h.index}).map((d,h)=>(d.child.rank=h,d.child));return{routesById:r,routesByPath:n,flatRoutes:u}}function D9({pathname:e,routePathname:t,basepath:r,caseSensitive:n,routesByPath:s,routesById:o,flatRoutes:l}){let u={};const d=Td(e),h=S=>{var x;return wv(r,d,{to:S.fullPath,caseSensitive:((x=S.options)==null?void 0:x.caseSensitive)??n,fuzzy:!0})};let p=t!==void 0?s[t]:void 0;p?u=h(p):p=l.find(S=>{const x=h(S);return x?(u=x,!0):!1});let m=p||o[Rs];const b=[m];for(;m.parentRoute;)m=m.parentRoute,b.unshift(m);return{matchedRoutes:b,routeParams:u,foundRoute:p}}function z9({search:e,dest:t,destRoutes:r,_includeValidateSearch:n}){const s=r.reduce((u,d)=>{var h;const p=[];if("search"in d.options)(h=d.options.search)!=null&&h.middlewares&&p.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const m=({search:b,next:S})=>{let x=b;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(x=d.options.preSearchFilters.reduce(($,_)=>_($),b));const C=S(x);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce(($,_)=>_($),C):C};p.push(m)}if(n&&d.options.validateSearch){const m=({search:b,next:S})=>{const x=S(b);try{return{...x,...$v(d.options.validateSearch,x)??{}}}catch{return x}};p.push(m)}return u.concat(p)},[])??[],o=({search:u})=>t.search?t.search===!0?u:Ol(t.search,u):{};s.push(o);const l=(u,d)=>{if(u>=s.length)return d;const h=s[u];return h({search:d,next:m=>l(u+1,m)})};return l(0,e)}const j9="Error preloading route! ☝️";class mE{constructor(t){if(this.init=r=>{var n,s;this.originalIndex=r.originalIndex;const o=this.options,l=!(o!=null&&o.path)&&!(o!=null&&o.id);this.parentRoute=(s=(n=this.options).getParentRoute)==null?void 0:s.call(n),l?this._path=Rs:this.parentRoute||Ii(!1);let u=l?Rs:o==null?void 0:o.path;u&&u!=="/"&&(u=V2(u));const d=(o==null?void 0:o.id)||u;let h=l?Rs:Mi([this.parentRoute.id===Rs?"":this.parentRoute.id,d]);u===Rs&&(u="/"),h!==Rs&&(h=Mi(["/",h]));const p=h===Rs?"/":Mi([this.parentRoute.fullPath,u]);this._path=u,this._id=h,this._fullPath=p,this._to=p},this.clone=r=>{this._path=r._path,this._id=r._id,this._fullPath=r._fullPath,this._to=r._to,this.options.getParentRoute=r.options.getParentRoute,this.children=r.children},this.addChildren=r=>this._addFileChildren(r),this._addFileChildren=r=>(Array.isArray(r)&&(this.children=r),typeof r=="object"&&r!==null&&(this.children=Object.values(r)),this),this._addFileTypes=()=>this,this.updateLoader=r=>(Object.assign(this.options,r),this),this.update=r=>(Object.assign(this.options,r),this),this.lazy=r=>(this.lazyFn=r,this),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class B9 extends mE{constructor(t){super(t)}}function F2(e){const t=e.errorComponent??n0;return B.jsx(U9,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:r,reset:n})=>r?P.createElement(t,{error:r,reset:n}):e.children})}class U9 extends P.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,r){r.error&&r.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,r){this.props.onCatch&&this.props.onCatch(t,r)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function n0({error:e}){const[t,r]=P.useState(!1);return B.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[B.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[B.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),B.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r(n=>!n),children:t?"Hide Error":"Show Error"})]}),B.jsx("div",{style:{height:".25rem"}}),t?B.jsx("div",{children:B.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?B.jsx("code",{children:e.message}):null})}):null]})}function H9({children:e,fallback:t=null}){return Z9()?B.jsx(kn.Fragment,{children:e}):B.jsx(kn.Fragment,{children:t})}function Z9(){return kn.useSyncExternalStore(V9,()=>!0,()=>!1)}function V9(){return()=>{}}var xb={exports:{}},wb={},Cb={exports:{}},$b={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $4;function F9(){if($4)return $b;$4=1;var e=Bh();function t(m,b){return m===b&&(m!==0||1/m===1/b)||m!==m&&b!==b}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,s=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function u(m,b){var S=b(),x=n({inst:{value:S,getSnapshot:b}}),C=x[0].inst,$=x[1];return o(function(){C.value=S,C.getSnapshot=b,d(C)&&$({inst:C})},[m,S,b]),s(function(){return d(C)&&$({inst:C}),m(function(){d(C)&&$({inst:C})})},[m]),l(S),S}function d(m){var b=m.getSnapshot;m=m.value;try{var S=b();return!r(m,S)}catch{return!0}}function h(m,b){return b()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return $b.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,$b}var k4;function q9(){return k4||(k4=1,Cb.exports=F9()),Cb.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var E4;function G9(){if(E4)return wb;E4=1;var e=Bh(),t=q9();function r(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var n=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,u=e.useMemo,d=e.useDebugValue;return wb.useSyncExternalStoreWithSelector=function(h,p,m,b,S){var x=o(null);if(x.current===null){var C={hasValue:!1,value:null};x.current=C}else C=x.current;x=u(function(){function _(j){if(!M){if(M=!0,T=j,j=b(j),S!==void 0&&C.hasValue){var O=C.value;if(S(O,j))return R=O}return R=j}if(O=R,n(T,j))return O;var N=b(j);return S!==void 0&&S(O,N)?(T=j,O):(T=j,R=N)}var M=!1,T,R,L=m===void 0?null:m;return[function(){return _(p())},L===null?void 0:function(){return _(L())}]},[p,m,b,S]);var $=s(h,x[0],x[1]);return l(function(){C.hasValue=!0,C.value=$},[$]),d($),$},wb}var _4;function K9(){return _4||(_4=1,xb.exports=G9()),xb.exports}var W9=K9();function Y9(e,t=r=>r){return W9.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,Q9)}function Q9(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,s]of e)if(!t.has(n)||!Object.is(s,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}const kb=P.createContext(null);function gE(){return typeof document>"u"?kb:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=kb,kb)}function ia(e){const t=P.useContext(gE());return e==null||e.warn,t}function aa(e){const t=ia({warn:(e==null?void 0:e.router)===void 0}),r=(e==null?void 0:e.router)||t,n=P.useRef(void 0);return Y9(r.__store,s=>{if(e!=null&&e.select){if(e.structuralSharing??r.options.defaultStructuralSharing){const o=is(n.current,e.select(s));return n.current=o,o}return e.select(s)}return s})}const a0=P.createContext(void 0),X9=P.createContext(void 0);function ms(e){const t=P.useContext(e.from?X9:a0);return aa({select:n=>{const s=n.matches.find(o=>e.from?e.from===o.routeId:o.id===t);if(Ii(!((e.shouldThrow??!0)&&!s),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),s!==void 0)return e.select?e.select(s):s},structuralSharing:e.structuralSharing})}function q2(e){return ms({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function G2(e){const{select:t,...r}=e;return ms({...r,select:n=>t?t(n.loaderDeps):n.loaderDeps})}function s0(e){return ms({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.params):t.params})}function K2(e){return ms({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function i0(e){const{navigate:t,state:r}=ia(),n=ms({strict:!1,select:s=>s.index});return P.useCallback(s=>{const o=s.from??(e==null?void 0:e.from)??r.matches[n].fullPath;return t({...s,from:o})},[e==null?void 0:e.from,t])}var W2=lE();const Am=oE(W2),ih=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Eb(e){const t=P.useRef({value:e,prev:null}),r=t.current.value;return e!==r&&(t.current={value:e,prev:r}),t.current.prev}function J9(e,t,r={},n={}){const s=P.useRef(typeof IntersectionObserver=="function"),o=P.useRef(null);return P.useEffect(()=>{if(!(!e.current||!s.current||n.disabled))return o.current=new IntersectionObserver(([l])=>{t(l)},r),o.current.observe(e.current),()=>{var l;(l=o.current)==null||l.disconnect()}},[t,r,n.disabled,e]),o.current}function eM(e){const t=P.useRef(null);return P.useImperativeHandle(e,()=>t.current,[]),t}function tM(e,t){const r=ia(),[n,s]=P.useState(!1),o=P.useRef(!1),l=eM(t),{activeProps:u=()=>({className:"active"}),inactiveProps:d=()=>({}),activeOptions:h,to:p,preload:m,preloadDelay:b,hashScrollIntoView:S,replace:x,startTransition:C,resetScroll:$,viewTransition:_,children:M,target:T,disabled:R,style:L,className:j,onClick:O,onFocus:N,onMouseEnter:z,onMouseLeave:k,onTouchStart:H,ignoreBlocker:q,...V}=e,{params:W,search:ae,hash:Z,state:ne,mask:ee,reloadDocument:re,unsafeRelative:F,...J}=V,fe=P.useMemo(()=>{try{return new URL(`${p}`),"external"}catch{}return"internal"},[p]),ce=aa({select:_e=>_e.location.search,structuralSharing:!0}),Ce=ms({strict:!1,select:_e=>_e.fullPath}),Se=e.from??Ce;e={...e,from:Se};const me=P.useMemo(()=>r.buildLocation(e),[r,e,ce]),He=P.useMemo(()=>e.reloadDocument?!1:m??r.options.defaultPreload,[r.options.defaultPreload,m,e.reloadDocument]),Oe=b??r.options.defaultPreloadDelay??0,Pe=aa({select:_e=>{if(h!=null&&h.exact){if(!h9(_e.location.pathname,me.pathname,r.basepath))return!1}else{const pt=hg(_e.location.pathname,r.basepath).split("/");if(!hg(me.pathname,r.basepath).split("/").every((ir,It)=>ir===pt[It]))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!Wc(_e.location.search,me.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?_e.location.hash===me.hash:!0}}),Ne=P.useCallback(()=>{r.preloadRoute(e).catch(_e=>{console.warn(_e),console.warn(j9)})},[e,r]),qe=P.useCallback(_e=>{_e!=null&&_e.isIntersecting&&Ne()},[Ne]);if(J9(l,qe,{rootMargin:"100px"},{disabled:!!R||He!=="viewport"}),ih(()=>{o.current||!R&&He==="render"&&(Ne(),o.current=!0)},[R,Ne,He]),fe==="external")return{...J,ref:l,type:fe,href:p,...M&&{children:M},...T&&{target:T},...R&&{disabled:R},...L&&{style:L},...j&&{className:j},...O&&{onClick:O},...N&&{onFocus:N},...z&&{onMouseEnter:z},...k&&{onMouseLeave:k},...H&&{onTouchStart:H}};const Ve=_e=>{if(!R&&!rM(_e)&&!_e.defaultPrevented&&(!T||T==="_self")&&_e.button===0){_e.preventDefault(),W2.flushSync(()=>{s(!0)});const pt=r.subscribe("onResolved",()=>{pt(),s(!1)});return r.navigate({...e,replace:x,resetScroll:$,hashScrollIntoView:S,startTransition:C,viewTransition:_,ignoreBlocker:q})}},ht=_e=>{R||He&&Ne()},ze=ht,rt=_e=>{if(R)return;const pt=_e.target||{};if(He){if(pt.preloadTimeout)return;Oe?pt.preloadTimeout=setTimeout(()=>{pt.preloadTimeout=null,Ne()},Oe):Ne()}},ct=_e=>{if(R)return;const pt=_e.target||{};pt.preloadTimeout&&(clearTimeout(pt.preloadTimeout),pt.preloadTimeout=null)},nt=_e=>pt=>{var Pt;(Pt=pt.persist)==null||Pt.call(pt),_e.filter(Boolean).forEach(Qt=>{pt.defaultPrevented||Qt(pt)})},bt=Pe?Ol(u,{})??{}:{},Tt=Pe?{}:Ol(d,{}),Kt=[j,bt.className,Tt.className].filter(Boolean).join(" "),vt={...L,...bt.style,...Tt.style};return{...J,...bt,...Tt,href:R?void 0:me.maskedLocation?r.history.createHref(me.maskedLocation.href):r.history.createHref(me.href),ref:l,onClick:nt([O,Ve]),onFocus:nt([N,ht]),onMouseEnter:nt([z,rt]),onMouseLeave:nt([k,ct]),onTouchStart:nt([H,ze]),disabled:!!R,target:T,...Object.keys(vt).length&&{style:vt},...Kt&&{className:Kt},...R&&{role:"link","aria-disabled":!0},...Pe&&{"data-status":"active","aria-current":"page"},...n&&{"data-transitioning":"transitioning"}}}function dY(e){return P.forwardRef(function(r,n){return B.jsx(o0,{...r,_asChild:e,ref:n})})}const o0=P.forwardRef((e,t)=>{const{_asChild:r,...n}=e,{type:s,ref:o,...l}=tM(n,t),u=typeof n.children=="function"?n.children({isActive:l["data-status"]==="active"}):n.children;return typeof r>"u"&&delete l.disabled,P.createElement(r||"a",{...l,ref:o},u)});function rM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}let nM=class extends mE{constructor(t){super(t),this.useMatch=r=>ms({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>ms({...r,from:this.id,select:n=>r!=null&&r.select?r.select(n.context):n.context}),this.useSearch=r=>K2({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>s0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>G2({...r,from:this.id}),this.useLoaderData=r=>q2({...r,from:this.id}),this.useNavigate=()=>i0({from:this.fullPath}),this.Link=kn.forwardRef((r,n)=>B.jsx(o0,{ref:n,from:this.fullPath,...r})),this.$$typeof=Symbol.for("react.memo")}};function aM(e){return new nM(e)}class sM extends B9{constructor(t){super(t),this.useMatch=r=>ms({select:r==null?void 0:r.select,from:this.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>ms({...r,from:this.id,select:n=>r!=null&&r.select?r.select(n.context):n.context}),this.useSearch=r=>K2({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useParams=r=>s0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.id}),this.useLoaderDeps=r=>G2({...r,from:this.id}),this.useLoaderData=r=>q2({...r,from:this.id}),this.useNavigate=()=>i0({from:this.fullPath}),this.Link=kn.forwardRef((r,n)=>B.jsx(o0,{ref:n,from:this.fullPath,...r})),this.$$typeof=Symbol.for("react.memo")}}function iM(e){return new sM(e)}function vh(e){return typeof e=="object"?new T4(e,{silent:!0}).createRoute(e):new T4(e,{silent:!0}).createRoute}class T4{constructor(t,r){this.path=t,this.createRoute=n=>{this.silent;const s=aM(n);return s.isRoot=!1,s},this.silent=r==null?void 0:r.silent}}class A4{constructor(t){this.useMatch=r=>ms({select:r==null?void 0:r.select,from:this.options.id,structuralSharing:r==null?void 0:r.structuralSharing}),this.useRouteContext=r=>ms({from:this.options.id,select:n=>r!=null&&r.select?r.select(n.context):n.context}),this.useSearch=r=>K2({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.options.id}),this.useParams=r=>s0({select:r==null?void 0:r.select,structuralSharing:r==null?void 0:r.structuralSharing,from:this.options.id}),this.useLoaderDeps=r=>G2({...r,from:this.options.id}),this.useLoaderData=r=>q2({...r,from:this.options.id}),this.useNavigate=()=>{const r=ia();return i0({from:r.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function R4(e){return typeof e=="object"?new A4(e):t=>new A4({id:e,...t})}function oM(){const e=ia(),t=P.useRef({router:e,mounted:!1}),r=aa({select:({isLoading:m})=>m}),[n,s]=P.useState(!1),o=aa({select:m=>m.matches.some(b=>b.status==="pending"),structuralSharing:!0}),l=Eb(r),u=r||n||o,d=Eb(u),h=r||o,p=Eb(h);return e.isServer||(e.startTransition=m=>{s(!0),P.startTransition(()=>{m(),s(!1)})}),P.useEffect(()=>{const m=e.history.subscribe(e.load),b=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Td(e.latestLocation.href)!==Td(b.href)&&e.commitLocation({...b,replace:!0}),()=>{m()}},[e,e.history]),ih(()=>{if(typeof window<"u"&&e.clientSsr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(b){console.error(b)}})()},[e]),ih(()=>{l&&!r&&e.emit({type:"onLoad",...Ml(e.state)})},[l,e,r]),ih(()=>{p&&!h&&e.emit({type:"onBeforeRouteMount",...Ml(e.state)})},[h,p,e]),ih(()=>{d&&!u&&(e.emit({type:"onResolved",...Ml(e.state)}),e.__store.setState(m=>({...m,status:"idle",resolvedLocation:m.location})),E9(e))},[u,d,e]),null}function lM(e){const t=aa({select:r=>`not-found-${r.location.pathname}-${r.status}`});return B.jsx(F2,{getResetKey:()=>t,onCatch:(r,n)=>{var s;if(ls(r))(s=e.onCatch)==null||s.call(e,r,n);else throw r},errorComponent:({error:r})=>{var n;if(ls(r))return(n=e.fallback)==null?void 0:n.call(e,r);throw r},children:e.children})}function cM(){return B.jsx("p",{children:"Not Found"})}function Ic(e){return B.jsx(B.Fragment,{children:e.children})}function yE(e,t,r){return t.options.notFoundComponent?B.jsx(t.options.notFoundComponent,{data:r}):e.options.defaultNotFoundComponent?B.jsx(e.options.defaultNotFoundComponent,{data:r}):B.jsx(cM,{})}var _b,O4;function uM(){if(O4)return _b;O4=1;const e={},t=e.hasOwnProperty,r=(N,z)=>{for(const k in N)t.call(N,k)&&z(k,N[k])},n=(N,z)=>(z&&r(z,(k,H)=>{N[k]=H}),N),s=(N,z)=>{const k=N.length;let H=-1;for(;++H<k;)z(N[H])},o=N=>"\\u"+("0000"+N).slice(-4),l=(N,z)=>{let k=N.toString(16);return z?k:k.toUpperCase()},u=e.toString,d=Array.isArray,h=N=>typeof Buffer=="function"&&Buffer.isBuffer(N),p=N=>u.call(N)=="[object Object]",m=N=>typeof N=="string"||u.call(N)=="[object String]",b=N=>typeof N=="number"||u.call(N)=="[object Number]",S=N=>typeof N=="bigint",x=N=>typeof N=="function",C=N=>u.call(N)=="[object Map]",$=N=>u.call(N)=="[object Set]",_={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t"},M=/[\\\b\f\n\r\t]/,T=/[0-9]/,R=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,L=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,j=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,O=(N,z)=>{const k=()=>{ne=Z,++z.indentLevel,Z=z.indent.repeat(z.indentLevel)},H={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"	",indentLevel:0,__inline1__:!1,__inline2__:!1},q=z&&z.json;q&&(H.quotes="double",H.wrap=!0),z=n(H,z),z.quotes!="single"&&z.quotes!="double"&&z.quotes!="backtick"&&(z.quotes="single");const V=z.quotes=="double"?'"':z.quotes=="backtick"?"`":"'",W=z.compact,ae=z.lowercaseHex;let Z=z.indent.repeat(z.indentLevel),ne="";const ee=z.__inline1__,re=z.__inline2__,F=W?"":`
`;let J,fe=!0;const ce=z.numbers=="binary",Ce=z.numbers=="octal",Se=z.numbers=="decimal",me=z.numbers=="hexadecimal";if(q&&N&&x(N.toJSON)&&(N=N.toJSON()),!m(N)){if(C(N))return N.size==0?"new Map()":(W||(z.__inline1__=!0,z.__inline2__=!1),"new Map("+O(Array.from(N),z)+")");if($(N))return N.size==0?"new Set()":"new Set("+O(Array.from(N),z)+")";if(h(N))return N.length==0?"Buffer.from([])":"Buffer.from("+O(Array.from(N),z)+")";if(d(N))return J=[],z.wrap=!0,ee&&(z.__inline1__=!1,z.__inline2__=!0),re||k(),s(N,Oe=>{fe=!1,re&&(z.__inline2__=!1),J.push((W||re?"":Z)+O(Oe,z))}),fe?"[]":re?"["+J.join(", ")+"]":"["+F+J.join(","+F)+F+(W?"":ne)+"]";if(b(N)||S(N)){if(q)return JSON.stringify(Number(N));let Oe;if(Se)Oe=String(N);else if(me){let Pe=N.toString(16);ae||(Pe=Pe.toUpperCase()),Oe="0x"+Pe}else ce?Oe="0b"+N.toString(2):Ce&&(Oe="0o"+N.toString(8));return S(N)?Oe+"n":Oe}else return S(N)?q?JSON.stringify(Number(N)):N+"n":p(N)?(J=[],z.wrap=!0,k(),r(N,(Oe,Pe)=>{fe=!1,J.push((W?"":Z)+O(Oe,z)+":"+(W?"":" ")+O(Pe,z))}),fe?"{}":"{"+F+J.join(","+F)+F+(W?"":ne)+"}"):q?JSON.stringify(N)||"null":String(N)}const He=z.escapeEverything?L:j;return J=N.replace(He,(Oe,Pe,Ne,qe,Ve,ht)=>{if(Pe){if(z.minimal)return Pe;const rt=Pe.charCodeAt(0),ct=Pe.charCodeAt(1);if(z.es6){const nt=(rt-55296)*1024+ct-56320+65536;return"\\u{"+l(nt,ae)+"}"}return o(l(rt,ae))+o(l(ct,ae))}if(Ne)return o(l(Ne.charCodeAt(0),ae));if(Oe=="\0"&&!q&&!T.test(ht.charAt(Ve+1)))return"\\0";if(qe)return qe==V||z.escapeEverything?"\\"+qe:qe;if(M.test(Oe))return _[Oe];if(z.minimal&&!R.test(Oe))return Oe;const ze=l(Oe.charCodeAt(0),ae);return q||ze.length>2?o(ze):"\\x"+("00"+ze).slice(-2)}),V=="`"&&(J=J.replace(/\$\{/g,"\\${")),z.isScriptContext&&(J=J.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,q?"\\u003C!--":"\\x3C!--")),z.wrap&&(J=V+J+V),J};return O.version="3.0.2",_b=O,_b}uM();function dM({children:e,log:t}){return typeof document<"u"?null:B.jsx("script",{className:"tsr-once",dangerouslySetInnerHTML:{__html:[e,"",'if (typeof __TSR_SSR__ !== "undefined") __TSR_SSR__.cleanScripts()'].filter(Boolean).join(`
`)}})}function fM(){const e=ia(),r=(e.options.getScrollRestorationKey||Cv)(e.latestLocation),n=r!==Cv(e.latestLocation)?r:null;return!e.isScrollRestoring||!e.isServer?null:B.jsx(dM,{children:`(${fE.toString()})(${JSON.stringify(mg)},${JSON.stringify(n)}, undefined, true)`,log:!1})}const bE=P.memo(function({matchId:t}){var r,n;const s=ia(),o=aa({select:T=>{const R=T.matches.find(L=>L.id===t);return Ii(R),fg(R,["routeId","ssr","_displayPending"])},structuralSharing:!0}),l=s.routesById[o.routeId],u=l.options.pendingComponent??s.options.defaultPendingComponent,d=u?B.jsx(u,{}):null,h=l.options.errorComponent??s.options.defaultErrorComponent,p=l.options.onCatch??s.options.defaultOnCatch,m=l.isRoot?l.options.notFoundComponent??((r=s.options.notFoundRoute)==null?void 0:r.options.component):l.options.notFoundComponent,b=o.ssr===!1||o.ssr==="data-only",S=(!l.isRoot||l.options.wrapInSuspense||b)&&(l.options.wrapInSuspense??u??(((n=l.options.errorComponent)==null?void 0:n.preload)||b))?P.Suspense:Ic,x=h?F2:Ic,C=m?lM:Ic,$=aa({select:T=>T.loadedAt}),_=aa({select:T=>{var R;const L=T.matches.findIndex(j=>j.id===t);return(R=T.matches[L-1])==null?void 0:R.routeId}}),M=l.isRoot?l.options.shellComponent??Ic:Ic;return B.jsxs(M,{children:[B.jsx(a0.Provider,{value:t,children:B.jsx(S,{fallback:d,children:B.jsx(x,{getResetKey:()=>$,errorComponent:h||n0,onCatch:(T,R)=>{if(ls(T))throw T;p==null||p(T,R)},children:B.jsx(C,{fallback:T=>{if(!m||T.routeId&&T.routeId!==o.routeId||!T.routeId&&!l.isRoot)throw T;return P.createElement(m,T)},children:b||s.isShell||o._displayPending?B.jsx(H9,{fallback:d,children:B.jsx(M4,{matchId:t})}):B.jsx(M4,{matchId:t})})})})}),_===Rs&&s.options.scrollRestoration?B.jsxs(B.Fragment,{children:[B.jsx(hM,{}),B.jsx(fM,{})]}):null]})});function hM(){const e=ia(),t=P.useRef(void 0);return B.jsx("script",{suppressHydrationWarning:!0,ref:r=>{r&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Ml(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const M4=P.memo(function({matchId:t}){var r,n,s,o;const l=ia(),{match:u,key:d,routeId:h}=aa({select:b=>{const S=b.matches.findIndex(T=>T.id===t),x=b.matches[S],C=x.routeId,$=l.routesById[C].options.remountDeps??l.options.defaultRemountDeps,_=$==null?void 0:$({routeId:C,loaderDeps:x.loaderDeps,params:x._strictParams,search:x._strictSearch});return{key:_?JSON.stringify(_):void 0,routeId:C,match:fg(x,["id","status","error","_forcePending","_displayPending"])}},structuralSharing:!0}),p=l.routesById[h],m=P.useMemo(()=>{const b=p.options.component??l.options.defaultComponent;return b?B.jsx(b,{},d):B.jsx(vE,{})},[d,p.options.component,l.options.defaultComponent]);if(u._displayPending)throw(r=l.getMatch(u.id))==null?void 0:r.displayPendingPromise;if(u.status==="pending"||u._forcePending){const b=p.options.pendingMinMs??l.options.defaultPendingMinMs;if(b&&!((n=l.getMatch(u.id))!=null&&n.minPendingPromise)&&!l.isServer){const S=gl();Promise.resolve().then(()=>{l.updateMatch(u.id,x=>({...x,minPendingPromise:S}))}),setTimeout(()=>{S.resolve(),l.updateMatch(u.id,x=>({...x,minPendingPromise:void 0}))},b)}throw(s=l.getMatch(u.id))==null?void 0:s.loadPromise}if(u.status==="notFound")return Ii(ls(u.error)),yE(l,p,u.error);if(u.status==="redirected")throw Ii(Xs(u.error)),(o=l.getMatch(u.id))==null?void 0:o.loadPromise;if(u.status==="error"){if(l.isServer){const b=(p.options.errorComponent??l.options.defaultErrorComponent)||n0;return B.jsx(b,{error:u.error,reset:void 0,info:{componentStack:""}})}throw u.error}return m}),vE=P.memo(function(){const t=ia(),r=P.useContext(a0),n=aa({select:h=>{var p;return(p=h.matches.find(m=>m.id===r))==null?void 0:p.routeId}}),s=t.routesById[n],o=aa({select:h=>{const m=h.matches.find(b=>b.id===r);return Ii(m),m.globalNotFound}}),l=aa({select:h=>{var p;const m=h.matches,b=m.findIndex(S=>S.id===r);return(p=m[b+1])==null?void 0:p.id}}),u=t.options.defaultPendingComponent?B.jsx(t.options.defaultPendingComponent,{}):null;if(o)return yE(t,s,void 0);if(!l)return null;const d=B.jsx(bE,{matchId:l});return r===Rs?B.jsx(P.Suspense,{fallback:u,children:d}):d});function pM(){const e=ia(),t=e.options.defaultPendingComponent?B.jsx(e.options.defaultPendingComponent,{}):null,r=e.isServer||typeof document<"u"&&e.clientSsr?Ic:P.Suspense,n=B.jsxs(r,{fallback:t,children:[B.jsx(oM,{}),B.jsx(mM,{})]});return e.options.InnerWrap?B.jsx(e.options.InnerWrap,{children:n}):n}function mM(){const e=aa({select:r=>{var n;return(n=r.matches[0])==null?void 0:n.id}}),t=aa({select:r=>r.loadedAt});return B.jsx(a0.Provider,{value:e,children:B.jsx(F2,{getResetKey:()=>t,errorComponent:n0,onCatch:r=>{r.message||r.toString()},children:e?B.jsx(bE,{matchId:e}):null})})}const gM=e=>new yM(e);class yM extends N9{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=vh,globalThis.createLazyFileRoute=R4):typeof window<"u"&&(window.createFileRoute=vh,window.createFileRoute=R4);function bM({router:e,children:t,...r}){Object.keys(r).length>0&&e.update({...e.options,...r,context:{...e.options.context,...r.context}});const n=gE(),s=B.jsx(n.Provider,{value:e,children:t});return e.options.Wrap?B.jsx(e.options.Wrap,{children:s}):s}function vM({router:e,...t}){return B.jsx(bM,{router:e,...t,children:B.jsx(pM,{})})}function SM(e){return aa({select:t=>t.location})}var l0=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},c0=typeof window>"u"||"Deno"in globalThis;function _s(){}function xM(e,t){return typeof e=="function"?e(t):e}function wM(e){return typeof e=="number"&&e>=0&&e!==1/0}function CM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function kv(e,t){return typeof e=="function"?e(t):e}function $M(e,t){return typeof e=="function"?e(t):e}function N4(e,t){const{type:r="all",exact:n,fetchStatus:s,predicate:o,queryKey:l,stale:u}=e;if(l){if(n){if(t.queryHash!==Y2(l,t.options))return!1}else if(!xh(t.queryKey,l))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||s&&s!==t.state.fetchStatus||o&&!o(t))}function L4(e,t){const{exact:r,status:n,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Sh(t.options.mutationKey)!==Sh(o))return!1}else if(!xh(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||s&&!s(t))}function Y2(e,t){return((t==null?void 0:t.queryKeyHashFn)||Sh)(e)}function Sh(e){return JSON.stringify(e,(t,r)=>Ev(r)?Object.keys(r).sort().reduce((n,s)=>(n[s]=r[s],n),{}):r)}function xh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>xh(e[r],t[r])):!1}function SE(e,t){if(e===t)return e;const r=P4(e)&&P4(t);if(r||Ev(e)&&Ev(t)){const n=r?e:Object.keys(e),s=n.length,o=r?t:Object.keys(t),l=o.length,u=r?[]:{},d=new Set(n);let h=0;for(let p=0;p<l;p++){const m=r?p:o[p];(!r&&d.has(m)||r)&&e[m]===void 0&&t[m]===void 0?(u[m]=void 0,h++):(u[m]=SE(e[m],t[m]),u[m]===e[m]&&e[m]!==void 0&&h++)}return s===l&&h===s?e:u}return t}function P4(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ev(e){if(!I4(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!I4(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function I4(e){return Object.prototype.toString.call(e)==="[object Object]"}function kM(e){return new Promise(t=>{setTimeout(t,e)})}function EM(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?SE(e,t):t}function _M(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function TM(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Q2=Symbol();function xE(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Q2?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var $l,Mo,eu,Jk,AM=(Jk=class extends l0{constructor(){super();er(this,$l);er(this,Mo);er(this,eu);wt(this,eu,t=>{if(!c0&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){ve(this,Mo)||this.setEventListener(ve(this,eu))}onUnsubscribe(){var t;this.hasListeners()||((t=ve(this,Mo))==null||t.call(this),wt(this,Mo,void 0))}setEventListener(t){var r;wt(this,eu,t),(r=ve(this,Mo))==null||r.call(this),wt(this,Mo,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){ve(this,$l)!==t&&(wt(this,$l,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof ve(this,$l)=="boolean"?ve(this,$l):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$l=new WeakMap,Mo=new WeakMap,eu=new WeakMap,Jk),wE=new AM,tu,No,ru,eE,RM=(eE=class extends l0{constructor(){super();er(this,tu,!0);er(this,No);er(this,ru);wt(this,ru,t=>{if(!c0&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){ve(this,No)||this.setEventListener(ve(this,ru))}onUnsubscribe(){var t;this.hasListeners()||((t=ve(this,No))==null||t.call(this),wt(this,No,void 0))}setEventListener(t){var r;wt(this,ru,t),(r=ve(this,No))==null||r.call(this),wt(this,No,t(this.setOnline.bind(this)))}setOnline(t){ve(this,tu)!==t&&(wt(this,tu,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return ve(this,tu)}},tu=new WeakMap,No=new WeakMap,ru=new WeakMap,eE),bg=new RM;function OM(){let e,t;const r=new Promise((s,o)=>{e=s,t=o});r.status="pending",r.catch(()=>{});function n(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{n({status:"fulfilled",value:s}),e(s)},r.reject=s=>{n({status:"rejected",reason:s}),t(s)},r}function MM(e){return Math.min(1e3*2**e,3e4)}function CE(e){return(e??"online")==="online"?bg.isOnline():!0}var $E=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Tb(e){return e instanceof $E}function kE(e){let t=!1,r=0,n=!1,s;const o=OM(),l=C=>{var $;n||(b(new $E(C)),($=e.abort)==null||$.call(e))},u=()=>{t=!0},d=()=>{t=!1},h=()=>wE.isFocused()&&(e.networkMode==="always"||bg.isOnline())&&e.canRun(),p=()=>CE(e.networkMode)&&e.canRun(),m=C=>{var $;n||(n=!0,($=e.onSuccess)==null||$.call(e,C),s==null||s(),o.resolve(C))},b=C=>{var $;n||(n=!0,($=e.onError)==null||$.call(e,C),s==null||s(),o.reject(C))},S=()=>new Promise(C=>{var $;s=_=>{(n||h())&&C(_)},($=e.onPause)==null||$.call(e)}).then(()=>{var C;s=void 0,n||(C=e.onContinue)==null||C.call(e)}),x=()=>{if(n)return;let C;const $=r===0?e.initialPromise:void 0;try{C=$??e.fn()}catch(_){C=Promise.reject(_)}Promise.resolve(C).then(m).catch(_=>{var j;if(n)return;const M=e.retry??(c0?0:3),T=e.retryDelay??MM,R=typeof T=="function"?T(r,_):T,L=M===!0||typeof M=="number"&&r<M||typeof M=="function"&&M(r,_);if(t||!L){b(_);return}r++,(j=e.onFail)==null||j.call(e,r,_),kM(R).then(()=>h()?void 0:S()).then(()=>{t?b(_):x()})})};return{promise:o,cancel:l,continue:()=>(s==null||s(),o),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?x():S().then(x),o)}}var NM=e=>setTimeout(e,0);function LM(){let e=[],t=0,r=u=>{u()},n=u=>{u()},s=NM;const o=u=>{t?e.push(u):s(()=>{r(u)})},l=()=>{const u=e;e=[],u.length&&s(()=>{n(()=>{u.forEach(d=>{r(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||l()}return d},batchCalls:u=>(...d)=>{o(()=>{u(...d)})},schedule:o,setNotifyFunction:u=>{r=u},setBatchNotifyFunction:u=>{n=u},setScheduler:u=>{s=u}}}var pa=LM(),kl,tE,EE=(tE=class{constructor(){er(this,kl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wM(this.gcTime)&&wt(this,kl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(c0?1/0:5*60*1e3))}clearGcTimeout(){ve(this,kl)&&(clearTimeout(ve(this,kl)),wt(this,kl,void 0))}},kl=new WeakMap,tE),nu,El,os,_l,ta,zh,Tl,Ts,ki,rE,PM=(rE=class extends EE{constructor(t){super();er(this,Ts);er(this,nu);er(this,El);er(this,os);er(this,_l);er(this,ta);er(this,zh);er(this,Tl);wt(this,Tl,!1),wt(this,zh,t.defaultOptions),this.setOptions(t.options),this.observers=[],wt(this,_l,t.client),wt(this,os,ve(this,_l).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,wt(this,nu,DM(this.options)),this.state=t.state??ve(this,nu),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=ve(this,ta))==null?void 0:t.promise}setOptions(t){this.options={...ve(this,zh),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ve(this,os).remove(this)}setData(t,r){const n=EM(this.state.data,t,this.options);return Sn(this,Ts,ki).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){Sn(this,Ts,ki).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,s;const r=(n=ve(this,ta))==null?void 0:n.promise;return(s=ve(this,ta))==null||s.cancel(t),r?r.then(_s).catch(_s):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ve(this,nu))}isActive(){return this.observers.some(t=>$M(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Q2||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>kv(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!CM(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=ve(this,ta))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=ve(this,ta))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),ve(this,os).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(ve(this,ta)&&(ve(this,Tl)?ve(this,ta).cancel({revert:!0}):ve(this,ta).cancelRetry()),this.scheduleGc()),ve(this,os).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Sn(this,Ts,ki).call(this,{type:"invalidate"})}fetch(t,r){var h,p,m;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(ve(this,ta))return ve(this,ta).continueRetry(),ve(this,ta).promise}if(t&&this.setOptions(t),!this.options.queryFn){const b=this.observers.find(S=>S.options.queryFn);b&&this.setOptions(b.options)}const n=new AbortController,s=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(wt(this,Tl,!0),n.signal)})},o=()=>{const b=xE(this.options,r),x=(()=>{const C={client:ve(this,_l),queryKey:this.queryKey,meta:this.meta};return s(C),C})();return wt(this,Tl,!1),this.options.persister?this.options.persister(b,x,this):b(x)},u=(()=>{const b={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:ve(this,_l),state:this.state,fetchFn:o};return s(b),b})();(h=this.options.behavior)==null||h.onFetch(u,this),wt(this,El,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=u.fetchOptions)==null?void 0:p.meta))&&Sn(this,Ts,ki).call(this,{type:"fetch",meta:(m=u.fetchOptions)==null?void 0:m.meta});const d=b=>{var S,x,C,$;Tb(b)&&b.silent||Sn(this,Ts,ki).call(this,{type:"error",error:b}),Tb(b)||((x=(S=ve(this,os).config).onError)==null||x.call(S,b,this),($=(C=ve(this,os).config).onSettled)==null||$.call(C,this.state.data,b,this)),this.scheduleGc()};return wt(this,ta,kE({initialPromise:r==null?void 0:r.initialPromise,fn:u.fetchFn,abort:n.abort.bind(n),onSuccess:b=>{var S,x,C,$;if(b===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(b)}catch(_){d(_);return}(x=(S=ve(this,os).config).onSuccess)==null||x.call(S,b,this),($=(C=ve(this,os).config).onSettled)==null||$.call(C,b,this.state.error,this),this.scheduleGc()},onError:d,onFail:(b,S)=>{Sn(this,Ts,ki).call(this,{type:"failed",failureCount:b,error:S})},onPause:()=>{Sn(this,Ts,ki).call(this,{type:"pause"})},onContinue:()=>{Sn(this,Ts,ki).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),ve(this,ta).start()}},nu=new WeakMap,El=new WeakMap,os=new WeakMap,_l=new WeakMap,ta=new WeakMap,zh=new WeakMap,Tl=new WeakMap,Ts=new WeakSet,ki=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...IM(n.data,this.options),fetchMeta:t.meta??null};case"success":return wt(this,El,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Tb(s)&&s.revert&&ve(this,El)?{...ve(this,El),fetchStatus:"idle"}:{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),pa.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),ve(this,os).notify({query:this,type:"updated",action:t})})},rE);function IM(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:CE(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function DM(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Js,nE,zM=(nE=class extends l0{constructor(t={}){super();er(this,Js);this.config=t,wt(this,Js,new Map)}build(t,r,n){const s=r.queryKey,o=r.queryHash??Y2(s,r);let l=this.get(o);return l||(l=new PM({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(l)),l}add(t){ve(this,Js).has(t.queryHash)||(ve(this,Js).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=ve(this,Js).get(t.queryHash);r&&(t.destroy(),r===t&&ve(this,Js).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){pa.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return ve(this,Js).get(t)}getAll(){return[...ve(this,Js).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>N4(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>N4(t,n)):r}notify(t){pa.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){pa.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){pa.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Js=new WeakMap,nE),ei,ha,Al,ti,Ao,aE,jM=(aE=class extends EE{constructor(t){super();er(this,ti);er(this,ei);er(this,ha);er(this,Al);this.mutationId=t.mutationId,wt(this,ha,t.mutationCache),wt(this,ei,[]),this.state=t.state||BM(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){ve(this,ei).includes(t)||(ve(this,ei).push(t),this.clearGcTimeout(),ve(this,ha).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){wt(this,ei,ve(this,ei).filter(r=>r!==t)),this.scheduleGc(),ve(this,ha).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){ve(this,ei).length||(this.state.status==="pending"?this.scheduleGc():ve(this,ha).remove(this))}continue(){var t;return((t=ve(this,Al))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,u,d,h,p,m,b,S,x,C,$,_,M,T,R,L,j,O,N;const r=()=>{Sn(this,ti,Ao).call(this,{type:"continue"})};wt(this,Al,kE({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(z,k)=>{Sn(this,ti,Ao).call(this,{type:"failed",failureCount:z,error:k})},onPause:()=>{Sn(this,ti,Ao).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ve(this,ha).canRun(this)}));const n=this.state.status==="pending",s=!ve(this,Al).canStart();try{if(n)r();else{Sn(this,ti,Ao).call(this,{type:"pending",variables:t,isPaused:s}),await((l=(o=ve(this,ha).config).onMutate)==null?void 0:l.call(o,t,this));const k=await((d=(u=this.options).onMutate)==null?void 0:d.call(u,t));k!==this.state.context&&Sn(this,ti,Ao).call(this,{type:"pending",context:k,variables:t,isPaused:s})}const z=await ve(this,Al).start();return await((p=(h=ve(this,ha).config).onSuccess)==null?void 0:p.call(h,z,t,this.state.context,this)),await((b=(m=this.options).onSuccess)==null?void 0:b.call(m,z,t,this.state.context)),await((x=(S=ve(this,ha).config).onSettled)==null?void 0:x.call(S,z,null,this.state.variables,this.state.context,this)),await(($=(C=this.options).onSettled)==null?void 0:$.call(C,z,null,t,this.state.context)),Sn(this,ti,Ao).call(this,{type:"success",data:z}),z}catch(z){try{throw await((M=(_=ve(this,ha).config).onError)==null?void 0:M.call(_,z,t,this.state.context,this)),await((R=(T=this.options).onError)==null?void 0:R.call(T,z,t,this.state.context)),await((j=(L=ve(this,ha).config).onSettled)==null?void 0:j.call(L,void 0,z,this.state.variables,this.state.context,this)),await((N=(O=this.options).onSettled)==null?void 0:N.call(O,void 0,z,t,this.state.context)),z}finally{Sn(this,ti,Ao).call(this,{type:"error",error:z})}}finally{ve(this,ha).runNext(this)}}},ei=new WeakMap,ha=new WeakMap,Al=new WeakMap,ti=new WeakSet,Ao=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),pa.batch(()=>{ve(this,ei).forEach(n=>{n.onMutationUpdate(t)}),ve(this,ha).notify({mutation:this,type:"updated",action:t})})},aE);function BM(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ai,As,jh,sE,UM=(sE=class extends l0{constructor(t={}){super();er(this,Ai);er(this,As);er(this,jh);this.config=t,wt(this,Ai,new Set),wt(this,As,new Map),wt(this,jh,0)}build(t,r,n){const s=new jM({mutationCache:this,mutationId:++_m(this,jh)._,options:t.defaultMutationOptions(r),state:n});return this.add(s),s}add(t){ve(this,Ai).add(t);const r=Rm(t);if(typeof r=="string"){const n=ve(this,As).get(r);n?n.push(t):ve(this,As).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(ve(this,Ai).delete(t)){const r=Rm(t);if(typeof r=="string"){const n=ve(this,As).get(r);if(n)if(n.length>1){const s=n.indexOf(t);s!==-1&&n.splice(s,1)}else n[0]===t&&ve(this,As).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Rm(t);if(typeof r=="string"){const n=ve(this,As).get(r),s=n==null?void 0:n.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var n;const r=Rm(t);if(typeof r=="string"){const s=(n=ve(this,As).get(r))==null?void 0:n.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){pa.batch(()=>{ve(this,Ai).forEach(t=>{this.notify({type:"removed",mutation:t})}),ve(this,Ai).clear(),ve(this,As).clear()})}getAll(){return Array.from(ve(this,Ai))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>L4(r,n))}findAll(t={}){return this.getAll().filter(r=>L4(t,r))}notify(t){pa.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return pa.batch(()=>Promise.all(t.map(r=>r.continue().catch(_s))))}},Ai=new WeakMap,As=new WeakMap,jh=new WeakMap,sE);function Rm(e){var t;return(t=e.options.scope)==null?void 0:t.id}function D4(e){return{onFetch:(t,r)=>{var p,m,b,S,x;const n=t.options,s=(b=(m=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:m.fetchMore)==null?void 0:b.direction,o=((S=t.state.data)==null?void 0:S.pages)||[],l=((x=t.state.data)==null?void 0:x.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const h=async()=>{let C=!1;const $=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?C=!0:t.signal.addEventListener("abort",()=>{C=!0}),t.signal)})},_=xE(t.options,t.fetchOptions),M=async(T,R,L)=>{if(C)return Promise.reject();if(R==null&&T.pages.length)return Promise.resolve(T);const O=(()=>{const H={client:t.client,queryKey:t.queryKey,pageParam:R,direction:L?"backward":"forward",meta:t.options.meta};return $(H),H})(),N=await _(O),{maxPages:z}=t.options,k=L?TM:_M;return{pages:k(T.pages,N,z),pageParams:k(T.pageParams,R,z)}};if(s&&o.length){const T=s==="backward",R=T?HM:z4,L={pages:o,pageParams:l},j=R(n,L);u=await M(L,j,T)}else{const T=e??o.length;do{const R=d===0?l[0]??n.initialPageParam:z4(n,u);if(d>0&&R==null)break;u=await M(u,R),d++}while(d<T)}return u};t.options.persister?t.fetchFn=()=>{var C,$;return($=(C=t.options).persister)==null?void 0:$.call(C,h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=h}}}function z4(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function HM(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var sn,Lo,Po,au,su,Io,iu,ou,iE,ZM=(iE=class{constructor(e={}){er(this,sn);er(this,Lo);er(this,Po);er(this,au);er(this,su);er(this,Io);er(this,iu);er(this,ou);wt(this,sn,e.queryCache||new zM),wt(this,Lo,e.mutationCache||new UM),wt(this,Po,e.defaultOptions||{}),wt(this,au,new Map),wt(this,su,new Map),wt(this,Io,0)}mount(){_m(this,Io)._++,ve(this,Io)===1&&(wt(this,iu,wE.subscribe(async e=>{e&&(await this.resumePausedMutations(),ve(this,sn).onFocus())})),wt(this,ou,bg.subscribe(async e=>{e&&(await this.resumePausedMutations(),ve(this,sn).onOnline())})))}unmount(){var e,t;_m(this,Io)._--,ve(this,Io)===0&&((e=ve(this,iu))==null||e.call(this),wt(this,iu,void 0),(t=ve(this,ou))==null||t.call(this),wt(this,ou,void 0))}isFetching(e){return ve(this,sn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return ve(this,Lo).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=ve(this,sn).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=ve(this,sn).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(kv(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return ve(this,sn).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=ve(this,sn).get(n.queryHash),o=s==null?void 0:s.state.data,l=xM(t,o);if(l!==void 0)return ve(this,sn).build(this,n).setData(l,{...r,manual:!0})}setQueriesData(e,t,r){return pa.batch(()=>ve(this,sn).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=ve(this,sn).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=ve(this,sn);pa.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=ve(this,sn);return pa.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=pa.batch(()=>ve(this,sn).findAll(e).map(s=>s.cancel(r)));return Promise.all(n).then(_s).catch(_s)}invalidateQueries(e,t={}){return pa.batch(()=>(ve(this,sn).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=pa.batch(()=>ve(this,sn).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,r);return r.throwOnError||(o=o.catch(_s)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(n).then(_s)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=ve(this,sn).build(this,t);return r.isStaleByTime(kv(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_s).catch(_s)}fetchInfiniteQuery(e){return e.behavior=D4(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_s).catch(_s)}ensureInfiniteQueryData(e){return e.behavior=D4(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return bg.isOnline()?ve(this,Lo).resumePausedMutations():Promise.resolve()}getQueryCache(){return ve(this,sn)}getMutationCache(){return ve(this,Lo)}getDefaultOptions(){return ve(this,Po)}setDefaultOptions(e){wt(this,Po,e)}setQueryDefaults(e,t){ve(this,au).set(Sh(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...ve(this,au).values()],r={};return t.forEach(n=>{xh(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){ve(this,su).set(Sh(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...ve(this,su).values()],r={};return t.forEach(n=>{xh(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...ve(this,Po).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Y2(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Q2&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...ve(this,Po).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){ve(this,sn).clear(),ve(this,Lo).clear()}},sn=new WeakMap,Lo=new WeakMap,Po=new WeakMap,au=new WeakMap,su=new WeakMap,Io=new WeakMap,iu=new WeakMap,ou=new WeakMap,iE),VM=P.createContext(void 0),FM=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),B.jsx(VM.Provider,{value:e,children:t}));const qM="modulepreload",GM=function(e){return"/"+e},j4={},wh=function(t,r,n){let s=Promise.resolve();if(r&&r.length>0){let l=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));s=l(r.map(h=>{if(h=GM(h),h in j4)return;j4[h]=!0;const p=h.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const b=document.createElement("link");if(b.rel=p?"stylesheet":qM,p||(b.as="script"),b.crossOrigin="",b.href=h,d&&b.setAttribute("nonce",d),document.head.appendChild(b),p)return new Promise((S,x)=>{b.addEventListener("load",S),b.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return s.then(l=>{for(const u of l||[])u.status==="rejected"&&o(u.reason);return t().catch(o)})},X2="mode",J2="color-scheme",KM="data-color-scheme";function _E(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:s=X2,colorSchemeStorageKey:o=J2,attribute:l=KM,colorSchemeNode:u="document.documentElement",nonce:d}=e||{};let h="",p=l;if(l==="class"&&(p=".%s"),l==="data"&&(p="[data-%s]"),p.startsWith(".")){const b=p.substring(1);h+=`${u}.classList.remove('${b}'.replace('%s', light), '${b}'.replace('%s', dark));
      ${u}.classList.add('${b}'.replace('%s', colorScheme));`}const m=p.match(/\[([^\]]+)\]/);if(m){const[b,S]=m[1].split("=");S||(h+=`${u}.removeAttribute('${b}'.replace('%s', light));
      ${u}.removeAttribute('${b}'.replace('%s', dark));`),h+=`
      ${u}.setAttribute('${b}'.replace('%s', colorScheme), ${S?`${S}.replace('%s', colorScheme)`:'""'});`}else h+=`${u}.setAttribute('${p}', colorScheme);`;return B.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
  let colorScheme = '';
  const mode = localStorage.getItem('${s}') || '${t}';
  const dark = localStorage.getItem('${o}-dark') || '${n}';
  const light = localStorage.getItem('${o}-light') || '${r}';
  if (mode === 'system') {
    // handle system mode
    const mql = window.matchMedia('(prefers-color-scheme: dark)');
    if (mql.matches) {
      colorScheme = dark
    } else {
      colorScheme = light
    }
  }
  if (mode === 'light') {
    colorScheme = light;
  }
  if (mode === 'dark') {
    colorScheme = dark;
  }
  if (colorScheme) {
    ${h}
  }
} catch(e){}})();`}},"mui-color-scheme-init")}const Ri={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};function WM(e){const{defaultMode:t="system",defaultLightColorScheme:r=Ri.defaultLightColorScheme,defaultDarkColorScheme:n=Ri.defaultDarkColorScheme,modeStorageKey:s=Ri.modeStorageKey,colorSchemeStorageKey:o=Ri.colorSchemeStorageKey,attribute:l=Ri.attribute,colorSchemeNode:u="document.documentElement",nonce:d}=e;return B.jsx(_E,{defaultMode:t,defaultLightColorScheme:r,defaultDarkColorScheme:n,modeStorageKey:s,colorSchemeStorageKey:o,attribute:l,colorSchemeNode:u,nonce:d})}const Ch={black:"#000",white:"#fff"},Tc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ac={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Rc={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Oc={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Mc={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Zf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},YM={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Di(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const Ns="$$material";function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vg.apply(null,arguments)}function QM(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function XM(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var JM=function(){function e(r){var n=this;this._insertTag=function(s){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(s,o),n.tags.push(s)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(XM(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var o=QM(s);try{o.insertRule(n,o.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var s;return(s=n.parentNode)==null?void 0:s.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Jn="-ms-",Sg="-moz-",ur="-webkit-",TE="comm",eS="rule",tS="decl",e7="@import",AE="@keyframes",t7="@layer",r7=Math.abs,u0=String.fromCharCode,n7=Object.assign;function a7(e,t){return qn(e,0)^45?(((t<<2^qn(e,0))<<2^qn(e,1))<<2^qn(e,2))<<2^qn(e,3):0}function RE(e){return e.trim()}function s7(e,t){return(e=t.exec(e))?e[0]:e}function dr(e,t,r){return e.replace(t,r)}function _v(e,t){return e.indexOf(t)}function qn(e,t){return e.charCodeAt(t)|0}function $h(e,t,r){return e.slice(t,r)}function ri(e){return e.length}function rS(e){return e.length}function Om(e,t){return t.push(e),e}function i7(e,t){return e.map(t).join("")}var d0=1,Rd=1,OE=0,Na=0,xn=0,jd="";function f0(e,t,r,n,s,o,l){return{value:e,root:t,parent:r,type:n,props:s,children:o,line:d0,column:Rd,length:l,return:""}}function Vf(e,t){return n7(f0("",null,null,"",null,null,0),e,{length:-e.length},t)}function o7(){return xn}function l7(){return xn=Na>0?qn(jd,--Na):0,Rd--,xn===10&&(Rd=1,d0--),xn}function qa(){return xn=Na<OE?qn(jd,Na++):0,Rd++,xn===10&&(Rd=1,d0++),xn}function si(){return qn(jd,Na)}function Km(){return Na}function Uh(e,t){return $h(jd,e,t)}function kh(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ME(e){return d0=Rd=1,OE=ri(jd=e),Na=0,[]}function NE(e){return jd="",e}function Wm(e){return RE(Uh(Na-1,Tv(e===91?e+2:e===40?e+1:e)))}function c7(e){for(;(xn=si())&&xn<33;)qa();return kh(e)>2||kh(xn)>3?"":" "}function u7(e,t){for(;--t&&qa()&&!(xn<48||xn>102||xn>57&&xn<65||xn>70&&xn<97););return Uh(e,Km()+(t<6&&si()==32&&qa()==32))}function Tv(e){for(;qa();)switch(xn){case e:return Na;case 34:case 39:e!==34&&e!==39&&Tv(xn);break;case 40:e===41&&Tv(e);break;case 92:qa();break}return Na}function d7(e,t){for(;qa()&&e+xn!==57;)if(e+xn===84&&si()===47)break;return"/*"+Uh(t,Na-1)+"*"+u0(e===47?e:qa())}function f7(e){for(;!kh(si());)qa();return Uh(e,Na)}function h7(e){return NE(Ym("",null,null,null,[""],e=ME(e),0,[0],e))}function Ym(e,t,r,n,s,o,l,u,d){for(var h=0,p=0,m=l,b=0,S=0,x=0,C=1,$=1,_=1,M=0,T="",R=s,L=o,j=n,O=T;$;)switch(x=M,M=qa()){case 40:if(x!=108&&qn(O,m-1)==58){_v(O+=dr(Wm(M),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:O+=Wm(M);break;case 9:case 10:case 13:case 32:O+=c7(x);break;case 92:O+=u7(Km()-1,7);continue;case 47:switch(si()){case 42:case 47:Om(p7(d7(qa(),Km()),t,r),d);break;default:O+="/"}break;case 123*C:u[h++]=ri(O)*_;case 125*C:case 59:case 0:switch(M){case 0:case 125:$=0;case 59+p:_==-1&&(O=dr(O,/\f/g,"")),S>0&&ri(O)-m&&Om(S>32?U4(O+";",n,r,m-1):U4(dr(O," ","")+";",n,r,m-2),d);break;case 59:O+=";";default:if(Om(j=B4(O,t,r,h,p,s,u,T,R=[],L=[],m),o),M===123)if(p===0)Ym(O,t,j,j,R,o,m,u,L);else switch(b===99&&qn(O,3)===110?100:b){case 100:case 108:case 109:case 115:Ym(e,j,j,n&&Om(B4(e,j,j,0,0,s,u,T,s,R=[],m),L),s,L,m,u,n?R:L);break;default:Ym(O,j,j,j,[""],L,0,u,L)}}h=p=S=0,C=_=1,T=O="",m=l;break;case 58:m=1+ri(O),S=x;default:if(C<1){if(M==123)--C;else if(M==125&&C++==0&&l7()==125)continue}switch(O+=u0(M),M*C){case 38:_=p>0?1:(O+="\f",-1);break;case 44:u[h++]=(ri(O)-1)*_,_=1;break;case 64:si()===45&&(O+=Wm(qa())),b=si(),p=m=ri(T=O+=f7(Km())),M++;break;case 45:x===45&&ri(O)==2&&(C=0)}}return o}function B4(e,t,r,n,s,o,l,u,d,h,p){for(var m=s-1,b=s===0?o:[""],S=rS(b),x=0,C=0,$=0;x<n;++x)for(var _=0,M=$h(e,m+1,m=r7(C=l[x])),T=e;_<S;++_)(T=RE(C>0?b[_]+" "+M:dr(M,/&\f/g,b[_])))&&(d[$++]=T);return f0(e,t,r,s===0?eS:u,d,h,p)}function p7(e,t,r){return f0(e,t,r,TE,u0(o7()),$h(e,2,-2),0)}function U4(e,t,r,n){return f0(e,t,r,tS,$h(e,0,n),$h(e,n+1,-1),n)}function Yc(e,t){for(var r="",n=rS(e),s=0;s<n;s++)r+=t(e[s],s,e,t)||"";return r}function m7(e,t,r,n){switch(e.type){case t7:if(e.children.length)break;case e7:case tS:return e.return=e.return||e.value;case TE:return"";case AE:return e.return=e.value+"{"+Yc(e.children,n)+"}";case eS:e.value=e.props.join(",")}return ri(r=Yc(e.children,n))?e.return=e.value+"{"+r+"}":""}function g7(e){var t=rS(e);return function(r,n,s,o){for(var l="",u=0;u<t;u++)l+=e[u](r,n,s,o)||"";return l}}function y7(e){return function(t){t.root||(t=t.return)&&e(t)}}function LE(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var b7=function(t,r,n){for(var s=0,o=0;s=o,o=si(),s===38&&o===12&&(r[n]=1),!kh(o);)qa();return Uh(t,Na)},v7=function(t,r){var n=-1,s=44;do switch(kh(s)){case 0:s===38&&si()===12&&(r[n]=1),t[n]+=b7(Na-1,r,n);break;case 2:t[n]+=Wm(s);break;case 4:if(s===44){t[++n]=si()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=u0(s)}while(s=qa());return t},S7=function(t,r){return NE(v7(ME(t),r))},H4=new WeakMap,x7=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,s=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!H4.get(n))&&!s){H4.set(t,!0);for(var o=[],l=S7(r,o),u=n.props,d=0,h=0;d<l.length;d++)for(var p=0;p<u.length;p++,h++)t.props[h]=o[d]?l[d].replace(/&\f/g,u[p]):u[p]+" "+l[d]}}},w7=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function PE(e,t){switch(a7(e,t)){case 5103:return ur+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ur+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ur+e+Sg+e+Jn+e+e;case 6828:case 4268:return ur+e+Jn+e+e;case 6165:return ur+e+Jn+"flex-"+e+e;case 5187:return ur+e+dr(e,/(\w+).+(:[^]+)/,ur+"box-$1$2"+Jn+"flex-$1$2")+e;case 5443:return ur+e+Jn+"flex-item-"+dr(e,/flex-|-self/,"")+e;case 4675:return ur+e+Jn+"flex-line-pack"+dr(e,/align-content|flex-|-self/,"")+e;case 5548:return ur+e+Jn+dr(e,"shrink","negative")+e;case 5292:return ur+e+Jn+dr(e,"basis","preferred-size")+e;case 6060:return ur+"box-"+dr(e,"-grow","")+ur+e+Jn+dr(e,"grow","positive")+e;case 4554:return ur+dr(e,/([^-])(transform)/g,"$1"+ur+"$2")+e;case 6187:return dr(dr(dr(e,/(zoom-|grab)/,ur+"$1"),/(image-set)/,ur+"$1"),e,"")+e;case 5495:case 3959:return dr(e,/(image-set\([^]*)/,ur+"$1$`$1");case 4968:return dr(dr(e,/(.+:)(flex-)?(.*)/,ur+"box-pack:$3"+Jn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ur+e+e;case 4095:case 3583:case 4068:case 2532:return dr(e,/(.+)-inline(.+)/,ur+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ri(e)-1-t>6)switch(qn(e,t+1)){case 109:if(qn(e,t+4)!==45)break;case 102:return dr(e,/(.+:)(.+)-([^]+)/,"$1"+ur+"$2-$3$1"+Sg+(qn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_v(e,"stretch")?PE(dr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qn(e,t+1)!==115)break;case 6444:switch(qn(e,ri(e)-3-(~_v(e,"!important")&&10))){case 107:return dr(e,":",":"+ur)+e;case 101:return dr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ur+(qn(e,14)===45?"inline-":"")+"box$3$1"+ur+"$2$3$1"+Jn+"$2box$3")+e}break;case 5936:switch(qn(e,t+11)){case 114:return ur+e+Jn+dr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ur+e+Jn+dr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ur+e+Jn+dr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ur+e+Jn+e+e}return e}var C7=function(t,r,n,s){if(t.length>-1&&!t.return)switch(t.type){case tS:t.return=PE(t.value,t.length);break;case AE:return Yc([Vf(t,{value:dr(t.value,"@","@"+ur)})],s);case eS:if(t.length)return i7(t.props,function(o){switch(s7(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yc([Vf(t,{props:[dr(o,/:(read-\w+)/,":"+Sg+"$1")]})],s);case"::placeholder":return Yc([Vf(t,{props:[dr(o,/:(plac\w+)/,":"+ur+"input-$1")]}),Vf(t,{props:[dr(o,/:(plac\w+)/,":"+Sg+"$1")]}),Vf(t,{props:[dr(o,/:(plac\w+)/,Jn+"input-$1")]})],s)}return""})}},$7=[C7],k7=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(C){var $=C.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var s=t.stylisPlugins||$7,o={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(C){for(var $=C.getAttribute("data-emotion").split(" "),_=1;_<$.length;_++)o[$[_]]=!0;u.push(C)});var d,h=[x7,w7];{var p,m=[m7,y7(function(C){p.insert(C)})],b=g7(h.concat(s,m)),S=function($){return Yc(h7($),b)};d=function($,_,M,T){p=M,S($?$+"{"+_.styles+"}":_.styles),T&&(x.inserted[_.name]=!0)}}var x={key:r,sheet:new JM({key:r,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:d};return x.sheet.hydrate(u),x},Ab={exports:{}},mr={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Z4;function E7(){if(Z4)return mr;Z4=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function T(L){if(typeof L=="object"&&L!==null){var j=L.$$typeof;switch(j){case t:switch(L=L.type,L){case d:case h:case n:case o:case s:case m:return L;default:switch(L=L&&L.$$typeof,L){case u:case p:case x:case S:case l:return L;default:return j}}case r:return j}}}function R(L){return T(L)===h}return mr.AsyncMode=d,mr.ConcurrentMode=h,mr.ContextConsumer=u,mr.ContextProvider=l,mr.Element=t,mr.ForwardRef=p,mr.Fragment=n,mr.Lazy=x,mr.Memo=S,mr.Portal=r,mr.Profiler=o,mr.StrictMode=s,mr.Suspense=m,mr.isAsyncMode=function(L){return R(L)||T(L)===d},mr.isConcurrentMode=R,mr.isContextConsumer=function(L){return T(L)===u},mr.isContextProvider=function(L){return T(L)===l},mr.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===t},mr.isForwardRef=function(L){return T(L)===p},mr.isFragment=function(L){return T(L)===n},mr.isLazy=function(L){return T(L)===x},mr.isMemo=function(L){return T(L)===S},mr.isPortal=function(L){return T(L)===r},mr.isProfiler=function(L){return T(L)===o},mr.isStrictMode=function(L){return T(L)===s},mr.isSuspense=function(L){return T(L)===m},mr.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===n||L===h||L===o||L===s||L===m||L===b||typeof L=="object"&&L!==null&&(L.$$typeof===x||L.$$typeof===S||L.$$typeof===l||L.$$typeof===u||L.$$typeof===p||L.$$typeof===$||L.$$typeof===_||L.$$typeof===M||L.$$typeof===C)},mr.typeOf=T,mr}var V4;function _7(){return V4||(V4=1,Ab.exports=E7()),Ab.exports}var Rb,F4;function T7(){if(F4)return Rb;F4=1;var e=_7(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=n,o[e.Memo]=s;function l(x){return e.isMemo(x)?s:o[x.$$typeof]||t}var u=Object.defineProperty,d=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,b=Object.prototype;function S(x,C,$){if(typeof C!="string"){if(b){var _=m(C);_&&_!==b&&S(x,_,$)}var M=d(C);h&&(M=M.concat(h(C)));for(var T=l(x),R=l(C),L=0;L<M.length;++L){var j=M[L];if(!r[j]&&!($&&$[j])&&!(R&&R[j])&&!(T&&T[j])){var O=p(C,j);try{u(x,j,O)}catch{}}}}return x}return Rb=S,Rb}T7();var A7=!0;function IE(e,t,r){var n="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(n+=s+" ")}),n}var nS=function(t,r,n){var s=t.key+"-"+r.name;(n===!1||A7===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},aS=function(t,r,n){nS(t,r,n);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+s:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function R7(e){for(var t=0,r,n=0,s=e.length;s>=4;++n,s-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var O7={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},M7=/[A-Z]|^ms/g,N7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DE=function(t){return t.charCodeAt(1)===45},q4=function(t){return t!=null&&typeof t!="boolean"},Ob=LE(function(e){return DE(e)?e:e.replace(M7,"-$&").toLowerCase()}),G4=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(N7,function(n,s,o){return ni={name:s,styles:o,next:ni},s})}return O7[t]!==1&&!DE(t)&&typeof r=="number"&&r!==0?r+"px":r};function Eh(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return ni={name:s.name,styles:s.styles,next:ni},s.name;var o=r;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)ni={name:l.name,styles:l.styles,next:ni},l=l.next;var u=o.styles+";";return u}return L7(e,t,r)}case"function":{if(e!==void 0){var d=ni,h=r(e);return ni=d,Eh(e,t,h)}break}}var p=r;if(t==null)return p;var m=t[p];return m!==void 0?m:p}function L7(e,t,r){var n="";if(Array.isArray(r))for(var s=0;s<r.length;s++)n+=Eh(e,t,r[s])+";";else for(var o in r){var l=r[o];if(typeof l!="object"){var u=l;t!=null&&t[u]!==void 0?n+=o+"{"+t[u]+"}":q4(u)&&(n+=Ob(o)+":"+G4(o,u)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)q4(l[d])&&(n+=Ob(o)+":"+G4(o,l[d])+";");else{var h=Eh(e,t,l);switch(o){case"animation":case"animationName":{n+=Ob(o)+":"+h+";";break}default:n+=o+"{"+h+"}"}}}return n}var K4=/label:\s*([^\s;{]+)\s*(;|$)/g,ni;function Hh(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,s="";ni=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,s+=Eh(r,t,o);else{var l=o;s+=l[0]}for(var u=1;u<e.length;u++)if(s+=Eh(r,t,e[u]),n){var d=o;s+=d[u]}K4.lastIndex=0;for(var h="",p;(p=K4.exec(s))!==null;)h+="-"+p[1];var m=R7(s)+h;return{name:m,styles:s,next:ni}}var P7=function(t){return t()},zE=ug.useInsertionEffect?ug.useInsertionEffect:!1,jE=zE||P7,W4=zE||P.useLayoutEffect,BE=P.createContext(typeof HTMLElement<"u"?k7({key:"css"}):null);BE.Provider;var sS=function(t){return P.forwardRef(function(r,n){var s=P.useContext(BE);return t(r,s,n)})},Zh=P.createContext({}),iS={}.hasOwnProperty,Av="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",I7=function(t,r){var n={};for(var s in r)iS.call(r,s)&&(n[s]=r[s]);return n[Av]=t,n},D7=function(t){var r=t.cache,n=t.serialized,s=t.isStringTag;return nS(r,n,s),jE(function(){return aS(r,n,s)}),null},z7=sS(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var s=e[Av],o=[n],l="";typeof e.className=="string"?l=IE(t.registered,o,e.className):e.className!=null&&(l=e.className+" ");var u=Hh(o,void 0,P.useContext(Zh));l+=t.key+"-"+u.name;var d={};for(var h in e)iS.call(e,h)&&h!=="css"&&h!==Av&&(d[h]=e[h]);return d.className=l,r&&(d.ref=r),P.createElement(P.Fragment,null,P.createElement(D7,{cache:t,serialized:u,isStringTag:typeof s=="string"}),P.createElement(s,d))}),j7=z7,Y4=function(t,r){var n=arguments;if(r==null||!iS.call(r,"css"))return P.createElement.apply(void 0,n);var s=n.length,o=new Array(s);o[0]=j7,o[1]=I7(t,r);for(var l=2;l<s;l++)o[l]=n[l];return P.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Y4||(Y4={}));var B7=sS(function(e,t){var r=e.styles,n=Hh([r],void 0,P.useContext(Zh)),s=P.useRef();return W4(function(){var o=t.key+"-global",l=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,d=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),d!==null&&(u=!0,d.setAttribute("data-emotion",o),l.hydrate([d])),s.current=[l,u],function(){l.flush()}},[t]),W4(function(){var o=s.current,l=o[0],u=o[1];if(u){o[1]=!1;return}if(n.next!==void 0&&aS(t,n.next,!0),l.tags.length){var d=l.tags[l.tags.length-1].nextElementSibling;l.before=d,l.flush()}t.insert("",n,l,!1)},[t,n.name]),null});function oS(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Hh(t)}function Vh(){var e=oS.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var U7=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,H7=LE(function(e){return U7.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Z7=H7,V7=function(t){return t!=="theme"},Q4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Z7:V7},X4=function(t,r,n){var s;if(r){var o=r.shouldForwardProp;s=t.__emotion_forwardProp&&o?function(l){return t.__emotion_forwardProp(l)&&o(l)}:o}return typeof s!="function"&&n&&(s=t.__emotion_forwardProp),s},F7=function(t){var r=t.cache,n=t.serialized,s=t.isStringTag;return nS(r,n,s),jE(function(){return aS(r,n,s)}),null},q7=function e(t,r){var n=t.__emotion_real===t,s=n&&t.__emotion_base||t,o,l;r!==void 0&&(o=r.label,l=r.target);var u=X4(t,r,n),d=u||Q4(s),h=!d("as");return function(){var p=arguments,m=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{var b=p[0];m.push(b[0]);for(var S=p.length,x=1;x<S;x++)m.push(p[x],b[x])}var C=sS(function($,_,M){var T=h&&$.as||s,R="",L=[],j=$;if($.theme==null){j={};for(var O in $)j[O]=$[O];j.theme=P.useContext(Zh)}typeof $.className=="string"?R=IE(_.registered,L,$.className):$.className!=null&&(R=$.className+" ");var N=Hh(m.concat(L),_.registered,j);R+=_.key+"-"+N.name,l!==void 0&&(R+=" "+l);var z=h&&u===void 0?Q4(T):d,k={};for(var H in $)h&&H==="as"||z(H)&&(k[H]=$[H]);return k.className=R,M&&(k.ref=M),P.createElement(P.Fragment,null,P.createElement(F7,{cache:_,serialized:N,isStringTag:typeof T=="string"}),P.createElement(T,k))});return C.displayName=o!==void 0?o:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=s,C.__emotion_styles=m,C.__emotion_forwardProp=u,Object.defineProperty(C,"toString",{value:function(){return"."+l}}),C.withComponent=function($,_){var M=e($,vg({},r,_,{shouldForwardProp:X4(C,_,!0)}));return M.apply(void 0,m)},C}},G7=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Rv=q7.bind(null);G7.forEach(function(e){Rv[e]=Rv(e)});function K7(e){return e==null||Object.keys(e).length===0}function UE(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?s=>t(K7(s)?r:s):t;return B.jsx(B7,{styles:n})}function HE(e,t){return Rv(e,t)}function W7(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const J4=[];function Uo(e){return J4[0]=e,Hh(J4)}var Mb={exports:{}},_r={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var eC;function Y7(){if(eC)return _r;eC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function x(C){if(typeof C=="object"&&C!==null){var $=C.$$typeof;switch($){case e:switch(C=C.type,C){case r:case s:case n:case d:case h:case b:return C;default:switch(C=C&&C.$$typeof,C){case l:case u:case m:case p:return C;case o:return C;default:return $}}case t:return $}}}return _r.ContextConsumer=o,_r.ContextProvider=l,_r.Element=e,_r.ForwardRef=u,_r.Fragment=r,_r.Lazy=m,_r.Memo=p,_r.Portal=t,_r.Profiler=s,_r.StrictMode=n,_r.Suspense=d,_r.SuspenseList=h,_r.isContextConsumer=function(C){return x(C)===o},_r.isContextProvider=function(C){return x(C)===l},_r.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},_r.isForwardRef=function(C){return x(C)===u},_r.isFragment=function(C){return x(C)===r},_r.isLazy=function(C){return x(C)===m},_r.isMemo=function(C){return x(C)===p},_r.isPortal=function(C){return x(C)===t},_r.isProfiler=function(C){return x(C)===s},_r.isStrictMode=function(C){return x(C)===n},_r.isSuspense=function(C){return x(C)===d},_r.isSuspenseList=function(C){return x(C)===h},_r.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===s||C===n||C===d||C===h||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===p||C.$$typeof===l||C.$$typeof===o||C.$$typeof===u||C.$$typeof===S||C.getModuleId!==void 0)},_r.typeOf=x,_r}var tC;function Q7(){return tC||(tC=1,Mb.exports=Y7()),Mb.exports}var ZE=Q7();function ai(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function VE(e){if(P.isValidElement(e)||ZE.isValidElementType(e)||!ai(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=VE(e[r])}),t}function Ln(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return ai(e)&&ai(t)&&Object.keys(t).forEach(s=>{P.isValidElement(t[s])||ZE.isValidElementType(t[s])?n[s]=t[s]:ai(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&ai(e[s])?n[s]=Ln(e[s],t[s],r):r.clone?n[s]=ai(t[s])?VE(t[s]):t[s]:n[s]=t[s]}),n}const X7=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function J7(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...s}=e,o=X7(t),l=Object.keys(o);function u(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r})`}function d(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-n/100}${r})`}function h(b,S){const x=l.indexOf(S);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:S)-n/100}${r})`}function p(b){return l.indexOf(b)+1<l.length?h(b,l[l.indexOf(b)+1]):u(b)}function m(b){const S=l.indexOf(b);return S===0?u(l[1]):S===l.length-1?d(l[S]):h(b,l[l.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:l,values:o,up:u,down:d,between:h,only:p,not:m,unit:r,...s}}function rC(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,s)=>{var l,u;const o=/min-width:\s*([0-9.]+)/;return+(((l=n.match(o))==null?void 0:l[1])||0)-+(((u=s.match(o))==null?void 0:u[1])||0)});return r.length?r.reduce((n,s)=>{const o=t[s];return delete n[s],n[s]=o,n},{...t}):t}function eN(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function tN(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,s]=r,o=Number.isNaN(+n)?n||0:+n;return e.containerQueries(s).up(o)}function rN(e){const t=(o,l)=>o.replace("@media",l?`@container ${l}`:"@container");function r(o,l){o.up=(...u)=>t(e.breakpoints.up(...u),l),o.down=(...u)=>t(e.breakpoints.down(...u),l),o.between=(...u)=>t(e.breakpoints.between(...u),l),o.only=(...u)=>t(e.breakpoints.only(...u),l),o.not=(...u)=>{const d=t(e.breakpoints.not(...u),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const n={},s=o=>(r(n,o),n);return r(s),{...e,containerQueries:s}}const nN={borderRadius:4};function fh(e,t){return t?Ln(e,t,{clone:!1}):e}const h0={xs:0,sm:600,md:900,lg:1200,xl:1536},nC={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${h0[e]}px)`},aN={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:h0[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ls(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||nC;return t.reduce((l,u,d)=>(l[o.up(o.keys[d])]=r(t[d]),l),{})}if(typeof t=="object"){const o=n.breakpoints||nC;return Object.keys(t).reduce((l,u)=>{if(eN(o.keys,u)){const d=tN(n.containerQueries?n:aN,u);d&&(l[d]=r(t[u],u))}else if(Object.keys(o.values||h0).includes(u)){const d=o.up(u);l[d]=r(t[u],u)}else{const d=u;l[d]=t[d]}return l},{})}return r(t)}function FE(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,s)=>{const o=e.up(s);return n[o]={},n},{}))||{}}function Ov(e,t){return e.reduce((r,n)=>{const s=r[n];return(!s||Object.keys(s).length===0)&&delete r[n],r},t)}function sN(e,...t){const r=FE(e),n=[r,...t].reduce((s,o)=>Ln(s,o),{});return Ov(Object.keys(r),n)}function iN(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((s,o)=>{o<e.length&&(r[s]=!0)}):n.forEach(s=>{e[s]!=null&&(r[s]=!0)}),r}function Nb({values:e,breakpoints:t,base:r}){const n=r||iN(e,t),s=Object.keys(n);if(s.length===0)return e;let o;return s.reduce((l,u,d)=>(Array.isArray(e)?(l[u]=e[d]!=null?e[d]:e[o],o=d):typeof e=="object"?(l[u]=e[u]!=null?e[u]:e[o],o=u):l[u]=e,l),{})}function Ee(e){if(typeof e!="string")throw new Error(Di(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Do(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((s,o)=>s&&s[o]?s[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,s)=>n&&n[s]!=null?n[s]:null,e)}function xg(e,t,r,n=r){let s;return typeof e=="function"?s=e(r):Array.isArray(e)?s=e[r]||n:s=Do(e,r)||n,t&&(s=t(s,n,e)),s}function pn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:s}=e,o=l=>{if(l[t]==null)return null;const u=l[t],d=l.theme,h=Do(d,n)||{};return Ls(l,u,m=>{let b=xg(h,s,m);return m===b&&typeof m=="string"&&(b=xg(h,s,`${t}${m==="default"?"":Ee(m)}`,m)),r===!1?b:{[r]:b}})};return o.propTypes={},o.filterProps=[t],o}function oN(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const lN={m:"margin",p:"padding"},cN={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aC={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uN=oN(e=>{if(e.length>2)if(aC[e])e=aC[e];else return[e];const[t,r]=e.split(""),n=lN[t],s=cN[r]||"";return Array.isArray(s)?s.map(o=>n+o):[n+s]}),lS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...lS,...cS];function Fh(e,t,r,n){const s=Do(e,t,!0)??r;return typeof s=="number"||typeof s=="string"?o=>typeof o=="string"?o:typeof s=="string"?s.startsWith("var(")&&o===0?0:s.startsWith("var(")&&o===1?s:`calc(${o} * ${s})`:s*o:Array.isArray(s)?o=>{if(typeof o=="string")return o;const l=Math.abs(o),u=s[l];return o>=0?u:typeof u=="number"?-u:typeof u=="string"&&u.startsWith("var(")?`calc(-1 * ${u})`:`-${u}`}:typeof s=="function"?s:()=>{}}function p0(e){return Fh(e,"spacing",8)}function jl(e,t){return typeof t=="string"||t==null?t:e(t)}function dN(e,t){return r=>e.reduce((n,s)=>(n[s]=jl(t,r),n),{})}function fN(e,t,r,n){if(!t.includes(r))return null;const s=uN(r),o=dN(s,n),l=e[r];return Ls(e,l,o)}function qE(e,t){const r=p0(e.theme);return Object.keys(e).map(n=>fN(e,t,n,r)).reduce(fh,{})}function nn(e){return qE(e,lS)}nn.propTypes={};nn.filterProps=lS;function an(e){return qE(e,cS)}an.propTypes={};an.filterProps=cS;function GE(e=8,t=p0({spacing:e})){if(e.mui)return e;const r=(...n)=>(n.length===0?[1]:n).map(o=>{const l=t(o);return typeof l=="number"?`${l}px`:l}).join(" ");return r.mui=!0,r}function m0(...e){const t=e.reduce((n,s)=>(s.filterProps.forEach(o=>{n[o]=s}),n),{}),r=n=>Object.keys(n).reduce((s,o)=>t[o]?fh(s,t[o](n)):s,{});return r.propTypes={},r.filterProps=e.reduce((n,s)=>n.concat(s.filterProps),[]),r}function fs(e){return typeof e!="number"?e:`${e}px solid`}function bs(e,t){return pn({prop:e,themeKey:"borders",transform:t})}const hN=bs("border",fs),pN=bs("borderTop",fs),mN=bs("borderRight",fs),gN=bs("borderBottom",fs),yN=bs("borderLeft",fs),bN=bs("borderColor"),vN=bs("borderTopColor"),SN=bs("borderRightColor"),xN=bs("borderBottomColor"),wN=bs("borderLeftColor"),CN=bs("outline",fs),$N=bs("outlineColor"),g0=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Fh(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:jl(t,n)});return Ls(e,e.borderRadius,r)}return null};g0.propTypes={};g0.filterProps=["borderRadius"];m0(hN,pN,mN,gN,yN,bN,vN,SN,xN,wN,g0,CN,$N);const y0=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Fh(e.theme,"spacing",8),r=n=>({gap:jl(t,n)});return Ls(e,e.gap,r)}return null};y0.propTypes={};y0.filterProps=["gap"];const b0=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Fh(e.theme,"spacing",8),r=n=>({columnGap:jl(t,n)});return Ls(e,e.columnGap,r)}return null};b0.propTypes={};b0.filterProps=["columnGap"];const v0=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Fh(e.theme,"spacing",8),r=n=>({rowGap:jl(t,n)});return Ls(e,e.rowGap,r)}return null};v0.propTypes={};v0.filterProps=["rowGap"];const kN=pn({prop:"gridColumn"}),EN=pn({prop:"gridRow"}),_N=pn({prop:"gridAutoFlow"}),TN=pn({prop:"gridAutoColumns"}),AN=pn({prop:"gridAutoRows"}),RN=pn({prop:"gridTemplateColumns"}),ON=pn({prop:"gridTemplateRows"}),MN=pn({prop:"gridTemplateAreas"}),NN=pn({prop:"gridArea"});m0(y0,b0,v0,kN,EN,_N,TN,AN,RN,ON,MN,NN);function Qc(e,t){return t==="grey"?t:e}const LN=pn({prop:"color",themeKey:"palette",transform:Qc}),PN=pn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qc}),IN=pn({prop:"backgroundColor",themeKey:"palette",transform:Qc});m0(LN,PN,IN);function Va(e){return e<=1&&e!==0?`${e*100}%`:e}const DN=pn({prop:"width",transform:Va}),uS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var s,o,l,u,d;const n=((l=(o=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:o.values)==null?void 0:l[r])||h0[r];return n?((d=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Va(r)}};return Ls(e,e.maxWidth,t)}return null};uS.filterProps=["maxWidth"];const zN=pn({prop:"minWidth",transform:Va}),jN=pn({prop:"height",transform:Va}),BN=pn({prop:"maxHeight",transform:Va}),UN=pn({prop:"minHeight",transform:Va});pn({prop:"size",cssProperty:"width",transform:Va});pn({prop:"size",cssProperty:"height",transform:Va});const HN=pn({prop:"boxSizing"});m0(DN,uS,zN,jN,BN,UN,HN);const qh={border:{themeKey:"borders",transform:fs},borderTop:{themeKey:"borders",transform:fs},borderRight:{themeKey:"borders",transform:fs},borderBottom:{themeKey:"borders",transform:fs},borderLeft:{themeKey:"borders",transform:fs},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:fs},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:g0},color:{themeKey:"palette",transform:Qc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qc},backgroundColor:{themeKey:"palette",transform:Qc},p:{style:an},pt:{style:an},pr:{style:an},pb:{style:an},pl:{style:an},px:{style:an},py:{style:an},padding:{style:an},paddingTop:{style:an},paddingRight:{style:an},paddingBottom:{style:an},paddingLeft:{style:an},paddingX:{style:an},paddingY:{style:an},paddingInline:{style:an},paddingInlineStart:{style:an},paddingInlineEnd:{style:an},paddingBlock:{style:an},paddingBlockStart:{style:an},paddingBlockEnd:{style:an},m:{style:nn},mt:{style:nn},mr:{style:nn},mb:{style:nn},ml:{style:nn},mx:{style:nn},my:{style:nn},margin:{style:nn},marginTop:{style:nn},marginRight:{style:nn},marginBottom:{style:nn},marginLeft:{style:nn},marginX:{style:nn},marginY:{style:nn},marginInline:{style:nn},marginInlineStart:{style:nn},marginInlineEnd:{style:nn},marginBlock:{style:nn},marginBlockStart:{style:nn},marginBlockEnd:{style:nn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:y0},rowGap:{style:v0},columnGap:{style:b0},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Va},maxWidth:{style:uS},minWidth:{transform:Va},height:{transform:Va},maxHeight:{transform:Va},minHeight:{transform:Va},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ZN(...e){const t=e.reduce((n,s)=>n.concat(Object.keys(s)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function VN(e,t){return typeof e=="function"?e(t):e}function FN(){function e(r,n,s,o){const l={[r]:n,theme:s},u=o[r];if(!u)return{[r]:n};const{cssProperty:d=r,themeKey:h,transform:p,style:m}=u;if(n==null)return null;if(h==="typography"&&n==="inherit")return{[r]:n};const b=Do(s,h)||{};return m?m(l):Ls(l,n,x=>{let C=xg(b,p,x);return x===C&&typeof x=="string"&&(C=xg(b,p,`${r}${x==="default"?"":Ee(x)}`,x)),d===!1?C:{[d]:C}})}function t(r){const{sx:n,theme:s={},nested:o}=r||{};if(!n)return null;const l=s.unstable_sxConfig??qh;function u(d){let h=d;if(typeof d=="function")h=d(s);else if(typeof d!="object")return d;if(!h)return null;const p=FE(s.breakpoints),m=Object.keys(p);let b=p;return Object.keys(h).forEach(S=>{const x=VN(h[S],s);if(x!=null)if(typeof x=="object")if(l[S])b=fh(b,e(S,x,s,l));else{const C=Ls({theme:s},x,$=>({[S]:$}));ZN(C,x)?b[S]=t({sx:x,theme:s,nested:!0}):b=fh(b,C)}else b=fh(b,e(S,x,s,l))}),!o&&s.modularCssLayers?{"@layer sx":rC(s,Ov(m,b))}:rC(s,Ov(m,b))}return Array.isArray(n)?n.map(u):u(n)}return t}const Vo=FN();Vo.filterProps=["sx"];function qN(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let s=r.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return r.palette.mode===e?t:{}}function Bd(e={},...t){const{breakpoints:r={},palette:n={},spacing:s,shape:o={},...l}=e,u=J7(r),d=GE(s);let h=Ln({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:d,shape:{...nN,...o}},l);return h=rN(h),h.applyStyles=qN,h=t.reduce((p,m)=>Ln(p,m),h),h.unstable_sxConfig={...qh,...l==null?void 0:l.unstable_sxConfig},h.unstable_sx=function(m){return Vo({sx:m,theme:this})},h}function GN(e){return Object.keys(e).length===0}function S0(e=null){const t=P.useContext(Zh);return!t||GN(t)?e:t}const KN=Bd();function Gh(e=KN){return S0(e)}function Lb(e){const t=Uo(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function KE({styles:e,themeId:t,defaultTheme:r={}}){const n=Gh(r),s=t&&n[t]||n;let o=typeof e=="function"?e(s):e;return s.modularCssLayers&&(Array.isArray(o)?o=o.map(l=>Lb(typeof l=="function"?l(s):l)):o=Lb(o)),B.jsx(UE,{styles:o})}const WN=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??qh;return Object.keys(e).forEach(s=>{r[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function x0(e){const{sx:t,...r}=e,{systemProps:n,otherProps:s}=WN(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...l)=>{const u=t(...l);return ai(u)?{...n,...u}:n}:o={...n,...t},{...s,sx:o}}const sC=e=>e,YN=()=>{let e=sC;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sC}}},WE=YN();function YE(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=YE(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Xe(){for(var e,t,r=0,n="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=YE(e))&&(n&&(n+=" "),n+=t);return n}function QN(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:s}=e,o=HE("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(Vo);return P.forwardRef(function(d,h){const p=Gh(r),{className:m,component:b="div",...S}=x0(d);return B.jsx(o,{as:b,ref:h,className:Xe(m,s?s(n):n),theme:t&&p[t]||p,...S})})}const XN={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ht(e,t,r="Mui"){const n=XN[t];return n?`${r}-${n}`:`${WE.generate(e)}-${t}`}function Zt(e,t,r="Mui"){const n={};return t.forEach(s=>{n[s]=Ht(e,s,r)}),n}function QE(e){const{variants:t,...r}=e,n={variants:t,style:Uo(r),isProcessed:!0};return n.style===r||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=Uo(s.style))}),n}const JN=Bd();function Pb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function vl(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function eL(e){return e?(t,r)=>r[e]:null}function tL(e,t,r){e.theme=nL(e.theme)?r:e.theme[t]||e.theme}function Qm(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(s=>Qm(e,s,r));if(Array.isArray(n==null?void 0:n.variants)){let s;if(n.isProcessed)s=r?vl(n.style,r):n.style;else{const{variants:o,...l}=n;s=r?vl(Uo(l),r):l}return XE(e,n.variants,[s],r)}return n!=null&&n.isProcessed?r?vl(Uo(n.style),r):n.style:r?vl(Uo(n),r):n}function XE(e,t,r=[],n=void 0){var o;let s;e:for(let l=0;l<t.length;l+=1){const u=t[l];if(typeof u.props=="function"){if(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),!u.props(s))continue}else for(const d in u.props)if(e[d]!==u.props[d]&&((o=e.ownerState)==null?void 0:o[d])!==u.props[d])continue e;typeof u.style=="function"?(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),r.push(n?vl(Uo(u.style(s)),n):u.style(s))):r.push(n?vl(Uo(u.style),n):u.style)}return r}function JE(e={}){const{themeId:t,defaultTheme:r=JN,rootShouldForwardProp:n=Pb,slotShouldForwardProp:s=Pb}=e;function o(u){tL(u,t,r)}return(u,d={})=>{W7(u,j=>j.filter(O=>O!==Vo));const{name:h,slot:p,skipVariantsResolver:m,skipSx:b,overridesResolver:S=eL(sL(p)),...x}=d,C=h&&h.startsWith("Mui")||p?"components":"custom",$=m!==void 0?m:p&&p!=="Root"&&p!=="root"||!1,_=b||!1;let M=Pb;p==="Root"||p==="root"?M=n:p?M=s:aL(u)&&(M=void 0);const T=HE(u,{shouldForwardProp:M,label:rL(),...x}),R=j=>{if(j.__emotion_real===j)return j;if(typeof j=="function")return function(N){return Qm(N,j,N.theme.modularCssLayers?C:void 0)};if(ai(j)){const O=QE(j);return function(z){return O.variants?Qm(z,O,z.theme.modularCssLayers?C:void 0):z.theme.modularCssLayers?vl(O.style,C):O.style}}return j},L=(...j)=>{const O=[],N=j.map(R),z=[];if(O.push(o),h&&S&&z.push(function(V){var ne,ee;const ae=(ee=(ne=V.theme.components)==null?void 0:ne[h])==null?void 0:ee.styleOverrides;if(!ae)return null;const Z={};for(const re in ae)Z[re]=Qm(V,ae[re],V.theme.modularCssLayers?"theme":void 0);return S(V,Z)}),h&&!$&&z.push(function(V){var Z,ne;const W=V.theme,ae=(ne=(Z=W==null?void 0:W.components)==null?void 0:Z[h])==null?void 0:ne.variants;return ae?XE(V,ae,[],V.theme.modularCssLayers?"theme":void 0):null}),_||z.push(Vo),Array.isArray(N[0])){const q=N.shift(),V=new Array(O.length).fill(""),W=new Array(z.length).fill("");let ae;ae=[...V,...q,...W],ae.raw=[...V,...q.raw,...W],O.unshift(ae)}const k=[...O,...N,...z],H=T(...k);return u.muiName&&(H.muiName=u.muiName),H};return T.withConfig&&(L.withConfig=T.withConfig),L}}function rL(e,t){return void 0}function nL(e){for(const t in e)return!1;return!0}function aL(e){return typeof e=="string"&&e.charCodeAt(0)>96}function sL(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const dS=JE();function Od(e,t,r=!1){const n={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const o=s;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const l=e[o],u=t[o];if(!u)n[o]=l||{};else if(!l)n[o]=u;else{n[o]={...u};for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const h=d;n[o][h]=Od(l[h],u[h],r)}}}else o==="className"&&r&&t.className?n.className=Xe(e==null?void 0:e.className,t==null?void 0:t.className):o==="style"&&r&&t.style?n.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:n[o]===void 0&&(n[o]=e[o])}return n}function e_(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Od(t.components[r].defaultProps,n)}function fS({props:e,name:t,defaultTheme:r,themeId:n}){let s=Gh(r);return n&&(s=s[n]||s),e_({theme:s,name:t,props:e})}const Ps=typeof window<"u"?P.useLayoutEffect:P.useEffect;function iL(e,t,r,n,s){const[o,l]=P.useState(()=>s&&r?r(e).matches:n?n(e).matches:t);return Ps(()=>{if(!r)return;const u=r(e),d=()=>{l(u.matches)};return d(),u.addEventListener("change",d),()=>{u.removeEventListener("change",d)}},[e,r]),o}const oL={...ug},t_=oL.useSyncExternalStore;function lL(e,t,r,n,s){const o=P.useCallback(()=>t,[t]),l=P.useMemo(()=>{if(s&&r)return()=>r(e).matches;if(n!==null){const{matches:p}=n(e);return()=>p}return o},[o,e,n,s,r]),[u,d]=P.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const p=r(e);return[()=>p.matches,m=>(p.addEventListener("change",m),()=>{p.removeEventListener("change",m)})]},[o,r,e]);return t_(d,u,l)}function r_(e={}){const{themeId:t}=e;return function(n,s={}){let o=S0();o&&t&&(o=o[t]||o);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:u=!1,matchMedia:d=l?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:p=!1}=e_({name:"MuiUseMediaQuery",props:s,theme:o});let m=typeof n=="function"?n(o):n;return m=m.replace(/^@media( ?)/m,""),m.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`)),(t_!==void 0?lL:iL)(m,u,d,h,p)}}r_();function cL(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function hS(e,t=0,r=1){return cL(e,t,r)}function uL(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,s)=>s<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Fo(e){if(e.type)return e;if(e.charAt(0)==="#")return Fo(uL(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Di(9,e));let n=e.substring(t+1,e.length-1),s;if(r==="color"){if(n=n.split(" "),s=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(Di(10,s))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:s}}const dL=e=>{const t=Fo(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},oh=(e,t)=>{try{return dL(e)}catch{return e}};function w0(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((s,o)=>o<3?parseInt(s,10):s):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function n_(e){e=Fo(e);const{values:t}=e,r=t[0],n=t[1]/100,s=t[2]/100,o=n*Math.min(s,1-s),l=(h,p=(h+r/30)%12)=>s-o*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",d.push(t[3])),w0({type:u,values:d})}function Mv(e){e=Fo(e);let t=e.type==="hsl"||e.type==="hsla"?Fo(n_(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function fL(e,t){const r=Mv(e),n=Mv(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Gt(e,t){return e=Fo(e),t=hS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,w0(e)}function Mm(e,t,r){try{return Gt(e,t)}catch{return e}}function pS(e,t){if(e=Fo(e),t=hS(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return w0(e)}function Rr(e,t,r){try{return pS(e,t)}catch{return e}}function mS(e,t){if(e=Fo(e),t=hS(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return w0(e)}function Or(e,t,r){try{return mS(e,t)}catch{return e}}function hL(e,t=.15){return Mv(e)>.5?pS(e,t):mS(e,t)}function Nm(e,t,r){try{return hL(e,t)}catch{return e}}const a_=P.createContext(null);function gS(){return P.useContext(a_)}const pL=typeof Symbol=="function"&&Symbol.for,mL=pL?Symbol.for("mui.nested"):"__THEME_NESTED__";function gL(e,t){return typeof t=="function"?t(e):{...e,...t}}function yL(e){const{children:t,theme:r}=e,n=gS(),s=P.useMemo(()=>{const o=n===null?{...r}:gL(n,r);return o!=null&&(o[mL]=n!==null),o},[r,n]);return B.jsx(a_.Provider,{value:s,children:t})}const s_=P.createContext();function bL({value:e,...t}){return B.jsx(s_.Provider,{value:e??!0,...t})}const i_=()=>P.useContext(s_)??!1,o_=P.createContext(void 0);function vL({value:e,children:t}){return B.jsx(o_.Provider,{value:e,children:t})}function SL(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const s=t.components[r];return s.defaultProps?Od(s.defaultProps,n,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?Od(s,n,t.components.mergeClassNameAndStyle):n}function xL({props:e,name:t}){const r=P.useContext(o_);return SL({props:e,name:t,theme:{components:r}})}let iC=0;function wL(e){const[t,r]=P.useState(e),n=e||t;return P.useEffect(()=>{t==null&&(iC+=1,r(`mui-${iC}`))},[t]),n}const CL={...ug},oC=CL.useId;function C0(e){if(oC!==void 0){const t=oC();return e??t}return wL(e)}function $L(e){const t=S0(),r=C0()||"",{modularCssLayers:n}=e;let s="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!n||t!==null?s="":typeof n=="string"?s=n.replace(/mui(?!\.)/g,s):s=`@layer ${s};`,Ps(()=>{var u,d;const o=document.querySelector("head");if(!o)return;const l=o.firstChild;if(s){if(l&&((u=l.hasAttribute)!=null&&u.call(l,"data-mui-layer-order"))&&l.getAttribute("data-mui-layer-order")===r)return;const h=document.createElement("style");h.setAttribute("data-mui-layer-order",r),h.textContent=s,o.prepend(h)}else(d=o.querySelector(`style[data-mui-layer-order="${r}"]`))==null||d.remove()},[s,r]),s?B.jsx(KE,{styles:s}):null}const lC={};function cC(e,t,r,n=!1){return P.useMemo(()=>{const s=e&&t[e]||t;if(typeof r=="function"){const o=r(s),l=e?{...t,[e]:o}:o;return n?()=>l:l}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}function l_(e){const{children:t,theme:r,themeId:n}=e,s=S0(lC),o=gS()||lC,l=cC(n,s,r),u=cC(n,o,r,!0),d=(n?l[n]:l).direction==="rtl",h=$L(l);return B.jsx(yL,{theme:u,children:B.jsx(Zh.Provider,{value:l,children:B.jsx(bL,{value:d,children:B.jsxs(vL,{value:n?l[n].components:l.components,children:[h,t]})})})})}const uC={theme:void 0};function kL(e){let t,r;return function(s){let o=t;return(o===void 0||s.theme!==r)&&(uC.theme=s.theme,o=QE(e(uC)),t=o,r=s.theme),o}}function EL(){}const _L=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let n;try{n=t.localStorage.getItem(e)}catch{}return n||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return EL;const n=s=>{const o=s.newValue;s.key===e&&r(o)};return t.addEventListener("storage",n),()=>{t.removeEventListener("storage",n)}}});function Ib(){}function dC(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function c_(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function TL(e){return c_(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function AL(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:s=[],modeStorageKey:o=X2,colorSchemeStorageKey:l=J2,storageWindow:u=typeof window>"u"?void 0:window,storageManager:d=_L,noSsr:h=!1}=e,p=s.join(","),m=s.length>1,b=P.useMemo(()=>d==null?void 0:d({key:o,storageWindow:u}),[d,o,u]),S=P.useMemo(()=>d==null?void 0:d({key:`${l}-light`,storageWindow:u}),[d,l,u]),x=P.useMemo(()=>d==null?void 0:d({key:`${l}-dark`,storageWindow:u}),[d,l,u]),[C,$]=P.useState(()=>{const N=(b==null?void 0:b.get(t))||t,z=(S==null?void 0:S.get(r))||r,k=(x==null?void 0:x.get(n))||n;return{mode:N,systemMode:dC(N),lightColorScheme:z,darkColorScheme:k}}),[_,M]=P.useState(h||!m);P.useEffect(()=>{M(!0)},[]);const T=TL(C),R=P.useCallback(N=>{$(z=>{if(N===z.mode)return z;const k=N??t;return b==null||b.set(k),{...z,mode:k,systemMode:dC(k)}})},[b,t]),L=P.useCallback(N=>{N?typeof N=="string"?N&&!p.includes(N)?console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`):$(z=>{const k={...z};return c_(z,H=>{H==="light"&&(S==null||S.set(N),k.lightColorScheme=N),H==="dark"&&(x==null||x.set(N),k.darkColorScheme=N)}),k}):$(z=>{const k={...z},H=N.light===null?r:N.light,q=N.dark===null?n:N.dark;return H&&(p.includes(H)?(k.lightColorScheme=H,S==null||S.set(H)):console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`)),q&&(p.includes(q)?(k.darkColorScheme=q,x==null||x.set(q)):console.error(`\`${q}\` does not exist in \`theme.colorSchemes\`.`)),k}):$(z=>(S==null||S.set(r),x==null||x.set(n),{...z,lightColorScheme:r,darkColorScheme:n}))},[p,S,x,r,n]),j=P.useCallback(N=>{C.mode==="system"&&$(z=>{const k=N!=null&&N.matches?"dark":"light";return z.systemMode===k?z:{...z,systemMode:k}})},[C.mode]),O=P.useRef(j);return O.current=j,P.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const N=(...k)=>O.current(...k),z=window.matchMedia("(prefers-color-scheme: dark)");return z.addListener(N),N(z),()=>{z.removeListener(N)}},[m]),P.useEffect(()=>{if(m){const N=(b==null?void 0:b.subscribe(H=>{(!H||["light","dark","system"].includes(H))&&R(H||t)}))||Ib,z=(S==null?void 0:S.subscribe(H=>{(!H||p.match(H))&&L({light:H})}))||Ib,k=(x==null?void 0:x.subscribe(H=>{(!H||p.match(H))&&L({dark:H})}))||Ib;return()=>{N(),z(),k()}}},[L,R,p,t,u,m,b,S,x]),{...C,mode:_?C.mode:void 0,systemMode:_?C.systemMode:void 0,colorScheme:_?T:void 0,setMode:R,setColorScheme:L}}const RL="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function OL(e){const{themeId:t,theme:r={},modeStorageKey:n=X2,colorSchemeStorageKey:s=J2,disableTransitionOnChange:o=!1,defaultColorScheme:l,resolveTheme:u}=e,d={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=P.createContext(void 0),p=()=>P.useContext(h)||d,m={},b={};function S(_){var ir,It,hr,Xt;const{children:M,theme:T,modeStorageKey:R=n,colorSchemeStorageKey:L=s,disableTransitionOnChange:j=o,storageManager:O,storageWindow:N=typeof window>"u"?void 0:window,documentNode:z=typeof document>"u"?void 0:document,colorSchemeNode:k=typeof document>"u"?void 0:document.documentElement,disableNestedContext:H=!1,disableStyleSheetGeneration:q=!1,defaultMode:V="system",forceThemeRerender:W=!1,noSsr:ae}=_,Z=P.useRef(!1),ne=gS(),ee=P.useContext(h),re=!!ee&&!H,F=P.useMemo(()=>T||(typeof r=="function"?r():r),[T]),J=F[t],fe=J||F,{colorSchemes:ce=m,components:Ce=b,cssVarPrefix:Se}=fe,me=Object.keys(ce).filter(Dt=>!!ce[Dt]).join(","),He=P.useMemo(()=>me.split(","),[me]),Oe=typeof l=="string"?l:l.light,Pe=typeof l=="string"?l:l.dark,Ne=ce[Oe]&&ce[Pe]?V:((It=(ir=ce[fe.defaultColorScheme])==null?void 0:ir.palette)==null?void 0:It.mode)||((hr=fe.palette)==null?void 0:hr.mode),{mode:qe,setMode:Ve,systemMode:ht,lightColorScheme:ze,darkColorScheme:rt,colorScheme:ct,setColorScheme:nt}=AL({supportedColorSchemes:He,defaultLightColorScheme:Oe,defaultDarkColorScheme:Pe,modeStorageKey:R,colorSchemeStorageKey:L,defaultMode:Ne,storageManager:O,storageWindow:N,noSsr:ae});let bt=qe,Tt=ct;re&&(bt=ee.mode,Tt=ee.colorScheme);let Kt=Tt||fe.defaultColorScheme;fe.vars&&!W&&(Kt=fe.defaultColorScheme);const vt=P.useMemo(()=>{var or;const Dt=((or=fe.generateThemeVars)==null?void 0:or.call(fe))||fe.vars,Ye={...fe,components:Ce,colorSchemes:ce,cssVarPrefix:Se,vars:Dt};if(typeof Ye.generateSpacing=="function"&&(Ye.spacing=Ye.generateSpacing()),Kt){const $t=ce[Kt];$t&&typeof $t=="object"&&Object.keys($t).forEach(St=>{$t[St]&&typeof $t[St]=="object"?Ye[St]={...Ye[St],...$t[St]}:Ye[St]=$t[St]})}return u?u(Ye):Ye},[fe,Kt,Ce,ce,Se]),_e=fe.colorSchemeSelector;Ps(()=>{if(Tt&&k&&_e&&_e!=="media"){const Dt=_e;let Ye=_e;if(Dt==="class"&&(Ye=".%s"),Dt==="data"&&(Ye="[data-%s]"),Dt!=null&&Dt.startsWith("data-")&&!Dt.includes("%s")&&(Ye=`[${Dt}="%s"]`),Ye.startsWith("."))k.classList.remove(...He.map(or=>Ye.substring(1).replace("%s",or))),k.classList.add(Ye.substring(1).replace("%s",Tt));else{const or=Ye.replace("%s",Tt).match(/\[([^\]]+)\]/);if(or){const[$t,St]=or[1].split("=");St||He.forEach(pr=>{k.removeAttribute($t.replace(Tt,pr))}),k.setAttribute($t,St?St.replace(/"|'/g,""):"")}else k.setAttribute(Ye,Tt)}}},[Tt,_e,k,He]),P.useEffect(()=>{let Dt;if(j&&Z.current&&z){const Ye=z.createElement("style");Ye.appendChild(z.createTextNode(RL)),z.head.appendChild(Ye),window.getComputedStyle(z.body),Dt=setTimeout(()=>{z.head.removeChild(Ye)},1)}return()=>{clearTimeout(Dt)}},[Tt,j,z]),P.useEffect(()=>(Z.current=!0,()=>{Z.current=!1}),[]);const pt=P.useMemo(()=>({allColorSchemes:He,colorScheme:Tt,darkColorScheme:rt,lightColorScheme:ze,mode:bt,setColorScheme:nt,setMode:Ve,systemMode:ht}),[He,Tt,rt,ze,bt,nt,Ve,ht,vt.colorSchemeSelector]);let Pt=!0;(q||fe.cssVariables===!1||re&&(ne==null?void 0:ne.cssVarPrefix)===Se)&&(Pt=!1);const Qt=B.jsxs(P.Fragment,{children:[B.jsx(l_,{themeId:J?t:void 0,theme:vt,children:M}),Pt&&B.jsx(UE,{styles:((Xt=vt.generateStyleSheets)==null?void 0:Xt.call(vt))||[]})]});return re?Qt:B.jsx(h.Provider,{value:pt,children:Qt})}const x=typeof l=="string"?l:l.light,C=typeof l=="string"?l:l.dark;return{CssVarsProvider:S,useColorScheme:p,getInitColorSchemeScript:_=>_E({colorSchemeStorageKey:s,defaultLightColorScheme:x,defaultDarkColorScheme:C,modeStorageKey:n,..._})}}function ML(e=""){function t(...n){if(!n.length)return"";const s=n[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...n.slice(1))})`:`, ${s}`}return(n,...s)=>`var(--${e?`${e}-`:""}${n}${t(...s)})`}const fC=(e,t,r,n=[])=>{let s=e;t.forEach((o,l)=>{l===t.length-1?Array.isArray(s)?s[Number(o)]=r:s&&typeof s=="object"&&(s[o]=r):s&&typeof s=="object"&&(s[o]||(s[o]=n.includes(o)?[]:{}),s=s[o])})},NL=(e,t,r)=>{function n(s,o=[],l=[]){Object.entries(s).forEach(([u,d])=>{(!r||r&&!r([...o,u]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?n(d,[...o,u],Array.isArray(d)?[...l,u]:l):t([...o,u],d,l))})}n(e)},LL=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Db(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},s={},o={},l={};return NL(e,(u,d,h)=>{if((typeof d=="string"||typeof d=="number")&&(!n||!n(u,d))){const p=`--${r?`${r}-`:""}${u.join("-")}`,m=LL(u,d);Object.assign(s,{[p]:m}),fC(o,u,`var(${p})`,h),fC(l,u,`var(${p}, ${m})`,h)}},u=>u[0]==="vars"),{css:s,vars:o,varsWithDefaults:l}}function PL(e,t={}){const{getSelector:r=$,disableCssColorScheme:n,colorSchemeSelector:s}=t,{colorSchemes:o={},components:l,defaultColorScheme:u="light",...d}=e,{vars:h,css:p,varsWithDefaults:m}=Db(d,t);let b=m;const S={},{[u]:x,...C}=o;if(Object.entries(C||{}).forEach(([T,R])=>{const{vars:L,css:j,varsWithDefaults:O}=Db(R,t);b=Ln(b,O),S[T]={css:j,vars:L}}),x){const{css:T,vars:R,varsWithDefaults:L}=Db(x,t);b=Ln(b,L),S[u]={css:T,vars:R}}function $(T,R){var j,O;let L=s;if(s==="class"&&(L=".%s"),s==="data"&&(L="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(L=`[${s}="%s"]`),T){if(L==="media")return e.defaultColorScheme===T?":root":{[`@media (prefers-color-scheme: ${((O=(j=o[T])==null?void 0:j.palette)==null?void 0:O.mode)||T})`]:{":root":R}};if(L)return e.defaultColorScheme===T?`:root, ${L.replace("%s",String(T))}`:L.replace("%s",String(T))}return":root"}return{vars:b,generateThemeVars:()=>{let T={...h};return Object.entries(S).forEach(([,{vars:R}])=>{T=Ln(T,R)}),T},generateStyleSheets:()=>{var N,z;const T=[],R=e.defaultColorScheme||"light";function L(k,H){Object.keys(H).length&&T.push(typeof k=="string"?{[k]:{...H}}:k)}L(r(void 0,{...p}),p);const{[R]:j,...O}=S;if(j){const{css:k}=j,H=(z=(N=o[R])==null?void 0:N.palette)==null?void 0:z.mode,q=!n&&H?{colorScheme:H,...k}:{...k};L(r(R,{...q}),q)}return Object.entries(O).forEach(([k,{css:H}])=>{var W,ae;const q=(ae=(W=o[k])==null?void 0:W.palette)==null?void 0:ae.mode,V=!n&&q?{colorScheme:q,...H}:{...H};L(r(k,{...V}),V)}),T}}}function IL(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function Vt(e,t,r=void 0){const n={};for(const s in e){const o=e[s];let l="",u=!0;for(let d=0;d<o.length;d+=1){const h=o[d];h&&(l+=(u===!0?"":" ")+t(h),u=!1,r&&r[h]&&(l+=" "+r[h]))}n[s]=l}return n}const DL=Bd(),zL=dS("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ee(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),jL=e=>fS({props:e,name:"MuiContainer",defaultTheme:DL}),BL=(e,t)=>{const r=d=>Ht(t,d),{classes:n,fixed:s,disableGutters:o,maxWidth:l}=e,u={root:["root",l&&`maxWidth${Ee(String(l))}`,s&&"fixed",o&&"disableGutters"]};return Vt(u,r,n)};function UL(e={}){const{createStyledComponent:t=zL,useThemeProps:r=jL,componentName:n="MuiContainer"}=e,s=t(({theme:l,ownerState:u})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!u.disableGutters&&{paddingLeft:l.spacing(2),paddingRight:l.spacing(2),[l.breakpoints.up("sm")]:{paddingLeft:l.spacing(3),paddingRight:l.spacing(3)}}}),({theme:l,ownerState:u})=>u.fixed&&Object.keys(l.breakpoints.values).reduce((d,h)=>{const p=h,m=l.breakpoints.values[p];return m!==0&&(d[l.breakpoints.up(p)]={maxWidth:`${m}${l.breakpoints.unit}`}),d},{}),({theme:l,ownerState:u})=>({...u.maxWidth==="xs"&&{[l.breakpoints.up("xs")]:{maxWidth:Math.max(l.breakpoints.values.xs,444)}},...u.maxWidth&&u.maxWidth!=="xs"&&{[l.breakpoints.up(u.maxWidth)]:{maxWidth:`${l.breakpoints.values[u.maxWidth]}${l.breakpoints.unit}`}}}));return P.forwardRef(function(u,d){const h=r(u),{className:p,component:m="div",disableGutters:b=!1,fixed:S=!1,maxWidth:x="lg",classes:C,...$}=h,_={...h,component:m,disableGutters:b,fixed:S,maxWidth:x},M=BL(_,n);return B.jsx(s,{as:m,ownerState:_,className:Xe(M.root,p),ref:d,...$})})}function Xm(e,t){var r,n,s;return P.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(n=(r=e.type)==null?void 0:r._payload)==null?void 0:n.value)==null?void 0:s.muiName))!==-1}const HL=(e,t)=>e.filter(r=>t.includes(r)),Ud=(e,t,r)=>{const n=e.keys[0];Array.isArray(t)?t.forEach((s,o)=>{r((l,u)=>{o<=e.keys.length-1&&(o===0?Object.assign(l,u):l[e.up(e.keys[o])]=u)},s)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:HL(e.keys,Object.keys(t))).forEach(o=>{if(e.keys.includes(o)){const l=t[o];l!==void 0&&r((u,d)=>{n===o?Object.assign(u,d):u[e.up(o)]=d},l)}}):(typeof t=="number"||typeof t=="string")&&r((s,o)=>{Object.assign(s,o)},t)};function wg(e){return`--Grid-${e}Spacing`}function $0(e){return`--Grid-parent-${e}Spacing`}const hC="--Grid-columns",Xc="--Grid-parent-columns",ZL=({theme:e,ownerState:t})=>{const r={};return Ud(e.breakpoints,t.size,(n,s)=>{let o={};s==="grow"&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),s==="auto"&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof s=="number"&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${s} / var(${Xc}) - (var(${Xc}) - ${s}) * (var(${$0("column")}) / var(${Xc})))`}),n(r,o)}),r},VL=({theme:e,ownerState:t})=>{const r={};return Ud(e.breakpoints,t.offset,(n,s)=>{let o={};s==="auto"&&(o={marginLeft:"auto"}),typeof s=="number"&&(o={marginLeft:s===0?"0px":`calc(100% * ${s} / var(${Xc}) + var(${$0("column")}) * ${s} / var(${Xc}))`}),n(r,o)}),r},FL=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={[hC]:12};return Ud(e.breakpoints,t.columns,(n,s)=>{const o=s??12;n(r,{[hC]:o,"> *":{[Xc]:o}})}),r},qL=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return Ud(e.breakpoints,t.rowSpacing,(n,s)=>{var l;const o=typeof s=="string"?s:(l=e.spacing)==null?void 0:l.call(e,s);n(r,{[wg("row")]:o,"> *":{[$0("row")]:o}})}),r},GL=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return Ud(e.breakpoints,t.columnSpacing,(n,s)=>{var l;const o=typeof s=="string"?s:(l=e.spacing)==null?void 0:l.call(e,s);n(r,{[wg("column")]:o,"> *":{[$0("column")]:o}})}),r},KL=({theme:e,ownerState:t})=>{if(!t.container)return{};const r={};return Ud(e.breakpoints,t.direction,(n,s)=>{n(r,{flexDirection:s})}),r},WL=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${wg("row")}) var(${wg("column")})`}}),YL=e=>{const t=[];return Object.entries(e).forEach(([r,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${r}-${String(n)}`)}),t},QL=(e,t="xs")=>{function r(n){return n===void 0?!1:typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number"&&n>0}if(r(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const n=[];return Object.entries(e).forEach(([s,o])=>{r(o)&&n.push(`spacing-${s}-${String(o)}`)}),n}return[]},XL=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,r])=>`direction-${t}-${r}`):[`direction-xs-${String(e)}`];function JL(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(r=>{e[r]!==void 0&&delete e[r]})}const eP=Bd(),tP=dS("div",{name:"MuiGrid",slot:"Root"});function rP(e){return fS({props:e,name:"MuiGrid",defaultTheme:eP})}function nP(e={}){const{createStyledComponent:t=tP,useThemeProps:r=rP,useTheme:n=Gh,componentName:s="MuiGrid"}=e,o=(h,p)=>{const{container:m,direction:b,spacing:S,wrap:x,size:C}=h,$={root:["root",m&&"container",x!=="wrap"&&`wrap-xs-${String(x)}`,...XL(b),...YL(C),...m?QL(S,p.breakpoints.keys[0]):[]]};return Vt($,_=>Ht(s,_),{})};function l(h,p,m=()=>!0){const b={};return h===null||(Array.isArray(h)?h.forEach((S,x)=>{S!==null&&m(S)&&p.keys[x]&&(b[p.keys[x]]=S)}):typeof h=="object"?Object.keys(h).forEach(S=>{const x=h[S];x!=null&&m(x)&&(b[S]=x)}):b[p.keys[0]]=h),b}const u=t(FL,GL,qL,ZL,KL,WL,VL),d=P.forwardRef(function(p,m){const b=n(),S=r(p),x=x0(S);JL(x,b.breakpoints);const{className:C,children:$,columns:_=12,container:M=!1,component:T="div",direction:R="row",wrap:L="wrap",size:j={},offset:O={},spacing:N=0,rowSpacing:z=N,columnSpacing:k=N,unstable_level:H=0,...q}=x,V=l(j,b.breakpoints,J=>J!==!1),W=l(O,b.breakpoints),ae=p.columns??(H?void 0:_),Z=p.spacing??(H?void 0:N),ne=p.rowSpacing??p.spacing??(H?void 0:z),ee=p.columnSpacing??p.spacing??(H?void 0:k),re={...x,level:H,columns:ae,container:M,direction:R,wrap:L,spacing:Z,rowSpacing:ne,columnSpacing:ee,size:V,offset:W},F=o(re,b);return B.jsx(u,{ref:m,as:T,ownerState:re,className:Xe(F.root,C),...q,children:P.Children.map($,J=>{var fe;return P.isValidElement(J)&&Xm(J,["Grid"])&&M&&J.props.container?P.cloneElement(J,{unstable_level:((fe=J.props)==null?void 0:fe.unstable_level)??H+1}):J})})});return d.muiName="Grid",d}const aP=Bd(),sP=dS("div",{name:"MuiStack",slot:"Root"});function iP(e){return fS({props:e,name:"MuiStack",defaultTheme:aP})}function oP(e,t){const r=P.Children.toArray(e).filter(Boolean);return r.reduce((n,s,o)=>(n.push(s),o<r.length-1&&n.push(P.cloneElement(t,{key:`separator-${o}`})),n),[])}const lP=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],cP=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...Ls({theme:t},Nb({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=p0(t),s=Object.keys(t.breakpoints.values).reduce((d,h)=>((typeof e.spacing=="object"&&e.spacing[h]!=null||typeof e.direction=="object"&&e.direction[h]!=null)&&(d[h]=!0),d),{}),o=Nb({values:e.direction,base:s}),l=Nb({values:e.spacing,base:s});typeof o=="object"&&Object.keys(o).forEach((d,h,p)=>{if(!o[d]){const b=h>0?o[p[h-1]]:"column";o[d]=b}}),r=Ln(r,Ls({theme:t},l,(d,h)=>e.useFlexGap?{gap:jl(n,d)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${lP(h?o[h]:e.direction)}`]:jl(n,d)}}))}return r=sN(t.breakpoints,r),r};function uP(e={}){const{createStyledComponent:t=sP,useThemeProps:r=iP,componentName:n="MuiStack"}=e,s=()=>Vt({root:["root"]},d=>Ht(n,d),{}),o=t(cP);return P.forwardRef(function(d,h){const p=r(d),m=x0(p),{component:b="div",direction:S="column",spacing:x=0,divider:C,children:$,className:_,useFlexGap:M=!1,...T}=m,R={direction:S,spacing:x,useFlexGap:M},L=s();return B.jsx(o,{as:b,ownerState:R,ref:h,className:Xe(L.root,_),...T,children:C?oP($,C):$})})}function u_(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ch.white,default:Ch.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const dP=u_();function d_(){return{text:{primary:Ch.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ch.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const pC=d_();function mC(e,t,r,n){const s=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=mS(e.main,s):t==="dark"&&(e.dark=pS(e.main,o)))}function fP(e="light"){return e==="dark"?{main:Rc[200],light:Rc[50],dark:Rc[400]}:{main:Rc[700],light:Rc[400],dark:Rc[800]}}function hP(e="light"){return e==="dark"?{main:Ac[200],light:Ac[50],dark:Ac[400]}:{main:Ac[500],light:Ac[300],dark:Ac[700]}}function pP(e="light"){return e==="dark"?{main:Tc[500],light:Tc[300],dark:Tc[700]}:{main:Tc[700],light:Tc[400],dark:Tc[800]}}function mP(e="light"){return e==="dark"?{main:Oc[400],light:Oc[300],dark:Oc[700]}:{main:Oc[700],light:Oc[500],dark:Oc[900]}}function gP(e="light"){return e==="dark"?{main:Mc[400],light:Mc[300],dark:Mc[700]}:{main:Mc[800],light:Mc[500],dark:Mc[900]}}function yP(e="light"){return e==="dark"?{main:Zf[400],light:Zf[300],dark:Zf[700]}:{main:"#ed6c02",light:Zf[500],dark:Zf[900]}}function yS(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...s}=e,o=e.primary||fP(t),l=e.secondary||hP(t),u=e.error||pP(t),d=e.info||mP(t),h=e.success||gP(t),p=e.warning||yP(t);function m(C){return fL(C,pC.text.primary)>=r?pC.text.primary:dP.text.primary}const b=({color:C,name:$,mainShade:_=500,lightShade:M=300,darkShade:T=700})=>{if(C={...C},!C.main&&C[_]&&(C.main=C[_]),!C.hasOwnProperty("main"))throw new Error(Di(11,$?` (${$})`:"",_));if(typeof C.main!="string")throw new Error(Di(12,$?` (${$})`:"",JSON.stringify(C.main)));return mC(C,"light",M,n),mC(C,"dark",T,n),C.contrastText||(C.contrastText=m(C.main)),C};let S;return t==="light"?S=u_():t==="dark"&&(S=d_()),Ln({common:{...Ch},mode:t,primary:b({color:o,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:u,name:"error"}),warning:b({color:p,name:"warning"}),info:b({color:d,name:"info"}),success:b({color:h,name:"success"}),grey:YM,contrastThreshold:r,getContrastText:m,augmentColor:b,tonalOffset:n,...S},s)}function bP(e){const t={};return Object.entries(e).forEach(n=>{const[s,o]=n;typeof o=="object"&&(t[s]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function vP(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function SP(e){return Math.round(e*1e5)/1e5}const gC={textTransform:"uppercase"},yC='"Roboto", "Helvetica", "Arial", sans-serif';function f_(e,t){const{fontFamily:r=yC,fontSize:n=14,fontWeightLight:s=300,fontWeightRegular:o=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:h,pxToRem:p,...m}=typeof t=="function"?t(e):t,b=n/14,S=p||($=>`${$/d*b}rem`),x=($,_,M,T,R)=>({fontFamily:r,fontWeight:$,fontSize:S(_),lineHeight:M,...r===yC?{letterSpacing:`${SP(T/_)}em`}:{},...R,...h}),C={h1:x(s,96,1.167,-1.5),h2:x(s,60,1.2,-.5),h3:x(o,48,1.167,0),h4:x(o,34,1.235,.25),h5:x(o,24,1.334,0),h6:x(l,20,1.6,.15),subtitle1:x(o,16,1.75,.15),subtitle2:x(l,14,1.57,.1),body1:x(o,16,1.5,.15),body2:x(o,14,1.43,.15),button:x(l,14,1.75,.4,gC),caption:x(o,12,1.66,.4),overline:x(o,12,2.66,1,gC),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ln({htmlFontSize:d,pxToRem:S,fontFamily:r,fontSize:n,fontWeightLight:s,fontWeightRegular:o,fontWeightMedium:l,fontWeightBold:u,...C},m,{clone:!1})}const xP=.2,wP=.14,CP=.12;function Gr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${xP})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wP})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${CP})`].join(",")}const $P=["none",Gr(0,2,1,-1,0,1,1,0,0,1,3,0),Gr(0,3,1,-2,0,2,2,0,0,1,5,0),Gr(0,3,3,-2,0,3,4,0,0,1,8,0),Gr(0,2,4,-1,0,4,5,0,0,1,10,0),Gr(0,3,5,-1,0,5,8,0,0,1,14,0),Gr(0,3,5,-1,0,6,10,0,0,1,18,0),Gr(0,4,5,-2,0,7,10,1,0,2,16,1),Gr(0,5,5,-3,0,8,10,1,0,3,14,2),Gr(0,5,6,-3,0,9,12,1,0,3,16,2),Gr(0,6,6,-3,0,10,14,1,0,4,18,3),Gr(0,6,7,-4,0,11,15,1,0,4,20,3),Gr(0,7,8,-4,0,12,17,2,0,5,22,4),Gr(0,7,8,-4,0,13,19,2,0,5,24,4),Gr(0,7,9,-4,0,14,21,2,0,5,26,4),Gr(0,8,9,-5,0,15,22,2,0,6,28,5),Gr(0,8,10,-5,0,16,24,2,0,6,30,5),Gr(0,8,11,-5,0,17,26,2,0,6,32,5),Gr(0,9,11,-5,0,18,28,2,0,7,34,6),Gr(0,9,12,-6,0,19,29,2,0,7,36,6),Gr(0,10,13,-6,0,20,31,3,0,8,38,7),Gr(0,10,13,-6,0,21,33,3,0,8,40,7),Gr(0,10,14,-6,0,22,35,3,0,8,42,7),Gr(0,11,14,-7,0,23,36,3,0,9,44,8),Gr(0,11,15,-7,0,24,38,3,0,9,46,8)],kP={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},EP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bC(e){return`${Math.round(e)}ms`}function _P(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function TP(e){const t={...kP,...e.easing},r={...EP,...e.duration};return{getAutoHeightDuration:_P,create:(s=["all"],o={})=>{const{duration:l=r.standard,easing:u=t.easeInOut,delay:d=0,...h}=o;return(Array.isArray(s)?s:[s]).map(p=>`${p} ${typeof l=="string"?l:bC(l)} ${u} ${typeof d=="string"?d:bC(d)}`).join(",")},...e,easing:t,duration:r}}const AP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function RP(e){return ai(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function h_(e={}){const t={...e};function r(n){const s=Object.entries(n);for(let o=0;o<s.length;o++){const[l,u]=s[o];!RP(u)||l.startsWith("unstable_")?delete n[l]:ai(u)&&(n[l]={...u},r(n[l]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

const theme = ${JSON.stringify(t,null,2)};

theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});

export default theme;`}function Nv(e={},...t){const{breakpoints:r,mixins:n={},spacing:s,palette:o={},transitions:l={},typography:u={},shape:d,...h}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Di(20));const p=yS(o),m=Bd(e);let b=Ln(m,{mixins:vP(m.breakpoints,n),palette:p,shadows:$P.slice(),typography:f_(p,u),transitions:TP(l),zIndex:{...AP}});return b=Ln(b,h),b=t.reduce((S,x)=>Ln(S,x),b),b.unstable_sxConfig={...qh,...h==null?void 0:h.unstable_sxConfig},b.unstable_sx=function(x){return Vo({sx:x,theme:this})},b.toRuntimeSource=h_,b}function Lv(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const OP=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Lv(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function p_(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function m_(e){return e==="dark"?OP:[]}function MP(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...s}=e,o=yS(t);return{palette:o,opacity:{...p_(o.mode),...r},overlays:n||m_(o.mode),...s}}function NP(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const LP=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],PP=e=>(t,r)=>{const n=e.rootSelector||":root",s=e.colorSchemeSelector;let o=s;if(s==="class"&&(o=".%s"),s==="data"&&(o="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(o=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return LP(e.cssVarPrefix).forEach(u=>{l[u]=r[u],delete r[u]}),o==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:l}}:o?{[o.replace("%s",t)]:l,[`${n}, ${o.replace("%s",t)}`]:r}:{[n]:{...r,...l}}}if(o&&o!=="media")return`${n}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(o)return o.replace("%s",String(t))}return n};function IP(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function pe(e,t,r){!e[t]&&r&&(e[t]=r)}function lh(e){return typeof e!="string"||!e.startsWith("hsl")?e:n_(e)}function xi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=oh(lh(e[t])))}function DP(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ks=e=>{try{return e()}catch{}},zP=(e="mui")=>ML(e);function zb(e,t,r,n){if(!t)return;t=t===!0?{}:t;const s=n==="dark"?"dark":"light";if(!r){e[n]=MP({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:o,...l}=Nv({...r,palette:{mode:s,...t==null?void 0:t.palette}});return e[n]={...t,palette:o,opacity:{...p_(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||m_(s)},l}function jP(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:s=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:l=NP,colorSchemeSelector:u=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...h}=e,p=Object.keys(r)[0],m=n||(r.light&&p!=="light"?"light":p),b=zP(o),{[m]:S,light:x,dark:C,...$}=r,_={...$};let M=S;if((m==="dark"&&!("dark"in r)||m==="light"&&!("light"in r))&&(M=!0),!M)throw new Error(Di(21,m));const T=zb(_,M,h,m);x&&!_.light&&zb(_,x,void 0,"light"),C&&!_.dark&&zb(_,C,void 0,"dark");let R={defaultColorScheme:m,...T,cssVarPrefix:o,colorSchemeSelector:u,rootSelector:d,getCssVar:b,colorSchemes:_,font:{...bP(T.typography),...T.font},spacing:DP(h.spacing)};Object.keys(R.colorSchemes).forEach(z=>{const k=R.colorSchemes[z].palette,H=q=>{const V=q.split("-"),W=V[1],ae=V[2];return b(q,k[W][ae])};if(k.mode==="light"&&(pe(k.common,"background","#fff"),pe(k.common,"onBackground","#000")),k.mode==="dark"&&(pe(k.common,"background","#000"),pe(k.common,"onBackground","#fff")),IP(k,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),k.mode==="light"){pe(k.Alert,"errorColor",Rr(k.error.light,.6)),pe(k.Alert,"infoColor",Rr(k.info.light,.6)),pe(k.Alert,"successColor",Rr(k.success.light,.6)),pe(k.Alert,"warningColor",Rr(k.warning.light,.6)),pe(k.Alert,"errorFilledBg",H("palette-error-main")),pe(k.Alert,"infoFilledBg",H("palette-info-main")),pe(k.Alert,"successFilledBg",H("palette-success-main")),pe(k.Alert,"warningFilledBg",H("palette-warning-main")),pe(k.Alert,"errorFilledColor",Ks(()=>k.getContrastText(k.error.main))),pe(k.Alert,"infoFilledColor",Ks(()=>k.getContrastText(k.info.main))),pe(k.Alert,"successFilledColor",Ks(()=>k.getContrastText(k.success.main))),pe(k.Alert,"warningFilledColor",Ks(()=>k.getContrastText(k.warning.main))),pe(k.Alert,"errorStandardBg",Or(k.error.light,.9)),pe(k.Alert,"infoStandardBg",Or(k.info.light,.9)),pe(k.Alert,"successStandardBg",Or(k.success.light,.9)),pe(k.Alert,"warningStandardBg",Or(k.warning.light,.9)),pe(k.Alert,"errorIconColor",H("palette-error-main")),pe(k.Alert,"infoIconColor",H("palette-info-main")),pe(k.Alert,"successIconColor",H("palette-success-main")),pe(k.Alert,"warningIconColor",H("palette-warning-main")),pe(k.AppBar,"defaultBg",H("palette-grey-100")),pe(k.Avatar,"defaultBg",H("palette-grey-400")),pe(k.Button,"inheritContainedBg",H("palette-grey-300")),pe(k.Button,"inheritContainedHoverBg",H("palette-grey-A100")),pe(k.Chip,"defaultBorder",H("palette-grey-400")),pe(k.Chip,"defaultAvatarColor",H("palette-grey-700")),pe(k.Chip,"defaultIconColor",H("palette-grey-700")),pe(k.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),pe(k.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),pe(k.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),pe(k.LinearProgress,"primaryBg",Or(k.primary.main,.62)),pe(k.LinearProgress,"secondaryBg",Or(k.secondary.main,.62)),pe(k.LinearProgress,"errorBg",Or(k.error.main,.62)),pe(k.LinearProgress,"infoBg",Or(k.info.main,.62)),pe(k.LinearProgress,"successBg",Or(k.success.main,.62)),pe(k.LinearProgress,"warningBg",Or(k.warning.main,.62)),pe(k.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.11)`),pe(k.Slider,"primaryTrack",Or(k.primary.main,.62)),pe(k.Slider,"secondaryTrack",Or(k.secondary.main,.62)),pe(k.Slider,"errorTrack",Or(k.error.main,.62)),pe(k.Slider,"infoTrack",Or(k.info.main,.62)),pe(k.Slider,"successTrack",Or(k.success.main,.62)),pe(k.Slider,"warningTrack",Or(k.warning.main,.62));const q=Nm(k.background.default,.8);pe(k.SnackbarContent,"bg",q),pe(k.SnackbarContent,"color",Ks(()=>k.getContrastText(q))),pe(k.SpeedDialAction,"fabHoverBg",Nm(k.background.paper,.15)),pe(k.StepConnector,"border",H("palette-grey-400")),pe(k.StepContent,"border",H("palette-grey-400")),pe(k.Switch,"defaultColor",H("palette-common-white")),pe(k.Switch,"defaultDisabledColor",H("palette-grey-100")),pe(k.Switch,"primaryDisabledColor",Or(k.primary.main,.62)),pe(k.Switch,"secondaryDisabledColor",Or(k.secondary.main,.62)),pe(k.Switch,"errorDisabledColor",Or(k.error.main,.62)),pe(k.Switch,"infoDisabledColor",Or(k.info.main,.62)),pe(k.Switch,"successDisabledColor",Or(k.success.main,.62)),pe(k.Switch,"warningDisabledColor",Or(k.warning.main,.62)),pe(k.TableCell,"border",Or(Mm(k.divider,1),.88)),pe(k.Tooltip,"bg",Mm(k.grey[700],.92))}if(k.mode==="dark"){pe(k.Alert,"errorColor",Or(k.error.light,.6)),pe(k.Alert,"infoColor",Or(k.info.light,.6)),pe(k.Alert,"successColor",Or(k.success.light,.6)),pe(k.Alert,"warningColor",Or(k.warning.light,.6)),pe(k.Alert,"errorFilledBg",H("palette-error-dark")),pe(k.Alert,"infoFilledBg",H("palette-info-dark")),pe(k.Alert,"successFilledBg",H("palette-success-dark")),pe(k.Alert,"warningFilledBg",H("palette-warning-dark")),pe(k.Alert,"errorFilledColor",Ks(()=>k.getContrastText(k.error.dark))),pe(k.Alert,"infoFilledColor",Ks(()=>k.getContrastText(k.info.dark))),pe(k.Alert,"successFilledColor",Ks(()=>k.getContrastText(k.success.dark))),pe(k.Alert,"warningFilledColor",Ks(()=>k.getContrastText(k.warning.dark))),pe(k.Alert,"errorStandardBg",Rr(k.error.light,.9)),pe(k.Alert,"infoStandardBg",Rr(k.info.light,.9)),pe(k.Alert,"successStandardBg",Rr(k.success.light,.9)),pe(k.Alert,"warningStandardBg",Rr(k.warning.light,.9)),pe(k.Alert,"errorIconColor",H("palette-error-main")),pe(k.Alert,"infoIconColor",H("palette-info-main")),pe(k.Alert,"successIconColor",H("palette-success-main")),pe(k.Alert,"warningIconColor",H("palette-warning-main")),pe(k.AppBar,"defaultBg",H("palette-grey-900")),pe(k.AppBar,"darkBg",H("palette-background-paper")),pe(k.AppBar,"darkColor",H("palette-text-primary")),pe(k.Avatar,"defaultBg",H("palette-grey-600")),pe(k.Button,"inheritContainedBg",H("palette-grey-800")),pe(k.Button,"inheritContainedHoverBg",H("palette-grey-700")),pe(k.Chip,"defaultBorder",H("palette-grey-700")),pe(k.Chip,"defaultAvatarColor",H("palette-grey-300")),pe(k.Chip,"defaultIconColor",H("palette-grey-300")),pe(k.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),pe(k.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),pe(k.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),pe(k.LinearProgress,"primaryBg",Rr(k.primary.main,.5)),pe(k.LinearProgress,"secondaryBg",Rr(k.secondary.main,.5)),pe(k.LinearProgress,"errorBg",Rr(k.error.main,.5)),pe(k.LinearProgress,"infoBg",Rr(k.info.main,.5)),pe(k.LinearProgress,"successBg",Rr(k.success.main,.5)),pe(k.LinearProgress,"warningBg",Rr(k.warning.main,.5)),pe(k.Skeleton,"bg",`rgba(${H("palette-text-primaryChannel")} / 0.13)`),pe(k.Slider,"primaryTrack",Rr(k.primary.main,.5)),pe(k.Slider,"secondaryTrack",Rr(k.secondary.main,.5)),pe(k.Slider,"errorTrack",Rr(k.error.main,.5)),pe(k.Slider,"infoTrack",Rr(k.info.main,.5)),pe(k.Slider,"successTrack",Rr(k.success.main,.5)),pe(k.Slider,"warningTrack",Rr(k.warning.main,.5));const q=Nm(k.background.default,.98);pe(k.SnackbarContent,"bg",q),pe(k.SnackbarContent,"color",Ks(()=>k.getContrastText(q))),pe(k.SpeedDialAction,"fabHoverBg",Nm(k.background.paper,.15)),pe(k.StepConnector,"border",H("palette-grey-600")),pe(k.StepContent,"border",H("palette-grey-600")),pe(k.Switch,"defaultColor",H("palette-grey-300")),pe(k.Switch,"defaultDisabledColor",H("palette-grey-600")),pe(k.Switch,"primaryDisabledColor",Rr(k.primary.main,.55)),pe(k.Switch,"secondaryDisabledColor",Rr(k.secondary.main,.55)),pe(k.Switch,"errorDisabledColor",Rr(k.error.main,.55)),pe(k.Switch,"infoDisabledColor",Rr(k.info.main,.55)),pe(k.Switch,"successDisabledColor",Rr(k.success.main,.55)),pe(k.Switch,"warningDisabledColor",Rr(k.warning.main,.55)),pe(k.TableCell,"border",Rr(Mm(k.divider,1),.68)),pe(k.Tooltip,"bg",Mm(k.grey[700],.92))}xi(k.background,"default"),xi(k.background,"paper"),xi(k.common,"background"),xi(k.common,"onBackground"),xi(k,"divider"),Object.keys(k).forEach(q=>{const V=k[q];q!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&pe(k[q],"mainChannel",oh(lh(V.main))),V.light&&pe(k[q],"lightChannel",oh(lh(V.light))),V.dark&&pe(k[q],"darkChannel",oh(lh(V.dark))),V.contrastText&&pe(k[q],"contrastTextChannel",oh(lh(V.contrastText))),q==="text"&&(xi(k[q],"primary"),xi(k[q],"secondary")),q==="action"&&(V.active&&xi(k[q],"active"),V.selected&&xi(k[q],"selected")))})}),R=t.reduce((z,k)=>Ln(z,k),R);const L={prefix:o,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:PP(R)},{vars:j,generateThemeVars:O,generateStyleSheets:N}=PL(R,L);return R.vars=j,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([z,k])=>{R[z]=k}),R.generateThemeVars=O,R.generateStyleSheets=N,R.generateSpacing=function(){return GE(h.spacing,p0(this))},R.getColorSchemeSelector=IL(u),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=l,R.unstable_sxConfig={...qh,...h==null?void 0:h.unstable_sxConfig},R.unstable_sx=function(k){return Vo({sx:k,theme:this})},R.toRuntimeSource=h_,R}function vC(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:yS({...r===!0?{}:r.palette,mode:t})})}function k0(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:s=r?void 0:{light:!0},defaultColorScheme:o=r==null?void 0:r.mode,...l}=e,u=o||"light",d=s==null?void 0:s[u],h={...s,...r?{[u]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Nv(e,...t);let p=r;"palette"in e||h[u]&&(h[u]!==!0?p=h[u].palette:u==="dark"&&(p={mode:"dark"}));const m=Nv({...e,palette:p},...t);return m.defaultColorScheme=u,m.colorSchemes=h,m.palette.mode==="light"&&(m.colorSchemes.light={...h.light!==!0&&h.light,palette:m.palette},vC(m,"dark",h.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:m.palette},vC(m,"light",h.light)),m}return!r&&!("light"in h)&&u==="light"&&(h.light=!0),jP({...l,colorSchemes:h,defaultColorScheme:u,...typeof n!="boolean"&&n},...t)}const bS=k0();function oi(){const e=Gh(bS);return e[Ns]||e}function g_(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ga=e=>g_(e)&&e!=="classes",Ue=JE({themeId:Ns,defaultTheme:bS,rootShouldForwardProp:Ga});function BP({theme:e,...t}){const r=Ns in e?e[Ns]:void 0;return B.jsx(l_,{...t,themeId:r?Ns:void 0,theme:r||e})}const{CssVarsProvider:UP,useColorScheme:E0}=OL({themeId:Ns,theme:()=>k0({cssVariables:!0}),colorSchemeStorageKey:Ri.colorSchemeStorageKey,modeStorageKey:Ri.modeStorageKey,defaultColorScheme:{light:Ri.defaultLightColorScheme,dark:Ri.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:f_(e.palette,e.typography)};return t.unstable_sx=function(n){return Vo({sx:n,theme:this})},t}}),HP=UP;function ZP({theme:e,...t}){const r=P.useMemo(()=>{if(typeof e=="function")return e;const n=Ns in e?e[Ns]:e;return"colorSchemes"in n?null:"vars"in n?e:{...e,vars:null}},[e]);return r?B.jsx(BP,{theme:r,...t}):B.jsx(HP,{theme:e,...t})}function SC(...e){return e.reduce((t,r)=>r==null?t:function(...s){t.apply(this,s),r.apply(this,s)},()=>{})}function VP(e){return B.jsx(KE,{...e,defaultTheme:bS,themeId:Ns})}function vS(e){return function(r){return B.jsx(VP,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function FP(){return x0}const rr=kL;function Ft(e){return xL(e)}function qP(e){return Ht("MuiSvgIcon",e)}Zt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const GP=e=>{const{color:t,fontSize:r,classes:n}=e,s={root:["root",t!=="inherit"&&`color${Ee(t)}`,`fontSize${Ee(r)}`]};return Vt(s,qP,n)},KP=Ue("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ee(r.color)}`],t[`fontSize${Ee(r.fontSize)}`]]}})(rr(({theme:e})=>{var t,r,n,s,o,l,u,d,h,p,m,b,S,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:C=>!C.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:l.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((p=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:p.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,C])=>C&&C.main).map(([C])=>{var $,_;return{props:{color:C},style:{color:(_=($=(e.vars??e).palette)==null?void 0:$[C])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(b=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:b.active}},{props:{color:"disabled"},style:{color:(x=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:x.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Cg=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiSvgIcon"}),{children:s,className:o,color:l="inherit",component:u="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:p=!1,titleAccess:m,viewBox:b="0 0 24 24",...S}=n,x=P.isValidElement(s)&&s.type==="svg",C={...n,color:l,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:b,hasSvgAsChild:x},$={};p||($.viewBox=b);const _=GP(C);return B.jsxs(KP,{as:u,className:Xe(_.root,o),focusable:"false",color:h,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...$,...S,...x&&s.props,ownerState:C,children:[x?s.props.children:s,m?B.jsx("title",{children:m}):null]})});Cg.muiName="SvgIcon";function oa(e,t){function r(n,s){return B.jsx(Cg,{"data-testid":void 0,ref:s,...n,children:e})}return r.muiName=Cg.muiName,P.memo(P.forwardRef(r))}function SS(e,t=166){let r;function n(...s){const o=()=>{e.apply(this,s)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function Is(e){return e&&e.ownerDocument||document}function Ds(e){return Is(e).defaultView||window}function xC(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function wC(e){const{controlled:t,default:r,name:n,state:s="value"}=e,{current:o}=P.useRef(t!==void 0),[l,u]=P.useState(r),d=o?t:l,h=P.useCallback(p=>{o||u(p)},[]);return[d,h]}function Nl(e){const t=P.useRef(e);return Ps(()=>{t.current=e}),P.useRef((...r)=>(0,t.current)(...r)).current}function Kn(...e){const t=P.useRef(void 0),r=P.useCallback(n=>{const s=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const l=o,u=l(n);return typeof u=="function"?u:()=>{l(null)}}return o.current=n,()=>{o.current=null}});return()=>{s.forEach(o=>o==null?void 0:o())}},e);return P.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function WP(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function y_(e,t){if(!e)return t;function r(l,u){const d={};return Object.keys(u).forEach(h=>{WP(h,u[h])&&typeof l[h]=="function"&&(d[h]=(...p)=>{l[h](...p),u[h](...p)})}),d}if(typeof e=="function"||typeof t=="function")return l=>{const u=typeof t=="function"?t(l):t,d=typeof e=="function"?e({...l,...u}):e,h=Xe(l==null?void 0:l.className,u==null?void 0:u.className,d==null?void 0:d.className),p=r(d,u);return{...u,...d,...p,...!!h&&{className:h},...(u==null?void 0:u.style)&&(d==null?void 0:d.style)&&{style:{...u.style,...d.style}},...(u==null?void 0:u.sx)&&(d==null?void 0:d.sx)&&{sx:[...Array.isArray(u.sx)?u.sx:[u.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const n=t,s=r(e,n),o=Xe(n==null?void 0:n.className,e==null?void 0:e.className);return{...t,...e,...s,...!!o&&{className:o},...(n==null?void 0:n.style)&&(e==null?void 0:e.style)&&{style:{...n.style,...e.style}},...(n==null?void 0:n.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function b_(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Pv(e,t){return Pv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Pv(e,t)}function v_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pv(e,t)}const CC={disabled:!1},$g=kn.createContext(null);var YP=function(t){return t.scrollTop},ch="unmounted",yl="exited",bl="entering",Dc="entered",Iv="exiting",zs=function(e){v_(t,e);function t(n,s){var o;o=e.call(this,n,s)||this;var l=s,u=l&&!l.isMounting?n.enter:n.appear,d;return o.appearStatus=null,n.in?u?(d=yl,o.appearStatus=bl):d=Dc:n.unmountOnExit||n.mountOnEnter?d=ch:d=yl,o.state={status:d},o.nextCallback=null,o}t.getDerivedStateFromProps=function(s,o){var l=s.in;return l&&o.status===ch?{status:yl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(s){var o=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==bl&&l!==Dc&&(o=bl):(l===bl||l===Dc)&&(o=Iv)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var s=this.props.timeout,o,l,u;return o=l=u=s,s!=null&&typeof s!="number"&&(o=s.exit,l=s.enter,u=s.appear!==void 0?s.appear:l),{exit:o,enter:l,appear:u}},r.updateStatus=function(s,o){if(s===void 0&&(s=!1),o!==null)if(this.cancelNextCallback(),o===bl){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Am.findDOMNode(this);l&&YP(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yl&&this.setState({status:ch})},r.performEnter=function(s){var o=this,l=this.props.enter,u=this.context?this.context.isMounting:s,d=this.props.nodeRef?[u]:[Am.findDOMNode(this),u],h=d[0],p=d[1],m=this.getTimeouts(),b=u?m.appear:m.enter;if(!s&&!l||CC.disabled){this.safeSetState({status:Dc},function(){o.props.onEntered(h)});return}this.props.onEnter(h,p),this.safeSetState({status:bl},function(){o.props.onEntering(h,p),o.onTransitionEnd(b,function(){o.safeSetState({status:Dc},function(){o.props.onEntered(h,p)})})})},r.performExit=function(){var s=this,o=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:Am.findDOMNode(this);if(!o||CC.disabled){this.safeSetState({status:yl},function(){s.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Iv},function(){s.props.onExiting(u),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:yl},function(){s.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(s,o){o=this.setNextCallback(o),this.setState(s,o)},r.setNextCallback=function(s){var o=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,o.nextCallback=null,s(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(s,o){this.setNextCallback(o);var l=this.props.nodeRef?this.props.nodeRef.current:Am.findDOMNode(this),u=s==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=d[0],p=d[1];this.props.addEndListener(h,p)}s!=null&&setTimeout(this.nextCallback,s)},r.render=function(){var s=this.state.status;if(s===ch)return null;var o=this.props,l=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var u=b_(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return kn.createElement($g.Provider,{value:null},typeof l=="function"?l(s,u):kn.cloneElement(kn.Children.only(l),u))},t}(kn.Component);zs.contextType=$g;zs.propTypes={};function Nc(){}zs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nc,onEntering:Nc,onEntered:Nc,onExit:Nc,onExiting:Nc,onExited:Nc};zs.UNMOUNTED=ch;zs.EXITED=yl;zs.ENTERING=bl;zs.ENTERED=Dc;zs.EXITING=Iv;function QP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xS(e,t){var r=function(o){return t&&P.isValidElement(o)?t(o):o},n=Object.create(null);return e&&P.Children.map(e,function(s){return s}).forEach(function(s){n[s.key]=r(s)}),n}function XP(e,t){e=e||{},t=t||{};function r(p){return p in t?t[p]:e[p]}var n=Object.create(null),s=[];for(var o in e)o in t?s.length&&(n[o]=s,s=[]):s.push(o);var l,u={};for(var d in t){if(n[d])for(l=0;l<n[d].length;l++){var h=n[d][l];u[n[d][l]]=r(h)}u[d]=r(d)}for(l=0;l<s.length;l++)u[s[l]]=r(s[l]);return u}function Sl(e,t,r){return r[t]!=null?r[t]:e.props[t]}function JP(e,t){return xS(e.children,function(r){return P.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Sl(r,"appear",e),enter:Sl(r,"enter",e),exit:Sl(r,"exit",e)})})}function eI(e,t,r){var n=xS(e.children),s=XP(t,n);return Object.keys(s).forEach(function(o){var l=s[o];if(P.isValidElement(l)){var u=o in t,d=o in n,h=t[o],p=P.isValidElement(h)&&!h.props.in;d&&(!u||p)?s[o]=P.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Sl(l,"exit",e),enter:Sl(l,"enter",e)}):!d&&u&&!p?s[o]=P.cloneElement(l,{in:!1}):d&&u&&P.isValidElement(h)&&(s[o]=P.cloneElement(l,{onExited:r.bind(null,l),in:h.props.in,exit:Sl(l,"exit",e),enter:Sl(l,"enter",e)}))}}),s}var tI=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},rI={component:"div",childFactory:function(t){return t}},wS=function(e){v_(t,e);function t(n,s){var o;o=e.call(this,n,s)||this;var l=o.handleExited.bind(QP(o));return o.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},o}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,o){var l=o.children,u=o.handleExited,d=o.firstRender;return{children:d?JP(s,u):eI(s,l,u),firstRender:!1}},r.handleExited=function(s,o){var l=xS(this.props.children);s.key in l||(s.props.onExited&&s.props.onExited(o),this.mounted&&this.setState(function(u){var d=vg({},u.children);return delete d[s.key],{children:d}}))},r.render=function(){var s=this.props,o=s.component,l=s.childFactory,u=b_(s,["component","childFactory"]),d=this.state.contextValue,h=tI(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,o===null?kn.createElement($g.Provider,{value:d},h):kn.createElement($g.Provider,{value:d},kn.createElement(o,u,h))},t}(kn.Component);wS.propTypes={};wS.defaultProps=rI;const $C={};function S_(e,t){const r=P.useRef($C);return r.current===$C&&(r.current=e(t)),r}const nI=[];function aI(e){P.useEffect(e,nI)}class CS{constructor(){Te(this,"currentId",null);Te(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Te(this,"disposeEffect",()=>this.clear)}static create(){return new CS}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function x_(){const e=S_(CS.create).current;return aI(e.disposeEffect),e}const $S=e=>e.scrollTop;function Md(e,t){const{timeout:r,easing:n,style:s={}}=e;return{duration:s.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:s.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:s.transitionDelay}}function sI(e){return Ht("MuiPaper",e)}Zt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const iI=e=>{const{square:t,elevation:r,variant:n,classes:s}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Vt(o,sI,s)},oI=Ue("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(rr(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Kh=P.forwardRef(function(t,r){var S;const n=Ft({props:t,name:"MuiPaper"}),s=oi(),{className:o,component:l="div",elevation:u=1,square:d=!1,variant:h="elevation",...p}=n,m={...n,component:l,elevation:u,square:d,variant:h},b=iI(m);return B.jsx(oI,{as:l,ownerState:m,className:Xe(b.root,o),ref:r,...p,style:{...h==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[u],...s.vars&&{"--Paper-overlay":(S=s.vars.overlays)==null?void 0:S[u]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Gt("#fff",Lv(u))}, ${Gt("#fff",Lv(u))})`}},...p.style}})});function lI(e){return typeof e=="string"}function w_(e,t,r){return e===void 0||lI(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function C_(e,t,r){return typeof e=="function"?e(t,r):e}function $_(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function kC(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function k_(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:s,className:o}=e;if(!t){const S=Xe(r==null?void 0:r.className,o,s==null?void 0:s.className,n==null?void 0:n.className),x={...r==null?void 0:r.style,...s==null?void 0:s.style,...n==null?void 0:n.style},C={...r,...s,...n};return S.length>0&&(C.className=S),Object.keys(x).length>0&&(C.style=x),{props:C,internalRef:void 0}}const l=$_({...s,...n}),u=kC(n),d=kC(s),h=t(l),p=Xe(h==null?void 0:h.className,r==null?void 0:r.className,o,s==null?void 0:s.className,n==null?void 0:n.className),m={...h==null?void 0:h.style,...r==null?void 0:r.style,...s==null?void 0:s.style,...n==null?void 0:n.style},b={...h,...r,...d,...u};return p.length>0&&(b.className=p),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:h.ref}}function Nn(e,t){const{className:r,elementType:n,ownerState:s,externalForwardedProps:o,internalForwardedProps:l,shouldForwardComponentProp:u=!1,...d}=t,{component:h,slots:p={[e]:void 0},slotProps:m={[e]:void 0},...b}=o,S=p[e]||n,x=C_(m[e],s),{props:{component:C,...$},internalRef:_}=k_({className:r,...d,externalForwardedProps:e==="root"?b:void 0,externalSlotProps:x}),M=Kn(_,x==null?void 0:x.ref,t.ref),T=e==="root"?C||h:C,R=w_(S,{...e==="root"&&!h&&!p[e]&&l,...e!=="root"&&!p[e]&&l,...$,...T&&!u&&{as:T},...T&&u&&{component:T},ref:M},s);return[S,R]}function kg(e){try{return e.matches(":focus-visible")}catch{}return!1}class Eg{constructor(){Te(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Eg}static use(){const t=S_(Eg.create).current,[r,n]=P.useState(!1);return t.shouldMount=r,t.setShouldMount=n,P.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=uI(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function cI(){return Eg.use()}function uI(){let e,t;const r=new Promise((n,s)=>{e=n,t=s});return r.resolve=e,r.reject=t,r}function dI(e){const{className:t,classes:r,pulsate:n=!1,rippleX:s,rippleY:o,rippleSize:l,in:u,onExited:d,timeout:h}=e,[p,m]=P.useState(!1),b=Xe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),S={width:l,height:l,top:-(l/2)+o,left:-(l/2)+s},x=Xe(r.child,p&&r.childLeaving,n&&r.childPulsate);return!u&&!p&&m(!0),P.useEffect(()=>{if(!u&&d!=null){const C=setTimeout(d,h);return()=>{clearTimeout(C)}}},[d,u,h]),B.jsx("span",{className:b,style:S,children:B.jsx("span",{className:x})})}const cs=Zt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Dv=550,fI=80,hI=Vh`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`,pI=Vh`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`,mI=Vh`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`,gI=Ue("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yI=Ue(dI,{name:"MuiTouchRipple",slot:"Ripple"})`
  opacity: 0;
  position: absolute;

  &.${cs.rippleVisible} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${hI};
    animation-duration: ${Dv}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  &.${cs.ripplePulsate} {
    animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
  }

  & .${cs.child} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${cs.childLeaving} {
    opacity: 0;
    animation-name: ${pI};
    animation-duration: ${Dv}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  & .${cs.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${mI};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,bI=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:o={},className:l,...u}=n,[d,h]=P.useState([]),p=P.useRef(0),m=P.useRef(null);P.useEffect(()=>{m.current&&(m.current(),m.current=null)},[d]);const b=P.useRef(!1),S=x_(),x=P.useRef(null),C=P.useRef(null),$=P.useCallback(R=>{const{pulsate:L,rippleX:j,rippleY:O,rippleSize:N,cb:z}=R;h(k=>[...k,B.jsx(yI,{classes:{ripple:Xe(o.ripple,cs.ripple),rippleVisible:Xe(o.rippleVisible,cs.rippleVisible),ripplePulsate:Xe(o.ripplePulsate,cs.ripplePulsate),child:Xe(o.child,cs.child),childLeaving:Xe(o.childLeaving,cs.childLeaving),childPulsate:Xe(o.childPulsate,cs.childPulsate)},timeout:Dv,pulsate:L,rippleX:j,rippleY:O,rippleSize:N},p.current)]),p.current+=1,m.current=z},[o]),_=P.useCallback((R={},L={},j=()=>{})=>{const{pulsate:O=!1,center:N=s||L.pulsate,fakeElement:z=!1}=L;if((R==null?void 0:R.type)==="mousedown"&&b.current){b.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(b.current=!0);const k=z?null:C.current,H=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let q,V,W;if(N||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)q=Math.round(H.width/2),V=Math.round(H.height/2);else{const{clientX:ae,clientY:Z}=R.touches&&R.touches.length>0?R.touches[0]:R;q=Math.round(ae-H.left),V=Math.round(Z-H.top)}if(N)W=Math.sqrt((2*H.width**2+H.height**2)/3),W%2===0&&(W+=1);else{const ae=Math.max(Math.abs((k?k.clientWidth:0)-q),q)*2+2,Z=Math.max(Math.abs((k?k.clientHeight:0)-V),V)*2+2;W=Math.sqrt(ae**2+Z**2)}R!=null&&R.touches?x.current===null&&(x.current=()=>{$({pulsate:O,rippleX:q,rippleY:V,rippleSize:W,cb:j})},S.start(fI,()=>{x.current&&(x.current(),x.current=null)})):$({pulsate:O,rippleX:q,rippleY:V,rippleSize:W,cb:j})},[s,$,S]),M=P.useCallback(()=>{_({},{pulsate:!0})},[_]),T=P.useCallback((R,L)=>{if(S.clear(),(R==null?void 0:R.type)==="touchend"&&x.current){x.current(),x.current=null,S.start(0,()=>{T(R,L)});return}x.current=null,h(j=>j.length>0?j.slice(1):j),m.current=L},[S]);return P.useImperativeHandle(r,()=>({pulsate:M,start:_,stop:T}),[M,_,T]),B.jsx(gI,{className:Xe(cs.root,o.root,l),ref:C,...u,children:B.jsx(wS,{component:null,exit:!0,children:d})})});function vI(e){return Ht("MuiButtonBase",e)}const SI=Zt("MuiButtonBase",["root","disabled","focusVisible"]),xI=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:s}=e,l=Vt({root:["root",t&&"disabled",r&&"focusVisible"]},vI,s);return r&&n&&(l.root+=` ${n}`),l},wI=Ue("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${SI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nd=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:o=!1,children:l,className:u,component:d="button",disabled:h=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:b=!1,focusVisibleClassName:S,LinkComponent:x="a",onBlur:C,onClick:$,onContextMenu:_,onDragLeave:M,onFocus:T,onFocusVisible:R,onKeyDown:L,onKeyUp:j,onMouseDown:O,onMouseLeave:N,onMouseUp:z,onTouchEnd:k,onTouchMove:H,onTouchStart:q,tabIndex:V=0,TouchRippleProps:W,touchRippleRef:ae,type:Z,...ne}=n,ee=P.useRef(null),re=cI(),F=Kn(re.ref,ae),[J,fe]=P.useState(!1);h&&J&&fe(!1),P.useImperativeHandle(s,()=>({focusVisible:()=>{fe(!0),ee.current.focus()}}),[]);const ce=re.shouldMount&&!p&&!h;P.useEffect(()=>{J&&b&&!p&&re.pulsate()},[p,b,J,re]);const Ce=wi(re,"start",O,m),Se=wi(re,"stop",_,m),me=wi(re,"stop",M,m),He=wi(re,"stop",z,m),Oe=wi(re,"stop",_e=>{J&&_e.preventDefault(),N&&N(_e)},m),Pe=wi(re,"start",q,m),Ne=wi(re,"stop",k,m),qe=wi(re,"stop",H,m),Ve=wi(re,"stop",_e=>{kg(_e.target)||fe(!1),C&&C(_e)},!1),ht=Nl(_e=>{ee.current||(ee.current=_e.currentTarget),kg(_e.target)&&(fe(!0),R&&R(_e)),T&&T(_e)}),ze=()=>{const _e=ee.current;return d&&d!=="button"&&!(_e.tagName==="A"&&_e.href)},rt=Nl(_e=>{b&&!_e.repeat&&J&&_e.key===" "&&re.stop(_e,()=>{re.start(_e)}),_e.target===_e.currentTarget&&ze()&&_e.key===" "&&_e.preventDefault(),L&&L(_e),_e.target===_e.currentTarget&&ze()&&_e.key==="Enter"&&!h&&(_e.preventDefault(),$&&$(_e))}),ct=Nl(_e=>{b&&_e.key===" "&&J&&!_e.defaultPrevented&&re.stop(_e,()=>{re.pulsate(_e)}),j&&j(_e),$&&_e.target===_e.currentTarget&&ze()&&_e.key===" "&&!_e.defaultPrevented&&$(_e)});let nt=d;nt==="button"&&(ne.href||ne.to)&&(nt=x);const bt={};nt==="button"?(bt.type=Z===void 0?"button":Z,bt.disabled=h):(!ne.href&&!ne.to&&(bt.role="button"),h&&(bt["aria-disabled"]=h));const Tt=Kn(r,ee),Kt={...n,centerRipple:o,component:d,disabled:h,disableRipple:p,disableTouchRipple:m,focusRipple:b,tabIndex:V,focusVisible:J},vt=xI(Kt);return B.jsxs(wI,{as:nt,className:Xe(vt.root,u),ownerState:Kt,onBlur:Ve,onClick:$,onContextMenu:Se,onFocus:ht,onKeyDown:rt,onKeyUp:ct,onMouseDown:Ce,onMouseLeave:Oe,onMouseUp:He,onDragLeave:me,onTouchEnd:Ne,onTouchMove:qe,onTouchStart:Pe,ref:Tt,tabIndex:h?-1:V,type:Z,...bt,...ne,children:[l,ce?B.jsx(bI,{ref:F,center:o,...W}):null]})});function wi(e,t,r,n=!1){return Nl(s=>(r&&r(s),n||e[t](s),!0))}function CI(e){return typeof e.main=="string"}function $I(e,t=[]){if(!CI(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Gn(e=[]){return([,t])=>t&&$I(t,e)}function kI(e){return Ht("MuiCircularProgress",e)}Zt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _o=44,zv=Vh`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`,jv=Vh`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,EI=typeof zv!="string"?oS`
        animation: ${zv} 1.4s linear infinite;
      `:null,_I=typeof jv!="string"?oS`
        animation: ${jv} 1.4s ease-in-out infinite;
      `:null,TI=e=>{const{classes:t,variant:r,color:n,disableShrink:s}=e,o={root:["root",r,`color${Ee(n)}`],svg:["svg"],circle:["circle",`circle${Ee(r)}`,s&&"circleDisableShrink"]};return Vt(o,kI,t)},AI=Ue("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Ee(r.color)}`]]}})(rr(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:EI||{animation:`${zv} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),RI=Ue("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),OI=Ue("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Ee(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(rr(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:_I||{animation:`${jv} 1.4s ease-in-out infinite`}}]}))),kS=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiCircularProgress"}),{className:s,color:o="primary",disableShrink:l=!1,size:u=40,style:d,thickness:h=3.6,value:p=0,variant:m="indeterminate",...b}=n,S={...n,color:o,disableShrink:l,size:u,thickness:h,value:p,variant:m},x=TI(S),C={},$={},_={};if(m==="determinate"){const M=2*Math.PI*((_o-h)/2);C.strokeDasharray=M.toFixed(3),_["aria-valuenow"]=Math.round(p),C.strokeDashoffset=`${((100-p)/100*M).toFixed(3)}px`,$.transform="rotate(-90deg)"}return B.jsx(AI,{className:Xe(x.root,s),style:{width:u,height:u,...$,...d},ownerState:S,ref:r,role:"progressbar",..._,...b,children:B.jsx(RI,{className:x.svg,ownerState:S,viewBox:`${_o/2} ${_o/2} ${_o} ${_o}`,children:B.jsx(OI,{className:x.circle,style:C,ownerState:S,cx:_o,cy:_o,r:(_o-h)/2,fill:"none",strokeWidth:h})})})});function MI(e){return Ht("MuiIconButton",e)}const EC=Zt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),NI=e=>{const{classes:t,disabled:r,color:n,edge:s,size:o,loading:l}=e,u={root:["root",l&&"loading",r&&"disabled",n!=="default"&&`color${Ee(n)}`,s&&`edge${Ee(s)}`,`size${Ee(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Vt(u,MI,t)},LI=Ue(Nd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Ee(r.color)}`],r.edge&&t[`edge${Ee(r.edge)}`],t[`size${Ee(r.size)}`]]}})(rr(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),rr(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${EC.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${EC.loading}`]:{color:"transparent"}}))),PI=Ue("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),E_=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiIconButton"}),{edge:s=!1,children:o,className:l,color:u="default",disabled:d=!1,disableFocusRipple:h=!1,size:p="medium",id:m,loading:b=null,loadingIndicator:S,...x}=n,C=C0(m),$=S??B.jsx(kS,{"aria-labelledby":C,color:"inherit",size:16}),_={...n,edge:s,color:u,disabled:d,disableFocusRipple:h,loading:b,loadingIndicator:$,size:p},M=NI(_);return B.jsxs(LI,{id:b?C:m,className:Xe(M.root,l),centerRipple:!0,focusRipple:!h,disabled:d||b,ref:r,...x,ownerState:_,children:[typeof b=="boolean"&&B.jsx("span",{className:M.loadingWrapper,style:{display:"contents"},children:B.jsx(PI,{className:M.loadingIndicator,ownerState:_,children:b&&$})}),o]})});function II(e){return Ht("MuiTypography",e)}Zt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const DI={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},zI=FP(),jI=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:s,variant:o,classes:l}=e,u={root:["root",o,e.align!=="inherit"&&`align${Ee(t)}`,r&&"gutterBottom",n&&"noWrap",s&&"paragraph"]};return Vt(u,II,l)},BI=Ue("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Ee(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(rr(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(Gn()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Ee(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),_C={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gs=P.forwardRef(function(t,r){const{color:n,...s}=Ft({props:t,name:"MuiTypography"}),o=!DI[n],l=zI({...s,...o&&{color:n}}),{align:u="inherit",className:d,component:h,gutterBottom:p=!1,noWrap:m=!1,paragraph:b=!1,variant:S="body1",variantMapping:x=_C,...C}=l,$={...l,align:u,color:n,className:d,component:h,gutterBottom:p,noWrap:m,paragraph:b,variant:S,variantMapping:x},_=h||(b?"p":x[S]||_C[S])||"span",M=jI($);return B.jsx(BI,{as:_,ref:r,className:Xe(M.root,d),...C,ownerState:$,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...C.style}})});function UI(e){return Ht("MuiAppBar",e)}Zt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const HI=e=>{const{color:t,position:r,classes:n}=e,s={root:["root",`color${Ee(t)}`,`position${Ee(r)}`]};return Vt(s,UI,n)},TC=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,ZI=Ue(Kh,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Ee(r.position)}`],t[`color${Ee(r.color)}`]]}})(rr(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Gn(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?TC(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?TC(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),VI=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiAppBar"}),{className:s,color:o="primary",enableColorOnDark:l=!1,position:u="fixed",...d}=n,h={...n,color:o,position:u,enableColorOnDark:l},p=HI(h);return B.jsx(ZI,{square:!0,component:"header",ownerState:h,elevation:4,className:Xe(p.root,s,u==="fixed"&&"mui-fixed"),ref:r,...d})}),__=e=>{const t=P.useRef({});return P.useEffect(()=>{t.current=e}),t.current};function FI(e){var m;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:s=!1,...o}=e,l=s?{}:C_(r,n),{props:u,internalRef:d}=k_({...o,externalSlotProps:l}),h=Kn(d,l==null?void 0:l.ref,(m=e.additionalProps)==null?void 0:m.ref);return w_(t,{...u,ref:h},n)}function Hd(e){var t;return parseInt(P.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function qI(e){return typeof e=="function"?e():e}const GI=P.forwardRef(function(t,r){const{children:n,container:s,disablePortal:o=!1}=t,[l,u]=P.useState(null),d=Kn(P.isValidElement(n)?Hd(n):null,r);if(Ps(()=>{o||u(qI(s)||document.body)},[s,o]),Ps(()=>{if(l&&!o)return xC(r,l),()=>{xC(r,null)}},[r,l,o]),o){if(P.isValidElement(n)){const h={ref:d};return P.cloneElement(n,h)}return n}return l&&W2.createPortal(n,l)}),KI=oa(B.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function WI(e){return Ht("MuiChip",e)}const Ut=Zt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),YI=e=>{const{classes:t,disabled:r,size:n,color:s,iconColor:o,onDelete:l,clickable:u,variant:d}=e,h={root:["root",d,r&&"disabled",`size${Ee(n)}`,`color${Ee(s)}`,u&&"clickable",u&&`clickableColor${Ee(s)}`,l&&"deletable",l&&`deletableColor${Ee(s)}`,`${d}${Ee(s)}`],label:["label",`label${Ee(n)}`],avatar:["avatar",`avatar${Ee(n)}`,`avatarColor${Ee(s)}`],icon:["icon",`icon${Ee(n)}`,`iconColor${Ee(o)}`],deleteIcon:["deleteIcon",`deleteIcon${Ee(n)}`,`deleteIconColor${Ee(s)}`,`deleteIcon${Ee(d)}Color${Ee(s)}`]};return Vt(h,WI,t)},QI=Ue("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:s,clickable:o,onDelete:l,size:u,variant:d}=r;return[{[`& .${Ut.avatar}`]:t.avatar},{[`& .${Ut.avatar}`]:t[`avatar${Ee(u)}`]},{[`& .${Ut.avatar}`]:t[`avatarColor${Ee(n)}`]},{[`& .${Ut.icon}`]:t.icon},{[`& .${Ut.icon}`]:t[`icon${Ee(u)}`]},{[`& .${Ut.icon}`]:t[`iconColor${Ee(s)}`]},{[`& .${Ut.deleteIcon}`]:t.deleteIcon},{[`& .${Ut.deleteIcon}`]:t[`deleteIcon${Ee(u)}`]},{[`& .${Ut.deleteIcon}`]:t[`deleteIconColor${Ee(n)}`]},{[`& .${Ut.deleteIcon}`]:t[`deleteIcon${Ee(d)}Color${Ee(n)}`]},t.root,t[`size${Ee(u)}`],t[`color${Ee(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${Ee(n)})`],l&&t.deletable,l&&n!=="default"&&t[`deletableColor${Ee(n)}`],t[d],t[`${d}${Ee(n)}`]]}})(rr(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ut.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ut.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Ut.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Ut.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Ut.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Ut.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ut.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Gt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Gt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ut.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ut.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Gn(["contrastText"])).map(([r])=>({props:{color:r},style:{backgroundColor:(e.vars||e).palette[r].main,color:(e.vars||e).palette[r].contrastText,[`& .${Ut.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].contrastTextChannel} / 0.7)`:Gt(e.palette[r].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].contrastText}}}})),{props:r=>r.iconColor===r.color,style:{[`& .${Ut.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:r=>r.iconColor===r.color&&r.color!=="default",style:{[`& .${Ut.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ut.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Gn(["dark"])).map(([r])=>({props:{color:r,onDelete:!0},style:{[`&.${Ut.focusVisible}`]:{background:(e.vars||e).palette[r].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Ut.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Gn(["dark"])).map(([r])=>({props:{color:r,clickable:!0},style:{[`&:hover, &.${Ut.focusVisible}`]:{backgroundColor:(e.vars||e).palette[r].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Ut.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ut.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Ut.avatar}`]:{marginLeft:4},[`& .${Ut.avatarSmall}`]:{marginLeft:2},[`& .${Ut.icon}`]:{marginLeft:4},[`& .${Ut.iconSmall}`]:{marginLeft:2},[`& .${Ut.deleteIcon}`]:{marginRight:5},[`& .${Ut.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Gn()).map(([r])=>({props:{variant:"outlined",color:r},style:{color:(e.vars||e).palette[r].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:Gt(e.palette[r].main,.7)}`,[`&.${Ut.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette[r].main,e.palette.action.hoverOpacity)},[`&.${Ut.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Gt(e.palette[r].main,e.palette.action.focusOpacity)},[`& .${Ut.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.7)`:Gt(e.palette[r].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[r].main}}}}))]}})),XI=Ue("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${Ee(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function AC(e){return e.key==="Backspace"||e.key==="Delete"}const T_=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiChip"}),{avatar:s,className:o,clickable:l,color:u="default",component:d,deleteIcon:h,disabled:p=!1,icon:m,label:b,onClick:S,onDelete:x,onKeyDown:C,onKeyUp:$,size:_="medium",variant:M="filled",tabIndex:T,skipFocusWhenDisabled:R=!1,slots:L={},slotProps:j={},...O}=n,N=P.useRef(null),z=Kn(N,r),k=me=>{me.stopPropagation(),x&&x(me)},H=me=>{me.currentTarget===me.target&&AC(me)&&me.preventDefault(),C&&C(me)},q=me=>{me.currentTarget===me.target&&x&&AC(me)&&x(me),$&&$(me)},V=l!==!1&&S?!0:l,W=V||x?Nd:d||"div",ae={...n,component:W,disabled:p,size:_,color:u,iconColor:P.isValidElement(m)&&m.props.color||u,onDelete:!!x,clickable:V,variant:M},Z=YI(ae),ne=W===Nd?{component:d||"div",focusVisibleClassName:Z.focusVisible,...x&&{disableRipple:!0}}:{};let ee=null;x&&(ee=h&&P.isValidElement(h)?P.cloneElement(h,{className:Xe(h.props.className,Z.deleteIcon),onClick:k}):B.jsx(KI,{className:Z.deleteIcon,onClick:k}));let re=null;s&&P.isValidElement(s)&&(re=P.cloneElement(s,{className:Xe(Z.avatar,s.props.className)}));let F=null;m&&P.isValidElement(m)&&(F=P.cloneElement(m,{className:Xe(Z.icon,m.props.className)}));const J={slots:L,slotProps:j},[fe,ce]=Nn("root",{elementType:QI,externalForwardedProps:{...J,...O},ownerState:ae,shouldForwardComponentProp:!0,ref:z,className:Xe(Z.root,o),additionalProps:{disabled:V&&p?!0:void 0,tabIndex:R&&p?-1:T,...ne},getSlotProps:me=>({...me,onClick:He=>{var Oe;(Oe=me.onClick)==null||Oe.call(me,He),S==null||S(He)},onKeyDown:He=>{var Oe;(Oe=me.onKeyDown)==null||Oe.call(me,He),H==null||H(He)},onKeyUp:He=>{var Oe;(Oe=me.onKeyUp)==null||Oe.call(me,He),q==null||q(He)}})}),[Ce,Se]=Nn("label",{elementType:XI,externalForwardedProps:J,ownerState:ae,className:Z.label});return B.jsxs(fe,{as:W,...ce,children:[re||F,B.jsx(Ce,{...Se,children:b}),ee]})});function Lm(e){return parseInt(e,10)||0}const JI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function eD(e){for(const t in e)return!1;return!0}function RC(e){return eD(e)||e.outerHeightStyle===0&&!e.overflowing}const tD=P.forwardRef(function(t,r){const{onChange:n,maxRows:s,minRows:o=1,style:l,value:u,...d}=t,{current:h}=P.useRef(u!=null),p=P.useRef(null),m=Kn(r,p),b=P.useRef(null),S=P.useRef(null),x=P.useCallback(()=>{const T=p.current,R=S.current;if(!T||!R)return;const j=Ds(T).getComputedStyle(T);if(j.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=j.width,R.value=T.value||t.placeholder||"x",R.value.slice(-1)===`
`&&(R.value+=" ");const O=j.boxSizing,N=Lm(j.paddingBottom)+Lm(j.paddingTop),z=Lm(j.borderBottomWidth)+Lm(j.borderTopWidth),k=R.scrollHeight;R.value="x";const H=R.scrollHeight;let q=k;o&&(q=Math.max(Number(o)*H,q)),s&&(q=Math.min(Number(s)*H,q)),q=Math.max(q,H);const V=q+(O==="border-box"?N+z:0),W=Math.abs(q-k)<=1;return{outerHeightStyle:V,overflowing:W}},[s,o,t.placeholder]),C=Nl(()=>{const T=p.current,R=x();if(!T||!R||RC(R))return!1;const L=R.outerHeightStyle;return b.current!=null&&b.current!==L}),$=P.useCallback(()=>{const T=p.current,R=x();if(!T||!R||RC(R))return;const L=R.outerHeightStyle;b.current!==L&&(b.current=L,T.style.height=`${L}px`),T.style.overflow=R.overflowing?"hidden":""},[x]),_=P.useRef(-1);Ps(()=>{const T=SS($),R=p==null?void 0:p.current;if(!R)return;const L=Ds(R);L.addEventListener("resize",T);let j;return typeof ResizeObserver<"u"&&(j=new ResizeObserver(()=>{C()&&(j.unobserve(R),cancelAnimationFrame(_.current),$(),_.current=requestAnimationFrame(()=>{j.observe(R)}))}),j.observe(R)),()=>{T.clear(),cancelAnimationFrame(_.current),L.removeEventListener("resize",T),j&&j.disconnect()}},[x,$,C]),Ps(()=>{$()});const M=T=>{h||$();const R=T.target,L=R.value.length,j=R.value.endsWith(`
`),O=R.selectionStart===L;j&&O&&R.setSelectionRange(L,L),n&&n(T)};return B.jsxs(P.Fragment,{children:[B.jsx("textarea",{value:u,onChange:M,ref:m,rows:o,style:l,...d}),B.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:S,tabIndex:-1,style:{...JI.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function Bv(e){return typeof e=="string"}function Wh({props:e,states:t,muiFormControl:r}){return t.reduce((n,s)=>(n[s]=e[s],r&&typeof e[s]>"u"&&(n[s]=r[s]),n),{})}const ES=P.createContext(void 0);function Yh(){return P.useContext(ES)}function OC(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function _g(e,t=!1){return e&&(OC(e.value)&&e.value!==""||t&&OC(e.defaultValue)&&e.defaultValue!=="")}function rD(e){return e.startAdornment}function nD(e){return Ht("MuiInputBase",e)}const Ld=Zt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var MC;const _0=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Ee(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},T0=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},aD=e=>{const{classes:t,color:r,disabled:n,error:s,endAdornment:o,focused:l,formControl:u,fullWidth:d,hiddenLabel:h,multiline:p,readOnly:m,size:b,startAdornment:S,type:x}=e,C={root:["root",`color${Ee(r)}`,n&&"disabled",s&&"error",d&&"fullWidth",l&&"focused",u&&"formControl",b&&b!=="medium"&&`size${Ee(b)}`,p&&"multiline",S&&"adornedStart",o&&"adornedEnd",h&&"hiddenLabel",m&&"readOnly"],input:["input",n&&"disabled",x==="search"&&"inputTypeSearch",p&&"inputMultiline",b==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",S&&"inputAdornedStart",o&&"inputAdornedEnd",m&&"readOnly"]};return Vt(C,nD,t)},A0=Ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_0})(rr(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),R0=Ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:T0})(rr(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ld.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Ld.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),NC=vS({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),_S=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:o,autoFocus:l,className:u,color:d,components:h={},componentsProps:p={},defaultValue:m,disabled:b,disableInjectingGlobalStyles:S,endAdornment:x,error:C,fullWidth:$=!1,id:_,inputComponent:M="input",inputProps:T={},inputRef:R,margin:L,maxRows:j,minRows:O,multiline:N=!1,name:z,onBlur:k,onChange:H,onClick:q,onFocus:V,onKeyDown:W,onKeyUp:ae,placeholder:Z,readOnly:ne,renderSuffix:ee,rows:re,size:F,slotProps:J={},slots:fe={},startAdornment:ce,type:Ce="text",value:Se,...me}=n,He=T.value!=null?T.value:Se,{current:Oe}=P.useRef(He!=null),Pe=P.useRef(),Ne=P.useCallback(Ye=>{},[]),qe=Kn(Pe,R,T.ref,Ne),[Ve,ht]=P.useState(!1),ze=Yh(),rt=Wh({props:n,muiFormControl:ze,states:["color","disabled","error","hiddenLabel","size","required","filled"]});rt.focused=ze?ze.focused:Ve,P.useEffect(()=>{!ze&&b&&Ve&&(ht(!1),k&&k())},[ze,b,Ve,k]);const ct=ze&&ze.onFilled,nt=ze&&ze.onEmpty,bt=P.useCallback(Ye=>{_g(Ye)?ct&&ct():nt&&nt()},[ct,nt]);Ps(()=>{Oe&&bt({value:He})},[He,bt,Oe]);const Tt=Ye=>{V&&V(Ye),T.onFocus&&T.onFocus(Ye),ze&&ze.onFocus?ze.onFocus(Ye):ht(!0)},Kt=Ye=>{k&&k(Ye),T.onBlur&&T.onBlur(Ye),ze&&ze.onBlur?ze.onBlur(Ye):ht(!1)},vt=(Ye,...or)=>{if(!Oe){const $t=Ye.target||Pe.current;if($t==null)throw new Error(Di(1));bt({value:$t.value})}T.onChange&&T.onChange(Ye,...or),H&&H(Ye,...or)};P.useEffect(()=>{bt(Pe.current)},[]);const _e=Ye=>{Pe.current&&Ye.currentTarget===Ye.target&&Pe.current.focus(),q&&q(Ye)};let pt=M,Pt=T;N&&pt==="input"&&(re?Pt={type:void 0,minRows:re,maxRows:re,...Pt}:Pt={type:void 0,maxRows:j,minRows:O,...Pt},pt=tD);const Qt=Ye=>{bt(Ye.animationName==="mui-auto-fill-cancel"?Pe.current:{value:"x"})};P.useEffect(()=>{ze&&ze.setAdornedStart(!!ce)},[ze,ce]);const ir={...n,color:rt.color||"primary",disabled:rt.disabled,endAdornment:x,error:rt.error,focused:rt.focused,formControl:ze,fullWidth:$,hiddenLabel:rt.hiddenLabel,multiline:N,size:rt.size,startAdornment:ce,type:Ce},It=aD(ir),hr=fe.root||h.Root||A0,Xt=J.root||p.root||{},Dt=fe.input||h.Input||R0;return Pt={...Pt,...J.input??p.input},B.jsxs(P.Fragment,{children:[!S&&typeof NC=="function"&&(MC||(MC=B.jsx(NC,{}))),B.jsxs(hr,{...Xt,ref:r,onClick:_e,...me,...!Bv(hr)&&{ownerState:{...ir,...Xt.ownerState}},className:Xe(It.root,Xt.className,u,ne&&"MuiInputBase-readOnly"),children:[ce,B.jsx(ES.Provider,{value:null,children:B.jsx(Dt,{"aria-invalid":rt.error,"aria-describedby":s,autoComplete:o,autoFocus:l,defaultValue:m,disabled:rt.disabled,id:_,onAnimationStart:Qt,name:z,placeholder:Z,readOnly:ne,required:rt.required,rows:re,value:He,onKeyDown:W,onKeyUp:ae,type:Ce,...Pt,...!Bv(Dt)&&{as:pt,ownerState:{...ir,...Pt.ownerState}},ref:qe,className:Xe(It.input,Pt.className,ne&&"MuiInputBase-readOnly"),onBlur:Kt,onChange:vt,onFocus:Tt})}),x,ee?ee({...rt,startAdornment:ce}):null]})]})});function sD(e){return Ht("MuiInput",e)}const Ff={...Ld,...Zt("MuiInput",["root","underline","input"])};function iD(e){return Ht("MuiOutlinedInput",e)}const Ws={...Ld,...Zt("MuiOutlinedInput",["root","notchedOutline","input"])};function oD(e){return Ht("MuiFilledInput",e)}const hl={...Ld,...Zt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},lD=oa(B.jsx("path",{d:"M7 10l5 5 5-5z"})),cD={entering:{opacity:1},entered:{opacity:1}},uD=P.forwardRef(function(t,r){const n=oi(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:l=!0,children:u,easing:d,in:h,onEnter:p,onEntered:m,onEntering:b,onExit:S,onExited:x,onExiting:C,style:$,timeout:_=s,TransitionComponent:M=zs,...T}=t,R=P.useRef(null),L=Kn(R,Hd(u),r),j=W=>ae=>{if(W){const Z=R.current;ae===void 0?W(Z):W(Z,ae)}},O=j(b),N=j((W,ae)=>{$S(W);const Z=Md({style:$,timeout:_,easing:d},{mode:"enter"});W.style.webkitTransition=n.transitions.create("opacity",Z),W.style.transition=n.transitions.create("opacity",Z),p&&p(W,ae)}),z=j(m),k=j(C),H=j(W=>{const ae=Md({style:$,timeout:_,easing:d},{mode:"exit"});W.style.webkitTransition=n.transitions.create("opacity",ae),W.style.transition=n.transitions.create("opacity",ae),S&&S(W)}),q=j(x),V=W=>{o&&o(R.current,W)};return B.jsx(M,{appear:l,in:h,nodeRef:R,onEnter:N,onEntered:z,onEntering:O,onExit:H,onExited:q,onExiting:k,addEndListener:V,timeout:_,...T,children:(W,{ownerState:ae,...Z})=>P.cloneElement(u,{style:{opacity:0,visibility:W==="exited"&&!h?"hidden":void 0,...cD[W],...$,...u.props.style},ref:L,...Z})})});function dD(e){return Ht("MuiBackdrop",e)}Zt("MuiBackdrop",["root","invisible"]);const fD=e=>{const{classes:t,invisible:r}=e;return Vt({root:["root",r&&"invisible"]},dD,t)},hD=Ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),pD=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiBackdrop"}),{children:s,className:o,component:l="div",invisible:u=!1,open:d,components:h={},componentsProps:p={},slotProps:m={},slots:b={},TransitionComponent:S,transitionDuration:x,...C}=n,$={...n,component:l,invisible:u},_=fD($),M={transition:S,root:h.Root,...b},T={...p,...m},R={component:l,slots:M,slotProps:T},[L,j]=Nn("root",{elementType:hD,externalForwardedProps:R,className:Xe(_.root,o),ownerState:$}),[O,N]=Nn("transition",{elementType:uD,externalForwardedProps:R,ownerState:$});return B.jsx(O,{in:d,timeout:x,...C,...N,children:B.jsx(L,{"aria-hidden":!0,...j,classes:_,ref:r,children:s})})});function mD(e){const{badgeContent:t,invisible:r=!1,max:n=99,showZero:s=!1}=e,o=__({badgeContent:t,max:n});let l=r;r===!1&&t===0&&!s&&(l=!0);const{badgeContent:u,max:d=n}=l?o:e,h=u&&Number(u)>d?`${d}+`:u;return{badgeContent:u,invisible:l,max:d,displayValue:h}}function gD(e){return Ht("MuiBadge",e)}const To=Zt("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),jb=10,Bb=4,yD=e=>{const{color:t,anchorOrigin:r,invisible:n,overlap:s,variant:o,classes:l={}}=e,u={root:["root"],badge:["badge",o,n&&"invisible",`anchorOrigin${Ee(r.vertical)}${Ee(r.horizontal)}`,`anchorOrigin${Ee(r.vertical)}${Ee(r.horizontal)}${Ee(s)}`,`overlap${Ee(s)}`,t!=="default"&&`color${Ee(t)}`]};return Vt(u,gD,l)},bD=Ue("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),vD=Ue("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.badge,t[r.variant],t[`anchorOrigin${Ee(r.anchorOrigin.vertical)}${Ee(r.anchorOrigin.horizontal)}${Ee(r.overlap)}`],r.color!=="default"&&t[`color${Ee(r.color)}`],r.invisible&&t.invisible]}})(rr(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:jb*2,lineHeight:1,padding:"0 6px",height:jb*2,borderRadius:jb,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Gn(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Bb,height:Bb*2,minWidth:Bb*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${To.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${To.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${To.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${To.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${To.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${To.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${To.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${To.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function LC(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const SD=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiBadge"}),{anchorOrigin:s,className:o,classes:l,component:u,components:d={},componentsProps:h={},children:p,overlap:m="rectangular",color:b="default",invisible:S=!1,max:x=99,badgeContent:C,slots:$,slotProps:_,showZero:M=!1,variant:T="standard",...R}=n,{badgeContent:L,invisible:j,max:O,displayValue:N}=mD({max:x,invisible:S,badgeContent:C,showZero:M}),z=__({anchorOrigin:LC(s),color:b,overlap:m,variant:T,badgeContent:C}),k=j||L==null&&T!=="dot",{color:H=b,overlap:q=m,anchorOrigin:V,variant:W=T}=k?z:n,ae=LC(V),Z=W!=="dot"?N:void 0,ne={...n,badgeContent:L,invisible:k,max:O,displayValue:Z,showZero:M,anchorOrigin:ae,color:H,overlap:q,variant:W},ee=yD(ne),re={slots:{root:($==null?void 0:$.root)??d.Root,badge:($==null?void 0:$.badge)??d.Badge},slotProps:{root:(_==null?void 0:_.root)??h.root,badge:(_==null?void 0:_.badge)??h.badge}},[F,J]=Nn("root",{elementType:bD,externalForwardedProps:{...re,...R},ownerState:ne,className:Xe(ee.root,o),ref:r,additionalProps:{as:u}}),[fe,ce]=Nn("badge",{elementType:vD,externalForwardedProps:re,ownerState:ne,className:ee.badge});return B.jsxs(F,{...J,children:[p,B.jsx(fe,{...ce,children:Z})]})}),xD=Zt("MuiBox",["root"]),wD=k0(),ya=QN({themeId:Ns,defaultTheme:wD,defaultClassName:xD.root,generateClassName:WE.generate});function CD(e){return Ht("MuiButton",e)}const pl=Zt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),$D=P.createContext({}),kD=P.createContext(void 0),ED=e=>{const{color:t,disableElevation:r,fullWidth:n,size:s,variant:o,loading:l,loadingPosition:u,classes:d}=e,h={root:["root",l&&"loading",o,`${o}${Ee(t)}`,`size${Ee(s)}`,`${o}Size${Ee(s)}`,`color${Ee(t)}`,r&&"disableElevation",n&&"fullWidth",l&&`loadingPosition${Ee(u)}`],startIcon:["icon","startIcon",`iconSize${Ee(s)}`],endIcon:["icon","endIcon",`iconSize${Ee(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=Vt(h,CD,d);return{...d,...p}},A_=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],_D=Ue(Nd,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ee(r.color)}`],t[`size${Ee(r.size)}`],t[`${r.variant}Size${Ee(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(rr(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${pl.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${pl.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${pl.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${pl.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Gn()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:Gt(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette[n].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${pl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pl.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${pl.loading}`]:{color:"transparent"}}}]}})),TD=Ue("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Ee(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...A_]})),AD=Ue("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Ee(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...A_]})),RD=Ue("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),PC=Ue("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),R_=P.forwardRef(function(t,r){const n=P.useContext($D),s=P.useContext(kD),o=Od(n,t),l=Ft({props:o,name:"MuiButton"}),{children:u,color:d="primary",component:h="button",className:p,disabled:m=!1,disableElevation:b=!1,disableFocusRipple:S=!1,endIcon:x,focusVisibleClassName:C,fullWidth:$=!1,id:_,loading:M=null,loadingIndicator:T,loadingPosition:R="center",size:L="medium",startIcon:j,type:O,variant:N="text",...z}=l,k=C0(_),H=T??B.jsx(kS,{"aria-labelledby":k,color:"inherit",size:16}),q={...l,color:d,component:h,disabled:m,disableElevation:b,disableFocusRipple:S,fullWidth:$,loading:M,loadingIndicator:H,loadingPosition:R,size:L,type:O,variant:N},V=ED(q),W=(j||M&&R==="start")&&B.jsx(TD,{className:V.startIcon,ownerState:q,children:j||B.jsx(PC,{className:V.loadingIconPlaceholder,ownerState:q})}),ae=(x||M&&R==="end")&&B.jsx(AD,{className:V.endIcon,ownerState:q,children:x||B.jsx(PC,{className:V.loadingIconPlaceholder,ownerState:q})}),Z=s||"",ne=typeof M=="boolean"?B.jsx("span",{className:V.loadingWrapper,style:{display:"contents"},children:M&&B.jsx(RD,{className:V.loadingIndicator,ownerState:q,children:H})}):null;return B.jsxs(_D,{ownerState:q,className:Xe(n.className,V.root,p,Z),component:h,disabled:m||M,focusRipple:!S,focusVisibleClassName:Xe(V.focusVisible,C),ref:r,type:O,id:M?k:_,...z,classes:V,children:[W,R!=="end"&&ne,u,R==="end"&&ne,ae]})});function OD(e){return P.Children.toArray(e).filter(t=>P.isValidElement(t))}function MD(e){return Ht("MuiCard",e)}Zt("MuiCard",["root"]);const ND=e=>{const{classes:t}=e;return Vt({root:["root"]},MD,t)},LD=Ue(Kh,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),PD=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiCard"}),{className:s,raised:o=!1,...l}=n,u={...n,raised:o},d=ND(u);return B.jsx(LD,{className:Xe(d.root,s),elevation:o?8:void 0,ref:r,ownerState:u,...l})});function ID(e){return Ht("MuiCardContent",e)}Zt("MuiCardContent",["root"]);const DD=e=>{const{classes:t}=e;return Vt({root:["root"]},ID,t)},zD=Ue("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),jD=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiCardContent"}),{className:s,component:o="div",...l}=n,u={...n,component:o},d=DD(u);return B.jsx(zD,{as:o,className:Xe(d.root,s),ownerState:u,ref:r,...l})}),O_=UL({createStyledComponent:Ue("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Ee(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ft({props:e,name:"MuiContainer"})}),Uv=typeof vS({})=="function",BD=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),UD=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),M_=(e,t=!1)=>{var o,l;const r={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([u,d])=>{var p,m;const h=e.getColorSchemeSelector(u);h.startsWith("@")?r[h]={":root":{colorScheme:(p=d.palette)==null?void 0:p.mode}}:r[h.replace(/\s*&/,"")]={colorScheme:(m=d.palette)==null?void 0:m.mode}});let n={html:BD(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...UD(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...r};const s=(l=(o=e.components)==null?void 0:o.MuiCssBaseline)==null?void 0:l.styleOverrides;return s&&(n=[n,s]),n},Jm="mui-ecs",HD=e=>{const t=M_(e,!1),r=Array.isArray(t)?t[0]:t;return!e.vars&&r&&(r.html[`:root:has(${Jm})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([n,s])=>{var l,u;const o=e.getColorSchemeSelector(n);o.startsWith("@")?r[o]={[`:root:not(:has(.${Jm}))`]:{colorScheme:(l=s.palette)==null?void 0:l.mode}}:r[o.replace(/\s*&/,"")]={[`&:not(:has(.${Jm}))`]:{colorScheme:(u=s.palette)==null?void 0:u.mode}}}),t},ZD=vS(Uv?({theme:e,enableColorScheme:t})=>M_(e,t):({theme:e})=>HD(e));function VD(e){const t=Ft({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return B.jsxs(P.Fragment,{children:[Uv&&B.jsx(ZD,{enableColorScheme:n}),!Uv&&!n&&B.jsx("span",{className:Jm,style:{display:"none"}}),r]})}function N_(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function FD(e){const t=Is(e);return t.body===e?Ds(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function hh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function IC(e){return parseInt(Ds(e).getComputedStyle(e).paddingRight,10)||0}function qD(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function DC(e,t,r,n,s){const o=[t,r,...n];[].forEach.call(e.children,l=>{const u=!o.includes(l),d=!qD(l);u&&d&&hh(l,s)})}function Ub(e,t){let r=-1;return e.some((n,s)=>t(n)?(r=s,!0):!1),r}function GD(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(FD(n)){const l=N_(Ds(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${IC(n)+l}px`;const u=Is(n).querySelectorAll(".mui-fixed");[].forEach.call(u,d=>{r.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${IC(d)+l}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Is(n).body;else{const l=n.parentElement,u=Ds(n);o=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:l,property:u})=>{o?l.style.setProperty(u,o):l.style.removeProperty(u)})}}function KD(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class WD{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&hh(t.modalRef,!1);const s=KD(r);DC(r,t.mount,t.modalRef,s,!0);const o=Ub(this.containers,l=>l.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:s}),n)}mount(t,r){const n=Ub(this.containers,o=>o.modals.includes(t)),s=this.containers[n];s.restore||(s.restore=GD(s,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const s=Ub(this.containers,l=>l.modals.includes(t)),o=this.containers[s];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&hh(t.modalRef,r),DC(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=o.modals[o.modals.length-1];l.modalRef&&hh(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const YD=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function QD(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function XD(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function JD(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||XD(e))}function ez(e){const t=[],r=[];return Array.from(e.querySelectorAll(YD)).forEach((n,s)=>{const o=QD(n);o===-1||!JD(n)||(o===0?t.push(n):r.push({documentOrder:s,tabIndex:o,node:n}))}),r.sort((n,s)=>n.tabIndex===s.tabIndex?n.documentOrder-s.documentOrder:n.tabIndex-s.tabIndex).map(n=>n.node).concat(t)}function tz(){return!0}function rz(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:s=!1,getTabbable:o=ez,isEnabled:l=tz,open:u}=e,d=P.useRef(!1),h=P.useRef(null),p=P.useRef(null),m=P.useRef(null),b=P.useRef(null),S=P.useRef(!1),x=P.useRef(null),C=Kn(Hd(t),x),$=P.useRef(null);P.useEffect(()=>{!u||!x.current||(S.current=!r)},[r,u]),P.useEffect(()=>{if(!u||!x.current)return;const T=Is(x.current);return x.current.contains(T.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),S.current&&x.current.focus()),()=>{s||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}},[u]),P.useEffect(()=>{if(!u||!x.current)return;const T=Is(x.current),R=O=>{$.current=O,!(n||!l()||O.key!=="Tab")&&T.activeElement===x.current&&O.shiftKey&&(d.current=!0,p.current&&p.current.focus())},L=()=>{var z,k;const O=x.current;if(O===null)return;if(!T.hasFocus()||!l()||d.current){d.current=!1;return}if(O.contains(T.activeElement)||n&&T.activeElement!==h.current&&T.activeElement!==p.current)return;if(T.activeElement!==b.current)b.current=null;else if(b.current!==null)return;if(!S.current)return;let N=[];if((T.activeElement===h.current||T.activeElement===p.current)&&(N=o(x.current)),N.length>0){const H=!!((z=$.current)!=null&&z.shiftKey&&((k=$.current)==null?void 0:k.key)==="Tab"),q=N[0],V=N[N.length-1];typeof q!="string"&&typeof V!="string"&&(H?V.focus():q.focus())}else O.focus()};T.addEventListener("focusin",L),T.addEventListener("keydown",R,!0);const j=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&L()},50);return()=>{clearInterval(j),T.removeEventListener("focusin",L),T.removeEventListener("keydown",R,!0)}},[r,n,s,l,u,o]);const _=T=>{m.current===null&&(m.current=T.relatedTarget),S.current=!0,b.current=T.target;const R=t.props.onFocus;R&&R(T)},M=T=>{m.current===null&&(m.current=T.relatedTarget),S.current=!0};return B.jsxs(P.Fragment,{children:[B.jsx("div",{tabIndex:u?0:-1,onFocus:M,ref:h,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:C,onFocus:_}),B.jsx("div",{tabIndex:u?0:-1,onFocus:M,ref:p,"data-testid":"sentinelEnd"})]})}function nz(e){return typeof e=="function"?e():e}function az(e){return e?e.props.hasOwnProperty("in"):!1}const zC=()=>{},Pm=new WD;function sz(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:s=!1,onTransitionEnter:o,onTransitionExited:l,children:u,onClose:d,open:h,rootRef:p}=e,m=P.useRef({}),b=P.useRef(null),S=P.useRef(null),x=Kn(S,p),[C,$]=P.useState(!h),_=az(u);let M=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(M=!1);const T=()=>Is(b.current),R=()=>(m.current.modalRef=S.current,m.current.mount=b.current,m.current),L=()=>{Pm.mount(R(),{disableScrollLock:n}),S.current&&(S.current.scrollTop=0)},j=Nl(()=>{const ae=nz(t)||T().body;Pm.add(R(),ae),S.current&&L()}),O=()=>Pm.isTopModal(R()),N=Nl(ae=>{b.current=ae,ae&&(h&&O()?L():S.current&&hh(S.current,M))}),z=P.useCallback(()=>{Pm.remove(R(),M)},[M]);P.useEffect(()=>()=>{z()},[z]),P.useEffect(()=>{h?j():(!_||!s)&&z()},[h,z,_,s,j]);const k=ae=>Z=>{var ne;(ne=ae.onKeyDown)==null||ne.call(ae,Z),!(Z.key!=="Escape"||Z.which===229||!O())&&(r||(Z.stopPropagation(),d&&d(Z,"escapeKeyDown")))},H=ae=>Z=>{var ne;(ne=ae.onClick)==null||ne.call(ae,Z),Z.target===Z.currentTarget&&d&&d(Z,"backdropClick")};return{getRootProps:(ae={})=>{const Z=$_(e);delete Z.onTransitionEnter,delete Z.onTransitionExited;const ne={...Z,...ae};return{role:"presentation",...ne,onKeyDown:k(ne),ref:x}},getBackdropProps:(ae={})=>{const Z=ae;return{"aria-hidden":!0,...Z,onClick:H(Z),open:h}},getTransitionProps:()=>{const ae=()=>{$(!1),o&&o()},Z=()=>{$(!0),l&&l(),s&&z()};return{onEnter:SC(ae,(u==null?void 0:u.props.onEnter)??zC),onExited:SC(Z,(u==null?void 0:u.props.onExited)??zC)}},rootRef:x,portalRef:N,isTopModal:O,exited:C,hasTransition:_}}function iz(e){return Ht("MuiModal",e)}Zt("MuiModal",["root","hidden","backdrop"]);const oz=e=>{const{open:t,exited:r,classes:n}=e;return Vt({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},iz,n)},lz=Ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(rr(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),cz=Ue(pD,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),L_=P.forwardRef(function(t,r){const n=Ft({name:"MuiModal",props:t}),{BackdropComponent:s=cz,BackdropProps:o,classes:l,className:u,closeAfterTransition:d=!1,children:h,container:p,component:m,components:b={},componentsProps:S={},disableAutoFocus:x=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:$=!1,disablePortal:_=!1,disableRestoreFocus:M=!1,disableScrollLock:T=!1,hideBackdrop:R=!1,keepMounted:L=!1,onClose:j,onTransitionEnter:O,onTransitionExited:N,open:z,slotProps:k={},slots:H={},theme:q,...V}=n,W={...n,closeAfterTransition:d,disableAutoFocus:x,disableEnforceFocus:C,disableEscapeKeyDown:$,disablePortal:_,disableRestoreFocus:M,disableScrollLock:T,hideBackdrop:R,keepMounted:L},{getRootProps:ae,getBackdropProps:Z,getTransitionProps:ne,portalRef:ee,isTopModal:re,exited:F,hasTransition:J}=sz({...W,rootRef:r}),fe={...W,exited:F},ce=oz(fe),Ce={};if(h.props.tabIndex===void 0&&(Ce.tabIndex="-1"),J){const{onEnter:Ne,onExited:qe}=ne();Ce.onEnter=Ne,Ce.onExited=qe}const Se={slots:{root:b.Root,backdrop:b.Backdrop,...H},slotProps:{...S,...k}},[me,He]=Nn("root",{ref:r,elementType:lz,externalForwardedProps:{...Se,...V,component:m},getSlotProps:ae,ownerState:fe,className:Xe(u,ce==null?void 0:ce.root,!fe.open&&fe.exited&&(ce==null?void 0:ce.hidden))}),[Oe,Pe]=Nn("backdrop",{ref:o==null?void 0:o.ref,elementType:s,externalForwardedProps:Se,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:Ne=>Z({...Ne,onClick:qe=>{Ne!=null&&Ne.onClick&&Ne.onClick(qe)}}),className:Xe(o==null?void 0:o.className,ce==null?void 0:ce.backdrop),ownerState:fe});return!L&&!z&&(!J||F)?null:B.jsx(GI,{ref:ee,container:p,disablePortal:_,children:B.jsxs(me,{...He,children:[!R&&s?B.jsx(Oe,{...Pe}):null,B.jsx(rz,{disableEnforceFocus:C,disableAutoFocus:x,disableRestoreFocus:M,isEnabled:re,open:z,children:P.cloneElement(h,Ce)})]})})});function uz(e){return Ht("MuiDivider",e)}const jC=Zt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dz=e=>{const{absolute:t,children:r,classes:n,flexItem:s,light:o,orientation:l,textAlign:u,variant:d}=e;return Vt({root:["root",t&&"absolute",d,o&&"light",l==="vertical"&&"vertical",s&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},uz,n)},fz=Ue("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(rr(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Gt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),hz=Ue("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(rr(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),_h=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiDivider"}),{absolute:s=!1,children:o,className:l,orientation:u="horizontal",component:d=o||u==="vertical"?"div":"hr",flexItem:h=!1,light:p=!1,role:m=d!=="hr"?"separator":void 0,textAlign:b="center",variant:S="fullWidth",...x}=n,C={...n,absolute:s,component:d,flexItem:h,light:p,orientation:u,role:m,textAlign:b,variant:S},$=dz(C);return B.jsx(fz,{as:d,className:Xe($.root,l),role:m,ref:r,ownerState:C,"aria-orientation":m==="separator"&&(d!=="hr"||u==="vertical")?u:void 0,...x,children:o?B.jsx(hz,{className:$.wrapper,ownerState:C,children:o}):null})});_h&&(_h.muiSkipListHighlight=!0);function pz(e,t,r){const n=t.getBoundingClientRect(),s=r&&r.getBoundingClientRect(),o=Ds(t);let l;if(t.fakeTransform)l=t.fakeTransform;else{const h=o.getComputedStyle(t);l=h.getPropertyValue("-webkit-transform")||h.getPropertyValue("transform")}let u=0,d=0;if(l&&l!=="none"&&typeof l=="string"){const h=l.split("(")[1].split(")")[0].split(",");u=parseInt(h[4],10),d=parseInt(h[5],10)}return e==="left"?s?`translateX(${s.right+u-n.left}px)`:`translateX(${o.innerWidth+u-n.left}px)`:e==="right"?s?`translateX(-${n.right-s.left-u}px)`:`translateX(-${n.left+n.width-u}px)`:e==="up"?s?`translateY(${s.bottom+d-n.top}px)`:`translateY(${o.innerHeight+d-n.top}px)`:s?`translateY(-${n.top-s.top+n.height-d}px)`:`translateY(-${n.top+n.height-d}px)`}function mz(e){return typeof e=="function"?e():e}function Im(e,t,r){const n=mz(r),s=pz(e,t,n);s&&(t.style.webkitTransform=s,t.style.transform=s)}const gz=P.forwardRef(function(t,r){const n=oi(),s={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:l,appear:u=!0,children:d,container:h,direction:p="down",easing:m=s,in:b,onEnter:S,onEntered:x,onEntering:C,onExit:$,onExited:_,onExiting:M,style:T,timeout:R=o,TransitionComponent:L=zs,...j}=t,O=P.useRef(null),N=Kn(Hd(d),O,r),z=ee=>re=>{ee&&(re===void 0?ee(O.current):ee(O.current,re))},k=z((ee,re)=>{Im(p,ee,h),$S(ee),S&&S(ee,re)}),H=z((ee,re)=>{const F=Md({timeout:R,style:T,easing:m},{mode:"enter"});ee.style.webkitTransition=n.transitions.create("-webkit-transform",{...F}),ee.style.transition=n.transitions.create("transform",{...F}),ee.style.webkitTransform="none",ee.style.transform="none",C&&C(ee,re)}),q=z(x),V=z(M),W=z(ee=>{const re=Md({timeout:R,style:T,easing:m},{mode:"exit"});ee.style.webkitTransition=n.transitions.create("-webkit-transform",re),ee.style.transition=n.transitions.create("transform",re),Im(p,ee,h),$&&$(ee)}),ae=z(ee=>{ee.style.webkitTransition="",ee.style.transition="",_&&_(ee)}),Z=ee=>{l&&l(O.current,ee)},ne=P.useCallback(()=>{O.current&&Im(p,O.current,h)},[p,h]);return P.useEffect(()=>{if(b||p==="down"||p==="right")return;const ee=SS(()=>{O.current&&Im(p,O.current,h)}),re=Ds(O.current);return re.addEventListener("resize",ee),()=>{ee.clear(),re.removeEventListener("resize",ee)}},[p,b,h]),P.useEffect(()=>{b||ne()},[b,ne]),B.jsx(L,{nodeRef:O,onEnter:k,onEntered:q,onEntering:H,onExit:W,onExited:ae,onExiting:V,addEndListener:Z,appear:u,in:b,timeout:R,...j,children:(ee,{ownerState:re,...F})=>P.cloneElement(d,{ref:N,style:{visibility:ee==="exited"&&!b?"hidden":void 0,...T,...d.props.style},...F})})});function yz(e){return Ht("MuiDrawer",e)}Zt("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const P_=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},bz=e=>{const{classes:t,anchor:r,variant:n}=e,s={root:["root",`anchor${Ee(r)}`],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Ee(r)}`,n!=="temporary"&&`paperAnchorDocked${Ee(r)}`]};return Vt(s,yz,t)},vz=Ue(L_,{name:"MuiDrawer",slot:"Root",overridesResolver:P_})(rr(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Sz=Ue("div",{shouldForwardProp:Ga,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:P_})({flex:"0 0 auto"}),xz=Ue(Kh,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Ee(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Ee(r.anchor)}`]]}})(rr(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),I_={left:"right",right:"left",top:"down",bottom:"up"};function wz(e){return["left","right"].includes(e)}function Cz({direction:e},t){return e==="rtl"&&wz(t)?I_[t]:t}const $z=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiDrawer"}),s=oi(),o=i_(),l={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:d,children:h,className:p,elevation:m=16,hideBackdrop:b=!1,ModalProps:{BackdropProps:S,...x}={},onClose:C,open:$=!1,PaperProps:_={},SlideProps:M,TransitionComponent:T,transitionDuration:R=l,variant:L="temporary",slots:j={},slotProps:O={},...N}=n,z=P.useRef(!1);P.useEffect(()=>{z.current=!0},[]);const k=Cz({direction:o?"rtl":"ltr"},u),q={...n,anchor:u,elevation:m,open:$,variant:L,...N},V=bz(q),W={slots:{transition:T,...j},slotProps:{paper:_,transition:M,...O,backdrop:y_(O.backdrop||{...d,...S},{transitionDuration:R})}},[ae,Z]=Nn("root",{ref:r,elementType:vz,className:Xe(V.root,V.modal,p),shouldForwardComponentProp:!0,ownerState:q,externalForwardedProps:{...W,...N,...x},additionalProps:{open:$,onClose:C,hideBackdrop:b,slots:{backdrop:W.slots.backdrop},slotProps:{backdrop:W.slotProps.backdrop}}}),[ne,ee]=Nn("paper",{elementType:xz,shouldForwardComponentProp:!0,className:Xe(V.paper,_.className),ownerState:q,externalForwardedProps:W,additionalProps:{elevation:L==="temporary"?m:0,square:!0}}),[re,F]=Nn("docked",{elementType:Sz,ref:r,className:Xe(V.root,V.docked,p),ownerState:q,externalForwardedProps:W,additionalProps:N}),[J,fe]=Nn("transition",{elementType:gz,ownerState:q,externalForwardedProps:W,additionalProps:{in:$,direction:I_[k],timeout:R,appear:z.current}}),ce=B.jsx(ne,{...ee,children:h});if(L==="permanent")return B.jsx(re,{...F,children:ce});const Ce=B.jsx(J,{...fe,children:ce});return L==="persistent"?B.jsx(re,{...F,children:Ce}):B.jsx(ae,{...Z,children:Ce})}),kz=e=>{const{classes:t,disableUnderline:r,startAdornment:n,endAdornment:s,size:o,hiddenLabel:l,multiline:u}=e,d={root:["root",!r&&"underline",n&&"adornedStart",s&&"adornedEnd",o==="small"&&`size${Ee(o)}`,l&&"hiddenLabel",u&&"multiline"],input:["input"]},h=Vt(d,oD,t);return{...t,...h}},Ez=Ue(A0,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._0(e,t),!r.disableUnderline&&t.underline]}})(rr(({theme:e})=>{const t=e.palette.mode==="light",r=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${hl.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${hl.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${hl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${hl.disabled}, .${hl.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${hl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Gn()).map(([l])=>{var u;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(u=(e.vars||e).palette[l])==null?void 0:u.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:u})=>l.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),_z=Ue(R0,{name:"MuiFilledInput",slot:"Input",overridesResolver:T0})(rr(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),D_=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:o={},componentsProps:l,fullWidth:u=!1,hiddenLabel:d,inputComponent:h="input",multiline:p=!1,slotProps:m,slots:b={},type:S="text",...x}=n,C={...n,disableUnderline:s,fullWidth:u,inputComponent:h,multiline:p,type:S},$=kz(n),_={root:{ownerState:C},input:{ownerState:C}},M=m??l?Ln(_,m??l):_,T=b.root??o.Root??Ez,R=b.input??o.Input??_z;return B.jsx(_S,{slots:{root:T,input:R},slotProps:M,fullWidth:u,inputComponent:h,multiline:p,ref:r,type:S,...x,classes:$})});D_.muiName="Input";function Tz(e){return Ht("MuiFormControl",e)}Zt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Az=e=>{const{classes:t,margin:r,fullWidth:n}=e,s={root:["root",r!=="none"&&`margin${Ee(r)}`,n&&"fullWidth"]};return Vt(s,Tz,t)},Rz=Ue("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`margin${Ee(r.margin)}`],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Oz=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiFormControl"}),{children:s,className:o,color:l="primary",component:u="div",disabled:d=!1,error:h=!1,focused:p,fullWidth:m=!1,hiddenLabel:b=!1,margin:S="none",required:x=!1,size:C="medium",variant:$="outlined",..._}=n,M={...n,color:l,component:u,disabled:d,error:h,fullWidth:m,hiddenLabel:b,margin:S,required:x,size:C,variant:$},T=Az(M),[R,L]=P.useState(()=>{let ae=!1;return s&&P.Children.forEach(s,Z=>{if(!Xm(Z,["Input","Select"]))return;const ne=Xm(Z,["Select"])?Z.props.input:Z;ne&&rD(ne.props)&&(ae=!0)}),ae}),[j,O]=P.useState(()=>{let ae=!1;return s&&P.Children.forEach(s,Z=>{Xm(Z,["Input","Select"])&&(_g(Z.props,!0)||_g(Z.props.inputProps,!0))&&(ae=!0)}),ae}),[N,z]=P.useState(!1);d&&N&&z(!1);const k=p!==void 0&&!d?p:N;let H;P.useRef(!1);const q=P.useCallback(()=>{O(!0)},[]),V=P.useCallback(()=>{O(!1)},[]),W=P.useMemo(()=>({adornedStart:R,setAdornedStart:L,color:l,disabled:d,error:h,filled:j,focused:k,fullWidth:m,hiddenLabel:b,size:C,onBlur:()=>{z(!1)},onFocus:()=>{z(!0)},onEmpty:V,onFilled:q,registerEffect:H,required:x,variant:$}),[R,l,d,h,j,k,m,b,H,V,q,x,C,$]);return B.jsx(ES.Provider,{value:W,children:B.jsx(Rz,{as:u,ownerState:M,className:Xe(T.root,o),ref:r,..._,children:s})})});function Mz(e){return Ht("MuiFormLabel",e)}const ph=Zt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Nz=e=>{const{classes:t,color:r,focused:n,disabled:s,error:o,filled:l,required:u}=e,d={root:["root",`color${Ee(r)}`,s&&"disabled",o&&"error",l&&"filled",n&&"focused",u&&"required"],asterisk:["asterisk",o&&"error"]};return Vt(d,Mz,t)},Lz=Ue("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color==="secondary"&&t.colorSecondary,r.filled&&t.filled]}})(rr(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t},style:{[`&.${ph.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ph.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ph.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Pz=Ue("span",{name:"MuiFormLabel",slot:"Asterisk"})(rr(({theme:e})=>({[`&.${ph.error}`]:{color:(e.vars||e).palette.error.main}}))),Iz=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiFormLabel"}),{children:s,className:o,color:l,component:u="label",disabled:d,error:h,filled:p,focused:m,required:b,...S}=n,x=Yh(),C=Wh({props:n,muiFormControl:x,states:["color","required","focused","disabled","error","filled"]}),$={...n,color:C.color||"primary",component:u,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required},_=Nz($);return B.jsxs(Lz,{as:u,ownerState:$,className:Xe(_.root,o),ref:r,...S,children:[s,C.required&&B.jsxs(Pz,{ownerState:$,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]})}),hs=nP({createStyledComponent:Ue("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Ft({props:e,name:"MuiGrid"}),useTheme:oi});function Hv(e){return`scale(${e}, ${e**2})`}const Dz={entering:{opacity:1,transform:Hv(1)},entered:{opacity:1,transform:"none"}},Hb=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zv=P.forwardRef(function(t,r){const{addEndListener:n,appear:s=!0,children:o,easing:l,in:u,onEnter:d,onEntered:h,onEntering:p,onExit:m,onExited:b,onExiting:S,style:x,timeout:C="auto",TransitionComponent:$=zs,..._}=t,M=x_(),T=P.useRef(),R=oi(),L=P.useRef(null),j=Kn(L,Hd(o),r),O=ae=>Z=>{if(ae){const ne=L.current;Z===void 0?ae(ne):ae(ne,Z)}},N=O(p),z=O((ae,Z)=>{$S(ae);const{duration:ne,delay:ee,easing:re}=Md({style:x,timeout:C,easing:l},{mode:"enter"});let F;C==="auto"?(F=R.transitions.getAutoHeightDuration(ae.clientHeight),T.current=F):F=ne,ae.style.transition=[R.transitions.create("opacity",{duration:F,delay:ee}),R.transitions.create("transform",{duration:Hb?F:F*.666,delay:ee,easing:re})].join(","),d&&d(ae,Z)}),k=O(h),H=O(S),q=O(ae=>{const{duration:Z,delay:ne,easing:ee}=Md({style:x,timeout:C,easing:l},{mode:"exit"});let re;C==="auto"?(re=R.transitions.getAutoHeightDuration(ae.clientHeight),T.current=re):re=Z,ae.style.transition=[R.transitions.create("opacity",{duration:re,delay:ne}),R.transitions.create("transform",{duration:Hb?re:re*.666,delay:Hb?ne:ne||re*.333,easing:ee})].join(","),ae.style.opacity=0,ae.style.transform=Hv(.75),m&&m(ae)}),V=O(b),W=ae=>{C==="auto"&&M.start(T.current||0,ae),n&&n(L.current,ae)};return B.jsx($,{appear:s,in:u,nodeRef:L,onEnter:z,onEntered:k,onEntering:N,onExit:q,onExited:V,onExiting:H,addEndListener:W,timeout:C==="auto"?null:C,..._,children:(ae,{ownerState:Z,...ne})=>P.cloneElement(o,{style:{opacity:0,transform:Hv(.75),visibility:ae==="exited"&&!u?"hidden":void 0,...Dz[ae],...x,...o.props.style},ref:j,...ne})})});Zv&&(Zv.muiSupportAuto=!0);const zz=e=>{const{classes:t,disableUnderline:r}=e,s=Vt({root:["root",!r&&"underline"],input:["input"]},sD,t);return{...t,...s}},jz=Ue(A0,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[..._0(e,t),!r.disableUnderline&&t.underline]}})(rr(({theme:e})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ff.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ff.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ff.disabled}, .${Ff.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ff.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Gn()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),Bz=Ue(R0,{name:"MuiInput",slot:"Input",overridesResolver:T0})({}),z_=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiInput"}),{disableUnderline:s=!1,components:o={},componentsProps:l,fullWidth:u=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:m={},type:b="text",...S}=n,x=zz(n),$={root:{ownerState:{disableUnderline:s}}},_=p??l?Ln(p??l,$):$,M=m.root??o.Root??jz,T=m.input??o.Input??Bz;return B.jsx(_S,{slots:{root:M,input:T},slotProps:_,fullWidth:u,inputComponent:d,multiline:h,ref:r,type:b,...S,classes:x})});z_.muiName="Input";function Uz(e){return Ht("MuiInputLabel",e)}Zt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Hz=e=>{const{classes:t,formControl:r,size:n,shrink:s,disableAnimation:o,variant:l,required:u}=e,d={root:["root",r&&"formControl",!o&&"animated",s&&"shrink",n&&n!=="medium"&&`size${Ee(n)}`,l],asterisk:[u&&"asterisk"]},h=Vt(d,Uz,t);return{...t,...h}},Zz=Ue(Iz,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ph.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(rr(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="filled"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:r,size:n})=>t==="filled"&&r.shrink&&n==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:r})=>t==="outlined"&&r.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Vz=P.forwardRef(function(t,r){const n=Ft({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:o,shrink:l,variant:u,className:d,...h}=n,p=Yh();let m=l;typeof m>"u"&&p&&(m=p.filled||p.focused||p.adornedStart);const b=Wh({props:n,muiFormControl:p,states:["size","variant","required","focused"]}),S={...n,disableAnimation:s,formControl:p,shrink:m,size:b.size,variant:b.variant,required:b.required,focused:b.focused},x=Hz(S);return B.jsx(Zz,{"data-shrink":m,ref:r,className:Xe(x.root,d),...h,ownerState:S,classes:x})});function Fz(e){return Ht("MuiLink",e)}const qz=Zt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Gz=({theme:e,ownerState:t})=>{const r=t.color,n=Do(e,`palette.${r}.main`,!1)||Do(e,`palette.${r}`,!1)||t.color,s=Do(e,`palette.${r}.mainChannel`)||Do(e,`palette.${r}Channel`);return"vars"in e&&s?`rgba(${s} / 0.4)`:Gt(n,.4)},BC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Kz=e=>{const{classes:t,component:r,focusVisible:n,underline:s}=e,o={root:["root",`underline${Ee(s)}`,r==="button"&&"button",n&&"focusVisible"]};return Vt(o,Fz,t)},Wz=Ue(gs,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ee(r.underline)}`],r.component==="button"&&t.button]}})(rr(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:r})=>t==="always"&&r.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Gt(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Gt(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Gt(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${qz.focusVisible}`]:{outline:"auto"}}}]}))),Yz=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiLink"}),s=oi(),{className:o,color:l="primary",component:u="a",onBlur:d,onFocus:h,TypographyClasses:p,underline:m="always",variant:b="inherit",sx:S,...x}=n,[C,$]=P.useState(!1),_=L=>{kg(L.target)||$(!1),d&&d(L)},M=L=>{kg(L.target)&&$(!0),h&&h(L)},T={...n,color:l,component:u,focusVisible:C,underline:m,variant:b},R=Kz(T);return B.jsx(Wz,{color:l,className:Xe(R.root,o),classes:p,component:u,onBlur:_,onFocus:M,ref:r,ownerState:T,variant:b,...x,sx:[...BC[l]===void 0?[{color:l}]:[],...Array.isArray(S)?S:[S]],style:{...x.style,...m==="always"&&l!=="inherit"&&!BC[l]&&{"--Link-underlineColor":Gz({theme:s,ownerState:T})}}})}),Vv=P.createContext({});function Qz(e){return Ht("MuiList",e)}Zt("MuiList",["root","padding","dense","subheader"]);const Xz=e=>{const{classes:t,disablePadding:r,dense:n,subheader:s}=e;return Vt({root:["root",!r&&"padding",n&&"dense",s&&"subheader"]},Qz,t)},Jz=Ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ej=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiList"}),{children:s,className:o,component:l="ul",dense:u=!1,disablePadding:d=!1,subheader:h,...p}=n,m=P.useMemo(()=>({dense:u}),[u]),b={...n,component:l,dense:u,disablePadding:d},S=Xz(b);return B.jsx(Vv.Provider,{value:m,children:B.jsxs(Jz,{as:l,className:Xe(S.root,o),ref:r,ownerState:b,...p,children:[h,s]})})}),UC=Zt("MuiListItemIcon",["root","alignItemsFlexStart"]),HC=Zt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Zb(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ZC(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function j_(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function qf(e,t,r,n,s,o){let l=!1,u=s(e,t,t?r:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const d=n?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!j_(u,o)||d)u=s(e,u,r);else return u.focus(),!0}return!1}const tj=P.forwardRef(function(t,r){const{actions:n,autoFocus:s=!1,autoFocusItem:o=!1,children:l,className:u,disabledItemsFocusable:d=!1,disableListWrap:h=!1,onKeyDown:p,variant:m="selectedMenu",...b}=t,S=P.useRef(null),x=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ps(()=>{s&&S.current.focus()},[s]),P.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(T,{direction:R})=>{const L=!S.current.style.width;if(T.clientHeight<S.current.clientHeight&&L){const j=`${N_(Ds(T))}px`;S.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=j,S.current.style.width=`calc(100% + ${j})`}return S.current}}),[]);const C=T=>{const R=S.current,L=T.key;if(T.ctrlKey||T.metaKey||T.altKey){p&&p(T);return}const O=Is(R).activeElement;if(L==="ArrowDown")T.preventDefault(),qf(R,O,h,d,Zb);else if(L==="ArrowUp")T.preventDefault(),qf(R,O,h,d,ZC);else if(L==="Home")T.preventDefault(),qf(R,null,h,d,Zb);else if(L==="End")T.preventDefault(),qf(R,null,h,d,ZC);else if(L.length===1){const N=x.current,z=L.toLowerCase(),k=performance.now();N.keys.length>0&&(k-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&z!==N.keys[0]&&(N.repeating=!1)),N.lastTime=k,N.keys.push(z);const H=O&&!N.repeating&&j_(O,N);N.previousKeyMatched&&(H||qf(R,O,!1,d,Zb,N))?T.preventDefault():N.previousKeyMatched=!1}p&&p(T)},$=Kn(S,r);let _=-1;P.Children.forEach(l,(T,R)=>{if(!P.isValidElement(T)){_===R&&(_+=1,_>=l.length&&(_=-1));return}T.props.disabled||(m==="selectedMenu"&&T.props.selected||_===-1)&&(_=R),_===R&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(_+=1,_>=l.length&&(_=-1))});const M=P.Children.map(l,(T,R)=>{if(R===_){const L={};return o&&(L.autoFocus=!0),T.props.tabIndex===void 0&&m==="selectedMenu"&&(L.tabIndex=0),P.cloneElement(T,L)}return T});return B.jsx(ej,{role:"menu",ref:$,className:u,onKeyDown:C,tabIndex:s?0:-1,...b,children:M})});function rj(e){return Ht("MuiPopover",e)}Zt("MuiPopover",["root","paper"]);function VC(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function FC(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qC(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Dm(e){return typeof e=="function"?e():e}const nj=e=>{const{classes:t}=e;return Vt({root:["root"],paper:["paper"]},rj,t)},aj=Ue(L_,{name:"MuiPopover",slot:"Root"})({}),B_=Ue(Kh,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),sj=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiPopover"}),{action:s,anchorEl:o,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:h,className:p,container:m,elevation:b=8,marginThreshold:S=16,open:x,PaperProps:C={},slots:$={},slotProps:_={},transformOrigin:M={vertical:"top",horizontal:"left"},TransitionComponent:T,transitionDuration:R="auto",TransitionProps:L={},disableScrollLock:j=!1,...O}=n,N=P.useRef(),z={...n,anchorOrigin:l,anchorReference:d,elevation:b,marginThreshold:S,transformOrigin:M,TransitionComponent:T,transitionDuration:R,TransitionProps:L},k=nj(z),H=P.useCallback(()=>{if(d==="anchorPosition")return u;const Ne=Dm(o),Ve=(Ne&&Ne.nodeType===1?Ne:Is(N.current).body).getBoundingClientRect();return{top:Ve.top+VC(Ve,l.vertical),left:Ve.left+FC(Ve,l.horizontal)}},[o,l.horizontal,l.vertical,u,d]),q=P.useCallback(Ne=>({vertical:VC(Ne,M.vertical),horizontal:FC(Ne,M.horizontal)}),[M.horizontal,M.vertical]),V=P.useCallback(Ne=>{const qe={width:Ne.offsetWidth,height:Ne.offsetHeight},Ve=q(qe);if(d==="none")return{top:null,left:null,transformOrigin:qC(Ve)};const ht=H();let ze=ht.top-Ve.vertical,rt=ht.left-Ve.horizontal;const ct=ze+qe.height,nt=rt+qe.width,bt=Ds(Dm(o)),Tt=bt.innerHeight-S,Kt=bt.innerWidth-S;if(S!==null&&ze<S){const vt=ze-S;ze-=vt,Ve.vertical+=vt}else if(S!==null&&ct>Tt){const vt=ct-Tt;ze-=vt,Ve.vertical+=vt}if(S!==null&&rt<S){const vt=rt-S;rt-=vt,Ve.horizontal+=vt}else if(nt>Kt){const vt=nt-Kt;rt-=vt,Ve.horizontal+=vt}return{top:`${Math.round(ze)}px`,left:`${Math.round(rt)}px`,transformOrigin:qC(Ve)}},[o,d,H,q,S]),[W,ae]=P.useState(x),Z=P.useCallback(()=>{const Ne=N.current;if(!Ne)return;const qe=V(Ne);qe.top!==null&&Ne.style.setProperty("top",qe.top),qe.left!==null&&(Ne.style.left=qe.left),Ne.style.transformOrigin=qe.transformOrigin,ae(!0)},[V]);P.useEffect(()=>(j&&window.addEventListener("scroll",Z),()=>window.removeEventListener("scroll",Z)),[o,j,Z]);const ne=()=>{Z()},ee=()=>{ae(!1)};P.useEffect(()=>{x&&Z()}),P.useImperativeHandle(s,()=>x?{updatePosition:()=>{Z()}}:null,[x,Z]),P.useEffect(()=>{if(!x)return;const Ne=SS(()=>{Z()}),qe=Ds(Dm(o));return qe.addEventListener("resize",Ne),()=>{Ne.clear(),qe.removeEventListener("resize",Ne)}},[o,x,Z]);let re=R;const F={slots:{transition:T,...$},slotProps:{transition:L,paper:C,..._}},[J,fe]=Nn("transition",{elementType:Zv,externalForwardedProps:F,ownerState:z,getSlotProps:Ne=>({...Ne,onEntering:(qe,Ve)=>{var ht;(ht=Ne.onEntering)==null||ht.call(Ne,qe,Ve),ne()},onExited:qe=>{var Ve;(Ve=Ne.onExited)==null||Ve.call(Ne,qe),ee()}}),additionalProps:{appear:!0,in:x}});R==="auto"&&!J.muiSupportAuto&&(re=void 0);const ce=m||(o?Is(Dm(o)).body:void 0),[Ce,{slots:Se,slotProps:me,...He}]=Nn("root",{ref:r,elementType:aj,externalForwardedProps:{...F,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:$.backdrop},slotProps:{backdrop:y_(typeof _.backdrop=="function"?_.backdrop(z):_.backdrop,{invisible:!0})},container:ce,open:x},ownerState:z,className:Xe(k.root,p)}),[Oe,Pe]=Nn("paper",{ref:N,className:k.paper,elementType:B_,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:{elevation:b,style:W?void 0:{opacity:0}},ownerState:z});return B.jsx(Ce,{...He,...!Bv(Ce)&&{slots:Se,slotProps:me,disableScrollLock:j},children:B.jsx(J,{...fe,timeout:re,children:B.jsx(Oe,{...Pe,children:h})})})});function ij(e){return Ht("MuiMenu",e)}Zt("MuiMenu",["root","paper","list"]);const oj={vertical:"top",horizontal:"right"},lj={vertical:"top",horizontal:"left"},cj=e=>{const{classes:t}=e;return Vt({root:["root"],paper:["paper"],list:["list"]},ij,t)},uj=Ue(sj,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),dj=Ue(B_,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fj=Ue(tj,{name:"MuiMenu",slot:"List"})({outline:0}),hj=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:o,className:l,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:h,open:p,PaperProps:m={},PopoverClasses:b,transitionDuration:S="auto",TransitionProps:{onEntering:x,...C}={},variant:$="selectedMenu",slots:_={},slotProps:M={},...T}=n,R=i_(),L={...n,autoFocus:s,disableAutoFocusItem:u,MenuListProps:d,onEntering:x,PaperProps:m,transitionDuration:S,TransitionProps:C,variant:$},j=cj(L),O=s&&!u&&p,N=P.useRef(null),z=(re,F)=>{N.current&&N.current.adjustStyleForScrollbar(re,{direction:R?"rtl":"ltr"}),x&&x(re,F)},k=re=>{re.key==="Tab"&&(re.preventDefault(),h&&h(re,"tabKeyDown"))};let H=-1;P.Children.map(o,(re,F)=>{P.isValidElement(re)&&(re.props.disabled||($==="selectedMenu"&&re.props.selected||H===-1)&&(H=F))});const q={slots:_,slotProps:{list:d,transition:C,paper:m,...M}},V=FI({elementType:_.root,externalSlotProps:M.root,ownerState:L,className:[j.root,l]}),[W,ae]=Nn("paper",{className:j.paper,elementType:dj,externalForwardedProps:q,shouldForwardComponentProp:!0,ownerState:L}),[Z,ne]=Nn("list",{className:Xe(j.list,d.className),elementType:fj,shouldForwardComponentProp:!0,externalForwardedProps:q,getSlotProps:re=>({...re,onKeyDown:F=>{var J;k(F),(J=re.onKeyDown)==null||J.call(re,F)}}),ownerState:L}),ee=typeof q.slotProps.transition=="function"?q.slotProps.transition(L):q.slotProps.transition;return B.jsx(uj,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?oj:lj,slots:{root:_.root,paper:W,backdrop:_.backdrop,..._.transition&&{transition:_.transition}},slotProps:{root:V,paper:ae,backdrop:typeof M.backdrop=="function"?M.backdrop(L):M.backdrop,transition:{...ee,onEntering:(...re)=>{var F;z(...re),(F=ee==null?void 0:ee.onEntering)==null||F.call(ee,...re)}}},open:p,ref:r,transitionDuration:S,ownerState:L,...T,classes:b,children:B.jsx(Z,{actions:N,autoFocus:s&&(H===-1||u),autoFocusItem:O,variant:$,...ne,children:o})})});function pj(e){return Ht("MuiMenuItem",e)}const Gf=Zt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),mj=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},gj=e=>{const{disabled:t,dense:r,divider:n,disableGutters:s,selected:o,classes:l}=e,d=Vt({root:["root",r&&"dense",t&&"disabled",!s&&"gutters",n&&"divider",o&&"selected"]},pj,l);return{...l,...d}},yj=Ue(Nd,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:mj})(rr(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Gf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jC.inset}`]:{marginLeft:52},[`& .${HC.root}`]:{marginTop:0,marginBottom:0},[`& .${HC.inset}`]:{paddingLeft:36},[`& .${UC.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${UC.root} svg`]:{fontSize:"1.25rem"}}}]}))),Vb=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:o="li",dense:l=!1,divider:u=!1,disableGutters:d=!1,focusVisibleClassName:h,role:p="menuitem",tabIndex:m,className:b,...S}=n,x=P.useContext(Vv),C=P.useMemo(()=>({dense:l||x.dense||!1,disableGutters:d}),[x.dense,l,d]),$=P.useRef(null);Ps(()=>{s&&$.current&&$.current.focus()},[s]);const _={...n,dense:C.dense,divider:u,disableGutters:d},M=gj(n),T=Kn($,r);let R;return n.disabled||(R=m!==void 0?m:-1),B.jsx(Vv.Provider,{value:C,children:B.jsx(yj,{ref:T,role:p,tabIndex:R,component:o,focusVisibleClassName:Xe(M.focusVisible,h),className:Xe(M.root,b),...S,ownerState:_,classes:M})})});function bj(e){return Ht("MuiNativeSelect",e)}const TS=Zt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vj=e=>{const{classes:t,variant:r,disabled:n,multiple:s,open:o,error:l}=e,u={select:["select",r,n&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${Ee(r)}`,o&&"iconOpen",n&&"disabled"]};return Vt(u,bj,t)},U_=Ue("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${TS.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Sj=Ue(U_,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ga,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${TS.multiple}`]:t.multiple}]}})({}),H_=Ue("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${TS.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),xj=Ue(H_,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ee(r.variant)}`],r.open&&t.iconOpen]}})({}),wj=P.forwardRef(function(t,r){const{className:n,disabled:s,error:o,IconComponent:l,inputRef:u,variant:d="standard",...h}=t,p={...t,disabled:s,variant:d,error:o},m=vj(p);return B.jsxs(P.Fragment,{children:[B.jsx(Sj,{ownerState:p,className:Xe(m.select,n),disabled:s,ref:u||r,...h}),t.multiple?null:B.jsx(xj,{as:l,ownerState:p,className:m.icon})]})});var GC;const Cj=Ue("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ga})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),$j=Ue("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ga})(rr(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function kj(e){const{children:t,classes:r,className:n,label:s,notched:o,...l}=e,u=s!=null&&s!=="",d={...e,notched:o,withLabel:u};return B.jsx(Cj,{"aria-hidden":!0,className:n,ownerState:d,...l,children:B.jsx($j,{ownerState:d,children:u?B.jsx("span",{children:s}):GC||(GC=B.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Ej=e=>{const{classes:t}=e,n=Vt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},iD,t);return{...t,...n}},_j=Ue(A0,{shouldForwardProp:e=>Ga(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:_0})(rr(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ws.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ws.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Ws.focused} .${Ws.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Gn()).map(([r])=>({props:{color:r},style:{[`&.${Ws.focused} .${Ws.notchedOutline}`]:{borderColor:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${Ws.error} .${Ws.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ws.disabled} .${Ws.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:14}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:14}},{props:({ownerState:r})=>r.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:r,size:n})=>r.multiline&&n==="small",style:{padding:"8.5px 14px"}}]}})),Tj=Ue(kj,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(rr(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Aj=Ue(R0,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:T0})(rr(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Z_=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiOutlinedInput"}),{components:s={},fullWidth:o=!1,inputComponent:l="input",label:u,multiline:d=!1,notched:h,slots:p={},slotProps:m={},type:b="text",...S}=n,x=Ej(n),C=Yh(),$=Wh({props:n,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_={...n,color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:C,fullWidth:o,hiddenLabel:$.hiddenLabel,multiline:d,size:$.size,type:b},M=p.root??s.Root??_j,T=p.input??s.Input??Aj,[R,L]=Nn("notchedOutline",{elementType:Tj,className:x.notchedOutline,shouldForwardComponentProp:!0,ownerState:_,externalForwardedProps:{slots:p,slotProps:m},additionalProps:{label:u!=null&&u!==""&&$.required?B.jsxs(P.Fragment,{children:[u," ","*"]}):u}});return B.jsx(_S,{slots:{root:M,input:T},slotProps:m,renderSuffix:j=>B.jsx(R,{...L,notched:typeof h<"u"?h:!!(j.startAdornment||j.filled||j.focused)}),fullWidth:o,inputComponent:l,multiline:d,ref:r,type:b,...S,classes:{...x,notchedOutline:null}})});Z_.muiName="Input";function V_(e){return Ht("MuiSelect",e)}const Kf=Zt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var KC;const Rj=Ue(U_,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Kf.select}`]:t.select},{[`&.${Kf.select}`]:t[r.variant]},{[`&.${Kf.error}`]:t.error},{[`&.${Kf.multiple}`]:t.multiple}]}})({[`&.${Kf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Oj=Ue(H_,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ee(r.variant)}`],r.open&&t.iconOpen]}})({}),Mj=Ue("input",{shouldForwardProp:e=>g_(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function WC(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Nj(e){return e==null||typeof e=="string"&&!e.trim()}const Lj=e=>{const{classes:t,variant:r,disabled:n,multiple:s,open:o,error:l}=e,u={select:["select",r,n&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${Ee(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Vt(u,V_,t)},Pj=P.forwardRef(function(t,r){var pr,wn;const{"aria-describedby":n,"aria-label":s,autoFocus:o,autoWidth:l,children:u,className:d,defaultOpen:h,defaultValue:p,disabled:m,displayEmpty:b,error:S=!1,IconComponent:x,inputRef:C,labelId:$,MenuProps:_={},multiple:M,name:T,onBlur:R,onChange:L,onClose:j,onFocus:O,onOpen:N,open:z,readOnly:k,renderValue:H,required:q,SelectDisplayProps:V={},tabIndex:W,type:ae,value:Z,variant:ne="standard",...ee}=t,[re,F]=wC({controlled:Z,default:p,name:"Select"}),[J,fe]=wC({controlled:z,default:h,name:"Select"}),ce=P.useRef(null),Ce=P.useRef(null),[Se,me]=P.useState(null),{current:He}=P.useRef(z!=null),[Oe,Pe]=P.useState(),Ne=Kn(r,C),qe=P.useCallback(Ze=>{Ce.current=Ze,Ze&&me(Ze)},[]),Ve=Se==null?void 0:Se.parentNode;P.useImperativeHandle(Ne,()=>({focus:()=>{Ce.current.focus()},node:ce.current,value:re}),[re]),P.useEffect(()=>{h&&J&&Se&&!He&&(Pe(l?null:Ve.clientWidth),Ce.current.focus())},[Se,l]),P.useEffect(()=>{o&&Ce.current.focus()},[o]),P.useEffect(()=>{if(!$)return;const Ze=Is(Ce.current).getElementById($);if(Ze){const zt=()=>{getSelection().isCollapsed&&Ce.current.focus()};return Ze.addEventListener("click",zt),()=>{Ze.removeEventListener("click",zt)}}},[$]);const ht=(Ze,zt)=>{Ze?N&&N(zt):j&&j(zt),He||(Pe(l?null:Ve.clientWidth),fe(Ze))},ze=Ze=>{Ze.button===0&&(Ze.preventDefault(),Ce.current.focus(),ht(!0,Ze))},rt=Ze=>{ht(!1,Ze)},ct=P.Children.toArray(u),nt=Ze=>{const zt=ct.find(nr=>nr.props.value===Ze.target.value);zt!==void 0&&(F(zt.props.value),L&&L(Ze,zt))},bt=Ze=>zt=>{let nr;if(zt.currentTarget.hasAttribute("tabindex")){if(M){nr=Array.isArray(re)?re.slice():[];const mn=re.indexOf(Ze.props.value);mn===-1?nr.push(Ze.props.value):nr.splice(mn,1)}else nr=Ze.props.value;if(Ze.props.onClick&&Ze.props.onClick(zt),re!==nr&&(F(nr),L)){const mn=zt.nativeEvent||zt,zn=new mn.constructor(mn.type,mn);Object.defineProperty(zn,"target",{writable:!0,value:{value:nr,name:T}}),L(zn,Ze)}M||ht(!1,zt)}},Tt=Ze=>{k||[" ","ArrowUp","ArrowDown","Enter"].includes(Ze.key)&&(Ze.preventDefault(),ht(!0,Ze))},Kt=Se!==null&&J,vt=Ze=>{!Kt&&R&&(Object.defineProperty(Ze,"target",{writable:!0,value:{value:re,name:T}}),R(Ze))};delete ee["aria-invalid"];let _e,pt;const Pt=[];let Qt=!1;(_g({value:re})||b)&&(H?_e=H(re):Qt=!0);const ir=ct.map(Ze=>{if(!P.isValidElement(Ze))return null;let zt;if(M){if(!Array.isArray(re))throw new Error(Di(2));zt=re.some(nr=>WC(nr,Ze.props.value)),zt&&Qt&&Pt.push(Ze.props.children)}else zt=WC(re,Ze.props.value),zt&&Qt&&(pt=Ze.props.children);return P.cloneElement(Ze,{"aria-selected":zt?"true":"false",onClick:bt(Ze),onKeyUp:nr=>{nr.key===" "&&nr.preventDefault(),Ze.props.onKeyUp&&Ze.props.onKeyUp(nr)},role:"option",selected:zt,value:void 0,"data-value":Ze.props.value})});Qt&&(M?Pt.length===0?_e=null:_e=Pt.reduce((Ze,zt,nr)=>(Ze.push(zt),nr<Pt.length-1&&Ze.push(", "),Ze),[]):_e=pt);let It=Oe;!l&&He&&Se&&(It=Ve.clientWidth);let hr;typeof W<"u"?hr=W:hr=m?null:0;const Xt=V.id||(T?`mui-component-select-${T}`:void 0),Dt={...t,variant:ne,value:re,open:Kt,error:S},Ye=Lj(Dt),or={..._.PaperProps,...(pr=_.slotProps)==null?void 0:pr.paper},$t={..._.MenuListProps,...(wn=_.slotProps)==null?void 0:wn.list},St=C0();return B.jsxs(P.Fragment,{children:[B.jsx(Rj,{as:"div",ref:qe,tabIndex:hr,role:"combobox","aria-controls":Kt?St:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":Kt?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[$,Xt].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":q?"true":void 0,"aria-invalid":S?"true":void 0,onKeyDown:Tt,onMouseDown:m||k?null:ze,onBlur:vt,onFocus:O,...V,ownerState:Dt,className:Xe(V.className,Ye.select,d),id:Xt,children:Nj(_e)?KC||(KC=B.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):_e}),B.jsx(Mj,{"aria-invalid":S,value:Array.isArray(re)?re.join(","):re,name:T,ref:ce,"aria-hidden":!0,onChange:nt,tabIndex:-1,disabled:m,className:Ye.nativeInput,autoFocus:o,required:q,...ee,ownerState:Dt}),B.jsx(Oj,{as:x,className:Ye.icon,ownerState:Dt}),B.jsx(hj,{id:`menu-${T||""}`,anchorEl:Ve,open:Kt,onClose:rt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},..._,slotProps:{..._.slotProps,list:{"aria-labelledby":$,role:"listbox","aria-multiselectable":M?"true":void 0,disableListWrap:!0,id:St,...$t},paper:{...or,style:{minWidth:It,...or!=null?or.style:null}}},children:ir})]})}),Ij=e=>{const{classes:t}=e,n=Vt({root:["root"]},V_,t);return{...t,...n}},AS={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ga(e)&&e!=="variant"},Dj=Ue(z_,AS)(""),zj=Ue(Z_,AS)(""),jj=Ue(D_,AS)(""),F_=P.forwardRef(function(t,r){const n=Ft({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:o,classes:l={},className:u,defaultOpen:d=!1,displayEmpty:h=!1,IconComponent:p=lD,id:m,input:b,inputProps:S,label:x,labelId:C,MenuProps:$,multiple:_=!1,native:M=!1,onClose:T,onOpen:R,open:L,renderValue:j,SelectDisplayProps:O,variant:N="outlined",...z}=n,k=M?wj:Pj,H=Yh(),q=Wh({props:n,muiFormControl:H,states:["variant","error"]}),V=q.variant||N,W={...n,variant:V,classes:l},ae=Ij(W),{root:Z,...ne}=ae,ee=b||{standard:B.jsx(Dj,{ownerState:W}),outlined:B.jsx(zj,{label:x,ownerState:W}),filled:B.jsx(jj,{ownerState:W})}[V],re=Kn(r,Hd(ee));return B.jsx(P.Fragment,{children:P.cloneElement(ee,{inputComponent:k,inputProps:{children:o,error:q.error,IconComponent:p,variant:V,type:void 0,multiple:_,...M?{id:m}:{autoWidth:s,defaultOpen:d,displayEmpty:h,labelId:C,MenuProps:$,onClose:T,onOpen:R,open:L,renderValue:j,SelectDisplayProps:{id:m,...O}},...S,classes:S?Ln(ne,S.classes):ne,...b?b.props.inputProps:{}},...(_&&M||h)&&V==="outlined"?{notched:!0}:{},ref:re,className:Xe(ee.props.className,u,ae.root),...!b&&{variant:V},...z})})});F_.muiName="Select";const q_=uP({createStyledComponent:Ue("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Ft({props:e,name:"MuiStack"})});function Bj(e){return Ht("MuiToolbar",e)}Zt("MuiToolbar",["root","gutters","regular","dense"]);const Uj=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Vt({root:["root",!r&&"gutters",n]},Bj,t)},Hj=Ue("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(rr(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),Zj=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiToolbar"}),{className:s,component:o="div",disableGutters:l=!1,variant:u="regular",...d}=n,h={...n,component:o,disableGutters:l,variant:u},p=Uj(h);return B.jsx(Hj,{as:o,className:Xe(p.root,s),ref:r,ownerState:h,...d})});function Vj(e){return Ht("MuiToggleButton",e)}const xl=Zt("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),G_=P.createContext({}),K_=P.createContext(void 0);function Fj(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}const qj=e=>{const{classes:t,fullWidth:r,selected:n,disabled:s,size:o,color:l}=e,u={root:["root",n&&"selected",s&&"disabled",r&&"fullWidth",`size${Ee(o)}`,l]};return Vt(u,Vj,t)},Gj=Ue(Nd,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`size${Ee(r.size)}`]]}})(rr(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${xl.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${xl.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gt(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(Gn()).map(([t])=>({props:{color:t},style:{[`&.${xl.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gt(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),Kj=P.forwardRef(function(t,r){const{value:n,...s}=P.useContext(G_),o=P.useContext(K_),l=Od({...s,selected:Fj(t.value,n)},t),u=Ft({props:l,name:"MuiToggleButton"}),{children:d,className:h,color:p="standard",disabled:m=!1,disableFocusRipple:b=!1,fullWidth:S=!1,onChange:x,onClick:C,selected:$,size:_="medium",value:M,...T}=u,R={...u,color:p,disabled:m,disableFocusRipple:b,fullWidth:S,size:_},L=qj(R),j=N=>{C&&(C(N,M),N.defaultPrevented)||x&&x(N,M)},O=o||"";return B.jsx(Gj,{className:Xe(s.className,L.root,h,O),disabled:m,focusRipple:!b,ref:r,onClick:j,onChange:x,value:M,ownerState:R,"aria-pressed":$,...T,children:d})});function Wj(e){return Ht("MuiToggleButtonGroup",e)}const jr=Zt("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Yj=e=>{const{classes:t,orientation:r,fullWidth:n,disabled:s}=e,o={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${Ee(r)}`,s&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Vt(o,Wj,t)},Qj=Ue("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${jr.grouped}`]:t.grouped},{[`& .${jr.grouped}`]:t[`grouped${Ee(r.orientation)}`]},{[`& .${jr.firstButton}`]:t.firstButton},{[`& .${jr.lastButton}`]:t.lastButton},{[`& .${jr.middleButton}`]:t.middleButton},t.root,r.orientation==="vertical"&&t.vertical,r.fullWidth&&t.fullWidth]}})(rr(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${jr.grouped}`]:{[`&.${jr.selected} + .${jr.grouped}.${jr.selected}`]:{borderTop:0,marginTop:0}},[`& .${jr.firstButton},& .${jr.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${jr.lastButton},& .${jr.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${jr.lastButton}.${xl.disabled},& .${jr.middleButton}.${xl.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${jr.grouped}`]:{[`&.${jr.selected} + .${jr.grouped}.${jr.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${jr.firstButton},& .${jr.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${jr.lastButton},& .${jr.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${jr.lastButton}.${xl.disabled},& .${jr.middleButton}.${xl.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Xj=P.forwardRef(function(t,r){const n=Ft({props:t,name:"MuiToggleButtonGroup"}),{children:s,className:o,color:l="standard",disabled:u=!1,exclusive:d=!1,fullWidth:h=!1,onChange:p,orientation:m="horizontal",size:b="medium",value:S,...x}=n,C={...n,disabled:u,fullWidth:h,orientation:m,size:b},$=Yj(C),_=P.useCallback((O,N)=>{if(!p)return;const z=S&&S.indexOf(N);let k;S&&z>=0?(k=S.slice(),k.splice(z,1)):k=S?S.concat(N):[N],p(O,k)},[p,S]),M=P.useCallback((O,N)=>{p&&p(O,S===N?null:N)},[p,S]),T=P.useMemo(()=>({className:$.grouped,onChange:d?M:_,value:S,size:b,fullWidth:h,color:l,disabled:u}),[$.grouped,d,M,_,S,b,h,l,u]),R=OD(s),L=R.length,j=O=>{const N=O===0,z=O===L-1;return N&&z?"":N?$.firstButton:z?$.lastButton:$.middleButton};return B.jsx(Qj,{role:"group",className:Xe($.root,o),ref:r,ownerState:C,...x,children:B.jsx(G_.Provider,{value:T,children:R.map((O,N)=>B.jsx(K_.Provider,{value:j(N),children:O},N))})})}),Jj=r_({themeId:Ns}),Wt={header:{main:"header",logo:{main:"header.logo",image:"header.logo.image",text:"header.logo.text"},versionDropdown:{main:"header.versionDropdown",item:"header.versionDropdown.item",emptyItem:"header.versionDropdown.emptyItem",showAllItem:"header.versionDropdown.moreItem"},settingsButton:"header.settingsButton"},sidebar:{main:"sidebar",close:"sidebar.close",settings:{toggleColorModes:{main:"sidebar.settings.toggleColorModes",buttons:{light:"sidebar.settings.toggleColorModes.buttons.light",system:"sidebar.settings.toggleColorModes.buttons.system",dark:"sidebar.settings.toggleColorModes.buttons.dark"}}},appVersion:"sidebar.settings.appVersion"},loadingIndicator:{main:"loadingIndicator"},landingPage:{projectCategories:{projectCategory:{main:"landingPage.projectCategories.projectCategory",title:"landingPage.projectCategories.projectCategory.title",projects:{main:"landingPage.projectCategories.projectCategory.projects",projectCard:{main:"landingPage.projectCategories.projectCategory.projects.projectCard",title:"landingPage.projectCategories.projectCategory.projects.projectCard.title",actions:{main:"landingPage.projectCategories.projectCategory.projects.projectCard.actions",documentationLink:"landingPage.projectCategories.projectCategory.projects.projectCard.actions.openDocumentation"}}}}}},project:{versionOverview:{majorVersionCard:{main:"project.versionOverview.majorVersionCard",versionItem:{main:"project.versionOverview.majorVersionCard.versionItem",latestBadge:"project.versionOverview.majorVersionCard.versionItem.latestBadge"}}},documentation:{main:"project.documentation",latestVersionWarningBanner:"project.documentation.latestVersionWarningBanner",documentationIframe:"project.documentation.documentationIframe"}},errorComponent:{main:"errorComponent",icon:"errorComponent.icon",title:"errorComponent.title",description:"errorComponent.description",actionButton:"errorComponent.actionButton"},plugins:{orama:{searchButton:"plugins.orama.searchButton",searchBox:"plugins.orama.searchBox"},footer:{main:"footer",copyright:"footer.copyright",linkGroup:{main:"footer.linkGroup",title:"footer.linkGroup.title",link:{main:"footer.linkGroup.link.main"}}}}};function W_(e,t){return function(){return e.apply(t,arguments)}}const{toString:eB}=Object.prototype,{getPrototypeOf:RS}=Object,{iterator:O0,toStringTag:Y_}=Symbol,M0=(e=>t=>{const r=eB.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),js=e=>(e=e.toLowerCase(),t=>M0(t)===e),N0=e=>t=>typeof t===e,{isArray:Zd}=Array,Th=N0("undefined");function tB(e){return e!==null&&!Th(e)&&e.constructor!==null&&!Th(e.constructor)&&Oa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Q_=js("ArrayBuffer");function rB(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Q_(e.buffer),t}const nB=N0("string"),Oa=N0("function"),X_=N0("number"),L0=e=>e!==null&&typeof e=="object",aB=e=>e===!0||e===!1,eg=e=>{if(M0(e)!=="object")return!1;const t=RS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Y_ in e)&&!(O0 in e)},sB=js("Date"),iB=js("File"),oB=js("Blob"),lB=js("FileList"),cB=e=>L0(e)&&Oa(e.pipe),uB=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oa(e.append)&&((t=M0(e))==="formdata"||t==="object"&&Oa(e.toString)&&e.toString()==="[object FormData]"))},dB=js("URLSearchParams"),[fB,hB,pB,mB]=["ReadableStream","Request","Response","Headers"].map(js),gB=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qh(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),Zd(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),l=o.length;let u;for(n=0;n<l;n++)u=o[n],t.call(null,e[u],u,e)}}function J_(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const wl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,eT=e=>!Th(e)&&e!==wl;function Fv(){const{caseless:e}=eT(this)&&this||{},t={},r=(n,s)=>{const o=e&&J_(t,s)||s;eg(t[o])&&eg(n)?t[o]=Fv(t[o],n):eg(n)?t[o]=Fv({},n):Zd(n)?t[o]=n.slice():t[o]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Qh(arguments[n],r);return t}const yB=(e,t,r,{allOwnKeys:n}={})=>(Qh(t,(s,o)=>{r&&Oa(s)?e[o]=W_(s,r):e[o]=s},{allOwnKeys:n}),e),bB=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vB=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},SB=(e,t,r,n)=>{let s,o,l;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)l=s[o],(!n||n(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=r!==!1&&RS(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},xB=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},wB=e=>{if(!e)return null;if(Zd(e))return e;let t=e.length;if(!X_(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},CB=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&RS(Uint8Array)),$B=(e,t)=>{const n=(e&&e[O0]).call(e);let s;for(;(s=n.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},kB=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},EB=js("HTMLFormElement"),_B=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),YC=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),TB=js("RegExp"),tT=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Qh(r,(s,o)=>{let l;(l=t(s,o,e))!==!1&&(n[o]=l||s)}),Object.defineProperties(e,n)},AB=e=>{tT(e,(t,r)=>{if(Oa(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Oa(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},RB=(e,t)=>{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return Zd(e)?n(e):n(String(e).split(t)),r},OB=()=>{},MB=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function NB(e){return!!(e&&Oa(e.append)&&e[Y_]==="FormData"&&e[O0])}const LB=e=>{const t=new Array(10),r=(n,s)=>{if(L0(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const o=Zd(n)?[]:{};return Qh(n,(l,u)=>{const d=r(l,s+1);!Th(d)&&(o[u]=d)}),t[s]=void 0,o}}return n};return r(e,0)},PB=js("AsyncFunction"),IB=e=>e&&(L0(e)||Oa(e))&&Oa(e.then)&&Oa(e.catch),rT=((e,t)=>e?setImmediate:t?((r,n)=>(wl.addEventListener("message",({source:s,data:o})=>{s===wl&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),wl.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Oa(wl.postMessage)),DB=typeof queueMicrotask<"u"?queueMicrotask.bind(wl):typeof process<"u"&&process.nextTick||rT,zB=e=>e!=null&&Oa(e[O0]),he={isArray:Zd,isArrayBuffer:Q_,isBuffer:tB,isFormData:uB,isArrayBufferView:rB,isString:nB,isNumber:X_,isBoolean:aB,isObject:L0,isPlainObject:eg,isReadableStream:fB,isRequest:hB,isResponse:pB,isHeaders:mB,isUndefined:Th,isDate:sB,isFile:iB,isBlob:oB,isRegExp:TB,isFunction:Oa,isStream:cB,isURLSearchParams:dB,isTypedArray:CB,isFileList:lB,forEach:Qh,merge:Fv,extend:yB,trim:gB,stripBOM:bB,inherits:vB,toFlatObject:SB,kindOf:M0,kindOfTest:js,endsWith:xB,toArray:wB,forEachEntry:$B,matchAll:kB,isHTMLForm:EB,hasOwnProperty:YC,hasOwnProp:YC,reduceDescriptors:tT,freezeMethods:AB,toObjectSet:RB,toCamelCase:_B,noop:OB,toFiniteNumber:MB,findKey:J_,global:wl,isContextDefined:eT,isSpecCompliantForm:NB,toJSONObject:LB,isAsyncFn:PB,isThenable:IB,setImmediate:rT,asap:DB,isIterable:zB};function Ct(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}he.inherits(Ct,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.status}}});const nT=Ct.prototype,aT={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{aT[e]={value:e}});Object.defineProperties(Ct,aT);Object.defineProperty(nT,"isAxiosError",{value:!0});Ct.from=(e,t,r,n,s,o)=>{const l=Object.create(nT);return he.toFlatObject(e,l,function(d){return d!==Error.prototype},u=>u!=="isAxiosError"),Ct.call(l,e.message,t,r,n,s),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const jB=null;function qv(e){return he.isPlainObject(e)||he.isArray(e)}function sT(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function QC(e,t,r){return e?e.concat(t).map(function(s,o){return s=sT(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function BB(e){return he.isArray(e)&&!e.some(qv)}const UB=he.toFlatObject(he,{},null,function(t){return/^is[A-Z]/.test(t)});function P0(e,t,r){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=he.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,$){return!he.isUndefined($[C])});const n=r.metaTokens,s=r.visitor||p,o=r.dots,l=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(s))throw new TypeError("visitor must be a function");function h(x){if(x===null)return"";if(he.isDate(x))return x.toISOString();if(he.isBoolean(x))return x.toString();if(!d&&he.isBlob(x))throw new Ct("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(x)||he.isTypedArray(x)?d&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function p(x,C,$){let _=x;if(x&&!$&&typeof x=="object"){if(he.endsWith(C,"{}"))C=n?C:C.slice(0,-2),x=JSON.stringify(x);else if(he.isArray(x)&&BB(x)||(he.isFileList(x)||he.endsWith(C,"[]"))&&(_=he.toArray(x)))return C=sT(C),_.forEach(function(T,R){!(he.isUndefined(T)||T===null)&&t.append(l===!0?QC([C],R,o):l===null?C:C+"[]",h(T))}),!1}return qv(x)?!0:(t.append(QC($,C,o),h(x)),!1)}const m=[],b=Object.assign(UB,{defaultVisitor:p,convertValue:h,isVisitable:qv});function S(x,C){if(!he.isUndefined(x)){if(m.indexOf(x)!==-1)throw Error("Circular reference detected in "+C.join("."));m.push(x),he.forEach(x,function(_,M){(!(he.isUndefined(_)||_===null)&&s.call(t,_,he.isString(M)?M.trim():M,C,b))===!0&&S(_,C?C.concat(M):[M])}),m.pop()}}if(!he.isObject(e))throw new TypeError("data must be an object");return S(e),t}function XC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function OS(e,t){this._pairs=[],e&&P0(e,this,t)}const iT=OS.prototype;iT.append=function(t,r){this._pairs.push([t,r])};iT.toString=function(t){const r=t?function(n){return t.call(this,n,XC)}:XC;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function HB(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oT(e,t,r){if(!t)return e;const n=r&&r.encode||HB;he.isFunction(r)&&(r={serialize:r});const s=r&&r.serialize;let o;if(s?o=s(t,r):o=he.isURLSearchParams(t)?t.toString():new OS(t,r).toString(n),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class JC{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){he.forEach(this.handlers,function(n){n!==null&&t(n)})}}const lT={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ZB=typeof URLSearchParams<"u"?URLSearchParams:OS,VB=typeof FormData<"u"?FormData:null,FB=typeof Blob<"u"?Blob:null,qB={isBrowser:!0,classes:{URLSearchParams:ZB,FormData:VB,Blob:FB},protocols:["http","https","file","blob","url","data"]},MS=typeof window<"u"&&typeof document<"u",Gv=typeof navigator=="object"&&navigator||void 0,GB=MS&&(!Gv||["ReactNative","NativeScript","NS"].indexOf(Gv.product)<0),KB=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",WB=MS&&window.location.href||"http://localhost",YB=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:MS,hasStandardBrowserEnv:GB,hasStandardBrowserWebWorkerEnv:KB,navigator:Gv,origin:WB},Symbol.toStringTag,{value:"Module"})),na={...YB,...qB};function QB(e,t){return P0(e,new na.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,o){return na.isNode&&he.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function XB(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function JB(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function cT(e){function t(r,n,s,o){let l=r[o++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),d=o>=r.length;return l=!l&&he.isArray(s)?s.length:l,d?(he.hasOwnProp(s,l)?s[l]=[s[l],n]:s[l]=n,!u):((!s[l]||!he.isObject(s[l]))&&(s[l]=[]),t(r,n,s[l],o)&&he.isArray(s[l])&&(s[l]=JB(s[l])),!u)}if(he.isFormData(e)&&he.isFunction(e.entries)){const r={};return he.forEachEntry(e,(n,s)=>{t(XB(n),s,r,0)}),r}return null}function eU(e,t,r){if(he.isString(e))try{return(t||JSON.parse)(e),he.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Xh={transitional:lT,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=he.isObject(t);if(o&&he.isHTMLForm(t)&&(t=new FormData(t)),he.isFormData(t))return s?JSON.stringify(cT(t)):t;if(he.isArrayBuffer(t)||he.isBuffer(t)||he.isStream(t)||he.isFile(t)||he.isBlob(t)||he.isReadableStream(t))return t;if(he.isArrayBufferView(t))return t.buffer;if(he.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return QB(t,this.formSerializer).toString();if((u=he.isFileList(t))||n.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return P0(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(r.setContentType("application/json",!1),eU(t)):t}],transformResponse:[function(t){const r=this.transitional||Xh.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(he.isResponse(t)||he.isReadableStream(t))return t;if(t&&he.isString(t)&&(n&&!this.responseType||s)){const l=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(l)throw u.name==="SyntaxError"?Ct.from(u,Ct.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:na.classes.FormData,Blob:na.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],e=>{Xh.headers[e]={}});const tU=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rU=e=>{const t={};let r,n,s;return e&&e.split(`
`).forEach(function(l){s=l.indexOf(":"),r=l.substring(0,s).trim().toLowerCase(),n=l.substring(s+1).trim(),!(!r||t[r]&&tU[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},e$=Symbol("internals");function Wf(e){return e&&String(e).trim().toLowerCase()}function tg(e){return e===!1||e==null?e:he.isArray(e)?e.map(tg):String(e)}function nU(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const aU=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fb(e,t,r,n,s){if(he.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!he.isString(t)){if(he.isString(n))return t.indexOf(n)!==-1;if(he.isRegExp(n))return n.test(t)}}function sU(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function iU(e,t){const r=he.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,o,l){return this[n].call(this,t,s,o,l)},configurable:!0})})}let Ma=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function o(u,d,h){const p=Wf(d);if(!p)throw new Error("header name must be a non-empty string");const m=he.findKey(s,p);(!m||s[m]===void 0||h===!0||h===void 0&&s[m]!==!1)&&(s[m||d]=tg(u))}const l=(u,d)=>he.forEach(u,(h,p)=>o(h,p,d));if(he.isPlainObject(t)||t instanceof this.constructor)l(t,r);else if(he.isString(t)&&(t=t.trim())&&!aU(t))l(rU(t),r);else if(he.isObject(t)&&he.isIterable(t)){let u={},d,h;for(const p of t){if(!he.isArray(p))throw TypeError("Object iterator must return a key-value pair");u[h=p[0]]=(d=u[h])?he.isArray(d)?[...d,p[1]]:[d,p[1]]:p[1]}l(u,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=Wf(t),t){const n=he.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return nU(s);if(he.isFunction(r))return r.call(this,s,n);if(he.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Wf(t),t){const n=he.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Fb(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function o(l){if(l=Wf(l),l){const u=he.findKey(n,l);u&&(!r||Fb(n,n[u],u,r))&&(delete n[u],s=!0)}}return he.isArray(t)?t.forEach(o):o(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const o=r[n];(!t||Fb(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const r=this,n={};return he.forEach(this,(s,o)=>{const l=he.findKey(n,o);if(l){r[l]=tg(s),delete r[o];return}const u=t?sU(o):String(o).trim();u!==o&&delete r[o],r[u]=tg(s),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return he.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&he.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[e$]=this[e$]={accessors:{}}).accessors,s=this.prototype;function o(l){const u=Wf(l);n[u]||(iU(s,l),n[u]=!0)}return he.isArray(t)?t.forEach(o):o(t),this}};Ma.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);he.reduceDescriptors(Ma.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});he.freezeMethods(Ma);function qb(e,t){const r=this||Xh,n=t||r,s=Ma.from(n.headers);let o=n.data;return he.forEach(e,function(u){o=u.call(r,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function uT(e){return!!(e&&e.__CANCEL__)}function Vd(e,t,r){Ct.call(this,e??"canceled",Ct.ERR_CANCELED,t,r),this.name="CanceledError"}he.inherits(Vd,Ct,{__CANCEL__:!0});function dT(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ct("Request failed with status code "+r.status,[Ct.ERR_BAD_REQUEST,Ct.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function oU(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lU(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,o=0,l;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),p=n[o];l||(l=h),r[s]=d,n[s]=h;let m=o,b=0;for(;m!==s;)b+=r[m++],m=m%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),h-l<t)return;const S=p&&h-p;return S?Math.round(b*1e3/S):void 0}}function cU(e,t){let r=0,n=1e3/t,s,o;const l=(h,p=Date.now())=>{r=p,s=null,o&&(clearTimeout(o),o=null),e.apply(null,h)};return[(...h)=>{const p=Date.now(),m=p-r;m>=n?l(h,p):(s=h,o||(o=setTimeout(()=>{o=null,l(s)},n-m)))},()=>s&&l(s)]}const Tg=(e,t,r=3)=>{let n=0;const s=lU(50,250);return cU(o=>{const l=o.loaded,u=o.lengthComputable?o.total:void 0,d=l-n,h=s(d),p=l<=u;n=l;const m={loaded:l,total:u,progress:u?l/u:void 0,bytes:d,rate:h||void 0,estimated:h&&u&&p?(u-l)/h:void 0,event:o,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(m)},r)},t$=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},r$=e=>(...t)=>he.asap(()=>e(...t)),uU=na.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,na.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(na.origin),na.navigator&&/(msie|trident)/i.test(na.navigator.userAgent)):()=>!0,dU=na.hasStandardBrowserEnv?{write(e,t,r,n,s,o){const l=[e+"="+encodeURIComponent(t)];he.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),he.isString(n)&&l.push("path="+n),he.isString(s)&&l.push("domain="+s),o===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fU(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function hU(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fT(e,t,r){let n=!fU(t);return e&&(n||r==!1)?hU(e,t):t}const n$=e=>e instanceof Ma?{...e}:e;function Bl(e,t){t=t||{};const r={};function n(h,p,m,b){return he.isPlainObject(h)&&he.isPlainObject(p)?he.merge.call({caseless:b},h,p):he.isPlainObject(p)?he.merge({},p):he.isArray(p)?p.slice():p}function s(h,p,m,b){if(he.isUndefined(p)){if(!he.isUndefined(h))return n(void 0,h,m,b)}else return n(h,p,m,b)}function o(h,p){if(!he.isUndefined(p))return n(void 0,p)}function l(h,p){if(he.isUndefined(p)){if(!he.isUndefined(h))return n(void 0,h)}else return n(void 0,p)}function u(h,p,m){if(m in t)return n(h,p);if(m in e)return n(void 0,h)}const d={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(h,p,m)=>s(n$(h),n$(p),m,!0)};return he.forEach(Object.keys(Object.assign({},e,t)),function(p){const m=d[p]||s,b=m(e[p],t[p],p);he.isUndefined(b)&&m!==u||(r[p]=b)}),r}const hT=e=>{const t=Bl({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:o,headers:l,auth:u}=t;t.headers=l=Ma.from(l),t.url=oT(fT(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let d;if(he.isFormData(r)){if(na.hasStandardBrowserEnv||na.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((d=l.getContentType())!==!1){const[h,...p]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];l.setContentType([h||"multipart/form-data",...p].join("; "))}}if(na.hasStandardBrowserEnv&&(n&&he.isFunction(n)&&(n=n(t)),n||n!==!1&&uU(t.url))){const h=s&&o&&dU.read(o);h&&l.set(s,h)}return t},pU=typeof XMLHttpRequest<"u",mU=pU&&function(e){return new Promise(function(r,n){const s=hT(e);let o=s.data;const l=Ma.from(s.headers).normalize();let{responseType:u,onUploadProgress:d,onDownloadProgress:h}=s,p,m,b,S,x;function C(){S&&S(),x&&x(),s.cancelToken&&s.cancelToken.unsubscribe(p),s.signal&&s.signal.removeEventListener("abort",p)}let $=new XMLHttpRequest;$.open(s.method.toUpperCase(),s.url,!0),$.timeout=s.timeout;function _(){if(!$)return;const T=Ma.from("getAllResponseHeaders"in $&&$.getAllResponseHeaders()),L={data:!u||u==="text"||u==="json"?$.responseText:$.response,status:$.status,statusText:$.statusText,headers:T,config:e,request:$};dT(function(O){r(O),C()},function(O){n(O),C()},L),$=null}"onloadend"in $?$.onloadend=_:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.indexOf("file:")===0)||setTimeout(_)},$.onabort=function(){$&&(n(new Ct("Request aborted",Ct.ECONNABORTED,e,$)),$=null)},$.onerror=function(){n(new Ct("Network Error",Ct.ERR_NETWORK,e,$)),$=null},$.ontimeout=function(){let R=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const L=s.transitional||lT;s.timeoutErrorMessage&&(R=s.timeoutErrorMessage),n(new Ct(R,L.clarifyTimeoutError?Ct.ETIMEDOUT:Ct.ECONNABORTED,e,$)),$=null},o===void 0&&l.setContentType(null),"setRequestHeader"in $&&he.forEach(l.toJSON(),function(R,L){$.setRequestHeader(L,R)}),he.isUndefined(s.withCredentials)||($.withCredentials=!!s.withCredentials),u&&u!=="json"&&($.responseType=s.responseType),h&&([b,x]=Tg(h,!0),$.addEventListener("progress",b)),d&&$.upload&&([m,S]=Tg(d),$.upload.addEventListener("progress",m),$.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(p=T=>{$&&(n(!T||T.type?new Vd(null,e,$):T),$.abort(),$=null)},s.cancelToken&&s.cancelToken.subscribe(p),s.signal&&(s.signal.aborted?p():s.signal.addEventListener("abort",p)));const M=oU(s.url);if(M&&na.protocols.indexOf(M)===-1){n(new Ct("Unsupported protocol "+M+":",Ct.ERR_BAD_REQUEST,e));return}$.send(o||null)})},gU=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const o=function(h){if(!s){s=!0,u();const p=h instanceof Error?h:this.reason;n.abort(p instanceof Ct?p:new Vd(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,o(new Ct(`timeout ${t} of ms exceeded`,Ct.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(o):h.removeEventListener("abort",o)}),e=null)};e.forEach(h=>h.addEventListener("abort",o));const{signal:d}=n;return d.unsubscribe=()=>he.asap(u),d}},yU=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},bU=async function*(e,t){for await(const r of vU(e))yield*yU(r,t)},vU=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},a$=(e,t,r,n)=>{const s=bU(e,t);let o=0,l,u=d=>{l||(l=!0,n&&n(d))};return new ReadableStream({async pull(d){try{const{done:h,value:p}=await s.next();if(h){u(),d.close();return}let m=p.byteLength;if(r){let b=o+=m;r(b)}d.enqueue(new Uint8Array(p))}catch(h){throw u(h),h}},cancel(d){return u(d),s.return()}},{highWaterMark:2})},I0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",pT=I0&&typeof ReadableStream=="function",SU=I0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),mT=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xU=pT&&mT(()=>{let e=!1;const t=new Request(na.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),s$=64*1024,Kv=pT&&mT(()=>he.isReadableStream(new Response("").body)),Ag={stream:Kv&&(e=>e.body)};I0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ag[t]&&(Ag[t]=he.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Ct(`Response type '${t}' is not supported`,Ct.ERR_NOT_SUPPORT,n)})})})(new Response);const wU=async e=>{if(e==null)return 0;if(he.isBlob(e))return e.size;if(he.isSpecCompliantForm(e))return(await new Request(na.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(he.isArrayBufferView(e)||he.isArrayBuffer(e))return e.byteLength;if(he.isURLSearchParams(e)&&(e=e+""),he.isString(e))return(await SU(e)).byteLength},CU=async(e,t)=>{const r=he.toFiniteNumber(e.getContentLength());return r??wU(t)},$U=I0&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:o,timeout:l,onDownloadProgress:u,onUploadProgress:d,responseType:h,headers:p,withCredentials:m="same-origin",fetchOptions:b}=hT(e);h=h?(h+"").toLowerCase():"text";let S=gU([s,o&&o.toAbortSignal()],l),x;const C=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let $;try{if(d&&xU&&r!=="get"&&r!=="head"&&($=await CU(p,n))!==0){let L=new Request(t,{method:"POST",body:n,duplex:"half"}),j;if(he.isFormData(n)&&(j=L.headers.get("content-type"))&&p.setContentType(j),L.body){const[O,N]=t$($,Tg(r$(d)));n=a$(L.body,s$,O,N)}}he.isString(m)||(m=m?"include":"omit");const _="credentials"in Request.prototype;x=new Request(t,{...b,signal:S,method:r.toUpperCase(),headers:p.normalize().toJSON(),body:n,duplex:"half",credentials:_?m:void 0});let M=await fetch(x,b);const T=Kv&&(h==="stream"||h==="response");if(Kv&&(u||T&&C)){const L={};["status","statusText","headers"].forEach(z=>{L[z]=M[z]});const j=he.toFiniteNumber(M.headers.get("content-length")),[O,N]=u&&t$(j,Tg(r$(u),!0))||[];M=new Response(a$(M.body,s$,O,()=>{N&&N(),C&&C()}),L)}h=h||"text";let R=await Ag[he.findKey(Ag,h)||"text"](M,e);return!T&&C&&C(),await new Promise((L,j)=>{dT(L,j,{data:R,headers:Ma.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:x})})}catch(_){throw C&&C(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new Ct("Network Error",Ct.ERR_NETWORK,e,x),{cause:_.cause||_}):Ct.from(_,_&&_.code,e,x)}}),Wv={http:jB,xhr:mU,fetch:$U};he.forEach(Wv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const i$=e=>`- ${e}`,kU=e=>he.isFunction(e)||e===null||e===!1,gT={getAdapter:e=>{e=he.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let o=0;o<t;o++){r=e[o];let l;if(n=r,!kU(r)&&(n=Wv[(l=String(r)).toLowerCase()],n===void 0))throw new Ct(`Unknown adapter '${l}'`);if(n)break;s[l||"#"+o]=n}if(!n){const o=Object.entries(s).map(([u,d])=>`adapter ${u} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=t?o.length>1?`since :
`+o.map(i$).join(`
`):" "+i$(o[0]):"as no adapter specified";throw new Ct("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return n},adapters:Wv};function Gb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vd(null,e)}function o$(e){return Gb(e),e.headers=Ma.from(e.headers),e.data=qb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gT.getAdapter(e.adapter||Xh.adapter)(e).then(function(n){return Gb(e),n.data=qb.call(e,e.transformResponse,n),n.headers=Ma.from(n.headers),n},function(n){return uT(n)||(Gb(e),n&&n.response&&(n.response.data=qb.call(e,e.transformResponse,n.response),n.response.headers=Ma.from(n.response.headers))),Promise.reject(n)})}const yT="1.10.0",D0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{D0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const l$={};D0.transitional=function(t,r,n){function s(o,l){return"[Axios v"+yT+"] Transitional option '"+o+"'"+l+(n?". "+n:"")}return(o,l,u)=>{if(t===!1)throw new Ct(s(l," has been removed"+(r?" in "+r:"")),Ct.ERR_DEPRECATED);return r&&!l$[l]&&(l$[l]=!0,console.warn(s(l," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,l,u):!0}};D0.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function EU(e,t,r){if(typeof e!="object")throw new Ct("options must be an object",Ct.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const o=n[s],l=t[o];if(l){const u=e[o],d=u===void 0||l(u,o,e);if(d!==!0)throw new Ct("option "+o+" must be "+d,Ct.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ct("Unknown option "+o,Ct.ERR_BAD_OPTION)}}const rg={assertOptions:EU,validators:D0},Ys=rg.validators;let Ll=class{constructor(t){this.defaults=t||{},this.interceptors={request:new JC,response:new JC}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Bl(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:o}=r;n!==void 0&&rg.assertOptions(n,{silentJSONParsing:Ys.transitional(Ys.boolean),forcedJSONParsing:Ys.transitional(Ys.boolean),clarifyTimeoutError:Ys.transitional(Ys.boolean)},!1),s!=null&&(he.isFunction(s)?r.paramsSerializer={serialize:s}:rg.assertOptions(s,{encode:Ys.function,serialize:Ys.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),rg.assertOptions(r,{baseUrl:Ys.spelling("baseURL"),withXsrfToken:Ys.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let l=o&&he.merge(o.common,o[r.method]);o&&he.forEach(["delete","get","head","post","put","patch","common"],x=>{delete o[x]}),r.headers=Ma.concat(l,o);const u=[];let d=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(r)===!1||(d=d&&C.synchronous,u.unshift(C.fulfilled,C.rejected))});const h=[];this.interceptors.response.forEach(function(C){h.push(C.fulfilled,C.rejected)});let p,m=0,b;if(!d){const x=[o$.bind(this),void 0];for(x.unshift.apply(x,u),x.push.apply(x,h),b=x.length,p=Promise.resolve(r);m<b;)p=p.then(x[m++],x[m++]);return p}b=u.length;let S=r;for(m=0;m<b;){const x=u[m++],C=u[m++];try{S=x(S)}catch($){C.call(this,$);break}}try{p=o$.call(this,S)}catch(x){return Promise.reject(x)}for(m=0,b=h.length;m<b;)p=p.then(h[m++],h[m++]);return p}getUri(t){t=Bl(this.defaults,t);const r=fT(t.baseURL,t.url,t.allowAbsoluteUrls);return oT(r,t.params,t.paramsSerializer)}};he.forEach(["delete","get","head","options"],function(t){Ll.prototype[t]=function(r,n){return this.request(Bl(n||{},{method:t,url:r,data:(n||{}).data}))}});he.forEach(["post","put","patch"],function(t){function r(n){return function(o,l,u){return this.request(Bl(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}Ll.prototype[t]=r(),Ll.prototype[t+"Form"]=r(!0)});let _U=class bT{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(s=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](s);n._listeners=null}),this.promise.then=s=>{let o;const l=new Promise(u=>{n.subscribe(u),o=u}).then(s);return l.cancel=function(){n.unsubscribe(o)},l},t(function(o,l,u){n.reason||(n.reason=new Vd(o,l,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new bT(function(s){t=s}),cancel:t}}};function TU(e){return function(r){return e.apply(null,r)}}function AU(e){return he.isObject(e)&&e.isAxiosError===!0}const Yv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Yv).forEach(([e,t])=>{Yv[t]=e});function vT(e){const t=new Ll(e),r=W_(Ll.prototype.request,t);return he.extend(r,Ll.prototype,t,{allOwnKeys:!0}),he.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return vT(Bl(e,s))},r}const Dr=vT(Xh);Dr.Axios=Ll;Dr.CanceledError=Vd;Dr.CancelToken=_U;Dr.isCancel=uT;Dr.VERSION=yT;Dr.toFormData=P0;Dr.AxiosError=Ct;Dr.Cancel=Dr.CanceledError;Dr.all=function(t){return Promise.all(t)};Dr.spread=TU;Dr.isAxiosError=AU;Dr.mergeConfig=Bl;Dr.AxiosHeaders=Ma;Dr.formToJSON=e=>cT(he.isHTMLForm(e)?new FormData(e):e);Dr.getAdapter=gT.getAdapter;Dr.HttpStatusCode=Yv;Dr.default=Dr;const{Axios:mY,AxiosError:RU,CanceledError:gY,isCancel:yY,CancelToken:bY,VERSION:vY,all:SY,Cancel:xY,isAxiosError:wY,spread:CY,toFormData:$Y,AxiosHeaders:kY,HttpStatusCode:EY,formToJSON:_Y,getAdapter:TY,mergeConfig:AY}=Dr,Rg=async(e,t)=>(await Dr.get(`/api/projects/${e}/versions/${t}`)).data,ST=async e=>(await Dr.get(`/api/projects/${e}/versions/`)).data,OU=async()=>(await Dr.get("/api/projects/")).data,MU=async()=>(await Dr.get("/api/version/")).data,NU=async()=>(await Dr.get("/api/project_categories/")).data,NS=async e=>(await Dr.get(`/api/plugins/${e}/`)).data;function LU({selectedVersion:e,latestVersion:t,versions:r,numVersionsPreview:n=5,onVersionChange:s,...o}){const l=d=>B.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[B.jsx("span",{children:d}),t&&t==d&&B.jsx(T_,{label:"latest",size:"small",color:"success",style:{marginLeft:8}})]}),u=d=>{d.target.value&&s(d)};return B.jsxs(Oz,{size:"small",variant:"outlined",sx:{minWidth:120},children:[B.jsx(Vz,{children:"Version"}),B.jsxs(F_,{"data-testid":Wt.header.versionDropdown.main,id:o.id,value:e==="latest"?t:e,onChange:u,renderValue:l,label:"Select version...",sx:{minWidth:"160px",mr:1},children:[B.jsx(Vb,{value:"","data-testid":Wt.header.versionDropdown.emptyItem},"empty"),r?[...r].reverse().slice(0,n).map(d=>B.jsx(Vb,{value:d,"data-testid":Wt.header.versionDropdown.item,children:l(d)},d)):null,B.jsx(Vb,{value:"all","data-testid":Wt.header.versionDropdown.showAllItem,children:"...show all"},"all")]})]})}const PU=oa(B.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"})),IU=oa(B.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),DU=oa(B.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"})),zU=oa(B.jsx("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"})),jU=oa(B.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16.01H3V4.99h18zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1.5-1.5-1.5V8h-2.5L12 6.5 10.5 8H8v2.5L6.5 12 8 13.5zm4-7c1.66 0 3 1.34 3 3s-1.34 3-3 3z"})),BU=Ue(gs)(({theme:e})=>({margin:"16px 0 8px",fontWeight:e.typography.fontWeightRegular,fontSize:e.typography.pxToRem(12),textTransform:"uppercase",letterSpacing:".1rem",color:e.palette.text.primary})),Kb=Ue(Kj)({display:"flex",justifyContent:"center",width:"100%","& > *":{marginRight:"8px"}});function UU(e){const{mode:t,setMode:r}=E0(),n=(s,o)=>{o!==null&&r(o)};return B.jsxs($z,{"data-testid":Wt.sidebar.main,anchor:"right",onClose:()=>e.setOpen(!1),open:e.open,slotProps:{paper:{elevation:0,sx:{borderRadius:"10px 0px 0px 10px",border:"1px solid",borderColor:"divider"}}},children:[B.jsxs(ya,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1},children:[B.jsx(gs,{children:"Settings"}),B.jsx(E_,{onClick:()=>e.setOpen(!1),edge:"end","aria-label":"close","data-testid":Wt.sidebar.close,children:B.jsx(IU,{})})]}),B.jsx(_h,{}),B.jsxs(ya,{sx:{pl:2,pr:2},children:[B.jsx(BU,{id:"settings-mode",children:"Color Mode"}),B.jsxs(Xj,{exclusive:!0,value:t,color:"primary",onChange:n,"aria-labelledby":"settings-mode",fullWidth:!0,"data-testid":Wt.sidebar.settings.toggleColorModes.main,children:[B.jsxs(Kb,{value:"light","aria-label":"light","data-testid":Wt.sidebar.settings.toggleColorModes.buttons.light,children:[B.jsx(DU,{fontSize:"small"}),"Light"]}),B.jsxs(Kb,{value:"system","aria-label":"system","data-testid":Wt.sidebar.settings.toggleColorModes.buttons.system,children:[B.jsx(jU,{fontSize:"small"}),"System"]}),B.jsxs(Kb,{value:"dark","aria-label":"dark","data-testid":Wt.sidebar.settings.toggleColorModes.buttons.dark,children:[B.jsx(zU,{fontSize:"small"}),"Dark"]})]})]}),B.jsxs(ya,{sx:{mt:"auto",px:2,py:2},children:[B.jsx(_h,{sx:{mb:1}}),B.jsxs(gs,{variant:"caption",color:"text.secondary","data-testid":Wt.sidebar.appVersion,children:["vdoc ",e.appVersion??"N/A"]})]})]})}var HU=Object.defineProperty,g=(e,t)=>HU(e,"name",{value:t,configurable:!0}),ZU=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};function xT(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}g(xT,"styleInject");var VU=ZU({"./orama-button_25.entry.js":()=>wh(()=>import("./orama-button_25.entry-HR7XE4SX-JpJ1wXHp.js"),[]),"./orama-logo-icon.entry.js":()=>wh(()=>import("./orama-logo-icon.entry-XMUYJNUC-CFf3ehTu.js"),[])}),FU="orama-ui",Gl={experimentalSlotFixes:!0,hydratedSelectorName:"hydrated",lazyLoad:!0,shadowDom:!0,slotRelocation:!0,updatable:!0},qU=Object.defineProperty,GU=g((e,t)=>{for(var r in t)qU(e,r,{get:t[r],enumerable:!0})},"__export"),KU="http://www.w3.org/2000/svg",WU="http://www.w3.org/1999/xhtml",wT=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(wT||{}),CT=(e=>(e.Array="array",e.Date="date",e.Map="map",e.Object="object",e.RegularExpression="regexp",e.Set="set",e.Channel="channel",e.Symbol="symbol",e))(CT||{}),Wb="type",Yb="value",Qv="serialized:",ps=g(e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},"getHostRef"),RY=g((e,t)=>{e.__stencil__getHostRef=()=>t,t.$lazyInstance$=e},"registerInstance"),YU=g((e,t)=>{let r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[];let n=r;return e.__stencil__getHostRef=()=>n,n},"registerHost"),c$=g((e,t)=>t in e,"isMemberInElement"),Ni=g((e,t)=>(0,console.error)(e,t),"consoleError"),Qb=new Map,QU=g((e,t,r)=>{let n=e.$tagName$.replace(/-/g,"_"),s=e.$lazyBundleId$;if(!s)return;let o=Qb.get(s);if(o)return o[n];if(!r||!Gl.hotModuleReplacement){let l=g(u=>(Qb.set(s,u),u[n]),"processMod");switch(s){case"orama-button_25":return wh(()=>import("./orama-button_25.entry-HR7XE4SX-JpJ1wXHp.js"),[]).then(l,Ni);case"orama-logo-icon":return wh(()=>import("./orama-logo-icon.entry-XMUYJNUC-CFf3ehTu.js"),[]).then(l,Ni)}}return VU(`./${s}.entry.js`).then(l=>(Qb.set(s,l),l[n]),l=>{Ni(l,t.$hostElement$)})},"loadModule"),Og=new Map,XU="r",JU="o",eH="s",tH="t",rH="c",Ah="s-id",Mg="sty-id",u$="c-id",nH="{visibility:hidden}.hydrated{visibility:inherit}",$T="slot-fb{display:contents}slot-fb[hidden]{display:none}",d$="http://www.w3.org/1999/xlink",yr=typeof window<"u"?window:{};yr.HTMLElement;var tr={$flags$:0,$resourcesUrl$:"",jmp:g(e=>e(),"jmp"),raf:g(e=>requestAnimationFrame(e),"raf"),ael:g((e,t,r,n)=>e.addEventListener(t,r,n),"ael"),rel:g((e,t,r,n)=>e.removeEventListener(t,r,n),"rel"),ce:g((e,t)=>new CustomEvent(e,t),"ce")},aH=Gl.shadowDom,sH=(()=>{var e;let t=!1;try{(e=yr.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),iH=g(e=>Promise.resolve(e),"promiseResolve"),kT=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),Xv=!1,f$=[],ET=[],oH=g((e,t)=>r=>{e.push(r),Xv||(Xv=!0,t&&tr.$flags$&4?LS(Jv):tr.raf(Jv))},"queueTask"),h$=g(e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){Ni(r)}e.length=0},"consume"),Jv=g(()=>{h$(f$),h$(ET),(Xv=f$.length>0)&&tr.raf(Jv)},"flush"),LS=g(e=>iH().then(e),"nextTick"),lH=oH(ET,!0),cH=g(e=>e!=null&&e!==void 0,"isDef"),PS=g(e=>(e=typeof e,e==="object"||e==="function"),"isComplexType");function IS(e){var t,r,n;return(n=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?n:void 0}g(IS,"queryNonceMetaTagContent");var uH=g(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"escapeRegExpSpecialCharacters"),us,dH=(us=class{static fromLocalValue(t){let r=t[Wb],n=Yb in t?t[Yb]:void 0;switch(r){case"string":return n;case"boolean":return n;case"bigint":return BigInt(n);case"undefined":return;case"null":return null;case"number":return n==="NaN"?NaN:n==="-0"?-0:n==="Infinity"?1/0:n==="-Infinity"?-1/0:n;case"array":return n.map(h=>us.fromLocalValue(h));case"date":return new Date(n);case"map":let s=new Map;for(let[h,p]of n){let m=typeof h=="object"&&h!==null?us.fromLocalValue(h):h,b=us.fromLocalValue(p);s.set(m,b)}return s;case"object":let o={};for(let[h,p]of n)o[h]=us.fromLocalValue(p);return o;case"regexp":let{pattern:l,flags:u}=n;return new RegExp(l,u);case"set":let d=new Set;for(let h of n)d.add(us.fromLocalValue(h));return d;case"symbol":return Symbol(n);default:throw new Error(`Unsupported type: ${r}`)}}static fromLocalValueArray(t){return t.map(r=>us.fromLocalValue(r))}static isLocalValueObject(t){if(typeof t!="object"||t===null||!t.hasOwnProperty(Wb))return!1;let r=t[Wb];return Object.values({...wT,...CT}).includes(r)?r!=="null"&&r!=="undefined"?t.hasOwnProperty(Yb):!0:!1}},g(us,"_RemoteValue"),us),fH={};GU(fH,{err:g(()=>_T,"err"),map:g(()=>TT,"map"),ok:g(()=>e2,"ok"),unwrap:g(()=>hH,"unwrap"),unwrapErr:g(()=>pH,"unwrapErr")});var e2=g(e=>({isOk:!0,isErr:!1,value:e}),"ok"),_T=g(e=>({isOk:!1,isErr:!0,value:e}),"err");function TT(e,t){if(e.isOk){let r=t(e.value);return r instanceof Promise?r.then(n=>e2(n)):e2(r)}if(e.isErr){let r=e.value;return _T(r)}throw"should never get here"}g(TT,"map");var hH=g(e=>{if(e.isOk)return e.value;throw e.value},"unwrap"),pH=g(e=>{if(e.isErr)return e.value;throw e.value},"unwrapErr");function AT(e){return typeof e!="string"||!e.startsWith(Qv)?e:dH.fromLocalValue(JSON.parse(atob(e.slice(Qv.length))))}g(AT,"deserializeProperty");var z0=g(e=>{let t=ma(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Fd(t,e.tagName).forEach(n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(DS(n,qd(n),!1).length?n.hidden=!0:n.hidden=!1)});let r=0;for(r=0;r<t.length;r++){let n=t[r];n.nodeType===1&&ma(n,"childNodes").length&&z0(n)}},"updateFallbackSlotVisibility"),Rh=g(e=>{let t=[];for(let r=0;r<e.length;r++){let n=e[r]["s-nr"]||void 0;n&&n.isConnected&&t.push(n)}return t},"getSlottedChildNodes");function Fd(e,t,r){let n=0,s=[],o;for(;n<e.length;n++){if(o=e[n],o["s-sr"]&&(!t||o["s-hn"]===t)&&(r===void 0||qd(o)===r)&&(s.push(o),typeof r<"u"))return s;s=[...s,...Fd(o.childNodes,t,r)]}return s}g(Fd,"getHostSlotNodes");var DS=g((e,t,r=!0)=>{let n=[];(r&&e["s-sr"]||!e["s-sr"])&&n.push(e);let s=e;for(;s=s.nextSibling;)qd(s)===t&&(r||!s["s-sr"])&&n.push(s);return n},"getSlotChildSiblings"),p$=g((e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="","isNodeLocatedInSlot"),j0=g((e,t,r,n)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;let s=document.createTextNode("");if(s["s-nr"]=e,!t["s-cr"]||!t["s-cr"].parentNode)return;let o=t["s-cr"].parentNode,l=r?ma(o,"prepend"):ma(o,"appendChild");if(typeof n<"u"){s["s-oo"]=n;let u=ma(o,"childNodes"),d=[s];u.forEach(h=>{h["s-nr"]&&d.push(h)}),d.sort((h,p)=>!h["s-oo"]||h["s-oo"]<(p["s-oo"]||0)?-1:!p["s-oo"]||p["s-oo"]<h["s-oo"]?1:0),d.forEach(h=>l.call(o,h))}else l.call(o,s);e["s-ol"]=s,e["s-sh"]=t["s-hn"]},"addSlotRelocateNode"),qd=g(e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0,"getSlotName");function zS(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;let t=g(r=>(function(n){let s=[],o=this["s-sn"];n!=null&&n.flatten&&console.error(`
          Flattening is not supported for Stencil non-shadow slots. 
          You can use \`.childNodes\` to nested slot fallback content.
          If you have a particular use case, please open an issue on the Stencil repo.
        `);let l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:Rh(l.childNodes)).forEach(u=>{o===qd(u)&&s.push(u)}),r?s.filter(u=>u.nodeType===1):s}).bind(e),"assignedFactory");e.assignedElements=t(!0),e.assignedNodes=t(!1)}g(zS,"patchSlotNode");function Jh(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}g(Jh,"dispatchSlotChangeEvent");function B0(e,t){var r;if(t=t||((r=e["s-ol"])==null?void 0:r.parentElement),!t)return{slotNode:null,slotName:""};let n=e["s-sn"]=qd(e)||"",s=ma(t,"childNodes");return{slotNode:Fd(s,t.tagName,n)[0],slotName:n}}g(B0,"findSlotFromSlottedNode");var mH=g(e=>{gH(e),yH(e),SH(e),vH(e),$H(e),xH(e),wH(e),CH(e),kH(e),EH(e),bH(e)},"patchPseudoShadowDom"),gH=g(e=>{let t=e.cloneNode;e.cloneNode=function(r){let n=this,s=n.shadowRoot&&aH,o=t.call(n,s?r:!1);if(!s&&r){let l=0,u,d,h=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],p=this.__childNodes||this.childNodes;for(;l<p.length;l++)u=p[l]["s-nr"],d=h.every(m=>!p[l][m]),u&&(o.__appendChild?o.__appendChild(u.cloneNode(!0)):o.appendChild(u.cloneNode(!0))),d&&o.appendChild(p[l].cloneNode(!0))}return o}},"patchCloneNode"),yH=g(e=>{e.__appendChild=e.appendChild,e.appendChild=function(t){let{slotName:r,slotNode:n}=B0(t,this);if(n){j0(t,n);let s=DS(n,r),o=s[s.length-1],l=ma(o,"parentNode"),u=ma(l,"insertBefore")(t,o.nextSibling);return Jh(n),z0(this),u}return this.__appendChild(t)}},"patchSlotAppendChild"),bH=g(e=>{e.__removeChild=e.removeChild,e.removeChild=function(t){if(t&&typeof t["s-sn"]<"u"){let r=this.__childNodes||this.childNodes;if(Fd(r,this.tagName,t["s-sn"])&&t.isConnected){t.remove(),z0(this);return}}return this.__removeChild(t)}},"patchSlotRemoveChild"),vH=g(e=>{e.__prepend=e.prepend,e.prepend=function(...t){t.forEach(r=>{typeof r=="string"&&(r=this.ownerDocument.createTextNode(r));let n=(r["s-sn"]=qd(r))||"",s=ma(this,"childNodes"),o=Fd(s,this.tagName,n)[0];if(o){j0(r,o,!0);let l=DS(o,n)[0],u=ma(l,"parentNode"),d=ma(u,"insertBefore")(r,ma(l,"nextSibling"));return Jh(o),d}return r.nodeType===1&&r.getAttribute("slot")&&(r.hidden=!0),e.__prepend(r)})}},"patchSlotPrepend"),SH=g(e=>{e.__append=e.append,e.append=function(...t){t.forEach(r=>{typeof r=="string"&&(r=this.ownerDocument.createTextNode(r)),this.appendChild(r)})}},"patchSlotAppend"),xH=g(e=>{let t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(r,n){if(r!=="afterbegin"&&r!=="beforeend")return t.call(this,r,n);let s=this.ownerDocument.createElement("_"),o;if(s.innerHTML=n,r==="afterbegin")for(;o=s.firstChild;)this.prepend(o);else if(r==="beforeend")for(;o=s.firstChild;)this.append(o)}},"patchSlotInsertAdjacentHTML"),wH=g(e=>{e.insertAdjacentText=function(t,r){this.insertAdjacentHTML(t,r)}},"patchSlotInsertAdjacentText"),CH=g(e=>{let t=e;t.__insertBefore||(t.__insertBefore=e.insertBefore,e.insertBefore=function(r,n){let{slotName:s,slotNode:o}=B0(r,this),l=this.__childNodes?this.childNodes:Rh(this.childNodes);if(o){let d=!1;if(l.forEach(h=>{if(h===n||n===null){if(d=!0,n===null||s!==n["s-sn"]){this.appendChild(r);return}if(s===n["s-sn"]){j0(r,o);let p=ma(n,"parentNode");ma(p,"insertBefore")(r,n),Jh(o)}return}}),d)return r}let u=n==null?void 0:n.__parentNode;return u&&!this.isSameNode(u)?this.appendChild(r):this.__insertBefore(r,n)})},"patchInsertBefore"),$H=g(e=>{let t=e.insertAdjacentElement;e.insertAdjacentElement=function(r,n){return r!=="afterbegin"&&r!=="beforeend"?t.call(this,r,n):r==="afterbegin"?(this.prepend(n),n):(r==="beforeend"&&this.append(n),n)}},"patchSlotInsertAdjacentElement"),kH=g(e=>{Os("textContent",e),Object.defineProperty(e,"textContent",{get:g(function(){let t="";return(this.__childNodes?this.childNodes:Rh(this.childNodes)).forEach(r=>t+=r.textContent||""),t},"get"),set:g(function(t){(this.__childNodes?this.childNodes:Rh(this.childNodes)).forEach(r=>{r["s-ol"]&&r["s-ol"].remove(),r.remove()}),this.insertAdjacentHTML("beforeend",t)},"set")})},"patchTextContent"),EH=g(e=>{var r;let t=(r=class extends Array{item(s){return this[s]}},g(r,"FakeNodeList"),r);Os("children",e),Object.defineProperty(e,"children",{get(){return this.childNodes.filter(n=>n.nodeType===1)}}),Object.defineProperty(e,"childElementCount",{get(){return this.children.length}}),Os("firstChild",e),Object.defineProperty(e,"firstChild",{get(){return this.childNodes[0]}}),Os("lastChild",e),Object.defineProperty(e,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),Os("childNodes",e),Object.defineProperty(e,"childNodes",{get(){let n=new t;return n.push(...Rh(this.__childNodes)),n}})},"patchChildSlotNodes"),_H=g(e=>{!e||e.__nextSibling!==void 0||!globalThis.Node||(TH(e),RH(e),RT(e),e.nodeType===Node.ELEMENT_NODE&&(AH(e),OH(e)))},"patchSlottedNode"),TH=g(e=>{!e||e.__nextSibling||(Os("nextSibling",e),Object.defineProperty(e,"nextSibling",{get:g(function(){var t;let r=(t=this["s-ol"])==null?void 0:t.parentNode.childNodes,n=r==null?void 0:r.indexOf(this);return r&&n>-1?r[n+1]:this.__nextSibling},"get")}))},"patchNextSibling"),AH=g(e=>{!e||e.__nextElementSibling||(Os("nextElementSibling",e),Object.defineProperty(e,"nextElementSibling",{get:g(function(){var t;let r=(t=this["s-ol"])==null?void 0:t.parentNode.children,n=r==null?void 0:r.indexOf(this);return r&&n>-1?r[n+1]:this.__nextElementSibling},"get")}))},"patchNextElementSibling"),RH=g(e=>{!e||e.__previousSibling||(Os("previousSibling",e),Object.defineProperty(e,"previousSibling",{get:g(function(){var t;let r=(t=this["s-ol"])==null?void 0:t.parentNode.childNodes,n=r==null?void 0:r.indexOf(this);return r&&n>-1?r[n-1]:this.__previousSibling},"get")}))},"patchPreviousSibling"),OH=g(e=>{!e||e.__previousElementSibling||(Os("previousElementSibling",e),Object.defineProperty(e,"previousElementSibling",{get:g(function(){var t;let r=(t=this["s-ol"])==null?void 0:t.parentNode.children,n=r==null?void 0:r.indexOf(this);return r&&n>-1?r[n-1]:this.__previousElementSibling},"get")}))},"patchPreviousElementSibling"),RT=g(e=>{!e||e.__parentNode||(Os("parentNode",e),Object.defineProperty(e,"parentNode",{get:g(function(){var t;return((t=this["s-ol"])==null?void 0:t.parentNode)||this.__parentNode},"get"),set:g(function(t){this.__parentNode=t},"set")}))},"patchParentNode"),MH=["children","nextElementSibling","previousElementSibling"],NH=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Os(e,t){let r;MH.includes(e)?r=Object.getOwnPropertyDescriptor(Element.prototype,e):NH.includes(e)&&(r=Object.getOwnPropertyDescriptor(Node.prototype,e)),r||(r=Object.getOwnPropertyDescriptor(t,e)),r&&Object.defineProperty(t,"__"+e,r)}g(Os,"patchHostOriginalAccessor");function ma(e,t){if("__"+t in e){let r=e["__"+t];return typeof r!="function"?r:r.bind(e)}else return typeof e[t]!="function"?e[t]:e[t].bind(e)}g(ma,"internalCall");var ii=g((e,t="")=>()=>{},"createTime"),LH=g((e,t)=>()=>{},"uniqueTime"),OT=g((e,t,...r)=>{let n=null,s=null,o=null,l=!1,u=!1,d=[],h=g(m=>{for(let b=0;b<m.length;b++)n=m[b],Array.isArray(n)?h(n):n!=null&&typeof n!="boolean"&&((l=typeof e!="function"&&!PS(n))&&(n=String(n)),l&&u?d[d.length-1].$text$+=n:d.push(l?Pd(null,n):n),u=l)},"walk");if(h(r),t){t.key&&(s=t.key),t.name&&(o=t.name);{let m=t.className||t.class;m&&(t.class=typeof m!="object"?m:Object.keys(m).filter(b=>m[b]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,d,DH);let p=Pd(e,null);return p.$attrs$=t,d.length>0&&(p.$children$=d),p.$key$=s,p.$name$=o,p},"h"),Pd=g((e,t)=>{let r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r.$name$=null,r},"newVNode"),PH={},IH=g(e=>e&&e.$tag$===PH,"isHost"),DH={forEach:g((e,t)=>e.map(m$).forEach(t),"forEach"),map:g((e,t)=>e.map(m$).map(t).map(zH),"map")},m$=g(e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),"convertToPublic"),zH=g(e=>{if(typeof e.vtag=="function"){let r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),OT(e.vtag,r,...e.vchildren||[])}let t=Pd(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},"convertToPrivate"),jH=g((e,t,r,n)=>{var s;let o=ii("hydrateClient",t),l=e.shadowRoot,u=[],d=[],h=[],p=l?[]:null,m=Pd(t,null);m.$elm$=e,Object.entries(((s=n.$cmpMeta$)==null?void 0:s.$members$)||{}).forEach(([O,[N,z]])=>{var k;if(!(N&31))return;let H=z||O,q=e.getAttribute(H);if(q!==null){let V=Ng(q,N);(k=n==null?void 0:n.$instanceValues$)==null||k.set(O,V)}});let b;{let O=n.$cmpMeta$;O&&O.$flags$&10&&e["s-sc"]?(b=e["s-sc"],e.classList.add(b+"-h")):e["s-sc"]&&delete e["s-sc"]}yr.document&&(!tr.$orgLocNodes$||!tr.$orgLocNodes$.size)&&r2(yr.document.body,tr.$orgLocNodes$=new Map),e[Ah]=r,e.removeAttribute(Ah),n.$vnode$=t2(m,u,d,p,e,e,r,h);let S=0,x=u.length,C;for(S;S<x;S++){C=u[S];let O=C.$hostId$+"."+C.$nodeId$,N=tr.$orgLocNodes$.get(O),z=C.$elm$;l||(z["s-hn"]=t.toUpperCase(),C.$tag$==="slot"&&(z["s-cr"]=e["s-cr"])),C.$tag$==="slot"&&(C.$name$=C.$elm$["s-sn"]||C.$elm$.name||null,C.$children$?(C.$flags$|=2,C.$elm$.childNodes.length||C.$children$.forEach(k=>{C.$elm$.appendChild(k.$elm$)})):C.$flags$|=1),N&&N.isConnected&&(l&&N["s-en"]===""&&N.parentNode.insertBefore(z,N.nextSibling),N.parentNode.removeChild(N),l||(z["s-oo"]=parseInt(C.$nodeId$))),tr.$orgLocNodes$.delete(O)}let $=[],_=h.length,M=0,T,R,L,j;for(M;M<_;M++)if(T=h[M],!(!T||!T.length))for(L=T.length,R=0,R;R<L;R++){if(j=T[R],$[j.hostId]||($[j.hostId]=tr.$orgLocNodes$.get(j.hostId)),!$[j.hostId])continue;let O=$[j.hostId];(!O.shadowRoot||!l)&&(j.slot["s-cr"]=O["s-cr"],!j.slot["s-cr"]&&O.shadowRoot?j.slot["s-cr"]=O:j.slot["s-cr"]=(O.__childNodes||O.childNodes)[0],j0(j.node,j.slot,!1,j.node["s-oo"]),_H(j.node)),O.shadowRoot&&j.node.parentElement!==O&&O.appendChild(j.node)}if(b&&d.length&&d.forEach(O=>{O.$elm$.parentElement.classList.add(b+"-s")}),l&&!l.childNodes.length){let O=0,N=p.length;if(N){for(O;O<N;O++)l.appendChild(p[O]);Array.from(e.childNodes).forEach(z=>{typeof z["s-sn"]!="string"&&(z.nodeType===1&&z.slot&&z.hidden?z.removeAttribute("hidden"):(z.nodeType===8||z.nodeType===3&&!z.wholeText.trim())&&z.parentNode.removeChild(z))})}}tr.$orgLocNodes$.delete(e["s-id"]),n.$hostElement$=e,o()},"initializeClientHydrate"),t2=g((e,t,r,n,s,o,l,u=[])=>{let d,h,p,m,b=s["s-sc"];if(o.nodeType===1){if(d=o.getAttribute(u$),d&&(h=d.split("."),h[0]===l||h[0]==="0")){p=g$({$flags$:0,$hostId$:h[0],$nodeId$:h[1],$depth$:h[2],$index$:h[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:{class:o.className||""}}),t.push(p),o.removeAttribute(u$),e.$children$||(e.$children$=[]),b&&(o["s-si"]=b,p.$attrs$.class+=" "+b);let x=p.$elm$.getAttribute("s-sn");typeof x=="string"&&(p.$tag$==="slot-fb"&&(n2(x,h[2],p,o,e,t,r,n,u),b&&o.classList.add(b)),p.$elm$["s-sn"]=x,p.$elm$.removeAttribute("s-sn")),p.$index$!==void 0&&(e.$children$[p.$index$]=p),e=p,n&&p.$depth$==="0"&&(n[p.$index$]=p.$elm$)}if(o.shadowRoot)for(m=o.shadowRoot.childNodes.length-1;m>=0;m--)t2(e,t,r,n,s,o.shadowRoot.childNodes[m],l,u);let S=o.__childNodes||o.childNodes;for(m=S.length-1;m>=0;m--)t2(e,t,r,n,s,S[m],l,u)}else if(o.nodeType===8){if(h=o.nodeValue.split("."),h[1]===l||h[1]==="0"){if(d=h[0],p=g$({$hostId$:h[1],$nodeId$:h[2],$depth$:h[3],$index$:h[4]||"0",$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null}),d===tH)p.$elm$=b$(o,3),p.$elm$&&p.$elm$.nodeType===3&&(p.$text$=p.$elm$.textContent,t.push(p),o.remove(),l===p.$hostId$&&(e.$children$||(e.$children$=[]),e.$children$[p.$index$]=p),n&&p.$depth$==="0"&&(n[p.$index$]=p.$elm$));else if(d===rH)p.$elm$=b$(o,8),p.$elm$&&p.$elm$.nodeType===8&&(t.push(p),o.remove());else if(p.$hostId$===l)if(d===eH){let S=o["s-sn"]=h[5]||"";n2(S,h[2],p,o,e,t,r,n,u)}else d===XU&&(n?o.remove():(s["s-cr"]=o,o["s-cn"]=!0))}}else if(e&&e.$tag$==="style"){let S=Pd(null,o.textContent);S.$elm$=o,S.$index$="0",e.$children$=[S]}else o.nodeType===3&&!o.wholeText.trim()&&o.remove();return e},"clientHydrate"),r2=g((e,t)=>{if(e.nodeType===1){let r=e[Ah]||e.getAttribute(Ah);r&&t.set(r,e);let n=0;if(e.shadowRoot)for(;n<e.shadowRoot.childNodes.length;n++)r2(e.shadowRoot.childNodes[n],t);let s=e.__childNodes||e.childNodes;for(n=0;n<s.length;n++)r2(s[n],t)}else if(e.nodeType===8){let r=e.nodeValue.split(".");r[0]===JU&&(t.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},"initializeDocumentHydrate"),g$=g(e=>({$flags$:0,$hostId$:null,$nodeId$:null,$depth$:null,$index$:"0",$elm$:null,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null,...e}),"createSimpleVNode");function n2(e,t,r,n,s,o,l,u,d){n["s-sr"]=!0,r.$name$=e||null,r.$tag$="slot";let h=s!=null&&s.$elm$?s.$elm$["s-id"]||s.$elm$.getAttribute("s-id"):"";if(u&&yr.document){let p=r.$elm$=yr.document.createElement(r.$tag$);r.$name$&&r.$elm$.setAttribute("name",e),h&&h!==r.$hostId$?s.$elm$.insertBefore(p,s.$elm$.children[0]):n.parentNode.insertBefore(r.$elm$,n),y$(d,t,e,n,r.$hostId$),n.remove(),r.$depth$==="0"&&(u[r.$index$]=r.$elm$)}else{let p=r.$elm$,m=h&&h!==r.$hostId$&&s.$elm$.shadowRoot;y$(d,t,e,n,m?h:r.$hostId$),zS(n),m&&s.$elm$.insertBefore(p,s.$elm$.children[0]),o.push(r)}l.push(r),s.$children$||(s.$children$=[]),s.$children$[r.$index$]=r}g(n2,"addSlot");var y$=g((e,t,r,n,s)=>{let o=n.nextSibling;for(e[t]=e[t]||[];o&&((o.getAttribute&&o.getAttribute("slot")||o["s-sn"])===r||r===""&&!o["s-sn"]&&(o.nodeType===8&&o.nodeValue.indexOf(".")!==1||o.nodeType===3));)o["s-sn"]=r,e[t].push({slot:n,node:o,hostId:s}),o=o.nextSibling},"addSlottedNodes"),b$=g((e,t)=>{let r=e;do r=r.nextSibling;while(r&&(r.nodeType!==t||!r.nodeValue));return r},"findCorrespondingNode"),jS=g(e=>{let t=uH(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")},"createSupportsRuleRe");jS("::slotted");jS(":host");jS(":host-context");var Ng=g((e,t)=>{if(typeof e=="string"&&(e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]")))try{return e=JSON.parse(e),e}catch{}return typeof e=="string"&&e.startsWith(Qv)?(e=AT(e),e):e!=null&&!PS(e)?t&4?e==="false"?!1:e===""||!!e:t&2?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:t&1?String(e):e:e},"parsePropertyValue"),BH=g(e=>ps(e).$hostElement$,"getElement"),OY=g((e,t,r)=>{let n=BH(e);return{emit:g(s=>MT(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s}),"emit")}},"createEvent"),MT=g((e,t,r)=>{let n=tr.ce(t,r);return e.dispatchEvent(n),n},"emitEvent"),Zc=new WeakMap,NT=g((e,t,r)=>{let n=Og.get(e);kT&&r?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,Og.set(e,n)},"registerStyle"),LT=g((e,t,r)=>{var n;let s=BS(t),o=Og.get(s);if(!yr.document)return s;if(e=e.nodeType===11?e:yr.document,o)if(typeof o=="string"){e=e.head||e;let l=Zc.get(e),u;if(l||Zc.set(e,l=new Set),!l.has(s)){if(e.host&&(u=e.querySelector(`[${Mg}="${s}"]`)))u.innerHTML=o;else{u=document.querySelector(`[${Mg}="${s}"]`)||yr.document.createElement("style"),u.innerHTML=o;let d=(n=tr.$nonce$)!=null?n:IS(yr.document);if(d!=null&&u.setAttribute("nonce",d),!(t.$flags$&1))if(e.nodeName==="HEAD"){let h=e.querySelectorAll("link[rel=preconnect]"),p=h.length>0?h[h.length-1].nextSibling:e.querySelector("style");e.insertBefore(u,(p==null?void 0:p.parentNode)===e?p:null)}else if("host"in e)if(kT){let h=new CSSStyleSheet;h.replaceSync(o),e.adoptedStyleSheets=[h,...e.adoptedStyleSheets]}else{let h=e.querySelector("style");h?h.innerHTML=o+h.innerHTML:e.prepend(u)}else e.append(u);t.$flags$&1&&e.insertBefore(u,null)}t.$flags$&4&&(u.innerHTML+=$T),l&&l.add(s)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return s},"addStyle"),UH=g(e=>{let t=e.$cmpMeta$,r=e.$hostElement$,n=t.$flags$,s=ii("attachStyles",t.$tagName$),o=LT(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);n&10&&(r["s-sc"]=o,r.classList.add(o+"-h")),s()},"attachStyles"),BS=g((e,t)=>"sc-"+e.$tagName$,"getScopeId"),HH=g(e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),"convertScopedToShadow"),ZH=g(()=>{if(!yr.document)return;let e=yr.document.querySelectorAll(`[${Mg}]`),t=0;for(;t<e.length;t++)NT(e[t].getAttribute(Mg),HH(e[t].innerHTML),!0)},"hydrateScopedToShadow"),v$=g((e,t,r,n,s,o,l)=>{if(r===n)return;let u=c$(e,t),d=t.toLowerCase();if(t==="class"){let h=e.classList,p=S$(r),m=S$(n);e["s-si"]&&l?(m.push(e["s-si"]),p.forEach(b=>{b.startsWith(e["s-si"])&&m.push(b)}),m=[...new Set(m)],h.add(...m)):(h.remove(...p.filter(b=>b&&!m.includes(b))),h.add(...m.filter(b=>b&&!p.includes(b))))}else if(t==="style"){for(let h in r)(!n||n[h]==null)&&(h.includes("-")?e.style.removeProperty(h):e.style[h]="");for(let h in n)(!r||n[h]!==r[h])&&(h.includes("-")?e.style.setProperty(h,n[h]):e.style[h]=n[h])}else if(t!=="key")if(t==="ref")n&&n(e);else if(!u&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):c$(yr,d)?t=d.slice(2):t=d[2]+t.slice(3),r||n){let h=t.endsWith(PT);t=t.replace(FH,""),r&&tr.rel(e,t,r,h),n&&tr.ael(e,t,n,h)}}else{let h=PS(n);if((u||h&&n!==null)&&!s)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{let m=n??"";t==="list"?u=!1:(r==null||e[t]!=m)&&(typeof e.__lookupSetter__(t)=="function"?e[t]=m:e.setAttribute(t,m))}}catch{}let p=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(t=d,p=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(p?e.removeAttributeNS(d$,t):e.removeAttribute(t)):(!u||o&4||s)&&!h&&e.nodeType===1&&(n=n===!0?"":n,p?e.setAttributeNS(d$,t,n):e.setAttribute(t,n))}},"setAccessor"),VH=/\s/,S$=g(e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(VH)),"parseClassList"),PT="Capture",FH=new RegExp(PT+"$"),a2=g((e,t,r,n)=>{let s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||{},l=t.$attrs$||{};for(let u of s2(Object.keys(o)))u in l||v$(s,u,o[u],void 0,r,t.$flags$,n);for(let u of s2(Object.keys(l)))v$(s,u,o[u],l[u],r,t.$flags$,n)},"updateElement");function s2(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}g(s2,"sortedAttrNames");var ng,Lg,Ul,Pg=!1,Ig=!1,U0=!1,Ta=!1,Dg=g((e,t,r)=>{var n;let s=t.$children$[r],o=0,l,u,d;if(Pg||(U0=!0,s.$tag$==="slot"&&(s.$flags$|=s.$children$?2:1)),s.$text$!==null)l=s.$elm$=yr.document.createTextNode(s.$text$);else if(s.$flags$&1)l=s.$elm$=yr.document.createTextNode(""),a2(null,s,Ta);else{if(Ta||(Ta=s.$tag$==="svg"),!yr.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=s.$elm$=yr.document.createElementNS(Ta?KU:WU,!Pg&&Gl.slotRelocation&&s.$flags$&2?"slot-fb":s.$tag$),Ta&&s.$tag$==="foreignObject"&&(Ta=!1),a2(null,s,Ta),cH(ng)&&l["s-si"]!==ng&&l.classList.add(l["s-si"]=ng),s.$children$)for(o=0;o<s.$children$.length;++o)u=Dg(e,s,o),u&&l.appendChild(u);s.$tag$==="svg"?Ta=!1:l.tagName==="foreignObject"&&(Ta=!0)}return l["s-hn"]=Ul,s.$flags$&3&&(l["s-sr"]=!0,l["s-cr"]=Lg,l["s-sn"]=s.$name$||"",l["s-rf"]=(n=s.$attrs$)==null?void 0:n.ref,zS(l),d=e&&e.$children$&&e.$children$[r],d&&d.$tag$===s.$tag$&&e.$elm$&&IT(e.$elm$),US(Lg,l,t.$elm$,e==null?void 0:e.$elm$)),l},"createElm"),IT=g(e=>{tr.$flags$|=1;let t=e.closest(Ul.toLowerCase());if(t!=null){let r=Array.from(t.__childNodes||t.childNodes).find(s=>s["s-cr"]),n=Array.from(e.__childNodes||e.childNodes);for(let s of r?n.reverse():n)s["s-sh"]!=null&&(Li(t,s,r??null),s["s-sh"]=void 0,U0=!0)}tr.$flags$&=-2},"relocateToHostRoot"),zg=g((e,t)=>{tr.$flags$|=1;let r=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&Gl.experimentalSlotFixes){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===Ul&&r.push(n)}for(let n=r.length-1;n>=0;n--){let s=r[n];s["s-hn"]!==Ul&&s["s-ol"]&&(Li(Oh(s).parentNode,s,Oh(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,U0=!0),t&&zg(s,t)}tr.$flags$&=-2},"putBackInOriginalLocation"),DT=g((e,t,r,n,s,o)=>{let l=e["s-cr"]&&e["s-cr"].parentNode||e,u;for(l.shadowRoot&&l.tagName===Ul&&(l=l.shadowRoot);s<=o;++s)n[s]&&(u=Dg(null,r,s),u&&(n[s].$elm$=u,Li(l,u,Oh(t))))},"addVnodes"),zT=g((e,t,r)=>{for(let n=t;n<=r;++n){let s=e[n];if(s){let o=s.$elm$;BT(s),o&&(Ig=!0,o["s-ol"]?o["s-ol"].remove():zg(o,!0),o.remove())}}},"removeVnodes"),qH=g((e,t,r,n,s=!1)=>{let o=0,l=0,u=0,d=0,h=t.length-1,p=t[0],m=t[h],b=n.length-1,S=n[0],x=n[b],C,$;for(;o<=h&&l<=b;)if(p==null)p=t[++o];else if(m==null)m=t[--h];else if(S==null)S=n[++l];else if(x==null)x=n[--b];else if(zm(p,S,s))zc(p,S,s),p=t[++o],S=n[++l];else if(zm(m,x,s))zc(m,x,s),m=t[--h],x=n[--b];else if(zm(p,x,s))(p.$tag$==="slot"||x.$tag$==="slot")&&zg(p.$elm$.parentNode,!1),zc(p,x,s),Li(e,p.$elm$,m.$elm$.nextSibling),p=t[++o],x=n[--b];else if(zm(m,S,s))(p.$tag$==="slot"||x.$tag$==="slot")&&zg(m.$elm$.parentNode,!1),zc(m,S,s),Li(e,m.$elm$,p.$elm$),m=t[--h],S=n[++l];else{for(u=-1,d=o;d<=h;++d)if(t[d]&&t[d].$key$!==null&&t[d].$key$===S.$key$){u=d;break}u>=0?($=t[u],$.$tag$!==S.$tag$?C=Dg(t&&t[l],r,u):(zc($,S,s),t[u]=void 0,C=$.$elm$),S=n[++l]):(C=Dg(t&&t[l],r,l),S=n[++l]),C&&Li(Oh(p.$elm$).parentNode,C,Oh(p.$elm$))}o>h?DT(e,n[b+1]==null?null:n[b+1].$elm$,r,n,l,b):l>b&&zT(t,o,h)},"updateChildren"),zm=g((e,t,r=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:r?(r&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$:!1,"isSameVnode"),Oh=g(e=>e&&e["s-ol"]||e,"referenceNode"),zc=g((e,t,r=!1)=>{let n=t.$elm$=e.$elm$,s=e.$children$,o=t.$children$,l=t.$tag$,u=t.$text$,d;u===null?(Ta=l==="svg"?!0:l==="foreignObject"?!1:Ta,l==="slot"&&!Pg&&e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",IT(t.$elm$.parentElement)),a2(e,t,Ta,r),s!==null&&o!==null?qH(n,s,t,o,r):o!==null?(e.$text$!==null&&(n.textContent=""),DT(n,null,t,o,0,o.length-1)):!r&&Gl.updatable&&s!==null&&zT(s,0,s.length-1),Ta&&l==="svg"&&(Ta=!1)):(d=n["s-cr"])?d.parentNode.textContent=u:e.$text$!==u&&(n.data=u)},"patch"),_i=[],jT=g(e=>{let t,r,n,s=e.__childNodes||e.childNodes;for(let o of s){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){r=t.parentNode.__childNodes||t.parentNode.childNodes;let l=o["s-sn"];for(n=r.length-1;n>=0;n--)if(t=r[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==o["s-hn"]))if(p$(t,l)){let u=_i.find(d=>d.$nodeToRelocate$===t);Ig=!0,t["s-sn"]=t["s-sn"]||l,u?(u.$nodeToRelocate$["s-sh"]=o["s-hn"],u.$slotRefNode$=o):(t["s-sh"]=o["s-hn"],_i.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&_i.map(d=>{p$(d.$nodeToRelocate$,t["s-sn"])&&(u=_i.find(h=>h.$nodeToRelocate$===t),u&&!d.$slotRefNode$&&(d.$slotRefNode$=u.$slotRefNode$))})}else _i.some(u=>u.$nodeToRelocate$===t)||_i.push({$nodeToRelocate$:t})}o.nodeType===1&&jT(o)}},"markSlotContentForRelocation"),BT=g(e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(BT)},"nullifyVNodeRefs"),Li=g((e,t,r)=>{if(typeof t["s-sn"]=="string"&&t["s-sr"]&&t["s-cr"])US(t["s-cr"],t,e,t.parentElement);else if(typeof t["s-sn"]=="string"){e.getRootNode().nodeType!==11&&RT(t),e.insertBefore(t,r);let{slotNode:n}=B0(t);return n&&Jh(n),t}return e.__insertBefore?e.__insertBefore(t,r):e==null?void 0:e.insertBefore(t,r)},"insertBefore");function US(e,t,r,n){var s,o;let l;if(e&&typeof t["s-sn"]=="string"&&t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(l=t["s-si"]||e.parentNode["s-sc"])){let u=t["s-sn"],d=t["s-hn"];if((s=r.classList)==null||s.add(l+"-s"),n&&(o=n.classList)!=null&&o.contains(l+"-s")){let h=(n.__childNodes||n.childNodes)[0],p=!1;for(;h;){if(h["s-sn"]!==u&&h["s-hn"]===d&&h["s-sr"]){p=!0;break}h=h.nextSibling}p||n.classList.remove(l+"-s")}}}g(US,"addRemoveSlotScopedClass");var GH=g((e,t,r=!1)=>{var n,s,o,l,u;let d=e.$hostElement$,h=e.$cmpMeta$,p=e.$vnode$||Pd(null,null),m=IH(t)?t:OT(null,null,t);if(Ul=d.tagName,h.$attrsToReflect$&&(m.$attrs$=m.$attrs$||{},h.$attrsToReflect$.map(([b,S])=>m.$attrs$[S]=d[b])),r&&m.$attrs$)for(let b of Object.keys(m.$attrs$))d.hasAttribute(b)&&!["key","ref","style","class"].includes(b)&&(m.$attrs$[b]=d[b]);m.$tag$=null,m.$flags$|=4,e.$vnode$=m,m.$elm$=p.$elm$=d.shadowRoot||d,ng=d["s-sc"],Pg=!!(h.$flags$&1)&&!(h.$flags$&128),Lg=d["s-cr"],Ig=!1,zc(p,m,r);{if(tr.$flags$|=1,U0){jT(m.$elm$);for(let b of _i){let S=b.$nodeToRelocate$;if(!S["s-ol"]&&yr.document){let x=yr.document.createTextNode("");x["s-nr"]=S,Li(S.parentNode,S["s-ol"]=x,S)}}for(let b of _i){let S=b.$nodeToRelocate$,x=b.$slotRefNode$;if(x){let C=x.parentNode,$=x.nextSibling;if($&&$.nodeType===1){let T=(n=S["s-ol"])==null?void 0:n.previousSibling;for(;T;){let R=(s=T["s-nr"])!=null?s:null;if(R&&R["s-sn"]===S["s-sn"]&&C===(R.__parentNode||R.parentNode)){for(R=R.nextSibling;R===S||R!=null&&R["s-sr"];)R=R==null?void 0:R.nextSibling;if(!R||!R["s-nr"]){$=R;break}}T=T.previousSibling}}let _=S.__parentNode||S.parentNode,M=S.__nextSibling||S.nextSibling;(!$&&C!==_||M!==$)&&S!==$&&(Li(C,S,$),S.nodeType===1&&S.tagName!=="SLOT-FB"&&(S.hidden=(o=S["s-ih"])!=null?o:!1)),S&&typeof x["s-rf"]=="function"&&x["s-rf"](x)}else S.nodeType===1&&(r&&(S["s-ih"]=(l=S.hidden)!=null?l:!1),S.hidden=!0)}}Ig&&z0(m.$elm$),tr.$flags$&=-2,_i.length=0}if(h.$flags$&2){let b=m.$elm$.__childNodes||m.$elm$.childNodes;for(let S of b)S["s-hn"]!==Ul&&!S["s-sh"]&&(r&&S["s-ih"]==null&&(S["s-ih"]=(u=S.hidden)!=null?u:!1),S.hidden=!0)}Lg=void 0},"renderVdom"),UT=g((e,t)=>{if(t&&!e.$onRenderResolve$&&t["s-p"]){let r=t["s-p"].push(new Promise(n=>e.$onRenderResolve$=()=>{t["s-p"].splice(r-1,1),n()}))}},"attachToAncestor"),H0=g((e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return UT(e,e.$ancestorComponent$),lH(g(()=>KH(e,t),"dispatch"))},"scheduleUpdate"),KH=g((e,t)=>{let r=e.$hostElement$,n=ii("scheduleUpdate",e.$cmpMeta$.$tagName$),s=e.$lazyInstance$;if(!s)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t?(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([l,u])=>Oi(s,l,u,r)),e.$queuedListeners$=void 0),o=Oi(s,"componentWillLoad",void 0,r)):o=Oi(s,"componentWillUpdate",void 0,r),o=x$(o,()=>Oi(s,"componentWillRender",void 0,r)),n(),x$(o,()=>YH(e,s,t))},"dispatchHooks"),x$=g((e,t)=>WH(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),"enqueue"),WH=g(e=>e instanceof Promise||e&&e.then&&typeof e.then=="function","isPromisey"),YH=g(async(e,t,r)=>{var n;let s=e.$hostElement$,o=ii("update",e.$cmpMeta$.$tagName$),l=s["s-rc"];r&&UH(e);let u=ii("render",e.$cmpMeta$.$tagName$);QH(e,t,s,r),l&&(l.map(d=>d()),s["s-rc"]=void 0),u(),o();{let d=(n=s["s-p"])!=null?n:[],h=g(()=>XH(e),"postUpdate");d.length===0?h():(Promise.all(d).then(h),e.$flags$|=4,d.length=0)}},"updateComponent"),i2=null,QH=g((e,t,r,n)=>{try{i2=t,t=t.render(),e.$flags$&=-17,e.$flags$|=2,GH(e,t,n)}catch(s){Ni(s,e.$hostElement$)}return i2=null,null},"callRender"),MY=g(()=>i2,"getRenderingRef"),XH=g(e=>{let t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,n=ii("postUpdate",t),s=e.$lazyInstance$,o=e.$ancestorComponent$;Oi(s,"componentDidRender",void 0,r),e.$flags$&64?(Oi(s,"componentDidUpdate",void 0,r),n()):(e.$flags$|=64,JH(r),Oi(s,"componentDidLoad",void 0,r),n(),e.$onReadyResolve$(r),o||HT()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&LS(()=>H0(e,!1)),e.$flags$&=-517},"postUpdateComponent"),NY=g(e=>{{let t=ps(e),r=t.$hostElement$.isConnected;return r&&(t.$flags$&18)===2&&H0(t,!1),r}},"forceUpdate"),HT=g(e=>{LS(()=>MT(yr,"appload",{detail:{namespace:FU}}))},"appDidLoad"),Oi=g((e,t,r,n)=>{if(e&&e[t])try{return e[t](r)}catch(s){Ni(s,n)}},"safeCall"),JH=g(e=>{var t;return e.classList.add((t=Gl.hydratedSelectorName)!=null?t:"hydrated")},"addHydratedFlag"),eZ=g((e,t)=>ps(e).$instanceValues$.get(t),"getValue"),Xb=g((e,t,r,n)=>{let s=ps(e);if(!s)throw new Error(`Couldn't find host element for "${n.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);let o=s.$hostElement$,l=s.$instanceValues$.get(t),u=s.$flags$,d=s.$lazyInstance$;r=Ng(r,n.$members$[t][0]);let h=Number.isNaN(l)&&Number.isNaN(r),p=r!==l&&!h;if((!(u&8)||l===void 0)&&p&&(s.$instanceValues$.set(t,r),d)){if(n.$watchers$&&u&128){let m=n.$watchers$[t];m&&m.map(b=>{try{d[b](r,l,t)}catch(S){Ni(S,o)}})}if((u&18)===2){if(d.componentShouldUpdate&&d.componentShouldUpdate(r,l,t)===!1)return;H0(s,!1)}}},"setValue"),ZT=g((e,t,r)=>{var n,s;let o=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);let l=Object.entries((n=t.$members$)!=null?n:{});if(l.map(([u,[d]])=>{if(d&31||r&2&&d&32){let{get:h,set:p}=Object.getOwnPropertyDescriptor(o,u)||{};h&&(t.$members$[u][0]|=2048),p&&(t.$members$[u][0]|=4096),(r&1||!h)&&Object.defineProperty(o,u,{get(){{if((t.$members$[u][0]&2048)===0)return eZ(this,u);let m=ps(this),b=m?m.$lazyInstance$:o;return b?b[u]:void 0}},configurable:!0,enumerable:!0}),Object.defineProperty(o,u,{set(m){let b=ps(this);if(p){let S=d&32?this[u]:b.$hostElement$[u];typeof S>"u"&&b.$instanceValues$.get(u)?m=b.$instanceValues$.get(u):!b.$instanceValues$.get(u)&&S&&b.$instanceValues$.set(u,S),p.apply(this,[Ng(m,d)]),m=d&32?this[u]:b.$hostElement$[u],Xb(this,u,m,t);return}{if((r&1)===0||(t.$members$[u][0]&4096)===0){Xb(this,u,m,t),r&1&&!b.$lazyInstance$&&b.$onReadyPromise$.then(()=>{t.$members$[u][0]&4096&&b.$lazyInstance$[u]!==b.$instanceValues$.get(u)&&(b.$lazyInstance$[u]=m)});return}let S=g(()=>{let x=b.$lazyInstance$[u];!b.$instanceValues$.get(u)&&x&&b.$instanceValues$.set(u,x),b.$lazyInstance$[u]=Ng(m,d),Xb(this,u,b.$lazyInstance$[u],t)},"setterSetVal");b.$lazyInstance$?S():b.$onReadyPromise$.then(()=>S())}}})}}),r&1){let u=new Map;o.attributeChangedCallback=function(d,h,p){tr.jmp(()=>{var m;let b=u.get(d);if(this.hasOwnProperty(b)&&Gl.lazyLoad)p=this[b],delete this[b];else{if(o.hasOwnProperty(b)&&typeof this[b]=="number"&&this[b]==p)return;if(b==null){let x=ps(this),C=x==null?void 0:x.$flags$;if(C&&!(C&8)&&C&128&&p!==h){let $=x.$lazyInstance$,_=(m=t.$watchers$)==null?void 0:m[d];_==null||_.forEach(M=>{$[M]!=null&&$[M].call($,p,h,d)})}return}}let S=Object.getOwnPropertyDescriptor(o,b);p=p===null&&typeof this[b]=="boolean"?!1:p,p!==this[b]&&(!S.get||S.set)&&(this[b]=p)})},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.$watchers$)!=null?s:{}),...l.filter(([d,h])=>h[0]&15).map(([d,h])=>{var p;let m=h[1]||d;return u.set(m,d),h[0]&512&&((p=t.$attrsToReflect$)==null||p.push([d,m])),m})]))}}return e},"proxyComponent"),tZ=g(async(e,t,r,n)=>{let s;if((t.$flags$&32)===0){if(t.$flags$|=32,r.$lazyBundleId$){let u=QU(r,t);if(u&&"then"in u){let h=LH();s=await u,h()}else s=u;if(!s)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);s.isProxied||(r.$watchers$=s.watchers,ZT(s,r,2),s.isProxied=!0);let d=ii("createInstance",r.$tagName$);t.$flags$|=8;try{new s(t)}catch(h){Ni(h,e)}t.$flags$&=-9,t.$flags$|=128,d(),o2(t.$lazyInstance$,e)}else{s=e.constructor;let u=e.localName;customElements.whenDefined(u).then(()=>t.$flags$|=128)}if(s&&s.style){let u;typeof s.style=="string"&&(u=s.style);let d=BS(r);if(!Og.has(d)){let h=ii("registerStyles",r.$tagName$);NT(d,u,!!(r.$flags$&1)),h()}}}let o=t.$ancestorComponent$,l=g(()=>H0(t,!0),"schedule");o&&o["s-rc"]?o["s-rc"].push(l):l()},"initializeComponent"),o2=g((e,t)=>{Oi(e,"connectedCallback",void 0,t)},"fireConnectedCallback"),rZ=g(e=>{if((tr.$flags$&1)===0){let t=ps(e),r=t.$cmpMeta$,n=ii("connectedCallback",r.$tagName$);if(t.$flags$&1)VT(e,t,r.$listeners$),t!=null&&t.$lazyInstance$?o2(t.$lazyInstance$,e):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>o2(t.$lazyInstance$,e));else{t.$flags$|=1;let s;if(s=e.getAttribute(Ah),s){if(r.$flags$&1){let o=LT(e.shadowRoot,r);e.classList.remove(o+"-h",o+"-s")}else if(r.$flags$&2){let o=BS(r);e["s-sc"]=o}jH(e,r.$tagName$,s,t)}s||r.$flags$&12&&nZ(e);{let o=e;for(;o=o.parentNode||o.host;)if(o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){UT(t,t.$ancestorComponent$=o);break}}r.$members$&&Object.entries(r.$members$).map(([o,[l]])=>{if(l&31&&e.hasOwnProperty(o)){let u=e[o];delete e[o],e[o]=u}}),tZ(e,t,r)}n()}},"connectedCallback"),nZ=g(e=>{if(!yr.document)return;let t=e["s-cr"]=yr.document.createComment("");t["s-cn"]=!0,Li(e,t,e.firstChild)},"setContentReference"),w$=g((e,t)=>{Oi(e,"disconnectedCallback",void 0,t||e)},"disconnectInstance"),aZ=g(async e=>{if((tr.$flags$&1)===0){let t=ps(e);t.$rmListeners$&&(t.$rmListeners$.map(r=>r()),t.$rmListeners$=void 0),t!=null&&t.$lazyInstance$?w$(t.$lazyInstance$,e):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>w$(t.$lazyInstance$,e))}Zc.has(e)&&Zc.delete(e),e.shadowRoot&&Zc.has(e.shadowRoot)&&Zc.delete(e.shadowRoot)},"disconnectedCallback"),sZ=g((e,t={})=>{var r;if(!yr.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}let n=ii(),s=[],o=t.exclude||[],l=yr.customElements,u=yr.document.head,d=u.querySelector("meta[charset]"),h=yr.document.createElement("style"),p=[],m,b=!0;Object.assign(tr,t),tr.$resourcesUrl$=new URL(t.resourcesUrl||"./",yr.document.baseURI).href,tr.$flags$|=2,ZH();let S=!1;if(e.map(x=>{x[1].map(C=>{var R;var $;let _={$flags$:C[0],$tagName$:C[1],$members$:C[2],$listeners$:C[3]};_.$flags$&4&&(S=!0),_.$members$=C[2],_.$listeners$=C[3],_.$attrsToReflect$=[],_.$watchers$=($=C[4])!=null?$:{};let M=_.$tagName$,T=(R=class extends HTMLElement{constructor(j){if(super(j),this.hasRegisteredEventListeners=!1,j=this,YU(j,_),_.$flags$&1){if(!j.shadowRoot)j.attachShadow({mode:"open"});else if(j.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${_.$tagName$}! Mode is set to ${j.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){let j=ps(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,VT(this,j,_.$listeners$)),m&&(clearTimeout(m),m=null),b?p.push(this):tr.jmp(()=>rZ(this))}disconnectedCallback(){tr.jmp(()=>aZ(this)),tr.raf(()=>{var j;let O=ps(this),N=p.findIndex(z=>z===this);N>-1&&p.splice(N,1),((j=O==null?void 0:O.$vnode$)==null?void 0:j.$elm$)instanceof Node&&!O.$vnode$.$elm$.isConnected&&delete O.$vnode$.$elm$})}componentOnReady(){return ps(this).$onReadyPromise$}},g(R,"HostElement"),R);_.$flags$&2&&mH(T.prototype),_.$lazyBundleId$=x[0],!o.includes(M)&&!l.get(M)&&(s.push(M),l.define(M,ZT(T,_,1)))})}),s.length>0&&(S&&(h.textContent+=$T),h.textContent+=s.sort()+nH,h.innerHTML.length)){h.setAttribute("data-styles","");let x=(r=tr.$nonce$)!=null?r:IS(yr.document);x!=null&&h.setAttribute("nonce",x),u.insertBefore(h,d?d.nextSibling:u.firstChild)}b=!1,p.length?p.map(x=>x.connectedCallback()):tr.jmp(()=>m=setTimeout(HT,30)),n()},"bootstrapLazy"),LY=g((e,t)=>t,"Fragment"),VT=g((e,t,r,n)=>{r&&yr.document&&r.map(([s,o,l])=>{let u=oZ(yr.document,e,s),d=iZ(t,l),h=lZ(s);tr.ael(u,o,d,h),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>tr.rel(u,o,d,h))})},"addHostEventListeners"),iZ=g((e,t)=>r=>{var n;try{e.$flags$&256?(n=e.$lazyInstance$)==null||n[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}catch(s){Ni(s,e.$hostElement$)}},"hostListenerProxy"),oZ=g((e,t,r)=>r&4?e:r&16?e.body:t,"getHostListenerTarget"),lZ=g(e=>sH?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,"hostListenerOpts");/**
 * @license
 * Copyright 2018 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 */const cZ=new Set(["children","localName","ref","style","className"]),C$=new WeakMap,$$=(e,t,r,n,s)=>{const o=s==null?void 0:s[t];o===void 0?(e[t]=r,r==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):r!==n&&((l,u,d)=>{let h=C$.get(l);h===void 0&&C$.set(l,h=new Map);let p=h.get(u);d!==void 0?p===void 0?(h.set(u,p={handleEvent:d}),l.addEventListener(u,p)):p.handleEvent=d:p!==void 0&&(h.delete(u),l.removeEventListener(u,p))})(e,o,r)},uZ=({react:e,tagName:t,elementClass:r,events:n,displayName:s})=>{const o=new Set(Object.keys(n??{})),l=e.forwardRef((u,d)=>{const h=e.useRef(new Map),p=e.useRef(null),m={},b={};for(const[S,x]of Object.entries(u))cZ.has(S)?m[S==="className"?"class":S]=x:o.has(S)||S in r.prototype?b[S]=x:m[S]=x;return e.useLayoutEffect(()=>{if(p.current===null)return;const S=new Map;for(const x in b)$$(p.current,x,u[x],h.current.get(x),n),h.current.delete(x),S.set(x,u[x]);for(const[x,C]of h.current)$$(p.current,x,void 0,C,n);h.current=S}),e.useLayoutEffect(()=>{var S;(S=p.current)==null||S.removeAttribute("defer-hydration")},[]),m.suppressHydrationWarning=!0,e.createElement(t,{...m,ref:e.useCallback(S=>{p.current=S,typeof d=="function"?d(S):d!==null&&(d.current=S)},[d])})});return l.displayName=s??r.name,l},Z0=({defineCustomElement:e,...t})=>(typeof e<"u"&&e(),uZ(t));var dZ="orama-ui",Kl={experimentalSlotFixes:!0,hydratedSelectorName:"hydrated",lazyLoad:!1,shadowDom:!0,slotRelocation:!0,updatable:!0},fZ=Object.defineProperty,hZ=g((e,t)=>{for(var r in t)fZ(e,r,{get:t[r],enumerable:!0})},"__export"),pZ="http://www.w3.org/2000/svg",mZ="http://www.w3.org/1999/xhtml",FT=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(FT||{}),qT=(e=>(e.Array="array",e.Date="date",e.Map="map",e.Object="object",e.RegularExpression="regexp",e.Set="set",e.Channel="channel",e.Symbol="symbol",e))(qT||{}),Jb="type",ev="value",l2="serialized:",qo=g(e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},"getHostRef"),gZ=g((e,t)=>{let r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[];let n=r;return e.__stencil__getHostRef=()=>n,n},"registerHost"),k$=g((e,t)=>t in e,"isMemberInElement"),ep=g((e,t)=>(0,console.error)(e,t),"consoleError"),jg=new Map,yZ="r",bZ="o",vZ="s",SZ="t",xZ="c",Mh="s-id",Bg="sty-id",E$="c-id",wZ="slot-fb{display:contents}slot-fb[hidden]{display:none}",_$="http://www.w3.org/1999/xlink",Kr=typeof window<"u"?window:{},Hr=Kr.HTMLElement||class{},Ur={$flags$:0,$resourcesUrl$:"",jmp:g(e=>e(),"jmp"),raf:g(e=>requestAnimationFrame(e),"raf"),ael:g((e,t,r,n)=>e.addEventListener(t,r,n),"ael"),rel:g((e,t,r,n)=>e.removeEventListener(t,r,n),"rel"),ce:g((e,t)=>new CustomEvent(e,t),"ce")},CZ=Kl.shadowDom,$Z=(()=>{var e;let t=!1;try{(e=Kr.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),kZ=g(e=>Promise.resolve(e),"promiseResolve"),GT=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),c2=!1,T$=[],KT=[],EZ=g((e,t)=>r=>{e.push(r),c2||(c2=!0,t&&Ur.$flags$&4?V0(u2):Ur.raf(u2))},"queueTask"),A$=g(e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){ep(r)}e.length=0},"consume"),u2=g(()=>{A$(T$),A$(KT),(c2=T$.length>0)&&Ur.raf(u2)},"flush"),V0=g(e=>kZ().then(e),"nextTick"),_Z=EZ(KT,!0),TZ=g(e=>e!=null&&e!==void 0,"isDef"),HS=g(e=>(e=typeof e,e==="object"||e==="function"),"isComplexType");function WT(e){var t,r,n;return(n=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?n:void 0}g(WT,"queryNonceMetaTagContent");var AZ=g(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"escapeRegExpSpecialCharacters"),ds,RZ=(ds=class{static fromLocalValue(t){let r=t[Jb],n=ev in t?t[ev]:void 0;switch(r){case"string":return n;case"boolean":return n;case"bigint":return BigInt(n);case"undefined":return;case"null":return null;case"number":return n==="NaN"?NaN:n==="-0"?-0:n==="Infinity"?1/0:n==="-Infinity"?-1/0:n;case"array":return n.map(h=>ds.fromLocalValue(h));case"date":return new Date(n);case"map":let s=new Map;for(let[h,p]of n){let m=typeof h=="object"&&h!==null?ds.fromLocalValue(h):h,b=ds.fromLocalValue(p);s.set(m,b)}return s;case"object":let o={};for(let[h,p]of n)o[h]=ds.fromLocalValue(p);return o;case"regexp":let{pattern:l,flags:u}=n;return new RegExp(l,u);case"set":let d=new Set;for(let h of n)d.add(ds.fromLocalValue(h));return d;case"symbol":return Symbol(n);default:throw new Error(`Unsupported type: ${r}`)}}static fromLocalValueArray(t){return t.map(r=>ds.fromLocalValue(r))}static isLocalValueObject(t){if(typeof t!="object"||t===null||!t.hasOwnProperty(Jb))return!1;let r=t[Jb];return Object.values({...FT,...qT}).includes(r)?r!=="null"&&r!=="undefined"?t.hasOwnProperty(ev):!0:!1}},g(ds,"_RemoteValue"),ds),OZ={};hZ(OZ,{err:g(()=>YT,"err"),map:g(()=>QT,"map"),ok:g(()=>d2,"ok"),unwrap:g(()=>MZ,"unwrap"),unwrapErr:g(()=>NZ,"unwrapErr")});var d2=g(e=>({isOk:!0,isErr:!1,value:e}),"ok"),YT=g(e=>({isOk:!1,isErr:!0,value:e}),"err");function QT(e,t){if(e.isOk){let r=t(e.value);return r instanceof Promise?r.then(n=>d2(n)):d2(r)}if(e.isErr){let r=e.value;return YT(r)}throw"should never get here"}g(QT,"map");var MZ=g(e=>{if(e.isOk)return e.value;throw e.value},"unwrap"),NZ=g(e=>{if(e.isErr)return e.value;throw e.value},"unwrapErr");function XT(e){return typeof e!="string"||!e.startsWith(l2)?e:RZ.fromLocalValue(JSON.parse(atob(e.slice(l2.length))))}g(XT,"deserializeProperty");var F0=g(e=>{let t=ga(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Gd(t,e.tagName).forEach(n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(ZS(n,Kd(n),!1).length?n.hidden=!0:n.hidden=!1)});let r=0;for(r=0;r<t.length;r++){let n=t[r];n.nodeType===1&&ga(n,"childNodes").length&&F0(n)}},"updateFallbackSlotVisibility"),Nh=g(e=>{let t=[];for(let r=0;r<e.length;r++){let n=e[r]["s-nr"]||void 0;n&&n.isConnected&&t.push(n)}return t},"getSlottedChildNodes");function Gd(e,t,r){let n=0,s=[],o;for(;n<e.length;n++){if(o=e[n],o["s-sr"]&&(!t||o["s-hn"]===t)&&(r===void 0||Kd(o)===r)&&(s.push(o),typeof r<"u"))return s;s=[...s,...Gd(o.childNodes,t,r)]}return s}g(Gd,"getHostSlotNodes");var ZS=g((e,t,r=!0)=>{let n=[];(r&&e["s-sr"]||!e["s-sr"])&&n.push(e);let s=e;for(;s=s.nextSibling;)Kd(s)===t&&(r||!s["s-sr"])&&n.push(s);return n},"getSlotChildSiblings"),R$=g((e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="","isNodeLocatedInSlot"),q0=g((e,t,r,n)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;let s=document.createTextNode("");if(s["s-nr"]=e,!t["s-cr"]||!t["s-cr"].parentNode)return;let o=t["s-cr"].parentNode,l=r?ga(o,"prepend"):ga(o,"appendChild");if(typeof n<"u"){s["s-oo"]=n;let u=ga(o,"childNodes"),d=[s];u.forEach(h=>{h["s-nr"]&&d.push(h)}),d.sort((h,p)=>!h["s-oo"]||h["s-oo"]<(p["s-oo"]||0)?-1:!p["s-oo"]||p["s-oo"]<h["s-oo"]?1:0),d.forEach(h=>l.call(o,h))}else l.call(o,s);e["s-ol"]=s,e["s-sh"]=t["s-hn"]},"addSlotRelocateNode"),Kd=g(e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0,"getSlotName");function VS(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;let t=g(r=>(function(n){let s=[],o=this["s-sn"];n!=null&&n.flatten&&console.error(`
          Flattening is not supported for Stencil non-shadow slots. 
          You can use \`.childNodes\` to nested slot fallback content.
          If you have a particular use case, please open an issue on the Stencil repo.
        `);let l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:Nh(l.childNodes)).forEach(u=>{o===Kd(u)&&s.push(u)}),r?s.filter(u=>u.nodeType===1):s}).bind(e),"assignedFactory");e.assignedElements=t(!0),e.assignedNodes=t(!1)}g(VS,"patchSlotNode");function tp(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}g(tp,"dispatchSlotChangeEvent");function G0(e,t){var r;if(t=t||((r=e["s-ol"])==null?void 0:r.parentElement),!t)return{slotNode:null,slotName:""};let n=e["s-sn"]=Kd(e)||"",s=ga(t,"childNodes");return{slotNode:Gd(s,t.tagName,n)[0],slotName:n}}g(G0,"findSlotFromSlottedNode");var LZ=g(e=>{PZ(e),IZ(e),jZ(e),zZ(e),ZZ(e),BZ(e),UZ(e),HZ(e),VZ(e),FZ(e),DZ(e)},"patchPseudoShadowDom"),PZ=g(e=>{let t=e.cloneNode;e.cloneNode=function(r){let n=this,s=n.shadowRoot&&CZ,o=t.call(n,s?r:!1);if(!s&&r){let l=0,u,d,h=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],p=this.__childNodes||this.childNodes;for(;l<p.length;l++)u=p[l]["s-nr"],d=h.every(m=>!p[l][m]),u&&(o.__appendChild?o.__appendChild(u.cloneNode(!0)):o.appendChild(u.cloneNode(!0))),d&&o.appendChild(p[l].cloneNode(!0))}return o}},"patchCloneNode"),IZ=g(e=>{e.__appendChild=e.appendChild,e.appendChild=function(t){let{slotName:r,slotNode:n}=G0(t,this);if(n){q0(t,n);let s=ZS(n,r),o=s[s.length-1],l=ga(o,"parentNode"),u=ga(l,"insertBefore")(t,o.nextSibling);return tp(n),F0(this),u}return this.__appendChild(t)}},"patchSlotAppendChild"),DZ=g(e=>{e.__removeChild=e.removeChild,e.removeChild=function(t){if(t&&typeof t["s-sn"]<"u"){let r=this.__childNodes||this.childNodes;if(Gd(r,this.tagName,t["s-sn"])&&t.isConnected){t.remove(),F0(this);return}}return this.__removeChild(t)}},"patchSlotRemoveChild"),zZ=g(e=>{e.__prepend=e.prepend,e.prepend=function(...t){t.forEach(r=>{typeof r=="string"&&(r=this.ownerDocument.createTextNode(r));let n=(r["s-sn"]=Kd(r))||"",s=ga(this,"childNodes"),o=Gd(s,this.tagName,n)[0];if(o){q0(r,o,!0);let l=ZS(o,n)[0],u=ga(l,"parentNode"),d=ga(u,"insertBefore")(r,ga(l,"nextSibling"));return tp(o),d}return r.nodeType===1&&r.getAttribute("slot")&&(r.hidden=!0),e.__prepend(r)})}},"patchSlotPrepend"),jZ=g(e=>{e.__append=e.append,e.append=function(...t){t.forEach(r=>{typeof r=="string"&&(r=this.ownerDocument.createTextNode(r)),this.appendChild(r)})}},"patchSlotAppend"),BZ=g(e=>{let t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(r,n){if(r!=="afterbegin"&&r!=="beforeend")return t.call(this,r,n);let s=this.ownerDocument.createElement("_"),o;if(s.innerHTML=n,r==="afterbegin")for(;o=s.firstChild;)this.prepend(o);else if(r==="beforeend")for(;o=s.firstChild;)this.append(o)}},"patchSlotInsertAdjacentHTML"),UZ=g(e=>{e.insertAdjacentText=function(t,r){this.insertAdjacentHTML(t,r)}},"patchSlotInsertAdjacentText"),HZ=g(e=>{let t=e;t.__insertBefore||(t.__insertBefore=e.insertBefore,e.insertBefore=function(r,n){let{slotName:s,slotNode:o}=G0(r,this),l=this.__childNodes?this.childNodes:Nh(this.childNodes);if(o){let d=!1;if(l.forEach(h=>{if(h===n||n===null){if(d=!0,n===null||s!==n["s-sn"]){this.appendChild(r);return}if(s===n["s-sn"]){q0(r,o);let p=ga(n,"parentNode");ga(p,"insertBefore")(r,n),tp(o)}return}}),d)return r}let u=n==null?void 0:n.__parentNode;return u&&!this.isSameNode(u)?this.appendChild(r):this.__insertBefore(r,n)})},"patchInsertBefore"),ZZ=g(e=>{let t=e.insertAdjacentElement;e.insertAdjacentElement=function(r,n){return r!=="afterbegin"&&r!=="beforeend"?t.call(this,r,n):r==="afterbegin"?(this.prepend(n),n):(r==="beforeend"&&this.append(n),n)}},"patchSlotInsertAdjacentElement"),VZ=g(e=>{Ms("textContent",e),Object.defineProperty(e,"textContent",{get:g(function(){let t="";return(this.__childNodes?this.childNodes:Nh(this.childNodes)).forEach(r=>t+=r.textContent||""),t},"get"),set:g(function(t){(this.__childNodes?this.childNodes:Nh(this.childNodes)).forEach(r=>{r["s-ol"]&&r["s-ol"].remove(),r.remove()}),this.insertAdjacentHTML("beforeend",t)},"set")})},"patchTextContent"),FZ=g(e=>{var r;let t=(r=class extends Array{item(s){return this[s]}},g(r,"FakeNodeList"),r);Ms("children",e),Object.defineProperty(e,"children",{get(){return this.childNodes.filter(n=>n.nodeType===1)}}),Object.defineProperty(e,"childElementCount",{get(){return this.children.length}}),Ms("firstChild",e),Object.defineProperty(e,"firstChild",{get(){return this.childNodes[0]}}),Ms("lastChild",e),Object.defineProperty(e,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),Ms("childNodes",e),Object.defineProperty(e,"childNodes",{get(){let n=new t;return n.push(...Nh(this.__childNodes)),n}})},"patchChildSlotNodes"),qZ=g(e=>{!e||e.__nextSibling!==void 0||!globalThis.Node||(GZ(e),WZ(e),JT(e),e.nodeType===Node.ELEMENT_NODE&&(KZ(e),YZ(e)))},"patchSlottedNode"),GZ=g(e=>{!e||e.__nextSibling||(Ms("nextSibling",e),Object.defineProperty(e,"nextSibling",{get:g(function(){var t;let r=(t=this["s-ol"])==null?void 0:t.parentNode.childNodes,n=r==null?void 0:r.indexOf(this);return r&&n>-1?r[n+1]:this.__nextSibling},"get")}))},"patchNextSibling"),KZ=g(e=>{!e||e.__nextElementSibling||(Ms("nextElementSibling",e),Object.defineProperty(e,"nextElementSibling",{get:g(function(){var t;let r=(t=this["s-ol"])==null?void 0:t.parentNode.children,n=r==null?void 0:r.indexOf(this);return r&&n>-1?r[n+1]:this.__nextElementSibling},"get")}))},"patchNextElementSibling"),WZ=g(e=>{!e||e.__previousSibling||(Ms("previousSibling",e),Object.defineProperty(e,"previousSibling",{get:g(function(){var t;let r=(t=this["s-ol"])==null?void 0:t.parentNode.childNodes,n=r==null?void 0:r.indexOf(this);return r&&n>-1?r[n-1]:this.__previousSibling},"get")}))},"patchPreviousSibling"),YZ=g(e=>{!e||e.__previousElementSibling||(Ms("previousElementSibling",e),Object.defineProperty(e,"previousElementSibling",{get:g(function(){var t;let r=(t=this["s-ol"])==null?void 0:t.parentNode.children,n=r==null?void 0:r.indexOf(this);return r&&n>-1?r[n-1]:this.__previousElementSibling},"get")}))},"patchPreviousElementSibling"),JT=g(e=>{!e||e.__parentNode||(Ms("parentNode",e),Object.defineProperty(e,"parentNode",{get:g(function(){var t;return((t=this["s-ol"])==null?void 0:t.parentNode)||this.__parentNode},"get"),set:g(function(t){this.__parentNode=t},"set")}))},"patchParentNode"),QZ=["children","nextElementSibling","previousElementSibling"],XZ=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function Ms(e,t){let r;QZ.includes(e)?r=Object.getOwnPropertyDescriptor(Element.prototype,e):XZ.includes(e)&&(r=Object.getOwnPropertyDescriptor(Node.prototype,e)),r||(r=Object.getOwnPropertyDescriptor(t,e)),r&&Object.defineProperty(t,"__"+e,r)}g(Ms,"patchHostOriginalAccessor");function ga(e,t){if("__"+t in e){let r=e["__"+t];return typeof r!="function"?r:r.bind(e)}else return typeof e[t]!="function"?e[t]:e[t].bind(e)}g(ga,"internalCall");var Go=g((e,t="")=>()=>{},"createTime"),Y=g((e,t,...r)=>{let n=null,s=null,o=null,l=!1,u=!1,d=[],h=g(m=>{for(let b=0;b<m.length;b++)n=m[b],Array.isArray(n)?h(n):n!=null&&typeof n!="boolean"&&((l=typeof e!="function"&&!HS(n))&&(n=String(n)),l&&u?d[d.length-1].$text$+=n:d.push(l?Id(null,n):n),u=l)},"walk");if(h(r),t){t.key&&(s=t.key),t.name&&(o=t.name);{let m=t.className||t.class;m&&(t.class=typeof m!="object"?m:Object.keys(m).filter(b=>m[b]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,d,eV);let p=Id(e,null);return p.$attrs$=t,d.length>0&&(p.$children$=d),p.$key$=s,p.$name$=o,p},"h"),Id=g((e,t)=>{let r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r.$name$=null,r},"newVNode"),va={},JZ=g(e=>e&&e.$tag$===va,"isHost"),eV={forEach:g((e,t)=>e.map(O$).forEach(t),"forEach"),map:g((e,t)=>e.map(O$).map(t).map(tV),"map")},O$=g(e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),"convertToPublic"),tV=g(e=>{if(typeof e.vtag=="function"){let r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),Y(e.vtag,r,...e.vchildren||[])}let t=Id(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},"convertToPrivate"),rV=g((e,t,r,n)=>{var s;let o=Go("hydrateClient",t),l=e.shadowRoot,u=[],d=[],h=[],p=l?[]:null,m=Id(t,null);m.$elm$=e,Object.entries(((s=n.$cmpMeta$)==null?void 0:s.$members$)||{}).forEach(([O,[N,z]])=>{var k;if(!(N&31))return;let H=z||O,q=e.getAttribute(H);if(q!==null){let V=qS(q,N);(k=n==null?void 0:n.$instanceValues$)==null||k.set(O,V)}});let b;{let O=n.$cmpMeta$;O&&O.$flags$&10&&e["s-sc"]?(b=e["s-sc"],e.classList.add(b+"-h")):e["s-sc"]&&delete e["s-sc"]}Kr.document&&(!Ur.$orgLocNodes$||!Ur.$orgLocNodes$.size)&&h2(Kr.document.body,Ur.$orgLocNodes$=new Map),e[Mh]=r,e.removeAttribute(Mh),n.$vnode$=f2(m,u,d,p,e,e,r,h);let S=0,x=u.length,C;for(S;S<x;S++){C=u[S];let O=C.$hostId$+"."+C.$nodeId$,N=Ur.$orgLocNodes$.get(O),z=C.$elm$;l||(z["s-hn"]=t.toUpperCase(),C.$tag$==="slot"&&(z["s-cr"]=e["s-cr"])),C.$tag$==="slot"&&(C.$name$=C.$elm$["s-sn"]||C.$elm$.name||null,C.$children$?(C.$flags$|=2,C.$elm$.childNodes.length||C.$children$.forEach(k=>{C.$elm$.appendChild(k.$elm$)})):C.$flags$|=1),N&&N.isConnected&&(l&&N["s-en"]===""&&N.parentNode.insertBefore(z,N.nextSibling),N.parentNode.removeChild(N),l||(z["s-oo"]=parseInt(C.$nodeId$))),Ur.$orgLocNodes$.delete(O)}let $=[],_=h.length,M=0,T,R,L,j;for(M;M<_;M++)if(T=h[M],!(!T||!T.length))for(L=T.length,R=0,R;R<L;R++){if(j=T[R],$[j.hostId]||($[j.hostId]=Ur.$orgLocNodes$.get(j.hostId)),!$[j.hostId])continue;let O=$[j.hostId];(!O.shadowRoot||!l)&&(j.slot["s-cr"]=O["s-cr"],!j.slot["s-cr"]&&O.shadowRoot?j.slot["s-cr"]=O:j.slot["s-cr"]=(O.__childNodes||O.childNodes)[0],q0(j.node,j.slot,!1,j.node["s-oo"]),qZ(j.node)),O.shadowRoot&&j.node.parentElement!==O&&O.appendChild(j.node)}if(b&&d.length&&d.forEach(O=>{O.$elm$.parentElement.classList.add(b+"-s")}),l&&!l.childNodes.length){let O=0,N=p.length;if(N){for(O;O<N;O++)l.appendChild(p[O]);Array.from(e.childNodes).forEach(z=>{typeof z["s-sn"]!="string"&&(z.nodeType===1&&z.slot&&z.hidden?z.removeAttribute("hidden"):(z.nodeType===8||z.nodeType===3&&!z.wholeText.trim())&&z.parentNode.removeChild(z))})}}Ur.$orgLocNodes$.delete(e["s-id"]),n.$hostElement$=e,o()},"initializeClientHydrate"),f2=g((e,t,r,n,s,o,l,u=[])=>{let d,h,p,m,b=s["s-sc"];if(o.nodeType===1){if(d=o.getAttribute(E$),d&&(h=d.split("."),h[0]===l||h[0]==="0")){p=M$({$flags$:0,$hostId$:h[0],$nodeId$:h[1],$depth$:h[2],$index$:h[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:{class:o.className||""}}),t.push(p),o.removeAttribute(E$),e.$children$||(e.$children$=[]),b&&(o["s-si"]=b,p.$attrs$.class+=" "+b);let x=p.$elm$.getAttribute("s-sn");typeof x=="string"&&(p.$tag$==="slot-fb"&&(p2(x,h[2],p,o,e,t,r,n,u),b&&o.classList.add(b)),p.$elm$["s-sn"]=x,p.$elm$.removeAttribute("s-sn")),p.$index$!==void 0&&(e.$children$[p.$index$]=p),e=p,n&&p.$depth$==="0"&&(n[p.$index$]=p.$elm$)}if(o.shadowRoot)for(m=o.shadowRoot.childNodes.length-1;m>=0;m--)f2(e,t,r,n,s,o.shadowRoot.childNodes[m],l,u);let S=o.__childNodes||o.childNodes;for(m=S.length-1;m>=0;m--)f2(e,t,r,n,s,S[m],l,u)}else if(o.nodeType===8){if(h=o.nodeValue.split("."),h[1]===l||h[1]==="0"){if(d=h[0],p=M$({$hostId$:h[1],$nodeId$:h[2],$depth$:h[3],$index$:h[4]||"0",$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null}),d===SZ)p.$elm$=L$(o,3),p.$elm$&&p.$elm$.nodeType===3&&(p.$text$=p.$elm$.textContent,t.push(p),o.remove(),l===p.$hostId$&&(e.$children$||(e.$children$=[]),e.$children$[p.$index$]=p),n&&p.$depth$==="0"&&(n[p.$index$]=p.$elm$));else if(d===xZ)p.$elm$=L$(o,8),p.$elm$&&p.$elm$.nodeType===8&&(t.push(p),o.remove());else if(p.$hostId$===l)if(d===vZ){let S=o["s-sn"]=h[5]||"";p2(S,h[2],p,o,e,t,r,n,u)}else d===yZ&&(n?o.remove():(s["s-cr"]=o,o["s-cn"]=!0))}}else if(e&&e.$tag$==="style"){let S=Id(null,o.textContent);S.$elm$=o,S.$index$="0",e.$children$=[S]}else o.nodeType===3&&!o.wholeText.trim()&&o.remove();return e},"clientHydrate"),h2=g((e,t)=>{if(e.nodeType===1){let r=e[Mh]||e.getAttribute(Mh);r&&t.set(r,e);let n=0;if(e.shadowRoot)for(;n<e.shadowRoot.childNodes.length;n++)h2(e.shadowRoot.childNodes[n],t);let s=e.__childNodes||e.childNodes;for(n=0;n<s.length;n++)h2(s[n],t)}else if(e.nodeType===8){let r=e.nodeValue.split(".");r[0]===bZ&&(t.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},"initializeDocumentHydrate"),M$=g(e=>({$flags$:0,$hostId$:null,$nodeId$:null,$depth$:null,$index$:"0",$elm$:null,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null,...e}),"createSimpleVNode");function p2(e,t,r,n,s,o,l,u,d){n["s-sr"]=!0,r.$name$=e||null,r.$tag$="slot";let h=s!=null&&s.$elm$?s.$elm$["s-id"]||s.$elm$.getAttribute("s-id"):"";if(u&&Kr.document){let p=r.$elm$=Kr.document.createElement(r.$tag$);r.$name$&&r.$elm$.setAttribute("name",e),h&&h!==r.$hostId$?s.$elm$.insertBefore(p,s.$elm$.children[0]):n.parentNode.insertBefore(r.$elm$,n),N$(d,t,e,n,r.$hostId$),n.remove(),r.$depth$==="0"&&(u[r.$index$]=r.$elm$)}else{let p=r.$elm$,m=h&&h!==r.$hostId$&&s.$elm$.shadowRoot;N$(d,t,e,n,m?h:r.$hostId$),VS(n),m&&s.$elm$.insertBefore(p,s.$elm$.children[0]),o.push(r)}l.push(r),s.$children$||(s.$children$=[]),s.$children$[r.$index$]=r}g(p2,"addSlot");var N$=g((e,t,r,n,s)=>{let o=n.nextSibling;for(e[t]=e[t]||[];o&&((o.getAttribute&&o.getAttribute("slot")||o["s-sn"])===r||r===""&&!o["s-sn"]&&(o.nodeType===8&&o.nodeValue.indexOf(".")!==1||o.nodeType===3));)o["s-sn"]=r,e[t].push({slot:n,node:o,hostId:s}),o=o.nextSibling},"addSlottedNodes"),L$=g((e,t)=>{let r=e;do r=r.nextSibling;while(r&&(r.nodeType!==t||!r.nodeValue));return r},"findCorrespondingNode"),FS=g(e=>{let t=AZ(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")},"createSupportsRuleRe");FS("::slotted");FS(":host");FS(":host-context");var qS=g((e,t)=>{if(typeof e=="string"&&(e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]")))try{return e=JSON.parse(e),e}catch{}return typeof e=="string"&&e.startsWith(l2)?(e=XT(e),e):e!=null&&!HS(e)?t&4?e==="false"?!1:e===""||!!e:t&2?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:t&1?String(e):e:e},"parsePropertyValue"),e5=g(e=>e,"getElement"),Br=g((e,t,r)=>{let n=e5(e);return{emit:g(s=>t5(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s}),"emit")}},"createEvent"),t5=g((e,t,r)=>{let n=Ur.ce(t,r);return e.dispatchEvent(n),n},"emitEvent"),Vc=new WeakMap,r5=g((e,t,r)=>{let n=jg.get(e);GT&&r?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,jg.set(e,n)},"registerStyle"),n5=g((e,t,r)=>{var n;let s=GS(t),o=jg.get(s);if(!Kr.document)return s;if(e=e.nodeType===11?e:Kr.document,o)if(typeof o=="string"){e=e.head||e;let l=Vc.get(e),u;if(l||Vc.set(e,l=new Set),!l.has(s)){if(e.host&&(u=e.querySelector(`[${Bg}="${s}"]`)))u.innerHTML=o;else{u=document.querySelector(`[${Bg}="${s}"]`)||Kr.document.createElement("style"),u.innerHTML=o;let d=(n=Ur.$nonce$)!=null?n:WT(Kr.document);if(d!=null&&u.setAttribute("nonce",d),!(t.$flags$&1))if(e.nodeName==="HEAD"){let h=e.querySelectorAll("link[rel=preconnect]"),p=h.length>0?h[h.length-1].nextSibling:e.querySelector("style");e.insertBefore(u,(p==null?void 0:p.parentNode)===e?p:null)}else if("host"in e)if(GT){let h=new CSSStyleSheet;h.replaceSync(o),e.adoptedStyleSheets=[h,...e.adoptedStyleSheets]}else{let h=e.querySelector("style");h?h.innerHTML=o+h.innerHTML:e.prepend(u)}else e.append(u);t.$flags$&1&&e.insertBefore(u,null)}t.$flags$&4&&(u.innerHTML+=wZ),l&&l.add(s)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return s},"addStyle"),nV=g(e=>{let t=e.$cmpMeta$,r=e.$hostElement$,n=t.$flags$,s=Go("attachStyles",t.$tagName$),o=n5(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);n&10&&(r["s-sc"]=o,r.classList.add(o+"-h")),s()},"attachStyles"),GS=g((e,t)=>"sc-"+e.$tagName$,"getScopeId"),aV=g(e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),"convertScopedToShadow"),sV=g(()=>{if(!Kr.document)return;let e=Kr.document.querySelectorAll(`[${Bg}]`),t=0;for(;t<e.length;t++)r5(e[t].getAttribute(Bg),aV(e[t].innerHTML),!0)},"hydrateScopedToShadow"),P$=g((e,t,r,n,s,o,l)=>{if(r===n)return;let u=k$(e,t),d=t.toLowerCase();if(t==="class"){let h=e.classList,p=I$(r),m=I$(n);e["s-si"]&&l?(m.push(e["s-si"]),p.forEach(b=>{b.startsWith(e["s-si"])&&m.push(b)}),m=[...new Set(m)],h.add(...m)):(h.remove(...p.filter(b=>b&&!m.includes(b))),h.add(...m.filter(b=>b&&!p.includes(b))))}else if(t==="style"){for(let h in r)(!n||n[h]==null)&&(h.includes("-")?e.style.removeProperty(h):e.style[h]="");for(let h in n)(!r||n[h]!==r[h])&&(h.includes("-")?e.style.setProperty(h,n[h]):e.style[h]=n[h])}else if(t!=="key")if(t==="ref")n&&n(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):k$(Kr,d)?t=d.slice(2):t=d[2]+t.slice(3),r||n){let h=t.endsWith(a5);t=t.replace(oV,""),r&&Ur.rel(e,t,r,h),n&&Ur.ael(e,t,n,h)}}else{let h=HS(n);if((u||h&&n!==null)&&!s)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{let m=n??"";t==="list"?u=!1:(r==null||e[t]!=m)&&(typeof e.__lookupSetter__(t)=="function"?e[t]=m:e.setAttribute(t,m))}}catch{}let p=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(t=d,p=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(p?e.removeAttributeNS(_$,t):e.removeAttribute(t)):(!u||o&4||s)&&!h&&e.nodeType===1&&(n=n===!0?"":n,p?e.setAttributeNS(_$,t,n):e.setAttribute(t,n))}},"setAccessor"),iV=/\s/,I$=g(e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(iV)),"parseClassList"),a5="Capture",oV=new RegExp(a5+"$"),m2=g((e,t,r,n)=>{let s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||{},l=t.$attrs$||{};for(let u of g2(Object.keys(o)))u in l||P$(s,u,o[u],void 0,r,t.$flags$,n);for(let u of g2(Object.keys(l)))P$(s,u,o[u],l[u],r,t.$flags$,n)},"updateElement");function g2(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}g(g2,"sortedAttrNames");var ag,Ug,Hl,Hg=!1,Zg=!1,K0=!1,Aa=!1,Vg=g((e,t,r)=>{var n;let s=t.$children$[r],o=0,l,u,d;if(Hg||(K0=!0,s.$tag$==="slot"&&(s.$flags$|=s.$children$?2:1)),s.$text$!==null)l=s.$elm$=Kr.document.createTextNode(s.$text$);else if(s.$flags$&1)l=s.$elm$=Kr.document.createTextNode(""),m2(null,s,Aa);else{if(Aa||(Aa=s.$tag$==="svg"),!Kr.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=s.$elm$=Kr.document.createElementNS(Aa?pZ:mZ,!Hg&&Kl.slotRelocation&&s.$flags$&2?"slot-fb":s.$tag$),Aa&&s.$tag$==="foreignObject"&&(Aa=!1),m2(null,s,Aa),TZ(ag)&&l["s-si"]!==ag&&l.classList.add(l["s-si"]=ag),s.$children$)for(o=0;o<s.$children$.length;++o)u=Vg(e,s,o),u&&l.appendChild(u);s.$tag$==="svg"?Aa=!1:l.tagName==="foreignObject"&&(Aa=!0)}return l["s-hn"]=Hl,s.$flags$&3&&(l["s-sr"]=!0,l["s-cr"]=Ug,l["s-sn"]=s.$name$||"",l["s-rf"]=(n=s.$attrs$)==null?void 0:n.ref,VS(l),d=e&&e.$children$&&e.$children$[r],d&&d.$tag$===s.$tag$&&e.$elm$&&s5(e.$elm$),KS(Ug,l,t.$elm$,e==null?void 0:e.$elm$)),l},"createElm"),s5=g(e=>{Ur.$flags$|=1;let t=e.closest(Hl.toLowerCase());if(t!=null){let r=Array.from(t.__childNodes||t.childNodes).find(s=>s["s-cr"]),n=Array.from(e.__childNodes||e.childNodes);for(let s of r?n.reverse():n)s["s-sh"]!=null&&(Pi(t,s,r??null),s["s-sh"]=void 0,K0=!0)}Ur.$flags$&=-2},"relocateToHostRoot"),Fg=g((e,t)=>{Ur.$flags$|=1;let r=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]&&Kl.experimentalSlotFixes){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===Hl&&r.push(n)}for(let n=r.length-1;n>=0;n--){let s=r[n];s["s-hn"]!==Hl&&s["s-ol"]&&(Pi(Lh(s).parentNode,s,Lh(s)),s["s-ol"].remove(),s["s-ol"]=void 0,s["s-sh"]=void 0,K0=!0),t&&Fg(s,t)}Ur.$flags$&=-2},"putBackInOriginalLocation"),i5=g((e,t,r,n,s,o)=>{let l=e["s-cr"]&&e["s-cr"].parentNode||e,u;for(l.shadowRoot&&l.tagName===Hl&&(l=l.shadowRoot);s<=o;++s)n[s]&&(u=Vg(null,r,s),u&&(n[s].$elm$=u,Pi(l,u,Lh(t))))},"addVnodes"),o5=g((e,t,r)=>{for(let n=t;n<=r;++n){let s=e[n];if(s){let o=s.$elm$;c5(s),o&&(Zg=!0,o["s-ol"]?o["s-ol"].remove():Fg(o,!0),o.remove())}}},"removeVnodes"),lV=g((e,t,r,n,s=!1)=>{let o=0,l=0,u=0,d=0,h=t.length-1,p=t[0],m=t[h],b=n.length-1,S=n[0],x=n[b],C,$;for(;o<=h&&l<=b;)if(p==null)p=t[++o];else if(m==null)m=t[--h];else if(S==null)S=n[++l];else if(x==null)x=n[--b];else if(jm(p,S,s))jc(p,S,s),p=t[++o],S=n[++l];else if(jm(m,x,s))jc(m,x,s),m=t[--h],x=n[--b];else if(jm(p,x,s))(p.$tag$==="slot"||x.$tag$==="slot")&&Fg(p.$elm$.parentNode,!1),jc(p,x,s),Pi(e,p.$elm$,m.$elm$.nextSibling),p=t[++o],x=n[--b];else if(jm(m,S,s))(p.$tag$==="slot"||x.$tag$==="slot")&&Fg(m.$elm$.parentNode,!1),jc(m,S,s),Pi(e,m.$elm$,p.$elm$),m=t[--h],S=n[++l];else{for(u=-1,d=o;d<=h;++d)if(t[d]&&t[d].$key$!==null&&t[d].$key$===S.$key$){u=d;break}u>=0?($=t[u],$.$tag$!==S.$tag$?C=Vg(t&&t[l],r,u):(jc($,S,s),t[u]=void 0,C=$.$elm$),S=n[++l]):(C=Vg(t&&t[l],r,l),S=n[++l]),C&&Pi(Lh(p.$elm$).parentNode,C,Lh(p.$elm$))}o>h?i5(e,n[b+1]==null?null:n[b+1].$elm$,r,n,l,b):l>b&&o5(t,o,h)},"updateChildren"),jm=g((e,t,r=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:r?(r&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$:!1,"isSameVnode"),Lh=g(e=>e&&e["s-ol"]||e,"referenceNode"),jc=g((e,t,r=!1)=>{let n=t.$elm$=e.$elm$,s=e.$children$,o=t.$children$,l=t.$tag$,u=t.$text$,d;u===null?(Aa=l==="svg"?!0:l==="foreignObject"?!1:Aa,l==="slot"&&!Hg&&e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",s5(t.$elm$.parentElement)),m2(e,t,Aa,r),s!==null&&o!==null?lV(n,s,t,o,r):o!==null?(e.$text$!==null&&(n.textContent=""),i5(n,null,t,o,0,o.length-1)):!r&&Kl.updatable&&s!==null&&o5(s,0,s.length-1),Aa&&l==="svg"&&(Aa=!1)):(d=n["s-cr"])?d.parentNode.textContent=u:e.$text$!==u&&(n.data=u)},"patch"),Ti=[],l5=g(e=>{let t,r,n,s=e.__childNodes||e.childNodes;for(let o of s){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){r=t.parentNode.__childNodes||t.parentNode.childNodes;let l=o["s-sn"];for(n=r.length-1;n>=0;n--)if(t=r[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==o["s-hn"]))if(R$(t,l)){let u=Ti.find(d=>d.$nodeToRelocate$===t);Zg=!0,t["s-sn"]=t["s-sn"]||l,u?(u.$nodeToRelocate$["s-sh"]=o["s-hn"],u.$slotRefNode$=o):(t["s-sh"]=o["s-hn"],Ti.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&Ti.map(d=>{R$(d.$nodeToRelocate$,t["s-sn"])&&(u=Ti.find(h=>h.$nodeToRelocate$===t),u&&!d.$slotRefNode$&&(d.$slotRefNode$=u.$slotRefNode$))})}else Ti.some(u=>u.$nodeToRelocate$===t)||Ti.push({$nodeToRelocate$:t})}o.nodeType===1&&l5(o)}},"markSlotContentForRelocation"),c5=g(e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(c5)},"nullifyVNodeRefs"),Pi=g((e,t,r)=>{if(typeof t["s-sn"]=="string"&&t["s-sr"]&&t["s-cr"])KS(t["s-cr"],t,e,t.parentElement);else if(typeof t["s-sn"]=="string"){e.getRootNode().nodeType!==11&&JT(t),e.insertBefore(t,r);let{slotNode:n}=G0(t);return n&&tp(n),t}return e.__insertBefore?e.__insertBefore(t,r):e==null?void 0:e.insertBefore(t,r)},"insertBefore");function KS(e,t,r,n){var s,o;let l;if(e&&typeof t["s-sn"]=="string"&&t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(l=t["s-si"]||e.parentNode["s-sc"])){let u=t["s-sn"],d=t["s-hn"];if((s=r.classList)==null||s.add(l+"-s"),n&&(o=n.classList)!=null&&o.contains(l+"-s")){let h=(n.__childNodes||n.childNodes)[0],p=!1;for(;h;){if(h["s-sn"]!==u&&h["s-hn"]===d&&h["s-sr"]){p=!0;break}h=h.nextSibling}p||n.classList.remove(l+"-s")}}}g(KS,"addRemoveSlotScopedClass");var cV=g((e,t,r=!1)=>{var n,s,o,l,u;let d=e.$hostElement$,h=e.$cmpMeta$,p=e.$vnode$||Id(null,null),m=JZ(t)?t:Y(null,null,t);if(Hl=d.tagName,h.$attrsToReflect$&&(m.$attrs$=m.$attrs$||{},h.$attrsToReflect$.map(([b,S])=>m.$attrs$[S]=d[b])),r&&m.$attrs$)for(let b of Object.keys(m.$attrs$))d.hasAttribute(b)&&!["key","ref","style","class"].includes(b)&&(m.$attrs$[b]=d[b]);m.$tag$=null,m.$flags$|=4,e.$vnode$=m,m.$elm$=p.$elm$=d.shadowRoot||d,ag=d["s-sc"],Hg=!!(h.$flags$&1)&&!(h.$flags$&128),Ug=d["s-cr"],Zg=!1,jc(p,m,r);{if(Ur.$flags$|=1,K0){l5(m.$elm$);for(let b of Ti){let S=b.$nodeToRelocate$;if(!S["s-ol"]&&Kr.document){let x=Kr.document.createTextNode("");x["s-nr"]=S,Pi(S.parentNode,S["s-ol"]=x,S)}}for(let b of Ti){let S=b.$nodeToRelocate$,x=b.$slotRefNode$;if(x){let C=x.parentNode,$=x.nextSibling;if($&&$.nodeType===1){let T=(n=S["s-ol"])==null?void 0:n.previousSibling;for(;T;){let R=(s=T["s-nr"])!=null?s:null;if(R&&R["s-sn"]===S["s-sn"]&&C===(R.__parentNode||R.parentNode)){for(R=R.nextSibling;R===S||R!=null&&R["s-sr"];)R=R==null?void 0:R.nextSibling;if(!R||!R["s-nr"]){$=R;break}}T=T.previousSibling}}let _=S.__parentNode||S.parentNode,M=S.__nextSibling||S.nextSibling;(!$&&C!==_||M!==$)&&S!==$&&(Pi(C,S,$),S.nodeType===1&&S.tagName!=="SLOT-FB"&&(S.hidden=(o=S["s-ih"])!=null?o:!1)),S&&typeof x["s-rf"]=="function"&&x["s-rf"](x)}else S.nodeType===1&&(r&&(S["s-ih"]=(l=S.hidden)!=null?l:!1),S.hidden=!0)}}Zg&&F0(m.$elm$),Ur.$flags$&=-2,Ti.length=0}if(h.$flags$&2){let b=m.$elm$.__childNodes||m.$elm$.childNodes;for(let S of b)S["s-hn"]!==Hl&&!S["s-sh"]&&(r&&S["s-ih"]==null&&(S["s-ih"]=(u=S.hidden)!=null?u:!1),S.hidden=!0)}Ug=void 0},"renderVdom"),u5=g((e,t)=>{if(t&&!e.$onRenderResolve$&&t["s-p"]){let r=t["s-p"].push(new Promise(n=>e.$onRenderResolve$=()=>{t["s-p"].splice(r-1,1),n()}))}},"attachToAncestor"),W0=g((e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return u5(e,e.$ancestorComponent$),_Z(g(()=>uV(e,t),"dispatch"))},"scheduleUpdate"),uV=g((e,t)=>{let r=e.$hostElement$,n=Go("scheduleUpdate",e.$cmpMeta$.$tagName$),s=r;if(!s)throw new Error(`Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t?o=Jc(s,"componentWillLoad",void 0,r):o=Jc(s,"componentWillUpdate",void 0,r),o=D$(o,()=>Jc(s,"componentWillRender",void 0,r)),n(),D$(o,()=>fV(e,s,t))},"dispatchHooks"),D$=g((e,t)=>dV(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),"enqueue"),dV=g(e=>e instanceof Promise||e&&e.then&&typeof e.then=="function","isPromisey"),fV=g(async(e,t,r)=>{var n;let s=e.$hostElement$,o=Go("update",e.$cmpMeta$.$tagName$),l=s["s-rc"];r&&nV(e);let u=Go("render",e.$cmpMeta$.$tagName$);hV(e,t,s,r),l&&(l.map(d=>d()),s["s-rc"]=void 0),u(),o();{let d=(n=s["s-p"])!=null?n:[],h=g(()=>pV(e),"postUpdate");d.length===0?h():(Promise.all(d).then(h),e.$flags$|=4,d.length=0)}},"updateComponent"),y2=null,hV=g((e,t,r,n)=>{try{y2=t,t=t.render(),e.$flags$&=-17,e.$flags$|=2,cV(e,t,n)}catch(s){ep(s,e.$hostElement$)}return y2=null,null},"callRender"),z$=g(()=>y2,"getRenderingRef"),pV=g(e=>{let t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,n=Go("postUpdate",t),s=r,o=e.$ancestorComponent$;Jc(s,"componentDidRender",void 0,r),e.$flags$&64?(Jc(s,"componentDidUpdate",void 0,r),n()):(e.$flags$|=64,gV(r),Jc(s,"componentDidLoad",void 0,r),n(),e.$onReadyResolve$(r),o||mV()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&V0(()=>W0(e,!1)),e.$flags$&=-517},"postUpdateComponent"),j$=g(e=>{{let t=qo(e),r=t.$hostElement$.isConnected;return r&&(t.$flags$&18)===2&&W0(t,!1),r}},"forceUpdate"),mV=g(e=>{V0(()=>t5(Kr,"appload",{detail:{namespace:dZ}}))},"appDidLoad"),Jc=g((e,t,r,n)=>{if(e&&e[t])try{return e[t](r)}catch(s){ep(s,n)}},"safeCall"),gV=g(e=>{var t;return e.classList.add((t=Kl.hydratedSelectorName)!=null?t:"hydrated")},"addHydratedFlag"),yV=g((e,t)=>qo(e).$instanceValues$.get(t),"getValue"),B$=g((e,t,r,n)=>{let s=qo(e),o=e,l=s.$instanceValues$.get(t),u=s.$flags$,d=o;r=qS(r,n.$members$[t][0]);let h=Number.isNaN(l)&&Number.isNaN(r);if(r!==l&&!h){s.$instanceValues$.set(t,r);{if(n.$watchers$&&u&128){let p=n.$watchers$[t];p&&p.map(m=>{try{d[m](r,l,t)}catch(b){ep(b,o)}})}if((u&18)===2){if(d.componentShouldUpdate&&d.componentShouldUpdate(r,l,t)===!1)return;W0(s,!1)}}}},"setValue"),bV=g((e,t,r)=>{var n,s;let o=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);let l=Object.entries((n=t.$members$)!=null?n:{});l.map(([u,[d]])=>{if(d&31||d&32){let{get:h,set:p}=Object.getOwnPropertyDescriptor(o,u)||{};h&&(t.$members$[u][0]|=2048),p&&(t.$members$[u][0]|=4096),Object.defineProperty(o,u,{get(){return h?h.apply(this):yV(this,u)},configurable:!0,enumerable:!0}),Object.defineProperty(o,u,{set(m){let b=qo(this);if(p){let S=d&32?this[u]:b.$hostElement$[u];typeof S>"u"&&b.$instanceValues$.get(u)?m=b.$instanceValues$.get(u):!b.$instanceValues$.get(u)&&S&&b.$instanceValues$.set(u,S),p.apply(this,[qS(m,d)]),m=d&32?this[u]:b.$hostElement$[u],B$(this,u,m,t);return}{B$(this,u,m,t);return}}})}});{let u=new Map;o.attributeChangedCallback=function(d,h,p){Ur.jmp(()=>{var m;let b=u.get(d);if(!(this.hasOwnProperty(b)&&Kl.lazyLoad)){if(o.hasOwnProperty(b)&&typeof this[b]=="number"&&this[b]==p)return;if(b==null){let x=qo(this),C=x==null?void 0:x.$flags$;if(C&&!(C&8)&&C&128&&p!==h){let $=this,_=(m=t.$watchers$)==null?void 0:m[d];_==null||_.forEach(M=>{$[M]!=null&&$[M].call($,p,h,d)})}return}}let S=Object.getOwnPropertyDescriptor(o,b);p=p===null&&typeof this[b]=="boolean"?!1:p,p!==this[b]&&(!S.get||S.set)&&(this[b]=p)})},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.$watchers$)!=null?s:{}),...l.filter(([d,h])=>h[0]&15).map(([d,h])=>{var p;let m=h[1]||d;return u.set(m,d),h[0]&512&&((p=t.$attrsToReflect$)==null||p.push([d,m])),m})]))}}return e},"proxyComponent"),U$=g(async(e,t,r,n)=>{let s;if((t.$flags$&32)===0){t.$flags$|=32;{s=e.constructor;let u=e.localName;customElements.whenDefined(u).then(()=>t.$flags$|=128)}if(s&&s.style){let u;typeof s.style=="string"&&(u=s.style);let d=GS(r);if(!jg.has(d)){let h=Go("registerStyles",r.$tagName$);r5(d,u,!!(r.$flags$&1)),h()}}}let o=t.$ancestorComponent$,l=g(()=>W0(t,!0),"schedule");o&&o["s-rc"]?o["s-rc"].push(l):l()},"initializeComponent"),vV=g((e,t)=>{},"fireConnectedCallback"),SV=g(e=>{if((Ur.$flags$&1)===0){let t=qo(e),r=t.$cmpMeta$,n=Go("connectedCallback",r.$tagName$);if(t.$flags$&1)d5(e,t,r.$listeners$),t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>vV());else{t.$flags$|=1;let s;if(s=e.getAttribute(Mh),s){if(r.$flags$&1){let o=n5(e.shadowRoot,r);e.classList.remove(o+"-h",o+"-s")}else if(r.$flags$&2){let o=GS(r);e["s-sc"]=o}rV(e,r.$tagName$,s,t)}s||r.$flags$&12&&xV(e);{let o=e;for(;o=o.parentNode||o.host;)if(o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){u5(t,t.$ancestorComponent$=o);break}}r.$members$&&Object.entries(r.$members$).map(([o,[l]])=>{if(l&31&&e.hasOwnProperty(o)){let u=e[o];delete e[o],e[o]=u}}),Kl.initializeNextTick?V0(()=>U$(e,t,r)):U$(e,t,r)}n()}},"connectedCallback"),xV=g(e=>{if(!Kr.document)return;let t=e["s-cr"]=Kr.document.createComment("");t["s-cn"]=!0,Pi(e,t,e.firstChild)},"setContentReference"),wV=g(async e=>{if((Ur.$flags$&1)===0){let t=qo(e);t.$rmListeners$&&(t.$rmListeners$.map(r=>r()),t.$rmListeners$=void 0)}Vc.has(e)&&Vc.delete(e),e.shadowRoot&&Vc.has(e.shadowRoot)&&Vc.delete(e.shadowRoot)},"disconnectedCallback"),Zr=g((e,t)=>{let r={$flags$:t[0],$tagName$:t[1]};r.$members$=t[2],r.$listeners$=t[3],r.$watchers$=e.$watchers$,r.$attrsToReflect$=[],r.$flags$&2&&LZ(e.prototype),sV();let n=e.prototype.connectedCallback,s=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){gZ(this,r)},connectedCallback(){if(!this.__hasHostListenerAttached){let o=qo(this);d5(this,o,r.$listeners$),this.__hasHostListenerAttached=!0}SV(this),n&&n.call(this)},disconnectedCallback(){wV(this),s&&s.call(this)},__attachShadow(){if(!this.shadowRoot)this.attachShadow({mode:"open"});else if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${r.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}),e.is=r.$tagName$,bV(e,r)},"proxyCustomElement"),zo=g((e,t)=>t,"Fragment"),d5=g((e,t,r,n)=>{r&&Kr.document&&r.map(([s,o,l])=>{let u=$V(Kr.document,e,s),d=CV(t,l),h=kV(s);Ur.ael(u,o,d,h),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Ur.rel(u,o,d,h))})},"addHostEventListeners"),CV=g((e,t)=>r=>{try{e.$hostElement$[t](r)}catch(n){ep(n,e.$hostElement$)}},"hostListenerProxy"),$V=g((e,t,r)=>r&4?e:r&16?e.body:t,"getHostListenerTarget"),kV=g(e=>$Z?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,"hostListenerOpts"),EV=Object.create,f5=Object.defineProperty,_V=Object.getOwnPropertyDescriptor,TV=Object.getOwnPropertyNames,AV=Object.getPrototypeOf,RV=Object.prototype.hasOwnProperty,Wl=g((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),"A"),OV=g((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of TV(t))!RV.call(e,s)&&s!==r&&f5(e,s,{get:g(()=>t[s],"get"),enumerable:!(n=_V(t,s))||n.enumerable});return e},"Dt"),WS=g((e,t,r)=>(r=e!=null?EV(AV(e)):{},OV(f5(r,"default",{value:e,enumerable:!0}),e)),"Y"),h5=Wl(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isBytes=n,e.number=t,e.bool=r,e.bytes=s,e.hash=o,e.exists=l,e.output=u;function t(h){if(!Number.isSafeInteger(h)||h<0)throw new Error(`positive integer expected, not ${h}`)}g(t,"R");function r(h){if(typeof h!="boolean")throw new Error(`boolean expected, not ${h}`)}g(r,"me");function n(h){return h instanceof Uint8Array||h!=null&&typeof h=="object"&&h.constructor.name==="Uint8Array"}g(n,"ge");function s(h,...p){if(!n(h))throw new Error("Uint8Array expected");if(p.length>0&&!p.includes(h.length))throw new Error(`Uint8Array expected of length ${p}, not of length=${h.length}`)}g(s,"X");function o(h){if(typeof h!="function"||typeof h.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");t(h.outputLen),t(h.blockLen)}g(o,"ye");function l(h,p=!0){if(h.destroyed)throw new Error("Hash instance has been destroyed");if(p&&h.finished)throw new Error("Hash#digest() has already been called")}g(l,"Se");function u(h,p){s(h);let m=p.outputLen;if(h.length<m)throw new Error(`digestInto() expects output buffer of length at least ${m}`)}g(u,"be");var d={number:t,bool:r,bytes:s,hash:o,exists:l,output:u};e.default=d}),MV=Wl(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.add5L=e.add5H=e.add4H=e.add4L=e.add3H=e.add3L=e.rotlBL=e.rotlBH=e.rotlSL=e.rotlSH=e.rotr32L=e.rotr32H=e.rotrBL=e.rotrBH=e.rotrSL=e.rotrSH=e.shrSL=e.shrSH=e.toBig=void 0,e.fromBig=n,e.split=s,e.add=M;var t=BigInt(2**32-1),r=BigInt(32);function n(k,H=!1){return H?{h:Number(k&t),l:Number(k>>r&t)}:{h:Number(k>>r&t)|0,l:Number(k&t)|0}}g(n,"ee");function s(k,H=!1){let q=new Uint32Array(k.length),V=new Uint32Array(k.length);for(let W=0;W<k.length;W++){let{h:ae,l:Z}=n(k[W],H);[q[W],V[W]]=[ae,Z]}return[q,V]}g(s,"Ie");var o=g((k,H)=>BigInt(k>>>0)<<r|BigInt(H>>>0),"Te");e.toBig=o;var l=g((k,H,q)=>k>>>q,"we");e.shrSH=l;var u=g((k,H,q)=>k<<32-q|H>>>q,"xe");e.shrSL=u;var d=g((k,H,q)=>k>>>q|H<<32-q,"Ae");e.rotrSH=d;var h=g((k,H,q)=>k<<32-q|H>>>q,"Oe");e.rotrSL=h;var p=g((k,H,q)=>k<<64-q|H>>>q-32,"Ee");e.rotrBH=p;var m=g((k,H,q)=>k>>>q-32|H<<64-q,"Pe");e.rotrBL=m;var b=g((k,H)=>H,"ve");e.rotr32H=b;var S=g((k,H)=>k,"Ce");e.rotr32L=S;var x=g((k,H,q)=>k<<q|H>>>32-q,"_e");e.rotlSH=x;var C=g((k,H,q)=>H<<q|k>>>32-q,"Ne");e.rotlSL=C;var $=g((k,H,q)=>H<<q-32|k>>>64-q,"De");e.rotlBH=$;var _=g((k,H,q)=>k<<q-32|H>>>64-q,"ke");e.rotlBL=_;function M(k,H,q,V){let W=(H>>>0)+(V>>>0);return{h:k+q+(W/2**32|0)|0,l:W|0}}g(M,"Le");var T=g((k,H,q)=>(k>>>0)+(H>>>0)+(q>>>0),"Re");e.add3L=T;var R=g((k,H,q,V)=>H+q+V+(k/2**32|0)|0,"Me");e.add3H=R;var L=g((k,H,q,V)=>(k>>>0)+(H>>>0)+(q>>>0)+(V>>>0),"Be");e.add4L=L;var j=g((k,H,q,V,W)=>H+q+V+W+(k/2**32|0)|0,"Ue");e.add4H=j;var O=g((k,H,q,V,W)=>(k>>>0)+(H>>>0)+(q>>>0)+(V>>>0)+(W>>>0),"ze");e.add5L=O;var N=g((k,H,q,V,W,ae)=>H+q+V+W+ae+(k/2**32|0)|0,"He");e.add5H=N;var z={fromBig:n,split:s,toBig:o,shrSH:l,shrSL:u,rotrSH:d,rotrSL:h,rotrBH:p,rotrBL:m,rotr32H:b,rotr32L:S,rotlSH:x,rotlSL:C,rotlBH:$,rotlBL:_,add:M,add3L:T,add3H:R,add4L:L,add4H:j,add5H:N,add5L:O};e.default=z}),NV=Wl(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0}),LV=Wl(e=>{var q;Object.defineProperty(e,"__esModule",{value:!0}),e.Hash=e.nextTick=e.byteSwapIfBE=e.byteSwap=e.isLE=e.rotl=e.rotr=e.createView=e.u32=e.u8=void 0,e.isBytes=n,e.byteSwap32=p,e.bytesToHex=b,e.hexToBytes=C,e.asyncLoop=_,e.utf8ToBytes=M,e.toBytes=T,e.concatBytes=R,e.checkOpts=O,e.wrapConstructor=N,e.wrapConstructorWithOpts=z,e.wrapXOFConstructorWithOpts=k,e.randomBytes=H;var t=NV(),r=h5();function n(V){return V instanceof Uint8Array||V!=null&&typeof V=="object"&&V.constructor.name==="Uint8Array"}g(n,"Rt");var s=g(V=>new Uint8Array(V.buffer,V.byteOffset,V.byteLength),"Mt");e.u8=s;var o=g(V=>new Uint32Array(V.buffer,V.byteOffset,Math.floor(V.byteLength/4)),"Bt");e.u32=o;var l=g(V=>new DataView(V.buffer,V.byteOffset,V.byteLength),"Ut");e.createView=l;var u=g((V,W)=>V<<32-W|V>>>W,"zt");e.rotr=u;var d=g((V,W)=>V<<W|V>>>32-W>>>0,"Ht");e.rotl=d,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var h=g(V=>V<<24&4278190080|V<<8&16711680|V>>>8&65280|V>>>24&255,"Ft");e.byteSwap=h,e.byteSwapIfBE=e.isLE?V=>V:V=>(0,e.byteSwap)(V);function p(V){for(let W=0;W<V.length;W++)V[W]=(0,e.byteSwap)(V[W])}g(p,"Wt");var m=Array.from({length:256},(V,W)=>W.toString(16).padStart(2,"0"));function b(V){(0,r.bytes)(V);let W="";for(let ae=0;ae<V.length;ae++)W+=m[V[ae]];return W}g(b,"$t");var S={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function x(V){if(V>=S._0&&V<=S._9)return V-S._0;if(V>=S._A&&V<=S._F)return V-(S._A-10);if(V>=S._a&&V<=S._f)return V-(S._a-10)}g(x,"Ve");function C(V){if(typeof V!="string")throw new Error("hex string expected, got "+typeof V);let W=V.length,ae=W/2;if(W%2)throw new Error("padded hex string expected, got unpadded hex of length "+W);let Z=new Uint8Array(ae);for(let ne=0,ee=0;ne<ae;ne++,ee+=2){let re=x(V.charCodeAt(ee)),F=x(V.charCodeAt(ee+1));if(re===void 0||F===void 0){let J=V[ee]+V[ee+1];throw new Error('hex string expected, got non-hex character "'+J+'" at index '+ee)}Z[ne]=re*16+F}return Z}g(C,"jt");var $=g(async()=>{},"Jt");e.nextTick=$;async function _(V,W,ae){let Z=Date.now();for(let ne=0;ne<V;ne++){ae(ne);let ee=Date.now()-Z;ee>=0&&ee<W||(await(0,e.nextTick)(),Z+=ee)}}g(_,"Kt");function M(V){if(typeof V!="string")throw new Error(`utf8ToBytes expected string, got ${typeof V}`);return new Uint8Array(new TextEncoder().encode(V))}g(M,"$e");function T(V){return typeof V=="string"&&(V=M(V)),(0,r.bytes)(V),V}g(T,"U");function R(...V){let W=0;for(let Z=0;Z<V.length;Z++){let ne=V[Z];(0,r.bytes)(ne),W+=ne.length}let ae=new Uint8Array(W);for(let Z=0,ne=0;Z<V.length;Z++){let ee=V[Z];ae.set(ee,ne),ne+=ee.length}return ae}g(R,"qt");var L=(q=class{clone(){return this._cloneInto()}},g(q,"te"),q);e.Hash=L;var j={}.toString;function O(V,W){if(W!==void 0&&j.call(W)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(V,W)}g(O,"Yt");function N(V){let W=g(Z=>V().update(T(Z)).digest(),"e"),ae=V();return W.outputLen=ae.outputLen,W.blockLen=ae.blockLen,W.create=()=>V(),W}g(N,"Xt");function z(V){let W=g((Z,ne)=>V(ne).update(T(Z)).digest(),"e"),ae=V({});return W.outputLen=ae.outputLen,W.blockLen=ae.blockLen,W.create=Z=>V(Z),W}g(z,"Qt");function k(V){let W=g((Z,ne)=>V(ne).update(T(Z)).digest(),"e"),ae=V({});return W.outputLen=ae.outputLen,W.blockLen=ae.blockLen,W.create=Z=>V(Z),W}g(k,"Zt");function H(V=32){if(t.crypto&&typeof t.crypto.getRandomValues=="function")return t.crypto.getRandomValues(new Uint8Array(V));if(t.crypto&&typeof t.crypto.randomBytes=="function")return t.crypto.randomBytes(V);throw new Error("crypto.getRandomValues must be defined")}g(H,"en")}),PV=Wl(e=>{var L;Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=void 0,e.keccakP=_;var t=h5(),r=MV(),n=LV(),s=[],o=[],l=[],u=BigInt(0),d=BigInt(1),h=BigInt(2),p=BigInt(7),m=BigInt(256),b=BigInt(113);for(let j=0,O=d,N=1,z=0;j<24;j++){[N,z]=[z,(2*N+3*z)%5],s.push(2*(5*z+N)),o.push((j+1)*(j+2)/2%64);let k=u;for(let H=0;H<7;H++)O=(O<<d^(O>>p)*b)%m,O&h&&(k^=d<<(d<<BigInt(H))-d);l.push(k)}var[S,x]=(0,r.split)(l,!0),C=g((j,O,N)=>N>32?(0,r.rotlBH)(j,O,N):(0,r.rotlSH)(j,O,N),"Je"),$=g((j,O,N)=>N>32?(0,r.rotlBL)(j,O,N):(0,r.rotlSL)(j,O,N),"Ke");function _(j,O=24){let N=new Uint32Array(10);for(let z=24-O;z<24;z++){for(let q=0;q<10;q++)N[q]=j[q]^j[q+10]^j[q+20]^j[q+30]^j[q+40];for(let q=0;q<10;q+=2){let V=(q+8)%10,W=(q+2)%10,ae=N[W],Z=N[W+1],ne=C(ae,Z,1)^N[V],ee=$(ae,Z,1)^N[V+1];for(let re=0;re<50;re+=10)j[q+re]^=ne,j[q+re+1]^=ee}let k=j[2],H=j[3];for(let q=0;q<24;q++){let V=o[q],W=C(k,H,V),ae=$(k,H,V),Z=s[q];k=j[Z],H=j[Z+1],j[Z]=W,j[Z+1]=ae}for(let q=0;q<50;q+=10){for(let V=0;V<10;V++)N[V]=j[q+V];for(let V=0;V<10;V++)j[q+V]^=~N[(V+2)%10]&N[(V+4)%10]}j[0]^=S[z],j[1]^=x[z]}N.fill(0)}g(_,"Xe");var M=(L=class extends n.Hash{constructor(O,N,z,k=!1,H=24){if(super(),this.blockLen=O,this.suffix=N,this.outputLen=z,this.enableXOF=k,this.rounds=H,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,t.number)(z),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}keccak(){n.isLE||(0,n.byteSwap32)(this.state32),_(this.state32,this.rounds),n.isLE||(0,n.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(O){(0,t.exists)(this);let{blockLen:N,state:z}=this;O=(0,n.toBytes)(O);let k=O.length;for(let H=0;H<k;){let q=Math.min(N-this.pos,k-H);for(let V=0;V<q;V++)z[this.pos++]^=O[H++];this.pos===N&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:O,suffix:N,pos:z,blockLen:k}=this;O[z]^=N,N&128&&z===k-1&&this.keccak(),O[k-1]^=128,this.keccak()}writeInto(O){(0,t.exists)(this,!1),(0,t.bytes)(O),this.finish();let N=this.state,{blockLen:z}=this;for(let k=0,H=O.length;k<H;){this.posOut>=z&&this.keccak();let q=Math.min(z-this.posOut,H-k);O.set(N.subarray(this.posOut,this.posOut+q),k),this.posOut+=q,k+=q}return O}xofInto(O){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(O)}xof(O){return(0,t.number)(O),this.xofInto(new Uint8Array(O))}digestInto(O){if((0,t.output)(O,this),this.finished)throw new Error("digest() was already called");return this.writeInto(O),this.destroy(),O}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(O){let{blockLen:N,suffix:z,outputLen:k,rounds:H,enableXOF:q}=this;return O||(O=new L(N,z,k,q,H)),O.state32.set(this.state32),O.pos=this.pos,O.posOut=this.posOut,O.finished=this.finished,O.rounds=H,O.suffix=z,O.outputLen=k,O.enableXOF=q,O.destroyed=this.destroyed,O}},g(L,"t"),L);e.Keccak=M;var T=g((j,O,N)=>(0,n.wrapConstructor)(()=>new M(O,j,N)),"T");e.sha3_224=T(6,144,224/8),e.sha3_256=T(6,136,256/8),e.sha3_384=T(6,104,384/8),e.sha3_512=T(6,72,512/8),e.keccak_224=T(1,144,224/8),e.keccak_256=T(1,136,256/8),e.keccak_384=T(1,104,384/8),e.keccak_512=T(1,72,512/8);var R=g((j,O,N)=>(0,n.wrapXOFConstructorWithOpts)((z={})=>new M(O,j,z.dkLen===void 0?N:z.dkLen,!0)),"Qe");e.shake128=R(31,168,128/8),e.shake256=R(31,136,256/8)}),IV=Wl((e,t)=>{var{sha3_512:r}=PV(),n=24,s=32,o=g(($=4,_=Math.random)=>{let M="";for(;M.length<$;)M=M+Math.floor(_()*36).toString(36);return M},"re");function l($){let _=BigInt(8),M=BigInt(0);for(let T of $.values()){let R=BigInt(T);M=(M<<_)+R}return M}g(l,"nt");var u=g(($="")=>l(r($)).toString(36).slice(1),"rt"),d=Array.from({length:26},($,_)=>String.fromCharCode(_+97)),h=g($=>d[Math.floor($()*d.length)],"un"),p=g(({globalObj:$=typeof global<"u"?global:typeof window<"u"?window:{},random:_=Math.random}={})=>{let M=Object.keys($).toString(),T=M.length?M+o(s,_):o(s,_);return u(T).substring(0,s)},"st"),m=g($=>()=>$++,"ot"),b=476782367,S=g(({random:$=Math.random,counter:_=m(Math.floor($()*b)),length:M=n,fingerprint:T=p({random:$})}={})=>function(){let R=h($),L=Date.now().toString(36),j=_().toString(36),O=o(M,$),N=`${L+O+j+T}`;return`${R+u(N).substring(1,M)}`},"it"),x=S(),C=g(($,{minLength:_=2,maxLength:M=s}={})=>{let T=$.length,R=/^[a-z][0-9a-z]+$/;try{if(typeof $=="string"&&T>=_&&T<=M&&R.test($))return!0}finally{}return!1},"fn");t.exports.getConstants=()=>({defaultLength:n,bigLength:s}),t.exports.init=S,t.exports.createId=x,t.exports.bufToBigInt=l,t.exports.createCounter=m,t.exports.createFingerprint=p,t.exports.isCuid=C}),YS=Wl((e,t)=>{var{createId:r,init:n,getConstants:s,isCuid:o}=IV();t.exports.createId=r,t.exports.init=n,t.exports.getConstants=s,t.exports.isCuid=o}),DV=WS(YS()),zV={arabic:"ar",armenian:"am",bulgarian:"bg",danish:"dk",dutch:"nl",english:"en",finnish:"fi",french:"fr",german:"de",greek:"gr",hungarian:"hu",indian:"in",indonesian:"id",irish:"ie",italian:"it",lithuanian:"lt",nepali:"np",norwegian:"no",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"rs",slovenian:"ru",spanish:"es",swedish:"se",tamil:"ta",turkish:"tr",ukrainian:"uk",sanskrit:"sk"},jV=Object.keys(zV);Date.now().toString().slice(5);var H$=BigInt(1e3),Z$=BigInt(1e6),V$=BigInt(1e9);function p5(e){return typeof e=="number"&&(e=BigInt(e)),e<H$?`${e}ns`:e<Z$?`${e/H$}μs`:e<V$?`${e/Z$}ms`:`${e/V$}s`}g(p5,"dt");jV.join(`
 - `);function b2(e){return{raw:Number(e),formatted:p5(e)}}g(b2,"oe");var m5="2.1.4",BV={version:m5},F$=WS(YS()),UV="https://answer.api.orama.com",HV="/v1/indexes",q$="orama_user_id";function g5(e){let[t,...r]=e.split(`
`),n=r.join(`
`).replace("data: ","");return{event:t.replace("event: ",""),data:n}}g(g5,"bt");function v2(e){return typeof e=="object"?JSON.stringify(e):`${e}`}g(v2,"ae");var lu,ZV=(lu=class{constructor(t){Te(this,"messages");Te(this,"inferenceType");Te(this,"oramaClient");Te(this,"endpoint");Te(this,"abortController");Te(this,"events");Te(this,"userContext");Te(this,"conversationID");Te(this,"lastInteractionParams");Te(this,"state",[]);Te(this,"systemPrompts");let r=t.oramaClient.answersApiBaseURL||UV;this.messages=t.initialMessages||[],this.inferenceType=t.inferenceType,this.oramaClient=t.oramaClient,this.endpoint=`${r}/v1/answer?api-key=${this.oramaClient.api_key}`,this.events=t.events,this.conversationID=(0,F$.createId)(),this.userContext=t.userContext}async askStream(t){return this.messages.push({role:"user",content:t.term??""}),this.fetchAnswer(t)}async ask(t){var s;let r=await this.askStream(t),n="";for await(let o of r)n=o;return(s=this.events)!=null&&s.onMessageChange&&this.events.onMessageChange(this.messages),n}getMessages(){return this.messages}clearSession(){var t,r;this.messages=[],this.state=[],(t=this.events)!=null&&t.onMessageChange&&this.events.onMessageChange(this.messages),(r=this.events)!=null&&r.onStateChange&&this.events.onStateChange(this.state)}abortAnswer(){if(!this.abortController)throw new Error("AbortController is not ready");this.abortController.abort(),this.abortController=void 0,this.state[this.state.length-1].aborted=!0}async regenerateLast({stream:t=!0}={}){var r;if(this.state.length===0||this.messages.length===0)throw new Error("No messages to regenerate");if(((r=this.messages.at(-1))==null?void 0:r.role)!=="assistant")throw new Error("Last message is not an assistant message");return this.messages.pop(),this.state.pop(),t?this.askStream(this.lastInteractionParams):this.ask(this.lastInteractionParams)}addNewEmptyAssistantMessage(){this.messages.push({role:"assistant",content:""})}async*fetchAnswer(t){var o,l,u,d,h,p,m,b,S,x,C,$,_,M,T,R,L,j;this.abortController=new AbortController,this.lastInteractionParams=t;let r=(0,F$.createId)(),n=null,s=this.state.length;this.state.push({interactionId:r,query:t.term??"",response:"",relatedQueries:null,sources:null,translatedQuery:null,segment:null,trigger:null,aborted:!1,loading:!0,error:!1,errorMessage:null});try{(o=this.events)!=null&&o.onNewInteractionStarted&&this.events.onNewInteractionStarted(r),(l=this.events)!=null&&l.onStateChange&&this.events.onStateChange(this.state);let O=new URLSearchParams;O.append("type",this.inferenceType),O.append("messages",JSON.stringify(this.messages)),O.append("query",t.term??""),O.append("conversationId",this.conversationID),O.append("userId",this.oramaClient.getUserId()),O.append("endpoint",this.oramaClient.endpoint),O.append("searchParams",JSON.stringify(t)),O.append("identity",this.oramaClient.getIdentity()??""),O.append("interactionId",r),O.append("alias",this.oramaClient.getAlias()??"");let N=this.getSystemPromptConfiguration();if(N&&O.append("systemPrompts",JSON.stringify(N)),this.userContext&&O.append("userContext",v2(this.userContext)),t.userData&&O.append("userData",v2(t.userData)),t.related){if((u=t.related)!=null&&u.howMany&&((d=t.related)==null?void 0:d.howMany)>5)throw new Error("Can generate at most 5 related queries");O.append("related",JSON.stringify({enabled:!0,howMany:t.related.howMany??3,format:t.related.format??"question"}))}let z=await fetch(this.endpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:O.toString(),signal:this.abortController.signal});if(!z.ok||!z.body)throw new Error(z.statusText);n=z.body.getReader();let k=new TextDecoder,H=[],q="";(h=this.events)!=null&&h.onMessageLoading&&this.events.onMessageLoading(!0),this.addNewEmptyAssistantMessage();let V=this.messages.at(-1);for(;;){let{value:W,done:ae}=await n.read();if(ae)break;q+=k.decode(W,{stream:!0});let Z;for(;(Z=q.indexOf(`

`))!==-1;){let ne=q.slice(0,Z);q=q.slice(Z+2);try{let ee=g5(ne),re=JSON.parse(ee.data);if(re.type==="sources")this.state[s].sources=re.message,(p=this.events)!=null&&p.onSourceChange&&this.events.onSourceChange(re.message),(m=this.events)!=null&&m.onStateChange&&this.events.onStateChange(this.state);else if(re.type==="query-translated")this.state[s].translatedQuery=re.message,(b=this.events)!=null&&b.onQueryTranslated&&this.events.onQueryTranslated(re.message),(S=this.events)!=null&&S.onStateChange&&this.events.onStateChange(this.state);else if(re.type==="conversation-metadata"){let{segment:F,trigger:J}=re.message;F&&(this.state[s].segment=F),J&&(this.state[s].trigger=J),(x=this.events)!=null&&x.onStateChange&&this.events.onStateChange(this.state)}else if(re.type==="related-queries")this.state[s].relatedQueries=re.message,(C=this.events)!=null&&C.onRelatedQueries&&this.events.onRelatedQueries(re.message),($=this.events)!=null&&$.onStateChange&&this.events.onStateChange(this.state);else if(re.type==="text")for(H.push(re.message);H.length>0;)V.content+=H.shift(),this.state[s].response=V.content,(_=this.events)!=null&&_.onStateChange&&this.events.onStateChange(this.state),(M=this.events)!=null&&M.onMessageChange&&this.events.onMessageChange(this.messages),yield V.content}catch(ee){console.error("Error parsing SSE event:",ee),console.error("Raw message:",ne)}}}}catch(O){if(O.name==="AbortError")this.state[s].aborted=!0,(T=this.events)!=null&&T.onAnswerAborted&&this.events.onAnswerAborted(!0);else throw this.state[s].error=!0,this.state[s].errorMessage=O.message??"Unknown error",O}finally{n==null||n.releaseLock(),this.state[s].loading=!1,(R=this.events)!=null&&R.onStateChange&&this.events.onStateChange(this.state),(L=this.events)!=null&&L.onInteractionDone&&this.events.onInteractionDone(this.state[s]),(j=this.events)!=null&&j.onMessageLoading&&this.events.onMessageLoading(!1)}}setSystemPromptConfiguration(t){if(Array.isArray(t.systemPrompts)){if(!t.systemPrompts.every(r=>typeof r=="string"))throw new Error("Invalid system prompt configuration");this.systemPrompts=t.systemPrompts}return this}getSystemPromptConfiguration(){return this.systemPrompts}},g(lu,"H"),lu),cu,VV=(cu=class{constructor(t){Te(this,"cache");Te(this,"config");this.cache=new Map,this.config=t}set(t,r){this.cache.set(t,r)}get(t){return this.cache.get(t)}has(t){return this.cache.has(t)}delete(t){return this.cache.delete(t)}clear(){this.cache.clear()}size(){return this.cache.size}},g(cu,"F"),cu);function Y0(e,t){if(typeof navigator<"u"){typeof navigator.sendBeacon<"u"&&navigator.sendBeacon(e,t);return}fetch(e,{method:"POST",body:t,headers:{"Content-Type":"application/json"}}).then(()=>{},r=>console.log(r))}g(Y0,"O");var Pl,FV=(Pl=class{constructor(t,r){Te(this,"data");Te(this,"params");Te(this,"config");Te(this,"profile");this.data=[],this.config=t,this.profile=r}setParams(t){this.params=t}static create(t,r){let n=new Pl(t,r);return n.start(),n}add(t){this.data.push({rawSearchString:t.rawSearchString,query:t.query,resultsCount:t.resultsCount,roundTripTime:t.roundTripTime,searchedAt:t.searchedAt,userId:this.profile.getUserId(),identity:this.profile.getIdentity(),alias:this.profile.getAlias(),referer:typeof location<"u"?location.toString():void 0}),this.params!=null&&this.data.length>=this.config.flushSize&&this.flush()}flush(){var n;if(this.params==null||this.data.length===0)return;let t=this.data;this.data=[];let r={source:"fe",deploymentID:this.params.deploymentID,index:this.params.index,oramaId:this.config.id,oramaVersion:BV.version,userAgent:typeof navigator<"u"?navigator.userAgent:void 0,events:t};(n=Y0(`${this.params.endpoint}?api-key=${this.config.api_key}`,JSON.stringify(r)))==null||n.catch(s=>console.log(s))}start(){let t=setInterval(this.flush.bind(this),this.config.flushInterval);t.unref!=null&&t.unref()}},g(Pl,"t"),Pl),uu,qV=(uu=class{constructor(t){Te(this,"intervalId");this.params=t}start(){this.stop(),this.intervalId=setInterval(this.beat.bind(this),this.params.frequency)}stop(){this.intervalId!==void 0&&clearInterval(this.intervalId)}beat(){var t;(t=Y0(this.params.endpoint))==null||t.catch(r=>console.log(r))}},g(uu,"V"),uu),tv=WS(YS()),du,GV=(du=class{constructor({endpoint:t,apiKey:r}){Te(this,"endpoint");Te(this,"apiKey");Te(this,"userId");Te(this,"identity");Te(this,"userAlias");Te(this,"params");if(!t||!r)throw new Error("Endpoint and API Key are required to create a Profile");if(typeof t!="string"||typeof r!="string")throw new Error("Endpoint and API Key must be strings");if(typeof localStorage<"u"){let n=localStorage.getItem(q$);n?this.userId=n:(this.userId=(0,tv.createId)(),localStorage.setItem(q$,this.userId))}else this.userId=(0,tv.createId)();this.endpoint=t,this.apiKey=r}setParams(t){let{protocol:r,host:n}=new URL(t.identifyUrl),s=`${r}//${n}/identify`;this.params={identifyUrl:s,index:t.index}}getIdentity(){return this.identity}getUserId(){return this.userId}getAlias(){return this.userAlias}async sendProfileData(t){var n;if(!this.params)throw new Error("Orama Profile is not initialized");let r=JSON.stringify({...t,visitorId:this.getUserId(),index:this.params.index});await Y0(`${(n=this.params)==null?void 0:n.identifyUrl}?api-key=${this.apiKey}`,r)}async identify(t,r){if(typeof r!="string")throw new Error("Identity must be a string");await t,await this.sendProfileData({entity:"identity",id:r}),this.identity=r}async alias(t,r){if(typeof r!="string")throw new Error("Identity must be a string");await t,await this.sendProfileData({entity:"alias",id:r}),this.userAlias=r}reset(){this.userId=(0,tv.createId)(),this.identity=void 0,this.userAlias=void 0}},g(du,"j"),du);function y5(e){return e!==void 0&&(e==null?void 0:e.signal)!==void 0}g(y5,"vn");var fu,G$=(fu=class{constructor(t){Te(this,"id",(0,DV.createId)());Te(this,"api_key");Te(this,"endpoint");Te(this,"multiIndexSearch");Te(this,"mergeResults");Te(this,"multiIndexIndexes");Te(this,"answersApiBaseURL");Te(this,"collector");Te(this,"cache");Te(this,"profile");Te(this,"searchDebounceTimer");Te(this,"searchRequestCounter",0);Te(this,"blockSearchTillAuth",!1);Te(this,"heartbeat");Te(this,"initPromise");Te(this,"customerUserToken");Te(this,"searchToken");Te(this,"onAuthTokenExpired");Te(this,"expirationTimer");var r,n;if("indexes"in t){this.api_key=t.indexes[0].api_key,this.multiIndexIndexes=t.indexes;let s=new URL(t.indexes[0].endpoint).origin;if(t.indexes.some(o=>new URL(o.endpoint).origin!==s))throw new Error("All indexes must have the same endpoint origin");this.endpoint=s+HV,this.multiIndexSearch=!0,this.mergeResults=t.mergeResults??!0}else this.api_key=t.api_key,this.endpoint=t.endpoint,this.multiIndexSearch=!1,this.mergeResults=!0;if(this.answersApiBaseURL=t.answersApiBaseURL,this.profile=new GV({endpoint:this.endpoint,apiKey:this.api_key}),t.telemetry!==!1){let s={id:this.id,api_key:this.api_key,flushInterval:((r=t.telemetry)==null?void 0:r.flushInterval)??5e3,flushSize:((n=t.telemetry)==null?void 0:n.flushSize)??25};this.collector=FV.create(s,this.profile)}if(t.cache!==!1){let s={};this.cache=new VV(s)}this.init()}setAuthToken(t){t===null?(this.customerUserToken=void 0,this.searchToken=void 0):(this.customerUserToken=t,this.searchToken=void 0),this.init()}setOnAuthTokenExpired(t){this.onAuthTokenExpired=t}addSearchResultsToCollector(t,r,n,s){var o,l;if(this.collector)if(Array.isArray(t))for(let u of t)this.collector.add({rawSearchString:n.term,resultsCount:((o=u.hits)==null?void 0:o.length)??0,roundTripTime:r,query:n,cached:s,searchedAt:new Date,userId:this.profile.getUserId()});else this.collector.add({rawSearchString:n.term,resultsCount:((l=t==null?void 0:t.hits)==null?void 0:l.length)??0,roundTripTime:r,query:n,cached:s,searchedAt:new Date,userId:this.profile.getUserId()})}async search(t,r){var p;if(await this.initPromise,this.blockSearchTillAuth)return console.warn("Search request blocked until user is authenticated"),null;let n=++this.searchRequestCounter,s=`search-${JSON.stringify(t)}`,o=null,l,u=!1,d=(r==null?void 0:r.fresh)!==!0&&((p=this.cache)==null?void 0:p.has(s)),h=g(async()=>{var m;try{let b=Date.now();this.multiIndexSearch?o=await this.fetch("multi_search","POST",{q:{...t,mergeResults:this.mergeResults},sst:this.searchToken,indexes:this.multiIndexIndexes},r==null?void 0:r.abortController):o=await this.fetch("search","POST",{q:t,sst:this.searchToken},r==null?void 0:r.abortController);let S=Date.now();l=S-b;let x=await b2(BigInt(S*1e6-b*1e6));if(!Array.isArray(o))o.elapsed=x;else for(let C of o)C.elapsed=x;(m=this.cache)==null||m.set(s,o)}catch(b){if(b.name!=="AbortError")throw console.error("Search request failed",b),b}return this.addSearchResultsToCollector(o,l,t,u),o},"h");if(d&&this.cache)l=0,o=this.cache.get(s),u=!0,this.addSearchResultsToCollector(o,l,t,u);else return r!=null&&r.debounce?new Promise((m,b)=>{clearTimeout(this.searchDebounceTimer),this.searchDebounceTimer=setTimeout(async()=>{try{await h(),m(o)}catch(S){S.name!=="AbortError"&&(console.error("Search request failed",S),b(S))}},(r==null?void 0:r.debounce)||300),"unref"in this.searchDebounceTimer&&this.searchDebounceTimer.unref()}):h();return n===this.searchRequestCounter?o:null}async vectorSearch(t,r){var u,d,h;await this.initPromise;let n=`vectorSearch-${JSON.stringify(t)}`,s,o,l=!1;if(((r==null?void 0:r.fresh)!==!0&&((u=this.cache)==null?void 0:u.has(n)))===!0&&this.cache!=null)s=0,o=this.cache.get(n),l=!0;else{let p=Date.now();o=await this.fetch("vector-search2","POST",{q:t},(r==null?void 0:r.abortSignal)??(r==null?void 0:r.abortController));let m=Date.now();o.elapsed=await b2(BigInt(m*1e6-p*1e6)),s=m-p,(d=this.cache)==null||d.set(n,o)}return this.collector!=null&&this.collector.add({rawSearchString:t.term,resultsCount:((h=o.hits)==null?void 0:h.length)??0,roundTripTime:s,query:t,cached:l,searchedAt:new Date,userId:this.profile.getUserId()}),o}createAnswerSession(t){return new ZV({inferenceType:(t==null?void 0:t.inferenceType)||"documentation",initialMessages:(t==null?void 0:t.initialMessages)||[],oramaClient:this,events:t==null?void 0:t.events,userContext:t==null?void 0:t.userContext,systemPrompts:(t==null?void 0:t.systemPrompts)??[]})}startHeartBeat(t){var r;(r=this.heartbeat)==null||r.stop(),this.heartbeat=new qV({...t,endpoint:`${this.endpoint}/health?api-key=${this.api_key}`}),this.heartbeat.start()}stopHeartBeat(){var t;(t=this.heartbeat)==null||t.stop()}async getPop(){var t;return((t=await this.initPromise)==null?void 0:t.pop)??""}init(){let t=["init","GET",void 0,void 0,{token:this.customerUserToken}];this.multiIndexSearch&&(t=["init_multi_search","POST",{indexes:this.multiIndexIndexes},void 0,{token:this.customerUserToken}]),this.initPromise=this.fetch(...t).then(r=>{var n,s;if((n=this.collector)==null||n.setParams({endpoint:r.collectUrl,deploymentID:r.deploymentID,index:r.index}),(s=this.profile)==null||s.setParams({identifyUrl:r.collectUrl,index:r.index}),r.searchSession){if("required"in r.searchSession&&r.searchSession.required===!0)this.blockSearchTillAuth=!0;else if("token"in r.searchSession){let o=r.searchSession.token;this.searchToken=o;let l=r.searchSession.maxAge;this.blockSearchTillAuth=!1,this.expirationTimer&&clearTimeout(this.expirationTimer),this.expirationTimer=setTimeout(()=>{var u;this.searchToken===o&&(this.searchToken=void 0,this.blockSearchTillAuth=!0,(u=this.onAuthTokenExpired)==null||u.call(this,o))},l*1e3),"unref"in this.expirationTimer&&this.expirationTimer.unref()}}return r}).catch(r=>(console.log(r),null))}async fetch(t,r,n,s,o){let l=y5(s)?s==null?void 0:s.signal:s;if((l==null?void 0:l.aborted)===!0)throw new Error("Request aborted");let u={method:r,headers:{"Content-Type":"application/x-www-form-urlencoded"},signal:l};if(r==="POST"&&n!==void 0){let p=n;p.version=m5,p.id=this.id,p.visitorId=this.profile.getUserId(),u.body=Object.entries(p).filter(([m,b])=>!!b).map(([m,b])=>`${m}=${encodeURIComponent(JSON.stringify(b))}`).join("&")}let d=new URL(`${this.endpoint}/${t}`);if(this.multiIndexSearch||d.searchParams.append("api-key",this.api_key),o)for(let[p,m]of Object.entries(o))m&&d.searchParams.append(p,m);let h=await fetch(d,u);if(!h.ok){let p=new Error;throw p.httpResponse=h,p}return await h.json()}getIdentity(){return this.profile.getIdentity()}getUserId(){return this.profile.getUserId()}getAlias(){return this.profile.getAlias()}async identify(t){if(this.initPromise===void 0)throw new Error("OramaClient not initialized");await this.profile.identify(this.initPromise,t)}async alias(t){if(this.initPromise===void 0)throw new Error("OramaClient not initialized");await this.profile.alias(this.initPromise,t)}reset(){this.profile.reset()}},g(fu,"It"),fu);function b5(e,t,r="[focus-on-arrow-nav]"){if(t.key!=="ArrowDown"&&t.key!=="ArrowUp")return;t.stopPropagation(),t.preventDefault();let n=e.querySelectorAll(r),s=Array.from(n);s=s.filter(p=>p.tabIndex!==-1);let o=s[0],l=s[s.length-1],u=e.querySelector(":focus"),d=s.indexOf(u),h;t.key==="ArrowDown"?(h=d===s.length-1?o:s[d+1],h==null||h.focus()):t.key==="ArrowUp"&&(h=d===0?l:s[d-1],h==null||h.focus())}g(b5,"arrowKeysNavigation");function v5(e){var t;if(!((t=navigator.clipboard)===null||t===void 0)&&t.writeText)navigator.clipboard.writeText(e).catch(r=>{console.error("Could not copy text: ",r)});else{let r=document.createElement("textarea");r.value=e,r.setAttribute("readonly",""),r.style.position="absolute",r.style.left="-9999px",document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r)}}g(v5,"copyToClipboard");function rp(e,t){return Array.from(e.attributes).reduce((r,n)=>(t.includes(n.name)||(r[n.name]=n.value),r),{})}g(rp,"getNonExplicitAttributes");function QS(e,t,r,n){let s=`
    Component: ${e.tagName.toLowerCase()}
    Id: ${e.id}
  `;if(!t&&!r&&!n)throw new Error(`Invalid component configuration. Please provide a valid index or instance prop. ${s}`);if(t){if(r||n)throw new Error(`Invalid component configuration. Only one of indexOrIndexes, instance, or oramaCoreInstance can be provided. ${s}`);if((Array.isArray(t)?t:[t]).some(o=>!(o!=null&&o.api_key)||!(o!=null&&o.endpoint)))throw new Error(`Invalid cloud index configuration. Please provide a valid api_key and endpoint ${s}`);return}if(r){if(t||n)throw new Error(`Invalid component configuration. Only one of indexOrIndexes, instance, or oramaCoreInstance can be provided. ${s}`);return}if(n){if(t||r)throw new Error(`Invalid component configuration. Only one of indexOrIndexes, instance, or oramaCoreInstance can be provided. ${s}`);return}throw new Error(`Invalid instance. Expected either an OramaClient, Orama OSS database, or CollectionManager-like object. ${s}`)}g(QS,"validateCloudIndexConfig");function XS(e){if(Array.isArray(e)){let r=e;return new G$({mergeResults:!0,indexes:r})}let t=e;return new G$({api_key:t.api_key,endpoint:t.endpoint})}g(XS,"initOramaClient");function Q0(e){return`${`orama-ui-${e}`}-${Math.random().toString(36).substring(2,15)}`}g(Q0,"generateRandomID");function X0(e,t,r){let n=t==="system"?r:t;return e&&n&&(e.classList.remove("theme-light","theme-dark"),e.classList.add(`theme-${n}`)),n}g(X0,"updateThemeClasses");function J0(e,t,r){var n;if(!(!e||!r||!t))for(let s of Object.keys(r))if(s==="colors"){if(!((n=r[s])===null||n===void 0)&&n[t])for(let o of Object.keys(r[s][t]))e.style.setProperty(`${o}`,r[s][t][o])}else for(let o of Object.keys(r[s]))e.style.setProperty(`${o}`,r[s][o])}g(J0,"updateCssVariables");var KV='.button.sc-orama-button{align-items:center;border:0;border-radius:.75rem;border-radius:var(--radius-m,calc(12rem/var(--orama-base-font-size, 16)));cursor:pointer;display:flex;font-family:font("primary");font-family:var(--font-primary,font("primary"));gap:.5rem;gap:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));position:relative;text-align:left;transition:all .2s;transition-property:color,background-color,opacity;width:100%}.button__tooltip.sc-orama-button{animation:fadeInOut 1s ease-in-out 1;background-color:#151515;background-color:var(--text-color-primary,#151515);border-radius:.5rem;border-radius:var(--radius-s,calc(8rem/var(--orama-base-font-size, 16)));color:#fbfbfb;color:var(--background-color-primary,#fbfbfb);display:block;font-size:10px;opacity:0;padding:.5rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));position:absolute;top:-28px;z-index:1}.button--small.sc-orama-button{padding:.25rem;padding:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)))}.button--medium.sc-orama-button{padding:.5rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)))}.button--large.sc-orama-button{padding:.75rem;padding:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)))}.button__label.sc-orama-button{align-items:center;display:flex;flex-grow:1;gap:.25rem;gap:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)))}.button--primary.sc-orama-button{background-color:#432d77;background-color:var(--button-background-color-primary,#432d77);color:#fbfbfb;color:var(--button-text-color-primary,#fbfbfb)}.button--primary.sc-orama-button:disabled{background-color:#eee9f6;background-color:var(--background-color-tertiary,#eee9f6);color:var(--text-color-tertiary)}.button--secondary.sc-orama-button{background-color:#fff;background-color:var(--button-background-color-secondary,#fff);border:1px solid #dadada;border:1px solid var(--button-border-color-secondary,#dadada);color:#838289;color:var(--button-text-color-secondary,#838289);transition:all .3s}@media (hover:hover){.button--secondary.sc-orama-button:hover{background-color:#eee9f6;background-color:var(--button-background-color-secondary-hover,#eee9f6)}}.button--secondary.sc-orama-button:focus-visible{border:1px solid #9671b0;outline:none}.button--secondary.sc-orama-button:disabled{background-color:#eee9f6;background-color:var(--background-color-tertiary,#eee9f6);color:var(--text-color-tertiary)}.button--icon.sc-orama-button{align-items:center;background-color:transparent;border-radius:50%;color:#99989d;color:var(--icon-color-tertiary,#99989d);font-family:font("primary");font-family:var(--font-primary,font("primary"));height:-moz-fit-content;height:fit-content;justify-content:center;padding:.5rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));width:-moz-fit-content;width:fit-content}.button--icon.sc-orama-button:disabled{opacity:.6}.button--icon.sc-orama-button:disabled,.button--icon.sc-orama-button:hover{background-color:#eee9f6;background-color:var(--background-color-tertiary,#eee9f6)}.sc-orama-button-s>*{align-items:center;display:inline-flex}.sc-orama-button-s>[slot=adorment-end],.sc-orama-button-s>[slot=adorment-start]{flex-grow:0}@keyframes fadeInOut{0%{opacity:0}50%{opacity:1}to{opacity:0}}',hu,WV=Zr((hu=class extends Hr{constructor(){super(),this.__registerHost(),this.as="button",this.variant="primary",this.size="medium"}render(){let t=this.as,r=["as","class","variant"],n=rp(this.el,r),s=`button button--${this.variant} button--${this.size} ${this.class||""}`;return Y(t,Object.assign({key:"af470570a767787e5e85ec5c0ecc4cfb66e5b142",class:s},n,{disabled:this.disabled}),Y("span",{key:"483fb6a261decf60053ec78726912e11ae271e74",class:"button__label"},Y("slot",{key:"3d00cc8a7fe04471095f87b9989eebf38c79764a",name:"adorment-start"}),this.withTooltip&&Y("span",{key:"bdda78c3dc2e39b53254a5506dcfb53bffdb9ed3",class:"button__tooltip"},this.withTooltip),Y("slot",{key:"6582b9e1c0481f18ac91844b0f09ff09b9fa1fbf"})),Y("slot",{key:"31d3bcf229c837809ccf3ba74986a179fe028c87",name:"adorment-end"}))}get el(){return this}static get style(){return KV}},g(hu,"OramaButton"),hu),[6,"orama-button",{as:[1],class:[1],variant:[1],size:[1],type:[1],disabled:[4],withTooltip:[1,"with-tooltip"]}]);function Ko(){typeof customElements>"u"||["orama-button"].forEach(e=>{switch(e){case"orama-button":customElements.get(e)||customElements.define(e,WV);break}})}g(Ko,"defineCustomElement");var sg=globalThis,JS=sg.ShadowRoot&&(sg.ShadyCSS===void 0||sg.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ex=Symbol(),K$=new WeakMap,pu,S5=(pu=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==ex)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(JS&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=K$.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&K$.set(r,t))}return t}toString(){return this.cssText}},g(pu,"l"),pu),YV=g(e=>new S5(typeof e=="string"?e:e+"",void 0,ex),"h$1"),Pn=g((e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,s,o)=>n+(l=>{if(l._$cssResult$===!0)return l.cssText;if(typeof l=="number")return l;throw Error("Value passed to 'css' function must be a 'css' function result: "+l+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[o+1],e[0]);return new S5(r,e,ex)},"p$3"),QV=g((e,t)=>{if(JS)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),s=sg.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=r.cssText,e.appendChild(n)}},"d$2"),W$=JS?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return YV(r)})(e):e,{is:XV,defineProperty:JV,getOwnPropertyDescriptor:eF,getOwnPropertyNames:tF,getOwnPropertySymbols:rF,getPrototypeOf:nF}=Object,Dd=globalThis,Y$=Dd.trustedTypes,aF=Y$?Y$.emptyScript:"",rv=Dd.reactiveElementPolyfillSupport,mh=g((e,t)=>e,"l$1"),qg={toAttribute(e,t){switch(t){case Boolean:e=e?aF:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},tx=g((e,t)=>!XV(e,t),"y$2"),Q$={attribute:!0,type:String,converter:qg,reflect:!1,hasChanged:tx};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),Dd.litPropertyMetadata!=null||(Dd.litPropertyMetadata=new WeakMap);var mu,Bc=(mu=class extends HTMLElement{static addInitializer(t){var r;this._$Ei(),((r=this.l)!=null?r:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Q$){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),s=this.getPropertyDescriptor(t,n,r);s!==void 0&&JV(this.prototype,t,s)}}static getPropertyDescriptor(t,r,n){var s;let{get:o,set:l}=(s=eF(this.prototype,t))!=null?s:{get(){return this[r]},set(u){this[r]=u}};return{get(){return o==null?void 0:o.call(this)},set(u){let d=o==null?void 0:o.call(this);l.call(this,u),this.requestUpdate(t,d,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var r;return(r=this.elementProperties.get(t))!=null?r:Q$}static _$Ei(){if(this.hasOwnProperty(mh("elementProperties")))return;let t=nF(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(mh("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(mh("properties"))){let r=this.properties,n=[...tF(r),...rF(r)];for(let s of n)this.createProperty(s,r[s])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,s]of r)this.elementProperties.set(n,s)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let s=this._$Eu(r,n);s!==void 0&&this._$Eh.set(s,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let s of n)r.unshift(W$(s))}else t!==void 0&&r.push(W$(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(r=>r(this))}addController(t){var r,n;((r=this._$EO)!=null?r:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var r;(r=this._$EO)==null||r.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;let r=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return QV(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(r=>{var n;return(n=r.hostConnected)==null?void 0:n.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)})}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EC(t,r){var n;let s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(o!==void 0&&s.reflect===!0){let l=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:qg).toAttribute(r,s.type);this._$Em=t,l==null?this.removeAttribute(o):this.setAttribute(o,l),this._$Em=null}}_$AK(t,r){var n;let s=this.constructor,o=s._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let l=s.getPropertyOptions(o),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((n=l.converter)==null?void 0:n.fromAttribute)!==void 0?l.converter:qg;this._$Em=o,this[o]=u.fromAttribute(r,l.type),this._$Em=null}}requestUpdate(t,r,n){var s;if(t!==void 0){if(n!=null||(n=this.constructor.getPropertyOptions(t)),!((s=n.hasChanged)!=null?s:tx)(this[t],r))return;this.P(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,n){var s;this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$Em!==t&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[o,l]of this._$Ep)this[o]=l;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[o,l]of s)l.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],l)}let r=!1,n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(t=this._$EO)==null||t.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(n)):this._$EU()}catch(s){throw r=!1,this._$EU(),s}r&&this._$AE(n)}willUpdate(t){}_$AE(t){var r;(r=this._$EO)==null||r.forEach(n=>{var s;return(s=n.hostUpdated)==null?void 0:s.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(t){}firstUpdated(t){}},g(mu,"c"),mu),X$;Bc.elementStyles=[],Bc.shadowRootOptions={mode:"open"},Bc[mh("elementProperties")]=new Map,Bc[mh("finalized")]=new Map,rv==null||rv({ReactiveElement:Bc}),((X$=Dd.reactiveElementVersions)!=null?X$:Dd.reactiveElementVersions=[]).push("2.0.4");var Gg=globalThis,Kg=Gg.trustedTypes,J$=Kg?Kg.createPolicy("lit-html",{createHTML:g(e=>e,"createHTML")}):void 0,x5="$lit$",Oo=`lit$${Math.random().toFixed(9).slice(2)}$`,w5="?"+Oo,sF=`<${w5}>`,Zl=document,Ph=g(()=>Zl.createComment(""),"x"),Ih=g(e=>e===null||typeof e!="object"&&typeof e!="function","H"),C5=Array.isArray,iF=g(e=>C5(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function","Z"),nv=`[ 	
\f\r]`,Yf=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ek=/-->/g,tk=/>/g,ml=RegExp(`>|${nv}(?:([^\\s"'>=/]+)(${nv}*=${nv}*(?:[^ 	
\f\r"'\`<>=]|("|')|))|$)`,"g"),rk=/'/g,nk=/"/g,$5=/^(?:script|style|textarea|title)$/i,k5=g(e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),"O$1"),In=k5(1),$e=k5(2),zd=Symbol.for("lit-noChange"),Mn=Symbol.for("lit-nothing"),ak=new WeakMap,Cl=Zl.createTreeWalker(Zl,129);function rx(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return J$!==void 0?J$.createHTML(t):t}g(rx,"z");var oF=g((e,t)=>{let r=e.length-1,n=[],s,o=t===2?"<svg>":"",l=Yf;for(let u=0;u<r;u++){let d=e[u],h,p,m=-1,b=0;for(;b<d.length&&(l.lastIndex=b,p=l.exec(d),p!==null);)b=l.lastIndex,l===Yf?p[1]==="!--"?l=ek:p[1]!==void 0?l=tk:p[2]!==void 0?($5.test(p[2])&&(s=RegExp("</"+p[2],"g")),l=ml):p[3]!==void 0&&(l=ml):l===ml?p[0]===">"?(l=s??Yf,m=-1):p[1]===void 0?m=-2:(m=l.lastIndex-p[2].length,h=p[1],l=p[3]===void 0?ml:p[3]==='"'?nk:rk):l===nk||l===rk?l=ml:l===ek||l===tk?l=Yf:(l=ml,s=void 0);let S=l===ml&&e[u+1].startsWith("/>")?" ":"";o+=l===Yf?d+sF:m>=0?(n.push(h),d.slice(0,m)+x5+d.slice(m)+Oo+S):d+Oo+(m===-2?u:S)}return[rx(e,o+(e[r]||"<?>")+(t===2?"</svg>":"")),n]},"q"),Il,S2=(Il=class{constructor({strings:t,_$litType$:r},n){let s;this.parts=[];let o=0,l=0,u=t.length-1,d=this.parts,[h,p]=oF(t,r);if(this.el=Il.createElement(h,n),Cl.currentNode=this.el.content,r===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(s=Cl.nextNode())!==null&&d.length<u;){if(s.nodeType===1){if(s.hasAttributes())for(let m of s.getAttributeNames())if(m.endsWith(x5)){let b=p[l++],S=s.getAttribute(m).split(Oo),x=/([.?@])?(.*)/.exec(b);d.push({type:1,index:o,name:x[2],strings:S,ctor:x[1]==="."?cF:x[1]==="?"?uF:x[1]==="@"?dF:e1}),s.removeAttribute(m)}else m.startsWith(Oo)&&(d.push({type:6,index:o}),s.removeAttribute(m));if($5.test(s.tagName)){let m=s.textContent.split(Oo),b=m.length-1;if(b>0){s.textContent=Kg?Kg.emptyScript:"";for(let S=0;S<b;S++)s.append(m[S],Ph()),Cl.nextNode(),d.push({type:2,index:++o});s.append(m[b],Ph())}}}else if(s.nodeType===8)if(s.data===w5)d.push({type:2,index:o});else{let m=-1;for(;(m=s.data.indexOf(Oo,m+1))!==-1;)d.push({type:7,index:o}),m+=Oo.length-1}o++}}static createElement(t,r){let n=Zl.createElement("template");return n.innerHTML=t,n}},g(Il,"T"),Il);function Vl(e,t,r=e,n){var s,o,l;if(t===zd)return t;let u=n!==void 0?(s=r._$Co)==null?void 0:s[n]:r._$Cl,d=Ih(t)?void 0:t._$litDirective$;return(u==null?void 0:u.constructor)!==d&&((o=u==null?void 0:u._$AO)==null||o.call(u,!1),d===void 0?u=void 0:(u=new d(e),u._$AT(e,r,n)),n!==void 0?((l=r._$Co)!=null?l:r._$Co=[])[n]=u:r._$Cl=u),u!==void 0&&(t=Vl(e,u._$AS(e,t.values),u,n)),t}g(Vl,"f$1");var gu,lF=(gu=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var r;let{el:{content:n},parts:s}=this._$AD,o=((r=t==null?void 0:t.creationScope)!=null?r:Zl).importNode(n,!0);Cl.currentNode=o;let l=Cl.nextNode(),u=0,d=0,h=s[0];for(;h!==void 0;){if(u===h.index){let p;h.type===2?p=new nx(l,l.nextSibling,this,t):h.type===1?p=new h.ctor(l,h.name,h.strings,this,t):h.type===6&&(p=new fF(l,this,t)),this._$AV.push(p),h=s[++d]}u!==(h==null?void 0:h.index)&&(l=Cl.nextNode(),u++)}return Cl.currentNode=Zl,o}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},g(gu,"G"),gu),Dl,nx=(Dl=class{get _$AU(){var t,r;return(r=(t=this._$AM)==null?void 0:t._$AU)!=null?r:this._$Cv}constructor(t,r,n,s){var o;this.type=2,this._$AH=Mn,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=s,this._$Cv=(o=s==null?void 0:s.isConnected)!=null?o:!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Vl(this,t,r),Ih(t)?t===Mn||t==null||t===""?(this._$AH!==Mn&&this._$AR(),this._$AH=Mn):t!==this._$AH&&t!==zd&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):iF(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==Mn&&Ih(this._$AH)?this._$AA.nextSibling.data=t:this.T(Zl.createTextNode(t)),this._$AH=t}$(t){var r;let{values:n,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=S2.createElement(rx(s.h,s.h[0]),this.options)),s);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(n);else{let l=new lF(o,this),u=l.u(this.options);l.p(n),this.T(u),this._$AH=l}}_$AC(t){let r=ak.get(t.strings);return r===void 0&&ak.set(t.strings,r=new S2(t)),r}k(t){C5(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,s=0;for(let o of t)s===r.length?r.push(n=new Dl(this.S(Ph()),this.S(Ph()),this,this.options)):n=r[s],n._$AI(o),s++;s<r.length&&(this._$AR(n&&n._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){var r;this._$AM===void 0&&(this._$Cv=t,(r=this._$AP)==null||r.call(this,t))}},g(Dl,"b"),Dl),yu,e1=(yu=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,s,o){this.type=1,this._$AH=Mn,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Mn}_$AI(t,r=this,n,s){let o=this.strings,l=!1;if(o===void 0)t=Vl(this,t,r,0),l=!Ih(t)||t!==this._$AH&&t!==zd,l&&(this._$AH=t);else{let u=t,d,h;for(t=o[0],d=0;d<o.length-1;d++)h=Vl(this,u[n+d],r,d),h===zd&&(h=this._$AH[d]),l||(l=!Ih(h)||h!==this._$AH[d]),h===Mn?t=Mn:t!==Mn&&(t+=(h??"")+o[d+1]),this._$AH[d]=h}l&&!s&&this.j(t)}j(t){t===Mn?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},g(yu,"M"),yu),bu,cF=(bu=class extends e1{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Mn?void 0:t}},g(bu,"J"),bu),vu,uF=(vu=class extends e1{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Mn)}},g(vu,"K"),vu),Su,dF=(Su=class extends e1{constructor(t,r,n,s,o){super(t,r,n,s,o),this.type=5}_$AI(t,r=this){var n;if((t=(n=Vl(this,t,r,0))!=null?n:Mn)===zd)return;let s=this._$AH,o=t===Mn&&s!==Mn||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,l=t!==Mn&&(s===Mn||o);o&&this.element.removeEventListener(this.name,this,s),l&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,n;typeof this._$AH=="function"?this._$AH.call((n=(r=this.options)==null?void 0:r.host)!=null?n:this.element,t):this._$AH.handleEvent(t)}},g(Su,"Q"),Su),xu,fF=(xu=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Vl(this,t)}},g(xu,"X"),xu),av=Gg.litHtmlPolyfillSupport,sk;av==null||av(S2,nx),((sk=Gg.litHtmlVersions)!=null?sk:Gg.litHtmlVersions=[]).push("3.1.4");var hF=g((e,t,r)=>{var n,s;let o=(n=r==null?void 0:r.renderBefore)!=null?n:t,l=o._$litPart$;if(l===void 0){let u=(s=r==null?void 0:r.renderBefore)!=null?s:null;o._$litPart$=l=new nx(t.insertBefore(Ph(),u),u,void 0,r??{})}return l._$AI(e),l},"et"),wu,on=(wu=class extends Bc{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;let r=super.createRenderRoot();return(t=this.renderOptions).renderBefore!=null||(t.renderBefore=r.firstChild),r}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=hF(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return zd}},g(wu,"n"),wu),ik;on._$litElement$=!0,on.finalized=!0,(ik=globalThis.litElementHydrateSupport)==null||ik.call(globalThis,{LitElement:on});var sv=globalThis.litElementPolyfillSupport;sv==null||sv({LitElement:on});var ok;((ok=globalThis.litElementVersions)!=null?ok:globalThis.litElementVersions=[]).push("4.0.6");var Dn=g(e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},"s"),pF=Object.defineProperty,mF=Object.defineProperties,gF=Object.getOwnPropertyDescriptors,lk=Object.getOwnPropertySymbols,yF=Object.prototype.hasOwnProperty,bF=Object.prototype.propertyIsEnumerable,ck=g((e,t,r)=>t in e?pF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,"d"),vF=g((e,t)=>{for(var r in t||(t={}))yF.call(t,r)&&ck(e,r,t[r]);if(lk)for(var r of lk(t))bF.call(t,r)&&ck(e,r,t[r]);return e},"l"),SF=g((e,t)=>mF(e,gF(t)),"u"),xF={attribute:!0,type:String,converter:qg,reflect:!1,hasChanged:tx},wF=g((e=xF,t,r)=>{let{kind:n,metadata:s}=r,o=globalThis.litPropertyMetadata.get(s);if(o===void 0&&globalThis.litPropertyMetadata.set(s,o=new Map),o.set(r.name,e),n==="accessor"){let{name:l}=r;return{set(u){let d=t.get.call(this);t.set.call(this,u),this.requestUpdate(l,d,e)},init(u){return u!==void 0&&this.P(l,void 0,e),u}}}if(n==="setter"){let{name:l}=r;return function(u){let d=this[l];t.call(this,u),this.requestUpdate(l,d,e)}}throw Error("Unsupported decorator location: "+n)},"w");function Be(e){return(t,r)=>typeof r=="object"?wF(e,t,r):((n,s,o)=>{let l=s.hasOwnProperty(o);return s.constructor.createProperty(o,l?SF(vF({},n),{wrapped:!0}):n),l?Object.getOwnPropertyDescriptor(s,o):void 0})(e,t,r)}g(Be,"O");var CF={chatService:null,interactions:[],sourceBaseURL:"",linksTarget:"_blank",linksRel:"noopener noreferrer",prompt:"",sourcesMap:{title:"title",description:"description",path:"path"}},$F=g((e,t,r)=>{let n=e.get(t);n?n.includes(r)||n.push(r):e.set(t,[r])},"appendToMap"),kF=g((e,t)=>{let r;return(...n)=>{r&&clearTimeout(r),r=setTimeout(()=>{r=0,e(...n)},t)}},"debounce"),EF=g(e=>!("isConnected"in e)||e.isConnected,"isConnected"),uk=kF(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(EF))},2e3),_F=g(()=>{if(typeof z$!="function")return{};let e=new Map;return{dispose:g(()=>e.clear(),"dispose"),get:g(t=>{let r=z$();r&&$F(e,t,r)},"get"),set:g(t=>{let r=e.get(t);r&&e.set(t,r.filter(j$)),uk(e)},"set"),reset:g(()=>{e.forEach(t=>t.forEach(j$)),uk(e)},"reset")}},"stencilSubscription"),iv=g(e=>typeof e=="function"?e():e,"unwrap"),TF=g((e,t=(r,n)=>r!==n)=>{let r=iv(e),n=new Map(Object.entries(r??{})),s={dispose:[],get:[],set:[],reset:[]},o=g(()=>{n=new Map(Object.entries(iv(e)??{})),s.reset.forEach(m=>m())},"reset"),l=g(()=>{s.dispose.forEach(m=>m()),o()},"dispose"),u=g(m=>(s.get.forEach(b=>b(m)),n.get(m)),"get"),d=g((m,b)=>{let S=n.get(m);t(b,S,m)&&(n.set(m,b),s.set.forEach(x=>x(m,b,S)))},"set"),h=typeof Proxy>"u"?{}:new Proxy(r,{get(m,b){return u(b)},ownKeys(m){return Array.from(n.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has(m,b){return n.has(b)},set(m,b,S){return d(b,S),!0}}),p=g((m,b)=>(s[m].push(b),()=>{AF(s[m],b)}),"on");return{state:h,get:u,set:d,on:p,onChange:g((m,b)=>{let S=p("set",(C,$)=>{C===m&&b($)}),x=p("reset",()=>b(iv(e)[m]));return()=>{S(),x()}},"onChange"),use:g((...m)=>{let b=m.reduce((S,x)=>(x.set&&S.push(p("set",x.set)),x.get&&S.push(p("get",x.get)),x.reset&&S.push(p("reset",x.reset)),x.dispose&&S.push(p("dispose",x.dispose)),S),[]);return()=>b.forEach(S=>S())},"use"),dispose:l,reset:o,forceUpdate:g(m=>{let b=n.get(m);s.set.forEach(S=>S(m,b,b))},"forceUpdate")}},"createObservableMap"),AF=g((e,t)=>{let r=e.indexOf(t);r>=0&&(e[r]=e[e.length-1],e.length--)},"removeFromArray"),E5=g((e,t)=>{let r=TF(e,t);return r.use(_F()),r},"createStore"),_5={open:!1,currentTask:"search",currentTerm:""};E5(_5);var RF={count:0,facets:[],facetProperty:"",results:[],resultMap:{},highlightedIndex:-1,loading:!1,error:!1,searchService:null,searchParams:null},OF={global:_5,search:RF,chat:CF},gh=new Map,MF=g((e,t)=>{let r=gh.get(e);if(!r)throw new Error("Invalid parent component Id");let n=r[t];if(!n)throw new Error("Store not initialized");return n},"getParentComponentStore"),ig=g((e,t)=>{let r=OF[e];if(!r)throw new Error("Invalid store name");let n=E5(r);if(gh.has(t)){let s=gh.get(t);s[e]=n}else gh.set(t,{[e]:n});return n},"initStore"),T5=g(e=>{gh.delete(e)},"removeAllStores");function A5(e,t){let r=R5(t);if(!r)throw new Error("Failed to get store");return MF(r.id,e)}g(A5,"getStore");var NF=["orama-search-box","orama-chat-box"];function R5(e){var t;let r=e;for(;;){if(!r)return null;if(r instanceof ShadowRoot){let n=r.host;if(NF.includes(n.tagName.toLowerCase()))return n;r=n}else r=(t=r.parentNode)!==null&&t!==void 0?t:null}}g(R5,"getExternalParentComponentHTMLElement");var Bm=Symbol("storeProps"),dk=Symbol("storeWillLoadPatched");function no(e){return(t,r)=>{let n=t.constructor;if(n[Bm]||(n[Bm]=[]),n[Bm].push({propKey:r,storeName:e}),!n[dk]){n[dk]=!0;let s=t.componentWillLoad;t.componentWillLoad=function(){let o=e5(this),l=this.constructor[Bm];if(l)for(let{propKey:u,storeName:d}of l){let h=A5(d,o);this[u]=h}typeof s=="function"&&s.apply(this)}}}}g(no,"Store");var LF=".dots-loader.sc-orama-dots-loader{align-items:center;display:inline-flex;justify-content:center;padding:1rem 0;padding:var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16))) 0}.dot.sc-orama-dots-loader{animation:dot-slide-up 1.4s infinite both;background-color:#151515;background-color:var(--text-color-primary,#151515);border-radius:50%;height:.25rem;height:calc(4rem/var(--orama-base-font-size, 16));margin:0 .125rem;margin:0 var(--spacing-2xs,calc(2rem/var(--orama-base-font-size, 16)));width:.25rem;width:calc(4rem/var(--orama-base-font-size, 16))}.dot.sc-orama-dots-loader:first-child{animation-delay:-.32s}.dot.sc-orama-dots-loader:nth-child(2){animation-delay:-.16s}@keyframes dot-slide-up{0%,80%,to{opacity:.3;transform:translateZ(0)}40%{opacity:1;transform:translate3d(0,-4px,0)}}",Cu,PF=Zr((Cu=class extends Hr{constructor(){super(),this.__registerHost()}render(){return Y("div",{key:"8f554124861dff20b05b26410ab7966b5445c930",class:"dots-loader"},Y("div",{key:"a2937b6db7c5e79d97e18149107e5eb5bb04a4bd",class:"dot"}),Y("div",{key:"083f41f23dc7992e4dc601de5e118a2658a2e81a",class:"dot"}),Y("div",{key:"5a5384b83cd6290e36e1ea7a27e084c82ae4316f",class:"dot"}))}static get style(){return LF}},g(Cu,"DotsLoader"),Cu),[2,"orama-dots-loader"]);function Wd(){typeof customElements>"u"||["orama-dots-loader"].forEach(e=>{switch(e){case"orama-dots-loader":customElements.get(e)||customElements.define(e,PF);break}})}g(Wd,"defineCustomElement");var IF=["1c","abnf","accesslog","ada","arduino","ino","armasm","arm","avrasm","actionscript","as","angelscript","asc","apache","apacheconf","applescript","osascript","arcade","asciidoc","adoc","aspectj","autohotkey","autoit","awk","mawk","nawk","gawk","bash","sh","zsh","basic","bnf","brainfuck","bf","csharp","cs","c","h","cpp","hpp","cc","hh","c++","h++","cxx","hxx","cal","cos","cls","cmake","cmake.in","coq","csp","css","capnproto","capnp","clojure","clj","coffeescript","coffee","cson","iced","crmsh","crm","pcmk","crystal","cr","d","dart","dpr","dfm","pas","pascal","diff","patch","django","jinja","dns","zone","bind","dockerfile","docker","dos","bat","cmd","dsconfig","dts","dust","dst","ebnf","elixir","elm","erlang","erl","excel","xls","xlsx","fsharp","fs","fsx","fsi","fsscript","fix","fortran","f90","f95","gcode","nc","gams","gms","gauss","gss","gherkin","go","golang","golo","gololang","gradle","graphql","gql","groovy","xml","html","xhtml","rss","atom","xjb","xsd","xsl","plist","svg","http","https","haml","handlebars","hbs","html.hbs","html.handlebars","haskell","hs","haxe","hx","hy","hylang","ini","toml","inform7","i7","irpf90","json","jsonc","java","jsp","javascript","js","jsx","julia","jl","julia-repl","kotlin","kt","tex","leaf","lasso","ls","lassoscript","less","ldif","lisp","livecodeserver","livescript","ls","lua","makefile","mk","mak","make","markdown","md","mkdown","mkd","mathematica","mma","wl","matlab","maxima","mel","mercury","mips","mipsasm","mizar","mojolicious","monkey","moonscript","moon","n1ql","nsis","nginx","nginxconf","nim","nimrod","nix","ocaml","ml","objectivec","mm","objc","obj-c","obj-c++","objective-c++","glsl","openscad","scad","ruleslanguage","oxygene","pf","pf.conf","php","parser3","perl","pl","pm","plaintext","txt","text","pony","pgsql","postgres","postgresql","powershell","ps","ps1","processing","prolog","properties","proto","protobuf","puppet","pp","python","py","gyp","profile","python-repl","pycon","k","kdb","qml","r","reasonml","re","rib","rsl","graph","instances","ruby","rb","gemspec","podspec","thor","irb","rust","rs","SAS","sas","scss","sql","p21","step","stp","scala","scheme","scilab","sci","shell","console","smali","smalltalk","st","sml","ml","stan","stanfuncs","stata","stylus","styl","subunit","swift","tcl","tk","tap","thrift","tp","twig","craftcms","typescript","ts","tsx","mts","cts","vbnet","vb","vbscript","vbs","vhdl","vala","verilog","v","vim","axapta","x++","x86asm","xl","tao","xquery","xpath","xq","xqm","yml","yaml","zephir","zep"],{entries:O5,setPrototypeOf:fk,isFrozen:DF,getPrototypeOf:zF,getOwnPropertyDescriptor:jF}=Object,{freeze:ba,seal:ys,create:M5}=Object,{apply:x2,construct:w2}=typeof Reflect<"u"&&Reflect;ba||(ba=g(function(e){return e},"freeze"));ys||(ys=g(function(e){return e},"seal"));x2||(x2=g(function(e,t,r){return e.apply(t,r)},"apply"));w2||(w2=g(function(e,t){return new e(...t)},"construct"));var Um=sa(Array.prototype.forEach),BF=sa(Array.prototype.lastIndexOf),hk=sa(Array.prototype.pop),Qf=sa(Array.prototype.push),UF=sa(Array.prototype.splice),og=sa(String.prototype.toLowerCase),ov=sa(String.prototype.toString),pk=sa(String.prototype.match),Xf=sa(String.prototype.replace),HF=sa(String.prototype.indexOf),ZF=sa(String.prototype.trim),Es=sa(Object.prototype.hasOwnProperty),fa=sa(RegExp.prototype.test),Jf=N5(TypeError);function sa(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return x2(e,t,n)}}g(sa,"unapply");function N5(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w2(e,r)}}g(N5,"unconstruct");function Lt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:og;fk&&fk(e,null);let n=t.length;for(;n--;){let s=t[n];if(typeof s=="string"){let o=r(s);o!==s&&(DF(t)||(t[n]=o),s=o)}e[s]=!0}return e}g(Lt,"addToSet");function L5(e){for(let t=0;t<e.length;t++)Es(e,t)||(e[t]=null);return e}g(L5,"cleanArray");function Ro(e){let t=M5(null);for(let[r,n]of O5(e))Es(e,r)&&(Array.isArray(n)?t[r]=L5(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Ro(n):t[r]=n);return t}g(Ro,"clone");function Uc(e,t){for(;e!==null;){let n=jF(e,t);if(n){if(n.get)return sa(n.get);if(typeof n.value=="function")return sa(n.value)}e=zF(e)}function r(){return null}return g(r,"fallbackValue"),r}g(Uc,"lookupGetter");var mk=ba(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),lv=ba(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),cv=ba(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),VF=ba(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),uv=ba(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),FF=ba(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gk=ba(["#text"]),yk=ba(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),dv=ba(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),bk=ba(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Hm=ba(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qF=ys(/\{\{[\w\W]*|[\w\W]*\}\}/gm),GF=ys(/<%[\w\W]*|[\w\W]*%>/gm),KF=ys(/\$\{[\w\W]*/gm),WF=ys(/^data-[\-\w.\u00B7-\uFFFF]+$/),YF=ys(/^aria-[\-\w]+$/),P5=ys(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),QF=ys(/^(?:\w+script|data):/i),XF=ys(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),I5=ys(/^html$/i),JF=ys(/^[a-z][.\w]*(-[.\w]+)+$/i),vk=Object.freeze({__proto__:null,ARIA_ATTR:YF,ATTR_WHITESPACE:XF,CUSTOM_ELEMENT:JF,DATA_ATTR:WF,DOCTYPE_NAME:I5,ERB_EXPR:GF,IS_ALLOWED_URI:P5,IS_SCRIPT_OR_DATA:QF,MUSTACHE_EXPR:qF,TMPLIT_EXPR:KF}),eh={element:1,text:3,progressingInstruction:7,comment:8,document:9},eq=g(function(){return typeof window>"u"?null:window},"getGlobal"),tq=g(function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},"_createTrustedTypesPolicy"),Sk=g(function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},"_createHooksMap");function ax(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:eq(),t=g(Q=>ax(Q),"DOMPurify");if(t.version="3.2.5",t.removed=[],!e||!e.document||e.document.nodeType!==eh.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e,n=r,s=n.currentScript,{DocumentFragment:o,HTMLTemplateElement:l,Node:u,Element:d,NodeFilter:h,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:b,trustedTypes:S}=e,x=d.prototype,C=Uc(x,"cloneNode"),$=Uc(x,"remove"),_=Uc(x,"nextSibling"),M=Uc(x,"childNodes"),T=Uc(x,"parentNode");if(typeof l=="function"){let Q=r.createElement("template");Q.content&&Q.content.ownerDocument&&(r=Q.content.ownerDocument)}let R,L="",{implementation:j,createNodeIterator:O,createDocumentFragment:N,getElementsByTagName:z}=r,{importNode:k}=n,H=Sk();t.isSupported=typeof O5=="function"&&typeof T=="function"&&j&&j.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:q,ERB_EXPR:V,TMPLIT_EXPR:W,DATA_ATTR:ae,ARIA_ATTR:Z,IS_SCRIPT_OR_DATA:ne,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:re}=vk,{IS_ALLOWED_URI:F}=vk,J=null,fe=Lt({},[...mk,...lv,...cv,...uv,...gk]),ce=null,Ce=Lt({},[...yk,...dv,...bk,...Hm]),Se=Object.seal(M5(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),me=null,He=null,Oe=!0,Pe=!0,Ne=!1,qe=!0,Ve=!1,ht=!0,ze=!1,rt=!1,ct=!1,nt=!1,bt=!1,Tt=!1,Kt=!0,vt=!1,_e="user-content-",pt=!0,Pt=!1,Qt={},ir=null,It=Lt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),hr=null,Xt=Lt({},["audio","video","img","source","image","track"]),Dt=null,Ye=Lt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),or="http://www.w3.org/1998/Math/MathML",$t="http://www.w3.org/2000/svg",St="http://www.w3.org/1999/xhtml",pr=St,wn=!1,Ze=null,zt=Lt({},[or,$t,St],ov),nr=Lt({},["mi","mo","mn","ms","mtext"]),mn=Lt({},["annotation-xml"]),zn=Lt({},["title","style","font","a","script"]),Xr=null,Sa=["application/xhtml+xml","text/html"],Qe="text/html",lr=null,gn=null,la=r.createElement("form"),X=g(function(Q){return Q instanceof RegExp||Q instanceof Function},"isRegexOrFunction"),ge=g(function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(gn&&gn===Q)){if((!Q||typeof Q!="object")&&(Q={}),Q=Ro(Q),Xr=Sa.indexOf(Q.PARSER_MEDIA_TYPE)===-1?Qe:Q.PARSER_MEDIA_TYPE,lr=Xr==="application/xhtml+xml"?ov:og,J=Es(Q,"ALLOWED_TAGS")?Lt({},Q.ALLOWED_TAGS,lr):fe,ce=Es(Q,"ALLOWED_ATTR")?Lt({},Q.ALLOWED_ATTR,lr):Ce,Ze=Es(Q,"ALLOWED_NAMESPACES")?Lt({},Q.ALLOWED_NAMESPACES,ov):zt,Dt=Es(Q,"ADD_URI_SAFE_ATTR")?Lt(Ro(Ye),Q.ADD_URI_SAFE_ATTR,lr):Ye,hr=Es(Q,"ADD_DATA_URI_TAGS")?Lt(Ro(Xt),Q.ADD_DATA_URI_TAGS,lr):Xt,ir=Es(Q,"FORBID_CONTENTS")?Lt({},Q.FORBID_CONTENTS,lr):It,me=Es(Q,"FORBID_TAGS")?Lt({},Q.FORBID_TAGS,lr):{},He=Es(Q,"FORBID_ATTR")?Lt({},Q.FORBID_ATTR,lr):{},Qt=Es(Q,"USE_PROFILES")?Q.USE_PROFILES:!1,Oe=Q.ALLOW_ARIA_ATTR!==!1,Pe=Q.ALLOW_DATA_ATTR!==!1,Ne=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ve=Q.SAFE_FOR_TEMPLATES||!1,ht=Q.SAFE_FOR_XML!==!1,ze=Q.WHOLE_DOCUMENT||!1,nt=Q.RETURN_DOM||!1,bt=Q.RETURN_DOM_FRAGMENT||!1,Tt=Q.RETURN_TRUSTED_TYPE||!1,ct=Q.FORCE_BODY||!1,Kt=Q.SANITIZE_DOM!==!1,vt=Q.SANITIZE_NAMED_PROPS||!1,pt=Q.KEEP_CONTENT!==!1,Pt=Q.IN_PLACE||!1,F=Q.ALLOWED_URI_REGEXP||P5,pr=Q.NAMESPACE||St,nr=Q.MATHML_TEXT_INTEGRATION_POINTS||nr,mn=Q.HTML_INTEGRATION_POINTS||mn,Se=Q.CUSTOM_ELEMENT_HANDLING||{},Q.CUSTOM_ELEMENT_HANDLING&&X(Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=Q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&X(Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=Q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Se.allowCustomizedBuiltInElements=Q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ve&&(Pe=!1),bt&&(nt=!0),Qt&&(J=Lt({},gk),ce=[],Qt.html===!0&&(Lt(J,mk),Lt(ce,yk)),Qt.svg===!0&&(Lt(J,lv),Lt(ce,dv),Lt(ce,Hm)),Qt.svgFilters===!0&&(Lt(J,cv),Lt(ce,dv),Lt(ce,Hm)),Qt.mathMl===!0&&(Lt(J,uv),Lt(ce,bk),Lt(ce,Hm))),Q.ADD_TAGS&&(J===fe&&(J=Ro(J)),Lt(J,Q.ADD_TAGS,lr)),Q.ADD_ATTR&&(ce===Ce&&(ce=Ro(ce)),Lt(ce,Q.ADD_ATTR,lr)),Q.ADD_URI_SAFE_ATTR&&Lt(Dt,Q.ADD_URI_SAFE_ATTR,lr),Q.FORBID_CONTENTS&&(ir===It&&(ir=Ro(ir)),Lt(ir,Q.FORBID_CONTENTS,lr)),pt&&(J["#text"]=!0),ze&&Lt(J,["html","head","body"]),J.table&&(Lt(J,["tbody"]),delete me.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');R=Q.TRUSTED_TYPES_POLICY,L=R.createHTML("")}else R===void 0&&(R=tq(S,s)),R!==null&&typeof L=="string"&&(L=R.createHTML(""));ba&&ba(Q),gn=Q}},"_parseConfig"),Le=Lt({},[...lv,...cv,...VF]),Ge=Lt({},[...uv,...FF]),kt=g(function(Q){let je=T(Q);(!je||!je.tagName)&&(je={namespaceURI:pr,tagName:"template"});let Me=og(Q.tagName),gt=og(je.tagName);return Ze[Q.namespaceURI]?Q.namespaceURI===$t?je.namespaceURI===St?Me==="svg":je.namespaceURI===or?Me==="svg"&&(gt==="annotation-xml"||nr[gt]):!!Le[Me]:Q.namespaceURI===or?je.namespaceURI===St?Me==="math":je.namespaceURI===$t?Me==="math"&&mn[gt]:!!Ge[Me]:Q.namespaceURI===St?je.namespaceURI===$t&&!mn[gt]||je.namespaceURI===or&&!nr[gt]?!1:!Ge[Me]&&(zn[Me]||!Le[Me]):!!(Xr==="application/xhtml+xml"&&Ze[Q.namespaceURI]):!1},"_checkValidNamespace"),At=g(function(Q){Qf(t.removed,{element:Q});try{T(Q).removeChild(Q)}catch{$(Q)}},"_forceRemove"),Jt=g(function(Q,je){try{Qf(t.removed,{attribute:je.getAttributeNode(Q),from:je})}catch{Qf(t.removed,{attribute:null,from:je})}if(je.removeAttribute(Q),Q==="is")if(nt||bt)try{At(je)}catch{}else try{je.setAttribute(Q,"")}catch{}},"_removeAttribute"),dt=g(function(Q){let je=null,Me=null;if(ct)Q="<remove></remove>"+Q;else{let Cr=pk(Q,/^[\r\n\t ]+/);Me=Cr&&Cr[0]}Xr==="application/xhtml+xml"&&pr===St&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");let gt=R?R.createHTML(Q):Q;if(pr===St)try{je=new b().parseFromString(gt,Xr)}catch{}if(!je||!je.documentElement){je=j.createDocument(pr,"template",null);try{je.documentElement.innerHTML=wn?L:gt}catch{}}let Vr=je.body||je.documentElement;return Q&&Me&&Vr.insertBefore(r.createTextNode(Me),Vr.childNodes[0]||null),pr===St?z.call(je,ze?"html":"body")[0]:ze?je.documentElement:Vr},"_initDocument"),Je=g(function(Q){return O.call(Q.ownerDocument||Q,Q,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),xt=g(function(Q){return Q instanceof m&&(typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||!(Q.attributes instanceof p)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function")},"_isClobbered"),at=g(function(Q){return typeof u=="function"&&Q instanceof u},"_isNode");function Mt(Q,je,Me){Um(Q,gt=>{gt.call(t,je,Me,gn)})}g(Mt,"_executeHooks");let ar=g(function(Q){let je=null;if(Mt(H.beforeSanitizeElements,Q,null),xt(Q))return At(Q),!0;let Me=lr(Q.nodeName);if(Mt(H.uponSanitizeElement,Q,{tagName:Me,allowedTags:J}),Q.hasChildNodes()&&!at(Q.firstElementChild)&&fa(/<[/\w!]/g,Q.innerHTML)&&fa(/<[/\w!]/g,Q.textContent)||Q.nodeType===eh.progressingInstruction||ht&&Q.nodeType===eh.comment&&fa(/<[/\w]/g,Q.data))return At(Q),!0;if(!J[Me]||me[Me]){if(!me[Me]&&ca(Me)&&(Se.tagNameCheck instanceof RegExp&&fa(Se.tagNameCheck,Me)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(Me)))return!1;if(pt&&!ir[Me]){let gt=T(Q)||Q.parentNode,Vr=M(Q)||Q.childNodes;if(Vr&&gt){let Cr=Vr.length;for(let jn=Cr-1;jn>=0;--jn){let Nr=C(Vr[jn],!0);Nr.__removalCount=(Q.__removalCount||0)+1,gt.insertBefore(Nr,_(Q))}}}return At(Q),!0}return Q instanceof d&&!kt(Q)||(Me==="noscript"||Me==="noembed"||Me==="noframes")&&fa(/<\/no(script|embed|frames)/i,Q.innerHTML)?(At(Q),!0):(Ve&&Q.nodeType===eh.text&&(je=Q.textContent,Um([q,V,W],gt=>{je=Xf(je,gt," ")}),Q.textContent!==je&&(Qf(t.removed,{element:Q.cloneNode()}),Q.textContent=je)),Mt(H.afterSanitizeElements,Q,null),!1)},"_sanitizeElements"),En=g(function(Q,je,Me){if(Kt&&(je==="id"||je==="name")&&(Me in r||Me in la))return!1;if(!(Pe&&!He[je]&&fa(ae,je))&&!(Oe&&fa(Z,je))){if(!ce[je]||He[je]){if(!(ca(Q)&&(Se.tagNameCheck instanceof RegExp&&fa(Se.tagNameCheck,Q)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(Q))&&(Se.attributeNameCheck instanceof RegExp&&fa(Se.attributeNameCheck,je)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(je))||je==="is"&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&fa(Se.tagNameCheck,Me)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(Me))))return!1}else if(!Dt[je]&&!fa(F,Xf(Me,ee,""))&&!((je==="src"||je==="xlink:href"||je==="href")&&Q!=="script"&&HF(Me,"data:")===0&&hr[Q])&&!(Ne&&!fa(ne,Xf(Me,ee,"")))&&Me)return!1}return!0},"_isValidAttribute"),ca=g(function(Q){return Q!=="annotation-xml"&&pk(Q,re)},"_isBasicCustomElement"),Wn=g(function(Q){Mt(H.beforeSanitizeAttributes,Q,null);let{attributes:je}=Q;if(!je||xt(Q))return;let Me={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce,forceKeepAttr:void 0},gt=je.length;for(;gt--;){let Vr=je[gt],{name:Cr,namespaceURI:jn,value:Nr}=Vr,ln=lr(Cr),Lr=Cr==="value"?Nr:ZF(Nr);if(Me.attrName=ln,Me.attrValue=Lr,Me.keepAttr=!0,Me.forceKeepAttr=void 0,Mt(H.uponSanitizeAttribute,Q,Me),Lr=Me.attrValue,vt&&(ln==="id"||ln==="name")&&(Jt(Cr,Q),Lr=_e+Lr),ht&&fa(/((--!?|])>)|<\/(style|title)/i,Lr)){Jt(Cr,Q);continue}if(Me.forceKeepAttr||(Jt(Cr,Q),!Me.keepAttr))continue;if(!qe&&fa(/\/>/i,Lr)){Jt(Cr,Q);continue}Ve&&Um([q,V,W],Us=>{Lr=Xf(Lr,Us," ")});let _n=lr(Q.nodeName);if(En(_n,ln,Lr)){if(R&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!jn)switch(S.getAttributeType(_n,ln)){case"TrustedHTML":{Lr=R.createHTML(Lr);break}case"TrustedScriptURL":{Lr=R.createScriptURL(Lr);break}}try{jn?Q.setAttributeNS(jn,Cr,Lr):Q.setAttribute(Cr,Lr),xt(Q)?At(Q):hk(t.removed)}catch{}}}Mt(H.afterSanitizeAttributes,Q,null)},"_sanitizeAttributes"),zr=g(function Q(je){let Me=null,gt=Je(je);for(Mt(H.beforeSanitizeShadowDOM,je,null);Me=gt.nextNode();)Mt(H.uponSanitizeShadowNode,Me,null),ar(Me),Wn(Me),Me.content instanceof o&&Q(Me.content);Mt(H.afterSanitizeShadowDOM,je,null)},"_sanitizeShadowDOM");return t.sanitize=function(Q){let je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=null,gt=null,Vr=null,Cr=null;if(wn=!Q,wn&&(Q="<!-->"),typeof Q!="string"&&!at(Q))if(typeof Q.toString=="function"){if(Q=Q.toString(),typeof Q!="string")throw Jf("dirty is not a string, aborting")}else throw Jf("toString is not a function");if(!t.isSupported)return Q;if(rt||ge(je),t.removed=[],typeof Q=="string"&&(Pt=!1),Pt){if(Q.nodeName){let ln=lr(Q.nodeName);if(!J[ln]||me[ln])throw Jf("root node is forbidden and cannot be sanitized in-place")}}else if(Q instanceof u)Me=dt("<!---->"),gt=Me.ownerDocument.importNode(Q,!0),gt.nodeType===eh.element&&gt.nodeName==="BODY"||gt.nodeName==="HTML"?Me=gt:Me.appendChild(gt);else{if(!nt&&!Ve&&!ze&&Q.indexOf("<")===-1)return R&&Tt?R.createHTML(Q):Q;if(Me=dt(Q),!Me)return nt?null:Tt?L:""}Me&&ct&&At(Me.firstChild);let jn=Je(Pt?Q:Me);for(;Vr=jn.nextNode();)ar(Vr),Wn(Vr),Vr.content instanceof o&&zr(Vr.content);if(Pt)return Q;if(nt){if(bt)for(Cr=N.call(Me.ownerDocument);Me.firstChild;)Cr.appendChild(Me.firstChild);else Cr=Me;return(ce.shadowroot||ce.shadowrootmode)&&(Cr=k.call(n,Cr,!0)),Cr}let Nr=ze?Me.outerHTML:Me.innerHTML;return ze&&J["!doctype"]&&Me.ownerDocument&&Me.ownerDocument.doctype&&Me.ownerDocument.doctype.name&&fa(I5,Me.ownerDocument.doctype.name)&&(Nr="<!DOCTYPE "+Me.ownerDocument.doctype.name+`>
`+Nr),Ve&&Um([q,V,W],ln=>{Nr=Xf(Nr,ln," ")}),R&&Tt?R.createHTML(Nr):Nr},t.setConfig=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ge(Q),rt=!0},t.clearConfig=function(){gn=null,rt=!1},t.isValidAttribute=function(Q,je,Me){gn||ge({});let gt=lr(Q),Vr=lr(je);return En(gt,Vr,Me)},t.addHook=function(Q,je){typeof je=="function"&&Qf(H[Q],je)},t.removeHook=function(Q,je){if(je!==void 0){let Me=BF(H[Q],je);return Me===-1?void 0:UF(H[Q],Me,1)[0]}return hk(H[Q])},t.removeHooks=function(Q){H[Q]=[]},t.removeAllHooks=function(){H=Sk()},t}g(ax,"createDOMPurify");var C2=ax(),xk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function D5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}g(D5,"getDefaultExportFromCjs");function z5(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=g(function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)},"a");r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:g(function(){return e[n]},"get")})}),r}g(z5,"getAugmentedNamespace");var fv,wk;function j5(){var Sa,Qe,lr,gn,la;if(wk)return fv;wk=1;function e(X){return X instanceof Map?X.clear=X.delete=X.set=function(){throw new Error("map is read-only")}:X instanceof Set&&(X.add=X.clear=X.delete=function(){throw new Error("set is read-only")}),Object.freeze(X),Object.getOwnPropertyNames(X).forEach(ge=>{let Le=X[ge],Ge=typeof Le;(Ge==="object"||Ge==="function")&&!Object.isFrozen(Le)&&e(Le)}),X}g(e,"deepFreeze");let t=(Sa=class{constructor(ge){ge.data===void 0&&(ge.data={}),this.data=ge.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}},g(Sa,"Response"),Sa);function r(X){return X.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}g(r,"escapeHTML");function n(X,...ge){let Le=Object.create(null);for(let Ge in X)Le[Ge]=X[Ge];return ge.forEach(function(Ge){for(let kt in Ge)Le[kt]=Ge[kt]}),Le}g(n,"inherit$1");let s="</span>",o=g(X=>!!X.scope,"emitsWrappingTags"),l=g((X,{prefix:ge})=>{if(X.startsWith("language:"))return X.replace("language:","language-");if(X.includes(".")){let Le=X.split(".");return[`${ge}${Le.shift()}`,...Le.map((Ge,kt)=>`${Ge}${"_".repeat(kt+1)}`)].join(" ")}return`${ge}${X}`},"scopeToCSSClass"),u=(Qe=class{constructor(ge,Le){this.buffer="",this.classPrefix=Le.classPrefix,ge.walk(this)}addText(ge){this.buffer+=r(ge)}openNode(ge){if(!o(ge))return;let Le=l(ge.scope,{prefix:this.classPrefix});this.span(Le)}closeNode(ge){o(ge)&&(this.buffer+=s)}value(){return this.buffer}span(ge){this.buffer+=`<span class="${ge}">`}},g(Qe,"HTMLRenderer"),Qe),d=g((X={})=>{let ge={children:[]};return Object.assign(ge,X),ge},"newNode"),h=(lr=class{constructor(){this.rootNode=d(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ge){this.top.children.push(ge)}openNode(ge){let Le=d({scope:ge});this.add(Le),this.stack.push(Le)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ge){return this.constructor._walk(ge,this.rootNode)}static _walk(ge,Le){return typeof Le=="string"?ge.addText(Le):Le.children&&(ge.openNode(Le),Le.children.forEach(Ge=>this._walk(ge,Ge)),ge.closeNode(Le)),ge}static _collapse(ge){typeof ge!="string"&&ge.children&&(ge.children.every(Le=>typeof Le=="string")?ge.children=[ge.children.join("")]:ge.children.forEach(Le=>{lr._collapse(Le)}))}},g(lr,"TokenTree"),lr),p=(gn=class extends h{constructor(ge){super(),this.options=ge}addText(ge){ge!==""&&this.add(ge)}startScope(ge){this.openNode(ge)}endScope(){this.closeNode()}__addSublanguage(ge,Le){let Ge=ge.root;Le&&(Ge.scope=`language:${Le}`),this.add(Ge)}toHTML(){return new u(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}},g(gn,"TokenTreeEmitter"),gn);function m(X){return X?typeof X=="string"?X:X.source:null}g(m,"source");function b(X){return C("(?=",X,")")}g(b,"lookahead");function S(X){return C("(?:",X,")*")}g(S,"anyNumberOfTimes");function x(X){return C("(?:",X,")?")}g(x,"optional");function C(...X){return X.map(ge=>m(ge)).join("")}g(C,"concat");function $(X){let ge=X[X.length-1];return typeof ge=="object"&&ge.constructor===Object?(X.splice(X.length-1,1),ge):{}}g($,"stripOptionsFromArgs");function _(...X){return"("+($(X).capture?"":"?:")+X.map(ge=>m(ge)).join("|")+")"}g(_,"either");function M(X){return new RegExp(X.toString()+"|").exec("").length-1}g(M,"countMatchGroups");function T(X,ge){let Le=X&&X.exec(ge);return Le&&Le.index===0}g(T,"startsWith");let R=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function L(X,{joinWith:ge}){let Le=0;return X.map(Ge=>{Le+=1;let kt=Le,At=m(Ge),Jt="";for(;At.length>0;){let dt=R.exec(At);if(!dt){Jt+=At;break}Jt+=At.substring(0,dt.index),At=At.substring(dt.index+dt[0].length),dt[0][0]==="\\"&&dt[1]?Jt+="\\"+String(Number(dt[1])+kt):(Jt+=dt[0],dt[0]==="("&&Le++)}return Jt}).map(Ge=>`(${Ge})`).join(ge)}g(L,"_rewriteBackreferences");let j=/\b\B/,O="[a-zA-Z]\\w*",N="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",k="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",H="\\b(0b[01]+)",q="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",V=g((X={})=>{let ge=/^#![ ]*\//;return X.binary&&(X.begin=C(ge,/.*\b/,X.binary,/\b.*/)),n({scope:"meta",begin:ge,end:/$/,relevance:0,"on:begin":g((Le,Ge)=>{Le.index!==0&&Ge.ignoreMatch()},"on:begin")},X)},"SHEBANG"),W={begin:"\\\\[\\s\\S]",relevance:0},ae={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[W]},Z={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[W]},ne={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ee=g(function(X,ge,Le={}){let Ge=n({scope:"comment",begin:X,end:ge,contains:[]},Le);Ge.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let kt=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ge.contains.push({begin:C(/[ ]+/,"(",kt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ge},"COMMENT"),re=ee("//","$"),F=ee("/\\*","\\*/"),J=ee("#","$"),fe={scope:"number",begin:z,relevance:0},ce={scope:"number",begin:k,relevance:0},Ce={scope:"number",begin:H,relevance:0},Se={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[W,{begin:/\[/,end:/\]/,relevance:0,contains:[W]}]},me={scope:"title",begin:O,relevance:0},He={scope:"title",begin:N,relevance:0},Oe={begin:"\\.\\s*"+N,relevance:0};var Pe=Object.freeze({__proto__:null,APOS_STRING_MODE:ae,BACKSLASH_ESCAPE:W,BINARY_NUMBER_MODE:Ce,BINARY_NUMBER_RE:H,COMMENT:ee,C_BLOCK_COMMENT_MODE:F,C_LINE_COMMENT_MODE:re,C_NUMBER_MODE:ce,C_NUMBER_RE:k,END_SAME_AS_BEGIN:g(function(X){return Object.assign(X,{"on:begin":g((ge,Le)=>{Le.data._beginMatch=ge[1]},"on:begin"),"on:end":g((ge,Le)=>{Le.data._beginMatch!==ge[1]&&Le.ignoreMatch()},"on:end")})},"END_SAME_AS_BEGIN"),HASH_COMMENT_MODE:J,IDENT_RE:O,MATCH_NOTHING_RE:j,METHOD_GUARD:Oe,NUMBER_MODE:fe,NUMBER_RE:z,PHRASAL_WORDS_MODE:ne,QUOTE_STRING_MODE:Z,REGEXP_MODE:Se,RE_STARTERS_RE:q,SHEBANG:V,TITLE_MODE:me,UNDERSCORE_IDENT_RE:N,UNDERSCORE_TITLE_MODE:He});function Ne(X,ge){X.input[X.index-1]==="."&&ge.ignoreMatch()}g(Ne,"skipIfHasPrecedingDot");function qe(X,ge){X.className!==void 0&&(X.scope=X.className,delete X.className)}g(qe,"scopeClassName");function Ve(X,ge){ge&&X.beginKeywords&&(X.begin="\\b("+X.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",X.__beforeBegin=Ne,X.keywords=X.keywords||X.beginKeywords,delete X.beginKeywords,X.relevance===void 0&&(X.relevance=0))}g(Ve,"beginKeywords");function ht(X,ge){Array.isArray(X.illegal)&&(X.illegal=_(...X.illegal))}g(ht,"compileIllegal");function ze(X,ge){if(X.match){if(X.begin||X.end)throw new Error("begin & end are not supported with match");X.begin=X.match,delete X.match}}g(ze,"compileMatch");function rt(X,ge){X.relevance===void 0&&(X.relevance=1)}g(rt,"compileRelevance");let ct=g((X,ge)=>{if(!X.beforeMatch)return;if(X.starts)throw new Error("beforeMatch cannot be used with starts");let Le=Object.assign({},X);Object.keys(X).forEach(Ge=>{delete X[Ge]}),X.keywords=Le.keywords,X.begin=C(Le.beforeMatch,b(Le.begin)),X.starts={relevance:0,contains:[Object.assign(Le,{endsParent:!0})]},X.relevance=0,delete Le.beforeMatch},"beforeMatchExt"),nt=["of","and","for","in","not","or","if","then","parent","list","value"],bt="keyword";function Tt(X,ge,Le=bt){let Ge=Object.create(null);return typeof X=="string"?kt(Le,X.split(" ")):Array.isArray(X)?kt(Le,X):Object.keys(X).forEach(function(At){Object.assign(Ge,Tt(X[At],ge,At))}),Ge;function kt(At,Jt){ge&&(Jt=Jt.map(dt=>dt.toLowerCase())),Jt.forEach(function(dt){let Je=dt.split("|");Ge[Je[0]]=[At,Kt(Je[0],Je[1])]})}}g(Tt,"compileKeywords");function Kt(X,ge){return ge?Number(ge):vt(X)?0:1}g(Kt,"scoreForKeyword");function vt(X){return nt.includes(X.toLowerCase())}g(vt,"commonKeyword");let _e={},pt=g(X=>{console.error(X)},"error"),Pt=g((X,...ge)=>{console.log(`WARN: ${X}`,...ge)},"warn"),Qt=g((X,ge)=>{_e[`${X}/${ge}`]||(console.log(`Deprecated as of ${X}. ${ge}`),_e[`${X}/${ge}`]=!0)},"deprecated"),ir=new Error;function It(X,ge,{key:Le}){let Ge=0,kt=X[Le],At={},Jt={};for(let dt=1;dt<=ge.length;dt++)Jt[dt+Ge]=kt[dt],At[dt+Ge]=!0,Ge+=M(ge[dt-1]);X[Le]=Jt,X[Le]._emit=At,X[Le]._multi=!0}g(It,"remapScopeNames");function hr(X){if(Array.isArray(X.begin)){if(X.skip||X.excludeBegin||X.returnBegin)throw pt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ir;if(typeof X.beginScope!="object"||X.beginScope===null)throw pt("beginScope must be object"),ir;It(X,X.begin,{key:"beginScope"}),X.begin=L(X.begin,{joinWith:""})}}g(hr,"beginMultiClass");function Xt(X){if(Array.isArray(X.end)){if(X.skip||X.excludeEnd||X.returnEnd)throw pt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ir;if(typeof X.endScope!="object"||X.endScope===null)throw pt("endScope must be object"),ir;It(X,X.end,{key:"endScope"}),X.end=L(X.end,{joinWith:""})}}g(Xt,"endMultiClass");function Dt(X){X.scope&&typeof X.scope=="object"&&X.scope!==null&&(X.beginScope=X.scope,delete X.scope)}g(Dt,"scopeSugar");function Ye(X){Dt(X),typeof X.beginScope=="string"&&(X.beginScope={_wrap:X.beginScope}),typeof X.endScope=="string"&&(X.endScope={_wrap:X.endScope}),hr(X),Xt(X)}g(Ye,"MultiClass");function or(X){var Jt,dt;function ge(Je,xt){return new RegExp(m(Je),"m"+(X.case_insensitive?"i":"")+(X.unicodeRegex?"u":"")+(xt?"g":""))}g(ge,"langRe");let Le=(Jt=class{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(xt,at){at.position=this.position++,this.matchIndexes[this.matchAt]=at,this.regexes.push([at,xt]),this.matchAt+=M(xt)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let xt=this.regexes.map(at=>at[1]);this.matcherRe=ge(L(xt,{joinWith:"|"}),!0),this.lastIndex=0}exec(xt){this.matcherRe.lastIndex=this.lastIndex;let at=this.matcherRe.exec(xt);if(!at)return null;let Mt=at.findIndex((En,ca)=>ca>0&&En!==void 0),ar=this.matchIndexes[Mt];return at.splice(0,Mt),Object.assign(at,ar)}},g(Jt,"MultiRegex"),Jt),Ge=(dt=class{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(xt){if(this.multiRegexes[xt])return this.multiRegexes[xt];let at=new Le;return this.rules.slice(xt).forEach(([Mt,ar])=>at.addRule(Mt,ar)),at.compile(),this.multiRegexes[xt]=at,at}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(xt,at){this.rules.push([xt,at]),at.type==="begin"&&this.count++}exec(xt){let at=this.getMatcher(this.regexIndex);at.lastIndex=this.lastIndex;let Mt=at.exec(xt);if(this.resumingScanAtSamePosition()&&!(Mt&&Mt.index===this.lastIndex)){let ar=this.getMatcher(0);ar.lastIndex=this.lastIndex+1,Mt=ar.exec(xt)}return Mt&&(this.regexIndex+=Mt.position+1,this.regexIndex===this.count&&this.considerAll()),Mt}},g(dt,"ResumableMultiRegex"),dt);function kt(Je){let xt=new Ge;return Je.contains.forEach(at=>xt.addRule(at.begin,{rule:at,type:"begin"})),Je.terminatorEnd&&xt.addRule(Je.terminatorEnd,{type:"end"}),Je.illegal&&xt.addRule(Je.illegal,{type:"illegal"}),xt}g(kt,"buildModeRegex");function At(Je,xt){let at=Je;if(Je.isCompiled)return at;[qe,ze,Ye,ct].forEach(ar=>ar(Je,xt)),X.compilerExtensions.forEach(ar=>ar(Je,xt)),Je.__beforeBegin=null,[Ve,ht,rt].forEach(ar=>ar(Je,xt)),Je.isCompiled=!0;let Mt=null;return typeof Je.keywords=="object"&&Je.keywords.$pattern&&(Je.keywords=Object.assign({},Je.keywords),Mt=Je.keywords.$pattern,delete Je.keywords.$pattern),Mt=Mt||/\w+/,Je.keywords&&(Je.keywords=Tt(Je.keywords,X.case_insensitive)),at.keywordPatternRe=ge(Mt,!0),xt&&(Je.begin||(Je.begin=/\B|\b/),at.beginRe=ge(at.begin),!Je.end&&!Je.endsWithParent&&(Je.end=/\B|\b/),Je.end&&(at.endRe=ge(at.end)),at.terminatorEnd=m(at.end)||"",Je.endsWithParent&&xt.terminatorEnd&&(at.terminatorEnd+=(Je.end?"|":"")+xt.terminatorEnd)),Je.illegal&&(at.illegalRe=ge(Je.illegal)),Je.contains||(Je.contains=[]),Je.contains=[].concat(...Je.contains.map(function(ar){return St(ar==="self"?Je:ar)})),Je.contains.forEach(function(ar){At(ar,at)}),Je.starts&&At(Je.starts,xt),at.matcher=kt(at),at}if(g(At,"compileMode"),X.compilerExtensions||(X.compilerExtensions=[]),X.contains&&X.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return X.classNameAliases=n(X.classNameAliases||{}),At(X)}g(or,"compileLanguage");function $t(X){return X?X.endsWithParent||$t(X.starts):!1}g($t,"dependencyOnParent");function St(X){return X.variants&&!X.cachedVariants&&(X.cachedVariants=X.variants.map(function(ge){return n(X,{variants:null},ge)})),X.cachedVariants?X.cachedVariants:$t(X)?n(X,{starts:X.starts?n(X.starts):null}):Object.isFrozen(X)?n(X):X}g(St,"expandOrCloneMode");var pr="11.11.1";let wn=(la=class extends Error{constructor(ge,Le){super(ge),this.name="HTMLInjectionError",this.html=Le}},g(la,"HTMLInjectionError"),la),Ze=r,zt=n,nr=Symbol("nomatch"),mn=7,zn=g(function(X){let ge=Object.create(null),Le=Object.create(null),Ge=[],kt=!0,At="Could not find the language '{}', did you forget to load/include a language module?",Jt={disableAutodetect:!0,name:"Plain text",contains:[]},dt={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:p};function Je(Ae){return dt.noHighlightRe.test(Ae)}g(Je,"shouldNotHighlight");function xt(Ae){let et=Ae.className+" ";et+=Ae.parentNode?Ae.parentNode.className:"";let _t=dt.languageDetectRe.exec(et);if(_t){let ft=Nr(_t[1]);return ft||(Pt(At.replace("{}",_t[1])),Pt("Falling back to no-highlight mode for this block.",Ae)),ft?_t[1]:"no-highlight"}return et.split(/\s+/).find(ft=>Je(ft)||Nr(ft))}g(xt,"blockLanguage");function at(Ae,et,_t){let ft="",br="";typeof et=="object"?(ft=Ae,_t=et.ignoreIllegals,br=et.language):(Qt("10.7.0","highlight(lang, code, ...args) has been deprecated."),Qt("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),br=Ae,ft=et),_t===void 0&&(_t=!0);let Fr={code:ft,language:br};xa("before:highlight",Fr);let Wr=Fr.result?Fr.result:Mt(Fr.language,Fr.code,_t);return Wr.code=Fr.code,xa("after:highlight",Wr),Wr}g(at,"highlight");function Mt(Ae,et,_t,ft){let br=Object.create(null);function Fr(Ie,Fe){return Ie.keywords[Fe]}g(Fr,"keywordData");function Wr(){if(!st.keywords){vr.addText(Rt);return}let Ie=0;st.keywordPatternRe.lastIndex=0;let Fe=st.keywordPatternRe.exec(Rt),it="";for(;Fe;){it+=Rt.substring(Ie,Fe.index);let mt=yn.case_insensitive?Fe[0].toLowerCase():Fe[0],Tr=Fr(st,mt);if(Tr){let[en,Hn]=Tr;if(vr.addText(it),it="",br[mt]=(br[mt]||0)+1,br[mt]<=mn&&(Tn+=Hn),en.startsWith("_"))it+=Fe[0];else{let Qa=yn.classNameAliases[en]||en;cn(Fe[0],Qa)}}else it+=Fe[0];Ie=st.keywordPatternRe.lastIndex,Fe=st.keywordPatternRe.exec(Rt)}it+=Rt.substring(Ie),vr.addText(it)}g(Wr,"processKeywords");function Bn(){if(Rt==="")return;let Ie=null;if(typeof st.subLanguage=="string"){if(!ge[st.subLanguage]){vr.addText(Rt);return}Ie=Mt(st.subLanguage,Rt,!0,Ia[st.subLanguage]),Ia[st.subLanguage]=Ie._top}else Ie=En(Rt,st.subLanguage.length?st.subLanguage:null);st.relevance>0&&(Tn+=Ie.relevance),vr.__addSublanguage(Ie._emitter,Ie.language)}g(Bn,"processSubLanguage");function Pr(){st.subLanguage!=null?Bn():Wr(),Rt=""}g(Pr,"processBuffer");function cn(Ie,Fe){Ie!==""&&(vr.startScope(Fe),vr.addText(Ie),vr.endScope())}g(cn,"emitKeyword");function Yr(Ie,Fe){let it=1,mt=Fe.length-1;for(;it<=mt;){if(!Ie._emit[it]){it++;continue}let Tr=yn.classNameAliases[Ie[it]]||Ie[it],en=Fe[it];Tr?cn(en,Tr):(Rt=en,Wr(),Rt=""),it++}}g(Yr,"emitMultiClass");function wa(Ie,Fe){return Ie.scope&&typeof Ie.scope=="string"&&vr.openNode(yn.classNameAliases[Ie.scope]||Ie.scope),Ie.beginScope&&(Ie.beginScope._wrap?(cn(Rt,yn.classNameAliases[Ie.beginScope._wrap]||Ie.beginScope._wrap),Rt=""):Ie.beginScope._multi&&(Yr(Ie.beginScope,Fe),Rt="")),st=Object.create(Ie,{parent:{value:st}}),st}g(wa,"startNewMode");function La(Ie,Fe,it){let mt=T(Ie.endRe,it);if(mt){if(Ie["on:end"]){let Tr=new t(Ie);Ie["on:end"](Fe,Tr),Tr.isMatchIgnored&&(mt=!1)}if(mt){for(;Ie.endsParent&&Ie.parent;)Ie=Ie.parent;return Ie}}if(Ie.endsWithParent)return La(Ie.parent,Fe,it)}g(La,"endOfMode");function Pa(Ie){return st.matcher.regexIndex===0?(Rt+=Ie[0],1):(ua=!0,0)}g(Pa,"doIgnore");function Yn(Ie){let Fe=Ie[0],it=Ie.rule,mt=new t(it),Tr=[it.__beforeBegin,it["on:begin"]];for(let en of Tr)if(en&&(en(Ie,mt),mt.isMatchIgnored))return Pa(Fe);return it.skip?Rt+=Fe:(it.excludeBegin&&(Rt+=Fe),Pr(),!it.returnBegin&&!it.excludeBegin&&(Rt=Fe)),wa(it,Ie),it.returnBegin?0:Fe.length}g(Yn,"doBeginMatch");function Ka(Ie){let Fe=Ie[0],it=et.substring(Ie.index),mt=La(st,Ie,it);if(!mt)return nr;let Tr=st;st.endScope&&st.endScope._wrap?(Pr(),cn(Fe,st.endScope._wrap)):st.endScope&&st.endScope._multi?(Pr(),Yr(st.endScope,Ie)):Tr.skip?Rt+=Fe:(Tr.returnEnd||Tr.excludeEnd||(Rt+=Fe),Pr(),Tr.excludeEnd&&(Rt=Fe));do st.scope&&vr.closeNode(),!st.skip&&!st.subLanguage&&(Tn+=st.relevance),st=st.parent;while(st!==mt.parent);return mt.starts&&wa(mt.starts,Ie),Tr.returnEnd?0:Fe.length}g(Ka,"doEndMatch");function Wa(){let Ie=[];for(let Fe=st;Fe!==yn;Fe=Fe.parent)Fe.scope&&Ie.unshift(Fe.scope);Ie.forEach(Fe=>vr.openNode(Fe))}g(Wa,"processContinuations");let un={};function Jr(Ie,Fe){let it=Fe&&Fe[0];if(Rt+=Ie,it==null)return Pr(),0;if(un.type==="begin"&&Fe.type==="end"&&un.index===Fe.index&&it===""){if(Rt+=et.slice(Fe.index,Fe.index+1),!kt){let mt=new Error(`0 width match regex (${Ae})`);throw mt.languageName=Ae,mt.badRule=un.rule,mt}return 1}if(un=Fe,Fe.type==="begin")return Yn(Fe);if(Fe.type==="illegal"&&!_t){let mt=new Error('Illegal lexeme "'+it+'" for mode "'+(st.scope||"<unnamed>")+'"');throw mt.mode=st,mt}else if(Fe.type==="end"){let mt=Ka(Fe);if(mt!==nr)return mt}if(Fe.type==="illegal"&&it==="")return Rt+=`
`,1;if(Un>1e5&&Un>Fe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Rt+=it,it.length}g(Jr,"processLexeme");let yn=Nr(Ae);if(!yn)throw pt(At.replace("{}",Ae)),new Error('Unknown language: "'+Ae+'"');let Ya=or(yn),Ca="",st=ft||Ya,Ia={},vr=new dt.__emitter(dt);Wa();let Rt="",Tn=0,dn=0,Un=0,ua=!1;try{if(yn.__emitTokens)yn.__emitTokens(et,vr);else{for(st.matcher.considerAll();;){Un++,ua?ua=!1:st.matcher.considerAll(),st.matcher.lastIndex=dn;let Ie=st.matcher.exec(et);if(!Ie)break;let Fe=et.substring(dn,Ie.index),it=Jr(Fe,Ie);dn=Ie.index+it}Jr(et.substring(dn))}return vr.finalize(),Ca=vr.toHTML(),{language:Ae,value:Ca,relevance:Tn,illegal:!1,_emitter:vr,_top:st}}catch(Ie){if(Ie.message&&Ie.message.includes("Illegal"))return{language:Ae,value:Ze(et),illegal:!0,relevance:0,_illegalBy:{message:Ie.message,index:dn,context:et.slice(dn-100,dn+100),mode:Ie.mode,resultSoFar:Ca},_emitter:vr};if(kt)return{language:Ae,value:Ze(et),illegal:!1,relevance:0,errorRaised:Ie,_emitter:vr,_top:st};throw Ie}}g(Mt,"_highlight");function ar(Ae){let et={value:Ze(Ae),illegal:!1,relevance:0,_top:Jt,_emitter:new dt.__emitter(dt)};return et._emitter.addText(Ae),et}g(ar,"justTextHighlightResult");function En(Ae,et){et=et||dt.languages||Object.keys(ge);let _t=ar(Ae),ft=et.filter(Nr).filter(Lr).map(Pr=>Mt(Pr,Ae,!1));ft.unshift(_t);let br=ft.sort((Pr,cn)=>{if(Pr.relevance!==cn.relevance)return cn.relevance-Pr.relevance;if(Pr.language&&cn.language){if(Nr(Pr.language).supersetOf===cn.language)return 1;if(Nr(cn.language).supersetOf===Pr.language)return-1}return 0}),[Fr,Wr]=br,Bn=Fr;return Bn.secondBest=Wr,Bn}g(En,"highlightAuto");function ca(Ae,et,_t){let ft=et&&Le[et]||_t;Ae.classList.add("hljs"),Ae.classList.add(`language-${ft}`)}g(ca,"updateClassName");function Wn(Ae){let et=null,_t=xt(Ae);if(Je(_t))return;if(xa("before:highlightElement",{el:Ae,language:_t}),Ae.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Ae);return}if(Ae.children.length>0&&(dt.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Ae)),dt.throwUnescapedHTML))throw new wn("One of your code blocks includes unescaped HTML.",Ae.innerHTML);et=Ae;let ft=et.textContent,br=_t?at(ft,{language:_t,ignoreIllegals:!0}):En(ft);Ae.innerHTML=br.value,Ae.dataset.highlighted="yes",ca(Ae,_t,br.language),Ae.result={language:br.language,re:br.relevance,relevance:br.relevance},br.secondBest&&(Ae.secondBest={language:br.secondBest.language,relevance:br.secondBest.relevance}),xa("after:highlightElement",{el:Ae,result:br,text:ft})}g(Wn,"highlightElement");function zr(Ae){dt=zt(dt,Ae)}g(zr,"configure");let Q=g(()=>{gt(),Qt("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")},"initHighlighting");function je(){gt(),Qt("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}g(je,"initHighlightingOnLoad");let Me=!1;function gt(){function Ae(){gt()}if(g(Ae,"boot"),document.readyState==="loading"){Me||window.addEventListener("DOMContentLoaded",Ae,!1),Me=!0;return}document.querySelectorAll(dt.cssSelector).forEach(Wn)}g(gt,"highlightAll");function Vr(Ae,et){let _t=null;try{_t=et(X)}catch(ft){if(pt("Language definition for '{}' could not be registered.".replace("{}",Ae)),kt)pt(ft);else throw ft;_t=Jt}_t.name||(_t.name=Ae),ge[Ae]=_t,_t.rawDefinition=et.bind(null,X),_t.aliases&&ln(_t.aliases,{languageName:Ae})}g(Vr,"registerLanguage");function Cr(Ae){delete ge[Ae];for(let et of Object.keys(Le))Le[et]===Ae&&delete Le[et]}g(Cr,"unregisterLanguage");function jn(){return Object.keys(ge)}g(jn,"listLanguages");function Nr(Ae){return Ae=(Ae||"").toLowerCase(),ge[Ae]||ge[Le[Ae]]}g(Nr,"getLanguage");function ln(Ae,{languageName:et}){typeof Ae=="string"&&(Ae=[Ae]),Ae.forEach(_t=>{Le[_t.toLowerCase()]=et})}g(ln,"registerAliases");function Lr(Ae){let et=Nr(Ae);return et&&!et.disableAutodetect}g(Lr,"autoDetection");function _n(Ae){Ae["before:highlightBlock"]&&!Ae["before:highlightElement"]&&(Ae["before:highlightElement"]=et=>{Ae["before:highlightBlock"](Object.assign({block:et.el},et))}),Ae["after:highlightBlock"]&&!Ae["after:highlightElement"]&&(Ae["after:highlightElement"]=et=>{Ae["after:highlightBlock"](Object.assign({block:et.el},et))})}g(_n,"upgradePluginAPI");function Us(Ae){_n(Ae),Ge.push(Ae)}g(Us,"addPlugin");function Yo(Ae){let et=Ge.indexOf(Ae);et!==-1&&Ge.splice(et,1)}g(Yo,"removePlugin");function xa(Ae,et){let _t=Ae;Ge.forEach(function(ft){ft[_t]&&ft[_t](et)})}g(xa,"fire");function ao(Ae){return Qt("10.7.0","highlightBlock will be removed entirely in v12.0"),Qt("10.7.0","Please use highlightElement now."),Wn(Ae)}g(ao,"deprecateHighlightBlock"),Object.assign(X,{highlight:at,highlightAuto:En,highlightAll:gt,highlightElement:Wn,highlightBlock:ao,configure:zr,initHighlighting:Q,initHighlightingOnLoad:je,registerLanguage:Vr,unregisterLanguage:Cr,listLanguages:jn,getLanguage:Nr,registerAliases:ln,autoDetection:Lr,inherit:zt,addPlugin:Us,removePlugin:Yo}),X.debugMode=function(){kt=!1},X.safeMode=function(){kt=!0},X.versionString=pr,X.regex={concat:C,lookahead:b,either:_,optional:x,anyNumberOfTimes:S};for(let Ae in Pe)typeof Pe[Ae]=="object"&&e(Pe[Ae]);return Object.assign(X,Pe),X},"HLJS"),Xr=zn({});return Xr.newInstance=()=>zn({}),fv=Xr,Xr.HighlightJS=Xr,Xr.default=Xr,fv}g(j5,"requireCore");var rq=j5(),Wg=D5(rq);function t1(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}g(t1,"_getDefaults");var Yl=t1();function sx(e){Yl=e}g(sx,"changeDefaults");var B5=/[&<>"']/,nq=new RegExp(B5.source,"g"),U5=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,aq=new RegExp(U5.source,"g"),sq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ck=g(e=>sq[e],"getEscapeReplacement");function Ra(e,t){if(t){if(B5.test(e))return e.replace(nq,Ck)}else if(U5.test(e))return e.replace(aq,Ck);return e}g(Ra,"escape$1");var iq=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function H5(e){return e.replace(iq,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}g(H5,"unescape");var oq=/(^|[^\[])\^/g;function wr(e,t){let r=typeof e=="string"?e:e.source;t=t||"";let n={replace:g((s,o)=>{let l=typeof o=="string"?o:o.source;return l=l.replace(oq,"$1"),r=r.replace(s,l),n},"replace"),getRegex:g(()=>new RegExp(r,t),"getRegex")};return n}g(wr,"edit");function $2(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}g($2,"cleanUrl");var yh={exec:g(()=>null,"exec")};function k2(e,t){let r=e.replace(/\|/g,(o,l,u)=>{let d=!1,h=l;for(;--h>=0&&u[h]==="\\";)d=!d;return d?"|":" |"}),n=r.split(/ \|/),s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(/\\\|/g,"|");return n}g(k2,"splitCells");function Hc(e,t,r){let n=e.length;if(n===0)return"";let s=0;for(;s<n&&e.charAt(n-s-1)===t;)s++;return e.slice(0,n-s)}g(Hc,"rtrim");function Z5(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return-1}g(Z5,"findClosingBracket");function E2(e,t,r,n){let s=t.href,o=t.title?Ra(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){n.state.inLink=!0;let u={type:"link",raw:r,href:s,title:o,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,u}return{type:"image",raw:r,href:s,title:o,text:Ra(l)}}g(E2,"outputLink");function V5(e,t){let r=e.match(/^(\s+)(?:```)/);if(r===null)return t;let n=r[1];return t.split(`
`).map(s=>{let o=s.match(/^\s+/);if(o===null)return s;let[l]=o;return l.length>=n.length?s.slice(n.length):s}).join(`
`)}g(V5,"indentCodeCompensation");var $u,Yg=($u=class{constructor(t){Te(this,"options");Te(this,"rules");Te(this,"lexer");this.options=t||Yl}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Hc(n,`
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],s=V5(n,r[3]||"");return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(/#$/.test(n)){let s=Hc(n,"#");(this.options.pedantic||!s||/ $/.test(s))&&(n=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Hc(r[0],`
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Hc(r[0],`
`).split(`
`),s="",o="",l=[];for(;n.length>0;){let u=!1,d=[],h;for(h=0;h<n.length;h++)if(/^ {0,3}>/.test(n[h]))d.push(n[h]),u=!0;else if(!u)d.push(n[h]);else break;n=n.slice(h);let p=d.join(`
`),m=p.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
    $1`).replace(/^ {0,3}>[ \t]?/gm,"");s=s?`${s}
${p}`:p,o=o?`${o}
${m}`:m;let b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(m,l,!0),this.lexer.state.top=b,n.length===0)break;let S=l[l.length-1];if((S==null?void 0:S.type)==="code")break;if((S==null?void 0:S.type)==="blockquote"){let x=S,C=x.raw+`
`+n.join(`
`),$=this.blockquote(C);l[l.length-1]=$,s=s.substring(0,s.length-x.raw.length)+$.raw,o=o.substring(0,o.length-x.text.length)+$.text;break}else if((S==null?void 0:S.type)==="list"){let x=S,C=x.raw+`
`+n.join(`
`),$=this.list(C);l[l.length-1]=$,s=s.substring(0,s.length-S.raw.length)+$.raw,o=o.substring(0,o.length-x.raw.length)+$.raw,n=C.substring(l[l.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:s,tokens:l,text:o}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),s=n.length>1,o={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let l=new RegExp(`^( {0,3}${n})((?:[	 ][^\\n]*)?(?:\\n|$))`),u=!1;for(;t;){let d=!1,h="",p="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let m=r[2].split(`
`,1)[0].replace(/^\t+/,_=>" ".repeat(3*_.length)),b=t.split(`
`,1)[0],S=!m.trim(),x=0;if(this.options.pedantic?(x=2,p=m.trimStart()):S?x=r[1].length+1:(x=r[2].search(/[^ ]/),x=x>4?1:x,p=m.slice(x),x+=r[1].length),S&&/^ *$/.test(b)&&(h+=b+`
`,t=t.substring(b.length+1),d=!0),!d){let _=new RegExp(`^ {0,${Math.min(3,x-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),M=new RegExp(`^ {0,${Math.min(3,x-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),T=new RegExp(`^ {0,${Math.min(3,x-1)}}(?:\`\`\`|~~~)`),R=new RegExp(`^ {0,${Math.min(3,x-1)}}#`);for(;t;){let L=t.split(`
`,1)[0];if(b=L,this.options.pedantic&&(b=b.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),T.test(b)||R.test(b)||_.test(b)||M.test(t))break;if(b.search(/[^ ]/)>=x||!b.trim())p+=`
`+b.slice(x);else{if(S||m.search(/[^ ]/)>=4||T.test(m)||R.test(m)||M.test(m))break;p+=`
`+b}!S&&!b.trim()&&(S=!0),h+=L+`
`,t=t.substring(L.length+1),m=b.slice(x)}}o.loose||(u?o.loose=!0:/\n *\n *$/.test(h)&&(u=!0));let C=null,$;this.options.gfm&&(C=/^\[[ xX]\] /.exec(p),C&&($=C[0]!=="[ ] ",p=p.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:h,task:!!C,checked:$,loose:!1,text:p,tokens:[]}),o.raw+=h}o.items[o.items.length-1].raw=o.items[o.items.length-1].raw.trimEnd(),o.items[o.items.length-1].text=o.items[o.items.length-1].text.trimEnd(),o.raw=o.raw.trimEnd();for(let d=0;d<o.items.length;d++)if(this.lexer.state.top=!1,o.items[d].tokens=this.lexer.blockTokens(o.items[d].text,[]),!o.loose){let h=o.items[d].tokens.filter(m=>m.type==="space"),p=h.length>0&&h.some(m=>/\n.*\n/.test(m.raw));o.loose=p}if(o.loose)for(let d=0;d<o.items.length;d++)o.items[d].loose=!0;return o}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(/\s+/g," "),s=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:s,title:o}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!/[:|]/.test(r[2]))return;let n=k2(r[1]),s=r[2].replace(/^\||\| *$/g,"").split("|"),o=r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(`
`):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===s.length){for(let u of s)/^ *-+: *$/.test(u)?l.align.push("right"):/^ *:-+: *$/.test(u)?l.align.push("center"):/^ *:-+ *$/.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of o)l.rows.push(k2(u,l.header.length).map((d,h)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:l.align[h]})));return l}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:Ra(r[1])}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;let l=Hc(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=Z5(r[2],"()");if(l>-1){let u=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let s=r[2],o="";if(this.options.pedantic){let l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);l&&(s=l[1],o=l[3])}else o=r[3]?r[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(this.options.pedantic&&!/>$/.test(n)?s=s.slice(1):s=s.slice(1,-1)),E2(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let s=(n[2]||n[1]).replace(/\s+/g," "),o=r[s.toLowerCase()];if(!o){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return E2(n,o,n[0],this.lexer)}}emStrong(t,r,n=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&n.match(/[\p{L}\p{N}]/u))&&(!(s[1]||s[2])||!n||this.rules.inline.punctuation.exec(n))){let o=[...s[0]].length-1,l,u,d=o,h=0,p=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,r=r.slice(-1*t.length+o);(s=p.exec(r))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(u=[...l].length,s[3]||s[4]){d+=u;continue}else if((s[5]||s[6])&&o%3&&!((o+u)%3)){h+=u;continue}if(d-=u,d>0)continue;u=Math.min(u,u+d+h);let m=[...s[0]][0].length,b=t.slice(0,o+s.index+m+u);if(Math.min(o,u)%2){let x=b.slice(1,-1);return{type:"em",raw:b,text:x,tokens:this.lexer.inlineTokens(x)}}let S=b.slice(2,-2);return{type:"strong",raw:b,text:S,tokens:this.lexer.inlineTokens(S)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(/\n/g," "),s=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return s&&o&&(n=n.substring(1,n.length-1)),n=Ra(n,!0),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,s;return r[2]==="@"?(n=Ra(r[1]),s="mailto:"+n):(n=Ra(r[1]),s=n),{type:"link",raw:r[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let s,o;if(r[2]==="@")s=Ra(r[0]),o="mailto:"+s;else{let l;do l=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(l!==r[0]);s=Ra(r[0]),r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n;return this.lexer.state.inRawBlock?n=r[0]:n=Ra(r[0]),{type:"text",raw:r[0],text:n}}}},g($u,"_Tokenizer"),$u),lq=/^(?: *(?:\n|$))+/,cq=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,uq=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,np=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dq=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,F5=/(?:[*+-]|\d{1,9}[.)])/,q5=wr(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,F5).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),ix=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,fq=/^[^\n]+/,ox=/(?!\s*\])(?:\\.|[^\[\]\\])+/,hq=wr(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",ox).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),pq=wr(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,F5).getRegex(),r1="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",lx=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,mq=wr("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",lx).replace("tag",r1).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),G5=wr(ix).replace("hr",np).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",r1).getRegex(),gq=wr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",G5).getRegex(),cx={blockquote:gq,code:cq,def:hq,fences:uq,heading:dq,hr:np,html:mq,lheading:q5,list:pq,newline:lq,paragraph:G5,table:yh,text:fq},$k=wr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",np).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",r1).getRegex(),yq={...cx,table:$k,paragraph:wr(ix).replace("hr",np).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",$k).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",r1).getRegex()},bq={...cx,html:wr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",lx).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:yh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:wr(ix).replace("hr",np).replace("heading",` *#{1,6} *[^
]`).replace("lheading",q5).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},K5=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,vq=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,W5=/^( {2,}|\\)\n(?!\s*$)/,Sq=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ap="\\p{P}\\p{S}",xq=wr(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,ap).getRegex(),wq=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Cq=wr(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,ap).getRegex(),$q=wr("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,ap).getRegex(),kq=wr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,ap).getRegex(),Eq=wr(/\\([punct])/,"gu").replace(/punct/g,ap).getRegex(),_q=wr(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Tq=wr(lx).replace("(?:-->|$)","-->").getRegex(),Aq=wr("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Tq).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Qg=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Rq=wr(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Qg).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Y5=wr(/^!?\[(label)\]\[(ref)\]/).replace("label",Qg).replace("ref",ox).getRegex(),Q5=wr(/^!?\[(ref)\](?:\[\])?/).replace("ref",ox).getRegex(),Oq=wr("reflink|nolink(?!\\()","g").replace("reflink",Y5).replace("nolink",Q5).getRegex(),ux={_backpedal:yh,anyPunctuation:Eq,autolink:_q,blockSkip:wq,br:W5,code:vq,del:yh,emStrongLDelim:Cq,emStrongRDelimAst:$q,emStrongRDelimUnd:kq,escape:K5,link:Rq,nolink:Q5,punctuation:xq,reflink:Y5,reflinkSearch:Oq,tag:Aq,text:Sq,url:yh},Mq={...ux,link:wr(/^!?\[(label)\]\((.*?)\)/).replace("label",Qg).getRegex(),reflink:wr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Qg).getRegex()},_2={...ux,escape:wr(K5).replace("])","~|])").getRegex(),url:wr(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Nq={..._2,br:wr(W5).replace("{2,}","*").getRegex(),text:wr(_2.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Zm={normal:cx,gfm:yq,pedantic:bq},th={normal:ux,gfm:_2,breaks:Nq,pedantic:Mq},Ho,Fc=(Ho=class{constructor(t){Te(this,"tokens");Te(this,"options");Te(this,"state");Te(this,"tokenizer");Te(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Yl,this.options.tokenizer=this.options.tokenizer||new Yg,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={block:Zm.normal,inline:th.normal};this.options.pedantic?(r.block=Zm.pedantic,r.inline=th.pedantic):this.options.gfm&&(r.block=Zm.gfm,this.options.breaks?r.inline=th.breaks:r.inline=th.gfm),this.tokenizer.rules=r}static get rules(){return{block:Zm,inline:th}}static lex(t,r){return new Ho(r).lex(t)}static lexInline(t,r){return new Ho(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){this.options.pedantic?t=t.replace(/\t/g,"    ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(u,d,h)=>d+"    ".repeat(h.length));let s,o,l;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(u=>(s=u.call({lexer:this},t,r))?(t=t.substring(s.raw.length),r.push(s),!0):!1))){if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length),s.raw.length===1&&r.length>0?r[r.length-1].raw+=`
`:r.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
`+s.raw,o.text+=`
`+s.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length),o=r[r.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
`+s.raw,o.text+=`
`+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),r.push(s);continue}if(l=t,this.options.extensions&&this.options.extensions.startBlock){let u=1/0,d=t.slice(1),h;this.options.extensions.startBlock.forEach(p=>{h=p.call({lexer:this},d),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){o=r[r.length-1],n&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=`
`+s.raw,o.text+=`
`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(s),n=l.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length),o=r[r.length-1],o&&o.type==="text"?(o.raw+=`
`+s.raw,o.text+=`
`+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):r.push(s);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n,s,o,l=t,u,d,h;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(u=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)p.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(u=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,u.index)+"["+"a".repeat(u[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(u=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,u.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(d||(h=""),d=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(p=>(n=p.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),s=r[r.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):r.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),s=r[r.length-1],s&&n.type==="text"&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):r.push(n);continue}if(n=this.tokenizer.emStrong(t,l,h)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),r.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),r.push(n);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let p=1/0,m=t.slice(1),b;this.options.extensions.startInline.forEach(S=>{b=S.call({lexer:this},m),typeof b=="number"&&b>=0&&(p=Math.min(p,b))}),p<1/0&&p>=0&&(o=t.substring(0,p+1))}if(n=this.tokenizer.inlineText(o)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(h=n.raw.slice(-1)),d=!0,s=r[r.length-1],s&&s.type==="text"?(s.raw+=n.raw,s.text+=n.text):r.push(n);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return r}},g(Ho,"_Lexer"),Ho),ku,Xg=(ku=class{constructor(t){Te(this,"options");Te(this,"parser");this.options=t||Yl}space(t){return""}code({text:t,lang:r,escaped:n}){var l;let s=(l=(r||"").match(/^\S*/))==null?void 0:l[0],o=t.replace(/\n$/,"")+`
`;return s?'<pre><code class="language-'+Ra(s)+'">'+(n?o:Ra(o,!0))+`</code></pre>
`:"<pre><code>"+(n?o:Ra(o,!0))+`</code></pre>
`}blockquote({tokens:t}){return`<blockquote>
${this.parser.parse(t)}</blockquote>
`}html({text:t}){return t}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
`}hr(t){return`<hr>
`}list(t){let r=t.ordered,n=t.start,s="";for(let u=0;u<t.items.length;u++){let d=t.items[u];s+=this.listitem(d)}let o=r?"ol":"ul",l=r&&n!==1?' start="'+n+'"':"";return"<"+o+l+`>
`+s+"</"+o+`>
`}listitem(t){let r="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&t.tokens[0].type==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" "}):r+=n+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
`}table(t){let r="",n="";for(let o=0;o<t.header.length;o++)n+=this.tablecell(t.header[o]);r+=this.tablerow({text:n});let s="";for(let o=0;o<t.rows.length;o++){let l=t.rows[o];n="";for(let u=0;u<l.length;u++)n+=this.tablecell(l[u]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
<thead>
`+r+`</thead>
`+s+`</table>
`}tablerow({text:t}){return`<tr>
${t}</tr>
`}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let s=this.parser.parseInline(n),o=$2(t);if(o===null)return s;t=o;let l='<a href="'+t+'"';return r&&(l+=' title="'+r+'"'),l+=">"+s+"</a>",l}image({href:t,title:r,text:n}){let s=$2(t);if(s===null)return n;t=s;let o=`<img src="${t}" alt="${n}"`;return r&&(o+=` title="${r}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}},g(ku,"_Renderer"),ku),Eu,dx=(Eu=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},g(Eu,"_TextRenderer"),Eu),Zo,qc=(Zo=class{constructor(t){Te(this,"options");Te(this,"renderer");Te(this,"textRenderer");this.options=t||Yl,this.options.renderer=this.options.renderer||new Xg,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new dx}static parse(t,r){return new Zo(r).parse(t)}static parseInline(t,r){return new Zo(r).parseInline(t)}parse(t,r=!0){let n="";for(let s=0;s<t.length;s++){let o=t[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){let u=o,d=this.options.extensions.renderers[u.type].call({parser:this},u);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)){n+=d||"";continue}}let l=o;switch(l.type){case"space":{n+=this.renderer.space(l);continue}case"hr":{n+=this.renderer.hr(l);continue}case"heading":{n+=this.renderer.heading(l);continue}case"code":{n+=this.renderer.code(l);continue}case"table":{n+=this.renderer.table(l);continue}case"blockquote":{n+=this.renderer.blockquote(l);continue}case"list":{n+=this.renderer.list(l);continue}case"html":{n+=this.renderer.html(l);continue}case"paragraph":{n+=this.renderer.paragraph(l);continue}case"text":{let u=l,d=this.renderer.text(u);for(;s+1<t.length&&t[s+1].type==="text";)u=t[++s],d+=`
`+this.renderer.text(u);r?n+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d}]}):n+=d;continue}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}parseInline(t,r){r=r||this.renderer;let n="";for(let s=0;s<t.length;s++){let o=t[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){let u=this.options.extensions.renderers[o.type].call({parser:this},o);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=u||"";continue}}let l=o;switch(l.type){case"escape":{n+=r.text(l);break}case"html":{n+=r.html(l);break}case"link":{n+=r.link(l);break}case"image":{n+=r.image(l);break}case"strong":{n+=r.strong(l);break}case"em":{n+=r.em(l);break}case"codespan":{n+=r.codespan(l);break}case"br":{n+=r.br(l);break}case"del":{n+=r.del(l);break}case"text":{n+=r.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return n}},g(Zo,"_Parser"),Zo),Rl,lg=(Rl=class{constructor(t){Te(this,"options");this.options=t||Yl}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}},g(Rl,"_Hooks"),Te(Rl,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),Rl),ro,X5,T2,J5,_u,Lq=(_u=class{constructor(...t){er(this,ro);Te(this,"defaults",t1());Te(this,"options",this.setOptions);Te(this,"parse",Sn(this,ro,T2).call(this,Fc.lex,qc.parse));Te(this,"parseInline",Sn(this,ro,T2).call(this,Fc.lexInline,qc.parseInline));Te(this,"Parser",qc);Te(this,"Renderer",Xg);Te(this,"TextRenderer",dx);Te(this,"Lexer",Fc);Te(this,"Tokenizer",Yg);Te(this,"Hooks",lg);this.use(...t)}walkTokens(t,r){var s,o;let n=[];for(let l of t)switch(n=n.concat(r.call(this,l)),l.type){case"table":{let u=l;for(let d of u.header)n=n.concat(this.walkTokens(d.tokens,r));for(let d of u.rows)for(let h of d)n=n.concat(this.walkTokens(h.tokens,r));break}case"list":{let u=l;n=n.concat(this.walkTokens(u.items,r));break}default:{let u=l;(o=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&o[u.type]?this.defaults.extensions.childTokens[u.type].forEach(d=>{let h=u[d].flat(1/0);n=n.concat(this.walkTokens(h,r))}):u.tokens&&(n=n.concat(this.walkTokens(u.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let l=r.renderers[o.name];l?r.renderers[o.name]=function(...u){let d=o.renderer.apply(this,u);return d===!1&&(d=l.apply(this,u)),d}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[o.level];l?l.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),s.extensions=r),n.renderer){let o=this.defaults.renderer||new Xg(this.defaults);for(let l in n.renderer){if(!(l in o))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let u=l,d=n.renderer[u];n.useNewRenderer||(d=Sn(this,ro,X5).call(this,d,u,o));let h=o[u];o[u]=(...p)=>{let m=d.apply(o,p);return m===!1&&(m=h.apply(o,p)),m||""}}s.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new Yg(this.defaults);for(let l in n.tokenizer){if(!(l in o))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let u=l,d=n.tokenizer[u],h=o[u];o[u]=(...p)=>{let m=d.apply(o,p);return m===!1&&(m=h.apply(o,p)),m}}s.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new lg;for(let l in n.hooks){if(!(l in o))throw new Error(`hook '${l}' does not exist`);if(l==="options")continue;let u=l,d=n.hooks[u],h=o[u];lg.passThroughHooks.has(l)?o[u]=p=>{if(this.defaults.async)return Promise.resolve(d.call(o,p)).then(b=>h.call(o,b));let m=d.call(o,p);return h.call(o,m)}:o[u]=(...p)=>{let m=d.apply(o,p);return m===!1&&(m=h.apply(o,p)),m}}s.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,l=n.walkTokens;s.walkTokens=function(u){let d=[];return d.push(l.call(this,u)),o&&(d=d.concat(o.call(this,u))),d}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Fc.lex(t,r??this.defaults)}parser(t,r){return qc.parse(t,r??this.defaults)}},ro=new WeakSet,X5=function(t,r,n){switch(r){case"heading":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,n.parser.parseInline(s.tokens),s.depth,H5(n.parser.parseInline(s.tokens,n.parser.textRenderer)))};case"code":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,s.text,s.lang,!!s.escaped)};case"table":return function(s){if(!s.type||s.type!==r)return t.apply(this,arguments);let o="",l="";for(let d=0;d<s.header.length;d++)l+=this.tablecell({text:s.header[d].text,tokens:s.header[d].tokens,header:!0,align:s.align[d]});o+=this.tablerow({text:l});let u="";for(let d=0;d<s.rows.length;d++){let h=s.rows[d];l="";for(let p=0;p<h.length;p++)l+=this.tablecell({text:h[p].text,tokens:h[p].tokens,header:!1,align:s.align[p]});u+=this.tablerow({text:l})}return t.call(this,o,u)};case"blockquote":return function(s){if(!s.type||s.type!==r)return t.apply(this,arguments);let o=this.parser.parse(s.tokens);return t.call(this,o)};case"list":return function(s){if(!s.type||s.type!==r)return t.apply(this,arguments);let o=s.ordered,l=s.start,u=s.loose,d="";for(let h=0;h<s.items.length;h++){let p=s.items[h],m=p.checked,b=p.task,S="";if(p.task){let x=this.checkbox({checked:!!m});u?p.tokens.length>0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=x+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=x+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:x+" "}):S+=x+" "}S+=this.parser.parse(p.tokens,u),d+=this.listitem({type:"list_item",raw:S,text:S,task:b,checked:!!m,loose:u,tokens:p.tokens})}return t.call(this,d,o,l)};case"html":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,s.text,s.block)};case"paragraph":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(s.tokens))};case"escape":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,s.text)};case"link":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,s.href,s.title,this.parser.parseInline(s.tokens))};case"image":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,s.href,s.title,s.text)};case"strong":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(s.tokens))};case"em":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(s.tokens))};case"codespan":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,s.text)};case"del":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,this.parser.parseInline(s.tokens))};case"text":return function(s){return!s.type||s.type!==r?t.apply(this,arguments):t.call(this,s.text)}}return t},T2=function(t,r){return(n,s)=>{let o={...s},l={...this.defaults,...o};this.defaults.async===!0&&o.async===!1&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);let u=Sn(this,ro,J5).call(this,!!l.silent,!!l.async);if(typeof n>"u"||n===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(l.hooks&&(l.hooks.options=l),l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(n):n).then(d=>t(d,l)).then(d=>l.hooks?l.hooks.processAllTokens(d):d).then(d=>l.walkTokens?Promise.all(this.walkTokens(d,l.walkTokens)).then(()=>d):d).then(d=>r(d,l)).then(d=>l.hooks?l.hooks.postprocess(d):d).catch(u);try{l.hooks&&(n=l.hooks.preprocess(n));let d=t(n,l);l.hooks&&(d=l.hooks.processAllTokens(d)),l.walkTokens&&this.walkTokens(d,l.walkTokens);let h=r(d,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(d){return u(d)}}},J5=function(t,r){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+Ra(n.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(n);throw n}},g(_u,"Marked"),_u),Fl=new Lq;function Mr(e,t){return Fl.parse(e,t)}g(Mr,"marked");Mr.options=Mr.setOptions=function(e){return Fl.setOptions(e),Mr.defaults=Fl.defaults,sx(Mr.defaults),Mr};Mr.getDefaults=t1;Mr.defaults=Yl;Mr.use=function(...e){return Fl.use(...e),Mr.defaults=Fl.defaults,sx(Mr.defaults),Mr};Mr.walkTokens=function(e,t){return Fl.walkTokens(e,t)};Mr.parseInline=Fl.parseInline;Mr.Parser=qc;Mr.parser=qc.parse;Mr.Renderer=Xg;Mr.TextRenderer=dx;Mr.Lexer=Fc;Mr.lexer=Fc.lex;Mr.Tokenizer=Yg;Mr.Hooks=lg;Mr.parse=Mr;var Pq=":host{color:#838289;color:var(--text-color-secondary,#838289)}.orama-markdown-wrapper>:first-child{margin-top:0;padding-top:0}a,li,p{font-size:1rem;font-size:var(--font-size-md,calc(16rem/var(--orama-base-font-size, 16)));line-height:1.5;line-height:var(--font-line-height-md,1.5)}blockquote,ol,ul{margin:0 0 .25rem .25rem;margin:0 0 var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16))) var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)));padding:0 0 0 .25rem;padding:0 0 0 var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)));padding-inline-start:1rem;padding-inline-start:var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)))}blockquote{border-left:.25rem solid #dadada;border-left:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16))) solid var(--border-color-primary,#dadada)}p>code{margin:0 .25rem;margin:0 var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)))}pre>code{position:relative}a{color:#151515;color:var(--text-color-primary,#151515);font-weight:700;opacity:.9;text-decoration:underline}a:hover{opacity:1}.orama-markdown-pre{position:relative}.orama-markdown-code{border-radius:.5rem;border-radius:var(--radius-s,calc(8rem/var(--orama-base-font-size, 16)))}.orama-markdown-code-title{color:#151515;color:var(--text-color-primary,#151515);display:block;font-size:.625rem;font-size:var(--font-size-xxs,calc(10rem/var(--orama-base-font-size, 16)));opacity:.5;padding:.5rem 0;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16))) 0}";window.hljs=Wg;C2.addHook("afterSanitizeAttributes",e=>{"href"in e&&(e.setAttribute("target","_parent"),e.setAttribute("rel","noopener"))});var e3=Object.fromEntries(IF.map(e=>[e,{error:!1,retries:0}])),Iq={html:"xml"};async function t3(e){let t=e3[e];if(!t||t.error&&t.retries>=5)return!1;try{let r=await fetch(`https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/languages/${e}.min.js`);if(!r.ok)throw new Error(`Failed to fetch ${e} language: ${r.statusText}`);let n=await r.text();if(await new Function(n)(),!Wg.getLanguage(e))throw new Error(`Even after executing grammar script, ${e} language was not registered`);return t.retries=0,t.error=!1,!0}catch{return t.error=!0,t.retries++,!1}}g(t3,"loadLanguageAndHighlight");var Tu,r3=Zr((Tu=class extends Hr{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.chatMarkdownLinkClicked=Br(this,"chatMarkdownLinkClicked"),this.parseMarkdown=async()=>{if(!this.content)return;let t=this.content.replace(/^[\u200B\u200C\u200D\u200E\u200F\uFEFF]/,""),r=await Mr.parse(t);this.divElement.innerHTML=C2.sanitize(r);let n=this.markdownElement.shadowRoot.querySelectorAll(".orama-markdown-code"),s={};for(let o=0;o<n.length;o++){let l=n[o];if(l.hasAttribute("data-highlighted"))continue;let u=l.className.split(" ").find(d=>d.startsWith("language-")).substring(9);s[u]=!0}for(let o of Object.keys(s))t3(o).then(()=>{let l=Mr.parse(t);this.divElement.innerHTML=C2.sanitize(l)})}}onContentChange(){this.parseMarkdown()}handleMarkdownLinkClicked(t){let r=t.target;if(this.chatMarkdownLinkClicked.emit({text:r.innerText,href:r.href}).defaultPrevented){t.preventDefault();return}}componentDidLoad(){Mr.use({useNewRenderer:!0,renderer:{link:g(t=>{var r,n,s,o,l;let u=document.createElement("a");return u.innerHTML=(n=(r=this.chatMarkdownLinkTitle)===null||r===void 0?void 0:r.call(this,{href:t.href,text:t.text}))!==null&&n!==void 0?n:t.text,u.href=(o=(s=this.chatMarkdownLinkHref)===null||s===void 0?void 0:s.call(this,{href:t.href,text:t.text}))!==null&&o!==void 0?o:t.href,this.chatMarkdownLinkTarget&&(u.target=(l=this.chatMarkdownLinkTarget)===null||l===void 0?void 0:l.call(this,{href:t.href,text:t.text})),u.outerHTML},"link"),code:g(t=>{let r=Iq[t.lang]||t.lang,n=e3[r]?r:"plaintext",s=document.createElement("pre");s.classList.add("orama-markdown-pre");let o=document.createElement("div");o.classList.add("orama-markdown-code-title"),s.appendChild(o);let l=document.createElement("code");l.classList.add("orama-markdown-code"),l.classList.add(`language-${n}`),l.classList.add("hljs"),s.appendChild(l);let u=Wg.getLanguage(n);return u?(n==="plaintext"?o.innerHTML="":o.innerHTML=u.name,l.innerHTML=Wg.highlight(t.text,{language:n,ignoreIllegals:!0}).value,l.dataset.highlighted="yes"):(o.innerHTML=" ",l.innerHTML=t.text),s.outerHTML},"code"),codespan:g(t=>{let r=document.createElement("code");return r.classList.add("orama-markdown-inline-code"),r.innerHTML=t.text,r.outerHTML},"codespan")}}),this.parseMarkdown()}render(){return Y("host",{key:"0d9e85fa6fc920380df442ff1ef91e3fbcc0ea51"},Y("link",{key:"10de293b8a30b8071a00c819c6c31968d5f48804",rel:"stylesheet",href:"https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.10.0/build/styles/atom-one-dark.min.css"}),Y("div",{key:"610b83aa61a633c732e20331685c9e61cecd1a49",class:"orama-markdown-wrapper",ref:g(t=>{this.divElement=t},"ref"),onClick:g(t=>{t.target.tagName==="A"&&this.handleMarkdownLinkClicked(t)},"onClick")}))}get markdownElement(){return this}static get watchers(){return{content:["onContentChange"]}}static get style(){return Pq}},g(Tu,"OramaMarkdown"),Tu),[1,"orama-markdown",{content:[1],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"]},void 0,{content:["onContentChange"]}]);function Ql(){typeof customElements>"u"||["orama-markdown"].forEach(e=>{switch(e){case"orama-markdown":customElements.get(e)||customElements.define(e,r3);break}})}g(Ql,"defineCustomElement");var Dq=Object.defineProperty,zq=Object.getOwnPropertyDescriptor,sp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?zq(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&Dq(t,r,s),s},"s"),Au,zi=(Au=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${zi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(Au,"t"),Au);zi.weightsMap=new Map([["thin",$e`<path d="M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"/>`],["light",$e`<path d="M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"/>`],["regular",$e`<path d="M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"/>`],["bold",$e`<path d="M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"/>`],["fill",$e`<path d="M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"/>`],["duotone",$e`<path d="M160,48V208L80,128Z" opacity="0.2"/><path d="M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"/>`]]);zi.styles=Pn`
    :host {
      display: contents;
    }
  `;sp([Be({type:String,reflect:!0})],zi.prototype,"size",2);sp([Be({type:String,reflect:!0})],zi.prototype,"weight",2);sp([Be({type:String,reflect:!0})],zi.prototype,"color",2);sp([Be({type:Boolean,reflect:!0})],zi.prototype,"mirrored",2);zi=sp([Dn("ph-caret-left")],zi);var jq=".p.sc-orama-text{color:#151515;color:var(--text-color-primary,#151515);font-size:1rem;font-size:var(--font-size-md,calc(16rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);line-height:1.5;line-height:var(--font-line-height-m,1.5);margin:0;padding:0}@media (min-width:768.02px){.p.sc-orama-text{font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)))}}.p-secondary.sc-orama-text{color:#838289;color:var(--text-color-secondary,#838289);font-size:1rem;font-size:var(--font-size-md,calc(16rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);line-height:1.5;line-height:var(--font-line-height-m,1.5);margin:0;padding:0}@media (min-width:768.02px){.p-secondary.sc-orama-text{font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)))}}.p-tertiary.sc-orama-text{color:#99989d;color:var(--text-color-tertiary,#99989d);font-size:1rem;font-size:var(--font-size-md,calc(16rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);line-height:1.5;line-height:var(--font-line-height-m,1.5);margin:0;padding:0}@media (min-width:768.02px){.p-tertiary.sc-orama-text{font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)))}}.span.sc-orama-text{color:#151515;color:var(--text-color-primary,#151515)}.span.sc-orama-text,.span-secondary.sc-orama-text{font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);line-height:1.25;line-height:var(--font-line-height-s,1.25);margin:0;padding:0}.span-secondary.sc-orama-text{color:#838289;color:var(--text-color-secondary,#838289)}.span-tertiary.sc-orama-text{color:#99989d;color:var(--text-color-tertiary,#99989d);font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);line-height:1.25;line-height:var(--font-line-height-s,1.25);margin:0;padding:0}.small.sc-orama-text{color:#151515;color:var(--text-color-primary,#151515)}.small.sc-orama-text,.small-secondary.sc-orama-text{font-size:.75rem;font-size:var(--font-size-xs,calc(12rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);line-height:1.25;line-height:var(--font-line-height-s,1.25);margin:0;padding:0}.small-secondary.sc-orama-text{color:#838289;color:var(--text-color-secondary,#838289)}.small-tertiary.sc-orama-text{color:#99989d;color:var(--text-color-tertiary,#99989d);font-size:.75rem;font-size:var(--font-size-xs,calc(12rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);line-height:1.25;line-height:var(--font-line-height-s,1.25);margin:0;padding:0}.text-bold.sc-orama-text{font-weight:600;font-weight:var(--font-weight-semibold,600)}.text-left.sc-orama-text{text-align:left}.text-right.sc-orama-text{text-align:right}.text-center.sc-orama-text{text-align:center}.text-inactive.sc-orama-text{color:#99989d;color:var(--text-color-inactive,#99989d)}",Ru,Bq=Zr((Ru=class extends Hr{constructor(){super(),this.__registerHost(),this.as="p",this.bold=!1,this.variant="primary"}render(){let t=this.styledAs==="span"||this.styledAs==="small"||this.styledAs==="p"?this.styledAs:this.as,r=this.as,n=["as","styled-as","class"],s=rp(this.el,n);return Y(r,Object.assign({key:"a1c41477fc4643a8fd1eba038a39117311e17a20",class:{[t]:!0,[`text-${this.align}`]:!!this.align,[`${t}-${this.variant}`]:!0,"text-inactive":!!this.inactive,"text-bold":!!this.bold,[this.class]:!!this.class}},s),Y("slot",{key:"d78c56927befa49cf5f54ab77dd76c9ab3797770"}))}get el(){return this}static get style(){return jq}},g(Ru,"OramaText"),Ru),[6,"orama-text",{as:[1],styledAs:[1,"styled-as"],bold:[4],class:[1],align:[1],variant:[1],inactive:[4]}]);function Bs(){typeof customElements>"u"||["orama-text"].forEach(e=>{switch(e){case"orama-text":customElements.get(e)||customElements.define(e,Bq);break}})}g(Bs,"defineCustomElement");var Uq=Object.defineProperty,Hq=Object.getOwnPropertyDescriptor,ip=g((e,t,r,n)=>{for(var s=n>1?void 0:n?Hq(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&Uq(t,r,s),s},"s"),Ou,ji=(Ou=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${ji.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(Ou,"t"),Ou);ji.weightsMap=new Map([["thin",$e`<path d="M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"/>`],["light",$e`<path d="M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"/>`],["regular",$e`<path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"/>`],["bold",$e`<path d="M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"/>`],["fill",$e`<path d="M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"/>`],["duotone",$e`<path d="M176,128,96,208V48Z" opacity="0.2"/><path d="M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"/>`]]);ji.styles=Pn`
    :host {
      display: contents;
    }
  `;ip([Be({type:String,reflect:!0})],ji.prototype,"size",2);ip([Be({type:String,reflect:!0})],ji.prototype,"weight",2);ip([Be({type:String,reflect:!0})],ji.prototype,"color",2);ip([Be({type:Boolean,reflect:!0})],ji.prototype,"mirrored",2);ji=ip([Dn("ph-caret-right")],ji);var Zq=".sources-outer-wrapper{margin:0 .5rem .75rem 1rem;margin:0 var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16))) var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16))) var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)));overflow:hidden;position:relative}.source-next{left:0}.carousel-arrow,.source-next{bottom:0;position:absolute;top:0}.carousel-arrow{align-items:center;border:none;color:#838289;color:var(--text-color-secondary,#838289);cursor:pointer;display:flex;font-size:1.125rem;font-size:calc(18rem/var(--orama-base-font-size, 16));height:-moz-fit-content;height:fit-content;height:100%;justify-content:center;margin-block:auto;opacity:1;padding:0 .75rem;padding:0 var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));transition:color .2s,opacity .2s;z-index:1}.carousel-arrow.hidden{opacity:0;pointer-events:none}.carousel-arrow:focus:not(.hidden),.carousel-arrow:hover:not(.hidden){color:#151515;color:var(--text-color-primary,#151515)}.carousel-arrow--prev{background:linear-gradient(-90deg,transparent,70%,#fbfbfb);background:linear-gradient(-90deg,transparent,70%,var(--background-color-primary,#fbfbfb));left:0}.carousel-arrow--next{background:linear-gradient(90deg,transparent,30%,#fbfbfb);background:linear-gradient(90deg,transparent,30%,var(--background-color-primary,#fbfbfb));right:0}.sources-wrapper{display:flex;overflow-x:auto;overflow-x:scroll;position:relative;scroll-behavior:smooth;scrollbar-width:none}.source{background:#fff;background:var(--background-color-secondary,#fff);border-radius:.5rem;border-radius:var(--radius-s,calc(8rem/var(--orama-base-font-size, 16)));flex-grow:0;flex-shrink:0;overflow:hidden;padding:.75rem;padding:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));position:relative;text-decoration:none;width:12.1875rem;width:calc(195rem/var(--orama-base-font-size, 16))}.source .source-subtitle,.source .source-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (hover:hover){.source:hover{background:#eee9f6;background:var(--background-color-tertiary,#eee9f6);transition:background .2s ease-in-out}}.source-inner-wrapper{display:flex;padding-right:.5rem;padding-right:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));position:relative}.source-inner-wrapper:last-of-type{padding-right:1rem;padding-right:var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)))}.sr-only{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}",rh=0,Mu,Vq=Zr((Mu=class extends Hr{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.answerSourceClick=Br(this,"answerSourceClick"),this.sourceBaseURL="",this.linksTarget="_blank",this.linksRel="noopener noreferrer",this.isCarouselScrollAtEnd=!1,this.isCarouselScrollAtStart=!1,this.handleCarouselScroll=()=>{this.computeCarouselArrowsVisibility()},this.handleItemClick=(t,r)=>{if(this.answerSourceClick.emit({source:r}).defaultPrevented){t.preventDefault();return}if(!(r!=null&&r.path))throw new Error("No path found")},this.resizeObserver=new ResizeObserver(()=>{this.computeCarouselArrowsVisibility()})}buildUrl(t){if(!t)return"#";if(this.sourceBaseURL){let r=this.sourceBaseURL.replace(/\/+$/,""),n=t.replace(/^\/+/,"");return`${r}/${n}`}return t}getNextItemCarousel(t,r){for(let n=0;n<r.length;n++){let s=r[n],o=s.getBoundingClientRect(),l=t.getBoundingClientRect();if(o.right-rh>l.right)return s}return null}getPreviousItemCarousel(t,r){var n;for(let s=0;s<r.length;s++){let o=r[s],l=o.getBoundingClientRect(),u=t.getBoundingClientRect();if(l.left+rh>=u.left&&l.right-rh<=u.right)return(n=r[s-1])!==null&&n!==void 0?n:null;if(l.left-rh<u.right&&l.right-rh>u.right)return o}return null}handleCarouselMove(t){let r=this.carouselSourceRef;if(!r)return;let n=r.getElementsByClassName("source-inner-wrapper");if(t==="forward"){let s=this.getNextItemCarousel(r,n);s&&s.scrollIntoView({behavior:"smooth",inline:"end",block:"nearest"})}else{let s=this.getPreviousItemCarousel(r,n);s&&s.scrollIntoView({behavior:"smooth",inline:"start",block:"nearest"})}}computeCarouselArrowsVisibility(){let t=this.carouselSourceRef;if(!t)return;let r=t.getElementsByClassName("source-inner-wrapper");this.isCarouselScrollAtEnd=!this.getNextItemCarousel(t,r),this.isCarouselScrollAtStart=!this.getPreviousItemCarousel(t,r)}componentDidLoad(){var t;(t=this.carouselSourceRef)===null||t===void 0||t.addEventListener("scroll",this.handleCarouselScroll),this.computeCarouselArrowsVisibility(),this.carouselSourceRef&&this.resizeObserver.observe(this.carouselSourceRef)}disconnectedCallback(){var t;(t=this.carouselSourceRef)===null||t===void 0||t.removeEventListener("scroll",this.handleCarouselScroll),this.resizeObserver.disconnect()}hasHorizontalOverflow(t){return t?t.scrollWidth>t.clientWidth:!1}render(){var t;if(!((t=this.sources)===null||t===void 0)&&t.length)return Y("host",null,Y("div",{class:{"sources-outer-wrapper":!0,"oveflow-decorator":this.hasHorizontalOverflow(this.carouselSourceRef)}},Y("h2",{class:"sr-only"},"Sources"),Y("button",{class:{"carousel-arrow carousel-arrow--prev":!0,hidden:this.isCarouselScrollAtStart},onClick:g(()=>this.handleCarouselMove("backwards"),"onClick"),type:"button"},Y("ph-caret-left",null)),Y("button",{class:{"carousel-arrow carousel-arrow--next":!0,hidden:this.isCarouselScrollAtEnd},onClick:g(()=>this.handleCarouselMove("forward"),"onClick"),type:"button"},Y("ph-caret-right",null)),Y("div",{class:"sources-wrapper",ref:g(r=>{this.carouselSourceRef=r},"ref")},this.sources.map((r,n)=>{if(r.title&&r.path||r.description&&r.path)return Y("div",{class:"source-inner-wrapper",key:`source-${n}`,style:{position:"relative",display:"flex"}},Y("a",{href:this.buildUrl(r.path),class:"source",target:this.linksTarget,rel:this.linksRel,id:`source-${n}`,onClick:g(s=>this.handleItemClick(s,r),"onClick")},Y("orama-text",{as:"h3",styledAs:"span",class:"source-title"},r.title),Y("orama-text",{as:"p",styledAs:"span",class:"source-subtitle",variant:"tertiary"},r.description)))}))))}static get style(){return Zq}},g(Mu,"OramaSources"),Mu),[1,"orama-sources",{sources:[8],sourceBaseURL:[1,"source-base-u-r-l"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],isCarouselScrollAtEnd:[32],isCarouselScrollAtStart:[32]}]);function Yd(){typeof customElements>"u"||["orama-sources","orama-text"].forEach(e=>{switch(e){case"orama-sources":customElements.get(e)||customElements.define(e,Vq);break;case"orama-text":customElements.get(e)||Bs();break}})}g(Yd,"defineCustomElement");var ra;(function(e){e.idle="idle",e.loading="loading",e.rendering="rendering",e.streaming="streaming",e.error="error",e.aborted="aborted",e.done="done"})(ra||(ra={}));var Fq=Object.defineProperty,qq=Object.getOwnPropertyDescriptor,op=g((e,t,r,n)=>{for(var s=n>1?void 0:n?qq(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&Fq(t,r,s),s},"o$2"),Nu,Bi=(Nu=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Bi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(Nu,"t"),Nu);Bi.weightsMap=new Map([["thin",$e`<path d="M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"/>`],["light",$e`<path d="M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"/>`],["regular",$e`<path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"/>`],["bold",$e`<path d="M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"/>`],["fill",$e`<path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"/>`],["duotone",$e`<path d="M216,40V168H168V88H88V40Z" opacity="0.2"/><path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"/>`]]);Bi.styles=Pn`
    :host {
      display: contents;
    }
  `;op([Be({type:String,reflect:!0})],Bi.prototype,"size",2);op([Be({type:String,reflect:!0})],Bi.prototype,"weight",2);op([Be({type:String,reflect:!0})],Bi.prototype,"color",2);op([Be({type:Boolean,reflect:!0})],Bi.prototype,"mirrored",2);Bi=op([Dn("ph-copy")],Bi);var Gq=Object.defineProperty,Kq=Object.getOwnPropertyDescriptor,lp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?Kq(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&Gq(t,r,s),s},"o$1"),Lu,Ui=(Lu=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Ui.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(Lu,"a"),Lu);Ui.weightsMap=new Map([["thin",$e`<path d="M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"/>`],["light",$e`<path d="M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"/>`],["regular",$e`<path d="M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"/>`],["bold",$e`<path d="M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"/>`],["fill",$e`<path d="M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"/>`],["duotone",$e`<path d="M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z" opacity="0.2"/><path d="M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"/>`]]);Ui.styles=Pn`
    :host {
      display: contents;
    }
  `;lp([Be({type:String,reflect:!0})],Ui.prototype,"size",2);lp([Be({type:String,reflect:!0})],Ui.prototype,"weight",2);lp([Be({type:String,reflect:!0})],Ui.prototype,"color",2);lp([Be({type:Boolean,reflect:!0})],Ui.prototype,"mirrored",2);Ui=lp([Dn("ph-arrows-clockwise")],Ui);var Wq=Object.defineProperty,Yq=Object.getOwnPropertyDescriptor,cp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?Yq(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&Wq(t,r,s),s},"l"),Pu,Hi=(Pu=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Hi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(Pu,"t"),Pu);Hi.weightsMap=new Map([["thin",$e`<path d="M235.85,157.52l-12-96A20,20,0,0,0,204,44H32A12,12,0,0,0,20,56v88a12,12,0,0,0,12,12H77.53l38.89,77.79A4,4,0,0,0,120,236a36,36,0,0,0,36-36V180h60a20,20,0,0,0,19.85-22.48ZM76,148H32a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4H76Zm149,19.94a12,12,0,0,1-9,4.06H152a4,4,0,0,0-4,4v24a28,28,0,0,1-25.58,27.9L84,151.06V52H204a12,12,0,0,1,11.91,10.51l12,96A12,12,0,0,1,225,167.94Z"/>`],["light",$e`<path d="M237.83,157.27l-12-96A22,22,0,0,0,204,42H32A14,14,0,0,0,18,56v88a14,14,0,0,0,14,14H76.29l38.34,76.68A6,6,0,0,0,120,238a38,38,0,0,0,38-38V182h58a22,22,0,0,0,21.83-24.73ZM74,146H32a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2H74Zm149.5,20.62A9.89,9.89,0,0,1,216,170H152a6,6,0,0,0-6,6v24a26,26,0,0,1-22.42,25.75L86,150.58V54H204a10,10,0,0,1,9.92,8.76l12,96A9.89,9.89,0,0,1,223.5,166.62Z"/>`],["regular",$e`<path d="M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"/>`],["bold",$e`<path d="M243.78,156.53l-12-96A28,28,0,0,0,204,36H32A20,20,0,0,0,12,56v88a20,20,0,0,0,20,20H72.58l36.69,73.37A12,12,0,0,0,120,244a44.05,44.05,0,0,0,44-44V188h52a28,28,0,0,0,27.78-31.47ZM68,140H36V60H68Zm151,22.65a4,4,0,0,1-3,1.35H152a12,12,0,0,0-12,12v24a20,20,0,0,1-13.18,18.8L92,149.17V60H204a4,4,0,0,1,4,3.5l12,96A4,4,0,0,1,219,162.65Z"/>`],["fill",$e`<path d="M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"/>`],["duotone",$e`<path d="M80,48V152H32a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z" opacity="0.2"/><path d="M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"/>`]]);Hi.styles=Pn`
    :host {
      display: contents;
    }
  `;cp([Be({type:String,reflect:!0})],Hi.prototype,"size",2);cp([Be({type:String,reflect:!0})],Hi.prototype,"weight",2);cp([Be({type:String,reflect:!0})],Hi.prototype,"color",2);cp([Be({type:Boolean,reflect:!0})],Hi.prototype,"mirrored",2);Hi=cp([Dn("ph-thumbs-down")],Hi);var Qq=Object.defineProperty,Xq=Object.getOwnPropertyDescriptor,up=g((e,t,r,n)=>{for(var s=n>1?void 0:n?Xq(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&Qq(t,r,s),s},"o"),Iu,Zi=(Iu=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Zi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(Iu,"a"),Iu);Zi.weightsMap=new Map([["thin",$e`<path d="M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"/>`],["light",$e`<path d="M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"/>`],["regular",$e`<path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"/>`],["bold",$e`<path d="M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"/>`],["fill",$e`<path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"/>`],["duotone",$e`<path d="M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z" opacity="0.2"/><path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"/>`]]);Zi.styles=Pn`
    :host {
      display: contents;
    }
  `;up([Be({type:String,reflect:!0})],Zi.prototype,"size",2);up([Be({type:String,reflect:!0})],Zi.prototype,"weight",2);up([Be({type:String,reflect:!0})],Zi.prototype,"color",2);up([Be({type:Boolean,reflect:!0})],Zi.prototype,"mirrored",2);Zi=up([Dn("ph-warning")],Zi);var Jq=".sc-orama-chat-assistent-message-h{color:#838289;color:var(--text-color-secondary,#838289);display:block}.message-wrapper.sc-orama-chat-assistent-message{padding:.75rem;padding:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)))}.message-error.sc-orama-chat-assistent-message,.message-wrapper.sc-orama-chat-assistent-message{background:#fff;background:var(--background-color-secondary,#fff);border-radius:.75rem;border-radius:var(--radius-m,calc(12rem/var(--orama-base-font-size, 16)));margin:0 1rem;margin:0 var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)))}.message-error.sc-orama-chat-assistent-message{padding:1rem .5rem;padding:var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16))) var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));text-align:center}.message-error.sc-orama-chat-assistent-message ph-warning.sc-orama-chat-assistent-message{color:#99989d;color:var(--text-color-inactive,#99989d);display:block}.message-actions.sc-orama-chat-assistent-message{display:flex;gap:.5rem;gap:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));justify-content:end;margin-top:.75rem;margin-top:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));transition:opacity .2s ease-in-out}.hidden.sc-orama-chat-assistent-message{opacity:0;pointer-events:none}.sr-only.sc-orama-chat-assistent-message{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@keyframes rotate360{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",eG=function(e,t,r,n){var s=arguments.length,o=s<3?t:n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(l=e[u])&&(o=(s<3?l(o):s>3?l(t,r,o):l(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},Du,n3=Zr((Du=class extends Hr{constructor(){super(),this.__registerHost(),this.isCopied=!1,this.handleCopyToClipboard=()=>{this.isCopied=!0,setTimeout(()=>this.isCopied=!1,1e3),v5(this.interaction.response)},this.isDisliked=!1,this.handleDislikeMessage=()=>{this.isDisliked=!this.isDisliked},this.handleRetryMessage=()=>{var t;(t=this.chatStore.state.chatService)===null||t===void 0||t.regenerateLatest()}}render(){return this.interaction.status==="loading"?Y("div",{class:"message-wrapper"},Y("orama-dots-loader",null)):this.interaction.status==="error"?Y("div",{class:"message-error"},Y("ph-warning",{size:16}),Y("orama-text",{styledAs:"span",inactive:!0},"An error occurred while trying to search. Please try again.")):Y(va,null,Y("orama-sources",{sources:this.interaction.sources,sourceBaseURL:this.chatStore.state.sourceBaseURL,linksRel:this.chatStore.state.linksRel,linksTarget:this.chatStore.state.linksTarget}),Y("div",{class:"message-wrapper"},this.interaction.response?Y("orama-markdown",{content:this.interaction.response,chatMarkdownLinkTitle:this.chatMarkdownLinkTitle,chatMarkdownLinkHref:this.chatMarkdownLinkHref}):Y("orama-dots-loader",null),Y("div",{class:{"message-actions":!0,hidden:this.interaction.status!==ra.done}},this.interaction.latest&&Y("orama-button",{type:"button",variant:"icon",onClick:this.handleRetryMessage,onKeyDown:this.handleRetryMessage,"aria-label":"Retry message"},Y("ph-arrows-clockwise",{size:"16px"})),Y("orama-button",{type:"button",variant:"icon",onClick:this.handleCopyToClipboard,onKeyDown:this.handleCopyToClipboard,withTooltip:this.isCopied?"Copied!":void 0,"aria-label":"Copy message"},Y("ph-copy",{size:"16px"})),Y("orama-button",{type:"button",variant:"icon",onClick:this.handleDislikeMessage,onKeyDown:this.handleDislikeMessage,"aria-label":"Dislike message"},this.isDisliked?Y("ph-thumbs-down",{weight:"fill",size:"16px"}):Y("ph-thumbs-down",{size:"16px"})))))}get htmlElement(){return this}static get style(){return Jq}},g(Du,"OramaChatAssistentMessage"),Du),[2,"orama-chat-assistent-message",{interaction:[16],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"],isCopied:[32],isDisliked:[32]}]);eG([no("chat")],n3.prototype,"chatStore",void 0);function dp(){typeof customElements>"u"||["orama-chat-assistent-message","orama-button","orama-dots-loader","orama-markdown","orama-sources","orama-text"].forEach(e=>{switch(e){case"orama-chat-assistent-message":customElements.get(e)||customElements.define(e,n3);break;case"orama-button":customElements.get(e)||Ko();break;case"orama-dots-loader":customElements.get(e)||Wd();break;case"orama-markdown":customElements.get(e)||Ql();break;case"orama-sources":customElements.get(e)||Yd();break;case"orama-text":customElements.get(e)||Bs();break}})}g(dp,"defineCustomElement");var zu,uh=(zu=class extends Error{constructor(){super("Orama Client is not initialized")}},g(zu,"OramaClientNotInitializedError"),zu),tG={arabic:"ar",armenian:"am",bulgarian:"bg",czech:"cz",danish:"dk",dutch:"nl",english:"en",finnish:"fi",french:"fr",german:"de",greek:"gr",hungarian:"hu",indian:"in",indonesian:"id",irish:"ie",italian:"it",lithuanian:"lt",nepali:"np",norwegian:"no",portuguese:"pt",romanian:"ro",russian:"ru",serbian:"rs",slovenian:"ru",spanish:"es",swedish:"se",tamil:"ta",turkish:"tr",ukrainian:"uk",sanskrit:"sk"},rG=Object.keys(tG);Date.now().toString().slice(5);var kk=BigInt(1e3),Ek=BigInt(1e6),_k=BigInt(1e9),hv=65535;function a3(e,t){if(t.length<hv)Array.prototype.push.apply(e,t);else{let r=t.length;for(let n=0;n<r;n+=hv)Array.prototype.push.apply(e,t.slice(n,n+hv))}}g(a3,"safeArrayPush");function s3(e,...t){return e.replace(/%(?:(?<position>\d+)\$)?(?<width>-?\d*\.?\d*)(?<type>[dfs])/g,function(...r){let n=r[r.length-1],{width:s,type:o,position:l}=n,u=l?t[Number.parseInt(l)-1]:t.shift(),d=s===""?0:Number.parseInt(s);switch(o){case"d":return u.toString().padStart(d,"0");case"f":{let h=u,[p,m]=s.split(".").map(b=>Number.parseFloat(b));return typeof m=="number"&&m>=0&&(h=h.toFixed(m)),typeof p=="number"&&p>=0?h.toString().padStart(d,"0"):h.toString()}case"s":return d<0?u.toString().padEnd(-d," "):u.toString().padStart(d," ");default:return u}})}g(s3,"sprintf");function i3(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}g(i3,"isInsideWebWorker");function o3(){return typeof process<"u"&&process.release&&process.release.name==="node"}g(o3,"isInsideNode");function A2(){return BigInt(Math.floor(performance.now()*1e6))}g(A2,"getNanosecondTimeViaPerformance");function fx(e){return typeof e=="number"&&(e=BigInt(e)),e<kk?`${e}ns`:e<Ek?`${e/kk}μs`:e<_k?`${e/Ek}ms`:`${e/_k}s`}g(fx,"formatNanoseconds");function ql(){var e;return i3()?A2():o3()||typeof process<"u"&&typeof((e=process==null?void 0:process.hrtime)==null?void 0:e.bigint)=="function"?process.hrtime.bigint():typeof performance<"u"?A2():BigInt(0)}g(ql,"getNanosecondsTime");function hx(e,t){return t[1]===e[1]?e[0]-t[0]:t[1]-e[1]}g(hx,"sortTokenScorePredicate");function l3(e){if(e.length===0)return[];if(e.length===1)return e[0];for(let r=1;r<e.length;r++)if(e[r].length<e[0].length){let n=e[0];e[0]=e[r],e[r]=n}let t=new Map;for(let r of e[0])t.set(r,1);for(let r=1;r<e.length;r++){let n=0;for(let s of e[r]){let o=t.get(s);o===r&&(t.set(s,o+1),n++)}if(n===0)return[]}return e[0].filter(r=>{let n=t.get(r);return n!==void 0&&t.set(r,0),n===e.length})}g(l3,"intersect");function c3(e,t){let r={},n=t.length;for(let s=0;s<n;s++){let o=t[s],l=o.split("."),u=e,d=l.length;for(let h=0;h<d;h++)if(u=u[l[h]],typeof u=="object"){if(u!==null&&"lat"in u&&"lon"in u&&typeof u.lat=="number"&&typeof u.lon=="number"){u=r[o]=u;break}else if(!Array.isArray(u)&&u!==null&&h===d-1){u=void 0;break}}else if((u===null||typeof u!="object")&&h<d-1){u=void 0;break}typeof u<"u"&&(r[o]=u)}return r}g(c3,"getDocumentProperties");function n1(e,t){return c3(e,[t])[t]}g(n1,"getNested");function px(e,t){e.hits=e.hits.map(r=>({...r,document:{...r.document,...t.reduce((n,s)=>{let o=s.split("."),l=o.pop(),u=n;for(let d of o)u[d]=u[d]??{},u=u[d];return u[l]=null,n},r.document)}}))}g(px,"removeVectorsFromHits");function a1(e){var t;return Array.isArray(e)?e.some(r=>a1(r)):((t=e==null?void 0:e.constructor)==null?void 0:t.name)==="AsyncFunction"}g(a1,"isAsyncFunction");var nG=rG.join(`
 - `),aG={NO_LANGUAGE_WITH_CUSTOM_TOKENIZER:"Do not pass the language option to create when using a custom tokenizer.",LANGUAGE_NOT_SUPPORTED:`Language "%s" is not supported.
Supported languages are:
 - ${nG}`,INVALID_STEMMER_FUNCTION_TYPE:"config.stemmer property must be a function.",MISSING_STEMMER:'As of version 1.0.0 @orama/orama does not ship non English stemmers by default. To solve this, please explicitly import and specify the "%s" stemmer from the package @orama/stemmers. See https://docs.orama.com/open-source/text-analysis/stemming for more information.',CUSTOM_STOP_WORDS_MUST_BE_FUNCTION_OR_ARRAY:"Custom stop words array must only contain strings.",UNSUPPORTED_COMPONENT:'Unsupported component "%s".',COMPONENT_MUST_BE_FUNCTION:'The component "%s" must be a function.',COMPONENT_MUST_BE_FUNCTION_OR_ARRAY_FUNCTIONS:'The component "%s" must be a function or an array of functions.',INVALID_SCHEMA_TYPE:'Unsupported schema type "%s" at "%s". Expected "string", "boolean" or "number" or array of them.',DOCUMENT_ID_MUST_BE_STRING:'Document id must be of type "string". Got "%s" instead.',DOCUMENT_ALREADY_EXISTS:'A document with id "%s" already exists.',DOCUMENT_DOES_NOT_EXIST:'A document with id "%s" does not exists.',MISSING_DOCUMENT_PROPERTY:'Missing searchable property "%s".',INVALID_DOCUMENT_PROPERTY:'Invalid document property "%s": expected "%s", got "%s"',UNKNOWN_INDEX:'Invalid property name "%s". Expected a wildcard string ("*") or array containing one of the following properties: %s',INVALID_BOOST_VALUE:"Boost value must be a number greater than, or less than 0.",INVALID_FILTER_OPERATION:"You can only use one operation per filter, you requested %d.",SCHEMA_VALIDATION_FAILURE:'Cannot insert document due schema validation failure on "%s" property.',INVALID_SORT_SCHEMA_TYPE:'Unsupported sort schema type "%s" at "%s". Expected "string" or "number".',CANNOT_SORT_BY_ARRAY:'Cannot configure sort for "%s" because it is an array (%s).',UNABLE_TO_SORT_ON_UNKNOWN_FIELD:'Unable to sort on unknown field "%s". Allowed fields: %s',SORT_DISABLED:"Sort is disabled. Please read the documentation at https://docs.oramasearch for more information.",UNKNOWN_GROUP_BY_PROPERTY:'Unknown groupBy property "%s".',INVALID_GROUP_BY_PROPERTY:'Invalid groupBy property "%s". Allowed types: "%s", but given "%s".',UNKNOWN_FILTER_PROPERTY:'Unknown filter property "%s".',INVALID_VECTOR_SIZE:'Vector size must be a number greater than 0. Got "%s" instead.',INVALID_VECTOR_VALUE:'Vector value must be a number greater than 0. Got "%s" instead.',INVALID_INPUT_VECTOR:`Property "%s" was declared as a %s-dimensional vector, but got a %s-dimensional vector instead.
Input vectors must be of the size declared in the schema, as calculating similarity between vectors of different sizes can lead to unexpected results.`,WRONG_SEARCH_PROPERTY_TYPE:'Property "%s" is not searchable. Only "string" properties are searchable.',FACET_NOT_SUPPORTED:`Facet doens't support the type "%s".`,INVALID_DISTANCE_SUFFIX:'Invalid distance suffix "%s". Valid suffixes are: cm, m, km, mi, yd, ft.',INVALID_SEARCH_MODE:'Invalid search mode "%s". Valid modes are: "fulltext", "vector", "hybrid".',MISSING_VECTOR_AND_SECURE_PROXY:"No vector was provided and no secure proxy was configured. Please provide a vector or configure an Orama Secure Proxy to perform hybrid search.",MISSING_TERM:'"term" is a required parameter when performing hybrid search. Please provide a search term.',INVALID_VECTOR_INPUT:'Invalid "vector" property. Expected an object with "value" and "property" properties, but got "%s" instead.',PLUGIN_CRASHED:"A plugin crashed during initialization. Please check the error message for more information:",PLUGIN_SECURE_PROXY_NOT_FOUND:`Could not find '@orama/secure-proxy-plugin' installed in your Orama instance.
Please install it before proceeding with creating an answer session.
Read more at https://docs.orama.com/open-source/plugins/plugin-secure-proxy#plugin-secure-proxy
`,PLUGIN_SECURE_PROXY_MISSING_CHAT_MODEL:`Could not find a chat model defined in the secure proxy plugin configuration.
Please provide a chat model before proceeding with creating an answer session.
Read more at https://docs.orama.com/open-source/plugins/plugin-secure-proxy#plugin-secure-proxy
`,ANSWER_SESSION_LAST_MESSAGE_IS_NOT_ASSISTANT:"The last message in the session is not an assistant message. Cannot regenerate non-assistant messages.",PLUGIN_COMPONENT_CONFLICT:'The component "%s" is already defined. The plugin "%s" is trying to redefine it.'};function Fa(e,...t){let r=new Error(s3(aG[e]??`Unsupported Orama Error code: ${e}`,...t));return r.code=e,"captureStackTrace"in Error.prototype&&Error.captureStackTrace(r),r}g(Fa,"createError");function mx(e,t){if(typeof t=="string"){let r=e.idToInternalId.get(t);if(r)return r;let n=e.idToInternalId.size+1;return e.idToInternalId.set(t,n),e.internalIdToId.push(t),n}return t>e.internalIdToId.length?mx(e,t.toString()):t}g(mx,"getInternalDocumentId");function fp(e,t){if(e.internalIdToId.length<t)throw new Error(`Invalid internalId ${t}`);return e.internalIdToId[t-1]}g(fp,"getDocumentIdFromInternalId");function s1(e,t,r,n,s){if(e.some(a1))return(async()=>{for(let o of e)await o(t,r,n,s)})();for(let o of e)o(t,r,n,s)}g(s1,"runAfterSearch");function i1(e,t,r,n){if(e.some(a1))return(async()=>{for(let s of e)await s(t,r,n)})();for(let s of e)s(t,r,n)}g(i1,"runBeforeSearch");var sG=.8;function u3(e){return e.documentsStore.count(e.data.docs)}g(u3,"count");var Tk="fulltext",iG="hybrid",oG="vector";function d3(e,t){return e[1]-t[1]}g(d3,"sortAsc");function f3(e,t){return t[1]-e[1]}g(f3,"sortDesc");function h3(e="desc"){return e.toLowerCase()==="asc"?d3:f3}g(h3,"sortingPredicateBuilder");function o1(e,t,r){let n={},s=t.map(([h])=>h),o=e.documentsStore.getMultiple(e.data.docs,s),l=Object.keys(r),u=e.index.getSearchablePropertiesWithTypes(e.data.index);for(let h of l){let p;if(u[h]==="number"){let{ranges:m}=r[h],b=m.length,S=Array.from({length:b});for(let x=0;x<b;x++){let C=m[x];S[x]=[`${C.from}-${C.to}`,0]}p=Object.fromEntries(S)}n[h]={count:0,values:p??{}}}let d=o.length;for(let h=0;h<d;h++){let p=o[h];for(let m of l){let b=m.includes(".")?n1(p,m):p[m],S=u[m],x=n[m].values;switch(S){case"number":{let C=r[m].ranges;R2(C,x)(b);break}case"number[]":{let C=new Set,$=r[m].ranges,_=R2($,x,C);for(let M of b)_(M);break}case"boolean":case"enum":case"string":{O2(x,S)(b);break}case"boolean[]":case"enum[]":case"string[]":{let C=O2(x,S==="boolean[]"?"boolean":"string",new Set);for(let $ of b)C($);break}default:throw Fa("FACET_NOT_SUPPORTED",S)}}}for(let h of l){let p=n[h];if(p.count=Object.keys(p.values).length,u[h]==="string"){let m=r[h],b=h3(m.sort);p.values=Object.fromEntries(Object.entries(p.values).sort(b).slice(m.offset??0,m.limit??10))}}return n}g(o1,"getFacets");function R2(e,t,r){return n=>{for(let s of e){let o=`${s.from}-${s.to}`;r!=null&&r.has(o)||n>=s.from&&n<=s.to&&(t[o]===void 0?t[o]=1:(t[o]++,r==null||r.add(o)))}}}g(R2,"calculateNumberFacetBuilder");function O2(e,t,r){let n=t==="boolean"?"false":"";return s=>{let o=(s==null?void 0:s.toString())??n;r!=null&&r.has(o)||(e[o]=(e[o]??0)+1,r==null||r.add(o))}}g(O2,"calculateBooleanStringOrEnumFacetBuilder");var lG={reducer:g((e,t,r,n)=>(t[n]=r,t),"reducer"),getInitialValue:g(e=>Array.from({length:e}),"getInitialValue")},Ak=["string","number","boolean"];function l1(e,t,r){let n=r.properties,s=n.length,o=e.index.getSearchablePropertiesWithTypes(e.data.index);for(let _=0;_<s;_++){let M=n[_];if(typeof o[M]>"u")throw Fa("UNKNOWN_GROUP_BY_PROPERTY",M);if(!Ak.includes(o[M]))throw Fa("INVALID_GROUP_BY_PROPERTY",M,Ak.join(", "),o[M])}let l=t.map(([_])=>fp(e.internalDocumentIDStore,_)),u=e.documentsStore.getMultiple(e.data.docs,l),d=u.length,h=r.maxResult||Number.MAX_SAFE_INTEGER,p=[],m={};for(let _=0;_<s;_++){let M=n[_],T={property:M,perValue:{}},R=new Set;for(let L=0;L<d;L++){let j=u[L],O=n1(j,M);if(typeof O>"u")continue;let N=typeof O!="boolean"?O:""+O,z=T.perValue[N]??{indexes:[],count:0};z.count>=h||(z.indexes.push(L),z.count++,T.perValue[N]=z,R.add(O))}p.push(Array.from(R)),m[M]=T}let b=gx(p),S=b.length,x=[];for(let _=0;_<S;_++){let M=b[_],T=M.length,R={values:[],indexes:[]},L=[];for(let j=0;j<T;j++){let O=M[j],N=n[j];L.push(m[N].perValue[typeof O!="boolean"?O:""+O].indexes),R.values.push(O)}R.indexes=l3(L).sort((j,O)=>j-O),R.indexes.length!==0&&x.push(R)}let C=x.length,$=Array.from({length:C});for(let _=0;_<C;_++){let M=x[_],T=r.reduce||lG,R=M.indexes.map(N=>({id:l[N],score:t[N][1],document:u[N]})),L=T.reducer.bind(null,M.values),j=T.getInitialValue(M.indexes.length),O=R.reduce(L,j);$[_]={values:M.values,result:O}}return $}g(l1,"getGroups");function gx(e,t=0){if(t+1===e.length)return e[t].map(o=>[o]);let r=e[t],n=gx(e,t+1),s=[];for(let o of r)for(let l of n){let u=[o];a3(u,l),s.push(u)}return s}g(gx,"calculateCombination");function yx(e,t,r){let{term:n,properties:s}=t,o=e.data.index,l=e.caches.propertiesToSearch;if(!l){let m=e.index.getSearchablePropertiesWithTypes(o);l=e.index.getSearchableProperties(o),l=l.filter(b=>m[b].startsWith("string")),e.caches.propertiesToSearch=l}if(s&&s!=="*"){for(let m of s)if(!l.includes(m))throw Fa("UNKNOWN_INDEX",m,l.join(", "));l=l.filter(m=>s.includes(m))}let u=Object.keys(t.where??{}).length>0,d;u&&(d=e.index.searchByWhereClause(o,e.tokenizer,t.where,r));let h,p=t.threshold!==void 0&&t.threshold!==null?t.threshold:1;if(n||s){let m=u3(e);h=e.index.search(o,n||"",e.tokenizer,r,l,t.exact||!1,t.tolerance||0,t.boost||{},m3(t.relevance),m,d,p)}else h=(d?Array.from(d):Object.keys(e.documentsStore.getAll(e.data.docs))).map(m=>[+m,0]);return h}g(yx,"innerFullTextSearch");function p3(e,t,r){var l,u;let n=ql();function s(){let d=Object.keys(e.data.index.vectorIndexes),h=t.facets&&Object.keys(t.facets).length>0,{limit:p=10,offset:m=0,distinctOn:b,includeVectors:S=!1}=t,x=t.preflight===!0,C=yx(e,t,r);if(t.sortBy)if(typeof t.sortBy=="function"){let M=C.map(([R])=>R),T=e.documentsStore.getMultiple(e.data.docs,M).map((R,L)=>[C[L][0],C[L][1],R]);T.sort(t.sortBy),C=T.map(([R,L])=>[R,L])}else C=e.sorter.sortBy(e.data.sorting,C,t.sortBy).map(([M,T])=>[mx(e.internalDocumentIDStore,M),T]);else C=C.sort(hx);let $;x||($=b?C3(e,C,m,p,b):Sx(e,C,m,p));let _={elapsed:{formatted:"",raw:0},hits:[],count:C.length};if(typeof $<"u"&&(_.hits=$.filter(Boolean),S||px(_,d)),h){let M=o1(e,C,t.facets);_.facets=M}return t.groupBy&&(_.groups=l1(e,C,t.groupBy)),_.elapsed=e.formatElapsedTime(ql()-n),_}g(s,"performSearchLogic");async function o(){e.beforeSearch&&await i1(e.beforeSearch,e,t,r);let d=s();return e.afterSearch&&await s1(e.afterSearch,e,t,r,d),d}return g(o,"executeSearchAsync"),(l=e.beforeSearch)!=null&&l.length||(u=e.afterSearch)!=null&&u.length?o():s()}g(p3,"fullTextSearch");var pv={k:1.2,b:.75,d:.5};function m3(e){let t=e??{};return t.k=t.k??pv.k,t.b=t.b??pv.b,t.d=t.d??pv.d,t}g(m3,"applyDefault");function bx(e,t,r){let n=t.vector;if(n&&(!("value"in n)||!("property"in n)))throw Fa("INVALID_VECTOR_INPUT",Object.keys(n).join(", "));let s=e.data.index.vectorIndexes[n.property],o=s.node.size;if((n==null?void 0:n.value.length)!==o)throw(n==null?void 0:n.property)===void 0||(n==null?void 0:n.value.length)===void 0?Fa("INVALID_INPUT_VECTOR","undefined",o,"undefined"):Fa("INVALID_INPUT_VECTOR",n.property,o,n.value.length);let l=e.data.index,u;return Object.keys(t.where??{}).length>0&&(u=e.index.searchByWhereClause(l,e.tokenizer,t.where,r)),s.node.find(n.value,t.similarity??sG,u)}g(bx,"innerVectorSearch");function g3(e,t,r="english"){var l,u;let n=ql();function s(){let d=bx(e,t,r).sort(hx),h=[];t.facets&&Object.keys(t.facets).length>0&&(h=o1(e,d,t.facets));let p=t.vector.property,m=t.includeVectors??!1,b=t.limit??10,S=t.offset??0,x=Array.from({length:b});for(let _=0;_<b;_++){let M=d[_+S];if(!M)break;let T=e.data.docs.docs[M[0]];if(T){m||(T[p]=null);let R={id:fp(e.internalDocumentIDStore,M[0]),score:M[1],document:T};x[_]=R}}let C=[];t.groupBy&&(C=l1(e,d,t.groupBy));let $=ql()-n;return{count:d.length,hits:x.filter(Boolean),elapsed:{raw:Number($),formatted:fx($)},...h?{facets:h}:{},...C?{groups:C}:{}}}g(s,"performSearchLogic");async function o(){e.beforeSearch&&await i1(e.beforeSearch,e,t,r);let d=s();return e.afterSearch&&await s1(e.afterSearch,e,t,r,d),d}return g(o,"executeSearchAsync"),(l=e.beforeSearch)!=null&&l.length||(u=e.afterSearch)!=null&&u.length?o():s()}g(g3,"searchVector");function y3(e,t,r){let n=v3(yx(e,t,r)),s=bx(e,t,r),o=t.hybridWeights;return x3(n,s,t.term??"",o)}g(y3,"innerHybridSearch");function b3(e,t,r){var l,u;let n=ql();function s(){let d=y3(e,t,r),h;t.facets&&Object.keys(t.facets).length>0&&(h=o1(e,d,t.facets));let p;t.groupBy&&(p=l1(e,d,t.groupBy));let m=t.offset??0,b=t.limit??10,S=Sx(e,d,m,b).filter(Boolean),x=ql(),C={count:d.length,elapsed:{raw:Number(x-n),formatted:fx(x-n)},hits:S,...h?{facets:h}:{},...p?{groups:p}:{}};if(!(t.includeVectors??!1)){let $=Object.keys(e.data.index.vectorIndexes);px(C,$)}return C}g(s,"performSearchLogic");async function o(){e.beforeSearch&&await i1(e.beforeSearch,e,t,r);let d=s();return e.afterSearch&&await s1(e.afterSearch,e,t,r,d),d}return g(o,"executeSearchAsync"),(l=e.beforeSearch)!=null&&l.length||(u=e.afterSearch)!=null&&u.length?o():s()}g(b3,"hybridSearch");function Jg(e){return e[1]}g(Jg,"extractScore");function v3(e){let t=Math.max.apply(Math,e.map(Jg));return e.map(([r,n])=>[r,n/t])}g(v3,"minMaxScoreNormalization");function M2(e,t){return e/t}g(M2,"normalizeScore");function S3(e,t){return(r,n)=>r*e+n*t}g(S3,"hybridScoreBuilder");function x3(e,t,r,n){let s=Math.max.apply(Math,e.map(Jg)),o=Math.max.apply(Math,t.map(Jg)),l=n&&n.text&&n.vector,{text:u,vector:d}=l?n:w3(),h=new Map,p=e.length,m=S3(u,d);for(let S=0;S<p;S++){let[x,C]=e[S],$=M2(C,s),_=m($,0);h.set(x,_)}let b=t.length;for(let S=0;S<b;S++){let[x,C]=t[S],$=M2(C,o),_=h.get(x)??0;h.set(x,_+m(0,$))}return[...h].sort((S,x)=>x[1]-S[1])}g(x3,"mergeAndRankResults");function w3(e){return{text:.5,vector:.5}}g(w3,"getQueryWeights");function vx(e,t,r){let n=t.mode??Tk;if(n===Tk)return p3(e,t,r);if(n===oG)return g3(e,t);if(n===iG)return b3(e,t);throw Fa("INVALID_SEARCH_MODE",n)}g(vx,"search");function C3(e,t,r,n,s){let o=e.data.docs,l=new Map,u=[],d=new Set,h=t.length,p=0;for(let m=0;m<h;m++){let b=t[m];if(typeof b>"u")continue;let[S,x]=b;if(d.has(S))continue;let C=e.documentsStore.get(o,S),$=n1(C,s);if(!(typeof $>"u"||l.has($))&&(l.set($,!0),p++,!(p<=r)&&(u.push({id:fp(e.internalDocumentIDStore,S),score:x,document:C}),d.add(S),p>=r+n)))break}return u}g(C3,"fetchDocumentsWithDistinct");function Sx(e,t,r,n){let s=e.data.docs,o=Array.from({length:n}),l=new Set;for(let u=r;u<n+r;u++){let d=t[u];if(typeof d>"u")break;let[h,p]=d;if(!l.has(h)){let m=e.documentsStore.get(s,h);o[u]={id:fp(e.internalDocumentIDStore,h),score:p,document:m},l.add(h)}}return o}g(Sx,"fetchDocuments");var cG="orama-secure-proxy",ju,uG=(ju=class{constructor(t,r){Te(this,"db");Te(this,"proxy",null);Te(this,"config");Te(this,"abortController",null);Te(this,"lastInteractionParams",null);Te(this,"chatModel",null);Te(this,"conversationID");Te(this,"messages",[]);Te(this,"events");Te(this,"initPromise");Te(this,"state",[]);this.db=t,this.config=r,this.init(),this.messages=r.initialMessages||[],this.events=r.events||{},this.conversationID=r.conversationID||this.generateRandomID()}async ask(t){await this.initPromise;let r="";for await(let n of await this.askStream(t))r+=n;return r}async askStream(t){return await this.initPromise,this.fetchAnswer(t)}abortAnswer(){var t;(t=this.abortController)==null||t.abort(),this.state[this.state.length-1].aborted=!0,this.triggerStateChange()}getMessages(){return this.messages}clearSession(){this.messages=[],this.state=[]}regenerateLast({stream:t=!0}){var r;if(this.state.length===0||this.messages.length===0)throw new Error("No messages to regenerate");if(((r=this.messages.at(-1))==null?void 0:r.role)!=="assistant")throw Fa("ANSWER_SESSION_LAST_MESSAGE_IS_NOT_ASSISTANT");return this.messages.pop(),this.state.pop(),t?this.askStream(this.lastInteractionParams):this.ask(this.lastInteractionParams)}async*fetchAnswer(t){if(!this.chatModel)throw Fa("PLUGIN_SECURE_PROXY_MISSING_CHAT_MODEL");this.abortController=new AbortController,this.lastInteractionParams=t;let r=this.generateRandomID();this.messages.push({role:"user",content:t.term??""}),this.state.push({interactionId:r,aborted:!1,loading:!0,query:t.term??"",response:"",sources:null,translatedQuery:null,error:!1,errorMessage:null});let n=this.state.length-1;this.addEmptyAssistantMessage(),this.triggerStateChange();try{let s=await vx(this.db,t);this.state[n].sources=s,this.triggerStateChange();for await(let o of this.proxy.chatStream({model:this.chatModel,messages:this.messages}))yield o,this.state[n].response+=o,this.messages.findLast(l=>l.role==="assistant").content+=o,this.triggerStateChange()}catch(s){s.name==="AbortError"?this.state[n].aborted=!0:(this.state[n].error=!0,this.state[n].errorMessage=s.toString()),this.triggerStateChange()}return this.state[n].loading=!1,this.triggerStateChange(),this.state[n].response}generateRandomID(t=24){return Array.from({length:t},()=>Math.floor(Math.random()*36).toString(36)).join("")}triggerStateChange(){this.events.onStateChange&&this.events.onStateChange(this.state)}async init(){var o,l;let t=this;async function r(){return await t.db.plugins.find(u=>u.name===cG)}g(r,"getPlugin");let n=await r();if(!n)throw Fa("PLUGIN_SECURE_PROXY_NOT_FOUND");let s=n.extra;if(this.proxy=s.proxy,this.config.systemPrompt&&this.messages.push({role:"system",content:this.config.systemPrompt}),(l=(o=s==null?void 0:s.pluginParams)==null?void 0:o.chat)==null?void 0:l.model)this.chatModel=s.pluginParams.chat.model;else throw Fa("PLUGIN_SECURE_PROXY_MISSING_CHAT_MODEL")}addEmptyAssistantMessage(){this.messages.push({role:"assistant",content:""})}},g(ju,"AnswerSession"),ju),Lc={},Ci={},Vm=BigInt(2**32-1),Rk=BigInt(32);function $3(e,t=!1){return t?{h:Number(e&Vm),l:Number(e>>Rk&Vm)}:{h:Number(e>>Rk&Vm)|0,l:Number(e&Vm)|0}}g($3,"fromBig");function k3(e,t=!1){let r=e.length,n=new Uint32Array(r),s=new Uint32Array(r);for(let o=0;o<r;o++){let{h:l,l:u}=$3(e[o],t);[n[o],s[o]]=[l,u]}return[n,s]}g(k3,"split");var dG=g((e,t,r)=>e<<r|t>>>32-r,"rotlSH"),fG=g((e,t,r)=>t<<r|e>>>32-r,"rotlSL"),hG=g((e,t,r)=>t<<r-32|e>>>64-r,"rotlBH"),pG=g((e,t,r)=>e<<r-32|t>>>64-r,"rotlBL");function E3(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}g(E3,"isBytes");function N2(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}g(N2,"anumber");function Dh(e,...t){if(!E3(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}g(Dh,"abytes");function L2(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}g(L2,"aexists");function _3(e,t){Dh(e);let r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}g(_3,"aoutput");function T3(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}g(T3,"u32");function xx(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}g(xx,"clean");var mG=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function A3(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}g(A3,"byteSwap");function R3(e){for(let t=0;t<e.length;t++)e[t]=A3(e[t]);return e}g(R3,"byteSwap32");var Ok=mG?e=>e:R3;function O3(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}g(O3,"utf8ToBytes");function c1(e){return typeof e=="string"&&(e=O3(e)),Dh(e),e}g(c1,"toBytes");var Bu,gG=(Bu=class{},g(Bu,"Hash"),Bu);function M3(e){let t=g(n=>e().update(c1(n)).digest(),"hashC"),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}g(M3,"createHasher");function N3(e){let t=g((n,s)=>e(s).update(c1(n)).digest(),"hashC"),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}g(N3,"createXOFer");var yG=BigInt(0),nh=BigInt(1),bG=BigInt(2),vG=BigInt(7),SG=BigInt(256),xG=BigInt(113),L3=[],P3=[],I3=[];for(let e=0,t=nh,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],L3.push(2*(5*n+r)),P3.push((e+1)*(e+2)/2%64);let s=yG;for(let o=0;o<7;o++)t=(t<<nh^(t>>vG)*xG)%SG,t&bG&&(s^=nh<<(nh<<BigInt(o))-nh);I3.push(s)}var D3=k3(I3,!0),wG=D3[0],CG=D3[1],Mk=g((e,t,r)=>r>32?hG(e,t,r):dG(e,t,r),"rotlH"),Nk=g((e,t,r)=>r>32?pG(e,t,r):fG(e,t,r),"rotlL");function wx(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let l=0;l<10;l++)r[l]=e[l]^e[l+10]^e[l+20]^e[l+30]^e[l+40];for(let l=0;l<10;l+=2){let u=(l+8)%10,d=(l+2)%10,h=r[d],p=r[d+1],m=Mk(h,p,1)^r[u],b=Nk(h,p,1)^r[u+1];for(let S=0;S<50;S+=10)e[l+S]^=m,e[l+S+1]^=b}let s=e[2],o=e[3];for(let l=0;l<24;l++){let u=P3[l],d=Mk(s,o,u),h=Nk(s,o,u),p=L3[l];s=e[p],o=e[p+1],e[p]=d,e[p+1]=h}for(let l=0;l<50;l+=10){for(let u=0;u<10;u++)r[u]=e[l+u];for(let u=0;u<10;u++)e[l+u]^=~r[(u+2)%10]&r[(u+4)%10]}e[0]^=wG[n],e[1]^=CG[n]}xx(r)}g(wx,"keccakP");var zl,Cx=(zl=class extends gG{constructor(t,r,n,s=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=o,N2(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=T3(this.state)}clone(){return this._cloneInto()}keccak(){Ok(this.state32),wx(this.state32,this.rounds),Ok(this.state32),this.posOut=0,this.pos=0}update(t){L2(this),t=c1(t),Dh(t);let{blockLen:r,state:n}=this,s=t.length;for(let o=0;o<s;){let l=Math.min(r-this.pos,s-o);for(let u=0;u<l;u++)n[this.pos++]^=t[o++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:r,pos:n,blockLen:s}=this;t[n]^=r,(r&128)!==0&&n===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){L2(this,!1),Dh(t),this.finish();let r=this.state,{blockLen:n}=this;for(let s=0,o=t.length;s<o;){this.posOut>=n&&this.keccak();let l=Math.min(n-this.posOut,o-s);t.set(r.subarray(this.posOut,this.posOut+l),s),this.posOut+=l,s+=l}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return N2(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(_3(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,xx(this.state)}_cloneInto(t){let{blockLen:r,suffix:n,outputLen:s,rounds:o,enableXOF:l}=this;return t||(t=new zl(r,n,s,l,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=n,t.outputLen=s,t.enableXOF=l,t.destroyed=this.destroyed,t}},g(zl,"Keccak"),zl),Wo=g((e,t,r)=>M3(()=>new Cx(t,e,r)),"gen"),$G=Wo(6,144,224/8),kG=Wo(6,136,256/8),EG=Wo(6,104,384/8),_G=Wo(6,72,512/8),TG=Wo(1,144,224/8),AG=Wo(1,136,256/8),RG=Wo(1,104,384/8),OG=Wo(1,72,512/8),z3=g((e,t,r)=>N3((n={})=>new Cx(t,e,n.dkLen===void 0?r:n.dkLen,!0)),"genShake"),MG=z3(31,168,128/8),NG=z3(31,136,256/8),LG=Object.freeze({__proto__:null,Keccak:Cx,keccakP:wx,keccak_224:TG,keccak_256:AG,keccak_384:RG,keccak_512:OG,sha3_224:$G,sha3_256:kG,sha3_384:EG,sha3_512:_G,shake128:MG,shake256:NG}),PG=z5(LG),Lk;function j3(){if(Lk)return Ci;Lk=1;let{sha3_512:e}=PG,t=24,r=32,n=g((x=4,C=Math.random)=>{let $="";for(;$.length<x;)$=$+Math.floor(C()*36).toString(36);return $},"createEntropy");function s(x){let C=BigInt(8),$=BigInt(0);for(let _ of x.values()){let M=BigInt(_);$=($<<C)+M}return $}g(s,"bufToBigInt");let o=g((x="")=>s(e(x)).toString(36).slice(1),"hash"),l=Array.from({length:26},(x,C)=>String.fromCharCode(C+97)),u=g(x=>l[Math.floor(x()*l.length)],"randomLetter"),d=g(({globalObj:x=typeof xk<"u"?xk:typeof window<"u"?window:{},random:C=Math.random}={})=>{let $=Object.keys(x).toString(),_=$.length?$+n(r,C):n(r,C);return o(_).substring(0,r)},"createFingerprint"),h=g(x=>()=>x++,"createCounter"),p=476782367,m=g(({random:x=Math.random,counter:C=h(Math.floor(x()*p)),length:$=t,fingerprint:_=d({random:x})}={})=>g(function(){let M=u(x),T=Date.now().toString(36),R=C().toString(36),L=n($,x),j=`${T+L+R+_}`;return`${M+o(j).substring(1,$)}`},"cuid2"),"init"),b=m(),S=g((x,{minLength:C=2,maxLength:$=r}={})=>{let _=x.length,M=/^[a-z][0-9a-z]+$/;try{if(typeof x=="string"&&_>=C&&_<=$&&M.test(x))return!0}finally{}return!1},"isCuid");return Ci.getConstants=()=>({defaultLength:t,bigLength:r}),Ci.init=m,Ci.createId=b,Ci.bufToBigInt=s,Ci.createCounter=h,Ci.createFingerprint=d,Ci.isCuid=S,Ci}g(j3,"requireSrc");var Pk;function B3(){if(Pk)return Lc;Pk=1;let{createId:e,init:t,getConstants:r,isCuid:n}=j3();return Lc.createId=e,Lc.init=t,Lc.getConstants=r,Lc.isCuid=n,Lc}g(B3,"requireCuid2");var jo=B3(),Uu,IG=(Uu=class extends TransformStream{constructor(){let t=new TextDecoder("utf-8",{ignoreBOM:!1}),r,n;super({start(){r="",n={data:""}},transform(s,o){let l=t.decode(s);r+=l;let u;for(;(u=/\r\n|\n|\r/.exec(r))!==null;){let d=r.substring(0,u.index);if(r=r.substring(u.index+u[0].length),d.length===0)o.enqueue(n),n={data:""};else if(!d.startsWith(":")){let h=/:/.exec(d);if(!h){n[d]="";continue}let p=d.substring(0,h.index),m=d.substring(h.index+1);n[p]=m==null?void 0:m.replace(/^\u0020/,"")}}}})}},g(Uu,"EventsStreamTransformer"),Uu);function P2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}g(P2,"ownKeys");function I2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P2(Object(r),!0).forEach(function(n){U3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}g(I2,"_objectSpread");function U3(e,t,r){return t=H3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}g(U3,"_defineProperty");function H3(e){var t=Z3(e,"string");return typeof t=="symbol"?t:String(t)}g(H3,"_toPropertyKey");function Z3(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}g(Z3,"_toPrimitive");var Ik=$x({});function $x(e){return t.withOptions=r=>$x(I2(I2({},e),r)),t;function t(r,...n){let s=typeof r=="string"?[r]:r.raw,{escapeSpecialCharacters:o=Array.isArray(r)}=e,l="";for(let h=0;h<s.length;h++){let p=s[h];o&&(p=p.replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`").replace(/\\\$/g,"$").replace(/\\\{/g,"{")),l+=p,h<n.length&&(l+=n[h])}let u=l.split(`
`),d=null;for(let h of u){let p=h.match(/^(\s+)\S+/);if(p){let m=p[1].length;d?d=Math.min(d,m):d=m}}if(d!==null){let h=d;l=u.map(p=>p[0]===" "||p[0]==="	"?p.slice(h):p).join(`
`)}return l=l.trim(),o&&(l=l.replace(/\\n/g,`
`)),l}}g($x,"createDedent");var Hu,kx=(Hu=class{constructor(t){Object.defineProperty(this,"baseURL",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"masterAPIKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"writeAPIKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"readAPIKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.baseURL=t.baseURL,this.masterAPIKey=t.masterAPIKey,this.writeAPIKey=t.writeAPIKey,this.readAPIKey=t.readAPIKey}async request(t){let r=new URL(t.url,this.baseURL),n=new Headers;n.append("Content-Type","application/json");let s={method:t.method,headers:n};t.body&&t.method!=="GET"&&(s.body=JSON.stringify(t.body)),t.body&&t.method==="GET"&&(r.search=new URLSearchParams(t.body).toString());let o=this.getAPIKey(t.securityLevel);switch(!0){case(t.method!=="GET"&&t.securityLevel!=="read-query"):n.append("Authorization",`Bearer ${o}`);break;case(t.method==="GET"&&t.securityLevel==="master"):n.append("Authorization",`Bearer ${o}`);break;case(t.method==="GET"||t.securityLevel==="read-query"):r.searchParams.append("api-key",o);break}let l=await fetch(r.toString(),s);if(!l.ok)throw new Error(Ik(`
                Request to "${t.url}" failed with status ${l.status}:
                ${await l.text()}
            `));return l.json()}async requestStream(t){var l;let r=new URL(t.url,this.baseURL),n=new Headers;n.append("Content-Type","application/json");let s=this.getAPIKey(t.securityLevel);r.searchParams.append("api-key",s);let o=await fetch(r.toString(),{body:JSON.stringify(t.body),headers:n,method:t.method});if(!o.ok)throw new Error(Ik(`
                Request to "${t.url}" failed with status ${o.status}:
                ${await o.text()}
            `));if(o.body===null)throw new Error(`Response body is null for "${t.url}"`);return(l=o.body)==null?void 0:l.pipeThrough(new IG)}getAPIKey(t){switch(t){case"master":if(!this.masterAPIKey)throw new Error("Master API key is required for this operation");return this.masterAPIKey;case"write":if(!this.writeAPIKey)throw new Error("Write API key is required for this operation");return this.writeAPIKey;case"read":case"read-query":if(!this.readAPIKey)throw new Error("Read API key is required for this operation");return this.readAPIKey}}},g(Hu,"OramaInterface"),Hu);function Ei(e,t=!0){try{return JSON.parse(e)}catch(r){return t||console.warn("Recovered from failed JSON parsing with error:",r),e}}g(Ei,"safeJSONParse");var DG={PERFORM_ORAMA_SEARCH:"PERFORM_ORAMA_SEARCH",OPTIMIZE_QUERY:"OPTIMIZE_QUERY",GENERATE_QUERIES:"GENERATE_QUERIES",ACTION_PLAN:"ACTION_PLAN",ASK_FOLLOWUP:"ASK_FOLLOWUP",GIVE_REPLY:"GIVE_REPLY",GET_SEGMENT:"GET_SEGMENT",GET_TRIGGER:"GET_TRIGGER",SELECT_SEGMENT_PROBABILITY:"SELECT_SEGMENT_PROBABILITY",SELECT_TRIGGER_PROBABILITY:"SELECT_TRIGGER_PROBABILITY"},zG=Object.values(DG),jG={},Dk=V3(globalThis,jG);function V3(e,t){return new Proxy(e,{get(r,n,s){return n in t?t[n]:e[n]},set(r,n,s){return n in t&&delete t[n],e[n]=s,!0},deleteProperty(r,n){let s=!1;return n in t&&(delete t[n],s=!0),n in e&&(delete e[n],s=!0),s},ownKeys(r){let n=Reflect.ownKeys(e),s=Reflect.ownKeys(t),o=new Set(s);return[...n.filter(l=>!o.has(l)),...s]},defineProperty(r,n,s){return n in t&&delete t[n],Reflect.defineProperty(e,n,s),!0},getOwnPropertyDescriptor(r,n){return n in t?Reflect.getOwnPropertyDescriptor(t,n):Reflect.getOwnPropertyDescriptor(e,n)},has(r,n){return n in t||n in e}})}g(V3,"createMergeProxy");var BG=Symbol("Let zodToJsonSchema decide on which parser to use"),UG={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},HG=g(e=>({...UG,name:e}),"getDefaultOptions"),ZG=g(e=>{let t=HG(e),r=[...t.basePath,t.definitionPath,t.name];return{...t,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,s])=>[s._def,{def:s._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}},"getRefs");function Ex(e,t,r,n){n!=null&&n.errorMessages&&r&&(e.errorMessage={...e.errorMessage,[t]:r})}g(Ex,"addErrorMessage");function gr(e,t,r,n,s){e[t]=r,Ex(e,t,n,s)}g(gr,"setResponseValueAndErrors");var Qs={},Pc={},$s={},Fm={},zk={},jk;function hp(){return jk||(jk=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getParsedType=e.ZodParsedType=e.objectUtil=e.util=void 0;var t;(function(s){s.assertEqual=d=>d;function o(d){}g(o,"assertIs"),s.assertIs=o;function l(d){throw new Error}g(l,"assertNever"),s.assertNever=l,s.arrayToEnum=d=>{let h={};for(let p of d)h[p]=p;return h},s.getValidEnumValues=d=>{let h=s.objectKeys(d).filter(m=>typeof d[d[m]]!="number"),p={};for(let m of h)p[m]=d[m];return s.objectValues(p)},s.objectValues=d=>s.objectKeys(d).map(function(h){return d[h]}),s.objectKeys=typeof Object.keys=="function"?d=>Object.keys(d):d=>{let h=[];for(let p in d)Object.prototype.hasOwnProperty.call(d,p)&&h.push(p);return h},s.find=(d,h)=>{for(let p of d)if(h(p))return p},s.isInteger=typeof Number.isInteger=="function"?d=>Number.isInteger(d):d=>typeof d=="number"&&isFinite(d)&&Math.floor(d)===d;function u(d,h=" | "){return d.map(p=>typeof p=="string"?`'${p}'`:p).join(h)}g(u,"joinValues"),s.joinValues=u,s.jsonStringifyReplacer=(d,h)=>typeof h=="bigint"?h.toString():h})(t||(e.util=t={}));var r;(function(s){s.mergeShapes=(o,l)=>({...o,...l})})(r||(e.objectUtil=r={})),e.ZodParsedType=t.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);let n=g(s=>{switch(typeof s){case"undefined":return e.ZodParsedType.undefined;case"string":return e.ZodParsedType.string;case"number":return isNaN(s)?e.ZodParsedType.nan:e.ZodParsedType.number;case"boolean":return e.ZodParsedType.boolean;case"function":return e.ZodParsedType.function;case"bigint":return e.ZodParsedType.bigint;case"symbol":return e.ZodParsedType.symbol;case"object":return Array.isArray(s)?e.ZodParsedType.array:s===null?e.ZodParsedType.null:s.then&&typeof s.then=="function"&&s.catch&&typeof s.catch=="function"?e.ZodParsedType.promise:typeof Map<"u"&&s instanceof Map?e.ZodParsedType.map:typeof Set<"u"&&s instanceof Set?e.ZodParsedType.set:typeof Date<"u"&&s instanceof Date?e.ZodParsedType.date:e.ZodParsedType.object;default:return e.ZodParsedType.unknown}},"getParsedType");e.getParsedType=n}(zk)),zk}g(hp,"requireUtil");var $i={},Bk;function u1(){var n;if(Bk)return $i;Bk=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.ZodError=$i.quotelessJson=$i.ZodIssueCode=void 0;let e=hp();$i.ZodIssueCode=e.util.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"]);let t=g(s=>JSON.stringify(s,null,2).replace(/"([^"]+)":/g,"$1:"),"quotelessJson");$i.quotelessJson=t;let r=(n=class extends Error{get errors(){return this.issues}constructor(o){super(),this.issues=[],this.addIssue=u=>{this.issues=[...this.issues,u]},this.addIssues=(u=[])=>{this.issues=[...this.issues,...u]};let l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=o}format(o){let l=o||function(h){return h.message},u={_errors:[]},d=g(h=>{for(let p of h.issues)if(p.code==="invalid_union")p.unionErrors.map(d);else if(p.code==="invalid_return_type")d(p.returnTypeError);else if(p.code==="invalid_arguments")d(p.argumentsError);else if(p.path.length===0)u._errors.push(l(p));else{let m=u,b=0;for(;b<p.path.length;){let S=p.path[b];b===p.path.length-1?(m[S]=m[S]||{_errors:[]},m[S]._errors.push(l(p))):m[S]=m[S]||{_errors:[]},m=m[S],b++}}},"processError");return d(this),u}static assert(o){if(!(o instanceof n))throw new Error(`Not a ZodError: ${o}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,e.util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(o=l=>l.message){let l={},u=[];for(let d of this.issues)d.path.length>0?(l[d.path[0]]=l[d.path[0]]||[],l[d.path[0]].push(o(d))):u.push(o(d));return{formErrors:u,fieldErrors:l}}get formErrors(){return this.flatten()}},g(n,"ZodError"),n);return $i.ZodError=r,r.create=s=>new r(s),$i}g(u1,"requireZodError");var Uk;function _x(){if(Uk)return Fm;Uk=1,Object.defineProperty(Fm,"__esModule",{value:!0});let e=hp(),t=u1(),r=g((n,s)=>{let o;switch(n.code){case t.ZodIssueCode.invalid_type:n.received===e.ZodParsedType.undefined?o="Required":o=`Expected ${n.expected}, received ${n.received}`;break;case t.ZodIssueCode.invalid_literal:o=`Invalid literal value, expected ${JSON.stringify(n.expected,e.util.jsonStringifyReplacer)}`;break;case t.ZodIssueCode.unrecognized_keys:o=`Unrecognized key(s) in object: ${e.util.joinValues(n.keys,", ")}`;break;case t.ZodIssueCode.invalid_union:o="Invalid input";break;case t.ZodIssueCode.invalid_union_discriminator:o=`Invalid discriminator value. Expected ${e.util.joinValues(n.options)}`;break;case t.ZodIssueCode.invalid_enum_value:o=`Invalid enum value. Expected ${e.util.joinValues(n.options)}, received '${n.received}'`;break;case t.ZodIssueCode.invalid_arguments:o="Invalid function arguments";break;case t.ZodIssueCode.invalid_return_type:o="Invalid function return type";break;case t.ZodIssueCode.invalid_date:o="Invalid date";break;case t.ZodIssueCode.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(o=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(o=`${o} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?o=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?o=`Invalid input: must end with "${n.validation.endsWith}"`:e.util.assertNever(n.validation):n.validation!=="regex"?o=`Invalid ${n.validation}`:o="Invalid";break;case t.ZodIssueCode.too_small:n.type==="array"?o=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?o=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?o=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?o=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:o="Invalid input";break;case t.ZodIssueCode.too_big:n.type==="array"?o=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?o=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?o=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?o=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?o=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:o="Invalid input";break;case t.ZodIssueCode.custom:o="Invalid input";break;case t.ZodIssueCode.invalid_intersection_types:o="Intersection results could not be merged";break;case t.ZodIssueCode.not_multiple_of:o=`Number must be a multiple of ${n.multipleOf}`;break;case t.ZodIssueCode.not_finite:o="Number must be finite";break;default:o=s.defaultError,e.util.assertNever(n)}return{message:o}},"errorMap");return Fm.default=r,Fm}g(_x,"requireEn");var Hk;function d1(){if(Hk)return $s;Hk=1;var e=$s&&$s.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty($s,"__esModule",{value:!0}),$s.getErrorMap=$s.setErrorMap=$s.defaultErrorMap=void 0;let t=e(_x());$s.defaultErrorMap=t.default;let r=t.default;function n(o){r=o}g(n,"setErrorMap"),$s.setErrorMap=n;function s(){return r}return g(s,"getErrorMap"),$s.getErrorMap=s,$s}g(d1,"requireErrors");var qm={},Zk;function Tx(){return Zk||(Zk=1,function(e){var S;var t=qm&&qm.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(e,"__esModule",{value:!0}),e.isAsync=e.isValid=e.isDirty=e.isAborted=e.OK=e.DIRTY=e.INVALID=e.ParseStatus=e.addIssueToContext=e.EMPTY_PATH=e.makeIssue=void 0;let r=d1(),n=t(_x()),s=g(x=>{let{data:C,path:$,errorMaps:_,issueData:M}=x,T=[...$,...M.path||[]],R={...M,path:T};if(M.message!==void 0)return{...M,path:T,message:M.message};let L="",j=_.filter(O=>!!O).slice().reverse();for(let O of j)L=O(R,{data:C,defaultError:L}).message;return{...M,path:T,message:L}},"makeIssue");e.makeIssue=s,e.EMPTY_PATH=[];function o(x,C){let $=(0,r.getErrorMap)(),_=(0,e.makeIssue)({issueData:C,data:x.data,path:x.path,errorMaps:[x.common.contextualErrorMap,x.schemaErrorMap,$,$===n.default?void 0:n.default].filter(M=>!!M)});x.common.issues.push(_)}g(o,"addIssueToContext"),e.addIssueToContext=o;let l=(S=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(C,$){let _=[];for(let M of $){if(M.status==="aborted")return e.INVALID;M.status==="dirty"&&C.dirty(),_.push(M.value)}return{status:C.value,value:_}}static async mergeObjectAsync(C,$){let _=[];for(let M of $){let T=await M.key,R=await M.value;_.push({key:T,value:R})}return S.mergeObjectSync(C,_)}static mergeObjectSync(C,$){let _={};for(let M of $){let{key:T,value:R}=M;if(T.status==="aborted"||R.status==="aborted")return e.INVALID;T.status==="dirty"&&C.dirty(),R.status==="dirty"&&C.dirty(),T.value!=="__proto__"&&(typeof R.value<"u"||M.alwaysSet)&&(_[T.value]=R.value)}return{status:C.value,value:_}}},g(S,"ParseStatus"),S);e.ParseStatus=l,e.INVALID=Object.freeze({status:"aborted"});let u=g(x=>({status:"dirty",value:x}),"DIRTY");e.DIRTY=u;let d=g(x=>({status:"valid",value:x}),"OK");e.OK=d;let h=g(x=>x.status==="aborted","isAborted");e.isAborted=h;let p=g(x=>x.status==="dirty","isDirty");e.isDirty=p;let m=g(x=>x.status==="valid","isValid");e.isValid=m;let b=g(x=>typeof Promise<"u"&&x instanceof Promise,"isAsync");e.isAsync=b}(qm)),qm}g(Tx,"requireParseUtil");var Vk={},Fk;function F3(){return Fk||(Fk=1,Object.defineProperty(Vk,"__esModule",{value:!0})),Vk}g(F3,"requireTypeAliases");var se={},ah={},qk;function q3(){if(qk)return ah;qk=1,Object.defineProperty(ah,"__esModule",{value:!0}),ah.errorUtil=void 0;var e;return function(t){t.errToObj=r=>typeof r=="string"?{message:r}:r||{},t.toString=r=>typeof r=="string"?r:r==null?void 0:r.message}(e||(ah.errorUtil=e={})),ah}g(q3,"requireErrorUtil");var Gk;function G3(){var ft,br,Fr,Wr,Bn,Pr,cn,Yr,wa,La,Pa,Yn,Ka,Wa,un,Jr,yn,Ya,Ca,st,Ia,vr,Rt,Tn,dn,Un,ua,Ie,Fe,it,mt,Tr,en,Hn,Qa,vs,Hs,Ss;if(Gk)return se;Gk=1;var e=se&&se.__classPrivateFieldGet||function(G,w,E,I){if(E==="a"&&!I)throw new TypeError("Private accessor was defined without a getter");if(typeof w=="function"?G!==w||!I:!w.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return E==="m"?I:E==="a"?I.call(G):I?I.value:w.get(G)},t=se&&se.__classPrivateFieldSet||function(G,w,E,I,U){if(I==="m")throw new TypeError("Private method is not writable");if(I==="a"&&!U)throw new TypeError("Private accessor was defined without a setter");if(typeof w=="function"?G!==w||!U:!w.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return I==="a"?U.call(G,E):U?U.value=E:w.set(G,E),E},r,n;Object.defineProperty(se,"__esModule",{value:!0}),se.boolean=se.bigint=se.array=se.any=se.coerce=se.ZodFirstPartyTypeKind=se.late=se.ZodSchema=se.Schema=se.custom=se.ZodReadonly=se.ZodPipeline=se.ZodBranded=se.BRAND=se.ZodNaN=se.ZodCatch=se.ZodDefault=se.ZodNullable=se.ZodOptional=se.ZodTransformer=se.ZodEffects=se.ZodPromise=se.ZodNativeEnum=se.ZodEnum=se.ZodLiteral=se.ZodLazy=se.ZodFunction=se.ZodSet=se.ZodMap=se.ZodRecord=se.ZodTuple=se.ZodIntersection=se.ZodDiscriminatedUnion=se.ZodUnion=se.ZodObject=se.ZodArray=se.ZodVoid=se.ZodNever=se.ZodUnknown=se.ZodAny=se.ZodNull=se.ZodUndefined=se.ZodSymbol=se.ZodDate=se.ZodBoolean=se.ZodBigInt=se.ZodNumber=se.ZodString=se.datetimeRegex=se.ZodType=void 0,se.NEVER=se.void=se.unknown=se.union=se.undefined=se.tuple=se.transformer=se.symbol=se.string=se.strictObject=se.set=se.record=se.promise=se.preprocess=se.pipeline=se.ostring=se.optional=se.onumber=se.oboolean=se.object=se.number=se.nullable=se.null=se.never=se.nativeEnum=se.nan=se.map=se.literal=se.lazy=se.intersection=se.instanceof=se.function=se.enum=se.effect=se.discriminatedUnion=se.date=void 0;let s=d1(),o=q3(),l=Tx(),u=hp(),d=u1(),h=(ft=class{constructor(w,E,I,U){this._cachedPath=[],this.parent=w,this.data=E,this._path=I,this._key=U}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},g(ft,"ParseInputLazyPath"),ft),p=g((G,w)=>{if((0,l.isValid)(w))return{success:!0,data:w.value};if(!G.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let E=new d.ZodError(G.common.issues);return this._error=E,this._error}}},"handleResult");function m(G){if(!G)return{};let{errorMap:w,invalid_type_error:E,required_error:I,description:U}=G;if(w&&(E||I))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return w?{errorMap:w,description:U}:{errorMap:g((ke,Re)=>{var xe,De;let{message:We}=G;return ke.code==="invalid_enum_value"?{message:We??Re.defaultError}:typeof Re.data>"u"?{message:(xe=We??I)!==null&&xe!==void 0?xe:Re.defaultError}:ke.code!=="invalid_type"?{message:Re.defaultError}:{message:(De=We??E)!==null&&De!==void 0?De:Re.defaultError}},"customMap"),description:U}}g(m,"processCreateParams");let b=(br=class{get description(){return this._def.description}_getType(w){return(0,u.getParsedType)(w.data)}_getOrReturnCtx(w,E){return E||{common:w.parent.common,data:w.data,parsedType:(0,u.getParsedType)(w.data),schemaErrorMap:this._def.errorMap,path:w.path,parent:w.parent}}_processInputParams(w){return{status:new l.ParseStatus,ctx:{common:w.parent.common,data:w.data,parsedType:(0,u.getParsedType)(w.data),schemaErrorMap:this._def.errorMap,path:w.path,parent:w.parent}}}_parseSync(w){let E=this._parse(w);if((0,l.isAsync)(E))throw new Error("Synchronous parse encountered promise.");return E}_parseAsync(w){let E=this._parse(w);return Promise.resolve(E)}parse(w,E){let I=this.safeParse(w,E);if(I.success)return I.data;throw I.error}safeParse(w,E){var I;let U={common:{issues:[],async:(I=E==null?void 0:E.async)!==null&&I!==void 0?I:!1,contextualErrorMap:E==null?void 0:E.errorMap},path:(E==null?void 0:E.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:w,parsedType:(0,u.getParsedType)(w)},ke=this._parseSync({data:w,path:U.path,parent:U});return p(U,ke)}"~validate"(w){var E,I;let U={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:w,parsedType:(0,u.getParsedType)(w)};if(!this["~standard"].async)try{let ke=this._parseSync({data:w,path:[],parent:U});return(0,l.isValid)(ke)?{value:ke.value}:{issues:U.common.issues}}catch(ke){!((I=(E=ke==null?void 0:ke.message)===null||E===void 0?void 0:E.toLowerCase())===null||I===void 0)&&I.includes("encountered")&&(this["~standard"].async=!0),U.common={issues:[],async:!0}}return this._parseAsync({data:w,path:[],parent:U}).then(ke=>(0,l.isValid)(ke)?{value:ke.value}:{issues:U.common.issues})}async parseAsync(w,E){let I=await this.safeParseAsync(w,E);if(I.success)return I.data;throw I.error}async safeParseAsync(w,E){let I={common:{issues:[],contextualErrorMap:E==null?void 0:E.errorMap,async:!0},path:(E==null?void 0:E.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:w,parsedType:(0,u.getParsedType)(w)},U=this._parse({data:w,path:I.path,parent:I}),ke=await((0,l.isAsync)(U)?U:Promise.resolve(U));return p(I,ke)}refine(w,E){let I=g(U=>typeof E=="string"||typeof E>"u"?{message:E}:typeof E=="function"?E(U):E,"getIssueProperties");return this._refinement((U,ke)=>{let Re=w(U),xe=g(()=>ke.addIssue({code:d.ZodIssueCode.custom,...I(U)}),"setError");return typeof Promise<"u"&&Re instanceof Promise?Re.then(De=>De?!0:(xe(),!1)):Re?!0:(xe(),!1)})}refinement(w,E){return this._refinement((I,U)=>w(I)?!0:(U.addIssue(typeof E=="function"?E(I,U):E),!1))}_refinement(w){return new $t({schema:this,typeName:Qe.ZodEffects,effect:{type:"refinement",refinement:w}})}superRefine(w){return this._refinement(w)}constructor(w){this.spa=this.safeParseAsync,this._def=w,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:g(E=>this["~validate"](E),"validate")}}optional(){return St.create(this,this._def)}nullable(){return pr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ze.create(this)}promise(){return or.create(this,this._def)}or(w){return nt.create([this,w],this._def)}and(w){return vt.create(this,w,this._def)}transform(w){return new $t({...m(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:w}})}default(w){let E=typeof w=="function"?w:()=>w;return new wn({...m(this._def),innerType:this,defaultValue:E,typeName:Qe.ZodDefault})}brand(){return new nr({typeName:Qe.ZodBranded,type:this,...m(this._def)})}catch(w){let E=typeof w=="function"?w:()=>w;return new Ze({...m(this._def),innerType:this,catchValue:E,typeName:Qe.ZodCatch})}describe(w){let E=this.constructor;return new E({...this._def,description:w})}pipe(w){return mn.create(this,w)}readonly(){return zn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},g(br,"ZodType"),br);se.ZodType=b,se.Schema=b,se.ZodSchema=b;let S=/^c[^\s-]{8,}$/i,x=/^[0-9a-z]+$/,C=/^[0-9A-HJKMNP-TV-Z]{26}$/i,$=/^[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,_=/^[a-z0-9_-]{21}$/i,M=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,T=/^[-+]?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)?)??$/,R=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,L="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",j,O=/^(?:(?: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])$/,N=/^(?:(?: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])$/,z=/^(([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]))$/,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]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,H=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,q=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,V="((\\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])))",W=new RegExp(`^${V}$`);function ae(G){let w="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return G.precision?w=`${w}\\.\\d{${G.precision}}`:G.precision==null&&(w=`${w}(\\.\\d+)?`),w}g(ae,"timeRegexSource");function Z(G){return new RegExp(`^${ae(G)}$`)}g(Z,"timeRegex");function ne(G){let w=`${V}T${ae(G)}`,E=[];return E.push(G.local?"Z?":"Z"),G.offset&&E.push("([+-]\\d{2}:?\\d{2})"),w=`${w}(${E.join("|")})`,new RegExp(`^${w}$`)}g(ne,"datetimeRegex"),se.datetimeRegex=ne;function ee(G,w){return!!((w==="v4"||!w)&&O.test(G)||(w==="v6"||!w)&&z.test(G))}g(ee,"isValidIP");function re(G,w){if(!M.test(G))return!1;try{let[E]=G.split("."),I=E.replace(/-/g,"+").replace(/_/g,"/").padEnd(E.length+(4-E.length%4)%4,"="),U=JSON.parse(atob(I));return!(typeof U!="object"||U===null||!U.typ||!U.alg||w&&U.alg!==w)}catch{return!1}}g(re,"isValidJWT");function F(G,w){return!!((w==="v4"||!w)&&N.test(G)||(w==="v6"||!w)&&k.test(G))}g(F,"isValidCidr");let J=(Fr=class extends b{_parse(w){if(this._def.coerce&&(w.data=String(w.data)),this._getType(w)!==u.ZodParsedType.string){let U=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(U,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.string,received:U.parsedType}),l.INVALID}let E=new l.ParseStatus,I;for(let U of this._def.checks)if(U.kind==="min")w.data.length<U.value&&(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.too_small,minimum:U.value,type:"string",inclusive:!0,exact:!1,message:U.message}),E.dirty());else if(U.kind==="max")w.data.length>U.value&&(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.too_big,maximum:U.value,type:"string",inclusive:!0,exact:!1,message:U.message}),E.dirty());else if(U.kind==="length"){let ke=w.data.length>U.value,Re=w.data.length<U.value;(ke||Re)&&(I=this._getOrReturnCtx(w,I),ke?(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.too_big,maximum:U.value,type:"string",inclusive:!0,exact:!0,message:U.message}):Re&&(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.too_small,minimum:U.value,type:"string",inclusive:!0,exact:!0,message:U.message}),E.dirty())}else if(U.kind==="email")R.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"email",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty());else if(U.kind==="emoji")j||(j=new RegExp(L,"u")),j.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"emoji",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty());else if(U.kind==="uuid")$.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"uuid",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty());else if(U.kind==="nanoid")_.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"nanoid",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty());else if(U.kind==="cuid")S.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"cuid",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty());else if(U.kind==="cuid2")x.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"cuid2",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty());else if(U.kind==="ulid")C.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"ulid",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty());else if(U.kind==="url")try{new URL(w.data)}catch{I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"url",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty()}else U.kind==="regex"?(U.regex.lastIndex=0,U.regex.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"regex",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty())):U.kind==="trim"?w.data=w.data.trim():U.kind==="includes"?w.data.includes(U.value,U.position)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.invalid_string,validation:{includes:U.value,position:U.position},message:U.message}),E.dirty()):U.kind==="toLowerCase"?w.data=w.data.toLowerCase():U.kind==="toUpperCase"?w.data=w.data.toUpperCase():U.kind==="startsWith"?w.data.startsWith(U.value)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.invalid_string,validation:{startsWith:U.value},message:U.message}),E.dirty()):U.kind==="endsWith"?w.data.endsWith(U.value)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.invalid_string,validation:{endsWith:U.value},message:U.message}),E.dirty()):U.kind==="datetime"?ne(U).test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.invalid_string,validation:"datetime",message:U.message}),E.dirty()):U.kind==="date"?W.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.invalid_string,validation:"date",message:U.message}),E.dirty()):U.kind==="time"?Z(U).test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.invalid_string,validation:"time",message:U.message}),E.dirty()):U.kind==="duration"?T.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"duration",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty()):U.kind==="ip"?ee(w.data,U.version)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"ip",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty()):U.kind==="jwt"?re(w.data,U.alg)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"jwt",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty()):U.kind==="cidr"?F(w.data,U.version)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"cidr",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty()):U.kind==="base64"?H.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"base64",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty()):U.kind==="base64url"?q.test(w.data)||(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{validation:"base64url",code:d.ZodIssueCode.invalid_string,message:U.message}),E.dirty()):u.util.assertNever(U);return{status:E.value,value:w.data}}_regex(w,E,I){return this.refinement(U=>w.test(U),{validation:E,code:d.ZodIssueCode.invalid_string,...o.errorUtil.errToObj(I)})}_addCheck(w){return new Fr({...this._def,checks:[...this._def.checks,w]})}email(w){return this._addCheck({kind:"email",...o.errorUtil.errToObj(w)})}url(w){return this._addCheck({kind:"url",...o.errorUtil.errToObj(w)})}emoji(w){return this._addCheck({kind:"emoji",...o.errorUtil.errToObj(w)})}uuid(w){return this._addCheck({kind:"uuid",...o.errorUtil.errToObj(w)})}nanoid(w){return this._addCheck({kind:"nanoid",...o.errorUtil.errToObj(w)})}cuid(w){return this._addCheck({kind:"cuid",...o.errorUtil.errToObj(w)})}cuid2(w){return this._addCheck({kind:"cuid2",...o.errorUtil.errToObj(w)})}ulid(w){return this._addCheck({kind:"ulid",...o.errorUtil.errToObj(w)})}base64(w){return this._addCheck({kind:"base64",...o.errorUtil.errToObj(w)})}base64url(w){return this._addCheck({kind:"base64url",...o.errorUtil.errToObj(w)})}jwt(w){return this._addCheck({kind:"jwt",...o.errorUtil.errToObj(w)})}ip(w){return this._addCheck({kind:"ip",...o.errorUtil.errToObj(w)})}cidr(w){return this._addCheck({kind:"cidr",...o.errorUtil.errToObj(w)})}datetime(w){var E,I;return typeof w=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:w}):this._addCheck({kind:"datetime",precision:typeof(w==null?void 0:w.precision)>"u"?null:w==null?void 0:w.precision,offset:(E=w==null?void 0:w.offset)!==null&&E!==void 0?E:!1,local:(I=w==null?void 0:w.local)!==null&&I!==void 0?I:!1,...o.errorUtil.errToObj(w==null?void 0:w.message)})}date(w){return this._addCheck({kind:"date",message:w})}time(w){return typeof w=="string"?this._addCheck({kind:"time",precision:null,message:w}):this._addCheck({kind:"time",precision:typeof(w==null?void 0:w.precision)>"u"?null:w==null?void 0:w.precision,...o.errorUtil.errToObj(w==null?void 0:w.message)})}duration(w){return this._addCheck({kind:"duration",...o.errorUtil.errToObj(w)})}regex(w,E){return this._addCheck({kind:"regex",regex:w,...o.errorUtil.errToObj(E)})}includes(w,E){return this._addCheck({kind:"includes",value:w,position:E==null?void 0:E.position,...o.errorUtil.errToObj(E==null?void 0:E.message)})}startsWith(w,E){return this._addCheck({kind:"startsWith",value:w,...o.errorUtil.errToObj(E)})}endsWith(w,E){return this._addCheck({kind:"endsWith",value:w,...o.errorUtil.errToObj(E)})}min(w,E){return this._addCheck({kind:"min",value:w,...o.errorUtil.errToObj(E)})}max(w,E){return this._addCheck({kind:"max",value:w,...o.errorUtil.errToObj(E)})}length(w,E){return this._addCheck({kind:"length",value:w,...o.errorUtil.errToObj(E)})}nonempty(w){return this.min(1,o.errorUtil.errToObj(w))}trim(){return new Fr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Fr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Fr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(w=>w.kind==="datetime")}get isDate(){return!!this._def.checks.find(w=>w.kind==="date")}get isTime(){return!!this._def.checks.find(w=>w.kind==="time")}get isDuration(){return!!this._def.checks.find(w=>w.kind==="duration")}get isEmail(){return!!this._def.checks.find(w=>w.kind==="email")}get isURL(){return!!this._def.checks.find(w=>w.kind==="url")}get isEmoji(){return!!this._def.checks.find(w=>w.kind==="emoji")}get isUUID(){return!!this._def.checks.find(w=>w.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(w=>w.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(w=>w.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(w=>w.kind==="cuid2")}get isULID(){return!!this._def.checks.find(w=>w.kind==="ulid")}get isIP(){return!!this._def.checks.find(w=>w.kind==="ip")}get isCIDR(){return!!this._def.checks.find(w=>w.kind==="cidr")}get isBase64(){return!!this._def.checks.find(w=>w.kind==="base64")}get isBase64url(){return!!this._def.checks.find(w=>w.kind==="base64url")}get minLength(){let w=null;for(let E of this._def.checks)E.kind==="min"&&(w===null||E.value>w)&&(w=E.value);return w}get maxLength(){let w=null;for(let E of this._def.checks)E.kind==="max"&&(w===null||E.value<w)&&(w=E.value);return w}},g(Fr,"ZodString"),Fr);se.ZodString=J,J.create=G=>{var w;return new J({checks:[],typeName:Qe.ZodString,coerce:(w=G==null?void 0:G.coerce)!==null&&w!==void 0?w:!1,...m(G)})};function fe(G,w){let E=(G.toString().split(".")[1]||"").length,I=(w.toString().split(".")[1]||"").length,U=E>I?E:I,ke=parseInt(G.toFixed(U).replace(".","")),Re=parseInt(w.toFixed(U).replace(".",""));return ke%Re/Math.pow(10,U)}g(fe,"floatSafeRemainder");let ce=(Wr=class extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(w){if(this._def.coerce&&(w.data=Number(w.data)),this._getType(w)!==u.ZodParsedType.number){let U=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(U,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.number,received:U.parsedType}),l.INVALID}let E,I=new l.ParseStatus;for(let U of this._def.checks)U.kind==="int"?u.util.isInteger(w.data)||(E=this._getOrReturnCtx(w,E),(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:U.message}),I.dirty()):U.kind==="min"?(U.inclusive?w.data<U.value:w.data<=U.value)&&(E=this._getOrReturnCtx(w,E),(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.too_small,minimum:U.value,type:"number",inclusive:U.inclusive,exact:!1,message:U.message}),I.dirty()):U.kind==="max"?(U.inclusive?w.data>U.value:w.data>=U.value)&&(E=this._getOrReturnCtx(w,E),(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.too_big,maximum:U.value,type:"number",inclusive:U.inclusive,exact:!1,message:U.message}),I.dirty()):U.kind==="multipleOf"?fe(w.data,U.value)!==0&&(E=this._getOrReturnCtx(w,E),(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.not_multiple_of,multipleOf:U.value,message:U.message}),I.dirty()):U.kind==="finite"?Number.isFinite(w.data)||(E=this._getOrReturnCtx(w,E),(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.not_finite,message:U.message}),I.dirty()):u.util.assertNever(U);return{status:I.value,value:w.data}}gte(w,E){return this.setLimit("min",w,!0,o.errorUtil.toString(E))}gt(w,E){return this.setLimit("min",w,!1,o.errorUtil.toString(E))}lte(w,E){return this.setLimit("max",w,!0,o.errorUtil.toString(E))}lt(w,E){return this.setLimit("max",w,!1,o.errorUtil.toString(E))}setLimit(w,E,I,U){return new Wr({...this._def,checks:[...this._def.checks,{kind:w,value:E,inclusive:I,message:o.errorUtil.toString(U)}]})}_addCheck(w){return new Wr({...this._def,checks:[...this._def.checks,w]})}int(w){return this._addCheck({kind:"int",message:o.errorUtil.toString(w)})}positive(w){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.errorUtil.toString(w)})}negative(w){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.errorUtil.toString(w)})}nonpositive(w){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.errorUtil.toString(w)})}nonnegative(w){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.errorUtil.toString(w)})}multipleOf(w,E){return this._addCheck({kind:"multipleOf",value:w,message:o.errorUtil.toString(E)})}finite(w){return this._addCheck({kind:"finite",message:o.errorUtil.toString(w)})}safe(w){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.errorUtil.toString(w)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.errorUtil.toString(w)})}get minValue(){let w=null;for(let E of this._def.checks)E.kind==="min"&&(w===null||E.value>w)&&(w=E.value);return w}get maxValue(){let w=null;for(let E of this._def.checks)E.kind==="max"&&(w===null||E.value<w)&&(w=E.value);return w}get isInt(){return!!this._def.checks.find(w=>w.kind==="int"||w.kind==="multipleOf"&&u.util.isInteger(w.value))}get isFinite(){let w=null,E=null;for(let I of this._def.checks){if(I.kind==="finite"||I.kind==="int"||I.kind==="multipleOf")return!0;I.kind==="min"?(E===null||I.value>E)&&(E=I.value):I.kind==="max"&&(w===null||I.value<w)&&(w=I.value)}return Number.isFinite(E)&&Number.isFinite(w)}},g(Wr,"ZodNumber"),Wr);se.ZodNumber=ce,ce.create=G=>new ce({checks:[],typeName:Qe.ZodNumber,coerce:(G==null?void 0:G.coerce)||!1,...m(G)});let Ce=(Bn=class extends b{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(w){if(this._def.coerce)try{w.data=BigInt(w.data)}catch{return this._getInvalidInput(w)}if(this._getType(w)!==u.ZodParsedType.bigint)return this._getInvalidInput(w);let E,I=new l.ParseStatus;for(let U of this._def.checks)U.kind==="min"?(U.inclusive?w.data<U.value:w.data<=U.value)&&(E=this._getOrReturnCtx(w,E),(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.too_small,type:"bigint",minimum:U.value,inclusive:U.inclusive,message:U.message}),I.dirty()):U.kind==="max"?(U.inclusive?w.data>U.value:w.data>=U.value)&&(E=this._getOrReturnCtx(w,E),(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.too_big,type:"bigint",maximum:U.value,inclusive:U.inclusive,message:U.message}),I.dirty()):U.kind==="multipleOf"?w.data%U.value!==BigInt(0)&&(E=this._getOrReturnCtx(w,E),(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.not_multiple_of,multipleOf:U.value,message:U.message}),I.dirty()):u.util.assertNever(U);return{status:I.value,value:w.data}}_getInvalidInput(w){let E=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.bigint,received:E.parsedType}),l.INVALID}gte(w,E){return this.setLimit("min",w,!0,o.errorUtil.toString(E))}gt(w,E){return this.setLimit("min",w,!1,o.errorUtil.toString(E))}lte(w,E){return this.setLimit("max",w,!0,o.errorUtil.toString(E))}lt(w,E){return this.setLimit("max",w,!1,o.errorUtil.toString(E))}setLimit(w,E,I,U){return new Bn({...this._def,checks:[...this._def.checks,{kind:w,value:E,inclusive:I,message:o.errorUtil.toString(U)}]})}_addCheck(w){return new Bn({...this._def,checks:[...this._def.checks,w]})}positive(w){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.errorUtil.toString(w)})}negative(w){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.errorUtil.toString(w)})}nonpositive(w){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.errorUtil.toString(w)})}nonnegative(w){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.errorUtil.toString(w)})}multipleOf(w,E){return this._addCheck({kind:"multipleOf",value:w,message:o.errorUtil.toString(E)})}get minValue(){let w=null;for(let E of this._def.checks)E.kind==="min"&&(w===null||E.value>w)&&(w=E.value);return w}get maxValue(){let w=null;for(let E of this._def.checks)E.kind==="max"&&(w===null||E.value<w)&&(w=E.value);return w}},g(Bn,"ZodBigInt"),Bn);se.ZodBigInt=Ce,Ce.create=G=>{var w;return new Ce({checks:[],typeName:Qe.ZodBigInt,coerce:(w=G==null?void 0:G.coerce)!==null&&w!==void 0?w:!1,...m(G)})};let Se=(Pr=class extends b{_parse(w){if(this._def.coerce&&(w.data=!!w.data),this._getType(w)!==u.ZodParsedType.boolean){let E=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.boolean,received:E.parsedType}),l.INVALID}return(0,l.OK)(w.data)}},g(Pr,"ZodBoolean"),Pr);se.ZodBoolean=Se,Se.create=G=>new Se({typeName:Qe.ZodBoolean,coerce:(G==null?void 0:G.coerce)||!1,...m(G)});let me=(cn=class extends b{_parse(w){if(this._def.coerce&&(w.data=new Date(w.data)),this._getType(w)!==u.ZodParsedType.date){let U=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(U,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.date,received:U.parsedType}),l.INVALID}if(isNaN(w.data.getTime())){let U=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(U,{code:d.ZodIssueCode.invalid_date}),l.INVALID}let E=new l.ParseStatus,I;for(let U of this._def.checks)U.kind==="min"?w.data.getTime()<U.value&&(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.too_small,message:U.message,inclusive:!0,exact:!1,minimum:U.value,type:"date"}),E.dirty()):U.kind==="max"?w.data.getTime()>U.value&&(I=this._getOrReturnCtx(w,I),(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.too_big,message:U.message,inclusive:!0,exact:!1,maximum:U.value,type:"date"}),E.dirty()):u.util.assertNever(U);return{status:E.value,value:new Date(w.data.getTime())}}_addCheck(w){return new cn({...this._def,checks:[...this._def.checks,w]})}min(w,E){return this._addCheck({kind:"min",value:w.getTime(),message:o.errorUtil.toString(E)})}max(w,E){return this._addCheck({kind:"max",value:w.getTime(),message:o.errorUtil.toString(E)})}get minDate(){let w=null;for(let E of this._def.checks)E.kind==="min"&&(w===null||E.value>w)&&(w=E.value);return w!=null?new Date(w):null}get maxDate(){let w=null;for(let E of this._def.checks)E.kind==="max"&&(w===null||E.value<w)&&(w=E.value);return w!=null?new Date(w):null}},g(cn,"ZodDate"),cn);se.ZodDate=me,me.create=G=>new me({checks:[],coerce:(G==null?void 0:G.coerce)||!1,typeName:Qe.ZodDate,...m(G)});let He=(Yr=class extends b{_parse(w){if(this._getType(w)!==u.ZodParsedType.symbol){let E=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.symbol,received:E.parsedType}),l.INVALID}return(0,l.OK)(w.data)}},g(Yr,"ZodSymbol"),Yr);se.ZodSymbol=He,He.create=G=>new He({typeName:Qe.ZodSymbol,...m(G)});let Oe=(wa=class extends b{_parse(w){if(this._getType(w)!==u.ZodParsedType.undefined){let E=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.undefined,received:E.parsedType}),l.INVALID}return(0,l.OK)(w.data)}},g(wa,"ZodUndefined"),wa);se.ZodUndefined=Oe,Oe.create=G=>new Oe({typeName:Qe.ZodUndefined,...m(G)});let Pe=(La=class extends b{_parse(w){if(this._getType(w)!==u.ZodParsedType.null){let E=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.null,received:E.parsedType}),l.INVALID}return(0,l.OK)(w.data)}},g(La,"ZodNull"),La);se.ZodNull=Pe,Pe.create=G=>new Pe({typeName:Qe.ZodNull,...m(G)});let Ne=(Pa=class extends b{constructor(){super(...arguments),this._any=!0}_parse(w){return(0,l.OK)(w.data)}},g(Pa,"ZodAny"),Pa);se.ZodAny=Ne,Ne.create=G=>new Ne({typeName:Qe.ZodAny,...m(G)});let qe=(Yn=class extends b{constructor(){super(...arguments),this._unknown=!0}_parse(w){return(0,l.OK)(w.data)}},g(Yn,"ZodUnknown"),Yn);se.ZodUnknown=qe,qe.create=G=>new qe({typeName:Qe.ZodUnknown,...m(G)});let Ve=(Ka=class extends b{_parse(w){let E=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.never,received:E.parsedType}),l.INVALID}},g(Ka,"ZodNever"),Ka);se.ZodNever=Ve,Ve.create=G=>new Ve({typeName:Qe.ZodNever,...m(G)});let ht=(Wa=class extends b{_parse(w){if(this._getType(w)!==u.ZodParsedType.undefined){let E=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.void,received:E.parsedType}),l.INVALID}return(0,l.OK)(w.data)}},g(Wa,"ZodVoid"),Wa);se.ZodVoid=ht,ht.create=G=>new ht({typeName:Qe.ZodVoid,...m(G)});let ze=(un=class extends b{_parse(w){let{ctx:E,status:I}=this._processInputParams(w),U=this._def;if(E.parsedType!==u.ZodParsedType.array)return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.array,received:E.parsedType}),l.INVALID;if(U.exactLength!==null){let Re=E.data.length>U.exactLength.value,xe=E.data.length<U.exactLength.value;(Re||xe)&&((0,l.addIssueToContext)(E,{code:Re?d.ZodIssueCode.too_big:d.ZodIssueCode.too_small,minimum:xe?U.exactLength.value:void 0,maximum:Re?U.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:U.exactLength.message}),I.dirty())}if(U.minLength!==null&&E.data.length<U.minLength.value&&((0,l.addIssueToContext)(E,{code:d.ZodIssueCode.too_small,minimum:U.minLength.value,type:"array",inclusive:!0,exact:!1,message:U.minLength.message}),I.dirty()),U.maxLength!==null&&E.data.length>U.maxLength.value&&((0,l.addIssueToContext)(E,{code:d.ZodIssueCode.too_big,maximum:U.maxLength.value,type:"array",inclusive:!0,exact:!1,message:U.maxLength.message}),I.dirty()),E.common.async)return Promise.all([...E.data].map((Re,xe)=>U.type._parseAsync(new h(E,Re,E.path,xe)))).then(Re=>l.ParseStatus.mergeArray(I,Re));let ke=[...E.data].map((Re,xe)=>U.type._parseSync(new h(E,Re,E.path,xe)));return l.ParseStatus.mergeArray(I,ke)}get element(){return this._def.type}min(w,E){return new un({...this._def,minLength:{value:w,message:o.errorUtil.toString(E)}})}max(w,E){return new un({...this._def,maxLength:{value:w,message:o.errorUtil.toString(E)}})}length(w,E){return new un({...this._def,exactLength:{value:w,message:o.errorUtil.toString(E)}})}nonempty(w){return this.min(1,w)}},g(un,"ZodArray"),un);se.ZodArray=ze,ze.create=(G,w)=>new ze({type:G,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...m(w)});function rt(G){if(G instanceof ct){let w={};for(let E in G.shape){let I=G.shape[E];w[E]=St.create(rt(I))}return new ct({...G._def,shape:g(()=>w,"shape")})}else return G instanceof ze?new ze({...G._def,type:rt(G.element)}):G instanceof St?St.create(rt(G.unwrap())):G instanceof pr?pr.create(rt(G.unwrap())):G instanceof _e?_e.create(G.items.map(w=>rt(w))):G}g(rt,"deepPartialify");let ct=(Jr=class extends b{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let w=this._def.shape(),E=u.util.objectKeys(w);return this._cached={shape:w,keys:E}}_parse(w){if(this._getType(w)!==u.ZodParsedType.object){let De=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(De,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:De.parsedType}),l.INVALID}let{status:E,ctx:I}=this._processInputParams(w),{shape:U,keys:ke}=this._getCached(),Re=[];if(!(this._def.catchall instanceof Ve&&this._def.unknownKeys==="strip"))for(let De in I.data)ke.includes(De)||Re.push(De);let xe=[];for(let De of ke){let We=U[De],qt=I.data[De];xe.push({key:{status:"valid",value:De},value:We._parse(new h(I,qt,I.path,De)),alwaysSet:De in I.data})}if(this._def.catchall instanceof Ve){let De=this._def.unknownKeys;if(De==="passthrough")for(let We of Re)xe.push({key:{status:"valid",value:We},value:{status:"valid",value:I.data[We]}});else if(De==="strict")Re.length>0&&((0,l.addIssueToContext)(I,{code:d.ZodIssueCode.unrecognized_keys,keys:Re}),E.dirty());else if(De!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let De=this._def.catchall;for(let We of Re){let qt=I.data[We];xe.push({key:{status:"valid",value:We},value:De._parse(new h(I,qt,I.path,We)),alwaysSet:We in I.data})}}return I.common.async?Promise.resolve().then(async()=>{let De=[];for(let We of xe){let qt=await We.key,$a=await We.value;De.push({key:qt,value:$a,alwaysSet:We.alwaysSet})}return De}).then(De=>l.ParseStatus.mergeObjectSync(E,De)):l.ParseStatus.mergeObjectSync(E,xe)}get shape(){return this._def.shape()}strict(w){return new Jr({...this._def,unknownKeys:"strict",...w!==void 0?{errorMap:g((E,I)=>{var U,ke,Re,xe;let De=(Re=(ke=(U=this._def).errorMap)===null||ke===void 0?void 0:ke.call(U,E,I).message)!==null&&Re!==void 0?Re:I.defaultError;return E.code==="unrecognized_keys"?{message:(xe=o.errorUtil.errToObj(w).message)!==null&&xe!==void 0?xe:De}:{message:De}},"errorMap")}:{}})}strip(){return new Jr({...this._def,unknownKeys:"strip"})}passthrough(){return new Jr({...this._def,unknownKeys:"passthrough"})}extend(w){return new Jr({...this._def,shape:g(()=>({...this._def.shape(),...w}),"shape")})}merge(w){return new Jr({unknownKeys:w._def.unknownKeys,catchall:w._def.catchall,shape:g(()=>({...this._def.shape(),...w._def.shape()}),"shape"),typeName:Qe.ZodObject})}setKey(w,E){return this.augment({[w]:E})}catchall(w){return new Jr({...this._def,catchall:w})}pick(w){let E={};return u.util.objectKeys(w).forEach(I=>{w[I]&&this.shape[I]&&(E[I]=this.shape[I])}),new Jr({...this._def,shape:g(()=>E,"shape")})}omit(w){let E={};return u.util.objectKeys(this.shape).forEach(I=>{w[I]||(E[I]=this.shape[I])}),new Jr({...this._def,shape:g(()=>E,"shape")})}deepPartial(){return rt(this)}partial(w){let E={};return u.util.objectKeys(this.shape).forEach(I=>{let U=this.shape[I];w&&!w[I]?E[I]=U:E[I]=U.optional()}),new Jr({...this._def,shape:g(()=>E,"shape")})}required(w){let E={};return u.util.objectKeys(this.shape).forEach(I=>{if(w&&!w[I])E[I]=this.shape[I];else{let U=this.shape[I];for(;U instanceof St;)U=U._def.innerType;E[I]=U}}),new Jr({...this._def,shape:g(()=>E,"shape")})}keyof(){return Xt(u.util.objectKeys(this.shape))}},g(Jr,"ZodObject"),Jr);se.ZodObject=ct,ct.create=(G,w)=>new ct({shape:g(()=>G,"shape"),unknownKeys:"strip",catchall:Ve.create(),typeName:Qe.ZodObject,...m(w)}),ct.strictCreate=(G,w)=>new ct({shape:g(()=>G,"shape"),unknownKeys:"strict",catchall:Ve.create(),typeName:Qe.ZodObject,...m(w)}),ct.lazycreate=(G,w)=>new ct({shape:G,unknownKeys:"strip",catchall:Ve.create(),typeName:Qe.ZodObject,...m(w)});let nt=(yn=class extends b{_parse(w){let{ctx:E}=this._processInputParams(w),I=this._def.options;function U(ke){for(let xe of ke)if(xe.result.status==="valid")return xe.result;for(let xe of ke)if(xe.result.status==="dirty")return E.common.issues.push(...xe.ctx.common.issues),xe.result;let Re=ke.map(xe=>new d.ZodError(xe.ctx.common.issues));return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_union,unionErrors:Re}),l.INVALID}if(g(U,"handleResults"),E.common.async)return Promise.all(I.map(async ke=>{let Re={...E,common:{...E.common,issues:[]},parent:null};return{result:await ke._parseAsync({data:E.data,path:E.path,parent:Re}),ctx:Re}})).then(U);{let ke,Re=[];for(let De of I){let We={...E,common:{...E.common,issues:[]},parent:null},qt=De._parseSync({data:E.data,path:E.path,parent:We});if(qt.status==="valid")return qt;qt.status==="dirty"&&!ke&&(ke={result:qt,ctx:We}),We.common.issues.length&&Re.push(We.common.issues)}if(ke)return E.common.issues.push(...ke.ctx.common.issues),ke.result;let xe=Re.map(De=>new d.ZodError(De));return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_union,unionErrors:xe}),l.INVALID}}get options(){return this._def.options}},g(yn,"ZodUnion"),yn);se.ZodUnion=nt,nt.create=(G,w)=>new nt({options:G,typeName:Qe.ZodUnion,...m(w)});let bt=g(G=>G instanceof It?bt(G.schema):G instanceof $t?bt(G.innerType()):G instanceof hr?[G.value]:G instanceof Dt?G.options:G instanceof Ye?u.util.objectValues(G.enum):G instanceof wn?bt(G._def.innerType):G instanceof Oe?[void 0]:G instanceof Pe?[null]:G instanceof St?[void 0,...bt(G.unwrap())]:G instanceof pr?[null,...bt(G.unwrap())]:G instanceof nr||G instanceof zn?bt(G.unwrap()):G instanceof Ze?bt(G._def.innerType):[],"getDiscriminator"),Tt=(Ya=class extends b{_parse(w){let{ctx:E}=this._processInputParams(w);if(E.parsedType!==u.ZodParsedType.object)return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:E.parsedType}),l.INVALID;let I=this.discriminator,U=E.data[I],ke=this.optionsMap.get(U);return ke?E.common.async?ke._parseAsync({data:E.data,path:E.path,parent:E}):ke._parseSync({data:E.data,path:E.path,parent:E}):((0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[I]}),l.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(w,E,I){let U=new Map;for(let ke of E){let Re=bt(ke.shape[w]);if(!Re.length)throw new Error(`A discriminator value for key \`${w}\` could not be extracted from all schema options`);for(let xe of Re){if(U.has(xe))throw new Error(`Discriminator property ${String(w)} has duplicate value ${String(xe)}`);U.set(xe,ke)}}return new Ya({typeName:Qe.ZodDiscriminatedUnion,discriminator:w,options:E,optionsMap:U,...m(I)})}},g(Ya,"ZodDiscriminatedUnion"),Ya);se.ZodDiscriminatedUnion=Tt;function Kt(G,w){let E=(0,u.getParsedType)(G),I=(0,u.getParsedType)(w);if(G===w)return{valid:!0,data:G};if(E===u.ZodParsedType.object&&I===u.ZodParsedType.object){let U=u.util.objectKeys(w),ke=u.util.objectKeys(G).filter(xe=>U.indexOf(xe)!==-1),Re={...G,...w};for(let xe of ke){let De=Kt(G[xe],w[xe]);if(!De.valid)return{valid:!1};Re[xe]=De.data}return{valid:!0,data:Re}}else if(E===u.ZodParsedType.array&&I===u.ZodParsedType.array){if(G.length!==w.length)return{valid:!1};let U=[];for(let ke=0;ke<G.length;ke++){let Re=G[ke],xe=w[ke],De=Kt(Re,xe);if(!De.valid)return{valid:!1};U.push(De.data)}return{valid:!0,data:U}}else return E===u.ZodParsedType.date&&I===u.ZodParsedType.date&&+G==+w?{valid:!0,data:G}:{valid:!1}}g(Kt,"mergeValues");let vt=(Ca=class extends b{_parse(w){let{status:E,ctx:I}=this._processInputParams(w),U=g((ke,Re)=>{if((0,l.isAborted)(ke)||(0,l.isAborted)(Re))return l.INVALID;let xe=Kt(ke.value,Re.value);return xe.valid?(((0,l.isDirty)(ke)||(0,l.isDirty)(Re))&&E.dirty(),{status:E.value,value:xe.data}):((0,l.addIssueToContext)(I,{code:d.ZodIssueCode.invalid_intersection_types}),l.INVALID)},"handleParsed");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(([ke,Re])=>U(ke,Re)):U(this._def.left._parseSync({data:I.data,path:I.path,parent:I}),this._def.right._parseSync({data:I.data,path:I.path,parent:I}))}},g(Ca,"ZodIntersection"),Ca);se.ZodIntersection=vt,vt.create=(G,w,E)=>new vt({left:G,right:w,typeName:Qe.ZodIntersection,...m(E)});let _e=(st=class extends b{_parse(w){let{status:E,ctx:I}=this._processInputParams(w);if(I.parsedType!==u.ZodParsedType.array)return(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.array,received:I.parsedType}),l.INVALID;if(I.data.length<this._def.items.length)return(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.INVALID;!this._def.rest&&I.data.length>this._def.items.length&&((0,l.addIssueToContext)(I,{code:d.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),E.dirty());let U=[...I.data].map((ke,Re)=>{let xe=this._def.items[Re]||this._def.rest;return xe?xe._parse(new h(I,ke,I.path,Re)):null}).filter(ke=>!!ke);return I.common.async?Promise.all(U).then(ke=>l.ParseStatus.mergeArray(E,ke)):l.ParseStatus.mergeArray(E,U)}get items(){return this._def.items}rest(w){return new st({...this._def,rest:w})}},g(st,"ZodTuple"),st);se.ZodTuple=_e,_e.create=(G,w)=>{if(!Array.isArray(G))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _e({items:G,typeName:Qe.ZodTuple,rest:null,...m(w)})};let pt=(Ia=class extends b{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(w){let{status:E,ctx:I}=this._processInputParams(w);if(I.parsedType!==u.ZodParsedType.object)return(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:I.parsedType}),l.INVALID;let U=[],ke=this._def.keyType,Re=this._def.valueType;for(let xe in I.data)U.push({key:ke._parse(new h(I,xe,I.path,xe)),value:Re._parse(new h(I,I.data[xe],I.path,xe)),alwaysSet:xe in I.data});return I.common.async?l.ParseStatus.mergeObjectAsync(E,U):l.ParseStatus.mergeObjectSync(E,U)}get element(){return this._def.valueType}static create(w,E,I){return E instanceof b?new Ia({keyType:w,valueType:E,typeName:Qe.ZodRecord,...m(I)}):new Ia({keyType:J.create(),valueType:w,typeName:Qe.ZodRecord,...m(E)})}},g(Ia,"ZodRecord"),Ia);se.ZodRecord=pt;let Pt=(vr=class extends b{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(w){let{status:E,ctx:I}=this._processInputParams(w);if(I.parsedType!==u.ZodParsedType.map)return(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.map,received:I.parsedType}),l.INVALID;let U=this._def.keyType,ke=this._def.valueType,Re=[...I.data.entries()].map(([xe,De],We)=>({key:U._parse(new h(I,xe,I.path,[We,"key"])),value:ke._parse(new h(I,De,I.path,[We,"value"]))}));if(I.common.async){let xe=new Map;return Promise.resolve().then(async()=>{for(let De of Re){let We=await De.key,qt=await De.value;if(We.status==="aborted"||qt.status==="aborted")return l.INVALID;(We.status==="dirty"||qt.status==="dirty")&&E.dirty(),xe.set(We.value,qt.value)}return{status:E.value,value:xe}})}else{let xe=new Map;for(let De of Re){let We=De.key,qt=De.value;if(We.status==="aborted"||qt.status==="aborted")return l.INVALID;(We.status==="dirty"||qt.status==="dirty")&&E.dirty(),xe.set(We.value,qt.value)}return{status:E.value,value:xe}}}},g(vr,"ZodMap"),vr);se.ZodMap=Pt,Pt.create=(G,w,E)=>new Pt({valueType:w,keyType:G,typeName:Qe.ZodMap,...m(E)});let Qt=(Rt=class extends b{_parse(w){let{status:E,ctx:I}=this._processInputParams(w);if(I.parsedType!==u.ZodParsedType.set)return(0,l.addIssueToContext)(I,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.set,received:I.parsedType}),l.INVALID;let U=this._def;U.minSize!==null&&I.data.size<U.minSize.value&&((0,l.addIssueToContext)(I,{code:d.ZodIssueCode.too_small,minimum:U.minSize.value,type:"set",inclusive:!0,exact:!1,message:U.minSize.message}),E.dirty()),U.maxSize!==null&&I.data.size>U.maxSize.value&&((0,l.addIssueToContext)(I,{code:d.ZodIssueCode.too_big,maximum:U.maxSize.value,type:"set",inclusive:!0,exact:!1,message:U.maxSize.message}),E.dirty());let ke=this._def.valueType;function Re(De){let We=new Set;for(let qt of De){if(qt.status==="aborted")return l.INVALID;qt.status==="dirty"&&E.dirty(),We.add(qt.value)}return{status:E.value,value:We}}g(Re,"finalizeSet");let xe=[...I.data.values()].map((De,We)=>ke._parse(new h(I,De,I.path,We)));return I.common.async?Promise.all(xe).then(De=>Re(De)):Re(xe)}min(w,E){return new Rt({...this._def,minSize:{value:w,message:o.errorUtil.toString(E)}})}max(w,E){return new Rt({...this._def,maxSize:{value:w,message:o.errorUtil.toString(E)}})}size(w,E){return this.min(w,E).max(w,E)}nonempty(w){return this.min(1,w)}},g(Rt,"ZodSet"),Rt);se.ZodSet=Qt,Qt.create=(G,w)=>new Qt({valueType:G,minSize:null,maxSize:null,typeName:Qe.ZodSet,...m(w)});let ir=(Tn=class extends b{constructor(){super(...arguments),this.validate=this.implement}_parse(w){let{ctx:E}=this._processInputParams(w);if(E.parsedType!==u.ZodParsedType.function)return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.function,received:E.parsedType}),l.INVALID;function I(xe,De){return(0,l.makeIssue)({data:xe,path:E.path,errorMaps:[E.common.contextualErrorMap,E.schemaErrorMap,(0,s.getErrorMap)(),s.defaultErrorMap].filter(We=>!!We),issueData:{code:d.ZodIssueCode.invalid_arguments,argumentsError:De}})}g(I,"makeArgsIssue");function U(xe,De){return(0,l.makeIssue)({data:xe,path:E.path,errorMaps:[E.common.contextualErrorMap,E.schemaErrorMap,(0,s.getErrorMap)(),s.defaultErrorMap].filter(We=>!!We),issueData:{code:d.ZodIssueCode.invalid_return_type,returnTypeError:De}})}g(U,"makeReturnsIssue");let ke={errorMap:E.common.contextualErrorMap},Re=E.data;if(this._def.returns instanceof or){let xe=this;return(0,l.OK)(async function(...De){let We=new d.ZodError([]),qt=await xe._def.args.parseAsync(De,ke).catch(Qo=>{throw We.addIssue(I(De,Qo)),We}),$a=await Reflect.apply(Re,this,qt);return await xe._def.returns._def.type.parseAsync($a,ke).catch(Qo=>{throw We.addIssue(U($a,Qo)),We})})}else{let xe=this;return(0,l.OK)(function(...De){let We=xe._def.args.safeParse(De,ke);if(!We.success)throw new d.ZodError([I(De,We.error)]);let qt=Reflect.apply(Re,this,We.data),$a=xe._def.returns.safeParse(qt,ke);if(!$a.success)throw new d.ZodError([U(qt,$a.error)]);return $a.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...w){return new Tn({...this._def,args:_e.create(w).rest(qe.create())})}returns(w){return new Tn({...this._def,returns:w})}implement(w){return this.parse(w)}strictImplement(w){return this.parse(w)}static create(w,E,I){return new Tn({args:w||_e.create([]).rest(qe.create()),returns:E||qe.create(),typeName:Qe.ZodFunction,...m(I)})}},g(Tn,"ZodFunction"),Tn);se.ZodFunction=ir;let It=(dn=class extends b{get schema(){return this._def.getter()}_parse(w){let{ctx:E}=this._processInputParams(w);return this._def.getter()._parse({data:E.data,path:E.path,parent:E})}},g(dn,"ZodLazy"),dn);se.ZodLazy=It,It.create=(G,w)=>new It({getter:G,typeName:Qe.ZodLazy,...m(w)});let hr=(Un=class extends b{_parse(w){if(w.data!==this._def.value){let E=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(E,{received:E.data,code:d.ZodIssueCode.invalid_literal,expected:this._def.value}),l.INVALID}return{status:"valid",value:w.data}}get value(){return this._def.value}},g(Un,"ZodLiteral"),Un);se.ZodLiteral=hr,hr.create=(G,w)=>new hr({value:G,typeName:Qe.ZodLiteral,...m(w)});function Xt(G,w){return new Dt({values:G,typeName:Qe.ZodEnum,...m(w)})}g(Xt,"createZodEnum");let Dt=(ua=class extends b{constructor(){super(...arguments),r.set(this,void 0)}_parse(w){if(typeof w.data!="string"){let E=this._getOrReturnCtx(w),I=this._def.values;return(0,l.addIssueToContext)(E,{expected:u.util.joinValues(I),received:E.parsedType,code:d.ZodIssueCode.invalid_type}),l.INVALID}if(e(this,r,"f")||t(this,r,new Set(this._def.values),"f"),!e(this,r,"f").has(w.data)){let E=this._getOrReturnCtx(w),I=this._def.values;return(0,l.addIssueToContext)(E,{received:E.data,code:d.ZodIssueCode.invalid_enum_value,options:I}),l.INVALID}return(0,l.OK)(w.data)}get options(){return this._def.values}get enum(){let w={};for(let E of this._def.values)w[E]=E;return w}get Values(){let w={};for(let E of this._def.values)w[E]=E;return w}get Enum(){let w={};for(let E of this._def.values)w[E]=E;return w}extract(w,E=this._def){return ua.create(w,{...this._def,...E})}exclude(w,E=this._def){return ua.create(this.options.filter(I=>!w.includes(I)),{...this._def,...E})}},g(ua,"ZodEnum"),ua);se.ZodEnum=Dt,r=new WeakMap,Dt.create=Xt;let Ye=(Ie=class extends b{constructor(){super(...arguments),n.set(this,void 0)}_parse(w){let E=u.util.getValidEnumValues(this._def.values),I=this._getOrReturnCtx(w);if(I.parsedType!==u.ZodParsedType.string&&I.parsedType!==u.ZodParsedType.number){let U=u.util.objectValues(E);return(0,l.addIssueToContext)(I,{expected:u.util.joinValues(U),received:I.parsedType,code:d.ZodIssueCode.invalid_type}),l.INVALID}if(e(this,n,"f")||t(this,n,new Set(u.util.getValidEnumValues(this._def.values)),"f"),!e(this,n,"f").has(w.data)){let U=u.util.objectValues(E);return(0,l.addIssueToContext)(I,{received:I.data,code:d.ZodIssueCode.invalid_enum_value,options:U}),l.INVALID}return(0,l.OK)(w.data)}get enum(){return this._def.values}},g(Ie,"ZodNativeEnum"),Ie);se.ZodNativeEnum=Ye,n=new WeakMap,Ye.create=(G,w)=>new Ye({values:G,typeName:Qe.ZodNativeEnum,...m(w)});let or=(Fe=class extends b{unwrap(){return this._def.type}_parse(w){let{ctx:E}=this._processInputParams(w);if(E.parsedType!==u.ZodParsedType.promise&&E.common.async===!1)return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.promise,received:E.parsedType}),l.INVALID;let I=E.parsedType===u.ZodParsedType.promise?E.data:Promise.resolve(E.data);return(0,l.OK)(I.then(U=>this._def.type.parseAsync(U,{path:E.path,errorMap:E.common.contextualErrorMap})))}},g(Fe,"ZodPromise"),Fe);se.ZodPromise=or,or.create=(G,w)=>new or({type:G,typeName:Qe.ZodPromise,...m(w)});let $t=(it=class extends b{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(w){let{status:E,ctx:I}=this._processInputParams(w),U=this._def.effect||null,ke={addIssue:g(Re=>{(0,l.addIssueToContext)(I,Re),Re.fatal?E.abort():E.dirty()},"addIssue"),get path(){return I.path}};if(ke.addIssue=ke.addIssue.bind(ke),U.type==="preprocess"){let Re=U.transform(I.data,ke);if(I.common.async)return Promise.resolve(Re).then(async xe=>{if(E.value==="aborted")return l.INVALID;let De=await this._def.schema._parseAsync({data:xe,path:I.path,parent:I});return De.status==="aborted"?l.INVALID:De.status==="dirty"||E.value==="dirty"?(0,l.DIRTY)(De.value):De});{if(E.value==="aborted")return l.INVALID;let xe=this._def.schema._parseSync({data:Re,path:I.path,parent:I});return xe.status==="aborted"?l.INVALID:xe.status==="dirty"||E.value==="dirty"?(0,l.DIRTY)(xe.value):xe}}if(U.type==="refinement"){let Re=g(xe=>{let De=U.refinement(xe,ke);if(I.common.async)return Promise.resolve(De);if(De instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return xe},"executeRefinement");if(I.common.async===!1){let xe=this._def.schema._parseSync({data:I.data,path:I.path,parent:I});return xe.status==="aborted"?l.INVALID:(xe.status==="dirty"&&E.dirty(),Re(xe.value),{status:E.value,value:xe.value})}else return this._def.schema._parseAsync({data:I.data,path:I.path,parent:I}).then(xe=>xe.status==="aborted"?l.INVALID:(xe.status==="dirty"&&E.dirty(),Re(xe.value).then(()=>({status:E.value,value:xe.value}))))}if(U.type==="transform")if(I.common.async===!1){let Re=this._def.schema._parseSync({data:I.data,path:I.path,parent:I});if(!(0,l.isValid)(Re))return Re;let xe=U.transform(Re.value,ke);if(xe instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:E.value,value:xe}}else return this._def.schema._parseAsync({data:I.data,path:I.path,parent:I}).then(Re=>(0,l.isValid)(Re)?Promise.resolve(U.transform(Re.value,ke)).then(xe=>({status:E.value,value:xe})):Re);u.util.assertNever(U)}},g(it,"ZodEffects"),it);se.ZodEffects=$t,se.ZodTransformer=$t,$t.create=(G,w,E)=>new $t({schema:G,typeName:Qe.ZodEffects,effect:w,...m(E)}),$t.createWithPreprocess=(G,w,E)=>new $t({schema:w,effect:{type:"preprocess",transform:G},typeName:Qe.ZodEffects,...m(E)});let St=(mt=class extends b{_parse(w){return this._getType(w)===u.ZodParsedType.undefined?(0,l.OK)(void 0):this._def.innerType._parse(w)}unwrap(){return this._def.innerType}},g(mt,"ZodOptional"),mt);se.ZodOptional=St,St.create=(G,w)=>new St({innerType:G,typeName:Qe.ZodOptional,...m(w)});let pr=(Tr=class extends b{_parse(w){return this._getType(w)===u.ZodParsedType.null?(0,l.OK)(null):this._def.innerType._parse(w)}unwrap(){return this._def.innerType}},g(Tr,"ZodNullable"),Tr);se.ZodNullable=pr,pr.create=(G,w)=>new pr({innerType:G,typeName:Qe.ZodNullable,...m(w)});let wn=(en=class extends b{_parse(w){let{ctx:E}=this._processInputParams(w),I=E.data;return E.parsedType===u.ZodParsedType.undefined&&(I=this._def.defaultValue()),this._def.innerType._parse({data:I,path:E.path,parent:E})}removeDefault(){return this._def.innerType}},g(en,"ZodDefault"),en);se.ZodDefault=wn,wn.create=(G,w)=>new wn({innerType:G,typeName:Qe.ZodDefault,defaultValue:typeof w.default=="function"?w.default:()=>w.default,...m(w)});let Ze=(Hn=class extends b{_parse(w){let{ctx:E}=this._processInputParams(w),I={...E,common:{...E.common,issues:[]}},U=this._def.innerType._parse({data:I.data,path:I.path,parent:{...I}});return(0,l.isAsync)(U)?U.then(ke=>({status:"valid",value:ke.status==="valid"?ke.value:this._def.catchValue({get error(){return new d.ZodError(I.common.issues)},input:I.data})})):{status:"valid",value:U.status==="valid"?U.value:this._def.catchValue({get error(){return new d.ZodError(I.common.issues)},input:I.data})}}removeCatch(){return this._def.innerType}},g(Hn,"ZodCatch"),Hn);se.ZodCatch=Ze,Ze.create=(G,w)=>new Ze({innerType:G,typeName:Qe.ZodCatch,catchValue:typeof w.catch=="function"?w.catch:()=>w.catch,...m(w)});let zt=(Qa=class extends b{_parse(w){if(this._getType(w)!==u.ZodParsedType.nan){let E=this._getOrReturnCtx(w);return(0,l.addIssueToContext)(E,{code:d.ZodIssueCode.invalid_type,expected:u.ZodParsedType.nan,received:E.parsedType}),l.INVALID}return{status:"valid",value:w.data}}},g(Qa,"ZodNaN"),Qa);se.ZodNaN=zt,zt.create=G=>new zt({typeName:Qe.ZodNaN,...m(G)}),se.BRAND=Symbol("zod_brand");let nr=(vs=class extends b{_parse(w){let{ctx:E}=this._processInputParams(w),I=E.data;return this._def.type._parse({data:I,path:E.path,parent:E})}unwrap(){return this._def.type}},g(vs,"ZodBranded"),vs);se.ZodBranded=nr;let mn=(Hs=class extends b{_parse(w){let{status:E,ctx:I}=this._processInputParams(w);if(I.common.async)return g(async()=>{let U=await this._def.in._parseAsync({data:I.data,path:I.path,parent:I});return U.status==="aborted"?l.INVALID:U.status==="dirty"?(E.dirty(),(0,l.DIRTY)(U.value)):this._def.out._parseAsync({data:U.value,path:I.path,parent:I})},"handleAsync")();{let U=this._def.in._parseSync({data:I.data,path:I.path,parent:I});return U.status==="aborted"?l.INVALID:U.status==="dirty"?(E.dirty(),{status:"dirty",value:U.value}):this._def.out._parseSync({data:U.value,path:I.path,parent:I})}}static create(w,E){return new Hs({in:w,out:E,typeName:Qe.ZodPipeline})}},g(Hs,"ZodPipeline"),Hs);se.ZodPipeline=mn;let zn=(Ss=class extends b{_parse(w){let E=this._def.innerType._parse(w),I=g(U=>((0,l.isValid)(U)&&(U.value=Object.freeze(U.value)),U),"freeze");return(0,l.isAsync)(E)?E.then(U=>I(U)):I(E)}unwrap(){return this._def.innerType}},g(Ss,"ZodReadonly"),Ss);se.ZodReadonly=zn,zn.create=(G,w)=>new zn({innerType:G,typeName:Qe.ZodReadonly,...m(w)});function Xr(G,w){let E=typeof G=="function"?G(w):typeof G=="string"?{message:G}:G;return typeof E=="string"?{message:E}:E}g(Xr,"cleanParams");function Sa(G,w={},E){return G?Ne.create().superRefine((I,U)=>{var ke,Re;let xe=G(I);if(xe instanceof Promise)return xe.then(De=>{var We,qt;if(!De){let $a=Xr(w,I),Qo=(qt=(We=$a.fatal)!==null&&We!==void 0?We:E)!==null&&qt!==void 0?qt:!0;U.addIssue({code:"custom",...$a,fatal:Qo})}});if(!xe){let De=Xr(w,I),We=(Re=(ke=De.fatal)!==null&&ke!==void 0?ke:E)!==null&&Re!==void 0?Re:!0;U.addIssue({code:"custom",...De,fatal:We})}}):Ne.create()}g(Sa,"custom"),se.custom=Sa,se.late={object:ct.lazycreate};var Qe;(function(G){G.ZodString="ZodString",G.ZodNumber="ZodNumber",G.ZodNaN="ZodNaN",G.ZodBigInt="ZodBigInt",G.ZodBoolean="ZodBoolean",G.ZodDate="ZodDate",G.ZodSymbol="ZodSymbol",G.ZodUndefined="ZodUndefined",G.ZodNull="ZodNull",G.ZodAny="ZodAny",G.ZodUnknown="ZodUnknown",G.ZodNever="ZodNever",G.ZodVoid="ZodVoid",G.ZodArray="ZodArray",G.ZodObject="ZodObject",G.ZodUnion="ZodUnion",G.ZodDiscriminatedUnion="ZodDiscriminatedUnion",G.ZodIntersection="ZodIntersection",G.ZodTuple="ZodTuple",G.ZodRecord="ZodRecord",G.ZodMap="ZodMap",G.ZodSet="ZodSet",G.ZodFunction="ZodFunction",G.ZodLazy="ZodLazy",G.ZodLiteral="ZodLiteral",G.ZodEnum="ZodEnum",G.ZodEffects="ZodEffects",G.ZodNativeEnum="ZodNativeEnum",G.ZodOptional="ZodOptional",G.ZodNullable="ZodNullable",G.ZodDefault="ZodDefault",G.ZodCatch="ZodCatch",G.ZodPromise="ZodPromise",G.ZodBranded="ZodBranded",G.ZodPipeline="ZodPipeline",G.ZodReadonly="ZodReadonly"})(Qe||(se.ZodFirstPartyTypeKind=Qe={}));let lr=g((G,w={message:`Input not instance of ${G.name}`})=>Sa(E=>E instanceof G,w),"instanceOfType");se.instanceof=lr;let gn=J.create;se.string=gn;let la=ce.create;se.number=la;let X=zt.create;se.nan=X;let ge=Ce.create;se.bigint=ge;let Le=Se.create;se.boolean=Le;let Ge=me.create;se.date=Ge;let kt=He.create;se.symbol=kt;let At=Oe.create;se.undefined=At;let Jt=Pe.create;se.null=Jt;let dt=Ne.create;se.any=dt;let Je=qe.create;se.unknown=Je;let xt=Ve.create;se.never=xt;let at=ht.create;se.void=at;let Mt=ze.create;se.array=Mt;let ar=ct.create;se.object=ar;let En=ct.strictCreate;se.strictObject=En;let ca=nt.create;se.union=ca;let Wn=Tt.create;se.discriminatedUnion=Wn;let zr=vt.create;se.intersection=zr;let Q=_e.create;se.tuple=Q;let je=pt.create;se.record=je;let Me=Pt.create;se.map=Me;let gt=Qt.create;se.set=gt;let Vr=ir.create;se.function=Vr;let Cr=It.create;se.lazy=Cr;let jn=hr.create;se.literal=jn;let Nr=Dt.create;se.enum=Nr;let ln=Ye.create;se.nativeEnum=ln;let Lr=or.create;se.promise=Lr;let _n=$t.create;se.effect=_n,se.transformer=_n;let Us=St.create;se.optional=Us;let Yo=pr.create;se.nullable=Yo;let xa=$t.createWithPreprocess;se.preprocess=xa;let ao=mn.create;se.pipeline=ao;let Ae=g(()=>gn().optional(),"ostring");se.ostring=Ae;let et=g(()=>la().optional(),"onumber");se.onumber=et;let _t=g(()=>Le().optional(),"oboolean");return se.oboolean=_t,se.coerce={string:g(G=>J.create({...G,coerce:!0}),"string"),number:g(G=>ce.create({...G,coerce:!0}),"number"),boolean:g(G=>Se.create({...G,coerce:!0}),"boolean"),bigint:g(G=>Ce.create({...G,coerce:!0}),"bigint"),date:g(G=>me.create({...G,coerce:!0}),"date")},se.NEVER=l.INVALID,se}g(G3,"requireTypes");var Kk;function D2(){return Kk||(Kk=1,function(e){var t=Pc&&Pc.__createBinding||(Object.create?function(n,s,o,l){l===void 0&&(l=o);var u=Object.getOwnPropertyDescriptor(s,o);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:g(function(){return s[o]},"get")}),Object.defineProperty(n,l,u)}:function(n,s,o,l){l===void 0&&(l=o),n[l]=s[o]}),r=Pc&&Pc.__exportStar||function(n,s){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&t(s,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(d1(),e),r(Tx(),e),r(F3(),e),r(hp(),e),r(G3(),e),r(u1(),e)}(Pc)),Pc}g(D2,"requireExternal");var Wk;function K3(){return Wk||(Wk=1,function(e){var t=Qs&&Qs.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var p=Object.getOwnPropertyDescriptor(u,d);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:g(function(){return u[d]},"get")}),Object.defineProperty(l,h,p)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),r=Qs&&Qs.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),n=Qs&&Qs.__importStar||function(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var d in l)d!=="default"&&Object.prototype.hasOwnProperty.call(l,d)&&t(u,l,d);return r(u,l),u},s=Qs&&Qs.__exportStar||function(l,u){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(u,d)&&t(u,l,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.z=void 0;let o=n(D2());e.z=o,s(D2(),e),e.default=o}(Qs)),Qs}g(K3,"requireLib");var yt=K3();function W3(){return{}}g(W3,"parseAnyDef");function Y3(e,t){var n,s,o;let r={type:"array"};return(n=e.type)!=null&&n._def&&((o=(s=e.type)==null?void 0:s._def)==null?void 0:o.typeName)!==yt.ZodFirstPartyTypeKind.ZodAny&&(r.items=fr(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&gr(r,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&gr(r,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&(gr(r,"minItems",e.exactLength.value,e.exactLength.message,t),gr(r,"maxItems",e.exactLength.value,e.exactLength.message,t)),r}g(Y3,"parseArrayDef");function Q3(e,t){let r={type:"integer",format:"int64"};if(!e.checks)return r;for(let n of e.checks)switch(n.kind){case"min":t.target==="jsonSchema7"?n.inclusive?gr(r,"minimum",n.value,n.message,t):gr(r,"exclusiveMinimum",n.value,n.message,t):(n.inclusive||(r.exclusiveMinimum=!0),gr(r,"minimum",n.value,n.message,t));break;case"max":t.target==="jsonSchema7"?n.inclusive?gr(r,"maximum",n.value,n.message,t):gr(r,"exclusiveMaximum",n.value,n.message,t):(n.inclusive||(r.exclusiveMaximum=!0),gr(r,"maximum",n.value,n.message,t));break;case"multipleOf":gr(r,"multipleOf",n.value,n.message,t);break}return r}g(Q3,"parseBigintDef");function X3(){return{type:"boolean"}}g(X3,"parseBooleanDef");function Ax(e,t){return fr(e.type._def,t)}g(Ax,"parseBrandedDef");var VG=g((e,t)=>fr(e.innerType._def,t),"parseCatchDef");function Rx(e,t,r){let n=r??t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((s,o)=>Rx(e,t,s))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return FG(e,t)}}g(Rx,"parseDateDef");var FG=g((e,t)=>{let r={type:"integer",format:"unix-time"};if(t.target==="openApi3")return r;for(let n of e.checks)switch(n.kind){case"min":gr(r,"minimum",n.value,n.message,t);break;case"max":gr(r,"maximum",n.value,n.message,t);break}return r},"integerDateParser");function J3(e,t){return{...fr(e.innerType._def,t),default:e.defaultValue()}}g(J3,"parseDefaultDef");function eA(e,t){return t.effectStrategy==="input"?fr(e.schema._def,t):{}}g(eA,"parseEffectsDef");function tA(e){return{type:"string",enum:Array.from(e.values)}}g(tA,"parseEnumDef");var qG=g(e=>"type"in e&&e.type==="string"?!1:"allOf"in e,"isJsonSchema7AllOfType");function rA(e,t){let r=[fr(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),fr(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(o=>!!o),n=t.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,s=[];return r.forEach(o=>{if(qG(o))s.push(...o.allOf),o.unevaluatedProperties===void 0&&(n=void 0);else{let l=o;if("additionalProperties"in o&&o.additionalProperties===!1){let{additionalProperties:u,...d}=o;l=d}else n=void 0;s.push(l)}}),s.length?{allOf:s,...n}:void 0}g(rA,"parseIntersectionDef");function nA(e,t){let r=typeof e.value;return r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string"?{type:Array.isArray(e.value)?"array":"object"}:t.target==="openApi3"?{type:r==="bigint"?"integer":r,enum:[e.value]}:{type:r==="bigint"?"integer":r,const:e.value}}g(nA,"parseLiteralDef");var mv,ks={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:g(()=>(mv===void 0&&(mv=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),mv),"emoji"),uuid:/^[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}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?: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])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([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])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function Ox(e,t){let r={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":gr(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,t);break;case"max":gr(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,t);break;case"email":switch(t.emailStrategy){case"format:email":ss(r,"email",n.message,t);break;case"format:idn-email":ss(r,"idn-email",n.message,t);break;case"pattern:zod":ea(r,ks.email,n.message,t);break}break;case"url":ss(r,"uri",n.message,t);break;case"uuid":ss(r,"uuid",n.message,t);break;case"regex":ea(r,n.regex,n.message,t);break;case"cuid":ea(r,ks.cuid,n.message,t);break;case"cuid2":ea(r,ks.cuid2,n.message,t);break;case"startsWith":ea(r,RegExp(`^${cg(n.value,t)}`),n.message,t);break;case"endsWith":ea(r,RegExp(`${cg(n.value,t)}$`),n.message,t);break;case"datetime":ss(r,"date-time",n.message,t);break;case"date":ss(r,"date",n.message,t);break;case"time":ss(r,"time",n.message,t);break;case"duration":ss(r,"duration",n.message,t);break;case"length":gr(r,"minLength",typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,n.message,t),gr(r,"maxLength",typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value,n.message,t);break;case"includes":{ea(r,RegExp(cg(n.value,t)),n.message,t);break}case"ip":{n.version!=="v6"&&ss(r,"ipv4",n.message,t),n.version!=="v4"&&ss(r,"ipv6",n.message,t);break}case"base64url":ea(r,ks.base64url,n.message,t);break;case"jwt":ea(r,ks.jwt,n.message,t);break;case"cidr":{n.version!=="v6"&&ea(r,ks.ipv4Cidr,n.message,t),n.version!=="v4"&&ea(r,ks.ipv6Cidr,n.message,t);break}case"emoji":ea(r,ks.emoji(),n.message,t);break;case"ulid":{ea(r,ks.ulid,n.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{ss(r,"binary",n.message,t);break}case"contentEncoding:base64":{gr(r,"contentEncoding","base64",n.message,t);break}case"pattern:zod":{ea(r,ks.base64,n.message,t);break}}break}case"nanoid":ea(r,ks.nanoid,n.message,t)}return r}g(Ox,"parseStringDef");function cg(e,t){return t.patternStrategy==="escape"?aA(e):e}g(cg,"escapeLiteralCheckValue");var GG=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function aA(e){let t="";for(let r=0;r<e.length;r++)GG.has(e[r])||(t+="\\"),t+=e[r];return t}g(aA,"escapeNonAlphaNumeric");function ss(e,t,r,n){var s;e.format||(s=e.anyOf)!=null&&s.some(o=>o.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&n.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.anyOf.push({format:t,...r&&n.errorMessages&&{errorMessage:{format:r}}})):gr(e,"format",t,r,n)}g(ss,"addFormat");function ea(e,t,r,n){var s;e.pattern||(s=e.allOf)!=null&&s.some(o=>o.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&n.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,Object.keys(e.errorMessage).length===0&&delete e.errorMessage)),e.allOf.push({pattern:z2(t,n),...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):gr(e,"pattern",z2(t,n),r,n)}g(ea,"addPattern");function z2(e,t){var d;if(!t.applyRegexFlags||!e.flags)return e.source;let r={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=r.i?e.source.toLowerCase():e.source,s="",o=!1,l=!1,u=!1;for(let h=0;h<n.length;h++){if(o){s+=n[h],o=!1;continue}if(r.i){if(l){if(n[h].match(/[a-z]/)){u?(s+=n[h],s+=`${n[h-2]}-${n[h]}`.toUpperCase(),u=!1):n[h+1]==="-"&&((d=n[h+2])!=null&&d.match(/[a-z]/))?(s+=n[h],u=!0):s+=`${n[h]}${n[h].toUpperCase()}`;continue}}else if(n[h].match(/[a-z]/)){s+=`[${n[h]}${n[h].toUpperCase()}]`;continue}}if(r.m){if(n[h]==="^"){s+=`(^|(?<=[\r
]))`;continue}else if(n[h]==="$"){s+=`($|(?=[\r
]))`;continue}}if(r.s&&n[h]==="."){s+=l?`${n[h]}\r
`:`[${n[h]}\r
]`;continue}s+=n[h],n[h]==="\\"?o=!0:l&&n[h]==="]"?l=!1:!l&&n[h]==="["&&(l=!0)}return s}g(z2,"stringifyRegExpWithFlags");function Mx(e,t){var n,s,o,l,u,d;if(t.target==="openAi"&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),t.target==="openApi3"&&((n=e.keyType)==null?void 0:n._def.typeName)===yt.ZodFirstPartyTypeKind.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((h,p)=>({...h,[p]:fr(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",p]})??{}}),{}),additionalProperties:t.rejectedAdditionalProperties};let r={type:"object",additionalProperties:fr(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if(t.target==="openApi3")return r;if(((s=e.keyType)==null?void 0:s._def.typeName)===yt.ZodFirstPartyTypeKind.ZodString&&((o=e.keyType._def.checks)!=null&&o.length)){let{type:h,...p}=Ox(e.keyType._def,t);return{...r,propertyNames:p}}else{if(((l=e.keyType)==null?void 0:l._def.typeName)===yt.ZodFirstPartyTypeKind.ZodEnum)return{...r,propertyNames:{enum:e.keyType._def.values}};if(((u=e.keyType)==null?void 0:u._def.typeName)===yt.ZodFirstPartyTypeKind.ZodBranded&&e.keyType._def.type._def.typeName===yt.ZodFirstPartyTypeKind.ZodString&&((d=e.keyType._def.type._def.checks)!=null&&d.length)){let{type:h,...p}=Ax(e.keyType._def,t);return{...r,propertyNames:p}}}return r}g(Mx,"parseRecordDef");function sA(e,t){if(t.mapStrategy==="record")return Mx(e,t);let r=fr(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||{},n=fr(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||{};return{type:"array",maxItems:125,items:{type:"array",items:[r,n],minItems:2,maxItems:2}}}g(sA,"parseMapDef");function iA(e){let t=e.values,r=Object.keys(e.values).filter(s=>typeof t[t[s]]!="number").map(s=>t[s]),n=Array.from(new Set(r.map(s=>typeof s)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:r}}g(iA,"parseNativeEnumDef");function oA(){return{not:{}}}g(oA,"parseNeverDef");function lA(e){return e.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}g(lA,"parseNullDef");var e0={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function cA(e,t){if(t.target==="openApi3")return Yk(e,t);let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(n=>n._def.typeName in e0&&(!n._def.checks||!n._def.checks.length))){let n=r.reduce((s,o)=>{let l=e0[o._def.typeName];return l&&!s.includes(l)?[...s,l]:s},[]);return{type:n.length>1?n:n[0]}}else if(r.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=r.reduce((s,o)=>{let l=typeof o._def.value;switch(l){case"string":case"number":case"boolean":return[...s,l];case"bigint":return[...s,"integer"];case"object":if(o._def.value===null)return[...s,"null"];case"symbol":case"undefined":case"function":default:return s}},[]);if(n.length===r.length){let s=n.filter((o,l,u)=>u.indexOf(o)===l);return{type:s.length>1?s:s[0],enum:r.reduce((o,l)=>o.includes(l._def.value)?o:[...o,l._def.value],[])}}}else if(r.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((n,s)=>[...n,...s._def.values.filter(o=>!n.includes(o))],[])};return Yk(e,t)}g(cA,"parseUnionDef");var Yk=g((e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,s)=>fr(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${s}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return r.length?{anyOf:r}:void 0},"asAnyOf");function uA(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return t.target==="openApi3"?{type:e0[e.innerType._def.typeName],nullable:!0}:{type:[e0[e.innerType._def.typeName],"null"]};if(t.target==="openApi3"){let n=fr(e.innerType._def,{...t,currentPath:[...t.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}let r=fr(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}g(uA,"parseNullableDef");function dA(e,t){let r={type:"number"};if(!e.checks)return r;for(let n of e.checks)switch(n.kind){case"int":r.type="integer",Ex(r,"type",n.message,t);break;case"min":t.target==="jsonSchema7"?n.inclusive?gr(r,"minimum",n.value,n.message,t):gr(r,"exclusiveMinimum",n.value,n.message,t):(n.inclusive||(r.exclusiveMinimum=!0),gr(r,"minimum",n.value,n.message,t));break;case"max":t.target==="jsonSchema7"?n.inclusive?gr(r,"maximum",n.value,n.message,t):gr(r,"exclusiveMaximum",n.value,n.message,t):(n.inclusive||(r.exclusiveMaximum=!0),gr(r,"maximum",n.value,n.message,t));break;case"multipleOf":gr(r,"multipleOf",n.value,n.message,t);break}return r}g(dA,"parseNumberDef");function fA(e,t){let r=t.target==="openAi",n={type:"object",properties:{}},s=[],o=e.shape();for(let u in o){let d=o[u];if(d===void 0||d._def===void 0)continue;let h=pA(d);h&&r&&(d instanceof yt.ZodOptional&&(d=d._def.innerType),d.isNullable()||(d=d.nullable()),h=!1);let p=fr(d._def,{...t,currentPath:[...t.currentPath,"properties",u],propertyPath:[...t.currentPath,"properties",u]});p!==void 0&&(n.properties[u]=p,h||s.push(u))}s.length&&(n.required=s);let l=hA(e,t);return l!==void 0&&(n.additionalProperties=l),n}g(fA,"parseObjectDef");function hA(e,t){if(e.catchall._def.typeName!=="ZodNever")return fr(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}g(hA,"decideAdditionalProperties");function pA(e){try{return e.isOptional()}catch{return!0}}g(pA,"safeIsOptional");var KG=g((e,t)=>{var n;if(t.currentPath.toString()===((n=t.propertyPath)==null?void 0:n.toString()))return fr(e.innerType._def,t);let r=fr(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return r?{anyOf:[{not:{}},r]}:{}},"parseOptionalDef"),WG=g((e,t)=>{if(t.pipeStrategy==="input")return fr(e.in._def,t);if(t.pipeStrategy==="output")return fr(e.out._def,t);let r=fr(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=fr(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,n].filter(s=>s!==void 0)}},"parsePipelineDef");function mA(e,t){return fr(e.type._def,t)}g(mA,"parsePromiseDef");function gA(e,t){let r={type:"array",uniqueItems:!0,items:fr(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&gr(r,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&gr(r,"maxItems",e.maxSize.value,e.maxSize.message,t),r}g(gA,"parseSetDef");function yA(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,n)=>fr(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[]),additionalItems:fr(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,n)=>fr(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[])}}g(yA,"parseTupleDef");function bA(){return{not:{}}}g(bA,"parseUndefinedDef");function vA(){return{}}g(vA,"parseUnknownDef");var YG=g((e,t)=>fr(e.innerType._def,t),"parseReadonlyDef"),QG=g((e,t,r)=>{switch(t){case yt.ZodFirstPartyTypeKind.ZodString:return Ox(e,r);case yt.ZodFirstPartyTypeKind.ZodNumber:return dA(e,r);case yt.ZodFirstPartyTypeKind.ZodObject:return fA(e,r);case yt.ZodFirstPartyTypeKind.ZodBigInt:return Q3(e,r);case yt.ZodFirstPartyTypeKind.ZodBoolean:return X3();case yt.ZodFirstPartyTypeKind.ZodDate:return Rx(e,r);case yt.ZodFirstPartyTypeKind.ZodUndefined:return bA();case yt.ZodFirstPartyTypeKind.ZodNull:return lA(r);case yt.ZodFirstPartyTypeKind.ZodArray:return Y3(e,r);case yt.ZodFirstPartyTypeKind.ZodUnion:case yt.ZodFirstPartyTypeKind.ZodDiscriminatedUnion:return cA(e,r);case yt.ZodFirstPartyTypeKind.ZodIntersection:return rA(e,r);case yt.ZodFirstPartyTypeKind.ZodTuple:return yA(e,r);case yt.ZodFirstPartyTypeKind.ZodRecord:return Mx(e,r);case yt.ZodFirstPartyTypeKind.ZodLiteral:return nA(e,r);case yt.ZodFirstPartyTypeKind.ZodEnum:return tA(e);case yt.ZodFirstPartyTypeKind.ZodNativeEnum:return iA(e);case yt.ZodFirstPartyTypeKind.ZodNullable:return uA(e,r);case yt.ZodFirstPartyTypeKind.ZodOptional:return KG(e,r);case yt.ZodFirstPartyTypeKind.ZodMap:return sA(e,r);case yt.ZodFirstPartyTypeKind.ZodSet:return gA(e,r);case yt.ZodFirstPartyTypeKind.ZodLazy:return()=>e.getter()._def;case yt.ZodFirstPartyTypeKind.ZodPromise:return mA(e,r);case yt.ZodFirstPartyTypeKind.ZodNaN:case yt.ZodFirstPartyTypeKind.ZodNever:return oA();case yt.ZodFirstPartyTypeKind.ZodEffects:return eA(e,r);case yt.ZodFirstPartyTypeKind.ZodAny:return W3();case yt.ZodFirstPartyTypeKind.ZodUnknown:return vA();case yt.ZodFirstPartyTypeKind.ZodDefault:return J3(e,r);case yt.ZodFirstPartyTypeKind.ZodBranded:return Ax(e,r);case yt.ZodFirstPartyTypeKind.ZodReadonly:return YG(e,r);case yt.ZodFirstPartyTypeKind.ZodCatch:return VG(e,r);case yt.ZodFirstPartyTypeKind.ZodPipeline:return WG(e,r);case yt.ZodFirstPartyTypeKind.ZodFunction:case yt.ZodFirstPartyTypeKind.ZodVoid:case yt.ZodFirstPartyTypeKind.ZodSymbol:return;default:return(n=>{})()}},"selectParser");function fr(e,t,r=!1){var u;let n=t.seen.get(e);if(t.override){let d=(u=t.override)==null?void 0:u.call(t,e,t,n,r);if(d!==BG)return d}if(n&&!r){let d=XG(n,t);if(d!==void 0)return d}let s={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,s);let o=QG(e,e.typeName,t),l=typeof o=="function"?fr(o(),t):o;if(l&&eK(e,t,l),t.postProcess){let d=t.postProcess(l,e,t);return s.jsonSchema=l,d}return s.jsonSchema=l,l}g(fr,"parseDef");var XG=g((e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:JG(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,n)=>t.currentPath[n]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),{}):t.$refStrategy==="seen"?{}:void 0}},"get$ref"),JG=g((e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")},"getRelativePath"),eK=g((e,t,r)=>(e.description&&(r.description=e.description,t.markdownDescription&&(r.markdownDescription=e.description)),r),"addMeta"),tK=g((e,t)=>{let r=ZG(t),n,s=t,o=fr(e._def,{...r,currentPath:[...r.basePath,r.definitionPath,s]},!1)??{},l=s===void 0?n?{...o,[r.definitionPath]:n}:o:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,s].join("/"),[r.definitionPath]:{...n,[s]:o}};return r.target==="jsonSchema7"?l.$schema="http://json-schema.org/draft-07/schema#":(r.target==="jsonSchema2019-09"||r.target==="openAi")&&(l.$schema="https://json-schema.org/draft/2019-09/schema#"),r.target==="openAi"&&("anyOf"in l||"oneOf"in l||"allOf"in l||"type"in l&&Array.isArray(l.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),l},"zodToJsonSchema");function SA(e){if(e<1e3)return`${e}ms`;{let t=e/1e3;return Number.isInteger(t)?`${t}s`:`${t.toFixed(1)}s`}}g(SA,"formatDuration");var rK=typeof localStorage<"u";function xA(){var e;return typeof Dk<"u"||typeof document<"u"?!1:!!(typeof process<"u"&&((e=process.versions)!=null&&e.node)||typeof Deno<"u"&&typeof Deno.version<"u"||typeof Bun<"u"&&typeof Bun.version<"u"||typeof Dk<"u"&&typeof globalThis.Response=="function"&&typeof globalThis.fetch=="function"&&typeof globalThis.navigator>"u"||typeof process<"u"&&(process!=null&&process.env.AWS_LAMBDA_FUNCTION_NAME))}g(xA,"isServerRuntime");function wA(e){let t=tK(e,"Tool");if(t.$ref&&t.definitions){let r=t.$ref.replace("#/definitions/",""),n=t.definitions[r];if(!n)throw new Error(`Could not resolve definition: ${r}`);return n}return t}g(wA,"flattenZodSchema");var j2="___$orama_user_id$___",nK="ssid",Zu,aK=(Zu=class{constructor(t){Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"readAPIKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"collectionID",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oramaInterface",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"abortController",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"LLMConfig",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sessionID",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lastInteractionParams",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"messages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.url=t.url,this.readAPIKey=t.readAPIKey,this.collectionID=t.collectionID,this.oramaInterface=new kx({baseURL:this.url,readAPIKey:this.readAPIKey}),this.LLMConfig=t.LLMConfig,this.messages=t.initialMessages||[],this.events=t.events,this.sessionID=t.sessionID||jo.createId()}async*answerStream(t){var u;this.lastInteractionParams={...t,planned:!1},t=this.enrichConfig(t),this.abortController=new AbortController,this.messages.push({role:"user",content:t.query}),this.messages.push({role:"assistant",content:""});let r=t.interactionID||jo.createId();this.state.push({id:r,query:t.query,response:"",sources:null,loading:!0,error:!1,aborted:!1,errorMessage:null,planned:!1,plan:null,planExecution:{},segment:null,related:(u=t.related)!=null&&u.enabled?"":null}),this.pushState();let n=this.state.length-1,s=this.messages.length-1,o={interaction_id:r,query:t.query,visitor_id:t.visitorID,conversation_id:t.sessionID,messages:t.messages||[],llm_config:null,related:t.related};this.LLMConfig&&(o.llm_config=this.LLMConfig);let l=(await this.oramaInterface.requestStream({method:"POST",securityLevel:"read-query",url:`/v1/collections/${this.collectionID}/answer`,body:o})).getReader();for(;;){let{done:d,value:h}=await l.read();if(h!==void 0){let p=Ei(h.data);if(p.type==="response"){let{action:m,result:b}=Ei(p.message);switch(m){case"GET_SEGMENT":{if(b!==null){let S=Ei(b);if(!S)break;this.state[n].segment={id:S.id,name:S.name},this.pushState()}break}case"GET_TRIGGER":{if(b!==null){let S=Ei(b);if(!S)break;this.state[n].segment=S,this.pushState()}break}case"OPTIMIZING_QUERY":break;case"SEARCH_RESULTS":{let S=Ei(b);this.state[n].sources=S,this.pushState();break}case"ANSWER_RESPONSE":{this.state[n].response+=b,this.messages[s].content=this.state[n].response,yield this.state[n].response,this.pushState();break}case"RELATED_QUERIES":{this.state[n].related+=b,this.pushState();break}}}}if(d){this.state[n].loading=!1,this.pushState();break}}l.releaseLock()}async answer(t){this.lastInteractionParams={...t,planned:!1};let r="";for await(let n of this.answerStream(t))r=n;return r}async*reasonStream(t){this.lastInteractionParams={...t,planned:!0};for await(let r of this.fetchPlannedAnswer(t))yield this.state[this.state.length-1].response}async reason(t){this.lastInteractionParams={...t,planned:!0};for await(let r of this.fetchPlannedAnswer(t));return this.state[this.state.length-1].response}async*fetchPlannedAnswer(t){var l,u;t=this.enrichConfig(t),this.abortController=new AbortController,this.messages.push({role:"user",content:t.query}),this.messages.push({role:"assistant",content:""});let r=jo.createId();this.state.push({id:r,query:t.query,response:"",sources:null,loading:!0,error:!1,aborted:!1,errorMessage:null,planned:!0,plan:null,planExecution:{},segment:null,related:(l=t.related)!=null&&l.enabled?"":null}),this.pushState();let n=this.state.length-1,s=this.messages.length-1,o=(await this.oramaInterface.requestStream({method:"POST",securityLevel:"read-query",url:`/v1/collections/${this.collectionID}/planned_answer`,body:{interaction_id:t.interactionID,query:t.query,visitor_id:t.visitorID,conversation_id:t.sessionID,messages:t.messages||[],llm_config:this.LLMConfig?this.LLMConfig:null,related:t.related},signal:(u=this.abortController)==null?void 0:u.signal})).getReader();for(;;){let{done:d,value:h}=await o.read();if(h!==void 0){if(h==="")continue;let p=Ei(h.data);if(p.type==="acknowledgement"){yield{action:"ACKNOWLEDGEMENT",message:"acknowledgement"};continue}if(p.type==="response"){if(p.message==="")continue;let m=Ei(p.message),b=m.action;if(b==="ACTION_PLAN"){let S=Ei(m.result);this.state[n].plan=S;let x={};for(let C of S)x[C.step]={instruction:C.description,result:"",done:!1};this.state[n].planExecution=x,this.pushState(),yield{action:"ACTION_PLAN",message:S};continue}if(b==="PERFORM_ORAMA_SEARCH"){let S=JSON.parse(m.result);this.state[n].sources=S,"PERFORM_ORAMA_SEARCH"in this.state[n].planExecution&&(this.state[n].planExecution.PERFORM_ORAMA_SEARCH.result=S,this.state[n].planExecution.PERFORM_ORAMA_SEARCH.done=!0),this.pushState(),yield{action:"PERFORM_ORAMA_SEARCH",message:S};continue}if(b==="ASK_FOLLOWUP"||b==="GIVE_REPLY"){this.state[n].response+=m.result,this.messages[s].content=this.state[n].response,this.state[n].planExecution[b].result+=m.result,this.state[n].planExecution[b].done=m.done,this.pushState(),yield{action:b,message:m.result};continue}if(b==="GET_SEGMENT"&&(this.state[n].segment={id:m.result.id,name:m.result.name},this.pushState()),b==="SELECT_SEGMENT_PROBABILITY"&&this.state[n].segment){let S=m.result.probability;this.state[n].segment.probability=S,this.pushState()}if(b==="GET_TRIGGER"&&(this.state[n].segment={id:m.result.id,name:m.result.name},this.pushState()),b==="SELECT_TRIGGER_PROBABILITY"&&this.state[n].segment){let S=m.result.probability;this.state[n].segment.probability=S,this.pushState()}if(b==="RELATED_QUERIES"){this.state[n].related+=m.result,this.pushState();break}zG.includes(b)||(this.state[n].planExecution[b].result+=m.result,this.state[n].planExecution[b].done=m.done,this.pushState()),yield m}}if(d)break}o.releaseLock(),this.state[n].loading=!1,this.pushState()}async regenerateLast({stream:t=!0}={}){var r,n;if(this.state.length===0||this.messages.length===0)throw new Error("No messages to regenerate");if(((r=this.messages.at(-1))==null?void 0:r.role)!=="assistant")throw new Error("Last message is not an assistant message");return this.messages.pop(),this.state.pop(),(n=this.lastInteractionParams)!=null&&n.planned?t?this.reasonStream(this.lastInteractionParams):this.reason(this.lastInteractionParams):t?this.answerStream(this.lastInteractionParams):this.answer(this.lastInteractionParams)}abort(){if(!this.abortController)throw new Error("AbortController is not available.");if(this.state.length===0)throw new Error("There is no active request to abort.");this.abortController.abort(),this.abortController=void 0,this.state[this.state.length-1].aborted=!0}clearSession(){this.messages=[],this.state=[],this.pushState()}pushState(){var t,r;(r=(t=this.events)==null?void 0:t.onStateChange)==null||r.call(t,this.state)}enrichConfig(t){return t.visitorID||(t.visitorID=CA()),t.interactionID||(t.interactionID=jo.createId()),t.sessionID||(t.sessionID=this.sessionID),t}},g(Zu,"AnswerSession"),Zu);function CA(){if(xA())return nK;if(rK){let e=localStorage.getItem(j2);if(e)return e}return jo.createId()}g(CA,"getUserID");function $A(e,t){if(typeof navigator<"u"){typeof navigator.sendBeacon<"u"&&navigator.sendBeacon(e,t);return}fetch(e,{method:"POST",body:t,headers:{"Content-Type":"application/json"}}).then(()=>{},r=>console.log(r))}g($A,"sendBeacon");var Vu,sK=(Vu=class{constructor({endpoint:t,apiKey:r}){if(Object.defineProperty(this,"endpoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"apiKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"userId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"identity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"userAlias",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t||!r)throw new Error("Endpoint and API Key are required to create a Profile");if(typeof t!="string"||typeof r!="string")throw new Error("Endpoint and API Key must be strings");if(typeof localStorage<"u"){let n=localStorage.getItem(j2);n?this.userId=n:(this.userId=jo.createId(),localStorage.setItem(j2,this.userId))}else this.userId=jo.createId();this.endpoint=t,this.apiKey=r}setParams(t){let{protocol:r,host:n}=new URL(t.identifyUrl),s=`${r}//${n}/identify`;this.params={identifyUrl:s,index:t.index}}getIdentity(){return this.identity}getUserId(){return this.userId}getAlias(){return this.userAlias}async sendProfileData(t){var n;if(!this.params)throw new Error("Orama Profile is not initialized");let r=JSON.stringify({...t,visitorId:this.getUserId(),index:this.params.index});await $A(`${(n=this.params)==null?void 0:n.identifyUrl}?api-key=${this.apiKey}`,r)}async identify(t){if(typeof t!="string")throw new Error("Identity must be a string");await this.sendProfileData({entity:"identity",id:t}),this.identity=t}async alias(t){if(typeof t!="string")throw new Error("Identity must be a string");await this.sendProfileData({entity:"alias",id:t}),this.userAlias=t}reset(){this.userId=jo.createId(),this.identity=void 0,this.userAlias=void 0}},g(Vu,"Profile"),Vu),Fu,iK=(Fu=class{constructor(t){Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"collectionID",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"writeAPIKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"readAPIKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oramaInterface",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"profile",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=t.url,this.writeAPIKey=t.writeAPIKey,this.readAPIKey=t.readAPIKey,this.collectionID=t.collectionID,this.oramaInterface=new kx({baseURL:this.url,writeAPIKey:this.writeAPIKey,readAPIKey:this.readAPIKey}),this.profile=new sK({endpoint:this.url,apiKey:this.readAPIKey})}async search(t){let r=+new Date,{datasourceIDs:n,indexes:s,...o}=t,l=await this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/search`,body:{...o,indexes:n||s},method:"POST",securityLevel:"read-query"}),u=+new Date-r;return{...l,elapsed:{raw:u,formatted:SA(u)}}}getStats(t){return this.oramaInterface.request({url:`/v1/collections/${t}/stats`,method:"GET",securityLevel:"read-query"})}async createIndex(t){let r={id:t.id,embedding:t.embeddings};await this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/indexes/create`,body:r,method:"POST",securityLevel:"write"})}async deleteIndex(t){await this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/indexes/delete`,body:{index_id_to_delete:t},method:"POST",securityLevel:"write"})}setIndex(t){return new oK(this.collectionID,t,this.url,this.writeAPIKey,this.readAPIKey)}getAllDocsInCollection(t){return this.oramaInterface.request({url:"/v1/collections/list",method:"POST",body:{id:t},securityLevel:"write"})}createAnswerSession(t){if(!this.readAPIKey)throw new Error("Read API key is required to create an answer session");return new aK({url:this.url,readAPIKey:this.readAPIKey||"",collectionID:this.collectionID,...t})}async insertHook(t){let r={name:t.name,code:t.code};return await this.oramaInterface.request({url:`/v1/collections/${t.collectionID}/hooks/create`,body:r,method:"POST",securityLevel:"write"}),{hookID:r.name,collectionID:t.collectionID,code:r.code}}insertSegment(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/segments/insert`,body:t,method:"POST",securityLevel:"write"})}getSegment(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/segments/get`,body:{segment_id:t},method:"GET",securityLevel:"read-query"})}getAllSegments(){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/segments/all`,method:"GET",securityLevel:"read-query"})}deleteSegment(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/segments/delete`,body:{id:t},method:"POST",securityLevel:"write"})}updateSegment(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/segments/update`,body:t,method:"POST",securityLevel:"write"})}insertTrigger(t){if(!t.segment_id)throw new Error("You cannot insert a trigger without a segment_id");return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/triggers/insert`,body:t,method:"POST",securityLevel:"write"})}getTrigger(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/triggers/get`,body:{trigger_id:t},method:"GET",securityLevel:"read-query"})}getAllTriggers(){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/triggers/all`,method:"GET",securityLevel:"read-query"})}deleteTrigger(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/triggers/delete`,body:{id:t},method:"POST",securityLevel:"write"})}updateTrigger(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/triggers/update`,body:t,method:"POST",securityLevel:"write"})}insertSystemPrompt(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/system_prompts/insert`,body:t,method:"POST",securityLevel:"write"})}getSystemPrompt(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/system_prompts/get`,body:{system_prompt_id:t},method:"GET",securityLevel:"read"})}getAllSystemPrompts(){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/system_prompts/all`,method:"GET",securityLevel:"read-query"})}deleteSystemPrompt(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/system_prompts/delete`,body:{id:t},method:"POST",securityLevel:"write"})}updateSystemPrompt(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/system_prompts/update`,body:t,method:"POST",securityLevel:"write"})}validateSystemPrompt(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/system_prompts/validate`,body:t,method:"POST",securityLevel:"write"})}insertTool(t){let r;switch(!0){case typeof t.parameters=="string":{r=t.parameters;break}case t.parameters instanceof yt.ZodType:{let n=wA(t.parameters);r=JSON.stringify(n);break}case typeof t.parameters=="object":{r=JSON.stringify(t.parameters);break}default:throw new Error("Invalid parameters type. Must be string, object or ZodType")}return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/tools/insert`,body:{...t,parameters:r},method:"POST",securityLevel:"write"})}getTool(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/tools/get`,body:{tool_id:t},method:"GET",securityLevel:"read-query"})}getAllTools(){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/tools/all`,method:"GET",securityLevel:"read-query"})}deleteTool(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/tools/delete`,body:{id:t},method:"POST",securityLevel:"write"})}updateTool(t){return this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/tools/update`,body:t,method:"POST",securityLevel:"write"})}async executeTools(t){let r=await this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/tools/run`,body:t,method:"POST",securityLevel:"read"});return r.results?{results:r.results.map(n=>"functionResult"in n?{functionResult:{tool_id:n.functionResult.tool_id,result:JSON.parse(n.functionResult.result)}}:"functionParameters"in n?{functionParameters:{tool_id:n.functionParameters.tool_id,result:JSON.parse(n.functionParameters.result)}}:n)}:{results:null}}getIdentity(){return this.profile.getIdentity()}getUserId(){return this.profile.getUserId()}getAlias(){return this.profile.getAlias()}async identify(t){await this.profile.identify(t)}async alias(t){await this.profile.alias(t)}reset(){this.profile.reset()}},g(Fu,"CollectionManager"),Fu),qu,oK=(qu=class{constructor(t,r,n,s,o){Object.defineProperty(this,"indexID",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"collectionID",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oramaInterface",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.indexID=r,this.collectionID=t,this.oramaInterface=new kx({baseURL:n,writeAPIKey:s,readAPIKey:o})}async reindex(){await this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/indexes/${this.indexID}/reindex`,method:"POST",securityLevel:"write"})}async insertDocuments(t){await this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/indexes/${this.indexID}/insert`,body:t,method:"POST",securityLevel:"write"})}async deleteDocuments(t){await this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/indexes/${this.indexID}/delete`,body:t,method:"POST",securityLevel:"write"})}async upsertDocuments(t){await this.oramaInterface.request({url:`/v1/collections/${this.collectionID}/indexes/${this.indexID}/insert`,body:t,method:"POST",securityLevel:"write"})}},g(qu,"Index"),qu);function kA(e){return e&&typeof e=="object"&&"api_key"in e&&"endpoint"in e}g(kA,"isOramaClient");function EA(e){return e&&(e instanceof iK||e.constructor.name==="CollectionManager")}g(EA,"isOramaCoreClient");function _A(e){return e&&typeof e=="object"&&"id"in e&&"tokenizer"in e}g(_A,"isOramaJSClient");var Gu,TA=(Gu=class{constructor(t){Te(this,"invalidClientError","Invalid client. Expected either an OramaClient, CollectionManager, or an Orama JS database.");Te(this,"client");Te(this,"clientType");Te(this,"isCloud",!1);Te(this,"isJS",!1);Te(this,"isCore",!1);switch(this.client=t,!0){case EA(t):this.clientType="core",this.isCore=!0;break;case kA(t):this.clientType="cloud",this.isCloud=!0;break;case _A(t):this.clientType="oss",this.isJS=!0;break;default:throw new Error(this.invalidClientError)}}async search(t,r){switch(!0){case this.isCloud:return this.client.search(t,r);case this.isCore:return await this.client.search(t);case this.isJS:return vx(this.client,t);default:throw new Error(this.invalidClientError)}}createAnswerSession(t){switch(!0){case this.isCloud:{let r=t;return this.client.createAnswerSession(r)}case this.isCore:{let r=t;return this.client.createAnswerSession(r)}case this.isJS:{let r=t;return new uG(this.client,{conversationID:r.conversationID,initialMessages:r.initialMessages,events:r.events,userContext:r.userContext,systemPrompt:r.systemPrompt})}default:throw new Error(this.invalidClientError)}}},g(Gu,"Switch"),Gu),lK=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(l){return new Promise(function(u,d){l=e[o](l),s(u,d,l.done,l.value)})}}function s(o,l,u,d){Promise.resolve(d).then(function(h){o({value:h,done:u})},l)}},cK=g(e=>{try{return JSON.parse(e)}catch{return[]}},"parseRelatedQueries"),Ku,AA=(Ku=class{constructor(t,r,n){this.getSourcesMapObjectByIndexId=(s,o)=>{let l=Array.isArray(s)?s:[s];return l.length===1?l[0]:l.find(u=>u.datasourceId===o)||{}},this.sendQuestion=async(s,o,l,u)=>{if(!this.client)throw new uh;let d={term:s};l!=null&&l.length&&this.answerSession&&"setSystemPromptConfiguration"in this.answerSession&&this.answerSession.setSystemPromptConfiguration(l);let h=this.chatStore.state.interactions;if(!this.answerSession)try{let p=this.chatStore.state.interactions;try{this.answerSession=this.client.createAnswerSession({events:{onStateChange:g(m=>{let b=m.filter(S=>!!S.query);this.chatStore.state.interactions=[...p||[],...b.map((S,x)=>{var C;let $=m.length-1===x,_=ra.loading,M=[];S.aborted?_=ra.aborted:S.loading&&S.sources?_=ra.rendering:S.loading&&S.response?_=ra.streaming:!S.loading&&S.response&&(_=ra.done),S.sources&&(M=(Array.isArray(S.sources)?S.sources:S.sources.hits).map(R=>{let L=this.getSourcesMapObjectByIndexId(this.chatStore.state.sourcesMap,R.index_id),j=this.getResultMapValue("title",L,R),O=this.getResultMapValue("description",L,R),N=this.getResultMapValue("path",L,R);return{title:j,description:O,path:N}})),$&&_===ra.done&&((C=u==null?void 0:u.onAnswerGeneratedCallback)===null||C===void 0||C.call(u,{askParams:d,query:S.query,sources:S.sources,answer:S.response,segment:S.segment,trigger:S.trigger}));let T=S.related;return{query:S.query,interactionId:S.interactionId||S.id,response:S.response,relatedQueries:cK(T),status:_,latest:$,sources:M}})]},"onStateChange")}})}catch(m){console.error("Client does not support createAnswerSession method:",m),this.chatStore.state.interactions=[...p||[],{query:s,response:"Sorry, this client does not support chat functionality.",status:ra.error,latest:!0,sources:[]}];return}}catch(p){console.error("Error creating answer session:",p),this.chatStore.state.interactions=[...h||[],{query:s,response:"Sorry, there was an error creating the answer session. Please try again later.",status:ra.error,latest:!0,sources:[]}];return}if(!this.answerSession){console.error("Answer session was not created");return}try{this.answerSession.answer?this.askOramaCore(s,o):this.askOramaCloud(s)}catch{let p=this.chatStore.state.interactions[this.chatStore.state.interactions.length-1];p&&(p.status=ra.error,p.response="Sorry, the answer service is not available. Please try again later.",this.chatStore.state.interactions=[...this.chatStore.state.interactions])}},this.askOramaCore=(s,o)=>{console.log("askOramaCore",s,o);let l=Object.assign({query:s},o?{related:{enabled:!0,size:o,format:"query"}}:{}),u=this.answerSession.answerStream(l);g(async()=>{var d,h,p;try{for(var m=!0,b=lK(u),S;S=await b.next(),d=S.done,!d;m=!0)m=!1}catch(x){h={error:x}}finally{try{!m&&!d&&(p=b.return)&&await p.call(b)}finally{if(h)throw h.error}}},"processAsyncGenerator")()},this.askOramaCloud=s=>{let o={term:s,limit:10,threshold:.5};this.answerSession.ask(o)},this.abortAnswer=()=>{if(!this.answerSession)throw new uh;this.answerSession.abort?this.answerSession.abort():this.answerSession.abortAnswer()},this.regenerateLatest=async()=>{if(!this.answerSession)throw new uh;this.answerSession.regenerateLast?this.answerSession.regenerateLast({stream:!1}):this.answerSession.regenerateLast({stream:!1})},this.resetChat=async()=>{if(!this.answerSession)throw new uh;this.chatStore.state.interactions.length<1||(["loading","rendering","streaming"].includes(this.chatStore.state.interactions[this.chatStore.state.interactions.length-1].status)&&this.abortAnswer(),this.answerSession.clearSession(),this.chatStore.state.interactions=[])},this.client=r||new TA(t),this.chatStore=n}getResultMapValue(t,r,n){let s=r==null?void 0:r[t];if(!s)return;if(typeof s=="function")return s(n.document,n.index_id);let o=r[t];return n.document[o]}},g(Ku,"ChatService"),Ku),B2={searchPlaceholder:"Search...",chatPlaceholder:"Ask me anything",noResultsFound:"No results found",noResultsFoundFor:"No results found for",suggestionsTitle:"Suggestions",seeAll:"See all",addMore:"Add more",clearChat:"Clear chat",errorMessage:"An error occurred while trying to search. Please try again.",disclaimer:"Orama can make mistakes. Please verify the information.",startYourSearch:"Start your search",initErrorSearch:"Unable to initialize search service",initErrorChat:"Unable to initialize chat service",chatButtonLabel:"Get a summary",searchButtonLabel:"Search"};function Qd(e,t={},r={}){return r[e]?r[e]:t[e]||B2[e]}g(Qd,"getText");var uK=Object.defineProperty,dK=Object.getOwnPropertyDescriptor,pp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?dK(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&uK(t,r,s),s},"a"),Wu,Vi=(Wu=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Vi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(Wu,"t"),Wu);Vi.weightsMap=new Map([["thin",$e`<path d="M202.83,146.83l-72,72a4,4,0,0,1-5.66,0l-72-72a4,4,0,0,1,5.66-5.66L124,206.34V40a4,4,0,0,1,8,0V206.34l65.17-65.17a4,4,0,0,1,5.66,5.66Z"/>`],["light",$e`<path d="M204.24,148.24l-72,72a6,6,0,0,1-8.48,0l-72-72a6,6,0,0,1,8.48-8.48L122,201.51V40a6,6,0,0,1,12,0V201.51l61.76-61.75a6,6,0,0,1,8.48,8.48Z"/>`],["regular",$e`<path d="M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"/>`],["bold",$e`<path d="M208.49,152.49l-72,72a12,12,0,0,1-17,0l-72-72a12,12,0,0,1,17-17L116,187V40a12,12,0,0,1,24,0V187l51.51-51.52a12,12,0,0,1,17,17Z"/>`],["fill",$e`<path d="M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72A8,8,0,0,1,56,136h64V40a8,8,0,0,1,16,0v96h64a8,8,0,0,1,5.66,13.66Z"/>`],["duotone",$e`<path d="M200,144l-72,72L56,144Z" opacity="0.2"/><path d="M207.39,140.94A8,8,0,0,0,200,136H136V40a8,8,0,0,0-16,0v96H56a8,8,0,0,0-5.66,13.66l72,72a8,8,0,0,0,11.32,0l72-72A8,8,0,0,0,207.39,140.94ZM128,204.69,75.31,152H180.69Z"/>`]]);Vi.styles=Pn`
    :host {
      display: contents;
    }
  `;pp([Be({type:String,reflect:!0})],Vi.prototype,"size",2);pp([Be({type:String,reflect:!0})],Vi.prototype,"weight",2);pp([Be({type:String,reflect:!0})],Vi.prototype,"color",2);pp([Be({type:Boolean,reflect:!0})],Vi.prototype,"mirrored",2);Vi=pp([Dn("ph-arrow-down")],Vi);var fK=".sc-orama-chat-user-message-h{color:#151515;color:var(--text-color-primary,#151515);display:flex;justify-content:end;padding:0 1rem;padding:0 var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)))}@media (min-width:768.02px){.sc-orama-chat-user-message-h{justify-content:start}}.message-wrapper.sc-orama-chat-user-message{border-radius:.5rem;border-radius:var(--radius-s,calc(8rem/var(--orama-base-font-size, 16)));padding:.5rem .75rem;padding:var(--radius-s,calc(8rem/var(--orama-base-font-size, 16))) var(--radius-m,calc(12rem/var(--orama-base-font-size, 16)))}.chat-question.sc-orama-chat-user-message{font-weight:400}@media (min-width:768.02px){.chat-question.sc-orama-chat-user-message{font-size:1.25rem;font-size:calc(20rem/var(--orama-base-font-size, 16));margin-bottom:1rem;margin-bottom:var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)))}}",Yu,hK=Zr((Yu=class extends Hr{constructor(){super(),this.__registerHost()}render(){return Y(va,{key:"d2c74982926525d2f01c2ced08900984662ed86d"},Y("div",{key:"ee3082412dd37c9f04e3fdb2573cf2013a7d4985",class:"message-wrapper"},Y("orama-text",{key:"b5da8143c4b840cfd24e1722846f2b24b5b8c433",as:"h2",styledAs:"p",class:"chat-question"},this.interaction.query)))}static get style(){return fK}},g(Yu,"OramaChatUserMessage"),Yu),[2,"orama-chat-user-message",{interaction:[16]}]);function mp(){typeof customElements>"u"||["orama-chat-user-message","orama-text"].forEach(e=>{switch(e){case"orama-chat-user-message":customElements.get(e)||customElements.define(e,hK);break;case"orama-text":customElements.get(e)||Bs();break}})}g(mp,"defineCustomElement");var pK=".suggestions-chips.sc-orama-suggestions{align-items:center;display:flex;gap:.75rem;gap:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));list-style:none;margin:0;overflow-x:auto;padding:.5rem 1rem;padding:var(--radius-s,calc(8rem/var(--orama-base-font-size, 16))) var(--radius-l,calc(16rem/var(--orama-base-font-size, 16)))}.suggestions-chips.sc-orama-suggestions::-webkit-scrollbar{background-color:transparent;height:0}@media (min-width:768.02px){.suggestions-chips.sc-orama-suggestions{flex-wrap:wrap;justify-content:center}}.suggestion-button-chips.sc-orama-suggestions{align-items:center;background-color:#fff;background-color:var(--background-color-secondary,#fff);border:1px solid #dadada;border:1px solid var(--border-color-primary,#dadada);border-radius:1rem;border-radius:var(--radius-l,calc(16rem/var(--orama-base-font-size, 16)));color:#151515;color:var(--text-color-primary,#151515);color:#838289;color:var(--text-color-secondary,#838289);-moz-column-gap:.5rem;column-gap:.5rem;-moz-column-gap:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));column-gap:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));cursor:pointer;display:flex;font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);line-height:1.25;line-height:var(--font-line-height-s,1.25);margin:0;padding:.5rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));transition:background-color .2s;width:-moz-max-content;width:max-content}@media (hover:hover){.suggestion-button-chips.sc-orama-suggestions:hover{background-color:#eee9f6;background-color:var(--background-color-tertiary,#eee9f6)}}.suggestion-button-chips.sc-orama-suggestions:focus-visible{border:1px solid #432d77;border:1px solid var(--border-color-accent,#432d77);outline:none}.suggestions-list.sc-orama-suggestions{align-items:center;display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}.suggestion-item-list.sc-orama-suggestions{width:100%}.suggestion-button-list.sc-orama-suggestions{align-items:center;background-color:transparent;background:linear-gradient(90deg,#ae8ff7,#151515);background:linear-gradient(90deg,var(--text-color-accent,#ae8ff7) 0,var(--text-color-primary,#151515) 100%);-webkit-background-clip:text;background-clip:text;color:#838289;color:var(--text-color-secondary,#838289);-moz-column-gap:.5rem;column-gap:.5rem;-moz-column-gap:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));column-gap:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));cursor:pointer;display:flex;font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)));padding:.5rem .75rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16))) var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));text-align:left;-webkit-text-fill-color:transparent;border:1px solid transparent;font-family:inherit;width:100%}.suggestion-button-list.sc-orama-suggestions:focus-visible{border:1px solid #432d77;border:1px solid var(--border-color-accent,#432d77);border-radius:.5rem;border-radius:var(--radius-s,calc(8rem/var(--orama-base-font-size, 16)));outline:none}",Qu,mK=Zr((Qu=class extends Hr{constructor(){super(),this.__registerHost(),this.as="chips"}handleClick(t){this.suggestionClicked&&this.suggestionClicked(t)}render(){var t;let r=this.as==="chips",n=this.as==="list",s=r?"chips":n?"list":"";return!((t=this.suggestions)===null||t===void 0)&&t.length?Y("ul",{class:`suggestions-${s}`},this.suggestions.map(o=>Y("li",{key:o.split(" ").join("-").toLowerCase(),class:`suggestion-item-${s}`},Y("button",{"focus-on-arrow-nav":!0,type:"button",class:`suggestion-button-${s}`,onClick:g(l=>{l.preventDefault(),this.handleClick(o)},"onClick")},this.icon,o)))):null}static get style(){return pK}},g(Qu,"OramaSuggestions"),Qu),[2,"orama-suggestions",{suggestions:[16],as:[1],icon:[16],suggestionClicked:[16,"suggestion-clicked"]}]);function Xl(){typeof customElements>"u"||["orama-suggestions"].forEach(e=>{switch(e){case"orama-suggestions":customElements.get(e)||customElements.define(e,mK);break}})}g(Xl,"defineCustomElement");var gK="orama-chat-messages-container.sc-orama-chat-messages-container::-webkit-scrollbar{width:.3em}orama-chat-messages-container.sc-orama-chat-messages-container::-webkit-scrollbar-track{background:transparent}orama-chat-messages-container.sc-orama-chat-messages-container::-webkit-scrollbar-thumb{background-color:hsla(0,0%,70%,.522);border-radius:1rem;border-radius:var(--border-radius-l,calc(16rem/var(--orama-base-font-size, 16)))}.messages-container.sc-orama-chat-messages-container{display:flex;flex-direction:column;gap:1.5rem;gap:var(--spacing-xl,calc(24rem/var(--orama-base-font-size, 16)));margin:1rem 0;margin:var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16))) 0;overflow:hidden}.suggestions-wrapper.sc-orama-chat-messages-container{margin-top:1.5rem;margin-top:var(--spacing-xl,calc(24rem/var(--orama-base-font-size, 16)))}",yK=function(e,t,r,n){var s=arguments.length,o=s<3?t:n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(l=e[u])&&(o=(s<3?l(o):s>3?l(t,r,o):l(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},Xu,RA=Zr((Xu=class extends Hr{constructor(){super(),this.__registerHost(),this.answerGenerated=Br(this,"answerGenerated"),this.latestInteractionMinHeight=0,this.onSuggestionClick=t=>{var r;(r=this.chatStore.state.chatService)===null||r===void 0||r.sendQuestion(t,void 0,void 0,{onAnswerGeneratedCallback:g(n=>this.answerGenerated.emit(n),"onAnswerGeneratedCallback")})},this.resizeObserver=new ResizeObserver(t=>{this.latestInteractionMinHeight=t[0].target.clientHeight-32})}componentDidLoad(){let t=this.el.parentElement.parentElement;this.resizeObserver.observe(t)}render(){return Y(va,{key:"16faa4d865e3c1c475a099c2a537c9fcd356bf7b"},Y("div",{key:"4fc29b18a434697d629e1327cffdce84d56a21c2",class:"messages-container"},this.interactions.map((t,r)=>{var n;return Y("div",{key:t.interactionId,class:"interaction-wrapper",style:{minHeight:this.interactions.length>1&&r===this.interactions.length-1?`${this.latestInteractionMinHeight}px`:"0px"}},Y("orama-chat-user-message",{interaction:Object.assign({},t)}),Y("orama-chat-assistent-message",{interaction:Object.assign({},t),chatMarkdownLinkTitle:this.chatMarkdownLinkTitle,chatMarkdownLinkHref:this.chatMarkdownLinkHref}),t.latest&&t.status==="done"&&!!(!((n=t.relatedQueries)===null||n===void 0)&&n.length)&&Y("div",{class:"suggestions-wrapper"},Y("orama-suggestions",{as:"chips",suggestions:t.relatedQueries,suggestionClicked:this.onSuggestionClick})))})))}get el(){return this}static get style(){return gK}},g(Xu,"OramaChatMessagesContainer"),Xu),[2,"orama-chat-messages-container",{interactions:[16],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"],latestInteractionMinHeight:[32]}]);yK([no("chat")],RA.prototype,"chatStore",void 0);function f1(){typeof customElements>"u"||["orama-chat-messages-container","orama-button","orama-chat-assistent-message","orama-chat-user-message","orama-dots-loader","orama-markdown","orama-sources","orama-suggestions","orama-text"].forEach(e=>{switch(e){case"orama-chat-messages-container":customElements.get(e)||customElements.define(e,RA);break;case"orama-button":customElements.get(e)||Ko();break;case"orama-chat-assistent-message":customElements.get(e)||dp();break;case"orama-chat-user-message":customElements.get(e)||mp();break;case"orama-dots-loader":customElements.get(e)||Wd();break;case"orama-markdown":customElements.get(e)||Ql();break;case"orama-sources":customElements.get(e)||Yd();break;case"orama-suggestions":customElements.get(e)||Xl();break;case"orama-text":customElements.get(e)||Bs();break}})}g(f1,"defineCustomElement");var bK=".sc-orama-textarea-h{align-items:center;background:#fff;background:var(--background-color-secondary,#fff);border:1px solid #dadada;border:1px solid var(--border-color-primary,#dadada);border-radius:1rem;border-radius:var(--textarea-radius,var(--radius-l,calc(16rem/var(--orama-base-font-size, 16))));box-shadow:#fff;box-shadow:var(--textarea-shadow,var(--shadow-color-primary,#fff));display:flex;padding:.25rem .25rem .25rem .75rem;padding:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16))) var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16))) var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16))) var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));position:relative}.sc-orama-textarea-s>[slot=adornment-end]{align-items:center;display:flex;justify-content:center}.textarea.sc-orama-textarea{background:none;border:none;color:#151515;color:var(--text-color-primary,#151515);font-family:inherit;font-size:1rem;font-size:var(--font-size-md,calc(16rem/var(--orama-base-font-size, 16)));font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);left:0;line-height:1.5;line-height:var(--font-line-height-m,1.5);margin:0;outline:none;padding:0;resize:none;right:0;transition:height .1s;width:100%}@media (min-width:768.02px){.textarea.sc-orama-textarea{font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)));padding:.5rem 0;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16))) 0}}.textarea.sc-orama-textarea::-moz-placeholder{color:#99989d;color:var(--text-color-inactive,#99989d);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:95%}.textarea.sc-orama-textarea::placeholder{color:#99989d;color:var(--text-color-inactive,#99989d);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:95%}.textarea.sc-orama-textarea:focus-visible{border-color:#432d77;border-color:var(--border-color-accent,#432d77);outline:none}.textarea.sc-orama-textarea::-webkit-scrollbar{width:.3em}.textarea.sc-orama-textarea::-webkit-scrollbar-track{background:transparent}.textarea.sc-orama-textarea::-webkit-scrollbar-thumb{background-color:hsla(0,0%,70%,.522);border-radius:1rem;border-radius:var(--border-radius-l,calc(16rem/var(--orama-base-font-size, 16)))}@media (min-width:768.02px){.textarea.sc-orama-textarea{font-size:1rem;font-size:var(--font-size-md,calc(16rem/var(--orama-base-font-size, 16)))}}",Ju,vK=Zr((Ju=class extends Hr{constructor(){super(),this.__registerHost(),this.value="",this.minRows=1,this.autoFocus=!1,this.handleChange=t=>{let r=t.target;this.value||this.syncHeight(),this.value=r.value}}handleAutoFocusChange(){this.autoFocus&&this.textarea.focus()}componetWillLoad(){this.startAdornmentWidth=this.getNamedSlotWidth("adornment-start"),this.endAdornmentWidth=this.getNamedSlotWidth("adornment-end"),this.syncHeight(),this.autoFocus&&this.textarea.focus()}getNamedSlotWidth(t){let r=this.el.querySelector(`slot[name="${t}"]`);if(r){let n=r.assignedElements();if(n.length>0)return n[0].offsetWidth}return 0}handlePropsChange(){this.syncHeight()}getStyleValue(t){return Number.parseInt(t,10)||0}calculateTextareaStyles(){let t=this.textarea,r=window.getComputedStyle(t);if(r.width==="0px")return{outerHeightStyle:0,overflowing:!1};let n=this.shadowTextarea;n.style.width=r.width,n.value=t.value||this.placeholder||"x",n.value.slice(-1)===`
`&&(n.value+=" ");let s=r.boxSizing,o=this.getStyleValue(r.paddingBottom)+this.getStyleValue(r.paddingTop),l=this.getStyleValue(r.borderBottomWidth)+this.getStyleValue(r.borderTopWidth),u=n.scrollHeight;n.value="x";let d=n.scrollHeight,h=u;this.minRows&&(h=Math.max(Number(this.minRows)*d,h)),this.maxRows&&(h=Math.min(Number(this.maxRows)*d,h)),h=Math.max(h,d);let p=h+(s==="border-box"?o+l:0),m=Math.abs(h-u)<=1;return{outerHeightStyle:p,overflowing:m}}syncHeight(){let t=this.calculateTextareaStyles();if(!t)return;let r=t.outerHeightStyle;this.height!==r&&(this.height=r,this.textarea.style.height=`${r}px`),this.textarea.style.overflow=t.overflowing?"hidden":""}getAllProps(){let t={};for(let r=0;r<this.el.attributes.length;r++){let n=this.el.attributes[r];t[n.name]=n.value}return t}render(){return Y(va,{key:"5d11fb96304062ca9861694d682d8e12064bdb1e"},Y("slot",{key:"17fc62c00745e57cdc27e826f5481f4c6f497e3e",name:"adornment-start"}),Y("textarea",Object.assign({key:"016d07bebfb05aa4f547bffbc2afa3dfc88970bc"},this.getAllProps(),{value:this.value,onInput:this.handleChange,ref:g(t=>this.textarea=t,"ref"),rows:Number(this.minRows),style:{height:this.height?`${this.height}px`:void 0,paddingLeft:this.startAdornmentWidth?`${this.startAdornmentWidth}px`:void 0,paddingRight:this.endAdornmentWidth?`${this.endAdornmentWidth}px`:void 0},class:"textarea",placeholder:this.placeholder})),Y("slot",{key:"515eb08d900f216a6e1a70a45287750fb4eec53f",name:"adornment-end"}),Y("textarea",{key:"76d4ec4a7a7ecae613a1dc47beec8716e652acab","aria-hidden":"true",readonly:!0,ref:g(t=>this.shadowTextarea=t,"ref"),tabindex:-1,class:"textarea",style:{visibility:"hidden",position:"absolute",overflow:"hidden",height:"0",top:"0",left:"0",transform:"translateZ(0)",paddingTop:"0",paddingBottom:"0",paddingLeft:this.startAdornmentWidth?`${this.startAdornmentWidth}px`:void 0,paddingRight:this.endAdornmentWidth?`${this.endAdornmentWidth}px`:void 0}}))}get el(){return this}static get watchers(){return{autoFocus:["handleAutoFocusChange"],value:["handlePropsChange"],maxRows:["handlePropsChange"],minRows:["handlePropsChange"]}}static get style(){return bK}},g(Ju,"OramaTextarea"),Ju),[6,"orama-textarea",{value:[1],maxRows:[8,"max-rows"],minRows:[8,"min-rows"],placeholder:[1],autoFocus:[4,"auto-focus"],height:[32],startAdornmentWidth:[32],endAdornmentWidth:[32]},void 0,{autoFocus:["handleAutoFocusChange"],value:["handlePropsChange"],maxRows:["handlePropsChange"],minRows:["handlePropsChange"]}]);function h1(){typeof customElements>"u"||["orama-textarea"].forEach(e=>{switch(e){case"orama-textarea":customElements.get(e)||customElements.define(e,vK);break}})}g(h1,"defineCustomElement");var SK=Object.defineProperty,xK=Object.getOwnPropertyDescriptor,gp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?xK(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&SK(t,r,s),s},"a"),ed,Fi=(ed=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Fi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(ed,"t"),ed);Fi.weightsMap=new Map([["thin",$e`<path d="M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"/>`],["light",$e`<path d="M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"/>`],["regular",$e`<path d="M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"/>`],["bold",$e`<path d="M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"/>`],["fill",$e`<path d="M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"/>`],["duotone",$e`<path d="M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z" opacity="0.2"/><path d="M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"/>`]]);Fi.styles=Pn`
    :host {
      display: contents;
    }
  `;gp([Be({type:String,reflect:!0})],Fi.prototype,"size",2);gp([Be({type:String,reflect:!0})],Fi.prototype,"weight",2);gp([Be({type:String,reflect:!0})],Fi.prototype,"color",2);gp([Be({type:Boolean,reflect:!0})],Fi.prototype,"mirrored",2);Fi=gp([Dn("ph-paper-plane-tilt")],Fi);var wK=Object.defineProperty,CK=Object.getOwnPropertyDescriptor,yp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?CK(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&wK(t,r,s),s},"o"),td,qi=(td=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${qi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(td,"t"),td);qi.weightsMap=new Map([["thin",$e`<path d="M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220ZM160,92H96a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V96A4,4,0,0,0,160,92Zm-4,64H100V100h56Z"/>`],["light",$e`<path d="M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218ZM160,90H96a6,6,0,0,0-6,6v64a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V96A6,6,0,0,0,160,90Zm-6,64H102V102h52Z"/>`],["regular",$e`<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM160,88H96a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V96A8,8,0,0,0,160,88Zm-8,64H104V104h48Z"/>`],["bold",$e`<path d="M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm40-112v56a12,12,0,0,1-12,12H100a12,12,0,0,1-12-12V100a12,12,0,0,1,12-12h56A12,12,0,0,1,168,100Z"/>`],["fill",$e`<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm32,132a4,4,0,0,1-4,4H100a4,4,0,0,1-4-4V100a4,4,0,0,1,4-4h56a4,4,0,0,1,4,4Z"/>`],["duotone",$e`<path d="M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32Zm32,128H96V96h64Z" opacity="0.2"/><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216ZM160,88H96a8,8,0,0,0-8,8v64a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V96A8,8,0,0,0,160,88Zm-8,64H104V104h48Z"/>`]]);qi.styles=Pn`
    :host {
      display: contents;
    }
  `;yp([Be({type:String,reflect:!0})],qi.prototype,"size",2);yp([Be({type:String,reflect:!0})],qi.prototype,"weight",2);yp([Be({type:String,reflect:!0})],qi.prototype,"color",2);yp([Be({type:Boolean,reflect:!0})],qi.prototype,"mirrored",2);qi=yp([Dn("ph-stop-circle")],qi);var $K='orama-chat{background:#fbfbfb;background:var(--background-color-primary,#fbfbfb);height:100%;overflow:hidden}.messages-container-wrapper,orama-chat{display:flex;flex-direction:column;flex-grow:1;position:relative}.messages-container-wrapper{overflow:auto;z-index:1}.messages-container-wrapper::-webkit-scrollbar{width:.3em}.messages-container-wrapper::-webkit-scrollbar-track{background:transparent}.messages-container-wrapper::-webkit-scrollbar-thumb{background-color:hsla(0,0%,70%,.522);border-radius:1rem;border-radius:var(--border-radius-l,calc(16rem/var(--orama-base-font-size, 16)))}.messages-container-wrapper.isEmpty{justify-content:flex-end}.messages-container-wrapper-non-scrollable{display:flex;flex-direction:column;flex-grow:1;overflow:hidden;position:relative;z-index:1}.lock-scroll-on-bottom-button-wrapper{align-items:center;background-color:transparent;background-color:#eee9f6;background-color:var(--background-color-tertiary,#eee9f6);border:none;border-radius:.75rem;border-radius:var(--radius-m,calc(12rem/var(--orama-base-font-size, 16)));bottom:0;color:#99989d;color:var(--icon-color-tertiary,#99989d);cursor:pointer;display:flex;font-family:font("primary");font-family:var(--font-primary,font("primary"));height:-moz-fit-content;height:fit-content;justify-content:center;left:50%;margin:.25rem;margin:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)));padding:.5rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));position:absolute;transform:translateX(-50%);width:-moz-fit-content;width:fit-content;z-index:2}.chat-form-wrapper{padding:.75rem 1rem;padding:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16))) var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)))}.chat-input{margin-bottom:.5rem;margin-bottom:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)))}.disclaimer-text{color:#838289;color:var(--text-color-secondary,#838289);margin-top:.25rem;margin-top:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)));opacity:.8}.suggestions-wrapper{display:flex;flex-direction:column;flex-grow:1;justify-content:end;overflow-x:auto}orama-logo-icon{position:absolute;right:50%;top:50%;transform:translate(50%,-50%);z-index:-1}',kK=function(e,t,r,n){var s=arguments.length,o=s<3?t:n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(l=e[u])&&(o=(s<3?l(o):s>3?l(t,r,o):l(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},EK=1,rd,OA=Zr((rd=class extends Hr{constructor(){super(),this.__registerHost(),this.answerGenerated=Br(this,"answerGenerated"),this.clearChat=Br(this,"clearChat"),this.startConversation=Br(this,"startConversation"),this.placeholder="Ask me anything",this.sourceBaseUrl="",this.showClearChat=!0,this.focusInput=!1,this.disclaimer="Orama can make mistakes. Please verify the information.",this.inputValue="",this.showGoToBottomButton=!1,this.triggerSendQuestion=(t,r)=>{if(this.chatStore.state.chatService===null)throw new Error("Chat Service is not initialized");this.startConversation.emit({userPrompt:t,systemPrompts:this.systemPrompts}),this.chatStore.state.chatService.sendQuestion(t,r,this.systemPrompts,{onAnswerGeneratedCallback:g(n=>this.answerGenerated.emit(n),"onAnswerGeneratedCallback")})},this.isScrolling=!1,this.prevScrollTop=0,this.scrollTarget=0,this.pendingNewInteractionSideEffects=!1,this.lockScrollOnBottom=!1,this.isDisconnecting=!1,this.handleFocus=()=>{if(this.focusInput){let t=this.textareaRef.querySelector("textarea");if(!t)return;requestAnimationFrame(()=>{t.focus()})}},this.calculateIsScrollOnBottom=()=>{let t=this.messagesContainerRef.scrollHeight-this.messagesContainerRef.clientHeight;return this.messagesContainerRef.scrollTop+EK>=t},this.scrollToBottom=(t={animated:!0,onScrollDone:g(()=>{},"onScrollDone")})=>{if(!this.messagesContainerRef)return;if(!t.animated){this.messagesContainerRef.scrollTop=this.messagesContainerRef.scrollHeight,t.onScrollDone();return}this.isScrolling=!0;let r=performance.now(),n=this.messagesContainerRef.scrollTop,s=300,o=g(l=>{if(!this.messagesContainerRef||!this.isScrolling)return;let u=this.messagesContainerRef.scrollHeight-this.messagesContainerRef.clientHeight,d=l-r,h=Math.min(1,d/s),p=this.easeInOutQuad(h),m=n+(u-n)*p;this.messagesContainerRef.scrollTo(0,m),d<s?requestAnimationFrame(o):(this.isScrolling=!1,t.onScrollDone())},"animateScroll");requestAnimationFrame(o)},this.easeInOutQuad=t=>t<.5?2*t*t:-1+(4-2*t)*t,this.recalculateGoBoToBottomButton=()=>{if(!this.calculateIsContainerOverflowing()){this.showGoToBottomButton=!1;return}this.showGoToBottomButton=!this.calculateIsScrollOnBottom()},this.handleWheel=t=>{if(!this.calculateIsContainerOverflowing()){this.lockScrollOnBottom=!1,this.showGoToBottomButton=!1;return}let r=this.messagesContainerRef.scrollTop;this.showGoToBottomButton=!this.calculateIsScrollOnBottom(),this.lockScrollOnBottom=!this.showGoToBottomButton,this.showGoToBottomButton||(this.isScrolling=!1),this.prevScrollTop=r},this.setSources=()=>{this.chatStore.state.sourceBaseURL=this.sourceBaseUrl,this.chatStore.state.sourcesMap=this.sourcesMap,this.chatStore.state.linksTarget=this.linksTarget,this.chatStore.state.linksRel=this.linksRel},this.handleSubmit=t=>{if(t.preventDefault(),this.chatStore.state.chatService===null)throw new Error("Chat Service is not initialized");this.startConversation.emit({userPrompt:this.inputValue,systemPrompts:this.systemPrompts}),this.chatStore.state.chatService.sendQuestion(this.inputValue,this.relatedQueries,this.systemPrompts,{onAnswerGeneratedCallback:g(r=>this.answerGenerated.emit(r),"onAnswerGeneratedCallback")}),this.chatStore.state.prompt=this.inputValue,this.inputValue=""},this.handleAbortAnswerClick=()=>{this.chatStore.state.chatService.abortAnswer()},this.handleSuggestionClick=(t,r)=>{if(this.chatStore.state.chatService===null)throw new Error("Chat Service is not initialized");this.startConversation.emit({userPrompt:t,systemPrompts:this.systemPrompts}),this.chatStore.state.chatService.sendQuestion(t,r,void 0,{onAnswerGeneratedCallback:g(n=>this.answerGenerated.emit(n),"onAnswerGeneratedCallback")}),this.inputValue=""},this.handleClearChat=()=>{this.chatStore.state.chatService.resetChat(),this.clearChat.emit()},this.calculateIsContainerOverflowing=()=>this.messagesContainerRef?this.messagesContainerRef.scrollHeight>this.messagesContainerRef.clientHeight:!1}handleSourceItemClick(t){}handleDefaultTermChange(){var t;this.defaultTerm&&((t=this.chatStore.state.chatService)===null||t===void 0||t.sendQuestion(this.defaultTerm,this.relatedQueries,this.systemPrompts,{onAnswerGeneratedCallback:g(r=>this.answerGenerated.emit(r),"onAnswerGeneratedCallback")}))}focusInputWatcher(){this.handleFocus()}promptWatcher(t,r){t!==r&&(this.triggerSendQuestion(t,this.relatedQueries),this.chatStore.state.prompt=t)}handleTextDictionaryChange(){var t,r;!((t=this.dictionary)===null||t===void 0)&&t.chatPlaceholder&&(this.placeholder=this.dictionary.chatPlaceholder),!((r=this.dictionary)===null||r===void 0)&&r.disclaimer&&(this.disclaimer=this.dictionary.disclaimer),console.log("Updated from dictionary:",{placeholder:this.placeholder,disclaimer:this.disclaimer,dictionary:this.dictionary})}componentWillLoad(){var t;this.handleTextDictionaryChange(),!this.disclaimer&&!((t=this.dictionary)===null||t===void 0)&&t.disclaimer?this.disclaimer=this.dictionary.disclaimer:this.disclaimer||(this.disclaimer="Orama can make mistakes. Please verify the information."),this.chatStore.on("set",(r,n,s)=>{r==="interactions"&&(s==null?void 0:s.length)<(n==null?void 0:n.length)&&(this.lockScrollOnBottom=!1,this.pendingNewInteractionSideEffects=!0)})}getText(t){let r={chatPlaceholder:this.placeholder}[t];return r!==void 0?r:Qd(t,this.dictionary)}componentDidLoad(){var t;this.messagesContainerRef.addEventListener("wheel",this.handleWheel),this.setSources(),this.handleFocus(),this.prompt&&((t=this.chatStore.state)===null||t===void 0?void 0:t.prompt)!==this.prompt&&(this.triggerSendQuestion(this.prompt),this.chatStore.state.prompt=this.prompt),this.scrollableContainerResizeObserver=new ResizeObserver(()=>{this.recalculateGoBoToBottomButton()}),this.scrollableContainerResizeObserver.observe(this.messagesContainerRef),this.nonScrollableContainerResizeObserver=new ResizeObserver(()=>{if(this.pendingNewInteractionSideEffects){this.pendingNewInteractionSideEffects=!1,this.lockScrollOnBottom=!1,this.scrollToBottom({animated:!0,onScrollDone:g(()=>{this.recalculateGoBoToBottomButton()},"onScrollDone")});return}this.lockScrollOnBottom&&!this.isScrolling&&this.scrollToBottom({animated:!1,onScrollDone:g(()=>{this.recalculateGoBoToBottomButton()},"onScrollDone")}),this.recalculateGoBoToBottomButton()}),this.nonScrollableContainerResizeObserver.observe(this.nonScrollableMessagesContainerRef)}disconnectedCallback(){var t,r,n;this.isDisconnecting=!0,(t=this.messagesContainerRef)===null||t===void 0||t.removeEventListener("wheel",this.handleWheel),(r=this.scrollableContainerResizeObserver)===null||r===void 0||r.disconnect(),(n=this.nonScrollableContainerResizeObserver)===null||n===void 0||n.disconnect(),this.clearChatOnDisconnect&&this.chatStore&&this.chatStore.state&&(this.chatStore.state.interactions=[])}render(){var t,r,n;let s=(t=this.chatStore.state.interactions)===null||t===void 0?void 0:t[this.chatStore.state.interactions.length-1],o=s==null?void 0:s.status,l=((r=this.chatStore.state.interactions)===null||r===void 0?void 0:r.length)>0;return Y(va,{key:"d8f4f1eafe32d3302f009099297fa2aa21767105"},this.showClearChat&&l&&Y("div",{key:"e8e9a719801cc48f1bd65b99173d2dee1fb0e3f9",class:"header"},Y("button",{key:"caba4adf41a26ec35a8380d0b0df2eaa25772dce",type:"button",onClick:this.handleClearChat},Y("ph-arrow-clockwise",{key:"42dccc8772a5a5bf6e7e83085a588968bd9774bc",weight:"fill",size:"14"})," ",this.getText("clearChat"))),Y("div",{key:"250f3f1abd7448cc9dcfd9e7d26d065f80f01813",class:"messages-container-wrapper-non-scrollable"},Y("div",{key:"cbb11338d6347df3e3ef211c39cbfc84366aa765",class:`messages-container-wrapper ${l?"":"isEmpty"}`,ref:g(u=>this.messagesContainerRef=u,"ref")},Y("div",{key:"7462c8f6833caa443fe77d6e6a8016cabec50c95",ref:g(u=>this.nonScrollableMessagesContainerRef=u,"ref")},l?Y("orama-chat-messages-container",{interactions:this.chatStore.state.interactions,chatMarkdownLinkTitle:this.chatMarkdownLinkTitle,chatMarkdownLinkHref:this.chatMarkdownLinkHref}):null,l?null:Y(zo,null,Y("slot",{name:"chat-empty-state"}),!!(!((n=this.suggestions)===null||n===void 0)&&n.length)&&Y("div",{class:"suggestions-wrapper"},Y("orama-suggestions",{suggestions:this.suggestions,suggestionClicked:this.handleSuggestionClick}))))),this.showGoToBottomButton&&Y("button",{key:"4ba702c4b2ef9e7d54d344fed97b35feae00ecdf",class:"lock-scroll-on-bottom-button-wrapper",type:"button",onClick:g(()=>{this.lockScrollOnBottom=!0,this.scrollToBottom({animated:!0,onScrollDone:g(()=>this.recalculateGoBoToBottomButton(),"onScrollDone")})},"onClick")},Y("ph-arrow-down",{key:"496705c2eeea58d202405e2eb2af9a60fdaca2ee",size:"18px"}))),Y("div",{key:"afd6923df9fc9cd80af8efe9ad6fdc483f2f62c1",class:"chat-form-wrapper"},Y("form",{key:"2119ea73c971f5c5f7634b7a140fd39b112ad200",onSubmit:this.handleSubmit},Y("div",{key:"f28bfa0bd6575504bf4f9eb696b3eb13449afc25",class:"chat-input"},Y("orama-textarea",{key:"3a62287fde2cd13bdd6237d7b853f26e2f267686",ref:g(u=>this.textareaRef=u,"ref"),autoFocus:this.focusInput,maxRows:4,value:this.inputValue,onKeyDown:g(u=>{u.key==="Enter"&&!u.shiftKey&&(this.handleSubmit(u),u.preventDefault())},"onKeyDown"),onInput:g(u=>{this.inputValue=u.target.value},"onInput"),placeholder:this.placeholder},Y("div",{key:"2437be786888bdcc8b2983cb8a17411a03b3aeab",slot:"adornment-end"},[ra.streaming,ra.rendering,ra.loading].includes(o)?Y("orama-button",{type:"submit",onClick:this.handleAbortAnswerClick,onKeyDown:this.handleAbortAnswerClick,disabled:o!==ra.rendering,"aria-label":"Abort answer"},Y("ph-stop-circle",{size:16})):Y("orama-button",{type:"submit",onClick:this.handleSubmit,onKeyDown:this.handleSubmit,disabled:!this.inputValue,"aria-label":"Send question"},Y("ph-paper-plane-tilt",{size:16})))))),this.disclaimer&&Y("orama-text",{key:"a65926093bda5820a477545da7ede16fd36d7c74",as:"p",styledAs:"small",align:"center",class:"disclaimer-text"},this.disclaimer)))}static get watchers(){return{defaultTerm:["handleDefaultTermChange"],focusInput:["focusInputWatcher"],prompt:["promptWatcher"],dictionary:["handleTextDictionaryChange"]}}static get style(){return $K}},g(rd,"OramaChat"),rd),[4,"orama-chat",{placeholder:[1],sourceBaseUrl:[1,"source-base-url"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],sourcesMap:[16,"sources-map"],showClearChat:[4,"show-clear-chat"],defaultTerm:[1,"default-term"],focusInput:[4,"focus-input"],suggestions:[16],relatedQueries:[2,"related-queries"],prompt:[1],systemPrompts:[16,"system-prompts"],clearChatOnDisconnect:[4,"clear-chat-on-disconnect"],dictionary:[16],disclaimer:[1],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"],inputValue:[32],showGoToBottomButton:[32]},[[0,"sourceItemClick","handleSourceItemClick"]],{defaultTerm:["handleDefaultTermChange"],focusInput:["focusInputWatcher"],prompt:["promptWatcher"],dictionary:["handleTextDictionaryChange"]}]);kK([no("chat")],OA.prototype,"chatStore",void 0);function Nx(){typeof customElements>"u"||["orama-chat","orama-button","orama-chat-assistent-message","orama-chat-messages-container","orama-chat-user-message","orama-dots-loader","orama-markdown","orama-sources","orama-suggestions","orama-text","orama-textarea"].forEach(e=>{switch(e){case"orama-chat":customElements.get(e)||customElements.define(e,OA);break;case"orama-button":customElements.get(e)||Ko();break;case"orama-chat-assistent-message":customElements.get(e)||dp();break;case"orama-chat-messages-container":customElements.get(e)||f1();break;case"orama-chat-user-message":customElements.get(e)||mp();break;case"orama-dots-loader":customElements.get(e)||Wd();break;case"orama-markdown":customElements.get(e)||Ql();break;case"orama-sources":customElements.get(e)||Yd();break;case"orama-suggestions":customElements.get(e)||Xl();break;case"orama-text":customElements.get(e)||Bs();break;case"orama-textarea":customElements.get(e)||h1();break}})}g(Nx,"defineCustomElement");var _K=Object.defineProperty,TK=Object.getOwnPropertyDescriptor,bp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?TK(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&_K(t,r,s),s},"o"),nd,Gi=(nd=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Gi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(nd,"t"),nd);Gi.weightsMap=new Map([["thin",$e`<path d="M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z"/>`],["light",$e`<path d="M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z"/>`],["regular",$e`<path d="M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"/>`],["bold",$e`<path d="M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z"/>`],["fill",$e`<path d="M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z"/>`],["duotone",$e`<path d="M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z" opacity="0.2"/><path d="M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z"/>`]]);Gi.styles=Pn`
    :host {
      display: contents;
    }
  `;bp([Be({type:String,reflect:!0})],Gi.prototype,"size",2);bp([Be({type:String,reflect:!0})],Gi.prototype,"weight",2);bp([Be({type:String,reflect:!0})],Gi.prototype,"color",2);bp([Be({type:Boolean,reflect:!0})],Gi.prototype,"mirrored",2);Gi=bp([Dn("ph-arrow-clockwise")],Gi);var AK=":host{display:flex;flex-grow:1}.header{background:#fbfbfb;background:var(--background-color-primary,#fbfbfb);padding:.75rem 1rem;padding:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16))) var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)));text-align:end;transition:opacity .2s}.header.hidden button{opacity:0;pointer-events:none}.header button{align-items:center;background-color:transparent;border:none;border-radius:.5rem;border-radius:var(--radius-s,calc(8rem/var(--orama-base-font-size, 16)));cursor:pointer;display:inline-flex;font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)));gap:.25rem;gap:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)));padding:.125rem .25rem;padding:var(--spacing-2xs,calc(2rem/var(--orama-base-font-size, 16))) var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)));transition:color .2s;transition:background-color .2s}.header button,.header button:hover{color:#99989d;color:var(--text-color-tertiary,#99989d)}.header button:hover{background-color:#eee9f6;background-color:var(--background-color-tertiary,#eee9f6)}",ad,MA=Zr((ad=class extends Hr{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.answerGenerated=Br(this,"answerGenerated"),this.clearChat=Br(this,"clearChat"),this.startConversation=Br(this,"startConversation"),this.answerSourceClick=Br(this,"answerSourceClick"),this.chatMarkdownLinkClicked=Br(this,"chatMarkdownLinkClicked"),this.autoFocus=!0,this.clearChatOnDisconnect=!0,this.dictionary={},this.colorScheme="light",this.componentID=Q0("chat-box"),this.systemScheme="light",this.onPrefersColorSchemeChange=t=>{this.systemScheme=t.matches?"dark":"light",this.updateTheme()}}getText(t){let r={chatPlaceholder:this.placeholder};return Qd(t,this.dictionary,r)}watchHandler(){this.chatStore&&(this.startChatService(),this.updateTheme())}handleTextDictionaryChange(t){if(typeof t=="string")try{this.dictionary=JSON.parse(t)}catch(r){console.error("Error parsing dictionary:",r)}}componentWillLoad(){this.htmlElement.id=this.componentID,this.schemaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.systemScheme=this.schemaQuery.matches?"dark":"light",this.updateTheme(),this.schemaQuery.addEventListener("change",this.onPrefersColorSchemeChange),this.startChatService()}componentDidLoad(){this.htmlElement.id=this.componentID,this.startChatService()}getOldOramaClient(){if(!this.oramaCoreClientInstance)return this.clientInstance?this.clientInstance:XS(this.index)}startChatService(){if(!this.index&&!this.clientInstance&&!this.oramaCoreClientInstance){console.error("Missing Index, ClientInstance or OramaCoreClientInstance");return}QS(this.htmlElement,this.index,this.clientInstance,this.oramaCoreClientInstance);let t=this.getOldOramaClient();this.chatStore.state.chatService=new AA(t,this.oramaCoreClientInstance,this.chatStore),this.chatStore.state.chatService||console.error("Failed to initialize chat service")}updateTheme(){let t=X0(this.htmlElement,this.colorScheme,this.systemScheme);J0(this.htmlElement,t,this.themeConfig)}connectedCallback(){this.chatStore=ig("chat",this.componentID)}disconnectedCallback(){var t;T5(this.componentID),(t=this.schemaQuery)===null||t===void 0||t.removeEventListener("change",this.onPrefersColorSchemeChange)}render(){var t,r;if(!this.chatStore.state.chatService)return null;let n=this.colorScheme==="system"?this.systemScheme:this.colorScheme||"dark";return Y(va,{class:`theme-${n}`},Y("orama-chat",{placeholder:this.getText("chatPlaceholder"),sourceBaseUrl:this.sourceBaseUrl,sourcesMap:this.sourcesMap,suggestions:this.suggestions,relatedQueries:this.relatedQueries,focusInput:this.autoFocus,systemPrompts:this.systemPrompts,prompt:this.prompt,clearChatOnDisconnect:this.clearChatOnDisconnect,chatMarkdownLinkTitle:this.chatMarkdownLinkTitle,chatMarkdownLinkHref:this.chatMarkdownLinkHref,dictionary:this.dictionary,disclaimer:this.disclaimer},!!(!((r=(t=this.chatStore.state)===null||t===void 0?void 0:t.interactions)===null||r===void 0)&&r.length)&&Y("div",{slot:"chat-empty-state"},Y("slot",{name:"empty-state"}))))}get htmlElement(){return this}static get watchers(){return{index:["watchHandler"],themeConfig:["watchHandler"],colorScheme:["watchHandler"],oramaCoreClientInstance:["watchHandler"],clientInstance:["watchHandler"],dictionary:["handleTextDictionaryChange"]}}static get style(){return AK}},g(ad,"ChatBox"),ad),[1,"orama-chat-box",{index:[16],clientInstance:[16,"client-instance"],oramaCoreClientInstance:[16,"orama-core-client-instance"],sourceBaseUrl:[1,"source-base-url"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],placeholder:[1],sourcesMap:[16,"sources-map"],suggestions:[16],relatedQueries:[2,"related-queries"],autoFocus:[4,"auto-focus"],systemPrompts:[16,"system-prompts"],prompt:[1],clearChatOnDisconnect:[4,"clear-chat-on-disconnect"],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"],dictionary:[16],disclaimer:[1],themeConfig:[16,"theme-config"],colorScheme:[1,"color-scheme"],componentID:[32],systemScheme:[32]},void 0,{index:["watchHandler"],themeConfig:["watchHandler"],colorScheme:["watchHandler"],oramaCoreClientInstance:["watchHandler"],clientInstance:["watchHandler"],dictionary:["handleTextDictionaryChange"]}]);function NA(){typeof customElements>"u"||["orama-chat-box","orama-button","orama-chat","orama-chat-assistent-message","orama-chat-messages-container","orama-chat-user-message","orama-dots-loader","orama-markdown","orama-sources","orama-suggestions","orama-text","orama-textarea"].forEach(e=>{switch(e){case"orama-chat-box":customElements.get(e)||customElements.define(e,MA);break;case"orama-button":customElements.get(e)||Ko();break;case"orama-chat":customElements.get(e)||Nx();break;case"orama-chat-assistent-message":customElements.get(e)||dp();break;case"orama-chat-messages-container":customElements.get(e)||f1();break;case"orama-chat-user-message":customElements.get(e)||mp();break;case"orama-dots-loader":customElements.get(e)||Wd();break;case"orama-markdown":customElements.get(e)||Ql();break;case"orama-sources":customElements.get(e)||Yd();break;case"orama-suggestions":customElements.get(e)||Xl();break;case"orama-text":customElements.get(e)||Bs();break;case"orama-textarea":customElements.get(e)||h1();break}})}g(NA,"defineCustomElement$1");var RK=MA,OK=NA,LA=g(({name:e,size:t=24,color:r="black"})=>Y("div",{innerHTML:g(n=>({star:`<svg xmlns="http://www.w3.org/2000/svg" width=${t} height=${t} viewBox="0 0 16 16" fill="none">
          <path d="M8.1875 0.6875L9.12531 3.22189C9.78366 5.00107 11.1864 6.40384 12.9656 7.06219L15.5 8L12.9656 8.93781C11.1864 9.59616 9.78366 10.9989 9.12531 12.7781L8.1875 15.3125L7.24969 12.7781C6.59134 10.9989 5.18857 9.59616 3.40939 8.93781L0.875 8L3.40939 7.06219C5.18857 6.40384 6.59134 5.00107 7.24969 3.22189L8.1875 0.6875Z" fill="url(#paint0_radial_1183_175)"/>
          <defs>
          <radialGradient id="paint0_radial_1183_175" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(16.5 -9.5) rotate(141.053) scale(24.2042)">
          <stop stop-color="#6A4BB2"/>
          <stop offset="1"/>
          </radialGradient>
          </defs>
        </svg>`,starFour:`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
        <path d="M14.3434 7.06266L10.379 5.62516L8.93717 1.65641C8.86613 1.46503 8.73823 1.29998 8.57064 1.18342C8.40305 1.06687 8.20381 1.00439 7.99967 1.00439C7.79554 1.00439 7.59629 1.06687 7.4287 1.18342C7.26111 1.29998 7.13321 1.46503 7.06217 1.65641L5.62467 5.62078L1.65592 7.06266C1.46454 7.1337 1.29949 7.2616 1.18294 7.42919C1.06638 7.59678 1.00391 7.79602 1.00391 8.00016C1.00391 8.20429 1.06638 8.40354 1.18294 8.57113C1.29949 8.73872 1.46454 8.86662 1.65592 8.93766L5.6203 10.3752L7.06217 14.3439C7.13321 14.5353 7.26111 14.7003 7.4287 14.8169C7.59629 14.9334 7.79554 14.9959 7.99967 14.9959C8.20381 14.9959 8.40305 14.9334 8.57064 14.8169C8.73823 14.7003 8.86613 14.5353 8.93717 14.3439L10.379 10.3789L14.3434 8.93766C14.5348 8.86662 14.6999 8.73872 14.8164 8.57113C14.933 8.40354 14.9954 8.20429 14.9954 8.00016C14.9954 7.79602 14.933 7.59678 14.8164 7.42919C14.6999 7.2616 14.5348 7.1337 14.3434 7.06266ZM10.0353 9.43766C9.89849 9.48763 9.77424 9.56687 9.67125 9.66986C9.56826 9.77285 9.48901 9.8971 9.43905 10.0339L7.99967 13.9939L6.56217 10.0358C6.51224 9.89844 6.4328 9.7737 6.32946 9.67037C6.22613 9.56703 6.10139 9.48759 5.96405 9.43766L2.00592 8.00016L5.96405 6.56266C6.10139 6.51272 6.22613 6.43329 6.32946 6.32995C6.4328 6.22661 6.51224 6.10188 6.56217 5.96453L7.99967 2.00641L9.43717 5.96453C9.48714 6.10134 9.56639 6.22559 9.66938 6.32858C9.77237 6.43157 9.89661 6.51082 10.0334 6.56078L13.9915 7.99828L10.0353 9.43766Z" />
      </svg>`})[n]||"","getIconSvg")(e),style:{width:`${t}px`,height:`${t}px`,fill:r,display:"inline-block",verticalAlign:"middle"}}),"Icon"),MK=Object.defineProperty,NK=Object.getOwnPropertyDescriptor,vp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?NK(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&MK(t,r,s),s},"a"),sd,Ki=(sd=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Ki.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(sd,"t"),sd);Ki.weightsMap=new Map([["thin",$e`<path d="M228,56A100.11,100.11,0,0,1,128,156H41.66l41.17,41.17a4,4,0,0,1-5.66,5.66l-48-48a4,4,0,0,1,0-5.66l48-48a4,4,0,0,1,5.66,5.66L41.66,148H128a92.1,92.1,0,0,0,92-92,4,4,0,0,1,8,0Z"/>`],["light",$e`<path d="M230,56A102.12,102.12,0,0,1,128,158H46.49l37.75,37.76a6,6,0,1,1-8.48,8.48l-48-48a6,6,0,0,1,0-8.48l48-48a6,6,0,0,1,8.48,8.48L46.49,146H128a90.1,90.1,0,0,0,90-90,6,6,0,0,1,12,0Z"/>`],["regular",$e`<path d="M232,56A104.11,104.11,0,0,1,128,160H51.31l34.35,34.34a8,8,0,0,1-11.32,11.32l-48-48a8,8,0,0,1,0-11.32l48-48a8,8,0,0,1,11.32,11.32L51.31,144H128a88.1,88.1,0,0,0,88-88,8,8,0,0,1,16,0Z"/>`],["bold",$e`<path d="M236,56A108.12,108.12,0,0,1,128,164H61l27.52,27.51a12,12,0,0,1-17,17l-48-48a12,12,0,0,1,0-17l48-48a12,12,0,0,1,17,17L61,140h67a84.09,84.09,0,0,0,84-84,12,12,0,0,1,24,0Z"/>`],["fill",$e`<path d="M232,56A104.11,104.11,0,0,1,128,160H88v40a8,8,0,0,1-13.66,5.66l-48-48a8,8,0,0,1,0-11.32l48-48A8,8,0,0,1,88,104v40h40a88.1,88.1,0,0,0,88-88,8,8,0,0,1,16,0Z"/>`],["duotone",$e`<path d="M80,104v96L32,152Z" opacity="0.2"/><path d="M224,48a8,8,0,0,0-8,8,88.1,88.1,0,0,1-88,88H88V104a8,8,0,0,0-13.66-5.66l-48,48a8,8,0,0,0,0,11.32l48,48A8,8,0,0,0,88,200V160h40A104.11,104.11,0,0,0,232,56,8,8,0,0,0,224,48ZM72,180.69,43.31,152,72,123.31Z"/>`]]);Ki.styles=Pn`
    :host {
      display: contents;
    }
  `;vp([Be({type:String,reflect:!0})],Ki.prototype,"size",2);vp([Be({type:String,reflect:!0})],Ki.prototype,"weight",2);vp([Be({type:String,reflect:!0})],Ki.prototype,"color",2);vp([Be({type:Boolean,reflect:!0})],Ki.prototype,"mirrored",2);Ki=vp([Dn("ph-arrow-bend-down-left")],Ki);var LK='@keyframes shine{0%{background-position:0 50%}to{background-position:150%;opacity:0}}@keyframes animBg{0%{background:#eee9f6;background:var(--background-color-tertiary,#eee9f6)}70%{background:#eee9f6;background:var(--background-color-tertiary,#eee9f6)}to{background:transparent}}@keyframes steam{0%{background-position:0 50%}50%{background-position:75% 50%}to{background-position:0 50%}}.sc-orama-chat-button-h{border-bottom:1px solid #dadada;border-bottom:1px solid var(--border-color-primary,#dadada);padding:.5rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)))}.chat-button.sc-orama-chat-button{align-items:center;background:transparent;border:1px solid transparent;border-radius:.5rem;border-radius:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));color:#151515;color:var(--text-color-primary,#151515);cursor:pointer;display:flex;font-size:1rem;font-size:var(--font-size-md,calc(16rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);gap:.5rem;gap:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));line-height:1.5;line-height:var(--font-line-height-m,1.5);margin:0;padding:.5rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));position:relative;width:100%}@media (min-width:768.02px){.chat-button.sc-orama-chat-button{font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)))}}@media (hover:hover){.chat-button.sc-orama-chat-button:hover{background:#eee9f6;background:var(--background-color-tertiary,#eee9f6)}}.chat-button.sc-orama-chat-button:focus-visible{border:1px solid #432d77;border:1px solid var(--border-color-accent,#432d77);outline:none}.chat-button.is-active.sc-orama-chat-button{background:#eee9f6;background:var(--background-color-tertiary,#eee9f6)}.chat-button.is-highlighted.sc-orama-chat-button:after,.chat-button.is-highlighted.sc-orama-chat-button:before{animation:shine 1s linear 1 forwards;background:linear-gradient(90deg,transparent 0,transparent 20%,#432d77 40%,#432d77 60%,transparent 80%,transparent);background:linear-gradient(to right,var(--chat-button-border-color-gradientOne,transparent) 0,var(--chat-button-border-color-gradientTwo,transparent) 20%,var(--chat-button-border-color-gradientThree,#432d77) 40%,var(--chat-button-border-color-gradientFour,#432d77) 60%,var(--chat-button-border-color-gradientFive,transparent) 80%,var(--chat-button-border-color-gradientSix,transparent) 100%);background-size:150% auto;border-radius:.5rem;border-radius:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));content:"";display:block;height:calc(100% + 4px);left:-2px;overflow:hidden;position:absolute;top:-2px;width:calc(100% + 4px);z-index:-1}.chat-button.is-highlighted.sc-orama-chat-button:after{filter:blur(3px);height:100%;width:100%}.icon-star.sc-orama-chat-button{align-items:center;background:linear-gradient(79deg,#432d77 -45%,transparent 75%);background:linear-gradient(79deg,var(--chat-button-background-color-gradientOne,#432d77) -45%,var(--chat-button-backgroun-color-gradientTwo,transparent) 75%);background-size:200% auto;border-radius:.375rem;border-radius:var(--radius-xs,calc(6rem/var(--orama-base-font-size, 16)));display:flex;padding:.5rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)))}.is-highlighted.sc-orama-chat-button .icon-star.sc-orama-chat-button{animation:steam 1.4s linear 1 forwards}.icon-enter.sc-orama-chat-button{align-items:center;border:.7px solid #dadada;border:.7px solid var(--border-color-primary,#dadada);border-radius:.375rem;border-radius:var(--radius-xs,calc(6rem/var(--orama-base-font-size, 16)));display:flex;justify-self:flex-end;padding:.25rem;padding:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)))}.button-label.sc-orama-chat-button{flex-grow:1;text-align:left}',id,PK=Zr((id=class extends Hr{constructor(){super(),this.__registerHost(),this.active=!1,this.highlight=!1}highlightButton(){this.active&&!this.highlight&&(this.highlight=!0)}render(){let t=["label","onClick","class"],r=rp(this.el,t);return Y(va,{key:"cc45b1355726ff5bf65b39f4243f6f0d227d0c80",class:this.class},Y("button",Object.assign({key:"4a312f0e559412dee000149b4f3cf74cfe858c0e",class:{"chat-button":!0,"is-active":this.active,"is-highlighted":this.highlight}},r,{type:"button"}),Y("span",{key:"9a10019c4b275d05978ecad9abcffb058d782943",class:"icon-star"},Y(LA,{key:"82edfc1787227fb15f3fefedecf57e2a0e74d8b3",name:"star",size:16})),Y("span",{key:"13e4d54e9296f513735f6081caaf060cc9511905",class:"button-label"},this.label),Y("span",{key:"3c98e473b7b88034a316590bae6de3d1c1ca4dd4",class:"icon-enter"},Y("ph-arrow-bend-down-left",{key:"36f9ce444b33abaef5cfdf81d0d0d2b199f8590f",size:12}))))}get el(){return this}static get watchers(){return{active:["highlightButton"],highlight:["highlightButton"]}}static get style(){return LK}},g(id,"OramaChatButton"),id),[2,"orama-chat-button",{label:[1],active:[4],highlight:[1028],class:[1]},void 0,{active:["highlightButton"],highlight:["highlightButton"]}]);function PA(){typeof customElements>"u"||["orama-chat-button"].forEach(e=>{switch(e){case"orama-chat-button":customElements.get(e)||customElements.define(e,PK);break}})}g(PA,"defineCustomElement");var IK=".embed.sc-orama-embed{background-color:#fbfbfb;background-color:var(--background-color-primary,#fbfbfb);border:1px solid #dadada;border:1px solid var(--border-color-primary,#dadada);border-radius:.75rem;border-radius:var(--radius-m,calc(12rem/var(--orama-base-font-size, 16)));box-sizing:border-box;display:flex;flex-direction:column;height:100%;inset:0;margin:0 auto;max-height:100%;min-height:25rem;min-height:calc(400rem/var(--orama-base-font-size, 16));overflow:hidden;padding:0;width:100%}@media (min-width:1024.02px){.embed.sc-orama-embed{background-color:#fff;background-color:var(--background-color-secondary,#fff)}.embed.sc-orama-embed orama-input.sc-orama-embed{border-radius:0;margin:0;padding:0}.embed.sc-orama-embed input[type=search].sc-orama-embed{border-radius:.75rem .75rem 0 0;border-radius:var(--radius-m,calc(12rem/var(--orama-base-font-size, 16))) var(--radius-m,calc(12rem/var(--orama-base-font-size, 16))) 0 0}}",od,DK=Zr((od=class extends Hr{constructor(){super(),this.__registerHost()}render(){return Y("div",{key:"c4f1a3153fdf088695965527a5a19858b758e352",class:"embed"},Y("slot",{key:"59d5f6aba110055ed97309465a5e77192bc5359f"}))}static get style(){return IK}},g(od,"OramaEmbed"),od),[6,"orama-embed"]);function IA(){typeof customElements>"u"||["orama-embed"].forEach(e=>{switch(e){case"orama-embed":customElements.get(e)||customElements.define(e,DK);break}})}g(IA,"defineCustomElement");var zK=".facets-list.sc-orama-facets{align-items:center;-moz-column-gap:.5rem;column-gap:.5rem;-moz-column-gap:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));column-gap:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));display:flex;list-style:none;margin:0;overflow-x:auto;padding:1rem;padding:var(--radius-l,calc(16rem/var(--orama-base-font-size, 16)));scroll-snap-type:y mandatory}.facets-list.sc-orama-facets::-webkit-scrollbar{background-color:transparent;height:0}@media (min-width:1024.02px){.facets-list.sc-orama-facets{padding:1rem .25rem .5rem;padding:var(--radius-l,calc(16rem/var(--orama-base-font-size, 16))) var(--radius-xs,calc(4rem/var(--orama-base-font-size, 16))) var(--radius-s,calc(8rem/var(--orama-base-font-size, 16)))}}.facet.sc-orama-facets{scroll-snap-align:start}.facet-button.sc-orama-facets{background-color:transparent;border:1px solid #dadada;border:1px solid var(--border-color-primary,#dadada);border-radius:2.5rem;border-radius:var(--radius-3xl,calc(40rem/var(--orama-base-font-size, 16)));color:#151515;color:var(--text-color-primary,#151515);-moz-column-gap:.25rem;column-gap:.25rem;-moz-column-gap:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)));column-gap:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)));cursor:pointer;display:flex;font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);line-height:1.25;line-height:var(--font-line-height-s,1.25);margin:0;padding:.5rem .75rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16))) var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));width:-moz-max-content;width:max-content}.facet-button--selected.sc-orama-facets{border-color:#432d77;border-color:var(--border-color-accent,#432d77)}@media (min-width:1024.02px){.facet-button.sc-orama-facets{padding:.25rem .75rem;padding:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16))) var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)))}}.facet-button.sc-orama-facets:focus{border-color:#432d77;border-color:var(--border-color-accent,#432d77);outline:1px solid #432d77;outline:1px solid var(--border-color-accent,#432d77)}.facet-count.sc-orama-facets{color:#99989d;color:var(--text-color-tertiary,#99989d)}",ld,jK=Zr((ld=class extends Hr{constructor(){super(),this.__registerHost()}handleClick(t){this.selectedFacetChanged(t.name)}getFacetButtonElementId(t){return`${t}-facet-button`}setFocusToFacetElement(t){let r=this.facetListRef.getElementsByTagName("button");for(let n=0;n<r.length;n++)if(r.item(n).id===this.getFacetButtonElementId(t)){r.item(n).focus();return}}handleSelectedFacetChange(){var t;this.setFocusToFacetElement(!((t=this.selectedFacet)===null||t===void 0)&&t.length?this.selectedFacet:"All")}handleKeyDown(t){if(["ArrowLeft","ArrowRight"].includes(t.key)){let r=this.selectedFacet?this.facets.findIndex(n=>n.name===this.selectedFacet):0;t.key==="ArrowRight"&&(r<this.facets.length-1?this.selectedFacetChanged(this.facets[r+1].name):this.selectedFacetChanged("")),t.key==="ArrowLeft"&&(r>1?this.selectedFacetChanged(this.facets[r-1].name):r-1===0?this.selectedFacetChanged(""):this.selectedFacetChanged(this.facets[this.facets.length-1].name))}}render(){var t;return!this.facets||this.facets.every(r=>!r.count)?null:Y("ul",{class:"facets-list",ref:g(r=>this.facetListRef=r,"ref")},(t=this.facets)===null||t===void 0?void 0:t.map(r=>{if((r==null?void 0:r.count)===0)return;let n=this.selectedFacet===(r==null?void 0:r.name)||!this.selectedFacet&&(r==null?void 0:r.name)==="All";return Y("li",{key:r.name,class:"facet"},Y("button",{id:this.getFacetButtonElementId(r.name),type:"button",class:{"facet-button":!0,"facet-button--selected":n},tabIndex:n?0:-1,onClick:g(()=>this.handleClick(r),"onClick")},r==null?void 0:r.name,Y("span",{class:"facet-count"},r==null?void 0:r.count)))}))}static get watchers(){return{selectedFacet:["handleSelectedFacetChange"]}}static get style(){return zK}},g(ld,"OramaFacets"),ld),[2,"orama-facets",{facets:[16],selectedFacet:[1,"selected-facet"],selectedFacetChanged:[16,"selected-facet-changed"]},[[0,"keydown","handleKeyDown"]],{selectedFacet:["handleSelectedFacetChange"]}]);function Lx(){typeof customElements>"u"||["orama-facets"].forEach(e=>{switch(e){case"orama-facets":customElements.get(e)||customElements.define(e,jK);break}})}g(Lx,"defineCustomElement");var BK=Object.defineProperty,UK=Object.getOwnPropertyDescriptor,Sp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?UK(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&BK(t,r,s),s},"o"),cd,Wi=(cd=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Wi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(cd,"t"),cd);Wi.weightsMap=new Map([["thin",$e`<path d="M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z"/>`],["light",$e`<path d="M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z"/>`],["regular",$e`<path d="M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"/>`],["bold",$e`<path d="M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z"/>`],["fill",$e`<path d="M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z"/>`],["duotone",$e`<path d="M200,112H56l72-72Z" opacity="0.2"/><path d="M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z"/>`]]);Wi.styles=Pn`
    :host {
      display: contents;
    }
  `;Sp([Be({type:String,reflect:!0})],Wi.prototype,"size",2);Sp([Be({type:String,reflect:!0})],Wi.prototype,"weight",2);Sp([Be({type:String,reflect:!0})],Wi.prototype,"color",2);Sp([Be({type:Boolean,reflect:!0})],Wi.prototype,"mirrored",2);Wi=Sp([Dn("ph-arrow-up")],Wi);var HK=".sc-orama-footer-h{align-items:center;background-color:#fff;background-color:var(--background-color-secondary,#fff);border-radius:0 0 .75rem .75rem;border-radius:0 0 var(--radius-m,calc(12rem/var(--orama-base-font-size, 16))) var(--radius-m,calc(12rem/var(--orama-base-font-size, 16)));border-top:1px solid #dadada;border-top:1px solid var(--border-color-primary,#dadada);display:flex;justify-content:space-between;padding:.75rem;padding:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)))}.keyboard-shortcuts.sc-orama-footer{align-items:center;display:flex;gap:.75rem;gap:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)))}.shortcut-item.sc-orama-footer{align-items:center;display:flex;font-size:1rem;font-size:calc(16rem/var(--orama-base-font-size, 16));gap:.25rem;gap:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)))}.shortcut-description.sc-orama-footer,.shortcut-icon.sc-orama-footer{color:#99989d;color:var(--text-color-tertiary,#99989d)}.shortcut-icon.sc-orama-footer{align-items:center;background:#eee9f6;background:var(--background-color-fourth,#eee9f6);border:.7px solid #dadada;border:.7px solid var(--border-color-primary,#dadada);border-radius:.375rem;border-radius:var(--radius-xs,calc(6rem/var(--orama-base-font-size, 16)));display:flex;justify-content:center;justify-self:flex-end;padding:.25rem;padding:calc(4rem/var(--orama-base-font-size, 16))}.arrows-container.sc-orama-footer{align-items:center;display:flex;gap:.25rem;gap:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)))}.esc-text.sc-orama-footer{font-size:.7rem}.powered-by.sc-orama-footer{align-items:flex-end;display:flex;flex-grow:1;justify-content:right;text-align:right}.logo-link.sc-orama-footer,.powered-by.sc-orama-footer{gap:.5rem;gap:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)))}.logo-link.sc-orama-footer{align-items:center;display:inline-flex;justify-content:center;text-decoration:none}.logo-link.sc-orama-footer:focus-visible{border:1px solid #432d77;border:1px solid var(--border-color-accent,#432d77);outline:none}.logo.sc-orama-footer{max-width:3.875rem;max-width:calc(62rem/var(--orama-base-font-size, 16))}@media (max-width:768px){.sc-orama-footer-h{flex-direction:column;gap:.75rem;gap:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)))}.keyboard-shortcuts.sc-orama-footer{display:none}.powered-by.sc-orama-footer{justify-content:center}}",ud,ZK=Zr((ud=class extends Hr{constructor(){super(),this.__registerHost(),this.colorScheme="light",this.showKeyboardShortcuts=!1,this.linkTarget="_blank",this.keyboardShortcuts=[{name:"select",key:"Enter",icon:"arrow-bend-down-left",description:"to select"},{name:"navigate",key:"↑ ↓",icon:"arrows-vertical",description:"to navigate"},{name:"close",key:"Esc",icon:"esc",description:"to close"}]}componentWillLoad(){let t=encodeURIComponent(window.location.hostname);this.poweredByDestinationUrl=`https://www.orama.com/?utm_source=${t}&utm_medium=powered-by`,["localhost","orama.com"].includes(t)&&(this.linkTarget="_parent")}renderIcon(t){if(t.icon==="esc")return Y("div",null,Y("span",{class:"shortcut-icon"},Y("span",{class:"esc-text"},"esc")));switch(t.icon){case"arrow-bend-down-left":return Y("span",{class:"shortcut-icon"},Y("ph-arrow-bend-down-left",{size:16}));case"arrows-vertical":return Y("div",{class:"arrows-container"},Y("span",{class:"shortcut-icon"},Y("ph-arrow-up",{size:16})),Y("span",{class:"shortcut-icon"},Y("ph-arrow-down",{size:16})));default:return null}}render(){let t=this.colorScheme==="dark"?"orama-when-dark.svg":"orama-when-light.svg";return Y(va,{key:"b21ad31b55a56c189efdf83b7f745dfc149af388"},this.showKeyboardShortcuts&&Y("div",{key:"0af21a82002e38855e83176b7e6dc0f2e8aebe8b",class:"keyboard-shortcuts","aria-label":"Keyboard shortcuts"},this.keyboardShortcuts.map(r=>Y("div",{class:"shortcut-item"},this.renderIcon(r),Y("orama-text",{as:"small",variant:"tertiary"},Y("span",{class:"shortcut-description"},r.description))))),Y("div",{key:"67dec2fc22297ff7a7f47eb4e112b14a3801c378",class:"powered-by"},Y("a",{key:"ef8d9ea69bb7207ea1279ede9576e4cb03d4cf12",href:this.poweredByDestinationUrl,target:this.linkTarget,rel:"noopener noreferrer",class:"logo-link"},Y("orama-text",{key:"49bcbd36198dfd2200d6902f65ea88f573974c4e",as:"small"},"Powered by"),Y("img",{key:"f8d46510486a83866fa3b24f5d38f60fe8ce3d6b",src:`https://website-assets.oramasearch.com/${t}`,alt:"Powered by Orama",class:"logo",width:62}))))}get el(){return this}static get style(){return HK}},g(ud,"OramaFooter"),ud),[2,"orama-footer",{class:[1],colorScheme:[16,"color-scheme"],showKeyboardShortcuts:[4,"show-keyboard-shortcuts"]}]);function DA(){typeof customElements>"u"||["orama-footer","orama-text"].forEach(e=>{switch(e){case"orama-footer":customElements.get(e)||customElements.define(e,ZK);break;case"orama-text":customElements.get(e)||Bs();break}})}g(DA,"defineCustomElement");var VK=Object.defineProperty,FK=Object.getOwnPropertyDescriptor,xp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?FK(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&VK(t,r,s),s},"o"),dd,Yi=(dd=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Yi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(dd,"t"),dd);Yi.weightsMap=new Map([["thin",$e`<path d="M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"/>`],["light",$e`<path d="M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"/>`],["regular",$e`<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"/>`],["bold",$e`<path d="M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"/>`],["fill",$e`<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"/>`],["duotone",$e`<path d="M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z" opacity="0.2"/><path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"/>`]]);Yi.styles=Pn`
    :host {
      display: contents;
    }
  `;xp([Be({type:String,reflect:!0})],Yi.prototype,"size",2);xp([Be({type:String,reflect:!0})],Yi.prototype,"weight",2);xp([Be({type:String,reflect:!0})],Yi.prototype,"color",2);xp([Be({type:Boolean,reflect:!0})],Yi.prototype,"mirrored",2);Yi=xp([Dn("ph-x")],Yi);var qK=Object.defineProperty,GK=Object.getOwnPropertyDescriptor,wp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?GK(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&qK(t,r,s),s},"s"),fd,Qi=(fd=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Qi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(fd,"t"),fd);Qi.weightsMap=new Map([["thin",$e`<path d="M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"/>`],["light",$e`<path d="M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"/>`],["regular",$e`<path d="M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"/>`],["bold",$e`<path d="M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"/>`],["fill",$e`<path d="M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"/>`],["duotone",$e`<path d="M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z" opacity="0.2"/><path d="M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"/>`]]);Qi.styles=Pn`
    :host {
      display: contents;
    }
  `;wp([Be({type:String,reflect:!0})],Qi.prototype,"size",2);wp([Be({type:String,reflect:!0})],Qi.prototype,"weight",2);wp([Be({type:String,reflect:!0})],Qi.prototype,"color",2);wp([Be({type:Boolean,reflect:!0})],Qi.prototype,"mirrored",2);Qi=wp([Dn("ph-magnifying-glass")],Qi);var KK=".sc-orama-input-h{margin:.5rem 0;margin:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16))) 0}.input-wrapper.sc-orama-input{position:relative}.input.sc-orama-input{background:#fff;background:var(--background-color-secondary,#fff);border:1px solid #dadada;border:1px solid var(--border-color-primary,#dadada);border-radius:.75rem;border-radius:var(--radius-m,calc(12rem/var(--orama-base-font-size, 16)));color:#151515;color:var(--text-color-primary,#151515);font-size:1rem;font-size:var(--font-size-md,calc(16rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);line-height:1.5;line-height:var(--font-line-height-m,1.5);margin:0;padding:0;width:100%}@media (min-width:768.02px){.input.sc-orama-input{font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)))}}.input.sc-orama-input::-moz-placeholder{color:#99989d;color:var(--text-color-inactive,#99989d)}.input.sc-orama-input::placeholder{color:#99989d;color:var(--text-color-inactive,#99989d)}.input[type=search].sc-orama-input{padding-right:2rem;padding-right:var(--spacing-2xl,calc(32rem/var(--orama-base-font-size, 16)))}@media (min-width:1024.02px){.input[type=search].sc-orama-input{border:0;border-bottom:1px solid #dadada;border-bottom:1px solid var(--border-color-primary,#dadada);padding-left:2.5rem;padding-left:var(--spacing-3xl,calc(40rem/var(--orama-base-font-size, 16)))}}.input[type=search].sc-orama-input::-webkit-search-cancel-button,.input[type=search].sc-orama-input::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.input.sc-orama-input:focus{outline:none}.input.sc-orama-input:focus-visibile{border:1px solid #432d77;border:1px solid var(--border-color-accent,#432d77);outline:none}.input--small.sc-orama-input{padding:.25rem .5rem;padding:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16))) var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)))}.input--medium.sc-orama-input{padding:.5rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)))}.input--large.sc-orama-input{padding:.75rem;padding:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)))}.label.sc-orama-input{color:#151515;color:var(--text-color-primary,#151515);display:block;font-size:.875rem;font-size:var(--font-size-sm,calc(14rem/var(--orama-base-font-size, 16)));font-weight:400;font-weight:var(--font-weight-normal,400);line-height:1.25;line-height:var(--font-line-height-s,1.25);margin:0 0 .25rem;margin-bottom:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)));padding:0}.reset-button.sc-orama-input{background-color:transparent;border:0;color:#99989d;color:var(--icon-color-inactive,#99989d);cursor:pointer;display:inline-flex;position:absolute;right:.5rem;right:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));top:50%;transform:translate3d(0,-50%,0)}.reset-button.sc-orama-input:focus{outline:none}.reset-button.sc-orama-input:focus-visible{border:1px solid #432d77;border:1px solid var(--border-color-accent,#432d77)}.search-icon.sc-orama-input{color:#99989d;color:var(--icon-color-inactive,#99989d);display:none;left:1rem;left:var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)));position:absolute;top:50%;transform:translate3d(0,-50%,0);z-index:100}@media (min-width:1024.02px){.search-icon.sc-orama-input{display:inline-flex}}.sr-only.sc-orama-input{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}",hd,WK=Zr((hd=class extends Hr{constructor(){super(),this.__registerHost(),this.inputChanged=Br(this,"inputChanged"),this.size="medium",this.type="text",this.autoFocus=!1}handleAutoFocusChange(){var t;this.autoFocus&&((t=this.inputRef)===null||t===void 0||t.focus())}ensureFocus(){let t=setInterval(()=>{this.inputRef&&(this.inputRef.focus(),clearInterval(t))},10)}componentDidLoad(){this.autoFocus&&this.ensureFocus()}render(){let t=`input input--${this.size}`,r=`label ${this.labelForScreenReaders?"sr-only":""}`,n=["id","name","type","class","onInput","value","label-for-screen-readers","default-value","placeholder"],s=rp(this.el,n),o=this.type==="search";return Y(va,{key:"2618def598b4bcffcb974d761937c304f36d70cf"},Y("div",{key:"07b0b637d645dfcd43dab6f20256b548f42672bb",class:"wrapper"},Y("label",{key:"c8e3e0ee0962064c613ccbfa459873e8e80ee32a",htmlFor:this.name,class:r},this.label||this.labelForScreenReaders),Y("div",{key:"7c78f6d5e491b17094d86ef89c4461178e1e620c",class:"input-wrapper"},o&&Y("span",{key:"07a43ba5606596d2b2834bb3dc040573d7039a05",class:"search-icon"},Y("ph-magnifying-glass",{key:"3097468ab3864e7a29121e5f5978cf6f4a14f006",size:16})),Y("input",Object.assign({key:"5ee32af4e927d3f717345a2d2337793ba28d9c43"},s,{ref:g(l=>{this.inputRef=l},"ref"),class:t,id:this.name,type:this.type,value:this.value,onInput:g(l=>{let u=l.target;this.inputChanged.emit(u.value)},"onInput"),placeholder:this.placeholder})),o&&!!this.value&&Y("button",{key:"36eb9d184140ee98115527b8470ef60c3a32aae3",type:"button",class:"reset-button",onClick:g(()=>{var l;this.inputRef&&(this.inputRef.value=""),this.inputChanged.emit(""),(l=this.inputRef)===null||l===void 0||l.focus()},"onClick")},Y("ph-x",{key:"0a50b53d7cf5e86ed30d72c6e099f1dcc35ed925",size:16})))))}get el(){return this}static get watchers(){return{autoFocus:["handleAutoFocusChange"]}}static get style(){return KK}},g(hd,"Input"),hd),[2,"orama-input",{name:[1],size:[1],label:[1],type:[1],placeholder:[1],labelForScreenReaders:[1,"label-for-screen-readers"],defaultValue:[1,"default-value"],autoFocus:[4,"auto-focus"],value:[1]},void 0,{autoFocus:["handleAutoFocusChange"]}]);function Px(){typeof customElements>"u"||["orama-input"].forEach(e=>{switch(e){case"orama-input":customElements.get(e)||customElements.define(e,WK);break}})}g(Px,"defineCustomElement");var YK=r3,QK=Ql,XK=".modal.sc-orama-modal{background-color:hsla(0,0%,98%,.7);background-color:var(--backdrop-background-color-primary,hsla(0,0%,98%,.7));display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:9999}.modal.open.sc-orama-modal{display:block}dialog.sc-orama-modal{border:none}.modal-content.sc-orama-modal{background-color:#fbfbfb;background-color:var(--background-color-primary,#fbfbfb);display:flex;flex-direction:column;inset:0;justify-content:space-between;position:fixed}@media (min-width:1024.02px){.modal-content.sc-orama-modal{background-color:#fff;background-color:var(--background-color-secondary,#fff);border:1px solid #dadada;border:1px solid var(--border-color-primary,#dadada);border-radius:.75rem;border-radius:var(--radius-m,calc(12rem/var(--orama-base-font-size, 16)));bottom:auto;margin:0 auto;max-height:70vh;max-width:45rem;max-width:calc(720rem/var(--orama-base-font-size, 16));min-height:12.5rem;min-height:calc(200rem/var(--orama-base-font-size, 16));padding:0;top:5vh;width:80%}}.modal-close.sc-orama-modal:not(:focus-visible){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.modal-title.sc-orama-modal{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}",pd,JK=Zr((pd=class extends Hr{constructor(){super(),this.__registerHost(),this.modalClosed=Br(this,"modalClosed"),this.closeOnEscape=!0,this.closeOnOutsideClick=!0,this.mainTitle="",this.originalBodyOverflowState="scroll"}trapFocus(t){let r=this.el.querySelectorAll('a[href], button, textarea, input, select, [tabindex]:not([tabindex="-1"])'),n=Array.from(r).filter(s=>s.offsetParent!==null);if(n.length>0){this.firstFocusableElement=n[0],this.lastFocusableElement=n[n.length-1];let s=this.el.querySelector(":focus");t.shiftKey&&s===this.firstFocusableElement?(t.preventDefault(),this.lastFocusableElement.focus()):!t.shiftKey&&s===this.lastFocusableElement&&(t.preventDefault(),this.firstFocusableElement.focus())}}handleFocus(){let t=this.el.querySelectorAll('a[href], button, textarea, input, select, [tabindex]:not([tabindex="-1"])'),r=Array.from(t).filter(n=>n.offsetParent!==null);r.length>0&&r[0].focus()}connectedCallback(){this.originalBodyOverflowState=document.body.style.overflow,this.activeElement=document.activeElement,this.handleFocus(),document.body.style.overflow="hidden"}disconnectedCallback(){document.body.style.overflow=this.originalBodyOverflowState}componentDidUpdate(){this.handleFocus(),this.activeElement&&this.activeElement.focus()}render(){return Y("dialog",{key:"a3fc3367ed30a5b2c440df67600bf619652b559c",class:"modal open","aria-modal":"true","aria-labelledby":"modalTitle","aria-describedby":"modalContent",onKeyDown:g(t=>{switch(t.key){case"Tab":this.trapFocus(t);break;case"Escape":this.closeOnEscape&&(t.preventDefault(),t.stopPropagation(),this.modalClosed.emit());break}},"onKeyDown"),onClick:g(t=>{this.innerModalRef&&!this.innerModalRef.contains(t.target)&&(t.stopPropagation(),t.preventDefault(),this.modalClosed.emit())},"onClick")},Y("div",{key:"4eff2c8624762dc014b85851590abed2cf8f38c3",class:"modal-inner",ref:g(t=>this.innerModalRef=t,"ref")},Y("h1",{key:"d4360fef432f56884b54c5bdfac5d8bfa6e530ef",id:"modalTitle",class:"modal-title"},this.mainTitle),Y("div",{key:"9e3867727679699c7d31e71b7d637c6d4cb24334",id:"modalContent",class:"modal-content"},Y("slot",{key:"deb12898e6327dc99b52ae8d48444c0d09b2320d"})),Y("button",{key:"43dfa57f3117c030474c707113208aa954cf68f4",onClick:g(()=>this.modalClosed.emit(),"onClick"),type:"button",class:"modal-close"},"Close")))}get el(){return this}static get style(){return XK}},g(pd,"OramaModal"),pd),[6,"orama-modal",{closeOnEscape:[4,"close-on-escape"],closeOnOutsideClick:[4,"close-on-outside-click"],mainTitle:[1,"main-title"],activeElement:[32]}]);function zA(){typeof customElements>"u"||["orama-modal"].forEach(e=>{switch(e){case"orama-modal":customElements.get(e)||customElements.define(e,JK);break}})}g(zA,"defineCustomElement");var eW=Object.defineProperty,tW=Object.getOwnPropertyDescriptor,Cp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?tW(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&eW(t,r,s),s},"l"),md,Xi=(md=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Xi.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(md,"a"),md);Xi.weightsMap=new Map([["thin",$e`<path d="M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z"/>`],["light",$e`<path d="M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z"/>`],["regular",$e`<path d="M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"/>`],["bold",$e`<path d="M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z"/>`],["fill",$e`<path d="M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z"/>`],["duotone",$e`<path d="M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z" opacity="0.2"/><path d="M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"/>`]]);Xi.styles=Pn`
    :host {
      display: contents;
    }
  `;Cp([Be({type:String,reflect:!0})],Xi.prototype,"size",2);Cp([Be({type:String,reflect:!0})],Xi.prototype,"weight",2);Cp([Be({type:String,reflect:!0})],Xi.prototype,"color",2);Cp([Be({type:Boolean,reflect:!0})],Xi.prototype,"mirrored",2);Xi=Cp([Dn("ph-sparkle")],Xi);var rW='.sc-orama-toggler-h{align-items:center;background:#efefef;background:var(--background-color-fourth,#efefef);border-radius:2.5rem;border-radius:var(--radius-3xl,calc(40rem/var(--orama-base-font-size, 16)));display:inline-flex;overflow:hidden;padding:.125rem;padding:var(--spacing-2xs,calc(2rem/var(--orama-base-font-size, 16)))}.sc-orama-toggler-h button.sc-orama-toggler{align-items:center;background-color:transparent;border:none;color:#151515;color:var(--text-color-primary,#151515);cursor:pointer;display:flex;gap:.25rem;gap:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)));padding:.5rem .75rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16))) var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));position:relative}.sc-orama-toggler-h button.selected.sc-orama-toggler{color:#fff;color:var(--text-color-reverse,#fff);transition:color .3s ease-in-out;z-index:1}.sc-orama-toggler-h button.selected.sc-orama-toggler:after{background-color:#000;background-color:var(--background-color-reverse,#000);border-radius:2.5rem;border-radius:var(--radius-3xl,calc(40rem/var(--orama-base-font-size, 16)));content:"";inset:0;padding:.5rem .75rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16))) var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));position:absolute;z-index:-1}.sc-orama-toggler-h button.selected.animate.sc-orama-toggler:after{animation:slideToLeft .3s ease-in-out}.sc-orama-toggler-h button.selected.animate.sc-orama-toggler:first-child:after{animation:slideToRight .3s ease-in-out}@keyframes slideToRight{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slideToLeft{0%{transform:translateX(-100%)}to{transform:translateX(0)}}',nW=function(e,t,r,n){var s=arguments.length,o=s<3?t:n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(l=e[u])&&(o=(s<3?l(o):s>3?l(t,r,o):l(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},gd,jA=Zr((gd=class extends Hr{constructor(){super(),this.__registerHost(),this.performInitialAnimation=!1,this.firstRender=!0}componentWillLoad(){this.performInitialAnimation&&(this.firstRender=!1)}componentDidLoad(){this.firstRender&&(this.firstRender=!1)}render(){return Y(va,{key:"b5f2e4d25150746ea7d8c8f49ce65810709c62f7"},Y("button",{key:"d4216bdf455ca829574dcfd2caab5f0e081da74a",type:"button",class:{selected:this.globalStore.state.currentTask==="search",animate:!this.firstRender||this.performInitialAnimation},onClick:g(()=>this.globalStore.state.currentTask="search","onClick")},Y("span",{key:"d8a05a2f1c92c27c3189e4e3682f5d162973af60"},"Search"),Y("ph-magnifying-glass",{key:"c2cca7b67b39d6db8edf9a05f18e12c41510c790",size:16})),Y("button",{key:"793b326cd3b463bbcc9604cb04b0671418540d04",type:"button",class:{selected:this.globalStore.state.currentTask==="chat",animate:!this.firstRender||this.performInitialAnimation},onClick:g(()=>this.globalStore.state.currentTask="chat","onClick")},Y("ph-sparkle",{key:"8d6aaffc7c5984026397228d71fbc4fe7f03a9ea",size:16}),Y("span",{key:"3879f5cc81113d6c74b6c9e6f71ed1b6e0ba9500"},"Ask AI")))}static get style(){return rW}},g(gd,"OramaToggler"),gd),[2,"orama-toggler",{performInitialAnimation:[4,"perform-initial-animation"]}]);nW([no("global")],jA.prototype,"globalStore",void 0);function Ix(){typeof customElements>"u"||["orama-toggler"].forEach(e=>{switch(e){case"orama-toggler":customElements.get(e)||customElements.define(e,jA);break}})}g(Ix,"defineCustomElement");var aW=Object.defineProperty,sW=Object.getOwnPropertyDescriptor,$p=g((e,t,r,n)=>{for(var s=n>1?void 0:n?sW(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&aW(t,r,s),s},"o"),yd,Ji=(yd=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${Ji.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(yd,"t"),yd);Ji.weightsMap=new Map([["thin",$e`<path d="M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm60-92a4,4,0,0,1-4,4H128a4,4,0,0,1-4-4V72a4,4,0,0,1,8,0v52h52A4,4,0,0,1,188,128Z"/>`],["light",$e`<path d="M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm62-90a6,6,0,0,1-6,6H128a6,6,0,0,1-6-6V72a6,6,0,0,1,12,0v50h50A6,6,0,0,1,190,128Z"/>`],["regular",$e`<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"/>`],["bold",$e`<path d="M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm68-84a12,12,0,0,1-12,12H128a12,12,0,0,1-12-12V72a12,12,0,0,1,24,0v44h44A12,12,0,0,1,196,128Z"/>`],["fill",$e`<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"/>`],["duotone",$e`<path d="M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z" opacity="0.2"/><path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"/>`]]);Ji.styles=Pn`
    :host {
      display: contents;
    }
  `;$p([Be({type:String,reflect:!0})],Ji.prototype,"size",2);$p([Be({type:String,reflect:!0})],Ji.prototype,"weight",2);$p([Be({type:String,reflect:!0})],Ji.prototype,"color",2);$p([Be({type:Boolean,reflect:!0})],Ji.prototype,"mirrored",2);Ji=$p([Dn("ph-clock")],Ji);var iW=Object.defineProperty,oW=Object.getOwnPropertyDescriptor,kp=g((e,t,r,n)=>{for(var s=n>1?void 0:n?oW(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&iW(t,r,s),s},"s"),bd,eo=(bd=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${eo.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(bd,"t"),bd);eo.weightsMap=new Map([["thin",$e`<path d="M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"/>`],["light",$e`<path d="M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"/>`],["regular",$e`<path d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"/>`],["bold",$e`<path d="M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"/>`],["fill",$e`<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"/>`],["duotone",$e`<path d="M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z" opacity="0.2"/><path d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"/>`]]);eo.styles=Pn`
    :host {
      display: contents;
    }
  `;kp([Be({type:String,reflect:!0})],eo.prototype,"size",2);kp([Be({type:String,reflect:!0})],eo.prototype,"weight",2);kp([Be({type:String,reflect:!0})],eo.prototype,"color",2);kp([Be({type:Boolean,reflect:!0})],eo.prototype,"mirrored",2);eo=kp([Dn("ph-plus")],eo);var lW=".sc-orama-navigation-bar-h{align-items:center;background-color:#fbfbfb;background-color:var(--background-color-primary,#fbfbfb);display:flex;padding:1rem 1rem .5rem;padding:var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16))) var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16))) var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)))}@media (min-width:1024.02px){.sc-orama-navigation-bar-h{display:none}}.spacer.sc-orama-navigation-bar{display:block;height:2.25rem;height:calc(36rem/var(--orama-base-font-size, 16));width:2.25rem;width:calc(36rem/var(--orama-base-font-size, 16))}.corner-section.sc-orama-navigation-bar{display:flex;gap:.25rem;gap:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)))}.corner-section.start.sc-orama-navigation-bar{display:flex;justify-content:flex-start}.corner-section.center.sc-orama-navigation-bar{display:flex;flex:1;justify-content:center}.corner-section.end.sc-orama-navigation-bar{display:flex;justify-content:flex-end}",cW=function(e,t,r,n){var s=arguments.length,o=s<3?t:n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(l=e[u])&&(o=(s<3?l(o):s>3?l(t,r,o):l(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},vd,BA=Zr((vd=class extends Hr{constructor(){super(),this.__registerHost(),this.showBackButton=!0,this.showChatActions=!1,this.handleStartNewChat=()=>{var t;(t=this.chatStore.state.chatService)===null||t===void 0||t.resetChat()}}render(){return Y(va,{key:"676f6e8004de45bc7e70a38534c694c57b2c5068"},Y("div",{key:"036c53deef2f5fa0785f677d7aec3cb6fcc47a39",class:"corner-section start"},this.showBackButton?Y(zo,null,Y("orama-button",{type:"button",variant:"icon","aria-label":"Exit",onClick:this.handleClose,onKeyDown:this.handleClose},Y("ph-caret-left",{size:"20px"}))):Y("div",{class:"spacer"})),Y("div",{key:"2dd271a6f0742652bb3480cb7996f46bd3a64bb5",class:"corner-section center"},Y("orama-toggler",{key:"80ecf7005825e985ed5e86a12c5912d6e104c238"})),Y("div",{key:"c00c10b04bffa9e7bbae61f27d0fc6e483b66e8a",class:"corner-section end"},this.showChatActions?Y(zo,null,Y("orama-button",{type:"button",variant:"icon","aria-label":"Start new chat",onClick:this.handleStartNewChat,onKeyDown:this.handleStartNewChat},Y("ph-plus",{size:"20px"}))):Y("div",{class:"spacer"})))}static get style(){return lW}},g(vd,"OramaNavigationBar"),vd),[2,"orama-navigation-bar",{handleClose:[16,"handle-close"],showBackButton:[4,"show-back-button"],showChatActions:[4,"show-chat-actions"]}]);cW([no("chat")],BA.prototype,"chatStore",void 0);function UA(){typeof customElements>"u"||["orama-navigation-bar","orama-button","orama-toggler"].forEach(e=>{switch(e){case"orama-navigation-bar":customElements.get(e)||customElements.define(e,BA);break;case"orama-button":customElements.get(e)||Ko();break;case"orama-toggler":customElements.get(e)||Ix();break}})}g(UA,"defineCustomElement");var gv,Qk;function HA(){var m;if(Qk)return gv;Qk=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=g((b,S)=>{for(var x in S)e(b,x,{get:S[x],enumerable:!0})},"A"),o=g((b,S,x,C)=>{if(S&&typeof S=="object"||typeof S=="function")for(let $ of r(S))!n.call(b,$)&&$!==x&&e(b,$,{get:g(()=>S[$],"get"),enumerable:!(C=t(S,$))||C.enumerable});return b},"d"),l=g(b=>o(e({},"__esModule",{value:!0}),b),"R"),u={};s(u,{Highlight:g(()=>p,"Highlight"),highlightStrategy:g(()=>d,"highlightStrategy")}),gv=l(u);var d={WHOLE_WORD_MATCH:"wholeWordMatch",PARTIAL_MATCH:"partialMatch",PARTIAL_MATCH_FULL_WORD:"partialMatchFullWord"},h={caseSensitive:!1,strategy:d.PARTIAL_MATCH,HTMLTag:"mark",CSSClass:"orama-highlight"},p=(m=class{constructor(S=h){Te(this,"options");Te(this,"_positions",[]);Te(this,"_HTML","");Te(this,"_searchTerm","");Te(this,"_originalText","");this.options={...h,...S}}highlight(S,x){if(this._searchTerm=x??"",this._originalText=S??"",!this._searchTerm||!this._originalText)return this._positions=[],this._HTML=this._originalText,this;let C=this.options.HTMLTag??h.HTMLTag,$=this.options.CSSClass??h.CSSClass,_=this.options.caseSensitive??h.caseSensitive,M=this.options.strategy??h.strategy,T=_?"g":"gi",R=this.escapeRegExp(_?this._searchTerm:this._searchTerm.toLowerCase()).trim().split(/\s+/).join("|"),L;if(M===d.WHOLE_WORD_MATCH)L=new RegExp(`\\b${R}\\b`,T);else if(M===d.PARTIAL_MATCH)L=new RegExp(R,T);else if(M===d.PARTIAL_MATCH_FULL_WORD)L=new RegExp(`\\b[^\\s]*(${R})[^\\s]*\\b`,T);else throw new Error("Invalid highlighter strategy");let j=[],O=[],N,z=0,k=-1;for(;(N=L.exec(this._originalText))!==null&&L.lastIndex!==k;){k=L.lastIndex;let H=N.index,q=H+N[0].length-1;j.push({start:H,end:q}),O.push(this._originalText.slice(z,H)),O.push(`<${C} class="${$}">${N[0]}</${C}>`),z=q+1}return O.push(this._originalText.slice(z)),this._positions=j,this._HTML=O.join(""),this}trim(S,x=!0){if(this._positions.length===0)return`${this._HTML.substring(0,S)}${x?"...":""}`;if(this._originalText.length<=S)return this._HTML;let C=this._positions[0].start,$=Math.max(C-Math.floor(S/2),0),_=Math.min($+S,this._originalText.length),M=`${$===0||!x?"":"..."}${this._originalText.slice($,_)}${_<this._originalText.length&&x?"...":""}`;return this.highlight(M,this._searchTerm),this._HTML}get positions(){return this._positions}get HTML(){return this._HTML}escapeRegExp(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},g(m,"u"),m);return gv}g(HA,"requireDist");var Xk=HA(),uW=Object.defineProperty,dW=Object.getOwnPropertyDescriptor,Ep=g((e,t,r,n)=>{for(var s=n>1?void 0:n?dW(t,r):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(n?l(t,r,s):l(s))||s);return n&&s&&uW(t,r,s),s},"h"),Sd,to=(Sd=class extends on{constructor(){super(...arguments),this.size="1em",this.weight="regular",this.color="currentColor",this.mirrored=!1}render(){var t;return In`<svg
      xmlns="http://www.w3.org/2000/svg"
      width="${this.size}"
      height="${this.size}"
      fill="${this.color}"
      viewBox="0 0 256 256"
      transform=${this.mirrored?"scale(-1, 1)":null}
    >
      ${to.weightsMap.get((t=this.weight)!=null?t:"regular")}
    </svg>`}},g(Sd,"a"),Sd);to.weightsMap=new Map([["thin",$e`<path d="M210.83,69.17l-40-40A4,4,0,0,0,168,28H88A12,12,0,0,0,76,40V60H56A12,12,0,0,0,44,72V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V196h20a12,12,0,0,0,12-12V72A4,4,0,0,0,210.83,69.17ZM172,216a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V72a4,4,0,0,1,4-4h78.34L172,105.66Zm32-32a4,4,0,0,1-4,4H180V104a4,4,0,0,0-1.17-2.83l-40-40A4,4,0,0,0,136,60H84V40a4,4,0,0,1,4-4h78.34L204,73.66Zm-64-32a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h48A4,4,0,0,1,140,152Zm0,32a4,4,0,0,1-4,4H88a4,4,0,0,1,0-8h48A4,4,0,0,1,140,184Z"/>`],["light",$e`<path d="M212.24,67.76l-40-40A6,6,0,0,0,168,26H88A14,14,0,0,0,74,40V58H56A14,14,0,0,0,42,72V216a14,14,0,0,0,14,14H168a14,14,0,0,0,14-14V198h18a14,14,0,0,0,14-14V72A6,6,0,0,0,212.24,67.76ZM170,216a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V72a2,2,0,0,1,2-2h77.51L170,106.49Zm32-32a2,2,0,0,1-2,2H182V104a6,6,0,0,0-1.76-4.24l-40-40A6,6,0,0,0,136,58H86V40a2,2,0,0,1,2-2h77.51L202,74.49Zm-60-32a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h48A6,6,0,0,1,142,152Zm0,32a6,6,0,0,1-6,6H88a6,6,0,0,1,0-12h48A6,6,0,0,1,142,184Z"/>`],["regular",$e`<path d="M213.66,66.34l-40-40A8,8,0,0,0,168,24H88A16,16,0,0,0,72,40V56H56A16,16,0,0,0,40,72V216a16,16,0,0,0,16,16H168a16,16,0,0,0,16-16V200h16a16,16,0,0,0,16-16V72A8,8,0,0,0,213.66,66.34ZM168,216H56V72h76.69L168,107.31v84.53c0,.06,0,.11,0,.16s0,.1,0,.16V216Zm32-32H184V104a8,8,0,0,0-2.34-5.66l-40-40A8,8,0,0,0,136,56H88V40h76.69L200,75.31Zm-56-32a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8,8,0,0,1,144,152Zm0,32a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8,8,0,0,1,144,184Z"/>`],["bold",$e`<path d="M220.49,59.51l-40-40A12,12,0,0,0,172,16H92A20,20,0,0,0,72,36V56H56A20,20,0,0,0,36,76V216a20,20,0,0,0,20,20H164a20,20,0,0,0,20-20V196h20a20,20,0,0,0,20-20V68A12,12,0,0,0,220.49,59.51ZM160,212H60V80h67l33,33Zm40-40H184V108a12,12,0,0,0-3.51-8.49l-40-40A12,12,0,0,0,132,56H96V40h71l33,33Zm-56-28a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h44A12,12,0,0,1,144,144Zm0,40a12,12,0,0,1-12,12H88a12,12,0,0,1,0-24h44A12,12,0,0,1,144,184Z"/>`],["fill",$e`<path d="M213.66,66.34l-40-40A8,8,0,0,0,168,24H88A16,16,0,0,0,72,40V56H56A16,16,0,0,0,40,72V216a16,16,0,0,0,16,16H168a16,16,0,0,0,16-16V200h16a16,16,0,0,0,16-16V72A8,8,0,0,0,213.66,66.34ZM136,192H88a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm0-32H88a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm64,24H184V104a8,8,0,0,0-2.34-5.66l-40-40A8,8,0,0,0,136,56H88V40h76.69L200,75.31Z"/>`],["duotone",$e`<path d="M208,72V184a8,8,0,0,1-8,8H176V104L136,64H80V40a8,8,0,0,1,8-8h80Z" opacity="0.2"/><path d="M213.66,66.34l-40-40A8,8,0,0,0,168,24H88A16,16,0,0,0,72,40V56H56A16,16,0,0,0,40,72V216a16,16,0,0,0,16,16H168a16,16,0,0,0,16-16V200h16a16,16,0,0,0,16-16V72A8,8,0,0,0,213.66,66.34ZM168,216H56V72h76.69L168,107.31v84.53c0,.06,0,.11,0,.16s0,.1,0,.16V216Zm32-32H184V104a8,8,0,0,0-2.34-5.66l-40-40A8,8,0,0,0,136,56H88V40h76.69L200,75.31Zm-56-32a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8,8,0,0,1,144,152Zm0,32a8,8,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8,8,0,0,1,144,184Z"/>`]]);to.styles=Pn`
    :host {
      display: contents;
    }
  `;Ep([Be({type:String,reflect:!0})],to.prototype,"size",2);Ep([Be({type:String,reflect:!0})],to.prototype,"weight",2);Ep([Be({type:String,reflect:!0})],to.prototype,"color",2);Ep([Be({type:Boolean,reflect:!0})],to.prototype,"mirrored",2);to=Ep([Dn("ph-files")],to);var fW=".list.sc-orama-search-results{list-style:none;margin:0;padding:0}.section-list.sc-orama-search-results{gap:.75rem;gap:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));margin-top:.5rem;margin-top:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));padding-bottom:1rem;padding-bottom:var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)))}.section-item-list.sc-orama-search-results,.section-list.sc-orama-search-results{display:flex;flex-direction:column}.section-wrapper.sc-orama-search-results{border-bottom:1px solid #dadada;border-bottom:1px solid var(--border-color-primary,#dadada);padding-bottom:.75rem;padding-bottom:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)))}.section-wrapper.sc-orama-search-results:last-of-type{border-bottom:none}.section-title-wrapper.sc-orama-search-results{padding:.5rem .75rem;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16))) var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));text-transform:capitalize}.section-title-wrapper.sc-orama-search-results *.sc-orama-search-results{color:#838289;color:var(--text-text-color-secondary,#838289)}.list-item.sc-orama-search-results{cursor:pointer}.list-item-button.sc-orama-search-results{align-items:center;background-color:#fff;background-color:var(--background-color-secondary,#fff);border:1px solid transparent;border-radius:.5rem;border-radius:var(--radius-s,calc(8rem/var(--orama-base-font-size, 16)));cursor:pointer;display:flex;font-family:inherit;gap:.75rem;gap:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));padding:.75rem;padding:var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)));position:relative;text-align:left;text-decoration:none;transition:background-color .2s}@media (hover:hover){.list-item-button.sc-orama-search-results:hover{background-color:#eee9f6;background-color:var(--background-color-tertiary,#eee9f6)}}.list-item-button.sc-orama-search-results:focus-visible{border:1px solid #432d77;border:1px solid var(--border-color-accent,#432d77);outline:none}.collapsed.sc-orama-search-results{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-title.sc-orama-search-results{color:#151515;color:var(--text-color-primary,#151515)}.result-description.sc-orama-search-results{color:#99989d;color:var(--text-color-tertiary,#99989d)}.results-empty.sc-orama-search-results{margin:2rem auto 2.5rem;margin:calc(32rem/var(--orama-base-font-size, 16)) auto calc(40rem/var(--orama-base-font-size, 16));max-width:25rem;max-width:calc(400rem/var(--orama-base-font-size, 16));text-align:center;width:80%}.suggestions-wrapper.sc-orama-search-results{padding:1rem 0 .75rem;padding:var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16))) 0 var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16))) 0}.suggestions-title.sc-orama-search-results{margin-bottom:.25rem;margin-bottom:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16)));padding:0 .5rem;padding:0 var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16)));text-transform:uppercase}.textWrapper.sc-orama-search-results{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}ph-files.sc-orama-search-results{color:#151515;color:var(--icon-color-primary,#151515)}.result-item-icon-wrapper.sc-orama-search-results{align-items:center;display:flex;flex-shrink:0;height:20px;justify-content:center;width:20px}.custom-result-item-icon.sc-orama-search-results{max-height:20px;max-width:20px;-o-object-fit:contain;object-fit:contain}",xd,hW=Zr((xd=class extends Hr{constructor(){super(),this.__registerHost(),this.searchResultClick=Br(this,"searchResultClick"),this.linksTarget="_blank",this.linksRel="noopener noreferrer",this.sections=[],this.suggestions=[],this.loading=!1,this.error=!1,this.highlightTitle=!1,this.highlightDescription=!1,this.handleItemClick=(t,r)=>{if(this.searchResultClick.emit({result:r}).defaultPrevented){t.preventDefault();return}if(!(r!=null&&r.path))throw new Error("No path found")},this.getItemLinkUrl=t=>t!=null&&t.path?this.sourceBaseUrl?`${this.sourceBaseUrl}${t.path}`:t.path:"#",this.getHighlightedTitleText=t=>this.highlighterTitle.highlight(t,this.searchTerm),this.getHighlightedDescriptionText=t=>this.highlighterDescription.highlight(t,this.searchTerm)}buildUrl(t){if(!t)return"#";if(this.sourceBaseUrl){let r=this.sourceBaseUrl.replace(/\/+$/,""),n=t.replace(/^\/+/,"");return`${r}/${n}`}return t}componentDidLoad(){this.highlightTitle&&(this.highlighterTitle=new Xk.Highlight(this.highlightTitle)),this.highlightDescription&&(this.highlighterDescription=new Xk.Highlight(this.highlightDescription))}render(){var t,r,n,s,o,l;return this.searchTerm?this.error?Y("div",null,((n=this.dictionary)===null||n===void 0?void 0:n.errorMessage)||"An error occurred while trying to search. Please try again."):!this.loading&&!(!((s=this.sections)===null||s===void 0)&&s.some(u=>u.items.length>0))?Y("div",{class:"results-empty"},Y("orama-text",{as:"h3",styledAs:"span"},`${((o=this.dictionary)===null||o===void 0?void 0:o.noResultsFound)||"No results found"} ${this.searchTerm?`${((l=this.dictionary)===null||l===void 0?void 0:l.noResultsFoundFor)||"for"} "${this.searchTerm}"`:""}`)):Y(va,null,Y("ul",{class:"list section-list"},this.sections.map(u=>Y("div",{key:u.section,class:"section-wrapper"},u.section&&Y("div",{class:"section-title-wrapper"},Y("orama-text",{as:"h2",styledAs:"span"},u.section)),Y("ul",{class:"list section-item-list"},u.items.map(d=>Y("li",{class:"list-item",key:d.id},Y("a",{"focus-on-arrow-nav":!0,href:this.buildUrl(d.path),class:"list-item-button",target:this.linksTarget,rel:this.linksRel,id:`search-result-${d.id}`,onClick:g(h=>this.handleItemClick(h,d),"onClick")},Y("div",{class:"result-item-icon-wrapper"},d.icon?Y("img",{alt:"",class:"custom-result-item-icon",src:d.icon}):Y("ph-files",{size:"20px"})),Y("div",{class:"textWrapper"},Y("orama-text",{as:"h3",styledAs:"p",class:"result-title collapsed"},this.highlightTitle?d.title.length>200?Y("span",{innerHTML:this.getHighlightedTitleText(d.title).trim(200)}):Y("span",{innerHTML:this.getHighlightedTitleText(d.title).HTML}):Y("span",{innerHTML:d.title})),Y("orama-text",{as:"p",styledAs:"span",class:"result-description collapsed",variant:"tertiary"},this.highlightDescription?Y("span",{innerHTML:this.getHighlightedDescriptionText(d.description).HTML}):Y("span",{innerHTML:d.description}))))))))))):Y("div",{class:"suggestions-wrapper"},!!(!((t=this.suggestions)===null||t===void 0)&&t.length)&&Y("orama-text",{as:"h2",styledAs:"small",class:"suggestions-title",variant:"secondary"},((r=this.dictionary)===null||r===void 0?void 0:r.suggestionsTitle)||"Suggestions"),Y("orama-suggestions",{as:"list",suggestions:this.suggestions,icon:Y(LA,{name:"starFour",size:16,color:"var(--text-color-accent, text-color('accent')"}),suggestionClicked:g(u=>{this.setChatTerm(u)},"suggestionClicked")}))}get el(){return this}static get style(){return fW}},g(xd,"SearchResults"),xd),[2,"orama-search-results",{sourceBaseUrl:[1,"source-base-url"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],sections:[16],suggestions:[16],searchTerm:[1,"search-term"],setChatTerm:[16,"set-chat-term"],loading:[4],error:[4],highlightTitle:[4,"highlight-title"],highlightDescription:[4,"highlight-description"],dictionary:[16]}]);function Dx(){typeof customElements>"u"||["orama-search-results","orama-suggestions","orama-text"].forEach(e=>{switch(e){case"orama-search-results":customElements.get(e)||customElements.define(e,hW);break;case"orama-suggestions":customElements.get(e)||Xl();break;case"orama-text":customElements.get(e)||Bs();break}})}g(Dx,"defineCustomElement");var pW=".sc-orama-search-h{display:flex;flex-direction:column;overflow:hidden;width:100%}@media (max-width:1024px){.sc-orama-search-h orama-input.sc-orama-search{padding:0 1rem;padding:0 var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)))}}@media (max-width:1024px){.sc-orama-search-h{padding:.5rem 0;padding:var(--spacing-s,calc(8rem/var(--orama-base-font-size, 16))) 0}}.result-wrapper.sc-orama-search{flex-grow:1;overflow-y:auto;padding:0 1rem;padding:0 var(--spacing-l,calc(16rem/var(--orama-base-font-size, 16)))}.result-wrapper.sc-orama-search::-webkit-scrollbar{width:.3em}.result-wrapper.sc-orama-search::-webkit-scrollbar-track{background:transparent}.result-wrapper.sc-orama-search::-webkit-scrollbar-thumb{background-color:hsla(0,0%,70%,.522);border-radius:1rem;border-radius:var(--border-radius-l,calc(16rem/var(--orama-base-font-size, 16)))}@media (min-width:1024.02px){.result-wrapper.sc-orama-search{padding:0 .75rem;padding:0 var(--spacing-m,calc(12rem/var(--orama-base-font-size, 16)))}}.search-form.sc-orama-search{display:flex;flex-direction:column}",zx=function(e,t,r,n){var s=arguments.length,o=s<3?t:n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(l=e[u])&&(o=(s<3?l(o):s>3?l(t,r,o):l(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},wd,p1=Zr((wd=class extends Hr{constructor(){super(),this.__registerHost(),this.searchCompleted=Br(this,"searchCompleted"),this.answerGenerated=Br(this,"answerGenerated"),this.placeholder="Search...",this.focusInput=!1,this.suggestions=[],this.disableChat=!1,this.highlightTitle=!1,this.highlightDescription=!1,this.selectedFacet="",this.handleSubmit=t=>{if(t.preventDefault(),this.disableChat)return;let r=this.el.querySelector("orama-chat-button");r==null||r.click()}}getText(t){let r={searchPlaceholder:this.placeholder};return Qd(t,this.dictionary,r)}doSearch(){this.searchStore.state.searchService.search(this.globalStore.state.currentTerm,this.selectedFacet,{onSearchCompletedCallback:g(t=>{this.searchCompleted.emit(t)},"onSearchCompletedCallback")})}render(){var t;return Y(va,{key:"688c8af1ca2951057a901d4e5d93f44877f6e73b"},Y("form",{key:"f08750150118e1417d817ead3024011a7dfa6d77",onSubmit:this.handleSubmit,class:"search-form"},Y("orama-input",{key:"a173662d45226aa2e36f3ed12f5c3792d1f4aa86","focus-on-arrow-nav":!0,autoFocus:this.focusInput,type:"search",onInput:g(r=>{let n=r.target;this.globalStore.state.currentTerm=n.value,this.doSearch()},"onInput"),value:this.globalStore.state.currentTerm,size:"large",labelForScreenReaders:this.getText("searchPlaceholder"),placeholder:this.getText("searchPlaceholder")}),Y("slot",{key:"64b40b9655e4bd2842800d0ca33e6cdaabf019cc",name:"summary"})),Y("div",{key:"98f8fd718183e5436a2d42eabf8313d5b071be32",class:"result-wrapper"},Y("orama-facets",{key:"6dec4d3f30682444e46a18f3e31a6c77baf42f9c",facets:this.searchStore.state.facets,selectedFacet:this.selectedFacet,selectedFacetChanged:g(r=>{this.selectedFacet=r,this.doSearch()},"selectedFacetChanged")}),Y("orama-search-results",{key:"7e8fe4f97b6882d503965c99044a4d5e46e649b7",suggestions:!(!((t=this.globalStore.state.currentTerm)===null||t===void 0)&&t.length)&&!this.disableChat?this.suggestions:[],setChatTerm:g(r=>{var n;this.globalStore.state.currentTask="chat",(n=this.chatStore.state.chatService)===null||n===void 0||n.sendQuestion(r,this.relatedQueries,void 0,{onAnswerGeneratedCallback:g(s=>this.answerGenerated.emit(s),"onAnswerGeneratedCallback")})},"setChatTerm"),sourceBaseUrl:this.sourceBaseUrl,linksTarget:this.linksTarget,linksRel:this.linksRel,sections:this.searchStore.state.results,searchTerm:this.globalStore.state.currentTerm,highlightTitle:this.highlightTitle,highlightDescription:this.highlightDescription,loading:this.searchStore.state.loading,error:this.searchStore.state.error,dictionary:this.dictionary})))}get el(){return this}static get style(){return pW}},g(wd,"OramaSearch"),wd),[6,"orama-search",{placeholder:[1],focusInput:[4,"focus-input"],suggestions:[16],sourceBaseUrl:[1,"source-base-url"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],disableChat:[4,"disable-chat"],relatedQueries:[2,"related-queries"],highlightTitle:[4,"highlight-title"],highlightDescription:[4,"highlight-description"],dictionary:[16],selectedFacet:[32]}]);zx([no("search")],p1.prototype,"searchStore",void 0);zx([no("global")],p1.prototype,"globalStore",void 0);zx([no("chat")],p1.prototype,"chatStore",void 0);function ZA(){typeof customElements>"u"||["orama-search","orama-facets","orama-input","orama-search-results","orama-suggestions","orama-text"].forEach(e=>{switch(e){case"orama-search":customElements.get(e)||customElements.define(e,p1);break;case"orama-facets":customElements.get(e)||Lx();break;case"orama-input":customElements.get(e)||Px();break;case"orama-search-results":customElements.get(e)||Dx();break;case"orama-suggestions":customElements.get(e)||Xl();break;case"orama-text":customElements.get(e)||Bs();break}})}g(ZA,"defineCustomElement");var mW=".slide-backdrop.visible.sc-orama-sliding-panel{animation:backdropFadeIn .5s ease-in 1;background-color:hsla(0,0%,98%,.7);background-color:var(--backdrop-background-color-primary,hsla(0,0%,98%,.7));display:none;display:block;height:100vh;left:0;opacity:0;position:fixed;top:0;width:100vw;z-index:10009}@media (min-width:1024.02px){.slide-backdrop.visible.sc-orama-sliding-panel{display:block;opacity:1}}@keyframes backdropFadeIn{0%{opacity:0}50%{opacity:.2}to{opacity:1}}.slide-container.sc-orama-sliding-panel{background-color:#fbfbfb;background-color:var(--background-color-primary,#fbfbfb);border:1px solid #dadada;border:1px solid var(--border-color-primary,#dadada);border-radius:.75rem .75rem 0 0;border-radius:var(--radius-m,calc(12rem/var(--orama-base-font-size, 16))) var(--radius-m,calc(12rem/var(--orama-base-font-size, 16))) 0 0;bottom:0;box-sizing:border-box;color:#151515;color:var(--text-color-primary,#151515);height:95vh;left:0;position:fixed;transform:translate3d(0,calc(100% + 5vh),0);transition:.4s cubic-bezier(.4,0,.2,1);width:100%;z-index:10019}.slide-container.slide-up.sc-orama-sliding-panel{transform:translateZ(0)}@media (max-width:1024px){.slide-container.sc-orama-sliding-panel{display:none}}.slide-container-inner.sc-orama-sliding-panel{height:95vh;margin:0 auto;max-width:52.5rem;max-width:calc(840rem/var(--orama-base-font-size, 16));width:80%}.slide-container-inner.sc-orama-sliding-panel orama-chat.sc-orama-sliding-panel{height:100%}.slide-container-header.sc-orama-sliding-panel{box-sizing:border-box;display:flex;height:5vh;justify-content:flex-end;padding:0 2.5rem;padding:0 var(--spacing-3xl,calc(40rem/var(--orama-base-font-size, 16)));position:absolute;top:-5vh;width:100%}.close-button.sc-orama-sliding-panel{animation:showIn .3s cubic-bezier(.4,0,.2,1) .1s forwards;background-color:transparent;border:0;color:#151515;color:var(--text-color-primary,#151515);cursor:pointer}",Cd,gW=Zr((Cd=class extends Hr{constructor(){super(),this.__registerHost(),this.backdrop=!1,this.open=!1,this.isOpen=this.open}openChanged(){this.isOpen=this.open}closePanel(){this.closed&&this.closed(),this.isOpen=!1}trapFocus(t){var r;let n=(r=this.el)===null||r===void 0?void 0:r.querySelectorAll('a[href], button, textarea, input, select, [tabindex]:not([tabindex="-1"])'),s=Array.from(n);if(s=s.filter(o=>o.tabIndex!==-1),s.length>0){this.firstFocusableElement=s[0],this.lastFocusableElement=s[s.length-1];let o=this.el.querySelector(":focus");t.shiftKey&&o===this.firstFocusableElement?(t.preventDefault(),this.lastFocusableElement.focus()):!t.shiftKey&&o===this.lastFocusableElement&&(t.preventDefault(),this.firstFocusableElement.focus())}}handleKeyDown(t){t.stopPropagation(),t.key==="Escape"&&this.closePanel(),t.key==="Tab"&&this.trapFocus(t)}componentDidLoad(){this.isOpen=this.open}render(){return Y(zo,{key:"f88b00bf1fc61de9416fcbfe6401ff14d7865fd2"},Y("div",{key:"dba8338860b889ca1bed7bf25de95be366f0a2f4",class:{"slide-container":!0,"slide-up":this.isOpen},tabIndex:this.isOpen?0:-1},Y("div",{key:"1f7b7c593782897ca63527c93cf775985f3682d2",class:"slide-container-header"},Y("button",{key:"08826ac5dc073eba459dd2fd9adbbe34521c48a5",onClick:g(()=>this.closePanel(),"onClick"),"aria-expanded":this.isOpen?"true":"false","aria-label":"Close panel","aria-controls":"panel",class:"close-button",type:"button"},Y("ph-x",{key:"e1f618268881eeb161291e7b25accdc9835e453a",size:"18"}))),Y("div",{key:"d032def08d136efb85b7dcc203b855c211024537",id:"panel","aria-hidden":!this.isOpen,tabindex:"-1",class:"slide-container-inner"},Y("slot",{key:"63db6812e71a0cc1a7fd0bc630a5200632908562"}))),this.backdrop&&Y("div",{key:"a1da61d3366e055e2c3bb40cc60dd2ad14a8e9ac",class:{"slide-backdrop":!0,visible:this.isOpen}}))}get el(){return this}static get watchers(){return{open:["openChanged"]}}static get style(){return mW}},g(Cd,"SlideInPanel"),Cd),[6,"orama-sliding-panel",{backdrop:[4],open:[4],closed:[16],isOpen:[32]},[[4,"keydown","handleKeyDown"]],{open:["openChanged"]}]);function VA(){typeof customElements>"u"||["orama-sliding-panel"].forEach(e=>{switch(e){case"orama-sliding-panel":customElements.get(e)||customElements.define(e,gW);break}})}g(VA,"defineCustomElement");var yW=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r},bW=10,$d,vW=($d=class{constructor(t,r,n){this.search=async(s,o,l)=>{var u,d,h,p;if(!this.client)throw new uh;if(this.abortSearch(),!s){this.searchStore.state.results=[],this.searchStore.state.count=0,this.searchStore.state.facets=[],this.searchStore.state.highlightedIndex=-1;return}this.searchStore.state.loading=!0;let m=this.abortController,b=(u=this.searchStore.state.searchParams)!==null&&u!==void 0?u:{},{limit:S,where:x}=b,C=yW(b,["limit","offset","where"]),$=Object.assign(Object.assign(Object.assign(Object.assign({},C),{term:s,limit:S||bW}),x?{where:x}:{}),this.searchStore.state.facetProperty&&Object.assign({facets:{[this.searchStore.state.facetProperty]:{}}},o&&o!=="All"&&{where:Object.assign({[this.searchStore.state.facetProperty]:{eq:o}},x)}));try{let _=await this.client.search($);if(m.signal.aborted)return;if(_&&!_.hits)throw new Error("This search was made by a OramaClient with property mergeResult set to false. Orama Search Service requires mergeResult to be true.");this.searchStore.state.results=this.parserResults(_==null?void 0:_.hits,this.searchStore.state.resultMap),this.searchStore.state.count=(_==null?void 0:_.count)||0,this.searchStore.state.facets=this.parseFacets(_==null?void 0:_.facets,this.searchStore.state.facetProperty),this.searchStore.state.highlightedIndex=-1,this.searchStore.state.loading=!1,(d=l==null?void 0:l.onSearchCompletedCallback)===null||d===void 0||d.call(l,{clientSearchParams:$,result:{results:this.searchStore.state.results,resultsCount:this.searchStore.state.count,facets:this.searchStore.state.facets}}),(h=l==null?void 0:l.onSearchCompletedCallback)===null||h===void 0||h.call(l,{clientSearchParams:$,result:{results:this.searchStore.state.results,resultsCount:this.searchStore.state.count,facets:this.searchStore.state.facets}})}catch(_){if(console.error("Search error:",_),m.signal.aborted)return;this.searchStore.state.loading=!1,(p=l==null?void 0:l.onSearchErrorCallback)===null||p===void 0||p.call(l,_)}},this.retry=()=>{throw new Error("Not implemented")},this.getResultMapObjectByForTheHit=(s,o)=>{let l=Array.isArray(s)?s:[s];return l.length===1?l[0]:l.find(u=>u.datasourceId===o.datasource_id)||{}},this.parserResults=(s,o)=>{if(!s)return[];let l=[],u={};for(let d of s){let h=this.getResultMapObjectByForTheHit(o,d),p=this.hitToSearchResultParser(d,h),m=typeof h.section=="function"?h.section(d.document,d.datasource_id):d.document[h.section];if(u[m]===void 0)l.push({section:m,items:[p]}),u[m]=l.length-1;else{let b=u[m];l[b].items.push(p)}}return l},this.hitToSearchResultParser=(s,o)=>{function l(d){if(!s.document)return"";let h=o[d];if(!h){let b=s.document[d];return typeof b=="string"?b:String(b??"")}if(typeof h=="function"){let b=h(s.document,s.datasource_id);return typeof b=="string"?b:String(b??"")}let p=h,m=s.document[p];return typeof m=="string"?m:String(m??"")}g(l,"getResultMapValue");function u(){let d=o.icon;return d?typeof d=="function"?d(s.document,s.datasource_id)??null:o.icon:null}return g(u,"getIcon"),{id:s.id,title:l("title"),description:l("description"),path:l("path"),icon:u()}},this.parseFacets=(s,o)=>{if(!o||!s)return[];let l=s[o];if(!l||!l.values)return[];let u=Object.values(l.values).reduce((h,p)=>h+p,0),d=Object.keys(l.values).map(h=>({name:h,count:l.values[h]}));return d.unshift({name:"All",count:u}),d},this.client=r||new TA(t),this.searchStore=n,this.abortController=new AbortController}abortSearch(){this.abortController.abort(),this.abortController=new AbortController}},g($d,"SearchService"),$d),kd,SW=(kd=class extends EventTarget{constructor(){super(),this._width=window.innerWidth,this.handleResize=this.handleResize.bind(this),window.addEventListener("resize",this.handleResize)}handleResize(){this._width=window.innerWidth,this.dispatchEvent(new CustomEvent("widthChange",{detail:this._width}))}get width(){return this._width}},g(kd,"WindowService"),kd),yv=new SW,xW="@keyframes showIn{0%{opacity:0;transform:translateY(-25%)}to{opacity:1;transform:translateY(0)}}@media (min-width:1024.02px){.modal orama-input{border-radius:0;margin:0;padding:0}.modal input[type=search]{border-radius:.75rem .75rem 0 0;border-radius:var(--radius-m,calc(12rem/var(--orama-base-font-size, 16))) var(--radius-m,calc(12rem/var(--orama-base-font-size, 16))) 0 0}}.main{flex-direction:column;flex-grow:1}.main,.section-active{display:flex;overflow:hidden}.section-inactive{display:none}",Ed,FA=Zr((Ed=class extends Hr{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.searchCompleted=Br(this,"searchCompleted"),this.searchResultClick=Br(this,"searchResultClick"),this.clearChat=Br(this,"clearChat"),this.startConversation=Br(this,"startConversation"),this.answerGenerated=Br(this,"answerGenerated"),this.answerSourceClick=Br(this,"answerSourceClick"),this.chatMarkdownLinkClicked=Br(this,"chatMarkdownLinkClicked"),this.modalClosed=Br(this,"modalClosed"),this.modalStatusChanged=Br(this,"modalStatusChanged"),this.colorScheme="light",this.open=!1,this.resultMap={},this.disableChat=!1,this.layout="modal",this.highlightTitle=!1,this.highlightDescription=!1,this.clearChatOnDisconnect=!0,this.showKeyboardShortcuts=!0,this.dictionary={},this.componentID=Q0("search-box"),this.systemScheme="light",this.closeSearchbox=()=>{this.globalStore.state.open=!1,this.open=!1},this.onChatButtonClick=()=>{this.globalStore.state.currentTask="chat"},this.onPrefersColorSchemeChange=t=>{this.systemScheme=t.matches?"dark":"light",this.updateTheme()},this.updateWindowWidth=t=>{this.windowWidth=t.detail}}handleDictionaryChange(t){let r={};if(typeof t=="string")try{r=JSON.parse(t)}catch(n){console.error("Failed to parse dictionary string:",n)}else r=t||{};this.internalTextDictionary=Object.assign(Object.assign({},B2),r)}indexChanged(){this.searchStore&&this.bootstrap()}watchHandler(){this.updateTheme()}handleOpenPropChange(t){this.globalStore.state.open=t,this.modalStatusChanged.emit({open:t,id:this.wrapperRef}),t||this.modalClosed.emit()}handleFacetPropertyChange(t){this.searchStore.state.facetProperty=t}handleSearchParamsChange(t){this.searchStore.state.searchParams=t}handleKeyDown(t){var r;((r=this.globalStore)===null||r===void 0?void 0:r.state.currentTask)==="search"&&(this.layout==="modal"&&this.open||this.layout==="embed")&&["ArrowDown","ArrowUp"].includes(t.key)&&b5(this.wrapperRef,t)}updateTheme(){let t=X0(this.htmlElement,this.colorScheme,this.systemScheme);J0(this.htmlElement,t,this.themeConfig)}getOldOramaClient(){if(!this.oramaCoreClientInstance)return this.clientInstance?this.clientInstance:XS(this.index)}bootstrap(){this.searchStore.state.facetProperty=this.facetProperty,this.searchStore.state.resultMap=this.resultMap,this.searchStore.state.searchParams=this.searchParams,this.startServices()}startServices(){if(!this.index&&!this.clientInstance&&!this.oramaCoreClientInstance)return;QS(this.htmlElement,this.index,this.clientInstance,this.oramaCoreClientInstance);let t=this.getOldOramaClient();this.searchStore.state.searchService=new vW(t,this.oramaCoreClientInstance,this.searchStore),this.chatStore.state.chatService=new AA(t,this.oramaCoreClientInstance,this.chatStore)}componentWillLoad(){this.htmlElement.id=this.componentID,this.bootstrap(),this.globalStore.state.open=this.open,this.globalStore.onChange("open",()=>{this.globalStore&&(this.open=this.globalStore.state.open,this.globalStore.state.open||(this.globalStore.state.currentTerm="",this.searchStore.state.facets=[],this.searchStore.state.count=0,this.searchStore.state.results=[],this.searchStore.state.highlightedIndex=-1,this.searchStore.state.loading=!1,this.searchStore.state.error=!1,this.chatStore.state.interactions=[],setTimeout(()=>{})))}),this.schemaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.systemScheme=this.schemaQuery.matches?"dark":"light",this.updateTheme(),this.schemaQuery.addEventListener("change",this.onPrefersColorSchemeChange),yv.addEventListener("widthChange",this.updateWindowWidth);let t={};if(typeof this.dictionary=="string")try{t=JSON.parse(this.dictionary)}catch(r){console.error("Failed to parse initial dictionary string:",r)}else t=this.dictionary||{};this.internalTextDictionary=Object.assign(Object.assign({},B2),t)}connectedCallback(){this.chatStore=ig("chat",this.componentID),this.searchStore=ig("search",this.componentID),this.globalStore=ig("global",this.componentID),this.windowWidth=yv.width}disconnectedCallback(){var t;T5(this.componentID),yv.removeEventListener("widthChange",this.updateWindowWidth),(t=this.schemaQuery)===null||t===void 0||t.removeEventListener("change",this.onPrefersColorSchemeChange)}getText(t){let r={searchPlaceholder:this.searchPlaceholder,chatPlaceholder:this.chatPlaceholder};return Qd(t,this.internalTextDictionary,r)}getSearchBox(){return Y("div",{class:`${this.windowWidth>1024||this.globalStore.state.currentTask==="search"?"section-active":"section-inactive"}`},Y("orama-search",{placeholder:this.getText("searchPlaceholder"),focusInput:this.globalStore.state.currentTask==="search",sourceBaseUrl:this.sourceBaseUrl,linksTarget:this.linksTarget,linksRel:this.linksRel,highlightTitle:this.highlightTitle,highlightDescription:this.highlightDescription,disableChat:this.disableChat,suggestions:this.suggestions,dictionary:this.internalTextDictionary},this.windowWidth>1024&&!this.disableChat&&Y("orama-chat-button",{slot:"summary","focus-on-arrow-nav":!0,active:!!this.globalStore.state.currentTerm,label:`${this.globalStore.state.currentTerm?`${this.globalStore.state.currentTerm} - `:""}${this.getText("chatButtonLabel")}`,onClick:this.onChatButtonClick,onKeyPress:this.onChatButtonClick})))}getChatBox(){return Y(zo,null,Y("orama-chat",{class:`${this.globalStore.state.currentTask==="chat"?"section-active":"section-inactive"}`,defaultTerm:this.globalStore.state.currentTask==="chat"?this.globalStore.state.currentTerm:"",showClearChat:!1,focusInput:this.globalStore.state.currentTask==="chat",placeholder:this.getText("chatPlaceholder"),sourceBaseUrl:this.sourceBaseUrl,linksTarget:this.linksTarget,linksRel:this.linksRel,sourcesMap:this.sourcesMap,suggestions:this.suggestions,chatMarkdownLinkTitle:this.chatMarkdownLinkTitle,chatMarkdownLinkHref:this.chatMarkdownLinkHref,chatMarkdownLinkTarget:this.chatMarkdownLinkTarget,disclaimer:this.disclaimer,dictionary:this.internalTextDictionary,systemPrompts:this.systemPrompts,prompt:this.prompt,clearChatOnDisconnect:this.clearChatOnDisconnect,relatedQueries:this.relatedQueries}))}getInnerContent(){return Y(zo,null,this.disableChat?null:Y("orama-navigation-bar",{handleClose:this.closeSearchbox,showBackButton:this.layout!=="embed",showChatActions:this.globalStore.state.currentTask==="chat"}),Y("div",{class:"main"},this.getSearchBox(),this.windowWidth<=1024&&this.getChatBox()),Y("orama-footer",{colorScheme:this.colorScheme==="system"?this.systemScheme:this.colorScheme,showKeyboardShortcuts:this.showKeyboardShortcuts}))}getOuterContent(){return this.windowWidth>1024?Y("orama-sliding-panel",{open:this.globalStore.state.currentTask==="chat",backdrop:this.layout==="embed",closed:g(()=>{this.globalStore.state.currentTask="search"},"closed")},this.getChatBox()):null}getModalLayout(){return Y(zo,null,Y("orama-modal",{ref:g(t=>this.wrapperRef=t,"ref"),class:"modal",mainTitle:this.getText("startYourSearch"),onModalClosed:g(t=>{this.open=!1,t.stopPropagation()},"onModalClosed"),closeOnEscape:this.globalStore.state.currentTask==="search"||this.windowWidth<=1024},this.getInnerContent()),this.getOuterContent())}getEmbedLayout(){return Y(zo,null,Y("orama-embed",{ref:g(t=>this.wrapperRef=t,"ref")},this.getInnerContent()),this.getOuterContent())}render(){return this.layout==="modal"&&!this.globalStore.state.open||!this.searchStore.state.searchService||!this.chatStore.state.chatService?null:this.layout==="modal"?this.getModalLayout():this.getEmbedLayout()}get htmlElement(){return this}static get watchers(){return{dictionary:["handleDictionaryChange"],index:["indexChanged"],clientInstance:["indexChanged"],oramaCoreClientInstance:["indexChanged"],themeConfig:["watchHandler"],colorScheme:["watchHandler"],open:["handleOpenPropChange"],facetProperty:["handleFacetPropertyChange"],searchParams:["handleSearchParamsChange"]}}static get style(){return xW}},g(Ed,"SearchBox"),Ed),[1,"orama-search-box",{themeConfig:[16,"theme-config"],colorScheme:[1,"color-scheme"],index:[16],clientInstance:[16,"client-instance"],oramaCoreClientInstance:[16,"orama-core-client-instance"],open:[1540],facetProperty:[1,"facet-property"],resultMap:[16,"result-map"],resultItemRender:[16,"result-item-render"],sourceBaseUrl:[1,"source-base-url"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],sourcesMap:[16,"sources-map"],disableChat:[4,"disable-chat"],layout:[1],highlightTitle:[4,"highlight-title"],highlightDescription:[4,"highlight-description"],prompt:[1],chatPlaceholder:[1,"chat-placeholder"],searchPlaceholder:[1,"search-placeholder"],suggestions:[16],searchParams:[16,"search-params"],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],clearChatOnDisconnect:[4,"clear-chat-on-disconnect"],systemPrompts:[16,"system-prompts"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"],showKeyboardShortcuts:[4,"show-keyboard-shortcuts"],disclaimer:[1],dictionary:[16],relatedQueries:[2,"related-queries"],internalTextDictionary:[32],componentID:[32],systemScheme:[32],windowWidth:[32]},[[4,"keydown","handleKeyDown"]],{dictionary:["handleDictionaryChange"],index:["indexChanged"],clientInstance:["indexChanged"],oramaCoreClientInstance:["indexChanged"],themeConfig:["watchHandler"],colorScheme:["watchHandler"],open:["handleOpenPropChange"],facetProperty:["handleFacetPropertyChange"],searchParams:["handleSearchParamsChange"]}]);function qA(){typeof customElements>"u"||["orama-search-box","orama-button","orama-chat","orama-chat-assistent-message","orama-chat-button","orama-chat-messages-container","orama-chat-user-message","orama-dots-loader","orama-embed","orama-facets","orama-footer","orama-input","orama-markdown","orama-modal","orama-navigation-bar","orama-search","orama-search-results","orama-sliding-panel","orama-sources","orama-suggestions","orama-text","orama-textarea","orama-toggler"].forEach(e=>{switch(e){case"orama-search-box":customElements.get(e)||customElements.define(e,FA);break;case"orama-button":customElements.get(e)||Ko();break;case"orama-chat":customElements.get(e)||Nx();break;case"orama-chat-assistent-message":customElements.get(e)||dp();break;case"orama-chat-button":customElements.get(e)||PA();break;case"orama-chat-messages-container":customElements.get(e)||f1();break;case"orama-chat-user-message":customElements.get(e)||mp();break;case"orama-dots-loader":customElements.get(e)||Wd();break;case"orama-embed":customElements.get(e)||IA();break;case"orama-facets":customElements.get(e)||Lx();break;case"orama-footer":customElements.get(e)||DA();break;case"orama-input":customElements.get(e)||Px();break;case"orama-markdown":customElements.get(e)||Ql();break;case"orama-modal":customElements.get(e)||zA();break;case"orama-navigation-bar":customElements.get(e)||UA();break;case"orama-search":customElements.get(e)||ZA();break;case"orama-search-results":customElements.get(e)||Dx();break;case"orama-sliding-panel":customElements.get(e)||VA();break;case"orama-sources":customElements.get(e)||Yd();break;case"orama-suggestions":customElements.get(e)||Xl();break;case"orama-text":customElements.get(e)||Bs();break;case"orama-textarea":customElements.get(e)||h1();break;case"orama-toggler":customElements.get(e)||Ix();break}})}g(qA,"defineCustomElement$1");var wW=FA,CW=qA,$W=":host{display:block}.kyb-shortcut{background-color:#eee9f6;background-color:var(--background-color-tertiary,#eee9f6);border-radius:.5rem;border-radius:var(--radius-s,calc(8rem/var(--orama-base-font-size, 16)));padding:.25rem;padding:var(--spacing-xs,calc(4rem/var(--orama-base-font-size, 16))) var(--spacing-s,calc(4rem/var(--orama-base-font-size, 16)))}",_d,GA=Zr((_d=class extends Hr{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.size="medium",this.colorScheme="light",this.dictionary={},this.systemScheme="light",this.shortcutLabel="",this.componentID=Q0("search-button"),this.onPrefersColorSchemeChange=t=>{this.systemScheme=t.matches?"dark":"light",this.updateTheme()}}handleTextDictionaryChange(t){if(typeof t=="string")try{this.dictionary=JSON.parse(t)}catch(r){console.error("Error parsing dictionary:",r)}}getText(t){return Qd(t,this.dictionary)}watchHandler(){this.updateTheme()}handleSearchboxClosed(t){this.buttonRef.querySelector("button").focus()}handleKeyDown(t){t.key==="k"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.buttonRef.click())}updateTheme(){let t=X0(this.htmlElement,this.colorScheme,this.systemScheme);J0(this.htmlElement,t,this.themeConfig)}handleShortcutLabel(){return navigator.userAgent.includes("Mac")?"⌘ K":"Ctrl + K"}connectedCallback(){this.htmlElement.id=this.componentID,this.shortcutLabel=this.handleShortcutLabel(),this.schemaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.systemScheme=this.schemaQuery.matches?"dark":"light",this.updateTheme(),this.schemaQuery.addEventListener("change",this.onPrefersColorSchemeChange)}disconnectedCallback(){this.schemaQuery.removeEventListener("change",this.onPrefersColorSchemeChange)}componentWillLoad(){this.updateTheme()}render(){return Y(va,{key:"d784308be3ef8bb2abeaa25bed43f51962ec7586"},Y("orama-button",{key:"2dafcd15bb0b5f468e6a91d9651cec22f2670a61",type:"button",variant:"secondary",ref:g(t=>this.buttonRef=t,"ref"),size:this.size,onClick:g(()=>{let t=document.getElementsByTagName("orama-search-box");if(!t.length){console.error("No OramaSearchBox found");return}if(t.length>1){console.error("Multiple instances of OramaSearchBox (orama-search-box) found. Considere to assign an ID to OramaSearchBox, implement onClick on OramaSearchButton and select desired OramaSearchBox on onClick method");return}t[0].open=!0},"onClick")},Y("span",{key:"c96898d75e57d546930794c25d04a6cd3cd3f960",slot:"adorment-start"},Y("ph-magnifying-glass",{key:"a42c0d765c8bdf1647ebc7d9e85c8ce224397ddf"})),Y("slot",{key:"979f16ad8739765dc42ed9cbb46d6b2eb789e000"},this.getText("searchButtonLabel")),Y("span",{key:"e211d3ccd39bbe8b628569a4d69ff23c7a0a9935",slot:"adorment-end",class:"kyb-shortcut"},this.shortcutLabel)))}get htmlElement(){return this}static get watchers(){return{dictionary:["handleTextDictionaryChange"],themeConfig:["watchHandler"],colorScheme:["watchHandler"]}}static get style(){return $W}},g(_d,"OramaSearchButton"),_d),[1,"orama-search-button",{size:[1],themeConfig:[16,"theme-config"],colorScheme:[1,"color-scheme"],dictionary:[16],systemScheme:[32],shortcutLabel:[32],componentID:[32]},[[16,"searchboxClosed","handleSearchboxClosed"],[4,"keydown","handleKeyDown"]],{dictionary:["handleTextDictionaryChange"],themeConfig:["watchHandler"],colorScheme:["watchHandler"]}]);function KA(){typeof customElements>"u"||["orama-search-button","orama-button"].forEach(e=>{switch(e){case"orama-search-button":customElements.get(e)||customElements.define(e,GA);break;case"orama-button":customElements.get(e)||Ko();break}})}g(KA,"defineCustomElement$1");var kW=GA,EW=KA;Z0({tagName:"orama-chat-box",elementClass:RK,react:kn,events:{onAnswerGenerated:"answerGenerated",onClearChat:"clearChat",onStartConversation:"startConversation",onAnswerSourceClick:"answerSourceClick",onChatMarkdownLinkClicked:"chatMarkdownLinkClicked"},defineCustomElement:OK});Z0({tagName:"orama-markdown",elementClass:YK,react:kn,events:{onChatMarkdownLinkClicked:"chatMarkdownLinkClicked"},defineCustomElement:QK});var _W=Z0({tagName:"orama-search-box",elementClass:wW,react:kn,events:{onSearchCompleted:"searchCompleted",onSearchResultClick:"searchResultClick",onClearChat:"clearChat",onStartConversation:"startConversation",onAnswerGenerated:"answerGenerated",onAnswerSourceClick:"answerSourceClick",onChatMarkdownLinkClicked:"chatMarkdownLinkClicked",onModalClosed:"modalClosed",onModalStatusChanged:"modalStatusChanged"},defineCustomElement:CW}),TW=Z0({tagName:"orama-search-button",elementClass:kW,react:kn,events:{},defineCustomElement:EW}),AW=g(()=>{},"globalScripts");g(async(e,t)=>{if(!(typeof window>"u"))return await AW(),sZ([["orama-logo-icon",[[2,"orama-logo-icon",{size:[2]}]]],["orama-button_25",[[1,"orama-search-box",{themeConfig:[16,"theme-config"],colorScheme:[1,"color-scheme"],index:[16],clientInstance:[16,"client-instance"],oramaCoreClientInstance:[16,"orama-core-client-instance"],open:[1540],facetProperty:[1,"facet-property"],resultMap:[16,"result-map"],resultItemRender:[16,"result-item-render"],sourceBaseUrl:[1,"source-base-url"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],sourcesMap:[16,"sources-map"],disableChat:[4,"disable-chat"],layout:[1],highlightTitle:[4,"highlight-title"],highlightDescription:[4,"highlight-description"],prompt:[1],chatPlaceholder:[1,"chat-placeholder"],searchPlaceholder:[1,"search-placeholder"],suggestions:[16],searchParams:[16,"search-params"],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],clearChatOnDisconnect:[4,"clear-chat-on-disconnect"],systemPrompts:[16,"system-prompts"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"],showKeyboardShortcuts:[4,"show-keyboard-shortcuts"],disclaimer:[1],dictionary:[16],relatedQueries:[2,"related-queries"],internalTextDictionary:[32],componentID:[32],systemScheme:[32],windowWidth:[32]},[[4,"keydown","handleKeyDown"]],{dictionary:["handleDictionaryChange"],index:["indexChanged"],clientInstance:["indexChanged"],oramaCoreClientInstance:["indexChanged"],themeConfig:["watchHandler"],colorScheme:["watchHandler"],open:["handleOpenPropChange"],facetProperty:["handleFacetPropertyChange"],searchParams:["handleSearchParamsChange"]}],[1,"orama-chat-box",{index:[16],clientInstance:[16,"client-instance"],oramaCoreClientInstance:[16,"orama-core-client-instance"],sourceBaseUrl:[1,"source-base-url"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],placeholder:[1],sourcesMap:[16,"sources-map"],suggestions:[16],relatedQueries:[2,"related-queries"],autoFocus:[4,"auto-focus"],systemPrompts:[16,"system-prompts"],prompt:[1],clearChatOnDisconnect:[4,"clear-chat-on-disconnect"],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"],dictionary:[16],disclaimer:[1],themeConfig:[16,"theme-config"],colorScheme:[1,"color-scheme"],componentID:[32],systemScheme:[32]},null,{index:["watchHandler"],themeConfig:["watchHandler"],colorScheme:["watchHandler"],oramaCoreClientInstance:["watchHandler"],clientInstance:["watchHandler"],dictionary:["handleTextDictionaryChange"]}],[1,"orama-search-button",{size:[1],themeConfig:[16,"theme-config"],colorScheme:[1,"color-scheme"],dictionary:[16],systemScheme:[32],shortcutLabel:[32],componentID:[32]},[[16,"searchboxClosed","handleSearchboxClosed"],[4,"keydown","handleKeyDown"]],{dictionary:["handleTextDictionaryChange"],themeConfig:["watchHandler"],colorScheme:["watchHandler"]}],[6,"orama-search",{placeholder:[1],focusInput:[4,"focus-input"],suggestions:[16],sourceBaseUrl:[1,"source-base-url"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],disableChat:[4,"disable-chat"],relatedQueries:[2,"related-queries"],highlightTitle:[4,"highlight-title"],highlightDescription:[4,"highlight-description"],dictionary:[16],selectedFacet:[32]}],[2,"orama-navigation-bar",{handleClose:[16,"handle-close"],showBackButton:[4,"show-back-button"],showChatActions:[4,"show-chat-actions"]}],[2,"orama-footer",{class:[1],colorScheme:[16,"color-scheme"],showKeyboardShortcuts:[4,"show-keyboard-shortcuts"]}],[2,"orama-chat-button",{label:[1],active:[4],highlight:[1028],class:[1]},null,{active:["highlightButton"],highlight:["highlightButton"]}],[6,"orama-embed"],[6,"orama-modal",{closeOnEscape:[4,"close-on-escape"],closeOnOutsideClick:[4,"close-on-outside-click"],mainTitle:[1,"main-title"],activeElement:[32]}],[6,"orama-sliding-panel",{backdrop:[4],open:[4],closed:[16],isOpen:[32]},[[4,"keydown","handleKeyDown"]],{open:["openChanged"]}],[4,"orama-chat",{placeholder:[1],sourceBaseUrl:[1,"source-base-url"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],sourcesMap:[16,"sources-map"],showClearChat:[4,"show-clear-chat"],defaultTerm:[1,"default-term"],focusInput:[4,"focus-input"],suggestions:[16],relatedQueries:[2,"related-queries"],prompt:[1],systemPrompts:[16,"system-prompts"],clearChatOnDisconnect:[4,"clear-chat-on-disconnect"],dictionary:[16],disclaimer:[1],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"],inputValue:[32],showGoToBottomButton:[32]},[[0,"sourceItemClick","handleSourceItemClick"]],{defaultTerm:["handleDefaultTermChange"],focusInput:["focusInputWatcher"],prompt:["promptWatcher"],dictionary:["handleTextDictionaryChange"]}],[2,"orama-search-results",{sourceBaseUrl:[1,"source-base-url"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],sections:[16],suggestions:[16],searchTerm:[1,"search-term"],setChatTerm:[16,"set-chat-term"],loading:[4],error:[4],highlightTitle:[4,"highlight-title"],highlightDescription:[4,"highlight-description"],dictionary:[16]}],[2,"orama-facets",{facets:[16],selectedFacet:[1,"selected-facet"],selectedFacetChanged:[16,"selected-facet-changed"]},[[0,"keydown","handleKeyDown"]],{selectedFacet:["handleSelectedFacetChange"]}],[2,"orama-input",{name:[1],size:[1],label:[1],type:[1],placeholder:[1],labelForScreenReaders:[1,"label-for-screen-readers"],defaultValue:[1,"default-value"],autoFocus:[4,"auto-focus"],value:[1]},null,{autoFocus:["handleAutoFocusChange"]}],[2,"orama-toggler",{performInitialAnimation:[4,"perform-initial-animation"]}],[2,"orama-chat-messages-container",{interactions:[16],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"],latestInteractionMinHeight:[32]}],[6,"orama-textarea",{value:[1],maxRows:[8,"max-rows"],minRows:[8,"min-rows"],placeholder:[1],autoFocus:[4,"auto-focus"],height:[32],startAdornmentWidth:[32],endAdornmentWidth:[32]},null,{autoFocus:["handleAutoFocusChange"],value:["handlePropsChange"],maxRows:["handlePropsChange"],minRows:["handlePropsChange"]}],[2,"orama-chat-assistent-message",{interaction:[16],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"],isCopied:[32],isDisliked:[32]}],[2,"orama-chat-user-message",{interaction:[16]}],[1,"orama-sources",{sources:[8],sourceBaseURL:[1,"source-base-u-r-l"],linksTarget:[1,"links-target"],linksRel:[1,"links-rel"],isCarouselScrollAtEnd:[32],isCarouselScrollAtStart:[32]}],[2,"orama-dots-loader"],[1,"orama-markdown",{content:[1],chatMarkdownLinkTitle:[16,"chat-markdown-link-title"],chatMarkdownLinkHref:[16,"chat-markdown-link-href"],chatMarkdownLinkTarget:[16,"chat-markdown-link-target"]},null,{content:["onContentChange"]}],[2,"orama-suggestions",{suggestions:[16],as:[1],icon:[16],suggestionClicked:[16,"suggestion-clicked"]}],[6,"orama-button",{as:[1],class:[1],variant:[1],size:[1],type:[1],disabled:[4],withTooltip:[1,"with-tooltip"]}],[6,"orama-text",{as:[1],styledAs:[1,"styled-as"],bold:[4],class:[1],align:[1],variant:[1],inactive:[4]}]]]],t)},"defineCustomElements");(function(){if(typeof window<"u"&&window.Reflect!==void 0&&window.customElements!==void 0){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();xT(`@import"https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap";[id^=orama-ui]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Instrument Sans,sans-serif;font-family:var(--font-primary,"Instrument Sans",sans-serif);font-weight:400;text-rendering:optimizeLegibility;vertical-align:baseline;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;--text-color-primary:#151515;--text-color-secondary:#838289;--text-color-tertiary:#99989d;--text-color-accent:#ae8ff7;--text-color-inactive:#99989d;--text-color-reverse:#fff;--background-color-primary:#fbfbfb;--background-color-secondary:#fff;--background-color-tertiary:#eee9f6;--background-color-fourth:#efefef;--background-color-reverse:#000;--background-color-accent:#432d77;--border-color-primary:#dadada;--border-color-secondary:#efefef;--border-color-tertiary:#151515;--border-color-accent:#432d77;--icon-color-primary:#151515;--icon-color-secondary:#dadada;--icon-color-tertiary:#838289;--icon-color-inactive:#99989d;--icon-color-reverse:#fbfbfb;--shadow-color-primary:#fff;--button-text-color-primary:#fbfbfb;--button-text-color-secondary:#838289;--button-background-color-primary:#432d77;--button-background-color-secondary:#fff;--button-background-color-secondary-hover:#eee9f6;--button-border-color-secondary:#dadada;--backdrop-background-color-primary:hsla(0,0%,98%,.7);--chat-button-border-color-gradientOne:transparent;--chat-button-border-color-gradientTwo:transparent;--chat-button-border-color-gradientThree:#432d77;--chat-button-border-color-gradientFour:#432d77;--chat-button-border-color-gradientFive:transparent;--chat-button-border-color-gradientSix:transparent;--chat-button-background-color-gradientOne:#432d77;--chat-button-background-color-gradientTwo:transparent;--font-primary:"Instrument Sans",sans-serif;--font-size-xxs:calc(10rem/var(--orama-base-font-size, 16));--font-size-xs:calc(12rem/var(--orama-base-font-size, 16));--font-size-sm:calc(14rem/var(--orama-base-font-size, 16));--font-size-md:calc(16rem/var(--orama-base-font-size, 16));--font-size-lg:calc(20rem/var(--orama-base-font-size, 16));--font-weight-normal:400;--font-weight-semibold:600;--font-line-height-s:1.25;--font-line-height-m:1.5;--radius-xs:calc(6rem/var(--orama-base-font-size, 16));--radius-s:calc(8rem/var(--orama-base-font-size, 16));--radius-m:calc(12rem/var(--orama-base-font-size, 16));--radius-l:calc(16rem/var(--orama-base-font-size, 16));--radius-3xl:calc(40rem/var(--orama-base-font-size, 16));--textarea-radius:calc(16rem/var(--orama-base-font-size, 16));--spacing-2xs:calc(2rem/var(--orama-base-font-size, 16));--spacing-xs:calc(4rem/var(--orama-base-font-size, 16));--spacing-s:calc(8rem/var(--orama-base-font-size, 16));--spacing-m:calc(12rem/var(--orama-base-font-size, 16));--spacing-l:calc(16rem/var(--orama-base-font-size, 16));--spacing-xl:calc(24rem/var(--orama-base-font-size, 16));--spacing-2xl:calc(32rem/var(--orama-base-font-size, 16));--spacing-3xl:calc(40rem/var(--orama-base-font-size, 16));--textarea-shadow:0px 4px 24px 0px var(--shadow-color-primary,#fff)}[id^=orama-ui] *,[id^=orama-ui] :after,[id^=orama-ui] :before{box-sizing:border-box}[id^=orama-ui].theme-dark{--text-color-primary:#fbfbfb;--text-color-secondary:#dadada;--text-color-tertiary:#838289;--text-color-accent:#ae8ff7;--text-color-inactive:#99989d;--text-color-reverse:#000;--background-color-primary:#050505;--background-color-secondary:#151515;--background-color-tertiary:#212121;--background-color-fourth:#2e2e2e;--background-color-reverse:#fff;--background-color-accent:#8152ee;--border-color-primary:#2e2e2e;--border-color-secondary:#151515;--border-color-tertiary:#afafb1;--border-color-accent:#8152ee;--icon-color-primary:#fbfbfb;--icon-color-secondary:#dadada;--icon-color-tertiary:#838289;--icon-color-inactive:#99989d;--icon-color-reverse:#050505;--shadow-color-primary:#000;--button-text-color-primary:#fbfbfb;--button-text-color-secondary:#99989d;--button-background-color-primary:#8152ee;--button-background-color-secondary:#151515;--button-background-color-secondary-hover:#212121;--button-border-color-secondary:#2e2e2e;--backdrop-background-color-primary:rgba(5,5,5,.7);--chat-button-border-color-gradientOne:transparent;--chat-button-border-color-gradientTwo:transparent;--chat-button-border-color-gradientThree:#8152ee;--chat-button-border-color-gradientFour:#8152ee;--chat-button-border-color-gradientFive:transparent;--chat-button-border-color-gradientSix:transparent;--chat-button-background-color-gradientOne:#8152ee;--chat-button-background-color-gradientTwo:transparent}
`);/*! Bundled license information:

@noble/hashes/utils.js:
  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
*//**
 * @license
 * Copyright 2019 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 *//**
 * @license
 * Copyright 2017 Google LLC
 * SPDX-License-Identifier: BSD-3-Clause
 *//*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE *//*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const t0=(e,t,r)=>{e=e.replace("static/projects/","");try{const n=new URL(e,"http://dummy-base"),s=n.pathname.split("/").filter(Boolean);if(s.length<2)throw new Error(`Invalid path structure in '${e}'`);const[o,l,...u]=s;let d=u.join("/");(n.search||n.hash)&&(d+=`${n.search}${n.hash}`);const h=["http://","https://"].some(b=>e.startsWith(b))?n.origin:void 0,p=t||o,m=r||l;return{projectName:p,version:m,_splat:d,href:[h,p,m,d].filter(Boolean).join("/")}}catch{throw new Error(`Unable to match URI '${e}'`)}},RW=e=>{var n,s,o,l,u;const t=E0();if(!e.active)return null;const r={searchPlaceholder:(n=e.dictionary)==null?void 0:n.search_placeholder,chatPlaceholder:(s=e.dictionary)==null?void 0:s.chat_placeholder,disclaimer:(o=e.dictionary)==null?void 0:o.disclaimer};return B.jsxs(ya,{sx:{width:"100%"},children:[B.jsx(TW,{size:"large",colorScheme:t.colorScheme,themeConfig:{},dictionary:r,"data-testid":Wt.plugins.orama.searchButton,children:((l=e.dictionary)==null?void 0:l.search_placeholder)??"Search something..."}),B.jsx(_W,{"data-testid":Wt.plugins.orama.searchBox,index:{endpoint:e.endpoint,api_key:e.api_key},suggestions:(u=e.dictionary)==null?void 0:u.suggestions,colorScheme:t.colorScheme,disableChat:e.disable_chat,dictionary:r,facetProperty:e.facet_property,chatMarkdownLinkHref:({href:d})=>{try{for(const h of["http://","https://"])d=d.replace(h,"");return t0(d).href}catch{return d}},resultMap:{path:d=>t0(d.path).href,description:"content",title:"title",section:"category"},sourceBaseUrl:window.origin})]})};function OW(){const e=oi(),t=Jj(e.breakpoints.down("lg")),[r,n]=P.useState(null);P.useEffect(()=>{NS("theme").then(o=>n(o))},[]);const s=P.useMemo(()=>{var u,d;const o=(u=r==null?void 0:r[e.palette.mode])==null?void 0:u.logo_url_small,l=(d=r==null?void 0:r[e.palette.mode])==null?void 0:d.logo_url;return t&&o?o:l??o??null},[r,t,e.palette.mode]);return B.jsx(ya,{sx:{display:"flex",alignItems:"center",flexGrow:0,mr:2,cursor:"pointer"},"data-testid":Wt.header.logo.main,component:"a",href:"/",children:s?B.jsx("img",{"data-testid":Wt.header.logo.image,src:s,alt:"logo",style:{maxHeight:34}}):B.jsx(gs,{"data-testid":Wt.header.logo.text,variant:"h6",sx:{color:e.palette.text.primary},children:"vdoc"})})}function MW(){const[e,t]=P.useState(null);return P.useEffect(()=>{NS("orama").then(r=>t(r))},[]),e!=null&&e.active?B.jsx(RW,{...e}):null}function NW({setSidebarOpen:e}){const t=s0({strict:!1}),r=i0({from:"/$projectName/$version/$"}),[n,s]=P.useState(void 0),[o,l]=P.useState(void 0),[u,d]=P.useState(void 0);P.useEffect(()=>{const m=async b=>await Promise.all([ST(b),Rg(b,"latest")]);t.projectName?m(t.projectName).then(([b,S])=>{s(t.projectName),l(b),d(S)}):(l(void 0),d(void 0))},[t,n]);const h=m=>{const b=m.target.value;r(b==="all"?{to:"/$projectName"}:{to:`/$projectName/${b}/$`})},p=P.useMemo(()=>{let m;return t.version&&o?t.version!=="latest"&&!(o!=null&&o.includes(t.version))?m="":m=t.version:m="",m},[t.version,o]);return B.jsxs(B.Fragment,{children:[B.jsx(ya,{children:o&&u&&t.version&&B.jsx(LU,{selectedVersion:p,latestVersion:u,versions:o,onVersionChange:h})}),B.jsx(ya,{children:B.jsx(E_,{"data-testid":Wt.header.settingsButton,"aria-label":"Open App Settings",onClick:()=>e(!0),children:B.jsx(PU,{})})})]})}function LW(){const e=oi(),[t,r]=P.useState(!1),[n,s]=P.useState(void 0);return P.useEffect(()=>{MU().then(o=>s(o))},[e]),B.jsxs(VI,{position:"static","data-testid":Wt.header.main,sx:{background:e.palette.mode==="dark"?"transparent":e.palette.background.default},elevation:0,children:[B.jsx(Zj,{children:B.jsxs(hs,{container:!0,spacing:1,sx:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},wrap:"nowrap",children:[B.jsx(hs,{id:"appBarLeftGroup",size:{xs:1,sm:1,md:1,lg:3},children:B.jsx(ya,{display:"flex",justifyContent:"flex-start",children:B.jsx(OW,{})})}),B.jsx(hs,{id:"appBarMiddleGroup",size:{xs:6,sm:7,md:8,lg:6},children:B.jsx(ya,{display:"flex",justifyContent:"center",children:B.jsx(MW,{})})}),B.jsx(hs,{id:"appBarRightGroup",size:{xs:5,sm:4,md:3,lg:3},children:B.jsx(ya,{display:"flex",justifyContent:"flex-end",children:B.jsx(NW,{setSidebarOpen:r})})})]})}),B.jsx(UU,{open:t,setOpen:r,appVersion:n})]})}const PW=oa(B.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"})),IW=oa([B.jsx("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2h1v-6.1c0-3.87 3.13-7 7-7s7 3.13 7 7V19h-8v2h8c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62"},"0"),B.jsx("circle",{cx:"9",cy:"13",r:"1"},"1"),B.jsx("circle",{cx:"15",cy:"13",r:"1"},"2"),B.jsx("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47"},"3")]),DW=oa(B.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"})),zW=oa(B.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"})),jW=oa(B.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"})),BW=oa(B.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"})),UW={email:PW,support:IW,public:DW,github:zW,bugs:jW,home:BW},HW=()=>{const[e,t]=P.useState(null);return P.useEffect(()=>{NS("footer").then(r=>t(r))},[]),e==null||!e.active?null:B.jsx(Kh,{"data-testid":Wt.plugins.footer.main,component:"footer",elevation:4,children:B.jsx(O_,{maxWidth:"xl",sx:{py:1},children:B.jsxs(hs,{container:!0,direction:"row",alignItems:"center",justifyContent:"center",columnSpacing:6,children:[e.copyright&&B.jsx(hs,{"data-testid":Wt.plugins.footer.copyright,children:B.jsxs(gs,{variant:"body2",color:"text.secondary",children:["© ",new Date().getFullYear()," ",e.copyright]})},"Copyright"),e.links.map(r=>B.jsxs("div",{children:[B.jsx(_h,{orientation:"vertical",flexItem:!0,sx:{display:{md:"none",lg:"block"}}}),B.jsx(hs,{children:B.jsxs(q_,{"data-testid":Wt.plugins.footer.linkGroup.main,direction:"row",style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[B.jsx(gs,{"data-testid":Wt.plugins.footer.linkGroup.title,variant:"body2",color:"text.secondary",mr:2,children:r.title}),r.links.map(n=>{const s=UW[n.icon];return B.jsx(R_,{"data-testid":Wt.plugins.footer.linkGroup.link.main,sx:{textTransform:"none",mr:1},component:Yz,href:n.href,target:n.target,startIcon:B.jsx(s,{}),variant:"outlined",children:n.title},n.href)})]})})]},r.title))]})})})},ZW=k0({colorSchemes:{light:!0,dark:!0}});function VW(){const{mode:e}=E0();return e?B.jsxs(ya,{id:"rootComponent",sx:{display:"flex",flexDirection:"column",height:"100vh"},children:[B.jsx(LW,{}),B.jsx(ya,{sx:{height:"100vh",flex:1,overflowY:"auto",display:"flex",flexDirection:"column"},children:B.jsx(vE,{})}),B.jsx(HW,{})]}):null}function FW(){return B.jsxs(ZP,{theme:ZW,defaultMode:"system",children:[B.jsx(VD,{}),B.jsx(WM,{}),B.jsx(VW,{})]})}const m1=iM({component:FW}),jx=({error:e,title:t,titleVariant:r="h4",description:n,descriptionVariant:s="body1",iconClass:o,iconFontSize:l=150,iconColor:u,onAction:d,timerSeconds:h=5,actionText:p="Go back",...m})=>{const[b,S]=P.useState(h);P.useEffect(()=>{if(h&&d)if(b>0){const $=setInterval(()=>{S(_=>_-1)},1e3);return()=>clearInterval($)}else d()},[b,d,h]);const x=($,_)=>{var M,T;return $?$ instanceof RU?(T=(M=$.response)==null?void 0:M.data)==null?void 0:T.message:$.message??"An unknown error occurred.":_||"An unknown error occurred."},C=()=>h?`Returning to previous page in ${b} second${b===1?"":"s"}...`:void 0;return B.jsxs(ya,{sx:m.sx,"data-testid":Wt.errorComponent.main,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",height:"100%",children:[B.jsx(Cg,{"data-testid":Wt.errorComponent.icon,component:o,color:u,sx:{fontSize:l}}),B.jsx(gs,{variant:r,marginTop:2,"data-testid":Wt.errorComponent.title,children:x(e,t)}),B.jsx(gs,{variant:s,color:"textSecondary",marginTop:1,"data-testid":Wt.errorComponent.description,children:n??C()}),d&&p&&B.jsx(R_,{variant:"contained",color:"primary",onClick:d,sx:{marginTop:3},"data-testid":Wt.errorComponent.actionButton,children:p})]})},WA=oa([B.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),B.jsx("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")]),qW=oa(B.jsx("path",{d:"m21.41 11.41-8.83-8.83c-.37-.37-.88-.58-1.41-.58H4c-1.1 0-2 .9-2 2v7.17c0 .53.21 1.04.59 1.41l8.83 8.83c.78.78 2.05.78 2.83 0l7.17-7.17c.78-.78.78-2.04-.01-2.83M6.5 8C5.67 8 5 7.33 5 6.5S5.67 5 6.5 5 8 5.67 8 6.5 7.33 8 6.5 8"})),GW=oa([B.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),B.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),B.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-3.5c.73 0 1.39.19 1.97.53.12-.14.86-.98 1.01-1.14-.85-.56-1.87-.89-2.98-.89s-2.13.33-2.99.88c.97 1.09.01.02 1.01 1.14.59-.33 1.25-.52 1.98-.52"},"2")]),KW=vh("/")({loader:async()=>{const[e,t]=await Promise.all([OU(),NU()]);if(e.length===0)throw new Error("No projects found");return[e,t]},errorComponent:({error:e})=>{const t=()=>{const r=ia(),n=()=>{r.invalidate()};return B.jsx(jx,{error:e,iconClass:GW,iconColor:"primary",description:"Upload docs to vdoc to get started!",actionText:"Reload Projects",sx:{mt:2},onAction:n})};return B.jsx(t,{})}});function WW(e){const t={};return e.forEach(r=>{const[n]=r.split(".").map(Number);t[n]||(t[n]=[]),t[n].push(r)}),t}const YA=()=>B.jsx(ya,{display:"flex",justifyContent:"center",alignItems:"center",sx:{mt:2},"data-testid":Wt.loadingIndicator,children:B.jsx(kS,{})}),U2=vh("/$projectName/")({component:YW,loader:async({params:{projectName:e}})=>Promise.all([ST(e),Rg(e,"latest")]),pendingComponent:YA,errorComponent:({error:e})=>{const t=()=>{const r=ia(),n=P.useCallback(()=>{r.history.back()},[r]);return B.jsx(jx,{iconClass:WA,error:e,onAction:n})};return B.jsx(t,{})}});function YW(){const{projectName:e}=U2.useParams(),t=ia(),[r,n]=U2.useLoaderData(),s=P.useMemo(()=>r?WW(r):{},[r]);return B.jsxs(O_,{sx:{mt:2},children:[B.jsxs(gs,{variant:"h5",sx:{mb:2},children:["Version index of ",e]}),B.jsx(ya,{sx:{flexGrow:1},children:B.jsx(hs,{container:!0,spacing:2,children:Object.keys(s).reverse().map(o=>B.jsx(hs,{size:6,children:B.jsx(PD,{"data-testid":Wt.project.versionOverview.majorVersionCard.main,children:B.jsxs(jD,{children:[B.jsxs(q_,{direction:"row",alignItems:"center",gap:2,sx:{mb:2},children:[B.jsx(qW,{}),B.jsxs(gs,{variant:"h6",children:["v",o]})]}),B.jsx(hs,{container:!0,direction:"row",spacing:1,sx:{justifyContent:"flex-start",alignItems:"center"},children:s[Number(o)].map(l=>{const u=B.jsx(hs,{sx:{mb:1},children:B.jsx(T_,{"data-testid":Wt.project.versionOverview.majorVersionCard.versionItem.main,label:l,component:"a",onClick:()=>t.navigate({to:"/$projectName/$version/$",from:"/$projectName",params:{projectName:e,version:l}}),clickable:!0},l)});return l===n?B.jsx(SD,{"data-testid":Wt.project.versionOverview.majorVersionCard.versionItem.latestBadge,color:"success",badgeContent:"latest",children:u}):u})})]})},o)},o))})})]})}const QW=({name:e,version:t})=>{const r=oi();return B.jsx(o0,{to:"/$projectName/$version/$",params:{projectName:e,version:"latest"},style:{textDecoration:"none"},"data-testid":Wt.project.documentation.latestVersionWarningBanner,children:B.jsx(hs,{container:!0,direction:"row",sx:{justifyContent:"center",alignItems:"center",backgroundColor:r.palette.warning.main},children:B.jsxs(gs,{variant:"body1",color:"black",children:["You're currently reading an ",B.jsx("b",{children:"old version"})," (",t,") of ",e,"! To view the latest version of the documentation, click this banner."]})})})};function XW(e,t){var l;const r=e==null?void 0:e.current,n=r==null?void 0:r.contentWindow,s=(l=r==null?void 0:r.contentDocument)==null?void 0:l.documentElement;if(!r||!n||!s)return;n.localStorage.setItem("darkMode",t),(s==null?void 0:s.getAttribute("xmlns"))==="http://www.w3.org/1999/xhtml"?(s.classList.remove("light-mode","dark-mode"),s.classList.add(t==="dark"?"dark-mode":"light-mode")):s.classList.toggle("dark",t==="dark")}function JW({src:e,onPageChanged:t,onHashChanged:r,onTitleChanged:n,onNotFound:s}){const{colorScheme:o}=E0(),l=P.useRef(null),u=P.useRef(null),[d,h]=P.useState(),p="/static/projects/",m=P.useMemo(()=>t0(e).projectName,[e]),b=P.useCallback($=>{XW(l,$)},[]);P.useEffect(()=>{b(o)},[o,b]);const S=()=>{var O,N,z,k,H,q,V;if(l.current===null){console.error("iframeRef is null");return}h((O=l.current)==null?void 0:O.contentWindow),b(o);const $=(z=(N=l.current)==null?void 0:N.contentDocument)==null?void 0:z.location.href;if($==null){console.warn("IFrame onload event triggered, but url is null");return}((k=l.current.contentDocument)==null?void 0:k.body.innerText)==='{"detail":"Not Found"}'&&s(),(H=l.current.contentDocument)==null||H.querySelectorAll("a").forEach(W=>{var J,fe;let ae;try{ae=t0(W.href).projectName}catch{}const Z=W.href,ne=new URL(W.href,(fe=(J=l.current)==null?void 0:J.contentDocument)==null?void 0:fe.baseURI).href.replace(p,"/");if(W.href.trim()==="")return;W.href=ne;const ee=!W.href.startsWith(window.location.origin),re=ae!==m,F=W.target==="_blank";if(ee||re||F){W.target="_blank";return}W.onclick=()=>{var ce,Ce;return(Ce=(ce=l.current)==null?void 0:ce.contentWindow)==null||Ce.location.replace(Z),u.current=Z,!1}});const M=$.split(p).slice(1).join(p).split("/").slice(2).join("/"),T=M.includes("#")?M.indexOf("#"):M.length,R=M.slice(0,T),L=M.slice(T),j=(V=(q=l.current)==null?void 0:q.contentDocument)==null?void 0:V.title;t(R,L,j)},x=P.useCallback(()=>{var M,T;if(l.current===null){console.error("hashChangeEvent from iframe but iframeRef is null");return}const $=(T=(M=l.current)==null?void 0:M.contentDocument)==null?void 0:T.location.href;if($==null)return;let _=$.split("#")[1];_===null&&(_=""),r(_)},[r]),C=P.useCallback(()=>{var _,M;if(l.current===null){console.error("titleChangeEvent from iframe but iframeRef is null");return}const $=(M=(_=l.current)==null?void 0:_.contentDocument)==null?void 0:M.title;$!=null&&n($)},[n]);return P.useEffect(()=>{if(d)return d.addEventListener("hashchange",x),d.addEventListener("titlechange",C),()=>{d.removeEventListener("hashchange",x),d.removeEventListener("titlechange",C)}},[d,C,x]),P.useEffect(()=>{var _,M;const $=`${window.location.origin}${e}`;u.current!==$&&((M=(_=l.current)==null?void 0:_.contentWindow)==null||M.location.replace($),u.current=$)},[e]),B.jsx("iframe",{ref:l,"data-testid":Wt.project.documentation.documentationIframe,style:{border:0,width:"100%",height:"100%"},title:"docs",onLoad:S})}const eY=async(e,t)=>(await Rg(e,t),await Rg(e,"latest")),H2=vh("/$projectName/$version/$")({component:tY,loader:async({params:{projectName:e,version:t,_splat:r}})=>{const n=await eY(e,t);if(t==="latest")throw hE({to:"/$projectName/$version/$",params:{projectName:e,version:n,_splat:r||""}});return[t,n]},pendingComponent:YA,errorComponent:({error:e})=>{const t=()=>{const r=ia(),n=P.useCallback(()=>{r.history.back()},[r]);return B.jsx(jx,{iconClass:WA,error:e,onAction:n})};return B.jsx(t,{})}});function tY(){const e=SM(),{projectName:t,_splat:r}=H2.useParams(),[n,s]=H2.useLoaderData(),o=P.useMemo(()=>({name:t,version:n,latestVersion:s,page:r||"",hash:e.hash}),[r,e.hash,s,t,n]);return B.jsx(rY,{...o})}function rY(e){const[t,r]=P.useState(null),n=ia(),s=P.useMemo(()=>{const p=e.hash.trim()!==""?`#${e.hash}`:"";return`/static/projects/${e.name}/${e.version}/${e.page}${p}`},[e.name,e.page,e.hash,e.version]),o=(p,m,b,S)=>{const x=S.trim()!==""?`#${S}`:"",C={projectName:p,version:m,_splat:`${b}${x}`};n.navigate({from:"/$projectName/$version/$",to:"/$projectName/$version/$",params:C})},l=p=>{document.title=p},u=(p,m,b)=>{b!=null&&b!==document.title&&l(b),p!==e.page&&o(e.name,e.version,p,m)},d=p=>{p!==e.hash&&o(e.name,e.version,e.page,p)},h=()=>{r(new Error("Whoops! This page doesn't seem to exist..."))};return P.useEffect(()=>{if(t)throw t},[t]),B.jsxs("div",{"data-testid":Wt.project.documentation.main,style:{display:"contents"},children:[e.name&&e.version!=="latest"&&e.version!==e.latestVersion&&B.jsx(QW,{name:e.name,version:e.version}),B.jsx(JW,{src:s,onPageChanged:u,onHashChanged:d,onTitleChanged:l,onNotFound:h})]})}const nY=KW.update({id:"/",path:"/",getParentRoute:()=>m1}).lazy(()=>wh(()=>import("./index.lazy-n0jY_LsN.js"),[]).then(e=>e.Route)),aY=U2.update({id:"/$projectName/",path:"/$projectName/",getParentRoute:()=>m1}),sY=H2.update({id:"/$projectName/$version/$",path:"/$projectName/$version/$",getParentRoute:()=>m1}),iY={IndexRoute:nY,ProjectNameIndexRoute:aY,ProjectNameVersionSplatRoute:sY},oY=m1._addFileChildren(iY)._addFileTypes(),lY=gM({routeTree:oY}),cY=new ZM({defaultOptions:{queries:{retry:1}}});i9.createRoot(document.getElementById("root")).render(B.jsx(P.StrictMode,{children:B.jsx(FM,{client:cY,children:B.jsx(vM,{router:lY})})}));export{R_ as B,O_ as C,hs as G,LY as K,RY as M,BH as S,gs as T,NY as X,MY as Y,Zt as a,Vt as b,Xe as c,dY as d,R4 as e,ya as f,Ht as g,PD as h,jD as i,B as j,g as k,OT as l,OY as m,PH as n,P as r,Ue as s,Wt as t,Ft as u};
//# sourceMappingURL=index-O-v0LSAn.js.map
