@studioindia/designx 1.0.4 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AppPreviewPanel-BHaogGvG.js → AppPreviewPanel-Kzzw8_FK.js} +1 -1
- package/dist/assets/index-C0vXud8_.css +10 -0
- package/dist/assets/index-DB32CkYi.js +482 -0
- package/dist/assets/index-YCdF8pEa.js +220 -0
- package/dist/assets/jszip.min-BbKvkdq8.js +12 -0
- package/dist/assets/jszip.min-DzuQM42A.js +1 -0
- package/dist/index.html +2 -2
- package/package.json +3 -1
- package/server.cjs +127 -9
- package/dist/assets/index-B4DsP2aY.js +0 -415
- package/dist/assets/index-BSj8C6Y3.js +0 -231
- package/dist/assets/index-CQNunw04.css +0 -10
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-YCdF8pEa.js","assets/jszip.min-BbKvkdq8.js","assets/jszip.min-DzuQM42A.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var F3=Object.defineProperty;var G3=(e,n,r)=>n in e?F3(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var Lt=(e,n,r)=>G3(e,typeof n!="symbol"?n+"":n,r);function q3(e,n){for(var r=0;r<n.length;r++){const s=n[r];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in e)){const c=Object.getOwnPropertyDescriptor(s,l);c&&Object.defineProperty(e,l,c.get?c:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function r(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(l){if(l.ep)return;l.ep=!0;const c=r(l);fetch(l.href,c)}})();var t_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I4(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n_(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if(typeof n=="function"){var r=function s(){return this instanceof s?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var l=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,l.get?l:{enumerable:!0,get:function(){return e[s]}})}),r}var zd={exports:{}},Dl={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var q2;function K3(){if(q2)return Dl;q2=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,l,c){var u=null;if(c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:e,type:s,key:u,ref:l!==void 0?l:null,props:c}}return Dl.Fragment=n,Dl.jsx=r,Dl.jsxs=r,Dl}var K2;function Y3(){return K2||(K2=1,zd.exports=K3()),zd.exports}var v=Y3(),Bd={exports:{}},Ke={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var Y2;function X3(){if(Y2)return Ke;Y2=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),x=Symbol.iterator;function S(k){return k===null||typeof k!="object"?null:(k=x&&k[x]||k["@@iterator"],typeof k=="function"?k:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,A={};function j(k,F,ie){this.props=k,this.context=F,this.refs=A,this.updater=ie||w}j.prototype.isReactComponent={},j.prototype.setState=function(k,F){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,F,"setState")},j.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function C(){}C.prototype=j.prototype;function H(k,F,ie){this.props=k,this.context=F,this.refs=A,this.updater=ie||w}var B=H.prototype=new C;B.constructor=H,M(B,j.prototype),B.isPureReactComponent=!0;var Z=Array.isArray;function ee(){}var re={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function ce(k,F,ie){var be=ie.ref;return{$$typeof:e,type:k,key:F,ref:be!==void 0?be:null,props:ie}}function le(k,F){return ce(k.type,F,k.props)}function ue(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function X(k){var F={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ie){return F[ie]})}var xe=/\/+/g;function me(k,F){return typeof k=="object"&&k!==null&&k.key!=null?X(""+k.key):F.toString(36)}function ve(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(ee,ee):(k.status="pending",k.then(function(F){k.status==="pending"&&(k.status="fulfilled",k.value=F)},function(F){k.status==="pending"&&(k.status="rejected",k.reason=F)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function V(k,F,ie,be,ge){var ke=typeof k;(ke==="undefined"||ke==="boolean")&&(k=null);var K=!1;if(k===null)K=!0;else switch(ke){case"bigint":case"string":case"number":K=!0;break;case"object":switch(k.$$typeof){case e:case n:K=!0;break;case y:return K=k._init,V(K(k._payload),F,ie,be,ge)}}if(K)return ge=ge(k),K=be===""?"."+me(k,0):be,Z(ge)?(ie="",K!=null&&(ie=K.replace(xe,"$&/")+"/"),V(ge,F,ie,"",function(xt){return xt})):ge!=null&&(ue(ge)&&(ge=le(ge,ie+(ge.key==null||k&&k.key===ge.key?"":(""+ge.key).replace(xe,"$&/")+"/")+K)),F.push(ge)),1;K=0;var ze=be===""?".":be+":";if(Z(k))for(var je=0;je<k.length;je++)be=k[je],ke=ze+me(be,je),K+=V(be,F,ie,ke,ge);else if(je=S(k),typeof je=="function")for(k=je.call(k),je=0;!(be=k.next()).done;)be=be.value,ke=ze+me(be,je++),K+=V(be,F,ie,ke,ge);else if(ke==="object"){if(typeof k.then=="function")return V(ve(k),F,ie,be,ge);throw F=String(k),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return K}function Q(k,F,ie){if(k==null)return k;var be=[],ge=0;return V(k,be,"","",function(ke){return F.call(ie,ke,ge++)}),be}function G(k){if(k._status===-1){var F=k._result;F=F(),F.then(function(ie){(k._status===0||k._status===-1)&&(k._status=1,k._result=ie)},function(ie){(k._status===0||k._status===-1)&&(k._status=2,k._result=ie)}),k._status===-1&&(k._status=0,k._result=F)}if(k._status===1)return k._result.default;throw k._result}var de=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},we={map:Q,forEach:function(k,F,ie){Q(k,function(){F.apply(this,arguments)},ie)},count:function(k){var F=0;return Q(k,function(){F++}),F},toArray:function(k){return Q(k,function(F){return F})||[]},only:function(k){if(!ue(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Ke.Activity=b,Ke.Children=we,Ke.Component=j,Ke.Fragment=r,Ke.Profiler=l,Ke.PureComponent=H,Ke.StrictMode=s,Ke.Suspense=m,Ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=re,Ke.__COMPILER_RUNTIME={__proto__:null,c:function(k){return re.H.useMemoCache(k)}},Ke.cache=function(k){return function(){return k.apply(null,arguments)}},Ke.cacheSignal=function(){return null},Ke.cloneElement=function(k,F,ie){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var be=M({},k.props),ge=k.key;if(F!=null)for(ke in F.key!==void 0&&(ge=""+F.key),F)!N.call(F,ke)||ke==="key"||ke==="__self"||ke==="__source"||ke==="ref"&&F.ref===void 0||(be[ke]=F[ke]);var ke=arguments.length-2;if(ke===1)be.children=ie;else if(1<ke){for(var K=Array(ke),ze=0;ze<ke;ze++)K[ze]=arguments[ze+2];be.children=K}return ce(k.type,ge,be)},Ke.createContext=function(k){return k={$$typeof:u,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:c,_context:k},k},Ke.createElement=function(k,F,ie){var be,ge={},ke=null;if(F!=null)for(be in F.key!==void 0&&(ke=""+F.key),F)N.call(F,be)&&be!=="key"&&be!=="__self"&&be!=="__source"&&(ge[be]=F[be]);var K=arguments.length-2;if(K===1)ge.children=ie;else if(1<K){for(var ze=Array(K),je=0;je<K;je++)ze[je]=arguments[je+2];ge.children=ze}if(k&&k.defaultProps)for(be in K=k.defaultProps,K)ge[be]===void 0&&(ge[be]=K[be]);return ce(k,ke,ge)},Ke.createRef=function(){return{current:null}},Ke.forwardRef=function(k){return{$$typeof:h,render:k}},Ke.isValidElement=ue,Ke.lazy=function(k){return{$$typeof:y,_payload:{_status:-1,_result:k},_init:G}},Ke.memo=function(k,F){return{$$typeof:g,type:k,compare:F===void 0?null:F}},Ke.startTransition=function(k){var F=re.T,ie={};re.T=ie;try{var be=k(),ge=re.S;ge!==null&&ge(ie,be),typeof be=="object"&&be!==null&&typeof be.then=="function"&&be.then(ee,de)}catch(ke){de(ke)}finally{F!==null&&ie.types!==null&&(F.types=ie.types),re.T=F}},Ke.unstable_useCacheRefresh=function(){return re.H.useCacheRefresh()},Ke.use=function(k){return re.H.use(k)},Ke.useActionState=function(k,F,ie){return re.H.useActionState(k,F,ie)},Ke.useCallback=function(k,F){return re.H.useCallback(k,F)},Ke.useContext=function(k){return re.H.useContext(k)},Ke.useDebugValue=function(){},Ke.useDeferredValue=function(k,F){return re.H.useDeferredValue(k,F)},Ke.useEffect=function(k,F){return re.H.useEffect(k,F)},Ke.useEffectEvent=function(k){return re.H.useEffectEvent(k)},Ke.useId=function(){return re.H.useId()},Ke.useImperativeHandle=function(k,F,ie){return re.H.useImperativeHandle(k,F,ie)},Ke.useInsertionEffect=function(k,F){return re.H.useInsertionEffect(k,F)},Ke.useLayoutEffect=function(k,F){return re.H.useLayoutEffect(k,F)},Ke.useMemo=function(k,F){return re.H.useMemo(k,F)},Ke.useOptimistic=function(k,F){return re.H.useOptimistic(k,F)},Ke.useReducer=function(k,F,ie){return re.H.useReducer(k,F,ie)},Ke.useRef=function(k){return re.H.useRef(k)},Ke.useState=function(k){return re.H.useState(k)},Ke.useSyncExternalStore=function(k,F,ie){return re.H.useSyncExternalStore(k,F,ie)},Ke.useTransition=function(){return re.H.useTransition()},Ke.version="19.2.5",Ke}var X2;function o1(){return X2||(X2=1,Bd.exports=X3()),Bd.exports}var d=o1();const Rs=I4(d),Q3=q3({__proto__:null,default:Rs},[d]);var Zd={exports:{}},Ll={},Ud={exports:{}},Pd={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var Q2;function J3(){return Q2||(Q2=1,(function(e){function n(V,Q){var G=V.length;V.push(Q);e:for(;0<G;){var de=G-1>>>1,we=V[de];if(0<l(we,Q))V[de]=Q,V[G]=we,G=de;else break e}}function r(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var Q=V[0],G=V.pop();if(G!==Q){V[0]=G;e:for(var de=0,we=V.length,k=we>>>1;de<k;){var F=2*(de+1)-1,ie=V[F],be=F+1,ge=V[be];if(0>l(ie,G))be<we&&0>l(ge,ie)?(V[de]=ge,V[be]=G,de=be):(V[de]=ie,V[F]=G,de=F);else if(be<we&&0>l(ge,G))V[de]=ge,V[be]=G,de=be;else break e}}return Q}function l(V,Q){var G=V.sortIndex-Q.sortIndex;return G!==0?G:V.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,h=u.now();e.unstable_now=function(){return u.now()-h}}var m=[],g=[],y=1,b=null,x=3,S=!1,w=!1,M=!1,A=!1,j=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function B(V){for(var Q=r(g);Q!==null;){if(Q.callback===null)s(g);else if(Q.startTime<=V)s(g),Q.sortIndex=Q.expirationTime,n(m,Q);else break;Q=r(g)}}function Z(V){if(M=!1,B(V),!w)if(r(m)!==null)w=!0,ee||(ee=!0,X());else{var Q=r(g);Q!==null&&ve(Z,Q.startTime-V)}}var ee=!1,re=-1,N=5,ce=-1;function le(){return A?!0:!(e.unstable_now()-ce<N)}function ue(){if(A=!1,ee){var V=e.unstable_now();ce=V;var Q=!0;try{e:{w=!1,M&&(M=!1,C(re),re=-1),S=!0;var G=x;try{t:{for(B(V),b=r(m);b!==null&&!(b.expirationTime>V&&le());){var de=b.callback;if(typeof de=="function"){b.callback=null,x=b.priorityLevel;var we=de(b.expirationTime<=V);if(V=e.unstable_now(),typeof we=="function"){b.callback=we,B(V),Q=!0;break t}b===r(m)&&s(m),B(V)}else s(m);b=r(m)}if(b!==null)Q=!0;else{var k=r(g);k!==null&&ve(Z,k.startTime-V),Q=!1}}break e}finally{b=null,x=G,S=!1}Q=void 0}}finally{Q?X():ee=!1}}}var X;if(typeof H=="function")X=function(){H(ue)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,me=xe.port2;xe.port1.onmessage=ue,X=function(){me.postMessage(null)}}else X=function(){j(ue,0)};function ve(V,Q){re=j(function(){V(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(V){switch(x){case 1:case 2:case 3:var Q=3;break;default:Q=x}var G=x;x=Q;try{return V()}finally{x=G}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(V,Q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var G=x;x=V;try{return Q()}finally{x=G}},e.unstable_scheduleCallback=function(V,Q,G){var de=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?de+G:de):G=de,V){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=G+we,V={id:y++,callback:Q,priorityLevel:V,startTime:G,expirationTime:we,sortIndex:-1},G>de?(V.sortIndex=G,n(g,V),r(m)===null&&V===r(g)&&(M?(C(re),re=-1):M=!0,ve(Z,G-de))):(V.sortIndex=we,n(m,V),w||S||(w=!0,ee||(ee=!0,X()))),V},e.unstable_shouldYield=le,e.unstable_wrapCallback=function(V){var Q=x;return function(){var G=x;x=Q;try{return V.apply(this,arguments)}finally{x=G}}}})(Pd)),Pd}var J2;function W3(){return J2||(J2=1,Ud.exports=J3()),Ud.exports}var Id={exports:{}},_n={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var W2;function e5(){if(W2)return _n;W2=1;var e=o1();function n(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(m,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:b==null?null:""+b,children:m,containerInfo:g,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return _n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,_n.createPortal=function(m,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return c(m,g,null,y)},_n.flushSync=function(m){var g=u.T,y=s.p;try{if(u.T=null,s.p=2,m)return m()}finally{u.T=g,s.p=y,s.d.f()}},_n.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},_n.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},_n.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,b=h(y,g.crossOrigin),x=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:x,fetchPriority:S}):y==="script"&&s.d.X(m,{crossOrigin:b,integrity:x,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},_n.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);s.d.M(m,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(m)},_n.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=h(y,g.crossOrigin);s.d.L(m,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},_n.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=h(g.as,g.crossOrigin);s.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(m)},_n.requestFormReset=function(m){s.d.r(m)},_n.unstable_batchedUpdates=function(m,g){return m(g)},_n.useFormState=function(m,g,y){return u.H.useFormState(m,g,y)},_n.useFormStatus=function(){return u.H.useHostTransitionStatus()},_n.version="19.2.5",_n}var eg;function $4(){if(eg)return Id.exports;eg=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(n){console.error(n)}}return e(),Id.exports=e5(),Id.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var tg;function t5(){if(tg)return Ll;tg=1;var e=W3(),n=o1(),r=$4();function s(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var a=t,i=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(i=a.return),t=a.return;while(t)}return a.tag===3?i:null}function u(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function h(t){if(t.tag===31){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function m(t){if(c(t)!==t)throw Error(s(188))}function g(t){var a=t.alternate;if(!a){if(a=c(t),a===null)throw Error(s(188));return a!==t?null:t}for(var i=t,o=a;;){var f=i.return;if(f===null)break;var p=f.alternate;if(p===null){if(o=f.return,o!==null){i=o;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===i)return m(f),t;if(p===o)return m(f),a;p=p.sibling}throw Error(s(188))}if(i.return!==o.return)i=f,o=p;else{for(var E=!1,T=f.child;T;){if(T===i){E=!0,i=f,o=p;break}if(T===o){E=!0,o=f,i=p;break}T=T.sibling}if(!E){for(T=p.child;T;){if(T===i){E=!0,i=p,o=f;break}if(T===o){E=!0,o=p,i=f;break}T=T.sibling}if(!E)throw Error(s(189))}}if(i.alternate!==o)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?t:a}function y(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=y(t),a!==null)return a;t=t.sibling}return null}var b=Object.assign,x=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),H=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function X(t){return t===null||typeof t!="object"?null:(t=ue&&t[ue]||t["@@iterator"],typeof t=="function"?t:null)}var xe=Symbol.for("react.client.reference");function me(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===xe?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case M:return"Fragment";case j:return"Profiler";case A:return"StrictMode";case Z:return"Suspense";case ee:return"SuspenseList";case ce:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case H:return t.displayName||"Context";case C:return(t._context.displayName||"Context")+".Consumer";case B:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case re:return a=t.displayName||null,a!==null?a:me(t.type)||"Memo";case N:a=t._payload,t=t._init;try{return me(t(a))}catch{}}return null}var ve=Array.isArray,V=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},de=[],we=-1;function k(t){return{current:t}}function F(t){0>we||(t.current=de[we],de[we]=null,we--)}function ie(t,a){we++,de[we]=t.current,t.current=a}var be=k(null),ge=k(null),ke=k(null),K=k(null);function ze(t,a){switch(ie(ke,a),ie(ge,t),ie(be,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?g2(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=g2(a),t=y2(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}F(be),ie(be,t)}function je(){F(be),F(ge),F(ke)}function xt(t){t.memoizedState!==null&&ie(K,t);var a=be.current,i=y2(a,t.type);a!==i&&(ie(ge,t),ie(be,i))}function Et(t){ge.current===t&&(F(be),F(ge)),K.current===t&&(F(K),kl._currentValue=G)}var xn,fe;function Ie(t){if(xn===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);xn=a&&a[1]||"",fe=-1<i.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+xn+t+fe}var qe=!1;function Tt(t,a){if(!t||qe)return"";qe=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(Y){var q=Y}Reflect.construct(t,[],oe)}else{try{oe.call()}catch(Y){q=Y}t.call(oe.prototype)}}else{try{throw Error()}catch(Y){q=Y}(oe=t())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(Y){if(Y&&q&&typeof Y.stack=="string")return[Y.stack,q.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=o.DetermineComponentFrameRoot(),E=p[0],T=p[1];if(E&&T){var L=E.split(`
|
|
45
|
+
`),$=T.split(`
|
|
46
|
+
`);for(f=o=0;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;for(;f<$.length&&!$[f].includes("DetermineComponentFrameRoot");)f++;if(o===L.length||f===$.length)for(o=L.length-1,f=$.length-1;1<=o&&0<=f&&L[o]!==$[f];)f--;for(;1<=o&&0<=f;o--,f--)if(L[o]!==$[f]){if(o!==1||f!==1)do if(o--,f--,0>f||L[o]!==$[f]){var ne=`
|
|
47
|
+
`+L[o].replace(" at new "," at ");return t.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",t.displayName)),ne}while(1<=o&&0<=f);break}}}finally{qe=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Ie(i):""}function Zt(t,a){switch(t.tag){case 26:case 27:case 5:return Ie(t.type);case 16:return Ie("Lazy");case 13:return t.child!==a&&a!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return Tt(t.type,!1);case 11:return Tt(t.type.render,!1);case 1:return Tt(t.type,!0);case 31:return Ie("Activity");default:return""}}function Ut(t){try{var a="",i=null;do a+=Zt(t,i),i=t,t=t.return;while(t);return a}catch(o){return`
|
|
48
|
+
Error generating stack: `+o.message+`
|
|
49
|
+
`+o.stack}}var en=Object.prototype.hasOwnProperty,En=e.unstable_scheduleCallback,Ca=e.unstable_cancelCallback,Pa=e.unstable_shouldYield,Ia=e.unstable_requestPaint,Ot=e.unstable_now,mn=e.unstable_getCurrentPriorityLevel,bn=e.unstable_ImmediatePriority,Xn=e.unstable_UserBlockingPriority,On=e.unstable_NormalPriority,Hn=e.unstable_LowPriority,Sn=e.unstable_IdlePriority,ar=e.log,Rr=e.unstable_setDisableYieldValue,Vn=null,tn=null;function Xt(t){if(typeof ar=="function"&&Rr(t),tn&&typeof tn.setStrictMode=="function")try{tn.setStrictMode(Vn,t)}catch{}}var sn=Math.clz32?Math.clz32:zn,Cr=Math.log,oa=Math.LN2;function zn(t){return t>>>=0,t===0?32:31-(Cr(t)/oa|0)|0}var ca=256,ua=262144,Pn=4194304;function nn(t){var a=t&42;if(a!==0)return a;switch(t&-t){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:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function O(t,a,i){var o=t.pendingLanes;if(o===0)return 0;var f=0,p=t.suspendedLanes,E=t.pingedLanes;t=t.warmLanes;var T=o&134217727;return T!==0?(o=T&~p,o!==0?f=nn(o):(E&=T,E!==0?f=nn(E):i||(i=T&~t,i!==0&&(f=nn(i))))):(T=o&~p,T!==0?f=nn(T):E!==0?f=nn(E):i||(i=o&~t,i!==0&&(f=nn(i)))),f===0?0:a!==0&&a!==f&&(a&p)===0&&(p=f&-f,i=a&-a,p>=i||p===32&&(i&4194048)!==0)?a:f}function ae(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function Se(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Ze(){var t=Pn;return Pn<<=1,(Pn&62914560)===0&&(Pn=4194304),t}function ft(t){for(var a=[],i=0;31>i;i++)a.push(t);return a}function ht(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function D(t,a,i,o,f,p){var E=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var T=t.entanglements,L=t.expirationTimes,$=t.hiddenUpdates;for(i=E&~i;0<i;){var ne=31-sn(i),oe=1<<ne;T[ne]=0,L[ne]=-1;var q=$[ne];if(q!==null)for($[ne]=null,ne=0;ne<q.length;ne++){var Y=q[ne];Y!==null&&(Y.lane&=-536870913)}i&=~oe}o!==0&&J(t,o,0),p!==0&&f===0&&t.tag!==0&&(t.suspendedLanes|=p&~(E&~a))}function J(t,a,i){t.pendingLanes|=a,t.suspendedLanes&=~a;var o=31-sn(a);t.entangledLanes|=a,t.entanglements[o]=t.entanglements[o]|1073741824|i&261930}function ye(t,a){var i=t.entangledLanes|=a;for(t=t.entanglements;i;){var o=31-sn(i),f=1<<o;f&a|t[o]&a&&(t[o]|=a),i&=~f}}function R(t,a){var i=a&-a;return i=(i&42)!==0?1:_(i),(i&(t.suspendedLanes|a))!==0?0:i}function _(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function U(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function W(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:Z2(t.type))}function he(t,a){var i=Q.p;try{return Q.p=t,a()}finally{Q.p=i}}var Ee=Math.random().toString(36).slice(2),pe="__reactFiber$"+Ee,Ce="__reactProps$"+Ee,Me="__reactContainer$"+Ee,Te="__reactEvents$"+Ee,_e="__reactListeners$"+Ee,Re="__reactHandles$"+Ee,Ue="__reactResources$"+Ee,$e="__reactMarker$"+Ee;function yt(t){delete t[pe],delete t[Ce],delete t[Te],delete t[_e],delete t[Re]}function nt(t){var a=t[pe];if(a)return a;for(var i=t.parentNode;i;){if(a=i[Me]||i[pe]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(t=A2(t);t!==null;){if(i=t[pe])return i;t=A2(t)}return a}t=i,i=t.parentNode}return null}function Nt(t){if(t=t[pe]||t[Me]){var a=t.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return t}return null}function Qe(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(s(33))}function Ht(t){var a=t[Ue];return a||(a=t[Ue]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function St(t){t[$e]=!0}var Qn=new Set,pn={};function Kt(t,a){te(t,a),te(t+"Capture",a)}function te(t,a){for(pn[t]=a,t=0;t<a.length;t++)Qn.add(a[t])}var Ne=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]*$"),Pe={},et={};function gt(t){return en.call(et,t)?!0:en.call(Pe,t)?!1:Ne.test(t)?et[t]=!0:(Pe[t]=!0,!1)}function Ve(t,a,i){if(gt(a))if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+i)}}function at(t,a,i){if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+i)}}function Pt(t,a,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(a,i,""+o)}}function mt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function lt(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function rr(t,a,i){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,a);if(!t.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,p=o.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return f.call(this)},set:function(E){i=""+E,p.call(this,E)}}),Object.defineProperty(t,a,{enumerable:o.enumerable}),{getValue:function(){return i},setValue:function(E){i=""+E},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function ir(t){if(!t._valueTracker){var a=lt(t)?"checked":"value";t._valueTracker=rr(t,a,""+t[a])}}function hi(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var i=a.getValue(),o="";return t&&(o=lt(t)?t.checked?"true":"false":t.value),t=o,t!==i?(a.setValue(t),!0):!1}function $i(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Vu=/[\n"\\]/g;function In(t){return t.replace(Vu,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Is(t,a,i,o,f,p,E,T){t.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?t.type=E:t.removeAttribute("type"),a!=null?E==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+mt(a)):t.value!==""+mt(a)&&(t.value=""+mt(a)):E!=="submit"&&E!=="reset"||t.removeAttribute("value"),a!=null?Fi(t,E,mt(a)):i!=null?Fi(t,E,mt(i)):o!=null&&t.removeAttribute("value"),f==null&&p!=null&&(t.defaultChecked=!!p),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.name=""+mt(T):t.removeAttribute("name")}function mi(t,a,i,o,f,p,E,T){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),a!=null||i!=null){if(!(p!=="submit"&&p!=="reset"||a!=null)){ir(t);return}i=i!=null?""+mt(i):"",a=a!=null?""+mt(a):i,T||a===t.value||(t.value=a),t.defaultValue=a}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=T?t.checked:!!o,t.defaultChecked=!!o,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(t.name=E),ir(t)}function Fi(t,a,i){a==="number"&&$i(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function wn(t,a,i,o){if(t=t.options,a){a={};for(var f=0;f<i.length;f++)a["$"+i[f]]=!0;for(i=0;i<t.length;i++)f=a.hasOwnProperty("$"+t[i].value),t[i].selected!==f&&(t[i].selected=f),f&&o&&(t[i].defaultSelected=!0)}else{for(i=""+mt(i),a=null,f=0;f<t.length;f++){if(t[f].value===i){t[f].selected=!0,o&&(t[f].defaultSelected=!0);return}a!==null||t[f].disabled||(a=t[f])}a!==null&&(a.selected=!0)}}function Ao(t,a,i){if(a!=null&&(a=""+mt(a),a!==t.value&&(t.value=a),i==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=i!=null?""+mt(i):""}function Gi(t,a,i,o){if(a==null){if(o!=null){if(i!=null)throw Error(s(92));if(ve(o)){if(1<o.length)throw Error(s(93));o=o[0]}i=o}i==null&&(i=""),a=i}i=mt(a),t.defaultValue=i,o=t.textContent,o===i&&o!==""&&o!==null&&(t.value=o),ir(t)}function Ge(t,a){if(a){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=a;return}}t.textContent=a}var To=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 ln(t,a,i){var o=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":o?t.setProperty(a,i):typeof i!="number"||i===0||To.has(a)?a==="float"?t.cssFloat=i:t[a]=(""+i).trim():t[a]=i+"px"}function Mt(t,a,i){if(a!=null&&typeof a!="object")throw Error(s(62));if(t=t.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var f in a)o=a[f],a.hasOwnProperty(f)&&i[f]!==o&&ln(t,f,o)}else for(var p in a)a.hasOwnProperty(p)&&ln(t,p,a[p])}function kr(t){if(t.indexOf("-")===-1)return!1;switch(t){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 sr=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"]]),$s=/^[\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 Nr(t){return $s.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ae(){}var Oe=null;function Ye(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ot=null,Yt=null;function da(t){var a=Nt(t);if(a&&(t=a.stateNode)){var i=t[Ce]||null;e:switch(t=a.stateNode,a.type){case"input":if(Is(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+In(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var o=i[a];if(o!==t&&o.form===t.form){var f=o[Ce]||null;if(!f)throw Error(s(90));Is(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<i.length;a++)o=i[a],o.form===t.form&&hi(o)}break e;case"textarea":Ao(t,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&wn(t,!!i.multiple,a,!1)}}}var Fs=!1;function Mo(t,a,i){if(Fs)return t(a,i);Fs=!0;try{var o=t(a);return o}finally{if(Fs=!1,(ot!==null||Yt!==null)&&(hc(),ot&&(a=ot,t=Yt,Yt=ot=null,da(a),t)))for(a=0;a<t.length;a++)da(t[a])}}function Gs(t,a){var i=t.stateNode;if(i===null)return null;var o=i[Ce]||null;if(o===null)return null;i=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(s(231,a,typeof i));return i}var lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zu=!1;if(lr)try{var qs={};Object.defineProperty(qs,"passive",{get:function(){zu=!0}}),window.addEventListener("test",qs,qs),window.removeEventListener("test",qs,qs)}catch{zu=!1}var _r=null,Bu=null,Ro=null;function yh(){if(Ro)return Ro;var t,a=Bu,i=a.length,o,f="value"in _r?_r.value:_r.textContent,p=f.length;for(t=0;t<i&&a[t]===f[t];t++);var E=i-t;for(o=1;o<=E&&a[i-o]===f[p-o];o++);return Ro=f.slice(t,1<o?1-o:void 0)}function Co(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function ko(){return!0}function bh(){return!1}function $n(t){function a(i,o,f,p,E){this._reactName=i,this._targetInst=f,this.type=o,this.nativeEvent=p,this.target=E,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(i=t[T],this[T]=i?i(p):p[T]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ko:bh,this.isPropagationStopped=bh,this}return b(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ko)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ko)},persist:function(){},isPersistent:ko}),a}var pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},No=$n(pi),Ks=b({},pi,{view:0,detail:0}),Iv=$n(Ks),Zu,Uu,Ys,_o=b({},Ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ys&&(Ys&&t.type==="mousemove"?(Zu=t.screenX-Ys.screenX,Uu=t.screenY-Ys.screenY):Uu=Zu=0,Ys=t),Zu)},movementY:function(t){return"movementY"in t?t.movementY:Uu}}),vh=$n(_o),$v=b({},_o,{dataTransfer:0}),Fv=$n($v),Gv=b({},Ks,{relatedTarget:0}),Pu=$n(Gv),qv=b({},pi,{animationName:0,elapsedTime:0,pseudoElement:0}),Kv=$n(qv),Yv=b({},pi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Xv=$n(Yv),Qv=b({},pi,{data:0}),xh=$n(Qv),Jv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wv={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"},ex={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tx(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=ex[t])?!!a[t]:!1}function Iu(){return tx}var nx=b({},Ks,{key:function(t){if(t.key){var a=Jv[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=Co(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Wv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iu,charCode:function(t){return t.type==="keypress"?Co(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Co(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ax=$n(nx),rx=b({},_o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eh=$n(rx),ix=b({},Ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iu}),sx=$n(ix),lx=b({},pi,{propertyName:0,elapsedTime:0,pseudoElement:0}),ox=$n(lx),cx=b({},_o,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),ux=$n(cx),dx=b({},pi,{newState:0,oldState:0}),fx=$n(dx),hx=[9,13,27,32],$u=lr&&"CompositionEvent"in window,Xs=null;lr&&"documentMode"in document&&(Xs=document.documentMode);var mx=lr&&"TextEvent"in window&&!Xs,Sh=lr&&(!$u||Xs&&8<Xs&&11>=Xs),wh=" ",Ah=!1;function Th(t,a){switch(t){case"keyup":return hx.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var qi=!1;function px(t,a){switch(t){case"compositionend":return Mh(a);case"keypress":return a.which!==32?null:(Ah=!0,wh);case"textInput":return t=a.data,t===wh&&Ah?null:t;default:return null}}function gx(t,a){if(qi)return t==="compositionend"||!$u&&Th(t,a)?(t=yh(),Ro=Bu=_r=null,qi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Sh&&a.locale!=="ko"?null:a.data;default:return null}}var yx={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 Rh(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!yx[t.type]:a==="textarea"}function Ch(t,a,i,o){ot?Yt?Yt.push(o):Yt=[o]:ot=o,a=xc(a,"onChange"),0<a.length&&(i=new No("onChange","change",null,i,o),t.push({event:i,listeners:a}))}var Qs=null,Js=null;function bx(t){u2(t,0)}function jo(t){var a=Qe(t);if(hi(a))return t}function kh(t,a){if(t==="change")return a}var Nh=!1;if(lr){var Fu;if(lr){var Gu="oninput"in document;if(!Gu){var _h=document.createElement("div");_h.setAttribute("oninput","return;"),Gu=typeof _h.oninput=="function"}Fu=Gu}else Fu=!1;Nh=Fu&&(!document.documentMode||9<document.documentMode)}function jh(){Qs&&(Qs.detachEvent("onpropertychange",Dh),Js=Qs=null)}function Dh(t){if(t.propertyName==="value"&&jo(Js)){var a=[];Ch(a,Js,t,Ye(t)),Mo(bx,a)}}function vx(t,a,i){t==="focusin"?(jh(),Qs=a,Js=i,Qs.attachEvent("onpropertychange",Dh)):t==="focusout"&&jh()}function xx(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return jo(Js)}function Ex(t,a){if(t==="click")return jo(a)}function Sx(t,a){if(t==="input"||t==="change")return jo(a)}function wx(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var Jn=typeof Object.is=="function"?Object.is:wx;function Ws(t,a){if(Jn(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var i=Object.keys(t),o=Object.keys(a);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var f=i[o];if(!en.call(a,f)||!Jn(t[f],a[f]))return!1}return!0}function Lh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Oh(t,a){var i=Lh(t);t=0;for(var o;i;){if(i.nodeType===3){if(o=t+i.textContent.length,t<=a&&o>=a)return{node:i,offset:a-t};t=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Lh(i)}}function Hh(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?Hh(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function Vh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=$i(t.document);a instanceof t.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)t=a.contentWindow;else break;a=$i(t.document)}return a}function qu(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var Ax=lr&&"documentMode"in document&&11>=document.documentMode,Ki=null,Ku=null,el=null,Yu=!1;function zh(t,a,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Yu||Ki==null||Ki!==$i(o)||(o=Ki,"selectionStart"in o&&qu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),el&&Ws(el,o)||(el=o,o=xc(Ku,"onSelect"),0<o.length&&(a=new No("onSelect","select",null,a,i),t.push({event:a,listeners:o}),a.target=Ki)))}function gi(t,a){var i={};return i[t.toLowerCase()]=a.toLowerCase(),i["Webkit"+t]="webkit"+a,i["Moz"+t]="moz"+a,i}var Yi={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionrun:gi("Transition","TransitionRun"),transitionstart:gi("Transition","TransitionStart"),transitioncancel:gi("Transition","TransitionCancel"),transitionend:gi("Transition","TransitionEnd")},Xu={},Bh={};lr&&(Bh=document.createElement("div").style,"AnimationEvent"in window||(delete Yi.animationend.animation,delete Yi.animationiteration.animation,delete Yi.animationstart.animation),"TransitionEvent"in window||delete Yi.transitionend.transition);function yi(t){if(Xu[t])return Xu[t];if(!Yi[t])return t;var a=Yi[t],i;for(i in a)if(a.hasOwnProperty(i)&&i in Bh)return Xu[t]=a[i];return t}var Zh=yi("animationend"),Uh=yi("animationiteration"),Ph=yi("animationstart"),Tx=yi("transitionrun"),Mx=yi("transitionstart"),Rx=yi("transitioncancel"),Ih=yi("transitionend"),$h=new Map,Qu="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(" ");Qu.push("scrollEnd");function ka(t,a){$h.set(t,a),Kt(a,[t])}var Do=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},fa=[],Xi=0,Ju=0;function Lo(){for(var t=Xi,a=Ju=Xi=0;a<t;){var i=fa[a];fa[a++]=null;var o=fa[a];fa[a++]=null;var f=fa[a];fa[a++]=null;var p=fa[a];if(fa[a++]=null,o!==null&&f!==null){var E=o.pending;E===null?f.next=f:(f.next=E.next,E.next=f),o.pending=f}p!==0&&Fh(i,f,p)}}function Oo(t,a,i,o){fa[Xi++]=t,fa[Xi++]=a,fa[Xi++]=i,fa[Xi++]=o,Ju|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function Wu(t,a,i,o){return Oo(t,a,i,o),Ho(t)}function bi(t,a){return Oo(t,null,null,a),Ho(t)}function Fh(t,a,i){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i);for(var f=!1,p=t.return;p!==null;)p.childLanes|=i,o=p.alternate,o!==null&&(o.childLanes|=i),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(f=!0)),t=p,p=p.return;return t.tag===3?(p=t.stateNode,f&&a!==null&&(f=31-sn(i),t=p.hiddenUpdates,o=t[f],o===null?t[f]=[a]:o.push(a),a.lane=i|536870912),p):null}function Ho(t){if(50<Sl)throw Sl=0,od=null,Error(s(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var Qi={};function Cx(t,a,i,o){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wn(t,a,i,o){return new Cx(t,a,i,o)}function e0(t){return t=t.prototype,!(!t||!t.isReactComponent)}function or(t,a){var i=t.alternate;return i===null?(i=Wn(t.tag,a,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=a,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,a=t.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Gh(t,a){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,a=i.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Vo(t,a,i,o,f,p){var E=0;if(o=t,typeof t=="function")e0(t)&&(E=1);else if(typeof t=="string")E=D3(t,i,be.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ce:return t=Wn(31,i,a,f),t.elementType=ce,t.lanes=p,t;case M:return vi(i.children,f,p,a);case A:E=8,f|=24;break;case j:return t=Wn(12,i,a,f|2),t.elementType=j,t.lanes=p,t;case Z:return t=Wn(13,i,a,f),t.elementType=Z,t.lanes=p,t;case ee:return t=Wn(19,i,a,f),t.elementType=ee,t.lanes=p,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case H:E=10;break e;case C:E=9;break e;case B:E=11;break e;case re:E=14;break e;case N:E=16,o=null;break e}E=29,i=Error(s(130,t===null?"null":typeof t,"")),o=null}return a=Wn(E,i,a,f),a.elementType=t,a.type=o,a.lanes=p,a}function vi(t,a,i,o){return t=Wn(7,t,o,a),t.lanes=i,t}function t0(t,a,i){return t=Wn(6,t,null,a),t.lanes=i,t}function qh(t){var a=Wn(18,null,null,0);return a.stateNode=t,a}function n0(t,a,i){return a=Wn(4,t.children!==null?t.children:[],t.key,a),a.lanes=i,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var Kh=new WeakMap;function ha(t,a){if(typeof t=="object"&&t!==null){var i=Kh.get(t);return i!==void 0?i:(a={value:t,source:a,stack:Ut(a)},Kh.set(t,a),a)}return{value:t,source:a,stack:Ut(a)}}var Ji=[],Wi=0,zo=null,tl=0,ma=[],pa=0,jr=null,$a=1,Fa="";function cr(t,a){Ji[Wi++]=tl,Ji[Wi++]=zo,zo=t,tl=a}function Yh(t,a,i){ma[pa++]=$a,ma[pa++]=Fa,ma[pa++]=jr,jr=t;var o=$a;t=Fa;var f=32-sn(o)-1;o&=~(1<<f),i+=1;var p=32-sn(a)+f;if(30<p){var E=f-f%5;p=(o&(1<<E)-1).toString(32),o>>=E,f-=E,$a=1<<32-sn(a)+f|i<<f|o,Fa=p+t}else $a=1<<p|i<<f|o,Fa=t}function a0(t){t.return!==null&&(cr(t,1),Yh(t,1,0))}function r0(t){for(;t===zo;)zo=Ji[--Wi],Ji[Wi]=null,tl=Ji[--Wi],Ji[Wi]=null;for(;t===jr;)jr=ma[--pa],ma[pa]=null,Fa=ma[--pa],ma[pa]=null,$a=ma[--pa],ma[pa]=null}function Xh(t,a){ma[pa++]=$a,ma[pa++]=Fa,ma[pa++]=jr,$a=a.id,Fa=a.overflow,jr=t}var An=null,It=null,dt=!1,Dr=null,ga=!1,i0=Error(s(519));function Lr(t){var a=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nl(ha(a,t)),i0}function Qh(t){var a=t.stateNode,i=t.type,o=t.memoizedProps;switch(a[pe]=t,a[Ce]=o,i){case"dialog":it("cancel",a),it("close",a);break;case"iframe":case"object":case"embed":it("load",a);break;case"video":case"audio":for(i=0;i<Al.length;i++)it(Al[i],a);break;case"source":it("error",a);break;case"img":case"image":case"link":it("error",a),it("load",a);break;case"details":it("toggle",a);break;case"input":it("invalid",a),mi(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":it("invalid",a);break;case"textarea":it("invalid",a),Gi(a,o.value,o.defaultValue,o.children)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||o.suppressHydrationWarning===!0||m2(a.textContent,i)?(o.popover!=null&&(it("beforetoggle",a),it("toggle",a)),o.onScroll!=null&&it("scroll",a),o.onScrollEnd!=null&&it("scrollend",a),o.onClick!=null&&(a.onclick=Ae),a=!0):a=!1,a||Lr(t,!0)}function Jh(t){for(An=t.return;An;)switch(An.tag){case 5:case 31:case 13:ga=!1;return;case 27:case 3:ga=!0;return;default:An=An.return}}function es(t){if(t!==An)return!1;if(!dt)return Jh(t),dt=!0,!1;var a=t.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||wd(t.type,t.memoizedProps)),i=!i),i&&It&&Lr(t),Jh(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));It=w2(t)}else if(a===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));It=w2(t)}else a===27?(a=It,Kr(t.type)?(t=Cd,Cd=null,It=t):It=a):It=An?ba(t.stateNode.nextSibling):null;return!0}function xi(){It=An=null,dt=!1}function s0(){var t=Dr;return t!==null&&(Kn===null?Kn=t:Kn.push.apply(Kn,t),Dr=null),t}function nl(t){Dr===null?Dr=[t]:Dr.push(t)}var l0=k(null),Ei=null,ur=null;function Or(t,a,i){ie(l0,a._currentValue),a._currentValue=i}function dr(t){t._currentValue=l0.current,F(l0)}function o0(t,a,i){for(;t!==null;){var o=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),t===i)break;t=t.return}}function c0(t,a,i,o){var f=t.child;for(f!==null&&(f.return=t);f!==null;){var p=f.dependencies;if(p!==null){var E=f.child;p=p.firstContext;e:for(;p!==null;){var T=p;p=f;for(var L=0;L<a.length;L++)if(T.context===a[L]){p.lanes|=i,T=p.alternate,T!==null&&(T.lanes|=i),o0(p.return,i,t),o||(E=null);break e}p=T.next}}else if(f.tag===18){if(E=f.return,E===null)throw Error(s(341));E.lanes|=i,p=E.alternate,p!==null&&(p.lanes|=i),o0(E,i,t),E=null}else E=f.child;if(E!==null)E.return=f;else for(E=f;E!==null;){if(E===t){E=null;break}if(f=E.sibling,f!==null){f.return=E.return,E=f;break}E=E.return}f=E}}function ts(t,a,i,o){t=null;for(var f=a,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var E=f.alternate;if(E===null)throw Error(s(387));if(E=E.memoizedProps,E!==null){var T=f.type;Jn(f.pendingProps.value,E.value)||(t!==null?t.push(T):t=[T])}}else if(f===K.current){if(E=f.alternate,E===null)throw Error(s(387));E.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(t!==null?t.push(kl):t=[kl])}f=f.return}t!==null&&c0(a,t,i,o),a.flags|=262144}function Bo(t){for(t=t.firstContext;t!==null;){if(!Jn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Si(t){Ei=t,ur=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Tn(t){return Wh(Ei,t)}function Zo(t,a){return Ei===null&&Si(t),Wh(t,a)}function Wh(t,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},ur===null){if(t===null)throw Error(s(308));ur=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else ur=ur.next=a;return i}var kx=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(i,o){t.push(o)}};this.abort=function(){a.aborted=!0,t.forEach(function(i){return i()})}},Nx=e.unstable_scheduleCallback,_x=e.unstable_NormalPriority,on={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function u0(){return{controller:new kx,data:new Map,refCount:0}}function al(t){t.refCount--,t.refCount===0&&Nx(_x,function(){t.controller.abort()})}var rl=null,d0=0,ns=0,as=null;function jx(t,a){if(rl===null){var i=rl=[];d0=0,ns=md(),as={status:"pending",value:void 0,then:function(o){i.push(o)}}}return d0++,a.then(em,em),a}function em(){if(--d0===0&&rl!==null){as!==null&&(as.status="fulfilled");var t=rl;rl=null,ns=0,as=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function Dx(t,a){var i=[],o={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return t.then(function(){o.status="fulfilled",o.value=a;for(var f=0;f<i.length;f++)(0,i[f])(a)},function(f){for(o.status="rejected",o.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),o}var tm=V.S;V.S=function(t,a){zp=Ot(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&jx(t,a),tm!==null&&tm(t,a)};var wi=k(null);function f0(){var t=wi.current;return t!==null?t:Vt.pooledCache}function Uo(t,a){a===null?ie(wi,wi.current):ie(wi,a.pool)}function nm(){var t=f0();return t===null?null:{parent:on._currentValue,pool:t}}var rs=Error(s(460)),h0=Error(s(474)),Po=Error(s(542)),Io={then:function(){}};function am(t){return t=t.status,t==="fulfilled"||t==="rejected"}function rm(t,a,i){switch(i=t[i],i===void 0?t.push(a):i!==a&&(a.then(Ae,Ae),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,sm(t),t;default:if(typeof a.status=="string")a.then(Ae,Ae);else{if(t=Vt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=a,t.status="pending",t.then(function(o){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=o}},function(o){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,sm(t),t}throw Ti=a,rs}}function Ai(t){try{var a=t._init;return a(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Ti=i,rs):i}}var Ti=null;function im(){if(Ti===null)throw Error(s(459));var t=Ti;return Ti=null,t}function sm(t){if(t===rs||t===Po)throw Error(s(483))}var is=null,il=0;function $o(t){var a=il;return il+=1,is===null&&(is=[]),rm(is,t,a)}function sl(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function Fo(t,a){throw a.$$typeof===x?Error(s(525)):(t=Object.prototype.toString.call(a),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function lm(t){function a(P,z){if(t){var I=P.deletions;I===null?(P.deletions=[z],P.flags|=16):I.push(z)}}function i(P,z){if(!t)return null;for(;z!==null;)a(P,z),z=z.sibling;return null}function o(P){for(var z=new Map;P!==null;)P.key!==null?z.set(P.key,P):z.set(P.index,P),P=P.sibling;return z}function f(P,z){return P=or(P,z),P.index=0,P.sibling=null,P}function p(P,z,I){return P.index=I,t?(I=P.alternate,I!==null?(I=I.index,I<z?(P.flags|=67108866,z):I):(P.flags|=67108866,z)):(P.flags|=1048576,z)}function E(P){return t&&P.alternate===null&&(P.flags|=67108866),P}function T(P,z,I,se){return z===null||z.tag!==6?(z=t0(I,P.mode,se),z.return=P,z):(z=f(z,I),z.return=P,z)}function L(P,z,I,se){var Be=I.type;return Be===M?ne(P,z,I.props.children,se,I.key):z!==null&&(z.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===N&&Ai(Be)===z.type)?(z=f(z,I.props),sl(z,I),z.return=P,z):(z=Vo(I.type,I.key,I.props,null,P.mode,se),sl(z,I),z.return=P,z)}function $(P,z,I,se){return z===null||z.tag!==4||z.stateNode.containerInfo!==I.containerInfo||z.stateNode.implementation!==I.implementation?(z=n0(I,P.mode,se),z.return=P,z):(z=f(z,I.children||[]),z.return=P,z)}function ne(P,z,I,se,Be){return z===null||z.tag!==7?(z=vi(I,P.mode,se,Be),z.return=P,z):(z=f(z,I),z.return=P,z)}function oe(P,z,I){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=t0(""+z,P.mode,I),z.return=P,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case S:return I=Vo(z.type,z.key,z.props,null,P.mode,I),sl(I,z),I.return=P,I;case w:return z=n0(z,P.mode,I),z.return=P,z;case N:return z=Ai(z),oe(P,z,I)}if(ve(z)||X(z))return z=vi(z,P.mode,I,null),z.return=P,z;if(typeof z.then=="function")return oe(P,$o(z),I);if(z.$$typeof===H)return oe(P,Zo(P,z),I);Fo(P,z)}return null}function q(P,z,I,se){var Be=z!==null?z.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return Be!==null?null:T(P,z,""+I,se);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case S:return I.key===Be?L(P,z,I,se):null;case w:return I.key===Be?$(P,z,I,se):null;case N:return I=Ai(I),q(P,z,I,se)}if(ve(I)||X(I))return Be!==null?null:ne(P,z,I,se,null);if(typeof I.then=="function")return q(P,z,$o(I),se);if(I.$$typeof===H)return q(P,z,Zo(P,I),se);Fo(P,I)}return null}function Y(P,z,I,se,Be){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return P=P.get(I)||null,T(z,P,""+se,Be);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case S:return P=P.get(se.key===null?I:se.key)||null,L(z,P,se,Be);case w:return P=P.get(se.key===null?I:se.key)||null,$(z,P,se,Be);case N:return se=Ai(se),Y(P,z,I,se,Be)}if(ve(se)||X(se))return P=P.get(I)||null,ne(z,P,se,Be,null);if(typeof se.then=="function")return Y(P,z,I,$o(se),Be);if(se.$$typeof===H)return Y(P,z,I,Zo(z,se),Be);Fo(z,se)}return null}function De(P,z,I,se){for(var Be=null,bt=null,He=z,Je=z=0,ut=null;He!==null&&Je<I.length;Je++){He.index>Je?(ut=He,He=null):ut=He.sibling;var vt=q(P,He,I[Je],se);if(vt===null){He===null&&(He=ut);break}t&&He&&vt.alternate===null&&a(P,He),z=p(vt,z,Je),bt===null?Be=vt:bt.sibling=vt,bt=vt,He=ut}if(Je===I.length)return i(P,He),dt&&cr(P,Je),Be;if(He===null){for(;Je<I.length;Je++)He=oe(P,I[Je],se),He!==null&&(z=p(He,z,Je),bt===null?Be=He:bt.sibling=He,bt=He);return dt&&cr(P,Je),Be}for(He=o(He);Je<I.length;Je++)ut=Y(He,P,Je,I[Je],se),ut!==null&&(t&&ut.alternate!==null&&He.delete(ut.key===null?Je:ut.key),z=p(ut,z,Je),bt===null?Be=ut:bt.sibling=ut,bt=ut);return t&&He.forEach(function(Wr){return a(P,Wr)}),dt&&cr(P,Je),Be}function Fe(P,z,I,se){if(I==null)throw Error(s(151));for(var Be=null,bt=null,He=z,Je=z=0,ut=null,vt=I.next();He!==null&&!vt.done;Je++,vt=I.next()){He.index>Je?(ut=He,He=null):ut=He.sibling;var Wr=q(P,He,vt.value,se);if(Wr===null){He===null&&(He=ut);break}t&&He&&Wr.alternate===null&&a(P,He),z=p(Wr,z,Je),bt===null?Be=Wr:bt.sibling=Wr,bt=Wr,He=ut}if(vt.done)return i(P,He),dt&&cr(P,Je),Be;if(He===null){for(;!vt.done;Je++,vt=I.next())vt=oe(P,vt.value,se),vt!==null&&(z=p(vt,z,Je),bt===null?Be=vt:bt.sibling=vt,bt=vt);return dt&&cr(P,Je),Be}for(He=o(He);!vt.done;Je++,vt=I.next())vt=Y(He,P,Je,vt.value,se),vt!==null&&(t&&vt.alternate!==null&&He.delete(vt.key===null?Je:vt.key),z=p(vt,z,Je),bt===null?Be=vt:bt.sibling=vt,bt=vt);return t&&He.forEach(function($3){return a(P,$3)}),dt&&cr(P,Je),Be}function Dt(P,z,I,se){if(typeof I=="object"&&I!==null&&I.type===M&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case S:e:{for(var Be=I.key;z!==null;){if(z.key===Be){if(Be=I.type,Be===M){if(z.tag===7){i(P,z.sibling),se=f(z,I.props.children),se.return=P,P=se;break e}}else if(z.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===N&&Ai(Be)===z.type){i(P,z.sibling),se=f(z,I.props),sl(se,I),se.return=P,P=se;break e}i(P,z);break}else a(P,z);z=z.sibling}I.type===M?(se=vi(I.props.children,P.mode,se,I.key),se.return=P,P=se):(se=Vo(I.type,I.key,I.props,null,P.mode,se),sl(se,I),se.return=P,P=se)}return E(P);case w:e:{for(Be=I.key;z!==null;){if(z.key===Be)if(z.tag===4&&z.stateNode.containerInfo===I.containerInfo&&z.stateNode.implementation===I.implementation){i(P,z.sibling),se=f(z,I.children||[]),se.return=P,P=se;break e}else{i(P,z);break}else a(P,z);z=z.sibling}se=n0(I,P.mode,se),se.return=P,P=se}return E(P);case N:return I=Ai(I),Dt(P,z,I,se)}if(ve(I))return De(P,z,I,se);if(X(I)){if(Be=X(I),typeof Be!="function")throw Error(s(150));return I=Be.call(I),Fe(P,z,I,se)}if(typeof I.then=="function")return Dt(P,z,$o(I),se);if(I.$$typeof===H)return Dt(P,z,Zo(P,I),se);Fo(P,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,z!==null&&z.tag===6?(i(P,z.sibling),se=f(z,I),se.return=P,P=se):(i(P,z),se=t0(I,P.mode,se),se.return=P,P=se),E(P)):i(P,z)}return function(P,z,I,se){try{il=0;var Be=Dt(P,z,I,se);return is=null,Be}catch(He){if(He===rs||He===Po)throw He;var bt=Wn(29,He,null,P.mode);return bt.lanes=se,bt.return=P,bt}finally{}}}var Mi=lm(!0),om=lm(!1),Hr=!1;function m0(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function p0(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Vr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function zr(t,a,i){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(wt&2)!==0){var f=o.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),o.pending=a,a=Ho(t),Fh(t,null,i),a}return Oo(t,o,a,i),Ho(t)}function ll(t,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var o=a.lanes;o&=t.pendingLanes,i|=o,a.lanes=i,ye(t,i)}}function g0(t,a){var i=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var f=null,p=null;if(i=i.firstBaseUpdate,i!==null){do{var E={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};p===null?f=p=E:p=p.next=E,i=i.next}while(i!==null);p===null?f=p=a:p=p.next=a}else f=p=a;i={baseState:o.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=a:t.next=a,i.lastBaseUpdate=a}var y0=!1;function ol(){if(y0){var t=as;if(t!==null)throw t}}function cl(t,a,i,o){y0=!1;var f=t.updateQueue;Hr=!1;var p=f.firstBaseUpdate,E=f.lastBaseUpdate,T=f.shared.pending;if(T!==null){f.shared.pending=null;var L=T,$=L.next;L.next=null,E===null?p=$:E.next=$,E=L;var ne=t.alternate;ne!==null&&(ne=ne.updateQueue,T=ne.lastBaseUpdate,T!==E&&(T===null?ne.firstBaseUpdate=$:T.next=$,ne.lastBaseUpdate=L))}if(p!==null){var oe=f.baseState;E=0,ne=$=L=null,T=p;do{var q=T.lane&-536870913,Y=q!==T.lane;if(Y?(ct&q)===q:(o&q)===q){q!==0&&q===ns&&(y0=!0),ne!==null&&(ne=ne.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var De=t,Fe=T;q=a;var Dt=i;switch(Fe.tag){case 1:if(De=Fe.payload,typeof De=="function"){oe=De.call(Dt,oe,q);break e}oe=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Fe.payload,q=typeof De=="function"?De.call(Dt,oe,q):De,q==null)break e;oe=b({},oe,q);break e;case 2:Hr=!0}}q=T.callback,q!==null&&(t.flags|=64,Y&&(t.flags|=8192),Y=f.callbacks,Y===null?f.callbacks=[q]:Y.push(q))}else Y={lane:q,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ne===null?($=ne=Y,L=oe):ne=ne.next=Y,E|=q;if(T=T.next,T===null){if(T=f.shared.pending,T===null)break;Y=T,T=Y.next,Y.next=null,f.lastBaseUpdate=Y,f.shared.pending=null}}while(!0);ne===null&&(L=oe),f.baseState=L,f.firstBaseUpdate=$,f.lastBaseUpdate=ne,p===null&&(f.shared.lanes=0),Ir|=E,t.lanes=E,t.memoizedState=oe}}function cm(t,a){if(typeof t!="function")throw Error(s(191,t));t.call(a)}function um(t,a){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)cm(i[t],a)}var ss=k(null),Go=k(0);function dm(t,a){t=xr,ie(Go,t),ie(ss,a),xr=t|a.baseLanes}function b0(){ie(Go,xr),ie(ss,ss.current)}function v0(){xr=Go.current,F(ss),F(Go)}var ea=k(null),ya=null;function Br(t){var a=t.alternate;ie(an,an.current&1),ie(ea,t),ya===null&&(a===null||ss.current!==null||a.memoizedState!==null)&&(ya=t)}function x0(t){ie(an,an.current),ie(ea,t),ya===null&&(ya=t)}function fm(t){t.tag===22?(ie(an,an.current),ie(ea,t),ya===null&&(ya=t)):Zr()}function Zr(){ie(an,an.current),ie(ea,ea.current)}function ta(t){F(ea),ya===t&&(ya=null),F(an)}var an=k(0);function qo(t){for(var a=t;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Md(i)||Rd(i)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var fr=0,Xe=null,_t=null,cn=null,Ko=!1,ls=!1,Ri=!1,Yo=0,ul=0,os=null,Lx=0;function Qt(){throw Error(s(321))}function E0(t,a){if(a===null)return!1;for(var i=0;i<a.length&&i<t.length;i++)if(!Jn(t[i],a[i]))return!1;return!0}function S0(t,a,i,o,f,p){return fr=p,Xe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,V.H=t===null||t.memoizedState===null?Ym:V0,Ri=!1,p=i(o,f),Ri=!1,ls&&(p=mm(a,i,o,f)),hm(t),p}function hm(t){V.H=hl;var a=_t!==null&&_t.next!==null;if(fr=0,cn=_t=Xe=null,Ko=!1,ul=0,os=null,a)throw Error(s(300));t===null||un||(t=t.dependencies,t!==null&&Bo(t)&&(un=!0))}function mm(t,a,i,o){Xe=t;var f=0;do{if(ls&&(os=null),ul=0,ls=!1,25<=f)throw Error(s(301));if(f+=1,cn=_t=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}V.H=Xm,p=a(i,o)}while(ls);return p}function Ox(){var t=V.H,a=t.useState()[0];return a=typeof a.then=="function"?dl(a):a,t=t.useState()[0],(_t!==null?_t.memoizedState:null)!==t&&(Xe.flags|=1024),a}function w0(){var t=Yo!==0;return Yo=0,t}function A0(t,a,i){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~i}function T0(t){if(Ko){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}Ko=!1}fr=0,cn=_t=Xe=null,ls=!1,ul=Yo=0,os=null}function Bn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return cn===null?Xe.memoizedState=cn=t:cn=cn.next=t,cn}function rn(){if(_t===null){var t=Xe.alternate;t=t!==null?t.memoizedState:null}else t=_t.next;var a=cn===null?Xe.memoizedState:cn.next;if(a!==null)cn=a,_t=t;else{if(t===null)throw Xe.alternate===null?Error(s(467)):Error(s(310));_t=t,t={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},cn===null?Xe.memoizedState=cn=t:cn=cn.next=t}return cn}function Xo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dl(t){var a=ul;return ul+=1,os===null&&(os=[]),t=rm(os,t,a),a=Xe,(cn===null?a.memoizedState:cn.next)===null&&(a=a.alternate,V.H=a===null||a.memoizedState===null?Ym:V0),t}function Qo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return dl(t);if(t.$$typeof===H)return Tn(t)}throw Error(s(438,String(t)))}function M0(t){var a=null,i=Xe.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var o=Xe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=Xo(),Xe.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(t),o=0;o<t;o++)i[o]=le;return a.index++,i}function hr(t,a){return typeof a=="function"?a(t):a}function Jo(t){var a=rn();return R0(a,_t,t)}function R0(t,a,i){var o=t.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=i;var f=t.baseQueue,p=o.pending;if(p!==null){if(f!==null){var E=f.next;f.next=p.next,p.next=E}a.baseQueue=f=p,o.pending=null}if(p=t.baseState,f===null)t.memoizedState=p;else{a=f.next;var T=E=null,L=null,$=a,ne=!1;do{var oe=$.lane&-536870913;if(oe!==$.lane?(ct&oe)===oe:(fr&oe)===oe){var q=$.revertLane;if(q===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),oe===ns&&(ne=!0);else if((fr&q)===q){$=$.next,q===ns&&(ne=!0);continue}else oe={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},L===null?(T=L=oe,E=p):L=L.next=oe,Xe.lanes|=q,Ir|=q;oe=$.action,Ri&&i(p,oe),p=$.hasEagerState?$.eagerState:i(p,oe)}else q={lane:oe,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},L===null?(T=L=q,E=p):L=L.next=q,Xe.lanes|=oe,Ir|=oe;$=$.next}while($!==null&&$!==a);if(L===null?E=p:L.next=T,!Jn(p,t.memoizedState)&&(un=!0,ne&&(i=as,i!==null)))throw i;t.memoizedState=p,t.baseState=E,t.baseQueue=L,o.lastRenderedState=p}return f===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function C0(t){var a=rn(),i=a.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=t;var o=i.dispatch,f=i.pending,p=a.memoizedState;if(f!==null){i.pending=null;var E=f=f.next;do p=t(p,E.action),E=E.next;while(E!==f);Jn(p,a.memoizedState)||(un=!0),a.memoizedState=p,a.baseQueue===null&&(a.baseState=p),i.lastRenderedState=p}return[p,o]}function pm(t,a,i){var o=Xe,f=rn(),p=dt;if(p){if(i===void 0)throw Error(s(407));i=i()}else i=a();var E=!Jn((_t||f).memoizedState,i);if(E&&(f.memoizedState=i,un=!0),f=f.queue,_0(bm.bind(null,o,f,t),[t]),f.getSnapshot!==a||E||cn!==null&&cn.memoizedState.tag&1){if(o.flags|=2048,cs(9,{destroy:void 0},ym.bind(null,o,f,i,a),null),Vt===null)throw Error(s(349));p||(fr&127)!==0||gm(o,a,i)}return i}function gm(t,a,i){t.flags|=16384,t={getSnapshot:a,value:i},a=Xe.updateQueue,a===null?(a=Xo(),Xe.updateQueue=a,a.stores=[t]):(i=a.stores,i===null?a.stores=[t]:i.push(t))}function ym(t,a,i,o){a.value=i,a.getSnapshot=o,vm(a)&&xm(t)}function bm(t,a,i){return i(function(){vm(a)&&xm(t)})}function vm(t){var a=t.getSnapshot;t=t.value;try{var i=a();return!Jn(t,i)}catch{return!0}}function xm(t){var a=bi(t,2);a!==null&&Yn(a,t,2)}function k0(t){var a=Bn();if(typeof t=="function"){var i=t;if(t=i(),Ri){Xt(!0);try{i()}finally{Xt(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:t},a}function Em(t,a,i,o){return t.baseState=i,R0(t,_t,typeof o=="function"?o:hr)}function Hx(t,a,i,o,f){if(tc(t))throw Error(s(485));if(t=a.action,t!==null){var p={payload:f,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){p.listeners.push(E)}};V.T!==null?i(!0):p.isTransition=!1,o(p),i=a.pending,i===null?(p.next=a.pending=p,Sm(a,p)):(p.next=i.next,a.pending=i.next=p)}}function Sm(t,a){var i=a.action,o=a.payload,f=t.state;if(a.isTransition){var p=V.T,E={};V.T=E;try{var T=i(f,o),L=V.S;L!==null&&L(E,T),wm(t,a,T)}catch($){N0(t,a,$)}finally{p!==null&&E.types!==null&&(p.types=E.types),V.T=p}}else try{p=i(f,o),wm(t,a,p)}catch($){N0(t,a,$)}}function wm(t,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){Am(t,a,o)},function(o){return N0(t,a,o)}):Am(t,a,i)}function Am(t,a,i){a.status="fulfilled",a.value=i,Tm(a),t.state=i,a=t.pending,a!==null&&(i=a.next,i===a?t.pending=null:(i=i.next,a.next=i,Sm(t,i)))}function N0(t,a,i){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=i,Tm(a),a=a.next;while(a!==o)}t.action=null}function Tm(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function Mm(t,a){return a}function Rm(t,a){if(dt){var i=Vt.formState;if(i!==null){e:{var o=Xe;if(dt){if(It){t:{for(var f=It,p=ga;f.nodeType!==8;){if(!p){f=null;break t}if(f=ba(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){It=ba(f.nextSibling),o=f.data==="F!";break e}}Lr(o)}o=!1}o&&(a=i[0])}}return i=Bn(),i.memoizedState=i.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mm,lastRenderedState:a},i.queue=o,i=Gm.bind(null,Xe,o),o.dispatch=i,o=k0(!1),p=H0.bind(null,Xe,!1,o.queue),o=Bn(),f={state:a,dispatch:null,action:t,pending:null},o.queue=f,i=Hx.bind(null,Xe,f,p,i),f.dispatch=i,o.memoizedState=t,[a,i,!1]}function Cm(t){var a=rn();return km(a,_t,t)}function km(t,a,i){if(a=R0(t,a,Mm)[0],t=Jo(hr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=dl(a)}catch(E){throw E===rs?Po:E}else o=a;a=rn();var f=a.queue,p=f.dispatch;return i!==a.memoizedState&&(Xe.flags|=2048,cs(9,{destroy:void 0},Vx.bind(null,f,i),null)),[o,p,t]}function Vx(t,a){t.action=a}function Nm(t){var a=rn(),i=_t;if(i!==null)return km(a,i,t);rn(),a=a.memoizedState,i=rn();var o=i.queue.dispatch;return i.memoizedState=t,[a,o,!1]}function cs(t,a,i,o){return t={tag:t,create:i,deps:o,inst:a,next:null},a=Xe.updateQueue,a===null&&(a=Xo(),Xe.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=t.next=t:(o=i.next,i.next=t,t.next=o,a.lastEffect=t),t}function _m(){return rn().memoizedState}function Wo(t,a,i,o){var f=Bn();Xe.flags|=t,f.memoizedState=cs(1|a,{destroy:void 0},i,o===void 0?null:o)}function ec(t,a,i,o){var f=rn();o=o===void 0?null:o;var p=f.memoizedState.inst;_t!==null&&o!==null&&E0(o,_t.memoizedState.deps)?f.memoizedState=cs(a,p,i,o):(Xe.flags|=t,f.memoizedState=cs(1|a,p,i,o))}function jm(t,a){Wo(8390656,8,t,a)}function _0(t,a){ec(2048,8,t,a)}function zx(t){Xe.flags|=4;var a=Xe.updateQueue;if(a===null)a=Xo(),Xe.updateQueue=a,a.events=[t];else{var i=a.events;i===null?a.events=[t]:i.push(t)}}function Dm(t){var a=rn().memoizedState;return zx({ref:a,nextImpl:t}),function(){if((wt&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}function Lm(t,a){return ec(4,2,t,a)}function Om(t,a){return ec(4,4,t,a)}function Hm(t,a){if(typeof a=="function"){t=t();var i=a(t);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Vm(t,a,i){i=i!=null?i.concat([t]):null,ec(4,4,Hm.bind(null,a,t),i)}function j0(){}function zm(t,a){var i=rn();a=a===void 0?null:a;var o=i.memoizedState;return a!==null&&E0(a,o[1])?o[0]:(i.memoizedState=[t,a],t)}function Bm(t,a){var i=rn();a=a===void 0?null:a;var o=i.memoizedState;if(a!==null&&E0(a,o[1]))return o[0];if(o=t(),Ri){Xt(!0);try{t()}finally{Xt(!1)}}return i.memoizedState=[o,a],o}function D0(t,a,i){return i===void 0||(fr&1073741824)!==0&&(ct&261930)===0?t.memoizedState=a:(t.memoizedState=i,t=Zp(),Xe.lanes|=t,Ir|=t,i)}function Zm(t,a,i,o){return Jn(i,a)?i:ss.current!==null?(t=D0(t,i,o),Jn(t,a)||(un=!0),t):(fr&42)===0||(fr&1073741824)!==0&&(ct&261930)===0?(un=!0,t.memoizedState=i):(t=Zp(),Xe.lanes|=t,Ir|=t,a)}function Um(t,a,i,o,f){var p=Q.p;Q.p=p!==0&&8>p?p:8;var E=V.T,T={};V.T=T,H0(t,!1,a,i);try{var L=f(),$=V.S;if($!==null&&$(T,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var ne=Dx(L,o);fl(t,a,ne,ra(t))}else fl(t,a,o,ra(t))}catch(oe){fl(t,a,{then:function(){},status:"rejected",reason:oe},ra())}finally{Q.p=p,E!==null&&T.types!==null&&(E.types=T.types),V.T=E}}function Bx(){}function L0(t,a,i,o){if(t.tag!==5)throw Error(s(476));var f=Pm(t).queue;Um(t,f,a,G,i===null?Bx:function(){return Im(t),i(o)})}function Pm(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:G},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:i},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Im(t){var a=Pm(t);a.next===null&&(a=t.alternate.memoizedState),fl(t,a.next.queue,{},ra())}function O0(){return Tn(kl)}function $m(){return rn().memoizedState}function Fm(){return rn().memoizedState}function Zx(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var i=ra();t=Vr(i);var o=zr(a,t,i);o!==null&&(Yn(o,a,i),ll(o,a,i)),a={cache:u0()},t.payload=a;return}a=a.return}}function Ux(t,a,i){var o=ra();i={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},tc(t)?qm(a,i):(i=Wu(t,a,i,o),i!==null&&(Yn(i,t,o),Km(i,a,o)))}function Gm(t,a,i){var o=ra();fl(t,a,i,o)}function fl(t,a,i,o){var f={lane:o,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(tc(t))qm(a,f);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=a.lastRenderedReducer,p!==null))try{var E=a.lastRenderedState,T=p(E,i);if(f.hasEagerState=!0,f.eagerState=T,Jn(T,E))return Oo(t,a,f,0),Vt===null&&Lo(),!1}catch{}finally{}if(i=Wu(t,a,f,o),i!==null)return Yn(i,t,o),Km(i,a,o),!0}return!1}function H0(t,a,i,o){if(o={lane:2,revertLane:md(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},tc(t)){if(a)throw Error(s(479))}else a=Wu(t,i,o,2),a!==null&&Yn(a,t,2)}function tc(t){var a=t.alternate;return t===Xe||a!==null&&a===Xe}function qm(t,a){ls=Ko=!0;var i=t.pending;i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a}function Km(t,a,i){if((i&4194048)!==0){var o=a.lanes;o&=t.pendingLanes,i|=o,a.lanes=i,ye(t,i)}}var hl={readContext:Tn,use:Qo,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt};hl.useEffectEvent=Qt;var Ym={readContext:Tn,use:Qo,useCallback:function(t,a){return Bn().memoizedState=[t,a===void 0?null:a],t},useContext:Tn,useEffect:jm,useImperativeHandle:function(t,a,i){i=i!=null?i.concat([t]):null,Wo(4194308,4,Hm.bind(null,a,t),i)},useLayoutEffect:function(t,a){return Wo(4194308,4,t,a)},useInsertionEffect:function(t,a){Wo(4,2,t,a)},useMemo:function(t,a){var i=Bn();a=a===void 0?null:a;var o=t();if(Ri){Xt(!0);try{t()}finally{Xt(!1)}}return i.memoizedState=[o,a],o},useReducer:function(t,a,i){var o=Bn();if(i!==void 0){var f=i(a);if(Ri){Xt(!0);try{i(a)}finally{Xt(!1)}}}else f=a;return o.memoizedState=o.baseState=f,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:f},o.queue=t,t=t.dispatch=Ux.bind(null,Xe,t),[o.memoizedState,t]},useRef:function(t){var a=Bn();return t={current:t},a.memoizedState=t},useState:function(t){t=k0(t);var a=t.queue,i=Gm.bind(null,Xe,a);return a.dispatch=i,[t.memoizedState,i]},useDebugValue:j0,useDeferredValue:function(t,a){var i=Bn();return D0(i,t,a)},useTransition:function(){var t=k0(!1);return t=Um.bind(null,Xe,t.queue,!0,!1),Bn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,i){var o=Xe,f=Bn();if(dt){if(i===void 0)throw Error(s(407));i=i()}else{if(i=a(),Vt===null)throw Error(s(349));(ct&127)!==0||gm(o,a,i)}f.memoizedState=i;var p={value:i,getSnapshot:a};return f.queue=p,jm(bm.bind(null,o,p,t),[t]),o.flags|=2048,cs(9,{destroy:void 0},ym.bind(null,o,p,i,a),null),i},useId:function(){var t=Bn(),a=Vt.identifierPrefix;if(dt){var i=Fa,o=$a;i=(o&~(1<<32-sn(o)-1)).toString(32)+i,a="_"+a+"R_"+i,i=Yo++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=Lx++,a="_"+a+"r_"+i.toString(32)+"_";return t.memoizedState=a},useHostTransitionStatus:O0,useFormState:Rm,useActionState:Rm,useOptimistic:function(t){var a=Bn();a.memoizedState=a.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=H0.bind(null,Xe,!0,i),i.dispatch=a,[t,a]},useMemoCache:M0,useCacheRefresh:function(){return Bn().memoizedState=Zx.bind(null,Xe)},useEffectEvent:function(t){var a=Bn(),i={impl:t};return a.memoizedState=i,function(){if((wt&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},V0={readContext:Tn,use:Qo,useCallback:zm,useContext:Tn,useEffect:_0,useImperativeHandle:Vm,useInsertionEffect:Lm,useLayoutEffect:Om,useMemo:Bm,useReducer:Jo,useRef:_m,useState:function(){return Jo(hr)},useDebugValue:j0,useDeferredValue:function(t,a){var i=rn();return Zm(i,_t.memoizedState,t,a)},useTransition:function(){var t=Jo(hr)[0],a=rn().memoizedState;return[typeof t=="boolean"?t:dl(t),a]},useSyncExternalStore:pm,useId:$m,useHostTransitionStatus:O0,useFormState:Cm,useActionState:Cm,useOptimistic:function(t,a){var i=rn();return Em(i,_t,t,a)},useMemoCache:M0,useCacheRefresh:Fm};V0.useEffectEvent=Dm;var Xm={readContext:Tn,use:Qo,useCallback:zm,useContext:Tn,useEffect:_0,useImperativeHandle:Vm,useInsertionEffect:Lm,useLayoutEffect:Om,useMemo:Bm,useReducer:C0,useRef:_m,useState:function(){return C0(hr)},useDebugValue:j0,useDeferredValue:function(t,a){var i=rn();return _t===null?D0(i,t,a):Zm(i,_t.memoizedState,t,a)},useTransition:function(){var t=C0(hr)[0],a=rn().memoizedState;return[typeof t=="boolean"?t:dl(t),a]},useSyncExternalStore:pm,useId:$m,useHostTransitionStatus:O0,useFormState:Nm,useActionState:Nm,useOptimistic:function(t,a){var i=rn();return _t!==null?Em(i,_t,t,a):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:M0,useCacheRefresh:Fm};Xm.useEffectEvent=Dm;function z0(t,a,i,o){a=t.memoizedState,i=i(o,a),i=i==null?a:b({},a,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var B0={enqueueSetState:function(t,a,i){t=t._reactInternals;var o=ra(),f=Vr(o);f.payload=a,i!=null&&(f.callback=i),a=zr(t,f,o),a!==null&&(Yn(a,t,o),ll(a,t,o))},enqueueReplaceState:function(t,a,i){t=t._reactInternals;var o=ra(),f=Vr(o);f.tag=1,f.payload=a,i!=null&&(f.callback=i),a=zr(t,f,o),a!==null&&(Yn(a,t,o),ll(a,t,o))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var i=ra(),o=Vr(i);o.tag=2,a!=null&&(o.callback=a),a=zr(t,o,i),a!==null&&(Yn(a,t,i),ll(a,t,i))}};function Qm(t,a,i,o,f,p,E){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,p,E):a.prototype&&a.prototype.isPureReactComponent?!Ws(i,o)||!Ws(f,p):!0}function Jm(t,a,i,o){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,o),a.state!==t&&B0.enqueueReplaceState(a,a.state,null)}function Ci(t,a){var i=a;if("ref"in a){i={};for(var o in a)o!=="ref"&&(i[o]=a[o])}if(t=t.defaultProps){i===a&&(i=b({},i));for(var f in t)i[f]===void 0&&(i[f]=t[f])}return i}function Wm(t){Do(t)}function ep(t){console.error(t)}function tp(t){Do(t)}function nc(t,a){try{var i=t.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function np(t,a,i){try{var o=t.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Z0(t,a,i){return i=Vr(i),i.tag=3,i.payload={element:null},i.callback=function(){nc(t,a)},i}function ap(t){return t=Vr(t),t.tag=3,t}function rp(t,a,i,o){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var p=o.value;t.payload=function(){return f(p)},t.callback=function(){np(a,i,o)}}var E=i.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(t.callback=function(){np(a,i,o),typeof f!="function"&&($r===null?$r=new Set([this]):$r.add(this));var T=o.stack;this.componentDidCatch(o.value,{componentStack:T!==null?T:""})})}function Px(t,a,i,o,f){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=i.alternate,a!==null&&ts(a,i,f,!0),i=ea.current,i!==null){switch(i.tag){case 31:case 13:return ya===null?mc():i.alternate===null&&Jt===0&&(Jt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,o===Io?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([o]):a.add(o),dd(t,o,f)),!1;case 22:return i.flags|=65536,o===Io?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([o]):i.add(o)),dd(t,o,f)),!1}throw Error(s(435,i.tag))}return dd(t,o,f),mc(),!1}if(dt)return a=ea.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,o!==i0&&(t=Error(s(422),{cause:o}),nl(ha(t,i)))):(o!==i0&&(a=Error(s(423),{cause:o}),nl(ha(a,i))),t=t.current.alternate,t.flags|=65536,f&=-f,t.lanes|=f,o=ha(o,i),f=Z0(t.stateNode,o,f),g0(t,f),Jt!==4&&(Jt=2)),!1;var p=Error(s(520),{cause:o});if(p=ha(p,i),El===null?El=[p]:El.push(p),Jt!==4&&(Jt=2),a===null)return!0;o=ha(o,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,t=f&-f,i.lanes|=t,t=Z0(i.stateNode,o,t),g0(i,t),!1;case 1:if(a=i.type,p=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&($r===null||!$r.has(p))))return i.flags|=65536,f&=-f,i.lanes|=f,f=ap(f),rp(f,t,i,o),g0(i,f),!1}i=i.return}while(i!==null);return!1}var U0=Error(s(461)),un=!1;function Mn(t,a,i,o){a.child=t===null?om(a,null,i,o):Mi(a,t.child,i,o)}function ip(t,a,i,o,f){i=i.render;var p=a.ref;if("ref"in o){var E={};for(var T in o)T!=="ref"&&(E[T]=o[T])}else E=o;return Si(a),o=S0(t,a,i,E,p,f),T=w0(),t!==null&&!un?(A0(t,a,f),mr(t,a,f)):(dt&&T&&a0(a),a.flags|=1,Mn(t,a,o,f),a.child)}function sp(t,a,i,o,f){if(t===null){var p=i.type;return typeof p=="function"&&!e0(p)&&p.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=p,lp(t,a,p,o,f)):(t=Vo(i.type,null,o,a,a.mode,f),t.ref=a.ref,t.return=a,a.child=t)}if(p=t.child,!Y0(t,f)){var E=p.memoizedProps;if(i=i.compare,i=i!==null?i:Ws,i(E,o)&&t.ref===a.ref)return mr(t,a,f)}return a.flags|=1,t=or(p,o),t.ref=a.ref,t.return=a,a.child=t}function lp(t,a,i,o,f){if(t!==null){var p=t.memoizedProps;if(Ws(p,o)&&t.ref===a.ref)if(un=!1,a.pendingProps=o=p,Y0(t,f))(t.flags&131072)!==0&&(un=!0);else return a.lanes=t.lanes,mr(t,a,f)}return P0(t,a,i,o,f)}function op(t,a,i,o){var f=o.children,p=t!==null?t.memoizedState:null;if(t===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((a.flags&128)!==0){if(p=p!==null?p.baseLanes|i:i,t!==null){for(o=a.child=t.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;o=f&~p}else o=0,a.child=null;return cp(t,a,p,i,o)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&Uo(a,p!==null?p.cachePool:null),p!==null?dm(a,p):b0(),fm(a);else return o=a.lanes=536870912,cp(t,a,p!==null?p.baseLanes|i:i,i,o)}else p!==null?(Uo(a,p.cachePool),dm(a,p),Zr(),a.memoizedState=null):(t!==null&&Uo(a,null),b0(),Zr());return Mn(t,a,f,i),a.child}function ml(t,a){return t!==null&&t.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function cp(t,a,i,o,f){var p=f0();return p=p===null?null:{parent:on._currentValue,pool:p},a.memoizedState={baseLanes:i,cachePool:p},t!==null&&Uo(a,null),b0(),fm(a),t!==null&&ts(t,a,o,!0),a.childLanes=f,null}function ac(t,a){return a=ic({mode:a.mode,children:a.children},t.mode),a.ref=t.ref,t.child=a,a.return=t,a}function up(t,a,i){return Mi(a,t.child,null,i),t=ac(a,a.pendingProps),t.flags|=2,ta(a),a.memoizedState=null,t}function Ix(t,a,i){var o=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,t===null){if(dt){if(o.mode==="hidden")return t=ac(a,o),a.lanes=536870912,ml(null,t);if(x0(a),(t=It)?(t=S2(t,ga),t=t!==null&&t.data==="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:jr!==null?{id:$a,overflow:Fa}:null,retryLane:536870912,hydrationErrors:null},i=qh(t),i.return=a,a.child=i,An=a,It=null)):t=null,t===null)throw Lr(a);return a.lanes=536870912,null}return ac(a,o)}var p=t.memoizedState;if(p!==null){var E=p.dehydrated;if(x0(a),f)if(a.flags&256)a.flags&=-257,a=up(t,a,i);else if(a.memoizedState!==null)a.child=t.child,a.flags|=128,a=null;else throw Error(s(558));else if(un||ts(t,a,i,!1),f=(i&t.childLanes)!==0,un||f){if(o=Vt,o!==null&&(E=R(o,i),E!==0&&E!==p.retryLane))throw p.retryLane=E,bi(t,E),Yn(o,t,E),U0;mc(),a=up(t,a,i)}else t=p.treeContext,It=ba(E.nextSibling),An=a,dt=!0,Dr=null,ga=!1,t!==null&&Xh(a,t),a=ac(a,o),a.flags|=4096;return a}return t=or(t.child,{mode:o.mode,children:o.children}),t.ref=a.ref,a.child=t,t.return=a,t}function rc(t,a){var i=a.ref;if(i===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(t===null||t.ref!==i)&&(a.flags|=4194816)}}function P0(t,a,i,o,f){return Si(a),i=S0(t,a,i,o,void 0,f),o=w0(),t!==null&&!un?(A0(t,a,f),mr(t,a,f)):(dt&&o&&a0(a),a.flags|=1,Mn(t,a,i,f),a.child)}function dp(t,a,i,o,f,p){return Si(a),a.updateQueue=null,i=mm(a,o,i,f),hm(t),o=w0(),t!==null&&!un?(A0(t,a,p),mr(t,a,p)):(dt&&o&&a0(a),a.flags|=1,Mn(t,a,i,p),a.child)}function fp(t,a,i,o,f){if(Si(a),a.stateNode===null){var p=Qi,E=i.contextType;typeof E=="object"&&E!==null&&(p=Tn(E)),p=new i(o,p),a.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=B0,a.stateNode=p,p._reactInternals=a,p=a.stateNode,p.props=o,p.state=a.memoizedState,p.refs={},m0(a),E=i.contextType,p.context=typeof E=="object"&&E!==null?Tn(E):Qi,p.state=a.memoizedState,E=i.getDerivedStateFromProps,typeof E=="function"&&(z0(a,i,E,o),p.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(E=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),E!==p.state&&B0.enqueueReplaceState(p,p.state,null),cl(a,o,p,f),ol(),p.state=a.memoizedState),typeof p.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(t===null){p=a.stateNode;var T=a.memoizedProps,L=Ci(i,T);p.props=L;var $=p.context,ne=i.contextType;E=Qi,typeof ne=="object"&&ne!==null&&(E=Tn(ne));var oe=i.getDerivedStateFromProps;ne=typeof oe=="function"||typeof p.getSnapshotBeforeUpdate=="function",T=a.pendingProps!==T,ne||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(T||$!==E)&&Jm(a,p,o,E),Hr=!1;var q=a.memoizedState;p.state=q,cl(a,o,p,f),ol(),$=a.memoizedState,T||q!==$||Hr?(typeof oe=="function"&&(z0(a,i,oe,o),$=a.memoizedState),(L=Hr||Qm(a,i,L,o,q,$,E))?(ne||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(a.flags|=4194308)):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=$),p.props=o,p.state=$,p.context=E,o=L):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{p=a.stateNode,p0(t,a),E=a.memoizedProps,ne=Ci(i,E),p.props=ne,oe=a.pendingProps,q=p.context,$=i.contextType,L=Qi,typeof $=="object"&&$!==null&&(L=Tn($)),T=i.getDerivedStateFromProps,($=typeof T=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(E!==oe||q!==L)&&Jm(a,p,o,L),Hr=!1,q=a.memoizedState,p.state=q,cl(a,o,p,f),ol();var Y=a.memoizedState;E!==oe||q!==Y||Hr||t!==null&&t.dependencies!==null&&Bo(t.dependencies)?(typeof T=="function"&&(z0(a,i,T,o),Y=a.memoizedState),(ne=Hr||Qm(a,i,ne,o,q,Y,L)||t!==null&&t.dependencies!==null&&Bo(t.dependencies))?($||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,Y,L),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,Y,L)),typeof p.componentDidUpdate=="function"&&(a.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof p.componentDidUpdate!="function"||E===t.memoizedProps&&q===t.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&q===t.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=Y),p.props=o,p.state=Y,p.context=L,o=ne):(typeof p.componentDidUpdate!="function"||E===t.memoizedProps&&q===t.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||E===t.memoizedProps&&q===t.memoizedState||(a.flags|=1024),o=!1)}return p=o,rc(t,a),o=(a.flags&128)!==0,p||o?(p=a.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:p.render(),a.flags|=1,t!==null&&o?(a.child=Mi(a,t.child,null,f),a.child=Mi(a,null,i,f)):Mn(t,a,i,f),a.memoizedState=p.state,t=a.child):t=mr(t,a,f),t}function hp(t,a,i,o){return xi(),a.flags|=256,Mn(t,a,i,o),a.child}var I0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $0(t){return{baseLanes:t,cachePool:nm()}}function F0(t,a,i){return t=t!==null?t.childLanes&~i:0,a&&(t|=aa),t}function mp(t,a,i){var o=a.pendingProps,f=!1,p=(a.flags&128)!==0,E;if((E=p)||(E=t!==null&&t.memoizedState===null?!1:(an.current&2)!==0),E&&(f=!0,a.flags&=-129),E=(a.flags&32)!==0,a.flags&=-33,t===null){if(dt){if(f?Br(a):Zr(),(t=It)?(t=S2(t,ga),t=t!==null&&t.data!=="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:jr!==null?{id:$a,overflow:Fa}:null,retryLane:536870912,hydrationErrors:null},i=qh(t),i.return=a,a.child=i,An=a,It=null)):t=null,t===null)throw Lr(a);return Rd(t)?a.lanes=32:a.lanes=536870912,null}var T=o.children;return o=o.fallback,f?(Zr(),f=a.mode,T=ic({mode:"hidden",children:T},f),o=vi(o,f,i,null),T.return=a,o.return=a,T.sibling=o,a.child=T,o=a.child,o.memoizedState=$0(i),o.childLanes=F0(t,E,i),a.memoizedState=I0,ml(null,o)):(Br(a),G0(a,T))}var L=t.memoizedState;if(L!==null&&(T=L.dehydrated,T!==null)){if(p)a.flags&256?(Br(a),a.flags&=-257,a=q0(t,a,i)):a.memoizedState!==null?(Zr(),a.child=t.child,a.flags|=128,a=null):(Zr(),T=o.fallback,f=a.mode,o=ic({mode:"visible",children:o.children},f),T=vi(T,f,i,null),T.flags|=2,o.return=a,T.return=a,o.sibling=T,a.child=o,Mi(a,t.child,null,i),o=a.child,o.memoizedState=$0(i),o.childLanes=F0(t,E,i),a.memoizedState=I0,a=ml(null,o));else if(Br(a),Rd(T)){if(E=T.nextSibling&&T.nextSibling.dataset,E)var $=E.dgst;E=$,o=Error(s(419)),o.stack="",o.digest=E,nl({value:o,source:null,stack:null}),a=q0(t,a,i)}else if(un||ts(t,a,i,!1),E=(i&t.childLanes)!==0,un||E){if(E=Vt,E!==null&&(o=R(E,i),o!==0&&o!==L.retryLane))throw L.retryLane=o,bi(t,o),Yn(E,t,o),U0;Md(T)||mc(),a=q0(t,a,i)}else Md(T)?(a.flags|=192,a.child=t.child,a=null):(t=L.treeContext,It=ba(T.nextSibling),An=a,dt=!0,Dr=null,ga=!1,t!==null&&Xh(a,t),a=G0(a,o.children),a.flags|=4096);return a}return f?(Zr(),T=o.fallback,f=a.mode,L=t.child,$=L.sibling,o=or(L,{mode:"hidden",children:o.children}),o.subtreeFlags=L.subtreeFlags&65011712,$!==null?T=or($,T):(T=vi(T,f,i,null),T.flags|=2),T.return=a,o.return=a,o.sibling=T,a.child=o,ml(null,o),o=a.child,T=t.child.memoizedState,T===null?T=$0(i):(f=T.cachePool,f!==null?(L=on._currentValue,f=f.parent!==L?{parent:L,pool:L}:f):f=nm(),T={baseLanes:T.baseLanes|i,cachePool:f}),o.memoizedState=T,o.childLanes=F0(t,E,i),a.memoizedState=I0,ml(t.child,o)):(Br(a),i=t.child,t=i.sibling,i=or(i,{mode:"visible",children:o.children}),i.return=a,i.sibling=null,t!==null&&(E=a.deletions,E===null?(a.deletions=[t],a.flags|=16):E.push(t)),a.child=i,a.memoizedState=null,i)}function G0(t,a){return a=ic({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function ic(t,a){return t=Wn(22,t,null,a),t.lanes=0,t}function q0(t,a,i){return Mi(a,t.child,null,i),t=G0(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function pp(t,a,i){t.lanes|=a;var o=t.alternate;o!==null&&(o.lanes|=a),o0(t.return,a,i)}function K0(t,a,i,o,f,p){var E=t.memoizedState;E===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:f,treeForkCount:p}:(E.isBackwards=a,E.rendering=null,E.renderingStartTime=0,E.last=o,E.tail=i,E.tailMode=f,E.treeForkCount=p)}function gp(t,a,i){var o=a.pendingProps,f=o.revealOrder,p=o.tail;o=o.children;var E=an.current,T=(E&2)!==0;if(T?(E=E&1|2,a.flags|=128):E&=1,ie(an,E),Mn(t,a,o,i),o=dt?tl:0,!T&&t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&pp(t,i,a);else if(t.tag===19)pp(t,i,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(f){case"forwards":for(i=a.child,f=null;i!==null;)t=i.alternate,t!==null&&qo(t)===null&&(f=i),i=i.sibling;i=f,i===null?(f=a.child,a.child=null):(f=i.sibling,i.sibling=null),K0(a,!1,f,i,p,o);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=a.child,a.child=null;f!==null;){if(t=f.alternate,t!==null&&qo(t)===null){a.child=f;break}t=f.sibling,f.sibling=i,i=f,f=t}K0(a,!0,i,null,p,o);break;case"together":K0(a,!1,null,null,void 0,o);break;default:a.memoizedState=null}return a.child}function mr(t,a,i){if(t!==null&&(a.dependencies=t.dependencies),Ir|=a.lanes,(i&a.childLanes)===0)if(t!==null){if(ts(t,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(s(153));if(a.child!==null){for(t=a.child,i=or(t,t.pendingProps),a.child=i,i.return=a;t.sibling!==null;)t=t.sibling,i=i.sibling=or(t,t.pendingProps),i.return=a;i.sibling=null}return a.child}function Y0(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&Bo(t)))}function $x(t,a,i){switch(a.tag){case 3:ze(a,a.stateNode.containerInfo),Or(a,on,t.memoizedState.cache),xi();break;case 27:case 5:xt(a);break;case 4:ze(a,a.stateNode.containerInfo);break;case 10:Or(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,x0(a),null;break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Br(a),a.flags|=128,null):(i&a.child.childLanes)!==0?mp(t,a,i):(Br(a),t=mr(t,a,i),t!==null?t.sibling:null);Br(a);break;case 19:var f=(t.flags&128)!==0;if(o=(i&a.childLanes)!==0,o||(ts(t,a,i,!1),o=(i&a.childLanes)!==0),f){if(o)return gp(t,a,i);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ie(an,an.current),o)break;return null;case 22:return a.lanes=0,op(t,a,i,a.pendingProps);case 24:Or(a,on,t.memoizedState.cache)}return mr(t,a,i)}function yp(t,a,i){if(t!==null)if(t.memoizedProps!==a.pendingProps)un=!0;else{if(!Y0(t,i)&&(a.flags&128)===0)return un=!1,$x(t,a,i);un=(t.flags&131072)!==0}else un=!1,dt&&(a.flags&1048576)!==0&&Yh(a,tl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var o=a.pendingProps;if(t=Ai(a.elementType),a.type=t,typeof t=="function")e0(t)?(o=Ci(t,o),a.tag=1,a=fp(null,a,t,o,i)):(a.tag=0,a=P0(null,a,t,o,i));else{if(t!=null){var f=t.$$typeof;if(f===B){a.tag=11,a=ip(null,a,t,o,i);break e}else if(f===re){a.tag=14,a=sp(null,a,t,o,i);break e}}throw a=me(t)||t,Error(s(306,a,""))}}return a;case 0:return P0(t,a,a.type,a.pendingProps,i);case 1:return o=a.type,f=Ci(o,a.pendingProps),fp(t,a,o,f,i);case 3:e:{if(ze(a,a.stateNode.containerInfo),t===null)throw Error(s(387));o=a.pendingProps;var p=a.memoizedState;f=p.element,p0(t,a),cl(a,o,null,i);var E=a.memoizedState;if(o=E.cache,Or(a,on,o),o!==p.cache&&c0(a,[on],i,!0),ol(),o=E.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:E.cache},a.updateQueue.baseState=p,a.memoizedState=p,a.flags&256){a=hp(t,a,o,i);break e}else if(o!==f){f=ha(Error(s(424)),a),nl(f),a=hp(t,a,o,i);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(It=ba(t.firstChild),An=a,dt=!0,Dr=null,ga=!0,i=om(a,null,o,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(xi(),o===f){a=mr(t,a,i);break e}Mn(t,a,o,i)}a=a.child}return a;case 26:return rc(t,a),t===null?(i=C2(a.type,null,a.pendingProps,null))?a.memoizedState=i:dt||(i=a.type,t=a.pendingProps,o=Ec(ke.current).createElement(i),o[pe]=a,o[Ce]=t,Rn(o,i,t),St(o),a.stateNode=o):a.memoizedState=C2(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return xt(a),t===null&&dt&&(o=a.stateNode=T2(a.type,a.pendingProps,ke.current),An=a,ga=!0,f=It,Kr(a.type)?(Cd=f,It=ba(o.firstChild)):It=f),Mn(t,a,a.pendingProps.children,i),rc(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&dt&&((f=o=It)&&(o=x3(o,a.type,a.pendingProps,ga),o!==null?(a.stateNode=o,An=a,It=ba(o.firstChild),ga=!1,f=!0):f=!1),f||Lr(a)),xt(a),f=a.type,p=a.pendingProps,E=t!==null?t.memoizedProps:null,o=p.children,wd(f,p)?o=null:E!==null&&wd(f,E)&&(a.flags|=32),a.memoizedState!==null&&(f=S0(t,a,Ox,null,null,i),kl._currentValue=f),rc(t,a),Mn(t,a,o,i),a.child;case 6:return t===null&&dt&&((t=i=It)&&(i=E3(i,a.pendingProps,ga),i!==null?(a.stateNode=i,An=a,It=null,t=!0):t=!1),t||Lr(a)),null;case 13:return mp(t,a,i);case 4:return ze(a,a.stateNode.containerInfo),o=a.pendingProps,t===null?a.child=Mi(a,null,o,i):Mn(t,a,o,i),a.child;case 11:return ip(t,a,a.type,a.pendingProps,i);case 7:return Mn(t,a,a.pendingProps,i),a.child;case 8:return Mn(t,a,a.pendingProps.children,i),a.child;case 12:return Mn(t,a,a.pendingProps.children,i),a.child;case 10:return o=a.pendingProps,Or(a,a.type,o.value),Mn(t,a,o.children,i),a.child;case 9:return f=a.type._context,o=a.pendingProps.children,Si(a),f=Tn(f),o=o(f),a.flags|=1,Mn(t,a,o,i),a.child;case 14:return sp(t,a,a.type,a.pendingProps,i);case 15:return lp(t,a,a.type,a.pendingProps,i);case 19:return gp(t,a,i);case 31:return Ix(t,a,i);case 22:return op(t,a,i,a.pendingProps);case 24:return Si(a),o=Tn(on),t===null?(f=f0(),f===null&&(f=Vt,p=u0(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=i),f=p),a.memoizedState={parent:o,cache:f},m0(a),Or(a,on,f)):((t.lanes&i)!==0&&(p0(t,a),cl(a,null,null,i),ol()),f=t.memoizedState,p=a.memoizedState,f.parent!==o?(f={parent:o,cache:o},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),Or(a,on,o)):(o=p.cache,Or(a,on,o),o!==f.cache&&c0(a,[on],i,!0))),Mn(t,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function pr(t){t.flags|=4}function X0(t,a,i,o,f){if((a=(t.mode&32)!==0)&&(a=!1),a){if(t.flags|=16777216,(f&335544128)===f)if(t.stateNode.complete)t.flags|=8192;else if($p())t.flags|=8192;else throw Ti=Io,h0}else t.flags&=-16777217}function bp(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!D2(a))if($p())t.flags|=8192;else throw Ti=Io,h0}function sc(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?Ze():536870912,t.lanes|=a,hs|=a)}function pl(t,a){if(!dt)switch(t.tailMode){case"hidden":a=t.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function $t(t){var a=t.alternate!==null&&t.alternate.child===t.child,i=0,o=0;if(a)for(var f=t.child;f!==null;)i|=f.lanes|f.childLanes,o|=f.subtreeFlags&65011712,o|=f.flags&65011712,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)i|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=o,t.childLanes=i,a}function Fx(t,a,i){var o=a.pendingProps;switch(r0(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(a),null;case 1:return $t(a),null;case 3:return i=a.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),dr(on),je(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(es(a)?pr(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,s0())),$t(a),null;case 26:var f=a.type,p=a.memoizedState;return t===null?(pr(a),p!==null?($t(a),bp(a,p)):($t(a),X0(a,f,null,o,i))):p?p!==t.memoizedState?(pr(a),$t(a),bp(a,p)):($t(a),a.flags&=-16777217):(t=t.memoizedProps,t!==o&&pr(a),$t(a),X0(a,f,t,o,i)),null;case 27:if(Et(a),i=ke.current,f=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==o&&pr(a);else{if(!o){if(a.stateNode===null)throw Error(s(166));return $t(a),null}t=be.current,es(a)?Qh(a):(t=T2(f,o,i),a.stateNode=t,pr(a))}return $t(a),null;case 5:if(Et(a),f=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==o&&pr(a);else{if(!o){if(a.stateNode===null)throw Error(s(166));return $t(a),null}if(p=be.current,es(a))Qh(a);else{var E=Ec(ke.current);switch(p){case 1:p=E.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=E.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=E.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=E.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=E.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof o.is=="string"?E.createElement("select",{is:o.is}):E.createElement("select"),o.multiple?p.multiple=!0:o.size&&(p.size=o.size);break;default:p=typeof o.is=="string"?E.createElement(f,{is:o.is}):E.createElement(f)}}p[pe]=a,p[Ce]=o;e:for(E=a.child;E!==null;){if(E.tag===5||E.tag===6)p.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===a)break e;for(;E.sibling===null;){if(E.return===null||E.return===a)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}a.stateNode=p;e:switch(Rn(p,f,o),f){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&pr(a)}}return $t(a),X0(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,i),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==o&&pr(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(s(166));if(t=ke.current,es(a)){if(t=a.stateNode,i=a.memoizedProps,o=null,f=An,f!==null)switch(f.tag){case 27:case 5:o=f.memoizedProps}t[pe]=a,t=!!(t.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||m2(t.nodeValue,i)),t||Lr(a,!0)}else t=Ec(t).createTextNode(o),t[pe]=a,a.stateNode=t}return $t(a),null;case 31:if(i=a.memoizedState,t===null||t.memoizedState!==null){if(o=es(a),i!==null){if(t===null){if(!o)throw Error(s(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[pe]=a}else xi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;$t(a),t=!1}else i=s0(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return a.flags&256?(ta(a),a):(ta(a),null);if((a.flags&128)!==0)throw Error(s(558))}return $t(a),null;case 13:if(o=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(f=es(a),o!==null&&o.dehydrated!==null){if(t===null){if(!f)throw Error(s(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(s(317));f[pe]=a}else xi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;$t(a),f=!1}else f=s0(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(ta(a),a):(ta(a),null)}return ta(a),(a.flags&128)!==0?(a.lanes=i,a):(i=o!==null,t=t!==null&&t.memoizedState!==null,i&&(o=a.child,f=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(f=o.alternate.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==f&&(o.flags|=2048)),i!==t&&i&&(a.child.flags|=8192),sc(a,a.updateQueue),$t(a),null);case 4:return je(),t===null&&bd(a.stateNode.containerInfo),$t(a),null;case 10:return dr(a.type),$t(a),null;case 19:if(F(an),o=a.memoizedState,o===null)return $t(a),null;if(f=(a.flags&128)!==0,p=o.rendering,p===null)if(f)pl(o,!1);else{if(Jt!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(p=qo(t),p!==null){for(a.flags|=128,pl(o,!1),t=p.updateQueue,a.updateQueue=t,sc(a,t),a.subtreeFlags=0,t=i,i=a.child;i!==null;)Gh(i,t),i=i.sibling;return ie(an,an.current&1|2),dt&&cr(a,o.treeForkCount),a.child}t=t.sibling}o.tail!==null&&Ot()>dc&&(a.flags|=128,f=!0,pl(o,!1),a.lanes=4194304)}else{if(!f)if(t=qo(p),t!==null){if(a.flags|=128,f=!0,t=t.updateQueue,a.updateQueue=t,sc(a,t),pl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!dt)return $t(a),null}else 2*Ot()-o.renderingStartTime>dc&&i!==536870912&&(a.flags|=128,f=!0,pl(o,!1),a.lanes=4194304);o.isBackwards?(p.sibling=a.child,a.child=p):(t=o.last,t!==null?t.sibling=p:a.child=p,o.last=p)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ot(),t.sibling=null,i=an.current,ie(an,f?i&1|2:i&1),dt&&cr(a,o.treeForkCount),t):($t(a),null);case 22:case 23:return ta(a),v0(),o=a.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(i&536870912)!==0&&(a.flags&128)===0&&($t(a),a.subtreeFlags&6&&(a.flags|=8192)):$t(a),i=a.updateQueue,i!==null&&sc(a,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048),t!==null&&F(wi),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),dr(on),$t(a),null;case 25:return null;case 30:return null}throw Error(s(156,a.tag))}function Gx(t,a){switch(r0(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return dr(on),je(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Et(a),null;case 31:if(a.memoizedState!==null){if(ta(a),a.alternate===null)throw Error(s(340));xi()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(ta(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(s(340));xi()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return F(an),null;case 4:return je(),null;case 10:return dr(a.type),null;case 22:case 23:return ta(a),v0(),t!==null&&F(wi),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return dr(on),null;case 25:return null;default:return null}}function vp(t,a){switch(r0(a),a.tag){case 3:dr(on),je();break;case 26:case 27:case 5:Et(a);break;case 4:je();break;case 31:a.memoizedState!==null&&ta(a);break;case 13:ta(a);break;case 19:F(an);break;case 10:dr(a.type);break;case 22:case 23:ta(a),v0(),t!==null&&F(wi);break;case 24:dr(on)}}function gl(t,a){try{var i=a.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var f=o.next;i=f;do{if((i.tag&t)===t){o=void 0;var p=i.create,E=i.inst;o=p(),E.destroy=o}i=i.next}while(i!==f)}}catch(T){Ct(a,a.return,T)}}function Ur(t,a,i){try{var o=a.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var p=f.next;o=p;do{if((o.tag&t)===t){var E=o.inst,T=E.destroy;if(T!==void 0){E.destroy=void 0,f=a;var L=i,$=T;try{$()}catch(ne){Ct(f,L,ne)}}}o=o.next}while(o!==p)}}catch(ne){Ct(a,a.return,ne)}}function xp(t){var a=t.updateQueue;if(a!==null){var i=t.stateNode;try{um(a,i)}catch(o){Ct(t,t.return,o)}}}function Ep(t,a,i){i.props=Ci(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(o){Ct(t,a,o)}}function yl(t,a){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof i=="function"?t.refCleanup=i(o):i.current=o}}catch(f){Ct(t,a,f)}}function Ga(t,a){var i=t.ref,o=t.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(f){Ct(t,a,f)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){Ct(t,a,f)}else i.current=null}function Sp(t){var a=t.type,i=t.memoizedProps,o=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(f){Ct(t,t.return,f)}}function Q0(t,a,i){try{var o=t.stateNode;m3(o,t.type,i,a),o[Ce]=a}catch(f){Ct(t,t.return,f)}}function wp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Kr(t.type)||t.tag===4}function J0(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||wp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Kr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function W0(t,a,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(t),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=Ae));else if(o!==4&&(o===27&&Kr(t.type)&&(i=t.stateNode,a=null),t=t.child,t!==null))for(W0(t,a,i),t=t.sibling;t!==null;)W0(t,a,i),t=t.sibling}function lc(t,a,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,a?i.insertBefore(t,a):i.appendChild(t);else if(o!==4&&(o===27&&Kr(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(lc(t,a,i),t=t.sibling;t!==null;)lc(t,a,i),t=t.sibling}function Ap(t){var a=t.stateNode,i=t.memoizedProps;try{for(var o=t.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);Rn(a,o,i),a[pe]=t,a[Ce]=i}catch(p){Ct(t,t.return,p)}}var gr=!1,dn=!1,ed=!1,Tp=typeof WeakSet=="function"?WeakSet:Set,vn=null;function qx(t,a){if(t=t.containerInfo,Ed=Cc,t=Vh(t),qu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var f=o.anchorOffset,p=o.focusNode;o=o.focusOffset;try{i.nodeType,p.nodeType}catch{i=null;break e}var E=0,T=-1,L=-1,$=0,ne=0,oe=t,q=null;t:for(;;){for(var Y;oe!==i||f!==0&&oe.nodeType!==3||(T=E+f),oe!==p||o!==0&&oe.nodeType!==3||(L=E+o),oe.nodeType===3&&(E+=oe.nodeValue.length),(Y=oe.firstChild)!==null;)q=oe,oe=Y;for(;;){if(oe===t)break t;if(q===i&&++$===f&&(T=E),q===p&&++ne===o&&(L=E),(Y=oe.nextSibling)!==null)break;oe=q,q=oe.parentNode}oe=Y}i=T===-1||L===-1?null:{start:T,end:L}}else i=null}i=i||{start:0,end:0}}else i=null;for(Sd={focusedElem:t,selectionRange:i},Cc=!1,vn=a;vn!==null;)if(a=vn,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,vn=t;else for(;vn!==null;){switch(a=vn,p=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)f=t[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&p!==null){t=void 0,i=a,f=p.memoizedProps,p=p.memoizedState,o=i.stateNode;try{var De=Ci(i.type,f);t=o.getSnapshotBeforeUpdate(De,p),o.__reactInternalSnapshotBeforeUpdate=t}catch(Fe){Ct(i,i.return,Fe)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,i=t.nodeType,i===9)Td(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Td(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=a.sibling,t!==null){t.return=a.return,vn=t;break}vn=a.return}}function Mp(t,a,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:br(t,i),o&4&&gl(5,i);break;case 1:if(br(t,i),o&4)if(t=i.stateNode,a===null)try{t.componentDidMount()}catch(E){Ct(i,i.return,E)}else{var f=Ci(i.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(f,a,t.__reactInternalSnapshotBeforeUpdate)}catch(E){Ct(i,i.return,E)}}o&64&&xp(i),o&512&&yl(i,i.return);break;case 3:if(br(t,i),o&64&&(t=i.updateQueue,t!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{um(t,a)}catch(E){Ct(i,i.return,E)}}break;case 27:a===null&&o&4&&Ap(i);case 26:case 5:br(t,i),a===null&&o&4&&Sp(i),o&512&&yl(i,i.return);break;case 12:br(t,i);break;case 31:br(t,i),o&4&&kp(t,i);break;case 13:br(t,i),o&4&&Np(t,i),o&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=n3.bind(null,i),S3(t,i))));break;case 22:if(o=i.memoizedState!==null||gr,!o){a=a!==null&&a.memoizedState!==null||dn,f=gr;var p=dn;gr=o,(dn=a)&&!p?vr(t,i,(i.subtreeFlags&8772)!==0):br(t,i),gr=f,dn=p}break;case 30:break;default:br(t,i)}}function Rp(t){var a=t.alternate;a!==null&&(t.alternate=null,Rp(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&yt(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var qt=null,Fn=!1;function yr(t,a,i){for(i=i.child;i!==null;)Cp(t,a,i),i=i.sibling}function Cp(t,a,i){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Vn,i)}catch{}switch(i.tag){case 26:dn||Ga(i,a),yr(t,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:dn||Ga(i,a);var o=qt,f=Fn;Kr(i.type)&&(qt=i.stateNode,Fn=!1),yr(t,a,i),Ml(i.stateNode),qt=o,Fn=f;break;case 5:dn||Ga(i,a);case 6:if(o=qt,f=Fn,qt=null,yr(t,a,i),qt=o,Fn=f,qt!==null)if(Fn)try{(qt.nodeType===9?qt.body:qt.nodeName==="HTML"?qt.ownerDocument.body:qt).removeChild(i.stateNode)}catch(p){Ct(i,a,p)}else try{qt.removeChild(i.stateNode)}catch(p){Ct(i,a,p)}break;case 18:qt!==null&&(Fn?(t=qt,x2(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Es(t)):x2(qt,i.stateNode));break;case 4:o=qt,f=Fn,qt=i.stateNode.containerInfo,Fn=!0,yr(t,a,i),qt=o,Fn=f;break;case 0:case 11:case 14:case 15:Ur(2,i,a),dn||Ur(4,i,a),yr(t,a,i);break;case 1:dn||(Ga(i,a),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Ep(i,a,o)),yr(t,a,i);break;case 21:yr(t,a,i);break;case 22:dn=(o=dn)||i.memoizedState!==null,yr(t,a,i),dn=o;break;default:yr(t,a,i)}}function kp(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Es(t)}catch(i){Ct(a,a.return,i)}}}function Np(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Es(t)}catch(i){Ct(a,a.return,i)}}function Kx(t){switch(t.tag){case 31:case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new Tp),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new Tp),a;default:throw Error(s(435,t.tag))}}function oc(t,a){var i=Kx(t);a.forEach(function(o){if(!i.has(o)){i.add(o);var f=a3.bind(null,t,o);o.then(f,f)}})}function Gn(t,a){var i=a.deletions;if(i!==null)for(var o=0;o<i.length;o++){var f=i[o],p=t,E=a,T=E;e:for(;T!==null;){switch(T.tag){case 27:if(Kr(T.type)){qt=T.stateNode,Fn=!1;break e}break;case 5:qt=T.stateNode,Fn=!1;break e;case 3:case 4:qt=T.stateNode.containerInfo,Fn=!0;break e}T=T.return}if(qt===null)throw Error(s(160));Cp(p,E,f),qt=null,Fn=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)_p(a,t),a=a.sibling}var Na=null;function _p(t,a){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Gn(a,t),qn(t),o&4&&(Ur(3,t,t.return),gl(3,t),Ur(5,t,t.return));break;case 1:Gn(a,t),qn(t),o&512&&(dn||i===null||Ga(i,i.return)),o&64&&gr&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var f=Na;if(Gn(a,t),qn(t),o&512&&(dn||i===null||Ga(i,i.return)),o&4){var p=i!==null?i.memoizedState:null;if(o=t.memoizedState,i===null)if(o===null)if(t.stateNode===null){e:{o=t.type,i=t.memoizedProps,f=f.ownerDocument||f;t:switch(o){case"title":p=f.getElementsByTagName("title")[0],(!p||p[$e]||p[pe]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(o),f.head.insertBefore(p,f.querySelector("head > title"))),Rn(p,o,i),p[pe]=t,St(p),o=p;break e;case"link":var E=_2("link","href",f).get(o+(i.href||""));if(E){for(var T=0;T<E.length;T++)if(p=E[T],p.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&p.getAttribute("rel")===(i.rel==null?null:i.rel)&&p.getAttribute("title")===(i.title==null?null:i.title)&&p.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){E.splice(T,1);break t}}p=f.createElement(o),Rn(p,o,i),f.head.appendChild(p);break;case"meta":if(E=_2("meta","content",f).get(o+(i.content||""))){for(T=0;T<E.length;T++)if(p=E[T],p.getAttribute("content")===(i.content==null?null:""+i.content)&&p.getAttribute("name")===(i.name==null?null:i.name)&&p.getAttribute("property")===(i.property==null?null:i.property)&&p.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&p.getAttribute("charset")===(i.charSet==null?null:i.charSet)){E.splice(T,1);break t}}p=f.createElement(o),Rn(p,o,i),f.head.appendChild(p);break;default:throw Error(s(468,o))}p[pe]=t,St(p),o=p}t.stateNode=o}else j2(f,t.type,t.stateNode);else t.stateNode=N2(f,o,t.memoizedProps);else p!==o?(p===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):p.count--,o===null?j2(f,t.type,t.stateNode):N2(f,o,t.memoizedProps)):o===null&&t.stateNode!==null&&Q0(t,t.memoizedProps,i.memoizedProps)}break;case 27:Gn(a,t),qn(t),o&512&&(dn||i===null||Ga(i,i.return)),i!==null&&o&4&&Q0(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Gn(a,t),qn(t),o&512&&(dn||i===null||Ga(i,i.return)),t.flags&32){f=t.stateNode;try{Ge(f,"")}catch(De){Ct(t,t.return,De)}}o&4&&t.stateNode!=null&&(f=t.memoizedProps,Q0(t,f,i!==null?i.memoizedProps:f)),o&1024&&(ed=!0);break;case 6:if(Gn(a,t),qn(t),o&4){if(t.stateNode===null)throw Error(s(162));o=t.memoizedProps,i=t.stateNode;try{i.nodeValue=o}catch(De){Ct(t,t.return,De)}}break;case 3:if(Ac=null,f=Na,Na=Sc(a.containerInfo),Gn(a,t),Na=f,qn(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Es(a.containerInfo)}catch(De){Ct(t,t.return,De)}ed&&(ed=!1,jp(t));break;case 4:o=Na,Na=Sc(t.stateNode.containerInfo),Gn(a,t),qn(t),Na=o;break;case 12:Gn(a,t),qn(t);break;case 31:Gn(a,t),qn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,oc(t,o)));break;case 13:Gn(a,t),qn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(uc=Ot()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,oc(t,o)));break;case 22:f=t.memoizedState!==null;var L=i!==null&&i.memoizedState!==null,$=gr,ne=dn;if(gr=$||f,dn=ne||L,Gn(a,t),dn=ne,gr=$,qn(t),o&8192)e:for(a=t.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(i===null||L||gr||dn||ki(t)),i=null,a=t;;){if(a.tag===5||a.tag===26){if(i===null){L=i=a;try{if(p=L.stateNode,f)E=p.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{T=L.stateNode;var oe=L.memoizedProps.style,q=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;T.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(De){Ct(L,L.return,De)}}}else if(a.tag===6){if(i===null){L=a;try{L.stateNode.nodeValue=f?"":L.memoizedProps}catch(De){Ct(L,L.return,De)}}}else if(a.tag===18){if(i===null){L=a;try{var Y=L.stateNode;f?E2(Y,!0):E2(L.stateNode,!1)}catch(De){Ct(L,L.return,De)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=t.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,oc(t,i))));break;case 19:Gn(a,t),qn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,oc(t,o)));break;case 30:break;case 21:break;default:Gn(a,t),qn(t)}}function qn(t){var a=t.flags;if(a&2){try{for(var i,o=t.return;o!==null;){if(wp(o)){i=o;break}o=o.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var f=i.stateNode,p=J0(t);lc(t,p,f);break;case 5:var E=i.stateNode;i.flags&32&&(Ge(E,""),i.flags&=-33);var T=J0(t);lc(t,T,E);break;case 3:case 4:var L=i.stateNode.containerInfo,$=J0(t);W0(t,$,L);break;default:throw Error(s(161))}}catch(ne){Ct(t,t.return,ne)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function jp(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;jp(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function br(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Mp(t,a.alternate,a),a=a.sibling}function ki(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Ur(4,a,a.return),ki(a);break;case 1:Ga(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&Ep(a,a.return,i),ki(a);break;case 27:Ml(a.stateNode);case 26:case 5:Ga(a,a.return),ki(a);break;case 22:a.memoizedState===null&&ki(a);break;case 30:ki(a);break;default:ki(a)}t=t.sibling}}function vr(t,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,f=t,p=a,E=p.flags;switch(p.tag){case 0:case 11:case 15:vr(f,p,i),gl(4,p);break;case 1:if(vr(f,p,i),o=p,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch($){Ct(o,o.return,$)}if(o=p,f=o.updateQueue,f!==null){var T=o.stateNode;try{var L=f.shared.hiddenCallbacks;if(L!==null)for(f.shared.hiddenCallbacks=null,f=0;f<L.length;f++)cm(L[f],T)}catch($){Ct(o,o.return,$)}}i&&E&64&&xp(p),yl(p,p.return);break;case 27:Ap(p);case 26:case 5:vr(f,p,i),i&&o===null&&E&4&&Sp(p),yl(p,p.return);break;case 12:vr(f,p,i);break;case 31:vr(f,p,i),i&&E&4&&kp(f,p);break;case 13:vr(f,p,i),i&&E&4&&Np(f,p);break;case 22:p.memoizedState===null&&vr(f,p,i),yl(p,p.return);break;case 30:break;default:vr(f,p,i)}a=a.sibling}}function td(t,a){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&al(i))}function nd(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&al(t))}function _a(t,a,i,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Dp(t,a,i,o),a=a.sibling}function Dp(t,a,i,o){var f=a.flags;switch(a.tag){case 0:case 11:case 15:_a(t,a,i,o),f&2048&&gl(9,a);break;case 1:_a(t,a,i,o);break;case 3:_a(t,a,i,o),f&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&al(t)));break;case 12:if(f&2048){_a(t,a,i,o),t=a.stateNode;try{var p=a.memoizedProps,E=p.id,T=p.onPostCommit;typeof T=="function"&&T(E,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(L){Ct(a,a.return,L)}}else _a(t,a,i,o);break;case 31:_a(t,a,i,o);break;case 13:_a(t,a,i,o);break;case 23:break;case 22:p=a.stateNode,E=a.alternate,a.memoizedState!==null?p._visibility&2?_a(t,a,i,o):bl(t,a):p._visibility&2?_a(t,a,i,o):(p._visibility|=2,us(t,a,i,o,(a.subtreeFlags&10256)!==0||!1)),f&2048&&td(E,a);break;case 24:_a(t,a,i,o),f&2048&&nd(a.alternate,a);break;default:_a(t,a,i,o)}}function us(t,a,i,o,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var p=t,E=a,T=i,L=o,$=E.flags;switch(E.tag){case 0:case 11:case 15:us(p,E,T,L,f),gl(8,E);break;case 23:break;case 22:var ne=E.stateNode;E.memoizedState!==null?ne._visibility&2?us(p,E,T,L,f):bl(p,E):(ne._visibility|=2,us(p,E,T,L,f)),f&&$&2048&&td(E.alternate,E);break;case 24:us(p,E,T,L,f),f&&$&2048&&nd(E.alternate,E);break;default:us(p,E,T,L,f)}a=a.sibling}}function bl(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=t,o=a,f=o.flags;switch(o.tag){case 22:bl(i,o),f&2048&&td(o.alternate,o);break;case 24:bl(i,o),f&2048&&nd(o.alternate,o);break;default:bl(i,o)}a=a.sibling}}var vl=8192;function ds(t,a,i){if(t.subtreeFlags&vl)for(t=t.child;t!==null;)Lp(t,a,i),t=t.sibling}function Lp(t,a,i){switch(t.tag){case 26:ds(t,a,i),t.flags&vl&&t.memoizedState!==null&&L3(i,Na,t.memoizedState,t.memoizedProps);break;case 5:ds(t,a,i);break;case 3:case 4:var o=Na;Na=Sc(t.stateNode.containerInfo),ds(t,a,i),Na=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=vl,vl=16777216,ds(t,a,i),vl=o):ds(t,a,i));break;default:ds(t,a,i)}}function Op(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function xl(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];vn=o,Vp(o,t)}Op(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Hp(t),t=t.sibling}function Hp(t){switch(t.tag){case 0:case 11:case 15:xl(t),t.flags&2048&&Ur(9,t,t.return);break;case 3:xl(t);break;case 12:xl(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,cc(t)):xl(t);break;default:xl(t)}}function cc(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];vn=o,Vp(o,t)}Op(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Ur(8,a,a.return),cc(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,cc(a));break;default:cc(a)}t=t.sibling}}function Vp(t,a){for(;vn!==null;){var i=vn;switch(i.tag){case 0:case 11:case 15:Ur(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:al(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,vn=o;else e:for(i=t;vn!==null;){o=vn;var f=o.sibling,p=o.return;if(Rp(o),o===i){vn=null;break e}if(f!==null){f.return=p,vn=f;break e}vn=p}}}var Yx={getCacheForType:function(t){var a=Tn(on),i=a.data.get(t);return i===void 0&&(i=t(),a.data.set(t,i)),i},cacheSignal:function(){return Tn(on).controller.signal}},Xx=typeof WeakMap=="function"?WeakMap:Map,wt=0,Vt=null,rt=null,ct=0,Rt=0,na=null,Pr=!1,fs=!1,ad=!1,xr=0,Jt=0,Ir=0,Ni=0,rd=0,aa=0,hs=0,El=null,Kn=null,id=!1,uc=0,zp=0,dc=1/0,fc=null,$r=null,gn=0,Fr=null,ms=null,Er=0,sd=0,ld=null,Bp=null,Sl=0,od=null;function ra(){return(wt&2)!==0&&ct!==0?ct&-ct:V.T!==null?md():W()}function Zp(){if(aa===0)if((ct&536870912)===0||dt){var t=ua;ua<<=1,(ua&3932160)===0&&(ua=262144),aa=t}else aa=536870912;return t=ea.current,t!==null&&(t.flags|=32),aa}function Yn(t,a,i){(t===Vt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(ps(t,0),Gr(t,ct,aa,!1)),ht(t,i),((wt&2)===0||t!==Vt)&&(t===Vt&&((wt&2)===0&&(Ni|=i),Jt===4&&Gr(t,ct,aa,!1)),qa(t))}function Up(t,a,i){if((wt&6)!==0)throw Error(s(327));var o=!i&&(a&127)===0&&(a&t.expiredLanes)===0||ae(t,a),f=o?Wx(t,a):ud(t,a,!0),p=o;do{if(f===0){fs&&!o&&Gr(t,a,0,!1);break}else{if(i=t.current.alternate,p&&!Qx(i)){f=ud(t,a,!1),p=!1;continue}if(f===2){if(p=a,t.errorRecoveryDisabledLanes&p)var E=0;else E=t.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){a=E;e:{var T=t;f=El;var L=T.current.memoizedState.isDehydrated;if(L&&(ps(T,E).flags|=256),E=ud(T,E,!1),E!==2){if(ad&&!L){T.errorRecoveryDisabledLanes|=p,Ni|=p,f=4;break e}p=Kn,Kn=f,p!==null&&(Kn===null?Kn=p:Kn.push.apply(Kn,p))}f=E}if(p=!1,f!==2)continue}}if(f===1){ps(t,0),Gr(t,a,0,!0);break}e:{switch(o=t,p=f,p){case 0:case 1:throw Error(s(345));case 4:if((a&4194048)!==a)break;case 6:Gr(o,a,aa,!Pr);break e;case 2:Kn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((a&62914560)===a&&(f=uc+300-Ot(),10<f)){if(Gr(o,a,aa,!Pr),O(o,0,!0)!==0)break e;Er=a,o.timeoutHandle=b2(Pp.bind(null,o,i,Kn,fc,id,a,aa,Ni,hs,Pr,p,"Throttled",-0,0),f);break e}Pp(o,i,Kn,fc,id,a,aa,Ni,hs,Pr,p,null,-0,0)}}break}while(!0);qa(t)}function Pp(t,a,i,o,f,p,E,T,L,$,ne,oe,q,Y){if(t.timeoutHandle=-1,oe=a.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ae},Lp(a,p,oe);var De=(p&62914560)===p?uc-Ot():(p&4194048)===p?zp-Ot():0;if(De=O3(oe,De),De!==null){Er=p,t.cancelPendingCommit=De(Xp.bind(null,t,a,p,i,o,f,E,T,L,ne,oe,null,q,Y)),Gr(t,p,E,!$);return}}Xp(t,a,p,i,o,f,E,T,L)}function Qx(t){for(var a=t;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var f=i[o],p=f.getSnapshot;f=f.value;try{if(!Jn(p(),f))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Gr(t,a,i,o){a&=~rd,a&=~Ni,t.suspendedLanes|=a,t.pingedLanes&=~a,o&&(t.warmLanes|=a),o=t.expirationTimes;for(var f=a;0<f;){var p=31-sn(f),E=1<<p;o[p]=-1,f&=~E}i!==0&&J(t,i,a)}function hc(){return(wt&6)===0?(wl(0),!1):!0}function cd(){if(rt!==null){if(Rt===0)var t=rt.return;else t=rt,ur=Ei=null,T0(t),is=null,il=0,t=rt;for(;t!==null;)vp(t.alternate,t),t=t.return;rt=null}}function ps(t,a){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,y3(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Er=0,cd(),Vt=t,rt=i=or(t.current,null),ct=a,Rt=0,na=null,Pr=!1,fs=ae(t,a),ad=!1,hs=aa=rd=Ni=Ir=Jt=0,Kn=El=null,id=!1,(a&8)!==0&&(a|=a&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=a;0<o;){var f=31-sn(o),p=1<<f;a|=t[f],o&=~p}return xr=a,Lo(),i}function Ip(t,a){Xe=null,V.H=hl,a===rs||a===Po?(a=im(),Rt=3):a===h0?(a=im(),Rt=4):Rt=a===U0?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,na=a,rt===null&&(Jt=1,nc(t,ha(a,t.current)))}function $p(){var t=ea.current;return t===null?!0:(ct&4194048)===ct?ya===null:(ct&62914560)===ct||(ct&536870912)!==0?t===ya:!1}function Fp(){var t=V.H;return V.H=hl,t===null?hl:t}function Gp(){var t=V.A;return V.A=Yx,t}function mc(){Jt=4,Pr||(ct&4194048)!==ct&&ea.current!==null||(fs=!0),(Ir&134217727)===0&&(Ni&134217727)===0||Vt===null||Gr(Vt,ct,aa,!1)}function ud(t,a,i){var o=wt;wt|=2;var f=Fp(),p=Gp();(Vt!==t||ct!==a)&&(fc=null,ps(t,a)),a=!1;var E=Jt;e:do try{if(Rt!==0&&rt!==null){var T=rt,L=na;switch(Rt){case 8:cd(),E=6;break e;case 3:case 2:case 9:case 6:ea.current===null&&(a=!0);var $=Rt;if(Rt=0,na=null,gs(t,T,L,$),i&&fs){E=0;break e}break;default:$=Rt,Rt=0,na=null,gs(t,T,L,$)}}Jx(),E=Jt;break}catch(ne){Ip(t,ne)}while(!0);return a&&t.shellSuspendCounter++,ur=Ei=null,wt=o,V.H=f,V.A=p,rt===null&&(Vt=null,ct=0,Lo()),E}function Jx(){for(;rt!==null;)qp(rt)}function Wx(t,a){var i=wt;wt|=2;var o=Fp(),f=Gp();Vt!==t||ct!==a?(fc=null,dc=Ot()+500,ps(t,a)):fs=ae(t,a);e:do try{if(Rt!==0&&rt!==null){a=rt;var p=na;t:switch(Rt){case 1:Rt=0,na=null,gs(t,a,p,1);break;case 2:case 9:if(am(p)){Rt=0,na=null,Kp(a);break}a=function(){Rt!==2&&Rt!==9||Vt!==t||(Rt=7),qa(t)},p.then(a,a);break e;case 3:Rt=7;break e;case 4:Rt=5;break e;case 7:am(p)?(Rt=0,na=null,Kp(a)):(Rt=0,na=null,gs(t,a,p,7));break;case 5:var E=null;switch(rt.tag){case 26:E=rt.memoizedState;case 5:case 27:var T=rt;if(E?D2(E):T.stateNode.complete){Rt=0,na=null;var L=T.sibling;if(L!==null)rt=L;else{var $=T.return;$!==null?(rt=$,pc($)):rt=null}break t}}Rt=0,na=null,gs(t,a,p,5);break;case 6:Rt=0,na=null,gs(t,a,p,6);break;case 8:cd(),Jt=6;break e;default:throw Error(s(462))}}e3();break}catch(ne){Ip(t,ne)}while(!0);return ur=Ei=null,V.H=o,V.A=f,wt=i,rt!==null?0:(Vt=null,ct=0,Lo(),Jt)}function e3(){for(;rt!==null&&!Pa();)qp(rt)}function qp(t){var a=yp(t.alternate,t,xr);t.memoizedProps=t.pendingProps,a===null?pc(t):rt=a}function Kp(t){var a=t,i=a.alternate;switch(a.tag){case 15:case 0:a=dp(i,a,a.pendingProps,a.type,void 0,ct);break;case 11:a=dp(i,a,a.pendingProps,a.type.render,a.ref,ct);break;case 5:T0(a);default:vp(i,a),a=rt=Gh(a,xr),a=yp(i,a,xr)}t.memoizedProps=t.pendingProps,a===null?pc(t):rt=a}function gs(t,a,i,o){ur=Ei=null,T0(a),is=null,il=0;var f=a.return;try{if(Px(t,f,a,i,ct)){Jt=1,nc(t,ha(i,t.current)),rt=null;return}}catch(p){if(f!==null)throw rt=f,p;Jt=1,nc(t,ha(i,t.current)),rt=null;return}a.flags&32768?(dt||o===1?t=!0:fs||(ct&536870912)!==0?t=!1:(Pr=t=!0,(o===2||o===9||o===3||o===6)&&(o=ea.current,o!==null&&o.tag===13&&(o.flags|=16384))),Yp(a,t)):pc(a)}function pc(t){var a=t;do{if((a.flags&32768)!==0){Yp(a,Pr);return}t=a.return;var i=Fx(a.alternate,a,xr);if(i!==null){rt=i;return}if(a=a.sibling,a!==null){rt=a;return}rt=a=t}while(a!==null);Jt===0&&(Jt=5)}function Yp(t,a){do{var i=Gx(t.alternate,t);if(i!==null){i.flags&=32767,rt=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(t=t.sibling,t!==null)){rt=t;return}rt=t=i}while(t!==null);Jt=6,rt=null}function Xp(t,a,i,o,f,p,E,T,L){t.cancelPendingCommit=null;do gc();while(gn!==0);if((wt&6)!==0)throw Error(s(327));if(a!==null){if(a===t.current)throw Error(s(177));if(p=a.lanes|a.childLanes,p|=Ju,D(t,i,p,E,T,L),t===Vt&&(rt=Vt=null,ct=0),ms=a,Fr=t,Er=i,sd=p,ld=f,Bp=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,r3(On,function(){return t2(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=V.T,V.T=null,f=Q.p,Q.p=2,E=wt,wt|=4;try{qx(t,a,i)}finally{wt=E,Q.p=f,V.T=o}}gn=1,Qp(),Jp(),Wp()}}function Qp(){if(gn===1){gn=0;var t=Fr,a=ms,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=V.T,V.T=null;var o=Q.p;Q.p=2;var f=wt;wt|=4;try{_p(a,t);var p=Sd,E=Vh(t.containerInfo),T=p.focusedElem,L=p.selectionRange;if(E!==T&&T&&T.ownerDocument&&Hh(T.ownerDocument.documentElement,T)){if(L!==null&&qu(T)){var $=L.start,ne=L.end;if(ne===void 0&&(ne=$),"selectionStart"in T)T.selectionStart=$,T.selectionEnd=Math.min(ne,T.value.length);else{var oe=T.ownerDocument||document,q=oe&&oe.defaultView||window;if(q.getSelection){var Y=q.getSelection(),De=T.textContent.length,Fe=Math.min(L.start,De),Dt=L.end===void 0?Fe:Math.min(L.end,De);!Y.extend&&Fe>Dt&&(E=Dt,Dt=Fe,Fe=E);var P=Oh(T,Fe),z=Oh(T,Dt);if(P&&z&&(Y.rangeCount!==1||Y.anchorNode!==P.node||Y.anchorOffset!==P.offset||Y.focusNode!==z.node||Y.focusOffset!==z.offset)){var I=oe.createRange();I.setStart(P.node,P.offset),Y.removeAllRanges(),Fe>Dt?(Y.addRange(I),Y.extend(z.node,z.offset)):(I.setEnd(z.node,z.offset),Y.addRange(I))}}}}for(oe=[],Y=T;Y=Y.parentNode;)Y.nodeType===1&&oe.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<oe.length;T++){var se=oe[T];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}Cc=!!Ed,Sd=Ed=null}finally{wt=f,Q.p=o,V.T=i}}t.current=a,gn=2}}function Jp(){if(gn===2){gn=0;var t=Fr,a=ms,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=V.T,V.T=null;var o=Q.p;Q.p=2;var f=wt;wt|=4;try{Mp(t,a.alternate,a)}finally{wt=f,Q.p=o,V.T=i}}gn=3}}function Wp(){if(gn===4||gn===3){gn=0,Ia();var t=Fr,a=ms,i=Er,o=Bp;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?gn=5:(gn=0,ms=Fr=null,e2(t,t.pendingLanes));var f=t.pendingLanes;if(f===0&&($r=null),U(i),a=a.stateNode,tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Vn,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=V.T,f=Q.p,Q.p=2,V.T=null;try{for(var p=t.onRecoverableError,E=0;E<o.length;E++){var T=o[E];p(T.value,{componentStack:T.stack})}}finally{V.T=a,Q.p=f}}(Er&3)!==0&&gc(),qa(t),f=t.pendingLanes,(i&261930)!==0&&(f&42)!==0?t===od?Sl++:(Sl=0,od=t):Sl=0,wl(0)}}function e2(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,al(a)))}function gc(){return Qp(),Jp(),Wp(),t2()}function t2(){if(gn!==5)return!1;var t=Fr,a=sd;sd=0;var i=U(Er),o=V.T,f=Q.p;try{Q.p=32>i?32:i,V.T=null,i=ld,ld=null;var p=Fr,E=Er;if(gn=0,ms=Fr=null,Er=0,(wt&6)!==0)throw Error(s(331));var T=wt;if(wt|=4,Hp(p.current),Dp(p,p.current,E,i),wt=T,wl(0,!1),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Vn,p)}catch{}return!0}finally{Q.p=f,V.T=o,e2(t,a)}}function n2(t,a,i){a=ha(i,a),a=Z0(t.stateNode,a,2),t=zr(t,a,2),t!==null&&(ht(t,2),qa(t))}function Ct(t,a,i){if(t.tag===3)n2(t,t,i);else for(;a!==null;){if(a.tag===3){n2(a,t,i);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&($r===null||!$r.has(o))){t=ha(i,t),i=ap(2),o=zr(a,i,2),o!==null&&(rp(i,o,a,t),ht(o,2),qa(o));break}}a=a.return}}function dd(t,a,i){var o=t.pingCache;if(o===null){o=t.pingCache=new Xx;var f=new Set;o.set(a,f)}else f=o.get(a),f===void 0&&(f=new Set,o.set(a,f));f.has(i)||(ad=!0,f.add(i),t=t3.bind(null,t,a,i),a.then(t,t))}function t3(t,a,i){var o=t.pingCache;o!==null&&o.delete(a),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Vt===t&&(ct&i)===i&&(Jt===4||Jt===3&&(ct&62914560)===ct&&300>Ot()-uc?(wt&2)===0&&ps(t,0):rd|=i,hs===ct&&(hs=0)),qa(t)}function a2(t,a){a===0&&(a=Ze()),t=bi(t,a),t!==null&&(ht(t,a),qa(t))}function n3(t){var a=t.memoizedState,i=0;a!==null&&(i=a.retryLane),a2(t,i)}function a3(t,a){var i=0;switch(t.tag){case 31:case 13:var o=t.stateNode,f=t.memoizedState;f!==null&&(i=f.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(s(314))}o!==null&&o.delete(a),a2(t,i)}function r3(t,a){return En(t,a)}var yc=null,ys=null,fd=!1,bc=!1,hd=!1,qr=0;function qa(t){t!==ys&&t.next===null&&(ys===null?yc=ys=t:ys=ys.next=t),bc=!0,fd||(fd=!0,s3())}function wl(t,a){if(!hd&&bc){hd=!0;do for(var i=!1,o=yc;o!==null;){if(t!==0){var f=o.pendingLanes;if(f===0)var p=0;else{var E=o.suspendedLanes,T=o.pingedLanes;p=(1<<31-sn(42|t)+1)-1,p&=f&~(E&~T),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(i=!0,l2(o,p))}else p=ct,p=O(o,o===Vt?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(p&3)===0||ae(o,p)||(i=!0,l2(o,p));o=o.next}while(i);hd=!1}}function i3(){r2()}function r2(){bc=fd=!1;var t=0;qr!==0&&g3()&&(t=qr);for(var a=Ot(),i=null,o=yc;o!==null;){var f=o.next,p=i2(o,a);p===0?(o.next=null,i===null?yc=f:i.next=f,f===null&&(ys=i)):(i=o,(t!==0||(p&3)!==0)&&(bc=!0)),o=f}gn!==0&&gn!==5||wl(t),qr!==0&&(qr=0)}function i2(t,a){for(var i=t.suspendedLanes,o=t.pingedLanes,f=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var E=31-sn(p),T=1<<E,L=f[E];L===-1?((T&i)===0||(T&o)!==0)&&(f[E]=Se(T,a)):L<=a&&(t.expiredLanes|=T),p&=~T}if(a=Vt,i=ct,i=O(t,t===a?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,i===0||t===a&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&Ca(o),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||ae(t,i)){if(a=i&-i,a===t.callbackPriority)return a;switch(o!==null&&Ca(o),U(i)){case 2:case 8:i=Xn;break;case 32:i=On;break;case 268435456:i=Sn;break;default:i=On}return o=s2.bind(null,t),i=En(i,o),t.callbackPriority=a,t.callbackNode=i,a}return o!==null&&o!==null&&Ca(o),t.callbackPriority=2,t.callbackNode=null,2}function s2(t,a){if(gn!==0&&gn!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(gc()&&t.callbackNode!==i)return null;var o=ct;return o=O(t,t===Vt?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(Up(t,o,a),i2(t,Ot()),t.callbackNode!=null&&t.callbackNode===i?s2.bind(null,t):null)}function l2(t,a){if(gc())return null;Up(t,a,!0)}function s3(){b3(function(){(wt&6)!==0?En(bn,i3):r2()})}function md(){if(qr===0){var t=ns;t===0&&(t=ca,ca<<=1,(ca&261888)===0&&(ca=256)),qr=t}return qr}function o2(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Nr(""+t)}function c2(t,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,t.id&&i.setAttribute("form",t.id),a.parentNode.insertBefore(i,a),t=new FormData(t),i.parentNode.removeChild(i),t}function l3(t,a,i,o,f){if(a==="submit"&&i&&i.stateNode===f){var p=o2((f[Ce]||null).action),E=o.submitter;E&&(a=(a=E[Ce]||null)?o2(a.formAction):E.getAttribute("formAction"),a!==null&&(p=a,E=null));var T=new No("action","action",null,o,f);t.push({event:T,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(qr!==0){var L=E?c2(f,E):new FormData(f);L0(i,{pending:!0,data:L,method:f.method,action:p},null,L)}}else typeof p=="function"&&(T.preventDefault(),L=E?c2(f,E):new FormData(f),L0(i,{pending:!0,data:L,method:f.method,action:p},p,L))},currentTarget:f}]})}}for(var pd=0;pd<Qu.length;pd++){var gd=Qu[pd],o3=gd.toLowerCase(),c3=gd[0].toUpperCase()+gd.slice(1);ka(o3,"on"+c3)}ka(Zh,"onAnimationEnd"),ka(Uh,"onAnimationIteration"),ka(Ph,"onAnimationStart"),ka("dblclick","onDoubleClick"),ka("focusin","onFocus"),ka("focusout","onBlur"),ka(Tx,"onTransitionRun"),ka(Mx,"onTransitionStart"),ka(Rx,"onTransitionCancel"),ka(Ih,"onTransitionEnd"),te("onMouseEnter",["mouseout","mouseover"]),te("onMouseLeave",["mouseout","mouseover"]),te("onPointerEnter",["pointerout","pointerover"]),te("onPointerLeave",["pointerout","pointerover"]),Kt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Al="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(" "),u3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Al));function u2(t,a){a=(a&4)!==0;for(var i=0;i<t.length;i++){var o=t[i],f=o.event;o=o.listeners;e:{var p=void 0;if(a)for(var E=o.length-1;0<=E;E--){var T=o[E],L=T.instance,$=T.currentTarget;if(T=T.listener,L!==p&&f.isPropagationStopped())break e;p=T,f.currentTarget=$;try{p(f)}catch(ne){Do(ne)}f.currentTarget=null,p=L}else for(E=0;E<o.length;E++){if(T=o[E],L=T.instance,$=T.currentTarget,T=T.listener,L!==p&&f.isPropagationStopped())break e;p=T,f.currentTarget=$;try{p(f)}catch(ne){Do(ne)}f.currentTarget=null,p=L}}}}function it(t,a){var i=a[Te];i===void 0&&(i=a[Te]=new Set);var o=t+"__bubble";i.has(o)||(d2(a,t,2,!1),i.add(o))}function yd(t,a,i){var o=0;a&&(o|=4),d2(i,t,o,a)}var vc="_reactListening"+Math.random().toString(36).slice(2);function bd(t){if(!t[vc]){t[vc]=!0,Qn.forEach(function(i){i!=="selectionchange"&&(u3.has(i)||yd(i,!1,t),yd(i,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[vc]||(a[vc]=!0,yd("selectionchange",!1,a))}}function d2(t,a,i,o){switch(Z2(a)){case 2:var f=z3;break;case 8:f=B3;break;default:f=Dd}i=f.bind(null,a,i,t),f=void 0,!zu||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),o?f!==void 0?t.addEventListener(a,i,{capture:!0,passive:f}):t.addEventListener(a,i,!0):f!==void 0?t.addEventListener(a,i,{passive:f}):t.addEventListener(a,i,!1)}function vd(t,a,i,o,f){var p=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var E=o.tag;if(E===3||E===4){var T=o.stateNode.containerInfo;if(T===f)break;if(E===4)for(E=o.return;E!==null;){var L=E.tag;if((L===3||L===4)&&E.stateNode.containerInfo===f)return;E=E.return}for(;T!==null;){if(E=nt(T),E===null)return;if(L=E.tag,L===5||L===6||L===26||L===27){o=p=E;continue e}T=T.parentNode}}o=o.return}Mo(function(){var $=p,ne=Ye(i),oe=[];e:{var q=$h.get(t);if(q!==void 0){var Y=No,De=t;switch(t){case"keypress":if(Co(i)===0)break e;case"keydown":case"keyup":Y=ax;break;case"focusin":De="focus",Y=Pu;break;case"focusout":De="blur",Y=Pu;break;case"beforeblur":case"afterblur":Y=Pu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=vh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=Fv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=sx;break;case Zh:case Uh:case Ph:Y=Kv;break;case Ih:Y=ox;break;case"scroll":case"scrollend":Y=Iv;break;case"wheel":Y=ux;break;case"copy":case"cut":case"paste":Y=Xv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Eh;break;case"toggle":case"beforetoggle":Y=fx}var Fe=(a&4)!==0,Dt=!Fe&&(t==="scroll"||t==="scrollend"),P=Fe?q!==null?q+"Capture":null:q;Fe=[];for(var z=$,I;z!==null;){var se=z;if(I=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||I===null||P===null||(se=Gs(z,P),se!=null&&Fe.push(Tl(z,se,I))),Dt)break;z=z.return}0<Fe.length&&(q=new Y(q,De,null,i,ne),oe.push({event:q,listeners:Fe}))}}if((a&7)===0){e:{if(q=t==="mouseover"||t==="pointerover",Y=t==="mouseout"||t==="pointerout",q&&i!==Oe&&(De=i.relatedTarget||i.fromElement)&&(nt(De)||De[Me]))break e;if((Y||q)&&(q=ne.window===ne?ne:(q=ne.ownerDocument)?q.defaultView||q.parentWindow:window,Y?(De=i.relatedTarget||i.toElement,Y=$,De=De?nt(De):null,De!==null&&(Dt=c(De),Fe=De.tag,De!==Dt||Fe!==5&&Fe!==27&&Fe!==6)&&(De=null)):(Y=null,De=$),Y!==De)){if(Fe=vh,se="onMouseLeave",P="onMouseEnter",z="mouse",(t==="pointerout"||t==="pointerover")&&(Fe=Eh,se="onPointerLeave",P="onPointerEnter",z="pointer"),Dt=Y==null?q:Qe(Y),I=De==null?q:Qe(De),q=new Fe(se,z+"leave",Y,i,ne),q.target=Dt,q.relatedTarget=I,se=null,nt(ne)===$&&(Fe=new Fe(P,z+"enter",De,i,ne),Fe.target=I,Fe.relatedTarget=Dt,se=Fe),Dt=se,Y&&De)t:{for(Fe=d3,P=Y,z=De,I=0,se=P;se;se=Fe(se))I++;se=0;for(var Be=z;Be;Be=Fe(Be))se++;for(;0<I-se;)P=Fe(P),I--;for(;0<se-I;)z=Fe(z),se--;for(;I--;){if(P===z||z!==null&&P===z.alternate){Fe=P;break t}P=Fe(P),z=Fe(z)}Fe=null}else Fe=null;Y!==null&&f2(oe,q,Y,Fe,!1),De!==null&&Dt!==null&&f2(oe,Dt,De,Fe,!0)}}e:{if(q=$?Qe($):window,Y=q.nodeName&&q.nodeName.toLowerCase(),Y==="select"||Y==="input"&&q.type==="file")var bt=kh;else if(Rh(q))if(Nh)bt=Sx;else{bt=xx;var He=vx}else Y=q.nodeName,!Y||Y.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?$&&kr($.elementType)&&(bt=kh):bt=Ex;if(bt&&(bt=bt(t,$))){Ch(oe,bt,i,ne);break e}He&&He(t,q,$),t==="focusout"&&$&&q.type==="number"&&$.memoizedProps.value!=null&&Fi(q,"number",q.value)}switch(He=$?Qe($):window,t){case"focusin":(Rh(He)||He.contentEditable==="true")&&(Ki=He,Ku=$,el=null);break;case"focusout":el=Ku=Ki=null;break;case"mousedown":Yu=!0;break;case"contextmenu":case"mouseup":case"dragend":Yu=!1,zh(oe,i,ne);break;case"selectionchange":if(Ax)break;case"keydown":case"keyup":zh(oe,i,ne)}var Je;if($u)e:{switch(t){case"compositionstart":var ut="onCompositionStart";break e;case"compositionend":ut="onCompositionEnd";break e;case"compositionupdate":ut="onCompositionUpdate";break e}ut=void 0}else qi?Th(t,i)&&(ut="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(ut="onCompositionStart");ut&&(Sh&&i.locale!=="ko"&&(qi||ut!=="onCompositionStart"?ut==="onCompositionEnd"&&qi&&(Je=yh()):(_r=ne,Bu="value"in _r?_r.value:_r.textContent,qi=!0)),He=xc($,ut),0<He.length&&(ut=new xh(ut,t,null,i,ne),oe.push({event:ut,listeners:He}),Je?ut.data=Je:(Je=Mh(i),Je!==null&&(ut.data=Je)))),(Je=mx?px(t,i):gx(t,i))&&(ut=xc($,"onBeforeInput"),0<ut.length&&(He=new xh("onBeforeInput","beforeinput",null,i,ne),oe.push({event:He,listeners:ut}),He.data=Je)),l3(oe,t,$,i,ne)}u2(oe,a)})}function Tl(t,a,i){return{instance:t,listener:a,currentTarget:i}}function xc(t,a){for(var i=a+"Capture",o=[];t!==null;){var f=t,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=Gs(t,i),f!=null&&o.unshift(Tl(t,f,p)),f=Gs(t,a),f!=null&&o.push(Tl(t,f,p))),t.tag===3)return o;t=t.return}return[]}function d3(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function f2(t,a,i,o,f){for(var p=a._reactName,E=[];i!==null&&i!==o;){var T=i,L=T.alternate,$=T.stateNode;if(T=T.tag,L!==null&&L===o)break;T!==5&&T!==26&&T!==27||$===null||(L=$,f?($=Gs(i,p),$!=null&&E.unshift(Tl(i,$,L))):f||($=Gs(i,p),$!=null&&E.push(Tl(i,$,L)))),i=i.return}E.length!==0&&t.push({event:a,listeners:E})}var f3=/\r\n?/g,h3=/\u0000|\uFFFD/g;function h2(t){return(typeof t=="string"?t:""+t).replace(f3,`
|
|
50
|
+
`).replace(h3,"")}function m2(t,a){return a=h2(a),h2(t)===a}function jt(t,a,i,o,f,p){switch(i){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Ge(t,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Ge(t,""+o);break;case"className":at(t,"class",o);break;case"tabIndex":at(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":at(t,i,o);break;case"style":Mt(t,o,p);break;case"data":if(a!=="object"){at(t,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||i!=="href")){t.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Nr(""+o),t.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(i,"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 p=="function"&&(i==="formAction"?(a!=="input"&&jt(t,a,"name",f.name,f,null),jt(t,a,"formEncType",f.formEncType,f,null),jt(t,a,"formMethod",f.formMethod,f,null),jt(t,a,"formTarget",f.formTarget,f,null)):(jt(t,a,"encType",f.encType,f,null),jt(t,a,"method",f.method,f,null),jt(t,a,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Nr(""+o),t.setAttribute(i,o);break;case"onClick":o!=null&&(t.onclick=Ae);break;case"onScroll":o!=null&&it("scroll",t);break;case"onScrollEnd":o!=null&&it("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(i=o.__html,i!=null){if(f.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}i=Nr(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""+o):t.removeAttribute(i);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":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":o===!0?t.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,o):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(i,o):t.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(i):t.setAttribute(i,o);break;case"popover":it("beforetoggle",t),it("toggle",t),Ve(t,"popover",o);break;case"xlinkActuate":Pt(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Pt(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Pt(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Pt(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Pt(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Pt(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Pt(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Pt(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Pt(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ve(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=sr.get(i)||i,Ve(t,i,o))}}function xd(t,a,i,o,f,p){switch(i){case"style":Mt(t,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(i=o.__html,i!=null){if(f.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"children":typeof o=="string"?Ge(t,o):(typeof o=="number"||typeof o=="bigint")&&Ge(t,""+o);break;case"onScroll":o!=null&&it("scroll",t);break;case"onScrollEnd":o!=null&&it("scrollend",t);break;case"onClick":o!=null&&(t.onclick=Ae);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pn.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),a=i.slice(2,f?i.length-7:void 0),p=t[Ce]||null,p=p!=null?p[i]:null,typeof p=="function"&&t.removeEventListener(a,p,f),typeof o=="function")){typeof p!="function"&&p!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(a,o,f);break e}i in t?t[i]=o:o===!0?t.setAttribute(i,""):Ve(t,i,o)}}}function Rn(t,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",t),it("load",t);var o=!1,f=!1,p;for(p in i)if(i.hasOwnProperty(p)){var E=i[p];if(E!=null)switch(p){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:jt(t,a,p,E,i,null)}}f&&jt(t,a,"srcSet",i.srcSet,i,null),o&&jt(t,a,"src",i.src,i,null);return;case"input":it("invalid",t);var T=p=E=f=null,L=null,$=null;for(o in i)if(i.hasOwnProperty(o)){var ne=i[o];if(ne!=null)switch(o){case"name":f=ne;break;case"type":E=ne;break;case"checked":L=ne;break;case"defaultChecked":$=ne;break;case"value":p=ne;break;case"defaultValue":T=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(s(137,a));break;default:jt(t,a,o,ne,i,null)}}mi(t,p,T,L,$,E,f,!1);return;case"select":it("invalid",t),o=E=p=null;for(f in i)if(i.hasOwnProperty(f)&&(T=i[f],T!=null))switch(f){case"value":p=T;break;case"defaultValue":E=T;break;case"multiple":o=T;default:jt(t,a,f,T,i,null)}a=p,i=E,t.multiple=!!o,a!=null?wn(t,!!o,a,!1):i!=null&&wn(t,!!o,i,!0);return;case"textarea":it("invalid",t),p=f=o=null;for(E in i)if(i.hasOwnProperty(E)&&(T=i[E],T!=null))switch(E){case"value":o=T;break;case"defaultValue":f=T;break;case"children":p=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(s(91));break;default:jt(t,a,E,T,i,null)}Gi(t,o,f,p);return;case"option":for(L in i)if(i.hasOwnProperty(L)&&(o=i[L],o!=null))switch(L){case"selected":t.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:jt(t,a,L,o,i,null)}return;case"dialog":it("beforetoggle",t),it("toggle",t),it("cancel",t),it("close",t);break;case"iframe":case"object":it("load",t);break;case"video":case"audio":for(o=0;o<Al.length;o++)it(Al[o],t);break;case"image":it("error",t),it("load",t);break;case"details":it("toggle",t);break;case"embed":case"source":case"link":it("error",t),it("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in i)if(i.hasOwnProperty($)&&(o=i[$],o!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:jt(t,a,$,o,i,null)}return;default:if(kr(a)){for(ne in i)i.hasOwnProperty(ne)&&(o=i[ne],o!==void 0&&xd(t,a,ne,o,i,void 0));return}}for(T in i)i.hasOwnProperty(T)&&(o=i[T],o!=null&&jt(t,a,T,o,i,null))}function m3(t,a,i,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,E=null,T=null,L=null,$=null,ne=null;for(Y in i){var oe=i[Y];if(i.hasOwnProperty(Y)&&oe!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":L=oe;default:o.hasOwnProperty(Y)||jt(t,a,Y,null,o,oe)}}for(var q in o){var Y=o[q];if(oe=i[q],o.hasOwnProperty(q)&&(Y!=null||oe!=null))switch(q){case"type":p=Y;break;case"name":f=Y;break;case"checked":$=Y;break;case"defaultChecked":ne=Y;break;case"value":E=Y;break;case"defaultValue":T=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,a));break;default:Y!==oe&&jt(t,a,q,Y,o,oe)}}Is(t,E,T,L,$,ne,p,f);return;case"select":Y=E=T=q=null;for(p in i)if(L=i[p],i.hasOwnProperty(p)&&L!=null)switch(p){case"value":break;case"multiple":Y=L;default:o.hasOwnProperty(p)||jt(t,a,p,null,o,L)}for(f in o)if(p=o[f],L=i[f],o.hasOwnProperty(f)&&(p!=null||L!=null))switch(f){case"value":q=p;break;case"defaultValue":T=p;break;case"multiple":E=p;default:p!==L&&jt(t,a,f,p,o,L)}a=T,i=E,o=Y,q!=null?wn(t,!!i,q,!1):!!o!=!!i&&(a!=null?wn(t,!!i,a,!0):wn(t,!!i,i?[]:"",!1));return;case"textarea":Y=q=null;for(T in i)if(f=i[T],i.hasOwnProperty(T)&&f!=null&&!o.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:jt(t,a,T,null,o,f)}for(E in o)if(f=o[E],p=i[E],o.hasOwnProperty(E)&&(f!=null||p!=null))switch(E){case"value":q=f;break;case"defaultValue":Y=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(s(91));break;default:f!==p&&jt(t,a,E,f,o,p)}Ao(t,q,Y);return;case"option":for(var De in i)if(q=i[De],i.hasOwnProperty(De)&&q!=null&&!o.hasOwnProperty(De))switch(De){case"selected":t.selected=!1;break;default:jt(t,a,De,null,o,q)}for(L in o)if(q=o[L],Y=i[L],o.hasOwnProperty(L)&&q!==Y&&(q!=null||Y!=null))switch(L){case"selected":t.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:jt(t,a,L,q,o,Y)}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 Fe in i)q=i[Fe],i.hasOwnProperty(Fe)&&q!=null&&!o.hasOwnProperty(Fe)&&jt(t,a,Fe,null,o,q);for($ in o)if(q=o[$],Y=i[$],o.hasOwnProperty($)&&q!==Y&&(q!=null||Y!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,a));break;default:jt(t,a,$,q,o,Y)}return;default:if(kr(a)){for(var Dt in i)q=i[Dt],i.hasOwnProperty(Dt)&&q!==void 0&&!o.hasOwnProperty(Dt)&&xd(t,a,Dt,void 0,o,q);for(ne in o)q=o[ne],Y=i[ne],!o.hasOwnProperty(ne)||q===Y||q===void 0&&Y===void 0||xd(t,a,ne,q,o,Y);return}}for(var P in i)q=i[P],i.hasOwnProperty(P)&&q!=null&&!o.hasOwnProperty(P)&&jt(t,a,P,null,o,q);for(oe in o)q=o[oe],Y=i[oe],!o.hasOwnProperty(oe)||q===Y||q==null&&Y==null||jt(t,a,oe,q,o,Y)}function p2(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function p3(){if(typeof performance.getEntriesByType=="function"){for(var t=0,a=0,i=performance.getEntriesByType("resource"),o=0;o<i.length;o++){var f=i[o],p=f.transferSize,E=f.initiatorType,T=f.duration;if(p&&T&&p2(E)){for(E=0,T=f.responseEnd,o+=1;o<i.length;o++){var L=i[o],$=L.startTime;if($>T)break;var ne=L.transferSize,oe=L.initiatorType;ne&&p2(oe)&&(L=L.responseEnd,E+=ne*(L<T?1:(T-$)/(L-$)))}if(--o,a+=8*(p+E)/(f.duration/1e3),t++,10<t)break}}if(0<t)return a/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ed=null,Sd=null;function Ec(t){return t.nodeType===9?t:t.ownerDocument}function g2(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function y2(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function wd(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Ad=null;function g3(){var t=window.event;return t&&t.type==="popstate"?t===Ad?!1:(Ad=t,!0):(Ad=null,!1)}var b2=typeof setTimeout=="function"?setTimeout:void 0,y3=typeof clearTimeout=="function"?clearTimeout:void 0,v2=typeof Promise=="function"?Promise:void 0,b3=typeof queueMicrotask=="function"?queueMicrotask:typeof v2<"u"?function(t){return v2.resolve(null).then(t).catch(v3)}:b2;function v3(t){setTimeout(function(){throw t})}function Kr(t){return t==="head"}function x2(t,a){var i=a,o=0;do{var f=i.nextSibling;if(t.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(o===0){t.removeChild(f),Es(a);return}o--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")o++;else if(i==="html")Ml(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Ml(i);for(var p=i.firstChild;p;){var E=p.nextSibling,T=p.nodeName;p[$e]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&p.rel.toLowerCase()==="stylesheet"||i.removeChild(p),p=E}}else i==="body"&&Ml(t.ownerDocument.body);i=f}while(i);Es(a)}function E2(t,a){var i=t;t=0;do{var o=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),o&&o.nodeType===8)if(i=o.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=o}while(i)}function Td(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Td(i),yt(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function x3(t,a,i,o){for(;t.nodeType===1;){var f=i;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[$e])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==f.rel||t.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||t.getAttribute("title")!==(f.title==null?null:f.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(f.src==null?null:f.src)||t.getAttribute("type")!==(f.type==null?null:f.type)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=ba(t.nextSibling),t===null)break}return null}function E3(t,a,i){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=ba(t.nextSibling),t===null))return null;return t}function S2(t,a){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=ba(t.nextSibling),t===null))return null;return t}function Md(t){return t.data==="$?"||t.data==="$~"}function Rd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function S3(t,a){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=a;else if(t.data!=="$?"||i.readyState!=="loading")a();else{var o=function(){a(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function ba(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return t}var Cd=null;function w2(t){t=t.nextSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(a===0)return ba(t.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}t=t.nextSibling}return null}function A2(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return t;a--}else i!=="/$"&&i!=="/&"||a++}t=t.previousSibling}return null}function T2(t,a,i){switch(a=Ec(i),t){case"html":if(t=a.documentElement,!t)throw Error(s(452));return t;case"head":if(t=a.head,!t)throw Error(s(453));return t;case"body":if(t=a.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Ml(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);yt(t)}var va=new Map,M2=new Set;function Sc(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Sr=Q.d;Q.d={f:w3,r:A3,D:T3,C:M3,L:R3,m:C3,X:N3,S:k3,M:_3};function w3(){var t=Sr.f(),a=hc();return t||a}function A3(t){var a=Nt(t);a!==null&&a.tag===5&&a.type==="form"?Im(a):Sr.r(t)}var bs=typeof document>"u"?null:document;function R2(t,a,i){var o=bs;if(o&&typeof a=="string"&&a){var f=In(a);f='link[rel="'+t+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),M2.has(f)||(M2.add(f),t={rel:t,crossOrigin:i,href:a},o.querySelector(f)===null&&(a=o.createElement("link"),Rn(a,"link",t),St(a),o.head.appendChild(a)))}}function T3(t){Sr.D(t),R2("dns-prefetch",t,null)}function M3(t,a){Sr.C(t,a),R2("preconnect",t,a)}function R3(t,a,i){Sr.L(t,a,i);var o=bs;if(o&&t&&a){var f='link[rel="preload"][as="'+In(a)+'"]';a==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+In(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+In(i.imageSizes)+'"]')):f+='[href="'+In(t)+'"]';var p=f;switch(a){case"style":p=vs(t);break;case"script":p=xs(t)}va.has(p)||(t=b({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:t,as:a},i),va.set(p,t),o.querySelector(f)!==null||a==="style"&&o.querySelector(Rl(p))||a==="script"&&o.querySelector(Cl(p))||(a=o.createElement("link"),Rn(a,"link",t),St(a),o.head.appendChild(a)))}}function C3(t,a){Sr.m(t,a);var i=bs;if(i&&t){var o=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+In(o)+'"][href="'+In(t)+'"]',p=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=xs(t)}if(!va.has(p)&&(t=b({rel:"modulepreload",href:t},a),va.set(p,t),i.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Cl(p)))return}o=i.createElement("link"),Rn(o,"link",t),St(o),i.head.appendChild(o)}}}function k3(t,a,i){Sr.S(t,a,i);var o=bs;if(o&&t){var f=Ht(o).hoistableStyles,p=vs(t);a=a||"default";var E=f.get(p);if(!E){var T={loading:0,preload:null};if(E=o.querySelector(Rl(p)))T.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":a},i),(i=va.get(p))&&kd(t,i);var L=E=o.createElement("link");St(L),Rn(L,"link",t),L._p=new Promise(function($,ne){L.onload=$,L.onerror=ne}),L.addEventListener("load",function(){T.loading|=1}),L.addEventListener("error",function(){T.loading|=2}),T.loading|=4,wc(E,a,o)}E={type:"stylesheet",instance:E,count:1,state:T},f.set(p,E)}}}function N3(t,a){Sr.X(t,a);var i=bs;if(i&&t){var o=Ht(i).hoistableScripts,f=xs(t),p=o.get(f);p||(p=i.querySelector(Cl(f)),p||(t=b({src:t,async:!0},a),(a=va.get(f))&&Nd(t,a),p=i.createElement("script"),St(p),Rn(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(f,p))}}function _3(t,a){Sr.M(t,a);var i=bs;if(i&&t){var o=Ht(i).hoistableScripts,f=xs(t),p=o.get(f);p||(p=i.querySelector(Cl(f)),p||(t=b({src:t,async:!0,type:"module"},a),(a=va.get(f))&&Nd(t,a),p=i.createElement("script"),St(p),Rn(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(f,p))}}function C2(t,a,i,o){var f=(f=ke.current)?Sc(f):null;if(!f)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=vs(i.href),i=Ht(f).hoistableStyles,o=i.get(a),o||(o={type:"style",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=vs(i.href);var p=Ht(f).hoistableStyles,E=p.get(t);if(E||(f=f.ownerDocument||f,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,E),(p=f.querySelector(Rl(t)))&&!p._p&&(E.instance=p,E.state.loading=5),va.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},va.set(t,i),p||j3(f,t,i,E.state))),a&&o===null)throw Error(s(528,""));return E}if(a&&o!==null)throw Error(s(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=xs(i),i=Ht(f).hoistableScripts,o=i.get(a),o||(o={type:"script",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function vs(t){return'href="'+In(t)+'"'}function Rl(t){return'link[rel="stylesheet"]['+t+"]"}function k2(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function j3(t,a,i,o){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=t.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Rn(a,"link",i),St(a),t.head.appendChild(a))}function xs(t){return'[src="'+In(t)+'"]'}function Cl(t){return"script[async]"+t}function N2(t,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var o=t.querySelector('style[data-href~="'+In(i.href)+'"]');if(o)return a.instance=o,St(o),o;var f=b({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),St(o),Rn(o,"style",f),wc(o,i.precedence,t),a.instance=o;case"stylesheet":f=vs(i.href);var p=t.querySelector(Rl(f));if(p)return a.state.loading|=4,a.instance=p,St(p),p;o=k2(i),(f=va.get(f))&&kd(o,f),p=(t.ownerDocument||t).createElement("link"),St(p);var E=p;return E._p=new Promise(function(T,L){E.onload=T,E.onerror=L}),Rn(p,"link",o),a.state.loading|=4,wc(p,i.precedence,t),a.instance=p;case"script":return p=xs(i.src),(f=t.querySelector(Cl(p)))?(a.instance=f,St(f),f):(o=i,(f=va.get(p))&&(o=b({},i),Nd(o,f)),t=t.ownerDocument||t,f=t.createElement("script"),St(f),Rn(f,"link",o),t.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,wc(o,i.precedence,t));return a.instance}function wc(t,a,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=o.length?o[o.length-1]:null,p=f,E=0;E<o.length;E++){var T=o[E];if(T.dataset.precedence===a)p=T;else if(p!==f)break}p?p.parentNode.insertBefore(t,p.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(t,a.firstChild))}function kd(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function Nd(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var Ac=null;function _2(t,a,i){if(Ac===null){var o=new Map,f=Ac=new Map;f.set(i,o)}else f=Ac,o=f.get(i),o||(o=new Map,f.set(i,o));if(o.has(t))return o;for(o.set(t,null),i=i.getElementsByTagName(t),f=0;f<i.length;f++){var p=i[f];if(!(p[$e]||p[pe]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var E=p.getAttribute(a)||"";E=t+E;var T=o.get(E);T?T.push(p):o.set(E,[p])}}return o}function j2(t,a,i){t=t.ownerDocument||t,t.head.insertBefore(i,a==="title"?t.querySelector("head > title"):null)}function D3(t,a,i){if(i===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function D2(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function L3(t,a,i,o){if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=vs(o.href),p=a.querySelector(Rl(f));if(p){a=p._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=Tc.bind(t),a.then(t,t)),i.state.loading|=4,i.instance=p,St(p);return}p=a.ownerDocument||a,o=k2(o),(f=va.get(f))&&kd(o,f),p=p.createElement("link"),St(p);var E=p;E._p=new Promise(function(T,L){E.onload=T,E.onerror=L}),Rn(p,"link",o),i.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Tc.bind(t),a.addEventListener("load",i),a.addEventListener("error",i))}}var _d=0;function O3(t,a){return t.stylesheets&&t.count===0&&Rc(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var o=setTimeout(function(){if(t.stylesheets&&Rc(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+a);0<t.imgBytes&&_d===0&&(_d=62500*p3());var f=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Rc(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>_d?50:800)+a);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(f)}}:null}function Tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Mc=null;function Rc(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Mc=new Map,a.forEach(H3,t),Mc=null,Tc.call(t))}function H3(t,a){if(!(a.state.loading&4)){var i=Mc.get(t);if(i)var o=i.get(null);else{i=new Map,Mc.set(t,i);for(var f=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var E=f[p];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(i.set(E.dataset.precedence,E),o=E)}o&&i.set(null,o)}f=a.instance,E=f.getAttribute("data-precedence"),p=i.get(E)||o,p===o&&i.set(null,f),i.set(E,f),this.count++,o=Tc.bind(this),f.addEventListener("load",o),f.addEventListener("error",o),p?p.parentNode.insertBefore(f,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(f,t.firstChild)),a.state.loading|=4}}var kl={$$typeof:H,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function V3(t,a,i,o,f,p,E,T,L){this.tag=1,this.containerInfo=t,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=ft(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ft(0),this.hiddenUpdates=ft(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function L2(t,a,i,o,f,p,E,T,L,$,ne,oe){return t=new V3(t,a,i,E,L,$,ne,oe,T),a=1,p===!0&&(a|=24),p=Wn(3,null,null,a),t.current=p,p.stateNode=t,a=u0(),a.refCount++,t.pooledCache=a,a.refCount++,p.memoizedState={element:o,isDehydrated:i,cache:a},m0(p),t}function O2(t){return t?(t=Qi,t):Qi}function H2(t,a,i,o,f,p){f=O2(f),o.context===null?o.context=f:o.pendingContext=f,o=Vr(a),o.payload={element:i},p=p===void 0?null:p,p!==null&&(o.callback=p),i=zr(t,o,a),i!==null&&(Yn(i,t,a),ll(i,t,a))}function V2(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<a?i:a}}function jd(t,a){V2(t,a),(t=t.alternate)&&V2(t,a)}function z2(t){if(t.tag===13||t.tag===31){var a=bi(t,67108864);a!==null&&Yn(a,t,67108864),jd(t,67108864)}}function B2(t){if(t.tag===13||t.tag===31){var a=ra();a=_(a);var i=bi(t,a);i!==null&&Yn(i,t,a),jd(t,a)}}var Cc=!0;function z3(t,a,i,o){var f=V.T;V.T=null;var p=Q.p;try{Q.p=2,Dd(t,a,i,o)}finally{Q.p=p,V.T=f}}function B3(t,a,i,o){var f=V.T;V.T=null;var p=Q.p;try{Q.p=8,Dd(t,a,i,o)}finally{Q.p=p,V.T=f}}function Dd(t,a,i,o){if(Cc){var f=Ld(o);if(f===null)vd(t,a,o,kc,i),U2(t,o);else if(U3(f,t,a,i,o))o.stopPropagation();else if(U2(t,o),a&4&&-1<Z3.indexOf(t)){for(;f!==null;){var p=Nt(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var E=nn(p.pendingLanes);if(E!==0){var T=p;for(T.pendingLanes|=2,T.entangledLanes|=2;E;){var L=1<<31-sn(E);T.entanglements[1]|=L,E&=~L}qa(p),(wt&6)===0&&(dc=Ot()+500,wl(0))}}break;case 31:case 13:T=bi(p,2),T!==null&&Yn(T,p,2),hc(),jd(p,2)}if(p=Ld(o),p===null&&vd(t,a,o,kc,i),p===f)break;f=p}f!==null&&o.stopPropagation()}else vd(t,a,o,null,i)}}function Ld(t){return t=Ye(t),Od(t)}var kc=null;function Od(t){if(kc=null,t=nt(t),t!==null){var a=c(t);if(a===null)t=null;else{var i=a.tag;if(i===13){if(t=u(a),t!==null)return t;t=null}else if(i===31){if(t=h(a),t!==null)return t;t=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return kc=t,null}function Z2(t){switch(t){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(mn()){case bn:return 2;case Xn:return 8;case On:case Hn:return 32;case Sn:return 268435456;default:return 32}default:return 32}}var Hd=!1,Yr=null,Xr=null,Qr=null,Nl=new Map,_l=new Map,Jr=[],Z3="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 U2(t,a){switch(t){case"focusin":case"focusout":Yr=null;break;case"dragenter":case"dragleave":Xr=null;break;case"mouseover":case"mouseout":Qr=null;break;case"pointerover":case"pointerout":Nl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":_l.delete(a.pointerId)}}function jl(t,a,i,o,f,p){return t===null||t.nativeEvent!==p?(t={blockedOn:a,domEventName:i,eventSystemFlags:o,nativeEvent:p,targetContainers:[f]},a!==null&&(a=Nt(a),a!==null&&z2(a)),t):(t.eventSystemFlags|=o,a=t.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),t)}function U3(t,a,i,o,f){switch(a){case"focusin":return Yr=jl(Yr,t,a,i,o,f),!0;case"dragenter":return Xr=jl(Xr,t,a,i,o,f),!0;case"mouseover":return Qr=jl(Qr,t,a,i,o,f),!0;case"pointerover":var p=f.pointerId;return Nl.set(p,jl(Nl.get(p)||null,t,a,i,o,f)),!0;case"gotpointercapture":return p=f.pointerId,_l.set(p,jl(_l.get(p)||null,t,a,i,o,f)),!0}return!1}function P2(t){var a=nt(t.target);if(a!==null){var i=c(a);if(i!==null){if(a=i.tag,a===13){if(a=u(i),a!==null){t.blockedOn=a,he(t.priority,function(){B2(i)});return}}else if(a===31){if(a=h(i),a!==null){t.blockedOn=a,he(t.priority,function(){B2(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Nc(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var i=Ld(t.nativeEvent);if(i===null){i=t.nativeEvent;var o=new i.constructor(i.type,i);Oe=o,i.target.dispatchEvent(o),Oe=null}else return a=Nt(i),a!==null&&z2(a),t.blockedOn=i,!1;a.shift()}return!0}function I2(t,a,i){Nc(t)&&i.delete(a)}function P3(){Hd=!1,Yr!==null&&Nc(Yr)&&(Yr=null),Xr!==null&&Nc(Xr)&&(Xr=null),Qr!==null&&Nc(Qr)&&(Qr=null),Nl.forEach(I2),_l.forEach(I2)}function _c(t,a){t.blockedOn===a&&(t.blockedOn=null,Hd||(Hd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,P3)))}var jc=null;function $2(t){jc!==t&&(jc=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){jc===t&&(jc=null);for(var a=0;a<t.length;a+=3){var i=t[a],o=t[a+1],f=t[a+2];if(typeof o!="function"){if(Od(o||i)===null)continue;break}var p=Nt(i);p!==null&&(t.splice(a,3),a-=3,L0(p,{pending:!0,data:f,method:i.method,action:o},o,f))}}))}function Es(t){function a(L){return _c(L,t)}Yr!==null&&_c(Yr,t),Xr!==null&&_c(Xr,t),Qr!==null&&_c(Qr,t),Nl.forEach(a),_l.forEach(a);for(var i=0;i<Jr.length;i++){var o=Jr[i];o.blockedOn===t&&(o.blockedOn=null)}for(;0<Jr.length&&(i=Jr[0],i.blockedOn===null);)P2(i),i.blockedOn===null&&Jr.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var f=i[o],p=i[o+1],E=f[Ce]||null;if(typeof p=="function")E||$2(i);else if(E){var T=null;if(p&&p.hasAttribute("formAction")){if(f=p,E=p[Ce]||null)T=E.formAction;else if(Od(f)!==null)continue}else T=E.action;typeof T=="function"?i[o+1]=T:(i.splice(o,3),o-=3),$2(i)}}}function F2(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(E){return f=E})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),o||setTimeout(i,20)}function i(){if(!o&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,f=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){o=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function Vd(t){this._internalRoot=t}Dc.prototype.render=Vd.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(s(409));var i=a.current,o=ra();H2(i,o,t,a,null,null)},Dc.prototype.unmount=Vd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;H2(t.current,2,null,t,null,null),hc(),a[Me]=null}};function Dc(t){this._internalRoot=t}Dc.prototype.unstable_scheduleHydration=function(t){if(t){var a=W();t={blockedOn:null,target:t,priority:a};for(var i=0;i<Jr.length&&a!==0&&a<Jr[i].priority;i++);Jr.splice(i,0,t),i===0&&P2(t)}};var G2=n.version;if(G2!=="19.2.5")throw Error(s(527,G2,"19.2.5"));Q.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=g(a),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var I3={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lc.isDisabled&&Lc.supportsFiber)try{Vn=Lc.inject(I3),tn=Lc}catch{}}return Ll.createRoot=function(t,a){if(!l(t))throw Error(s(299));var i=!1,o="",f=Wm,p=ep,E=tp;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError)),a=L2(t,1,!1,null,null,i,o,null,f,p,E,F2),t[Me]=a.current,bd(t),new Vd(a)},Ll.hydrateRoot=function(t,a,i){if(!l(t))throw Error(s(299));var o=!1,f="",p=Wm,E=ep,T=tp,L=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(E=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError),i.formState!==void 0&&(L=i.formState)),a=L2(t,1,!0,a,i??null,o,f,L,p,E,T,F2),a.context=O2(null),i=a.current,o=ra(),o=_(o),f=Vr(o),f.callback=null,zr(i,f,o),i=o,a.current.lanes=i,ht(a,i),qa(a),t[Me]=a.current,bd(t),new Dc(a)},Ll.version="19.2.5",Ll}var ng;function n5(){if(ng)return Zd.exports;ng=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(n){console.error(n)}}return e(),Zd.exports=t5(),Zd.exports}var a5=n5();/**
|
|
51
|
+
* react-router v7.14.1
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/var F4=e=>{throw TypeError(e)},r5=(e,n,r)=>n.has(e)||F4("Cannot "+r),$d=(e,n,r)=>(r5(e,n,"read from private field"),r?r.call(e):n.get(e)),i5=(e,n,r)=>n.has(e)?F4("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,r),ag="popstate";function rg(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function s5(e={}){function n(s,l){var g;let c=(g=l.state)==null?void 0:g.masked,{pathname:u,search:h,hash:m}=c||s.location;return ro("",{pathname:u,search:h,hash:m},l.state&&l.state.usr||null,l.state&&l.state.key||"default",c?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function r(s,l){return typeof l=="string"?l:Wa(l)}return o5(n,r,null,e)}function tt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function hn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function l5(){return Math.random().toString(36).substring(2,10)}function ig(e,n){return{usr:e.state,key:e.key,idx:n,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ro(e,n,r=null,s,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?tr(n):n,state:r,key:n&&n.key||s||l5(),unstable_mask:l}}function Wa({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function tr(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let s=e.indexOf("?");s>=0&&(n.search=e.substring(s),e=e.substring(0,s)),e&&(n.pathname=e)}return n}function o5(e,n,r,s={}){let{window:l=document.defaultView,v5Compat:c=!1}=s,u=l.history,h="POP",m=null,g=y();g==null&&(g=0,u.replaceState({...u.state,idx:g},""));function y(){return(u.state||{idx:null}).idx}function b(){h="POP";let A=y(),j=A==null?null:A-g;g=A,m&&m({action:h,location:M.location,delta:j})}function x(A,j){h="PUSH";let C=rg(A)?A:ro(M.location,A,j);g=y()+1;let H=ig(C,g),B=M.createHref(C.unstable_mask||C);try{u.pushState(H,"",B)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;l.location.assign(B)}c&&m&&m({action:h,location:M.location,delta:1})}function S(A,j){h="REPLACE";let C=rg(A)?A:ro(M.location,A,j);g=y();let H=ig(C,g),B=M.createHref(C.unstable_mask||C);u.replaceState(H,"",B),c&&m&&m({action:h,location:M.location,delta:0})}function w(A){return G4(A)}let M={get action(){return h},get location(){return e(l,u)},listen(A){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(ag,b),m=A,()=>{l.removeEventListener(ag,b),m=null}},createHref(A){return n(l,A)},createURL:w,encodeLocation(A){let j=w(A);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:x,replace:S,go(A){return u.go(A)}};return M}function G4(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),tt(r,"No window.location.(origin|href) available to create URL");let s=typeof e=="string"?e:Wa(e);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=r+s),new URL(s,r)}var ql,sg=class{constructor(e){if(i5(this,ql,new Map),e)for(let[n,r]of e)this.set(n,r)}get(e){if($d(this,ql).has(e))return $d(this,ql).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,n){$d(this,ql).set(e,n)}};ql=new WeakMap;var c5=new Set(["lazy","caseSensitive","path","id","index","children"]);function u5(e){return c5.has(e)}var d5=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function f5(e){return d5.has(e)}function h5(e){return e.index===!0}function io(e,n,r=[],s={},l=!1){return e.map((c,u)=>{let h=[...r,String(u)],m=typeof c.id=="string"?c.id:h.join("-");if(tt(c.index!==!0||!c.children,"Cannot specify children on an index route"),tt(l||!s[m],`Found a route id collision on id "${m}". Route id's must be globally unique within Data Router usages`),h5(c)){let g={...c,id:m};return s[m]=lg(g,n(g)),g}else{let g={...c,id:m,children:void 0};return s[m]=lg(g,n(g)),c.children&&(g.children=io(c.children,n,h,s,l)),g}})}function lg(e,n){return Object.assign(e,{...n,...typeof n.lazy=="object"&&n.lazy!=null?{lazy:{...e.lazy,...n.lazy}}:{}})}function ii(e,n,r="/"){return Kl(e,n,r,!1)}function Kl(e,n,r,s){let l=typeof n=="string"?tr(n):n,c=Ma(l.pathname||"/",r);if(c==null)return null;let u=q4(e);p5(u);let h=null;for(let m=0;h==null&&m<u.length;++m){let g=M5(c);h=A5(u[m],g,s)}return h}function m5(e,n){let{route:r,pathname:s,params:l}=e;return{id:r.id,pathname:s,params:l,data:n[r.id],loaderData:n[r.id],handle:r.handle}}function q4(e,n=[],r=[],s="",l=!1){let c=(u,h,m=l,g)=>{let y={relativePath:g===void 0?u.path||"":g,caseSensitive:u.caseSensitive===!0,childrenIndex:h,route:u};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(s)&&m)return;tt(y.relativePath.startsWith(s),`Absolute route path "${y.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(s.length)}let b=Aa([s,y.relativePath]),x=r.concat(y);u.children&&u.children.length>0&&(tt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),q4(u.children,n,x,b,m)),!(u.path==null&&!u.index)&&n.push({path:b,score:S5(b,u.index),routesMeta:x})};return e.forEach((u,h)=>{var m;if(u.path===""||!((m=u.path)!=null&&m.includes("?")))c(u,h);else for(let g of K4(u.path))c(u,h,!0,g)}),n}function K4(e){let n=e.split("/");if(n.length===0)return[];let[r,...s]=n,l=r.endsWith("?"),c=r.replace(/\?$/,"");if(s.length===0)return l?[c,""]:[c];let u=K4(s.join("/")),h=[];return h.push(...u.map(m=>m===""?c:[c,m].join("/"))),l&&h.push(...u),h.map(m=>e.startsWith("/")&&m===""?"/":m)}function p5(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:w5(n.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var g5=/^:[\w-]+$/,y5=3,b5=2,v5=1,x5=10,E5=-2,og=e=>e==="*";function S5(e,n){let r=e.split("/"),s=r.length;return r.some(og)&&(s+=E5),n&&(s+=b5),r.filter(l=>!og(l)).reduce((l,c)=>l+(g5.test(c)?y5:c===""?v5:x5),s)}function w5(e,n){return e.length===n.length&&e.slice(0,-1).every((s,l)=>s===n[l])?e[e.length-1]-n[n.length-1]:0}function A5(e,n,r=!1){let{routesMeta:s}=e,l={},c="/",u=[];for(let h=0;h<s.length;++h){let m=s[h],g=h===s.length-1,y=c==="/"?n:n.slice(c.length)||"/",b=lu({path:m.relativePath,caseSensitive:m.caseSensitive,end:g},y),x=m.route;if(!b&&g&&r&&!s[s.length-1].route.index&&(b=lu({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!b)return null;Object.assign(l,b.params),u.push({params:l,pathname:Aa([c,b.pathname]),pathnameBase:k5(Aa([c,b.pathnameBase])),route:x}),b.pathnameBase!=="/"&&(c=Aa([c,b.pathnameBase]))}return u}function lu(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,s]=T5(e.path,e.caseSensitive,e.end),l=n.match(r);if(!l)return null;let c=l[0],u=c.replace(/(.)\/+$/,"$1"),h=l.slice(1);return{params:s.reduce((g,{paramName:y,isOptional:b},x)=>{if(y==="*"){let w=h[x]||"";u=c.slice(0,c.length-w.length).replace(/(.)\/+$/,"$1")}const S=h[x];return b&&!S?g[y]=void 0:g[y]=(S||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:u,pattern:e}}function T5(e,n=!1,r=!0){hn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let s=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,h,m,g,y)=>{if(s.push({paramName:h,isOptional:m!=null}),m){let b=y.charAt(g+u.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(s.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),s]}function M5(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return hn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Ma(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,s=e.charAt(r);return s&&s!=="/"?null:e.slice(r)||"/"}function R5({basename:e,pathname:n}){return n==="/"?e:Aa([e,n])}var Y4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,c1=e=>Y4.test(e);function C5(e,n="/"){let{pathname:r,search:s="",hash:l=""}=typeof e=="string"?tr(e):e,c;return r?(r=d1(r),r.startsWith("/")?c=cg(r.substring(1),"/"):c=cg(r,n)):c=n,{pathname:c,search:N5(s),hash:_5(l)}}function cg(e,n){let r=ou(n).split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function Fd(e,n,r,s){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function X4(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function u1(e){let n=X4(e);return n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase)}function Mu(e,n,r,s=!1){let l;typeof e=="string"?l=tr(e):(l={...e},tt(!l.pathname||!l.pathname.includes("?"),Fd("?","pathname","search",l)),tt(!l.pathname||!l.pathname.includes("#"),Fd("#","pathname","hash",l)),tt(!l.search||!l.search.includes("#"),Fd("#","search","hash",l)));let c=e===""||l.pathname==="",u=c?"/":l.pathname,h;if(u==null)h=r;else{let b=n.length-1;if(!s&&u.startsWith("..")){let x=u.split("/");for(;x[0]==="..";)x.shift(),b-=1;l.pathname=x.join("/")}h=b>=0?n[b]:"/"}let m=C5(l,h),g=u&&u!=="/"&&u.endsWith("/"),y=(c||u===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(g||y)&&(m.pathname+="/"),m}var d1=e=>e.replace(/\/\/+/g,"/"),Aa=e=>d1(e.join("/")),ou=e=>e.replace(/\/+$/,""),k5=e=>ou(e).replace(/^\/*/,"/"),N5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ho=class{constructor(e,n,r,s=!1){this.status=e,this.statusText=n||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function so(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function mo(e){let n=e.map(r=>r.route.path).filter(Boolean);return Aa(n)||"/"}var Q4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function J4(e,n){let r=e;if(typeof r!="string"||!Y4.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,l=!1;if(Q4)try{let c=new URL(window.location.href),u=r.startsWith("//")?new URL(c.protocol+r):new URL(r),h=Ma(u.pathname,n);u.origin===c.origin&&h!=null?r=h+u.search+u.hash:l=!0}catch{hn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:l,to:r}}var li=Symbol("Uninstrumented");function j5(e,n){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(l=>l({id:n.id,index:n.index,path:n.path,instrument(c){let u=Object.keys(r);for(let h of u)c[h]&&r[h].push(c[h])}}));let s={};if(typeof n.lazy=="function"&&r.lazy.length>0){let l=Cs(r.lazy,n.lazy,()=>{});l&&(s.lazy=l)}if(typeof n.lazy=="object"){let l=n.lazy;["middleware","loader","action"].forEach(c=>{let u=l[c],h=r[`lazy.${c}`];if(typeof u=="function"&&h.length>0){let m=Cs(h,u,()=>{});m&&(s.lazy=Object.assign(s.lazy||{},{[c]:m}))}})}return["loader","action"].forEach(l=>{let c=n[l];if(typeof c=="function"&&r[l].length>0){let u=c[li]??c,h=Cs(r[l],u,(...m)=>ug(m[0]));h&&(l==="loader"&&u.hydrate===!0&&(h.hydrate=!0),h[li]=u,s[l]=h)}}),n.middleware&&n.middleware.length>0&&r.middleware.length>0&&(s.middleware=n.middleware.map(l=>{let c=l[li]??l,u=Cs(r.middleware,c,(...h)=>ug(h[0]));return u?(u[li]=c,u):l})),s}function D5(e,n){let r={navigate:[],fetch:[]};if(n.forEach(s=>s({instrument(l){let c=Object.keys(l);for(let u of c)l[u]&&r[u].push(l[u])}})),r.navigate.length>0){let s=e.navigate[li]??e.navigate,l=Cs(r.navigate,s,(...c)=>{let[u,h]=c;return{to:typeof u=="number"||typeof u=="string"?u:u?Wa(u):".",...dg(e,h??{})}});l&&(l[li]=s,e.navigate=l)}if(r.fetch.length>0){let s=e.fetch[li]??e.fetch,l=Cs(r.fetch,s,(...c)=>{let[u,,h,m]=c;return{href:h??".",fetcherKey:u,...dg(e,m??{})}});l&&(l[li]=s,e.fetch=l)}return e}function Cs(e,n,r){return e.length===0?null:async(...s)=>{let l=await W4(e,r(...s),()=>n(...s),e.length-1);if(l.type==="error")throw l.value;return l.value}}async function W4(e,n,r,s){let l=e[s],c;if(l){let u,h=async()=>(u?console.error("You cannot call instrumented handlers more than once"):u=W4(e,n,r,s-1),c=await u,tt(c,"Expected a result"),c.type==="error"&&c.value instanceof Error?{status:"error",error:c.value}:{status:"success",error:void 0});try{await l(h,n)}catch(m){console.error("An instrumentation function threw an error:",m)}u||await h(),await u}else try{c={type:"success",value:await r()}}catch(u){c={type:"error",value:u}}return c||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function ug(e){let{request:n,context:r,params:s,unstable_pattern:l}=e;return{request:L5(n),params:{...s},unstable_pattern:l,context:O5(r)}}function dg(e,n){return{currentUrl:Wa(e.state.location),..."formMethod"in n?{formMethod:n.formMethod}:{},..."formEncType"in n?{formEncType:n.formEncType}:{},..."formData"in n?{formData:n.formData}:{},..."body"in n?{body:n.body}:{}}}function L5(e){return{method:e.method,url:e.url,headers:{get:(...n)=>e.headers.get(...n)}}}function O5(e){if(V5(e)){let n={...e};return Object.freeze(n),n}else return{get:n=>e.get(n)}}var H5=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function V5(e){if(e===null||typeof e!="object")return!1;const n=Object.getPrototypeOf(e);return n===Object.prototype||n===null||Object.getOwnPropertyNames(n).sort().join("\0")===H5}var e6=["POST","PUT","PATCH","DELETE"],z5=new Set(e6),B5=["GET",...e6],Z5=new Set(B5),t6=new Set([301,302,303,307,308]),U5=new Set([307,308]),Gd={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},P5={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ol={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},I5=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),n6="remix-router-transitions",a6=Symbol("ResetLoaderData");function $5(e){const n=e.window?e.window:typeof window<"u"?window:void 0,r=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u";tt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=e.hydrationRouteProperties||[],l=e.mapRouteProperties||I5,c=l;if(e.unstable_instrumentations){let R=e.unstable_instrumentations;c=_=>({...l(_),...j5(R.map(U=>U.route).filter(Boolean),_)})}let u={},h=io(e.routes,c,void 0,u),m,g=e.basename||"/";g.startsWith("/")||(g=`/${g}`);let y=e.dataStrategy||Y5,b={unstable_passThroughRequests:!1,...e.future},x=null,S=new Set,w=null,M=null,A=null,j=e.hydrationData!=null,C=ii(h,e.history.location,g),H=!1,B=null,Z,ee;if(C==null&&!e.patchRoutesOnNavigation){let R=Ea(404,{pathname:e.history.location.pathname}),{matches:_,route:U}=Oc(h);Z=!0,ee=!Z,C=_,B={[U.id]:R}}else if(C&&!e.hydrationData&&ft(C,h,e.history.location.pathname).active&&(C=null),C)if(C.some(R=>R.route.lazy))Z=!1,ee=!Z;else if(!C.some(R=>f1(R.route)))Z=!0,ee=!Z;else{let R=e.hydrationData?e.hydrationData.loaderData:null,_=e.hydrationData?e.hydrationData.errors:null,U=C;if(_){let W=C.findIndex(he=>_[he.route.id]!==void 0);U=U.slice(0,W+1)}ee=!1,Z=!0,U.forEach(W=>{let he=r6(W.route,R,_);ee=ee||he.renderFallback,Z=Z&&!he.shouldLoad})}else{Z=!1,ee=!Z,C=[];let R=ft(null,h,e.history.location.pathname);R.active&&R.matches&&(H=!0,C=R.matches)}let re,N={historyAction:e.history.action,location:e.history.location,matches:C,initialized:Z,renderFallback:ee,navigation:Gd,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||B,fetchers:new Map,blockers:new Map},ce="POP",le=null,ue=!1,X,xe=!1,me=new Map,ve=null,V=!1,Q=!1,G=new Set,de=new Map,we=0,k=-1,F=new Map,ie=new Set,be=new Map,ge=new Map,ke=new Set,K=new Map,ze,je=null;function xt(){if(x=e.history.listen(({action:R,location:_,delta:U})=>{if(ze){ze(),ze=void 0;return}hn(K.size===0||U!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let W=Pn({currentLocation:N.location,nextLocation:_,historyAction:R});if(W&&U!=null){let he=new Promise(Ee=>{ze=Ee});e.history.go(U*-1),ua(W,{state:"blocked",location:_,proceed(){ua(W,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),he.then(()=>e.history.go(U))},reset(){let Ee=new Map(N.blockers);Ee.set(W,Ol),fe({blockers:Ee})}}),le==null||le.resolve(),le=null;return}return Zt(R,_)}),r){hE(n,me);let R=()=>mE(n,me);n.addEventListener("pagehide",R),ve=()=>n.removeEventListener("pagehide",R)}return N.initialized||Zt("POP",N.location,{initialHydration:!0}),re}function Et(){x&&x(),ve&&ve(),S.clear(),X&&X.abort(),N.fetchers.forEach((R,_)=>Vn(_)),N.blockers.forEach((R,_)=>ca(_))}function xn(R){return S.add(R),()=>S.delete(R)}function fe(R,_={}){R.matches&&(R.matches=R.matches.map(he=>{let Ee=u[he.route.id],pe=he.route;return pe.element!==Ee.element||pe.errorElement!==Ee.errorElement||pe.hydrateFallbackElement!==Ee.hydrateFallbackElement?{...he,route:Ee}:he})),N={...N,...R};let U=[],W=[];N.fetchers.forEach((he,Ee)=>{he.state==="idle"&&(ke.has(Ee)?U.push(Ee):W.push(Ee))}),ke.forEach(he=>{!N.fetchers.has(he)&&!de.has(he)&&U.push(he)}),[...S].forEach(he=>he(N,{deletedFetchers:U,newErrors:R.errors??null,viewTransitionOpts:_.viewTransitionOpts,flushSync:_.flushSync===!0})),U.forEach(he=>Vn(he)),W.forEach(he=>N.fetchers.delete(he))}function Ie(R,_,{flushSync:U}={}){var _e,Re;let W=N.actionData!=null&&N.navigation.formMethod!=null&&jn(N.navigation.formMethod)&&N.navigation.state==="loading"&&((_e=R.state)==null?void 0:_e._isRedirect)!==!0,he;_.actionData?Object.keys(_.actionData).length>0?he=_.actionData:he=null:W?he=N.actionData:he=null;let Ee=_.loaderData?Sg(N.loaderData,_.loaderData,_.matches||[],_.errors):N.loaderData,pe=N.blockers;pe.size>0&&(pe=new Map(pe),pe.forEach((Ue,$e)=>pe.set($e,Ol)));let Ce=V?!1:Ze(R,_.matches||N.matches),Me=ue===!0||N.navigation.formMethod!=null&&jn(N.navigation.formMethod)&&((Re=R.state)==null?void 0:Re._isRedirect)!==!0;m&&(h=m,m=void 0),V||ce==="POP"||(ce==="PUSH"?e.history.push(R,R.state):ce==="REPLACE"&&e.history.replace(R,R.state));let Te;if(ce==="POP"){let Ue=me.get(N.location.pathname);Ue&&Ue.has(R.pathname)?Te={currentLocation:N.location,nextLocation:R}:me.has(R.pathname)&&(Te={currentLocation:R,nextLocation:N.location})}else if(xe){let Ue=me.get(N.location.pathname);Ue?Ue.add(R.pathname):(Ue=new Set([R.pathname]),me.set(N.location.pathname,Ue)),Te={currentLocation:N.location,nextLocation:R}}fe({..._,actionData:he,loaderData:Ee,historyAction:ce,location:R,initialized:!0,renderFallback:!1,navigation:Gd,revalidation:"idle",restoreScrollPosition:Ce,preventScrollReset:Me,blockers:pe},{viewTransitionOpts:Te,flushSync:U===!0}),ce="POP",ue=!1,xe=!1,V=!1,Q=!1,le==null||le.resolve(),le=null,je==null||je.resolve(),je=null}async function qe(R,_){if(le==null||le.resolve(),le=null,typeof R=="number"){le||(le=Mg());let yt=le.promise;return e.history.go(R),yt}let U=Tf(N.location,N.matches,g,R,_==null?void 0:_.fromRouteId,_==null?void 0:_.relative),{path:W,submission:he,error:Ee}=fg(!1,U,_),pe;_!=null&&_.unstable_mask&&(pe={pathname:"",search:"",hash:"",...typeof _.unstable_mask=="string"?tr(_.unstable_mask):{...N.location.unstable_mask,..._.unstable_mask}});let Ce=N.location,Me=ro(Ce,W,_&&_.state,void 0,pe);Me={...Me,...e.history.encodeLocation(Me)};let Te=_&&_.replace!=null?_.replace:void 0,_e="PUSH";Te===!0?_e="REPLACE":Te===!1||he!=null&&jn(he.formMethod)&&he.formAction===N.location.pathname+N.location.search&&(_e="REPLACE");let Re=_&&"preventScrollReset"in _?_.preventScrollReset===!0:void 0,Ue=(_&&_.flushSync)===!0,$e=Pn({currentLocation:Ce,nextLocation:Me,historyAction:_e});if($e){ua($e,{state:"blocked",location:Me,proceed(){ua($e,{state:"proceeding",proceed:void 0,reset:void 0,location:Me}),qe(R,_)},reset(){let yt=new Map(N.blockers);yt.set($e,Ol),fe({blockers:yt})}});return}await Zt(_e,Me,{submission:he,pendingError:Ee,preventScrollReset:Re,replace:_&&_.replace,enableViewTransition:_&&_.viewTransition,flushSync:Ue,callSiteDefaultShouldRevalidate:_&&_.unstable_defaultShouldRevalidate})}function Tt(){je||(je=Mg()),On(),fe({revalidation:"loading"});let R=je.promise;return N.navigation.state==="submitting"?R:N.navigation.state==="idle"?(Zt(N.historyAction,N.location,{startUninterruptedRevalidation:!0}),R):(Zt(ce||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:xe===!0}),R)}async function Zt(R,_,U){X&&X.abort(),X=null,ce=R,V=(U&&U.startUninterruptedRevalidation)===!0,Se(N.location,N.matches),ue=(U&&U.preventScrollReset)===!0,xe=(U&&U.enableViewTransition)===!0;let W=m||h,he=U&&U.overrideNavigation,Ee=U!=null&&U.initialHydration&&N.matches&&N.matches.length>0&&!H?N.matches:ii(W,_,g),pe=(U&&U.flushSync)===!0;if(Ee&&N.initialized&&!Q&&aE(N.location,_)&&!(U&&U.submission&&jn(U.submission.formMethod))){Ie(_,{matches:Ee},{flushSync:pe});return}let Ce=ft(Ee,W,_.pathname);if(Ce.active&&Ce.matches&&(Ee=Ce.matches),!Ee){let{error:nt,notFoundMatches:Nt,route:Qe}=nn(_.pathname);Ie(_,{matches:Nt,loaderData:{},errors:{[Qe.id]:nt}},{flushSync:pe});return}X=new AbortController;let Me=As(e.history,_,X.signal,U&&U.submission),Te=e.getContext?await e.getContext():new sg,_e;if(U&&U.pendingError)_e=[si(Ee).route.id,{type:"error",error:U.pendingError}];else if(U&&U.submission&&jn(U.submission.formMethod)){let nt=await Ut(Me,_,U.submission,Ee,Te,Ce.active,U&&U.initialHydration===!0,{replace:U.replace,flushSync:pe});if(nt.shortCircuited)return;if(nt.pendingActionResult){let[Nt,Qe]=nt.pendingActionResult;if(ia(Qe)&&so(Qe.error)&&Qe.error.status===404){X=null,Ie(_,{matches:nt.matches,loaderData:{},errors:{[Nt]:Qe.error}});return}}Ee=nt.matches||Ee,_e=nt.pendingActionResult,he=qd(_,U.submission),pe=!1,Ce.active=!1,Me=As(e.history,Me.url,Me.signal)}let{shortCircuited:Re,matches:Ue,loaderData:$e,errors:yt}=await en(Me,_,Ee,Te,Ce.active,he,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,pe,_e,U&&U.callSiteDefaultShouldRevalidate);Re||(X=null,Ie(_,{matches:Ue||Ee,...wg(_e),loaderData:$e,errors:yt}))}async function Ut(R,_,U,W,he,Ee,pe,Ce={}){On();let Me=dE(_,U);if(fe({navigation:Me},{flushSync:Ce.flushSync===!0}),Ee){let Re=await ht(W,_.pathname,R.signal);if(Re.type==="aborted")return{shortCircuited:!0};if(Re.type==="error"){if(Re.partialMatches.length===0){let{matches:$e,route:yt}=Oc(h);return{matches:$e,pendingActionResult:[yt.id,{type:"error",error:Re.error}]}}let Ue=si(Re.partialMatches).route.id;return{matches:Re.partialMatches,pendingActionResult:[Ue,{type:"error",error:Re.error}]}}else if(Re.matches)W=Re.matches;else{let{notFoundMatches:Ue,error:$e,route:yt}=nn(_.pathname);return{matches:Ue,pendingActionResult:[yt.id,{type:"error",error:$e}]}}}let Te,_e=Kc(W,_);if(!_e.route.action&&!_e.route.lazy)Te={type:"error",error:Ea(405,{method:R.method,pathname:_.pathname,routeId:_e.route.id})};else{let Re=js(c,u,R,_,W,_e,pe?[]:s,he),Ue=await bn(R,_,Re,he,null);if(Te=Ue[_e.route.id],!Te){for(let $e of W)if(Ue[$e.route.id]){Te=Ue[$e.route.id];break}}if(R.signal.aborted)return{shortCircuited:!0}}if(Oi(Te)){let Re;return Ce&&Ce.replace!=null?Re=Ce.replace:Re=vg(Te.response.headers.get("Location"),new URL(R.url),g,e.history)===N.location.pathname+N.location.search,await mn(R,Te,!0,{submission:U,replace:Re}),{shortCircuited:!0}}if(ia(Te)){let Re=si(W,_e.route.id);return(Ce&&Ce.replace)!==!0&&(ce="PUSH"),{matches:W,pendingActionResult:[Re.route.id,Te,_e.route.id]}}return{matches:W,pendingActionResult:[_e.route.id,Te]}}async function en(R,_,U,W,he,Ee,pe,Ce,Me,Te,_e,Re,Ue){let $e=Ee||qd(_,pe),yt=pe||Ce||Tg($e),nt=!V&&!Te;if(he){if(nt){let at=En(Re);fe({navigation:$e,...at!==void 0?{actionData:at}:{}},{flushSync:_e})}let Ve=await ht(U,_.pathname,R.signal);if(Ve.type==="aborted")return{shortCircuited:!0};if(Ve.type==="error"){if(Ve.partialMatches.length===0){let{matches:Pt,route:mt}=Oc(h);return{matches:Pt,loaderData:{},errors:{[mt.id]:Ve.error}}}let at=si(Ve.partialMatches).route.id;return{matches:Ve.partialMatches,loaderData:{},errors:{[at]:Ve.error}}}else if(Ve.matches)U=Ve.matches;else{let{error:at,notFoundMatches:Pt,route:mt}=nn(_.pathname);return{matches:Pt,loaderData:{},errors:{[mt.id]:at}}}}let Nt=m||h,{dsMatches:Qe,revalidatingFetchers:Ht}=hg(R,W,c,u,e.history,N,U,yt,_,Te?[]:s,Te===!0,Q,G,ke,be,ie,Nt,g,e.patchRoutesOnNavigation!=null,Re,Ue);if(k=++we,!e.dataStrategy&&!Qe.some(Ve=>Ve.shouldLoad)&&!Qe.some(Ve=>Ve.route.middleware&&Ve.route.middleware.length>0)&&Ht.length===0){let Ve=Cr();return Ie(_,{matches:U,loaderData:{},errors:Re&&ia(Re[1])?{[Re[0]]:Re[1].error}:null,...wg(Re),...Ve?{fetchers:new Map(N.fetchers)}:{}},{flushSync:_e}),{shortCircuited:!0}}if(nt){let Ve={};if(!he){Ve.navigation=$e;let at=En(Re);at!==void 0&&(Ve.actionData=at)}Ht.length>0&&(Ve.fetchers=Ca(Ht)),fe(Ve,{flushSync:_e})}Ht.forEach(Ve=>{Xt(Ve.key),Ve.controller&&de.set(Ve.key,Ve.controller)});let St=()=>Ht.forEach(Ve=>Xt(Ve.key));X&&X.signal.addEventListener("abort",St);let{loaderResults:Qn,fetcherResults:pn}=await Xn(Qe,Ht,R,_,W);if(R.signal.aborted)return{shortCircuited:!0};X&&X.signal.removeEventListener("abort",St),Ht.forEach(Ve=>de.delete(Ve.key));let Kt=Hc(Qn);if(Kt)return await mn(R,Kt.result,!0,{replace:Me}),{shortCircuited:!0};if(Kt=Hc(pn),Kt)return ie.add(Kt.key),await mn(R,Kt.result,!0,{replace:Me}),{shortCircuited:!0};let{loaderData:te,errors:Ne}=Eg(N,U,Qn,Re,Ht,pn);Te&&N.errors&&(Ne={...N.errors,...Ne});let Pe=Cr(),et=oa(k),gt=Pe||et||Ht.length>0;return{matches:U,loaderData:te,errors:Ne,...gt?{fetchers:new Map(N.fetchers)}:{}}}function En(R){if(R&&!ia(R[1]))return{[R[0]]:R[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function Ca(R){return R.forEach(_=>{let U=N.fetchers.get(_.key),W=Hl(void 0,U?U.data:void 0);N.fetchers.set(_.key,W)}),new Map(N.fetchers)}async function Pa(R,_,U,W){Xt(R);let he=(W&&W.flushSync)===!0,Ee=m||h,pe=Tf(N.location,N.matches,g,U,_,W==null?void 0:W.relative),Ce=ii(Ee,pe,g),Me=ft(Ce,Ee,pe);if(Me.active&&Me.matches&&(Ce=Me.matches),!Ce){Sn(R,_,Ea(404,{pathname:pe}),{flushSync:he});return}let{path:Te,submission:_e,error:Re}=fg(!0,pe,W);if(Re){Sn(R,_,Re,{flushSync:he});return}let Ue=e.getContext?await e.getContext():new sg,$e=(W&&W.preventScrollReset)===!0;if(_e&&jn(_e.formMethod)){await Ia(R,_,Te,Ce,Ue,Me.active,he,$e,_e,W&&W.unstable_defaultShouldRevalidate);return}be.set(R,{routeId:_,path:Te}),await Ot(R,_,Te,Ce,Ue,Me.active,he,$e,_e)}async function Ia(R,_,U,W,he,Ee,pe,Ce,Me,Te){On(),be.delete(R);let _e=N.fetchers.get(R);Hn(R,fE(Me,_e),{flushSync:pe});let Re=new AbortController,Ue=As(e.history,U,Re.signal,Me);if(Ee){let lt=await ht(W,new URL(Ue.url).pathname,Ue.signal,R);if(lt.type==="aborted")return;if(lt.type==="error"){Sn(R,_,lt.error,{flushSync:pe});return}else if(lt.matches)W=lt.matches;else{Sn(R,_,Ea(404,{pathname:U}),{flushSync:pe});return}}let $e=Kc(W,U);if(!$e.route.action&&!$e.route.lazy){let lt=Ea(405,{method:Me.formMethod,pathname:U,routeId:_});Sn(R,_,lt,{flushSync:pe});return}de.set(R,Re);let yt=we,nt=js(c,u,Ue,U,W,$e,s,he),Nt=await bn(Ue,U,nt,he,R),Qe=Nt[$e.route.id];if(!Qe){for(let lt of nt)if(Nt[lt.route.id]){Qe=Nt[lt.route.id];break}}if(Ue.signal.aborted){de.get(R)===Re&&de.delete(R);return}if(ke.has(R)){if(Oi(Qe)||ia(Qe)){Hn(R,Ar(void 0));return}}else{if(Oi(Qe))if(de.delete(R),k>yt){Hn(R,Ar(void 0));return}else return ie.add(R),Hn(R,Hl(Me)),mn(Ue,Qe,!1,{fetcherSubmission:Me,preventScrollReset:Ce});if(ia(Qe)){Sn(R,_,Qe.error);return}}let Ht=N.navigation.location||N.location,St=As(e.history,Ht,Re.signal),Qn=m||h,pn=N.navigation.state!=="idle"?ii(Qn,N.navigation.location,g):N.matches;tt(pn,"Didn't find any matches after fetcher action");let Kt=++we;F.set(R,Kt);let te=Hl(Me,Qe.data);N.fetchers.set(R,te);let{dsMatches:Ne,revalidatingFetchers:Pe}=hg(St,he,c,u,e.history,N,pn,Me,Ht,s,!1,Q,G,ke,be,ie,Qn,g,e.patchRoutesOnNavigation!=null,[$e.route.id,Qe],Te);Pe.filter(lt=>lt.key!==R).forEach(lt=>{let rr=lt.key,ir=N.fetchers.get(rr),hi=Hl(void 0,ir?ir.data:void 0);N.fetchers.set(rr,hi),Xt(rr),lt.controller&&de.set(rr,lt.controller)}),fe({fetchers:new Map(N.fetchers)});let et=()=>Pe.forEach(lt=>Xt(lt.key));Re.signal.addEventListener("abort",et);let{loaderResults:gt,fetcherResults:Ve}=await Xn(Ne,Pe,St,Ht,he);if(Re.signal.aborted)return;if(Re.signal.removeEventListener("abort",et),F.delete(R),de.delete(R),Pe.forEach(lt=>de.delete(lt.key)),N.fetchers.has(R)){let lt=Ar(Qe.data);N.fetchers.set(R,lt)}let at=Hc(gt);if(at)return mn(St,at.result,!1,{preventScrollReset:Ce});if(at=Hc(Ve),at)return ie.add(at.key),mn(St,at.result,!1,{preventScrollReset:Ce});let{loaderData:Pt,errors:mt}=Eg(N,pn,gt,void 0,Pe,Ve);oa(Kt),N.navigation.state==="loading"&&Kt>k?(tt(ce,"Expected pending action"),X&&X.abort(),Ie(N.navigation.location,{matches:pn,loaderData:Pt,errors:mt,fetchers:new Map(N.fetchers)})):(fe({errors:mt,loaderData:Sg(N.loaderData,Pt,pn,mt),fetchers:new Map(N.fetchers)}),Q=!1)}async function Ot(R,_,U,W,he,Ee,pe,Ce,Me){let Te=N.fetchers.get(R);Hn(R,Hl(Me,Te?Te.data:void 0),{flushSync:pe});let _e=new AbortController,Re=As(e.history,U,_e.signal);if(Ee){let Qe=await ht(W,new URL(Re.url).pathname,Re.signal,R);if(Qe.type==="aborted")return;if(Qe.type==="error"){Sn(R,_,Qe.error,{flushSync:pe});return}else if(Qe.matches)W=Qe.matches;else{Sn(R,_,Ea(404,{pathname:U}),{flushSync:pe});return}}let Ue=Kc(W,U);de.set(R,_e);let $e=we,yt=js(c,u,Re,U,W,Ue,s,he),Nt=(await bn(Re,U,yt,he,R))[Ue.route.id];if(de.get(R)===_e&&de.delete(R),!Re.signal.aborted){if(ke.has(R)){Hn(R,Ar(void 0));return}if(Oi(Nt))if(k>$e){Hn(R,Ar(void 0));return}else{ie.add(R),await mn(Re,Nt,!1,{preventScrollReset:Ce});return}if(ia(Nt)){Sn(R,_,Nt.error);return}Hn(R,Ar(Nt.data))}}async function mn(R,_,U,{submission:W,fetcherSubmission:he,preventScrollReset:Ee,replace:pe}={}){U||(le==null||le.resolve(),le=null),_.response.headers.has("X-Remix-Revalidate")&&(Q=!0);let Ce=_.response.headers.get("Location");tt(Ce,"Expected a Location header on the redirect Response"),Ce=vg(Ce,new URL(R.url),g,e.history);let Me=ro(N.location,Ce,{_isRedirect:!0});if(r){let yt=!1;if(_.response.headers.has("X-Remix-Reload-Document"))yt=!0;else if(c1(Ce)){const nt=G4(Ce,!0);yt=nt.origin!==n.location.origin||Ma(nt.pathname,g)==null}if(yt){pe?n.location.replace(Ce):n.location.assign(Ce);return}}X=null;let Te=pe===!0||_.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:_e,formAction:Re,formEncType:Ue}=N.navigation;!W&&!he&&_e&&Re&&Ue&&(W=Tg(N.navigation));let $e=W||he;if(U5.has(_.response.status)&&$e&&jn($e.formMethod))await Zt(Te,Me,{submission:{...$e,formAction:Ce},preventScrollReset:Ee||ue,enableViewTransition:U?xe:void 0});else{let yt=qd(Me,W);await Zt(Te,Me,{overrideNavigation:yt,fetcherSubmission:he,preventScrollReset:Ee||ue,enableViewTransition:U?xe:void 0})}}async function bn(R,_,U,W,he){var Ce;let Ee,pe={};try{Ee=await Q5(y,R,_,U,he,W,!1)}catch(Me){return U.filter(Te=>Te.shouldLoad).forEach(Te=>{pe[Te.route.id]={type:"error",error:Me}}),pe}if(R.signal.aborted)return pe;if(!jn(R.method))for(let Me of U){if(((Ce=Ee[Me.route.id])==null?void 0:Ce.type)==="error")break;!Ee.hasOwnProperty(Me.route.id)&&!N.loaderData.hasOwnProperty(Me.route.id)&&(!N.errors||!N.errors.hasOwnProperty(Me.route.id))&&Me.shouldCallHandler()&&(Ee[Me.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Me.route.id}`)})}for(let[Me,Te]of Object.entries(Ee))if(lE(Te)){let _e=Te.result;pe[Me]={type:"redirect",response:tE(_e,R,Me,U,g)}}else pe[Me]=await eE(Te);return pe}async function Xn(R,_,U,W,he){let Ee=bn(U,W,R,he,null),pe=Promise.all(_.map(async Te=>{if(Te.matches&&Te.match&&Te.request&&Te.controller){let Re=(await bn(Te.request,Te.path,Te.matches,he,Te.key))[Te.match.route.id];return{[Te.key]:Re}}else return Promise.resolve({[Te.key]:{type:"error",error:Ea(404,{pathname:Te.path})}})})),Ce=await Ee,Me=(await pe).reduce((Te,_e)=>Object.assign(Te,_e),{});return{loaderResults:Ce,fetcherResults:Me}}function On(){Q=!0,be.forEach((R,_)=>{de.has(_)&&G.add(_),Xt(_)})}function Hn(R,_,U={}){N.fetchers.set(R,_),fe({fetchers:new Map(N.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function Sn(R,_,U,W={}){let he=si(N.matches,_);Vn(R),fe({errors:{[he.route.id]:U},fetchers:new Map(N.fetchers)},{flushSync:(W&&W.flushSync)===!0})}function ar(R){return ge.set(R,(ge.get(R)||0)+1),ke.has(R)&&ke.delete(R),N.fetchers.get(R)||P5}function Rr(R,_){Xt(R,_==null?void 0:_.reason),Hn(R,Ar(null))}function Vn(R){let _=N.fetchers.get(R);de.has(R)&&!(_&&_.state==="loading"&&F.has(R))&&Xt(R),be.delete(R),F.delete(R),ie.delete(R),ke.delete(R),G.delete(R),N.fetchers.delete(R)}function tn(R){let _=(ge.get(R)||0)-1;_<=0?(ge.delete(R),ke.add(R)):ge.set(R,_),fe({fetchers:new Map(N.fetchers)})}function Xt(R,_){let U=de.get(R);U&&(U.abort(_),de.delete(R))}function sn(R){for(let _ of R){let U=ar(_),W=Ar(U.data);N.fetchers.set(_,W)}}function Cr(){let R=[],_=!1;for(let U of ie){let W=N.fetchers.get(U);tt(W,`Expected fetcher: ${U}`),W.state==="loading"&&(ie.delete(U),R.push(U),_=!0)}return sn(R),_}function oa(R){let _=[];for(let[U,W]of F)if(W<R){let he=N.fetchers.get(U);tt(he,`Expected fetcher: ${U}`),he.state==="loading"&&(Xt(U),F.delete(U),_.push(U))}return sn(_),_.length>0}function zn(R,_){let U=N.blockers.get(R)||Ol;return K.get(R)!==_&&K.set(R,_),U}function ca(R){N.blockers.delete(R),K.delete(R)}function ua(R,_){let U=N.blockers.get(R)||Ol;tt(U.state==="unblocked"&&_.state==="blocked"||U.state==="blocked"&&_.state==="blocked"||U.state==="blocked"&&_.state==="proceeding"||U.state==="blocked"&&_.state==="unblocked"||U.state==="proceeding"&&_.state==="unblocked",`Invalid blocker state transition: ${U.state} -> ${_.state}`);let W=new Map(N.blockers);W.set(R,_),fe({blockers:W})}function Pn({currentLocation:R,nextLocation:_,historyAction:U}){if(K.size===0)return;K.size>1&&hn(!1,"A router only supports one blocker at a time");let W=Array.from(K.entries()),[he,Ee]=W[W.length-1],pe=N.blockers.get(he);if(!(pe&&pe.state==="proceeding")&&Ee({currentLocation:R,nextLocation:_,historyAction:U}))return he}function nn(R){let _=Ea(404,{pathname:R}),U=m||h,{matches:W,route:he}=Oc(U);return{notFoundMatches:W,route:he,error:_}}function O(R,_,U){if(w=R,A=_,M=U||null,!j&&N.navigation===Gd){j=!0;let W=Ze(N.location,N.matches);W!=null&&fe({restoreScrollPosition:W})}return()=>{w=null,A=null,M=null}}function ae(R,_){return M&&M(R,_.map(W=>m5(W,N.loaderData)))||R.key}function Se(R,_){if(w&&A){let U=ae(R,_);w[U]=A()}}function Ze(R,_){if(w){let U=ae(R,_),W=w[U];if(typeof W=="number")return W}return null}function ft(R,_,U){if(e.patchRoutesOnNavigation)if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:Kl(_,U,g,!0)}}else return{active:!0,matches:Kl(_,U,g,!0)||[]};return{active:!1,matches:null}}async function ht(R,_,U,W){if(!e.patchRoutesOnNavigation)return{type:"success",matches:R};let he=R;for(;;){let Ee=m==null,pe=m||h,Ce=u;try{await e.patchRoutesOnNavigation({signal:U,path:_,matches:he,fetcherKey:W,patch:(_e,Re)=>{U.aborted||mg(_e,Re,pe,Ce,c,!1)}})}catch(_e){return{type:"error",error:_e,partialMatches:he}}finally{Ee&&!U.aborted&&(h=[...h])}if(U.aborted)return{type:"aborted"};let Me=ii(pe,_,g),Te=null;if(Me){if(Object.keys(Me[0].params).length===0)return{type:"success",matches:Me};if(Te=Kl(pe,_,g,!0),!(Te&&he.length<Te.length&&D(he,Te.slice(0,he.length))))return{type:"success",matches:Me}}if(Te||(Te=Kl(pe,_,g,!0)),!Te||D(he,Te))return{type:"success",matches:null};he=Te}}function D(R,_){return R.length===_.length&&R.every((U,W)=>U.route.id===_[W].route.id)}function J(R){u={},m=io(R,c,void 0,u)}function ye(R,_,U=!1){let W=m==null;mg(R,_,m||h,u,c,U),W&&(h=[...h],fe({}))}return re={get basename(){return g},get future(){return b},get state(){return N},get routes(){return h},get window(){return n},initialize:xt,subscribe:xn,enableScrollRestoration:O,navigate:qe,fetch:Pa,revalidate:Tt,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:ar,resetFetcher:Rr,deleteFetcher:tn,dispose:Et,getBlocker:zn,deleteBlocker:ca,patchRoutes:ye,_internalFetchControllers:de,_internalSetRoutes:J,_internalSetStateDoNotUseOrYouWillBreakYourApp(R){fe(R)}},e.unstable_instrumentations&&(re=D5(re,e.unstable_instrumentations.map(R=>R.router).filter(Boolean))),re}function F5(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Tf(e,n,r,s,l,c){let u,h;if(l){u=[];for(let g of n)if(u.push(g),g.route.id===l){h=g;break}}else u=n,h=n[n.length-1];let m=Mu(s||".",u1(u),Ma(e.pathname,r)||e.pathname,c==="path");if(s==null&&(m.search=e.search,m.hash=e.hash),(s==null||s===""||s===".")&&h){let g=m1(m.search);if(h.route.index&&!g)m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&g){let y=new URLSearchParams(m.search),b=y.getAll("index");y.delete("index"),b.filter(S=>S).forEach(S=>y.append("index",S));let x=y.toString();m.search=x?`?${x}`:""}}return r!=="/"&&(m.pathname=R5({basename:r,pathname:m.pathname})),Wa(m)}function fg(e,n,r){if(!r||!F5(r))return{path:n};if(r.formMethod&&!uE(r.formMethod))return{path:n,error:Ea(405,{method:r.formMethod})};let s=()=>({path:n,error:Ea(400,{type:"invalid-body"})}),c=(r.formMethod||"get").toUpperCase(),u=d6(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!jn(c))return s();let b=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((x,[S,w])=>`${x}${S}=${w}
|
|
60
|
+
`,""):String(r.body);return{path:n,submission:{formMethod:c,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:b}}}else if(r.formEncType==="application/json"){if(!jn(c))return s();try{let b=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:c,formAction:u,formEncType:r.formEncType,formData:void 0,json:b,text:void 0}}}catch{return s()}}}tt(typeof FormData=="function","FormData is not available in this environment");let h,m;if(r.formData)h=Rf(r.formData),m=r.formData;else if(r.body instanceof FormData)h=Rf(r.body),m=r.body;else if(r.body instanceof URLSearchParams)h=r.body,m=xg(h);else if(r.body==null)h=new URLSearchParams,m=new FormData;else try{h=new URLSearchParams(r.body),m=xg(h)}catch{return s()}let g={formMethod:c,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:m,json:void 0,text:void 0};if(jn(g.formMethod))return{path:n,submission:g};let y=tr(n);return e&&y.search&&m1(y.search)&&h.append("index",""),y.search=`?${h}`,{path:Wa(y),submission:g}}function hg(e,n,r,s,l,c,u,h,m,g,y,b,x,S,w,M,A,j,C,H,B){var ve;let Z=H?ia(H[1])?H[1].error:H[1].data:void 0,ee=l.createURL(c.location),re=l.createURL(m),N;if(y&&c.errors){let V=Object.keys(c.errors)[0];N=u.findIndex(Q=>Q.route.id===V)}else if(H&&ia(H[1])){let V=H[0];N=u.findIndex(Q=>Q.route.id===V)-1}let ce=H?H[1].statusCode:void 0,le=ce&&ce>=400,ue={currentUrl:ee,currentParams:((ve=c.matches[0])==null?void 0:ve.params)||{},nextUrl:re,nextParams:u[0].params,...h,actionResult:Z,actionStatus:ce},X=mo(u),xe=u.map((V,Q)=>{let{route:G}=V,de=null;if(N!=null&&Q>N)de=!1;else if(G.lazy)de=!0;else if(!f1(G))de=!1;else if(y){let{shouldLoad:ie}=r6(G,c.loaderData,c.errors);de=ie}else G5(c.loaderData,c.matches[Q],V)&&(de=!0);if(de!==null)return Mf(r,s,e,m,X,V,g,n,de);let we=!1;typeof B=="boolean"?we=B:le?we=!1:(b||ee.pathname+ee.search===re.pathname+re.search||ee.search!==re.search||q5(c.matches[Q],V))&&(we=!0);let k={...ue,defaultShouldRevalidate:we},F=Jl(V,k);return Mf(r,s,e,m,X,V,g,n,F,k,B)}),me=[];return w.forEach((V,Q)=>{if(y||!u.some(ge=>ge.route.id===V.routeId)||S.has(Q))return;let G=c.fetchers.get(Q),de=G&&G.state!=="idle"&&G.data===void 0,we=ii(A,V.path,j);if(!we){if(C&&de)return;me.push({key:Q,routeId:V.routeId,path:V.path,matches:null,match:null,request:null,controller:null});return}if(M.has(Q))return;let k=Kc(we,V.path),F=new AbortController,ie=As(l,V.path,F.signal),be=null;if(x.has(Q))x.delete(Q),be=js(r,s,ie,V.path,we,k,g,n);else if(de)b&&(be=js(r,s,ie,V.path,we,k,g,n));else{let ge;typeof B=="boolean"?ge=B:le?ge=!1:ge=b;let ke={...ue,defaultShouldRevalidate:ge};Jl(k,ke)&&(be=js(r,s,ie,V.path,we,k,g,n,ke))}be&&me.push({key:Q,routeId:V.routeId,path:V.path,matches:be,match:k,request:ie,controller:F})}),{dsMatches:xe,revalidatingFetchers:me}}function f1(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function r6(e,n,r){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!f1(e))return{shouldLoad:!1,renderFallback:!1};let s=n!=null&&e.id in n,l=r!=null&&r[e.id]!==void 0;if(!s&&l)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!s};let c=!s&&!l;return{shouldLoad:c,renderFallback:c}}function G5(e,n,r){let s=!n||r.route.id!==n.route.id,l=!e.hasOwnProperty(r.route.id);return s||l}function q5(e,n){let r=e.route.path;return e.pathname!==n.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==n.params["*"]}function Jl(e,n){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(n);if(typeof r=="boolean")return r}return n.defaultShouldRevalidate}function mg(e,n,r,s,l,c){let u;if(e){let g=s[e];tt(g,`No route found to patch children into: routeId = ${e}`),g.children||(g.children=[]),u=g.children}else u=r;let h=[],m=[];if(n.forEach(g=>{let y=u.find(b=>i6(g,b));y?m.push({existingRoute:y,newRoute:g}):h.push(g)}),h.length>0){let g=io(h,l,[e||"_","patch",String((u==null?void 0:u.length)||"0")],s);u.push(...g)}if(c&&m.length>0)for(let g=0;g<m.length;g++){let{existingRoute:y,newRoute:b}=m[g],x=y,[S]=io([b],l,[],{},!0);Object.assign(x,{element:S.element?S.element:x.element,errorElement:S.errorElement?S.errorElement:x.errorElement,hydrateFallbackElement:S.hydrateFallbackElement?S.hydrateFallbackElement:x.hydrateFallbackElement})}}function i6(e,n){var r;return"id"in e&&"id"in n&&e.id===n.id?!0:e.index===n.index&&e.path===n.path&&e.caseSensitive===n.caseSensitive?(!e.children||e.children.length===0)&&(!n.children||n.children.length===0)?!0:((r=e.children)==null?void 0:r.every((s,l)=>{var c;return(c=n.children)==null?void 0:c.some(u=>i6(s,u))}))??!1:!1}var pg=new WeakMap,s6=({key:e,route:n,manifest:r,mapRouteProperties:s})=>{let l=r[n.id];if(tt(l,"No route found in manifest"),!l.lazy||typeof l.lazy!="object")return;let c=l.lazy[e];if(!c)return;let u=pg.get(l);u||(u={},pg.set(l,u));let h=u[e];if(h)return h;let m=(async()=>{let g=u5(e),b=l[e]!==void 0&&e!=="hasErrorBoundary";if(g)hn(!g,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),u[e]=Promise.resolve();else if(b)hn(!1,`Route "${l.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let x=await c();x!=null&&(Object.assign(l,{[e]:x}),Object.assign(l,s(l)))}typeof l.lazy=="object"&&(l.lazy[e]=void 0,Object.values(l.lazy).every(x=>x===void 0)&&(l.lazy=void 0))})();return u[e]=m,m},gg=new WeakMap;function K5(e,n,r,s,l){let c=r[e.id];if(tt(c,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let y=gg.get(c);if(y)return{lazyRoutePromise:y,lazyHandlerPromise:y};let b=(async()=>{tt(typeof e.lazy=="function","No lazy route function found");let x=await e.lazy(),S={};for(let w in x){let M=x[w];if(M===void 0)continue;let A=f5(w),C=c[w]!==void 0&&w!=="hasErrorBoundary";A?hn(!A,"Route property "+w+" is not a supported property to be returned from a lazy route function. This property will be ignored."):C?hn(!C,`Route "${c.id}" has a static property "${w}" defined but its lazy function is also returning a value for this property. The lazy route property "${w}" will be ignored.`):S[w]=M}Object.assign(c,S),Object.assign(c,{...s(c),lazy:void 0})})();return gg.set(c,b),b.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:b}}let u=Object.keys(e.lazy),h=[],m;for(let y of u){if(l&&l.includes(y))continue;let b=s6({key:y,route:e,manifest:r,mapRouteProperties:s});b&&(h.push(b),y===n&&(m=b))}let g=h.length>0?Promise.all(h).then(()=>{}):void 0;return g==null||g.catch(()=>{}),m==null||m.catch(()=>{}),{lazyRoutePromise:g,lazyHandlerPromise:m}}async function yg(e){let n=e.matches.filter(l=>l.shouldLoad),r={};return(await Promise.all(n.map(l=>l.resolve()))).forEach((l,c)=>{r[n[c].route.id]=l}),r}async function Y5(e){return e.matches.some(n=>n.route.middleware)?l6(e,()=>yg(e)):yg(e)}function l6(e,n){return X5(e,n,s=>{if(cE(s))throw s;return s},iE,r);function r(s,l,c){if(c)return Promise.resolve(Object.assign(c.value,{[l]:{type:"error",result:s}}));{let{matches:u}=e,h=Math.min(Math.max(u.findIndex(g=>g.route.id===l),0),Math.max(u.findIndex(g=>g.shouldCallHandler()),0)),m=si(u,u[h].route.id).route.id;return Promise.resolve({[m]:{type:"error",result:s}})}}}async function X5(e,n,r,s,l){let{matches:c,...u}=e,h=c.flatMap(g=>g.route.middleware?g.route.middleware.map(y=>[g.route.id,y]):[]);return await o6(u,h,n,r,s,l)}async function o6(e,n,r,s,l,c,u=0){let{request:h}=e;if(h.signal.aborted)throw h.signal.reason??new Error(`Request aborted: ${h.method} ${h.url}`);let m=n[u];if(!m)return await r();let[g,y]=m,b,x=async()=>{if(b)throw new Error("You may only call `next()` once per middleware");try{return b={value:await o6(e,n,r,s,l,c,u+1)},b.value}catch(S){return b={value:await c(S,g,b)},b.value}};try{let S=await y(e,x),w=S!=null?s(S):void 0;return l(w)?w:b?w??b.value:(b={value:await x()},b.value)}catch(S){return await c(S,g,b)}}function c6(e,n,r,s,l){let c=s6({key:"middleware",route:s.route,manifest:n,mapRouteProperties:e}),u=K5(s.route,jn(r.method)?"action":"loader",n,e,l);return{middleware:c,route:u.lazyRoutePromise,handler:u.lazyHandlerPromise}}function Mf(e,n,r,s,l,c,u,h,m,g=null,y){let b=!1,x=c6(e,n,r,c,u);return{...c,_lazyPromises:x,shouldLoad:m,shouldRevalidateArgs:g,shouldCallHandler(S){return b=!0,g?typeof y=="boolean"?Jl(c,{...g,defaultShouldRevalidate:y}):typeof S=="boolean"?Jl(c,{...g,defaultShouldRevalidate:S}):Jl(c,g):m},resolve(S){let{lazy:w,loader:M,middleware:A}=c.route,j=b||m||S&&!jn(r.method)&&(w||M),C=A&&A.length>0&&!M&&!w;return j&&(jn(r.method)||!C)?J5({request:r,path:s,unstable_pattern:l,match:c,lazyHandlerPromise:x==null?void 0:x.handler,lazyRoutePromise:x==null?void 0:x.route,handlerOverride:S,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function js(e,n,r,s,l,c,u,h,m=null){return l.map(g=>g.route.id!==c.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:m,shouldCallHandler:()=>!1,_lazyPromises:c6(e,n,r,g,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Mf(e,n,r,s,mo(l),g,u,h,!0,m))}async function Q5(e,n,r,s,l,c,u){s.some(y=>{var b;return(b=y._lazyPromises)==null?void 0:b.middleware})&&await Promise.all(s.map(y=>{var b;return(b=y._lazyPromises)==null?void 0:b.middleware}));let h={request:n,unstable_url:u6(n,r),unstable_pattern:mo(s),params:s[0].params,context:c,matches:s},g=await e({...h,fetcherKey:l,runClientMiddleware:y=>{let b=h;return l6(b,()=>y({...b,fetcherKey:l,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(s.flatMap(y=>{var b,x;return[(b=y._lazyPromises)==null?void 0:b.handler,(x=y._lazyPromises)==null?void 0:x.route]}))}catch{}return g}async function J5({request:e,path:n,unstable_pattern:r,match:s,lazyHandlerPromise:l,lazyRoutePromise:c,handlerOverride:u,scopedContext:h}){let m,g,y=jn(e.method),b=y?"action":"loader",x=S=>{let w,M=new Promise((C,H)=>w=H);g=()=>w(),e.signal.addEventListener("abort",g);let A=C=>typeof S!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${b}" [routeId: ${s.route.id}]`)):S({request:e,unstable_url:u6(e,n),unstable_pattern:r,params:s.params,context:h},...C!==void 0?[C]:[]),j=(async()=>{try{return{type:"data",result:await(u?u(H=>A(H)):A())}}catch(C){return{type:"error",result:C}}})();return Promise.race([j,M])};try{let S=y?s.route.action:s.route.loader;if(l||c)if(S){let w,[M]=await Promise.all([x(S).catch(A=>{w=A}),l,c]);if(w!==void 0)throw w;m=M}else{await l;let w=y?s.route.action:s.route.loader;if(w)[m]=await Promise.all([x(w),c]);else if(b==="action"){let M=new URL(e.url),A=M.pathname+M.search;throw Ea(405,{method:e.method,pathname:A,routeId:s.route.id})}else return{type:"data",result:void 0}}else if(S)m=await x(S);else{let w=new URL(e.url),M=w.pathname+w.search;throw Ea(404,{pathname:M})}}catch(S){return{type:"error",result:S}}finally{g&&e.signal.removeEventListener("abort",g)}return m}async function W5(e){let n=e.headers.get("Content-Type");return n&&/\bapplication\/json\b/.test(n)?e.body==null?null:e.json():e.text()}async function eE(e){var s,l,c,u,h;let{result:n,type:r}=e;if(h1(n)){let m;try{m=await W5(n)}catch(g){return{type:"error",error:g}}return r==="error"?{type:"error",error:new ho(n.status,n.statusText,m),statusCode:n.status,headers:n.headers}:{type:"data",data:m,statusCode:n.status,headers:n.headers}}return r==="error"?Ag(n)?n.data instanceof Error?{type:"error",error:n.data,statusCode:(s=n.init)==null?void 0:s.status,headers:(l=n.init)!=null&&l.headers?new Headers(n.init.headers):void 0}:{type:"error",error:rE(n),statusCode:so(n)?n.status:void 0,headers:(c=n.init)!=null&&c.headers?new Headers(n.init.headers):void 0}:{type:"error",error:n,statusCode:so(n)?n.status:void 0}:Ag(n)?{type:"data",data:n.data,statusCode:(u=n.init)==null?void 0:u.status,headers:(h=n.init)!=null&&h.headers?new Headers(n.init.headers):void 0}:{type:"data",data:n}}function tE(e,n,r,s,l){let c=e.headers.get("Location");if(tt(c,"Redirects returned/thrown from loaders/actions must have a Location header"),!c1(c)){let u=s.slice(0,s.findIndex(h=>h.route.id===r)+1);c=Tf(new URL(n.url),u,l,c),e.headers.set("Location",c)}return e}var bg=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function vg(e,n,r,s){if(c1(e)){let l=e,c=l.startsWith("//")?new URL(n.protocol+l):new URL(l);if(bg.includes(c.protocol))throw new Error("Invalid redirect location");let u=Ma(c.pathname,r)!=null;if(c.origin===n.origin&&u)return d1(c.pathname)+c.search+c.hash}try{let l=s.createURL(e);if(bg.includes(l.protocol))throw new Error("Invalid redirect location")}catch{}return e}function As(e,n,r,s){let l=e.createURL(d6(n)).toString(),c={signal:r};if(s&&jn(s.formMethod)){let{formMethod:u,formEncType:h}=s;c.method=u.toUpperCase(),h==="application/json"?(c.headers=new Headers({"Content-Type":h}),c.body=JSON.stringify(s.json)):h==="text/plain"?c.body=s.text:h==="application/x-www-form-urlencoded"&&s.formData?c.body=Rf(s.formData):c.body=s.formData}return new Request(l,c)}function u6(e,n){let r=new URL(e.url),s=typeof n=="string"?tr(n):n;if(r.pathname=s.pathname||"/",s.search){let l=new URLSearchParams(s.search),c=l.getAll("index");l.delete("index");for(let u of c.filter(Boolean))l.append("index",u);r.search=l.size?`?${l.toString()}`:""}else r.search="";return r.hash=s.hash||"",r}function Rf(e){let n=new URLSearchParams;for(let[r,s]of e.entries())n.append(r,typeof s=="string"?s:s.name);return n}function xg(e){let n=new FormData;for(let[r,s]of e.entries())n.append(r,s);return n}function nE(e,n,r,s=!1,l=!1){let c={},u=null,h,m=!1,g={},y=r&&ia(r[1])?r[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in n))return;let x=b.route.id,S=n[x];if(tt(!Oi(S),"Cannot handle redirect results in processLoaderData"),ia(S)){let w=S.error;if(y!==void 0&&(w=y,y=void 0),u=u||{},l)u[x]=w;else{let M=si(e,x);u[M.route.id]==null&&(u[M.route.id]=w)}s||(c[x]=a6),m||(m=!0,h=so(S.error)?S.error.status:500),S.headers&&(g[x]=S.headers)}else c[x]=S.data,S.statusCode&&S.statusCode!==200&&!m&&(h=S.statusCode),S.headers&&(g[x]=S.headers)}),y!==void 0&&r&&(u={[r[0]]:y},r[2]&&(c[r[2]]=void 0)),{loaderData:c,errors:u,statusCode:h||200,loaderHeaders:g}}function Eg(e,n,r,s,l,c){let{loaderData:u,errors:h}=nE(n,r,s);return l.filter(m=>!m.matches||m.matches.some(g=>g.shouldLoad)).forEach(m=>{let{key:g,match:y,controller:b}=m;if(b&&b.signal.aborted)return;let x=c[g];if(tt(x,"Did not find corresponding fetcher result"),ia(x)){let S=si(e.matches,y==null?void 0:y.route.id);h&&h[S.route.id]||(h={...h,[S.route.id]:x.error}),e.fetchers.delete(g)}else if(Oi(x))tt(!1,"Unhandled fetcher revalidation redirect");else{let S=Ar(x.data);e.fetchers.set(g,S)}}),{loaderData:u,errors:h}}function Sg(e,n,r,s){let l=Object.entries(n).filter(([,c])=>c!==a6).reduce((c,[u,h])=>(c[u]=h,c),{});for(let c of r){let u=c.route.id;if(!n.hasOwnProperty(u)&&e.hasOwnProperty(u)&&c.route.loader&&(l[u]=e[u]),s&&s.hasOwnProperty(u))break}return l}function wg(e){return e?ia(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function si(e,n){return(n?e.slice(0,e.findIndex(s=>s.route.id===n)+1):[...e]).reverse().find(s=>s.route.hasErrorBoundary===!0)||e[0]}function Oc(e){let n=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function Ea(e,{pathname:n,routeId:r,method:s,type:l,message:c}={}){let u="Unknown Server Error",h="Unknown @remix-run/router error";return e===400?(u="Bad Request",s&&n&&r?h=`You made a ${s} request to "${n}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:l==="invalid-body"&&(h="Unable to encode submission body")):e===403?(u="Forbidden",h=`Route "${r}" does not match URL "${n}"`):e===404?(u="Not Found",h=`No route matches URL "${n}"`):e===405&&(u="Method Not Allowed",s&&n&&r?h=`You made a ${s.toUpperCase()} request to "${n}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:s&&(h=`Invalid request method "${s.toUpperCase()}"`)),new ho(e||500,u,new Error(h),!0)}function Hc(e){let n=Object.entries(e);for(let r=n.length-1;r>=0;r--){let[s,l]=n[r];if(Oi(l))return{key:s,result:l}}}function d6(e){let n=typeof e=="string"?tr(e):e;return Wa({...n,hash:""})}function aE(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function rE(e){var n,r;return new ho(((n=e.init)==null?void 0:n.status)??500,((r=e.init)==null?void 0:r.statusText)??"Internal Server Error",e.data)}function iE(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([n,r])=>typeof n=="string"&&sE(r))}function sE(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function lE(e){return h1(e.result)&&t6.has(e.result.status)}function ia(e){return e.type==="error"}function Oi(e){return(e&&e.type)==="redirect"}function Ag(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function h1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function oE(e){return t6.has(e)}function cE(e){return h1(e)&&oE(e.status)&&e.headers.has("Location")}function uE(e){return Z5.has(e.toUpperCase())}function jn(e){return z5.has(e.toUpperCase())}function m1(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function Kc(e,n){let r=typeof n=="string"?tr(n).search:n.search;if(e[e.length-1].route.index&&m1(r||""))return e[e.length-1];let s=X4(e);return s[s.length-1]}function Tg(e){let{formMethod:n,formAction:r,formEncType:s,text:l,formData:c,json:u}=e;if(!(!n||!r||!s)){if(l!=null)return{formMethod:n,formAction:r,formEncType:s,formData:void 0,json:void 0,text:l};if(c!=null)return{formMethod:n,formAction:r,formEncType:s,formData:c,json:void 0,text:void 0};if(u!==void 0)return{formMethod:n,formAction:r,formEncType:s,formData:void 0,json:u,text:void 0}}}function qd(e,n){return n?{state:"loading",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function dE(e,n){return{state:"submitting",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function Hl(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function fE(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function Ar(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function hE(e,n){try{let r=e.sessionStorage.getItem(n6);if(r){let s=JSON.parse(r);for(let[l,c]of Object.entries(s||{}))c&&Array.isArray(c)&&n.set(l,new Set(c||[]))}}catch{}}function mE(e,n){if(n.size>0){let r={};for(let[s,l]of n)r[s]=[...l];try{e.sessionStorage.setItem(n6,JSON.stringify(r))}catch(s){hn(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function Mg(){let e,n,r=new Promise((s,l)=>{e=async c=>{s(c);try{await r}catch{}},n=async c=>{l(c);try{await r}catch{}}});return{promise:r,resolve:e,reject:n}}var Pi=d.createContext(null);Pi.displayName="DataRouter";var po=d.createContext(null);po.displayName="DataRouterState";var f6=d.createContext(!1);function h6(){return d.useContext(f6)}var p1=d.createContext({isTransitioning:!1});p1.displayName="ViewTransition";var m6=d.createContext(new Map);m6.displayName="Fetchers";var pE=d.createContext(null);pE.displayName="Await";var Ra=d.createContext(null);Ra.displayName="Navigation";var Ru=d.createContext(null);Ru.displayName="Location";var Ba=d.createContext({outlet:null,matches:[],isDataRoute:!1});Ba.displayName="Route";var g1=d.createContext(null);g1.displayName="RouteError";var p6="REACT_ROUTER_ERROR",gE="REDIRECT",yE="ROUTE_ERROR_RESPONSE";function bE(e){if(e.startsWith(`${p6}:${gE}:{`))try{let n=JSON.parse(e.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function vE(e){if(e.startsWith(`${p6}:${yE}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new ho(n.status,n.statusText,n.data)}catch{}}function xE(e,{relative:n}={}){tt(go(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=d.useContext(Ra),{hash:l,pathname:c,search:u}=bo(e,{relative:n}),h=c;return r!=="/"&&(h=c==="/"?r:Aa([r,c])),s.createHref({pathname:h,search:u,hash:l})}function go(){return d.useContext(Ru)!=null}function Za(){return tt(go(),"useLocation() may be used only in the context of a <Router> component."),d.useContext(Ru).location}var g6="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function y6(e){d.useContext(Ra).static||d.useLayoutEffect(e)}function yo(){let{isDataRoute:e}=d.useContext(Ba);return e?OE():EE()}function EE(){tt(go(),"useNavigate() may be used only in the context of a <Router> component.");let e=d.useContext(Pi),{basename:n,navigator:r}=d.useContext(Ra),{matches:s}=d.useContext(Ba),{pathname:l}=Za(),c=JSON.stringify(u1(s)),u=d.useRef(!1);return y6(()=>{u.current=!0}),d.useCallback((m,g={})=>{if(hn(u.current,g6),!u.current)return;if(typeof m=="number"){r.go(m);return}let y=Mu(m,JSON.parse(c),l,g.relative==="path");e==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Aa([n,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[n,r,c,l,e])}var SE=d.createContext(null);function wE(e){let n=d.useContext(Ba).outlet;return d.useMemo(()=>n&&d.createElement(SE.Provider,{value:e},n),[n,e])}function b6(){let{matches:e}=d.useContext(Ba),n=e[e.length-1];return n?n.params:{}}function bo(e,{relative:n}={}){let{matches:r}=d.useContext(Ba),{pathname:s}=Za(),l=JSON.stringify(u1(r));return d.useMemo(()=>Mu(e,JSON.parse(l),s,n==="path"),[e,l,s,n])}function AE(e,n,r){tt(go(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=d.useContext(Ra),{matches:l}=d.useContext(Ba),c=l[l.length-1],u=c?c.params:{},h=c?c.pathname:"/",m=c?c.pathnameBase:"/",g=c&&c.route;{let A=g&&g.path||"";x6(h,!g||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
61
|
+
|
|
62
|
+
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let y=Za(),b;b=y;let x=b.pathname||"/",S=x;if(m!=="/"){let A=m.replace(/^\//,"").split("/");S="/"+x.replace(/^\//,"").split("/").slice(A.length).join("/")}let w=ii(e,{pathname:S});return hn(g||w!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),hn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),kE(w&&w.map(A=>Object.assign({},A,{params:Object.assign({},u,A.params),pathname:Aa([m,s.encodeLocation?s.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:Aa([m,s.encodeLocation?s.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),l,r)}function TE(){let e=LE(),n=so(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=d.createElement(d.Fragment,null,d.createElement("p",null,"💿 Hey developer 👋"),d.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",d.createElement("code",{style:c},"ErrorBoundary")," or"," ",d.createElement("code",{style:c},"errorElement")," prop on your route.")),d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},n),r?d.createElement("pre",{style:l},r):null,u)}var ME=d.createElement(TE,null),v6=class extends d.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.onError?this.props.onError(e,n):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=vE(e.digest);r&&(e=r)}let n=e!==void 0?d.createElement(Ba.Provider,{value:this.props.routeContext},d.createElement(g1.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?d.createElement(RE,{error:e},n):n}};v6.contextType=f6;var Kd=new WeakMap;function RE({children:e,error:n}){let{basename:r}=d.useContext(Ra);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let s=bE(n.digest);if(s){let l=Kd.get(n);if(l)throw l;let c=J4(s.location,r);if(Q4&&!Kd.get(n))if(c.isExternal||s.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:s.replace}));throw Kd.set(n,u),u}return d.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return e}function CE({routeContext:e,match:n,children:r}){let s=d.useContext(Pi);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(Ba.Provider,{value:e},r)}function kE(e,n=[],r){let s=r==null?void 0:r.state;if(e==null){if(!s)return null;if(s.errors)e=s.matches;else if(n.length===0&&!s.initialized&&s.matches.length>0)e=s.matches;else return null}let l=e,c=s==null?void 0:s.errors;if(c!=null){let y=l.findIndex(b=>b.route.id&&(c==null?void 0:c[b.route.id])!==void 0);tt(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),l=l.slice(0,Math.min(l.length,y+1))}let u=!1,h=-1;if(r&&s){u=s.renderFallback;for(let y=0;y<l.length;y++){let b=l[y];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(h=y),b.route.id){let{loaderData:x,errors:S}=s,w=b.route.loader&&!x.hasOwnProperty(b.route.id)&&(!S||S[b.route.id]===void 0);if(b.route.lazy||w){r.isStatic&&(u=!0),h>=0?l=l.slice(0,h+1):l=[l[0]];break}}}}let m=r==null?void 0:r.onError,g=s&&m?(y,b)=>{var x,S;m(y,{location:s.location,params:((S=(x=s.matches)==null?void 0:x[0])==null?void 0:S.params)??{},unstable_pattern:mo(s.matches),errorInfo:b})}:void 0;return l.reduceRight((y,b,x)=>{let S,w=!1,M=null,A=null;s&&(S=c&&b.route.id?c[b.route.id]:void 0,M=b.route.errorElement||ME,u&&(h<0&&x===0?(x6("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,A=null):h===x&&(w=!0,A=b.route.hydrateFallbackElement||null)));let j=n.concat(l.slice(0,x+1)),C=()=>{let H;return S?H=M:w?H=A:b.route.Component?H=d.createElement(b.route.Component,null):b.route.element?H=b.route.element:H=y,d.createElement(CE,{match:b,routeContext:{outlet:y,matches:j,isDataRoute:s!=null},children:H})};return s&&(b.route.ErrorBoundary||b.route.errorElement||x===0)?d.createElement(v6,{location:s.location,revalidation:s.revalidation,component:M,error:S,children:C(),routeContext:{outlet:null,matches:j,isDataRoute:!0},onError:g}):C()},null)}function y1(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function NE(e){let n=d.useContext(Pi);return tt(n,y1(e)),n}function _E(e){let n=d.useContext(po);return tt(n,y1(e)),n}function jE(e){let n=d.useContext(Ba);return tt(n,y1(e)),n}function b1(e){let n=jE(e),r=n.matches[n.matches.length-1];return tt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function DE(){return b1("useRouteId")}function LE(){var s;let e=d.useContext(g1),n=_E("useRouteError"),r=b1("useRouteError");return e!==void 0?e:(s=n.errors)==null?void 0:s[r]}function OE(){let{router:e}=NE("useNavigate"),n=b1("useNavigate"),r=d.useRef(!1);return y6(()=>{r.current=!0}),d.useCallback(async(l,c={})=>{hn(r.current,g6),r.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:n,...c}))},[e,n])}var Rg={};function x6(e,n,r){!n&&!Rg[e]&&(Rg[e]=!0,hn(!1,r))}var Cg={};function kg(e,n){!e&&!Cg[n]&&(Cg[n]=!0,console.warn(n))}var HE="useOptimistic",Ng=Q3[HE],VE=()=>{};function zE(e){return Ng?Ng(e):[e,VE]}function BE(e){let n={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&hn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(n,{element:d.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&hn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(n,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&hn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(n,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),n}var ZE=["HydrateFallback","hydrateFallbackElement"],UE=class{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}};function PE({router:e,flushSync:n,onError:r,unstable_useTransitions:s}){s=h6()||s;let[c,u]=d.useState(e.state),[h,m]=zE(c),[g,y]=d.useState(),[b,x]=d.useState({isTransitioning:!1}),[S,w]=d.useState(),[M,A]=d.useState(),[j,C]=d.useState(),H=d.useRef(new Map),B=d.useCallback((ce,{deletedFetchers:le,newErrors:ue,flushSync:X,viewTransitionOpts:xe})=>{ue&&r&&Object.values(ue).forEach(ve=>{var V;return r(ve,{location:ce.location,params:((V=ce.matches[0])==null?void 0:V.params)??{},unstable_pattern:mo(ce.matches)})}),ce.fetchers.forEach((ve,V)=>{ve.data!==void 0&&H.current.set(V,ve.data)}),le.forEach(ve=>H.current.delete(ve)),kg(X===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let me=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(kg(xe==null||me,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!xe||!me){n&&X?n(()=>u(ce)):s===!1?u(ce):d.startTransition(()=>{s===!0&&m(ve=>_g(ve,ce)),u(ce)});return}if(n&&X){n(()=>{M&&(S==null||S.resolve(),M.skipTransition()),x({isTransitioning:!0,flushSync:!0,currentLocation:xe.currentLocation,nextLocation:xe.nextLocation})});let ve=e.window.document.startViewTransition(()=>{n(()=>u(ce))});ve.finished.finally(()=>{n(()=>{w(void 0),A(void 0),y(void 0),x({isTransitioning:!1})})}),n(()=>A(ve));return}M?(S==null||S.resolve(),M.skipTransition(),C({state:ce,currentLocation:xe.currentLocation,nextLocation:xe.nextLocation})):(y(ce),x({isTransitioning:!0,flushSync:!1,currentLocation:xe.currentLocation,nextLocation:xe.nextLocation}))},[e.window,n,M,S,s,m,r]);d.useLayoutEffect(()=>e.subscribe(B),[e,B]);let Z=h.initialized;d.useLayoutEffect(()=>{!Z&&e.state.initialized&&B(e.state,{deletedFetchers:[],flushSync:!1,newErrors:null})},[Z,B,e.state]),d.useEffect(()=>{b.isTransitioning&&!b.flushSync&&w(new UE)},[b]),d.useEffect(()=>{if(S&&g&&e.window){let ce=g,le=S.promise,ue=e.window.document.startViewTransition(async()=>{s===!1?u(ce):d.startTransition(()=>{s===!0&&m(X=>_g(X,ce)),u(ce)}),await le});ue.finished.finally(()=>{w(void 0),A(void 0),y(void 0),x({isTransitioning:!1})}),A(ue)}},[g,S,e.window,s,m]),d.useEffect(()=>{S&&g&&h.location.key===g.location.key&&S.resolve()},[S,M,h.location,g]),d.useEffect(()=>{!b.isTransitioning&&j&&(y(j.state),x({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}),C(void 0))},[b.isTransitioning,j]);let ee=d.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:ce=>e.navigate(ce),push:(ce,le,ue)=>e.navigate(ce,{state:le,preventScrollReset:ue==null?void 0:ue.preventScrollReset}),replace:(ce,le,ue)=>e.navigate(ce,{replace:!0,state:le,preventScrollReset:ue==null?void 0:ue.preventScrollReset})}),[e]),re=e.basename||"/",N=d.useMemo(()=>({router:e,navigator:ee,static:!1,basename:re,onError:r}),[e,ee,re,r]);return d.createElement(d.Fragment,null,d.createElement(Pi.Provider,{value:N},d.createElement(po.Provider,{value:h},d.createElement(m6.Provider,{value:H.current},d.createElement(p1.Provider,{value:b},d.createElement(GE,{basename:re,location:h.location,navigationType:h.historyAction,navigator:ee,unstable_useTransitions:s},d.createElement(IE,{routes:e.routes,future:e.future,state:h,isStatic:!1,onError:r})))))),null)}function _g(e,n){return{...e,navigation:n.navigation.state!=="idle"?n.navigation:e.navigation,revalidation:n.revalidation!=="idle"?n.revalidation:e.revalidation,actionData:n.navigation.state!=="submitting"?n.actionData:e.actionData,fetchers:n.fetchers}}var IE=d.memo($E);function $E({routes:e,future:n,state:r,isStatic:s,onError:l}){return AE(e,void 0,{state:r,isStatic:s,onError:l})}function FE(e){return wE(e.context)}function GE({basename:e="/",children:n=null,location:r,navigationType:s="POP",navigator:l,static:c=!1,unstable_useTransitions:u}){tt(!go(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=e.replace(/^\/*/,"/"),m=d.useMemo(()=>({basename:h,navigator:l,static:c,unstable_useTransitions:u,future:{}}),[h,l,c,u]);typeof r=="string"&&(r=tr(r));let{pathname:g="/",search:y="",hash:b="",state:x=null,key:S="default",unstable_mask:w}=r,M=d.useMemo(()=>{let A=Ma(g,h);return A==null?null:{location:{pathname:A,search:y,hash:b,state:x,key:S,unstable_mask:w},navigationType:s}},[h,g,y,b,x,S,s,w]);return hn(M!=null,`<Router basename="${h}"> is not able to match the URL "${g}${y}${b}" because it does not start with the basename, so the <Router> won't render anything.`),M==null?null:d.createElement(Ra.Provider,{value:m},d.createElement(Ru.Provider,{children:n,value:M}))}var Yc="get",Xc="application/x-www-form-urlencoded";function Cu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function qE(e){return Cu(e)&&e.tagName.toLowerCase()==="button"}function KE(e){return Cu(e)&&e.tagName.toLowerCase()==="form"}function YE(e){return Cu(e)&&e.tagName.toLowerCase()==="input"}function XE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QE(e,n){return e.button===0&&(!n||n==="_self")&&!XE(e)}var Vc=null;function JE(){if(Vc===null)try{new FormData(document.createElement("form"),0),Vc=!1}catch{Vc=!0}return Vc}var WE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Yd(e){return e!=null&&!WE.has(e)?(hn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xc}"`),null):e}function e9(e,n){let r,s,l,c,u;if(KE(e)){let h=e.getAttribute("action");s=h?Ma(h,n):null,r=e.getAttribute("method")||Yc,l=Yd(e.getAttribute("enctype"))||Xc,c=new FormData(e)}else if(qE(e)||YE(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=e.getAttribute("formaction")||h.getAttribute("action");if(s=m?Ma(m,n):null,r=e.getAttribute("formmethod")||h.getAttribute("method")||Yc,l=Yd(e.getAttribute("formenctype"))||Yd(h.getAttribute("enctype"))||Xc,c=new FormData(h,e),!JE()){let{name:g,type:y,value:b}=e;if(y==="image"){let x=g?`${g}.`:"";c.append(`${x}x`,"0"),c.append(`${x}y`,"0")}else g&&c.append(g,b)}}else{if(Cu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Yc,s=null,l=Xc,u=e}return c&&l==="text/plain"&&(u=c,c=void 0),{action:s,method:r.toLowerCase(),encType:l,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function v1(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function E6(e,n,r,s){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${s}`:l.pathname=`${l.pathname}.${s}`:l.pathname==="/"?l.pathname=`_root.${s}`:n&&Ma(l.pathname,n)==="/"?l.pathname=`${ou(n)}/_root.${s}`:l.pathname=`${ou(l.pathname)}.${s}`,l}async function t9(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function n9(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function a9(e,n,r){let s=await Promise.all(e.map(async l=>{let c=n.routes[l.route.id];if(c){let u=await t9(c,r);return u.links?u.links():[]}return[]}));return l9(s.flat(1).filter(n9).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function jg(e,n,r,s,l,c){let u=(m,g)=>r[g]?m.route.id!==r[g].route.id:!0,h=(m,g)=>{var y;return r[g].pathname!==m.pathname||((y=r[g].route.path)==null?void 0:y.endsWith("*"))&&r[g].params["*"]!==m.params["*"]};return c==="assets"?n.filter((m,g)=>u(m,g)||h(m,g)):c==="data"?n.filter((m,g)=>{var b;let y=s.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(u(m,g)||h(m,g))return!0;if(m.route.shouldRevalidate){let x=m.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function r9(e,n,{includeHydrateFallback:r}={}){return i9(e.map(s=>{let l=n.routes[s.route.id];if(!l)return[];let c=[l.module];return l.clientActionModule&&(c=c.concat(l.clientActionModule)),l.clientLoaderModule&&(c=c.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(c=c.concat(l.hydrateFallbackModule)),l.imports&&(c=c.concat(l.imports)),c}).flat(1))}function i9(e){return[...new Set(e)]}function s9(e){let n={},r=Object.keys(e).sort();for(let s of r)n[s]=e[s];return n}function l9(e,n){let r=new Set;return new Set(n),e.reduce((s,l)=>{let c=JSON.stringify(s9(l));return r.has(c)||(r.add(c),s.push({key:c,link:l})),s},[])}function x1(){let e=d.useContext(Pi);return v1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function o9(){let e=d.useContext(po);return v1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var E1=d.createContext(void 0);E1.displayName="FrameworkContext";function S1(){let e=d.useContext(E1);return v1(e,"You must render this element inside a <HydratedRouter> element"),e}function c9(e,n){let r=d.useContext(E1),[s,l]=d.useState(!1),[c,u]=d.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:g,onMouseLeave:y,onTouchStart:b}=n,x=d.useRef(null);d.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let M=j=>{j.forEach(C=>{u(C.isIntersecting)})},A=new IntersectionObserver(M,{threshold:.5});return x.current&&A.observe(x.current),()=>{A.disconnect()}}},[e]),d.useEffect(()=>{if(s){let M=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(M)}}},[s]);let S=()=>{l(!0)},w=()=>{l(!1),u(!1)};return r?e!=="intent"?[c,x,{}]:[c,x,{onFocus:Vl(h,S),onBlur:Vl(m,w),onMouseEnter:Vl(g,S),onMouseLeave:Vl(y,w),onTouchStart:Vl(b,S)}]:[!1,x,{}]}function Vl(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function u9({page:e,...n}){let r=h6(),{router:s}=x1(),l=d.useMemo(()=>ii(s.routes,e,s.basename),[s.routes,e,s.basename]);return l?r?d.createElement(f9,{page:e,matches:l,...n}):d.createElement(h9,{page:e,matches:l,...n}):null}function d9(e){let{manifest:n,routeModules:r}=S1(),[s,l]=d.useState([]);return d.useEffect(()=>{let c=!1;return a9(e,n,r).then(u=>{c||l(u)}),()=>{c=!0}},[e,n,r]),s}function f9({page:e,matches:n,...r}){let s=Za(),{future:l}=S1(),{basename:c}=x1(),u=d.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let h=E6(e,c,l.unstable_trailingSlashAwareDataRequests,"rsc"),m=!1,g=[];for(let y of n)typeof y.route.shouldRevalidate=="function"?m=!0:g.push(y.route.id);return m&&g.length>0&&h.searchParams.set("_routes",g.join(",")),[h.pathname+h.search]},[c,l.unstable_trailingSlashAwareDataRequests,e,s,n]);return d.createElement(d.Fragment,null,u.map(h=>d.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...r})))}function h9({page:e,matches:n,...r}){let s=Za(),{future:l,manifest:c,routeModules:u}=S1(),{basename:h}=x1(),{loaderData:m,matches:g}=o9(),y=d.useMemo(()=>jg(e,n,g,c,s,"data"),[e,n,g,c,s]),b=d.useMemo(()=>jg(e,n,g,c,s,"assets"),[e,n,g,c,s]),x=d.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let M=new Set,A=!1;if(n.forEach(C=>{var B;let H=c.routes[C.route.id];!H||!H.hasLoader||(!y.some(Z=>Z.route.id===C.route.id)&&C.route.id in m&&((B=u[C.route.id])!=null&&B.shouldRevalidate)||H.hasClientLoader?A=!0:M.add(C.route.id))}),M.size===0)return[];let j=E6(e,h,l.unstable_trailingSlashAwareDataRequests,"data");return A&&M.size>0&&j.searchParams.set("_routes",n.filter(C=>M.has(C.route.id)).map(C=>C.route.id).join(",")),[j.pathname+j.search]},[h,l.unstable_trailingSlashAwareDataRequests,m,s,c,y,n,e,u]),S=d.useMemo(()=>r9(b,c),[b,c]),w=d9(b);return d.createElement(d.Fragment,null,x.map(M=>d.createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...r})),S.map(M=>d.createElement("link",{key:M,rel:"modulepreload",href:M,...r})),w.map(({key:M,link:A})=>d.createElement("link",{key:M,nonce:r.nonce,...A,crossOrigin:A.crossOrigin??r.crossOrigin})))}function m9(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var p9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{p9&&(window.__reactRouterVersion="7.14.1")}catch{}function g9(e,n){return $5({basename:n==null?void 0:n.basename,getContext:n==null?void 0:n.getContext,future:n==null?void 0:n.future,history:s5({window:n==null?void 0:n.window}),hydrationData:y9(),routes:e,mapRouteProperties:BE,hydrationRouteProperties:ZE,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window,unstable_instrumentations:n==null?void 0:n.unstable_instrumentations}).initialize()}function y9(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:b9(e.errors)}),e}function b9(e){if(!e)return null;let n=Object.entries(e),r={};for(let[s,l]of n)if(l&&l.__type==="RouteErrorResponse")r[s]=new ho(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let c=window[l.__subType];if(typeof c=="function")try{let u=new c(l.message);u.stack="",r[s]=u}catch{}}if(r[s]==null){let c=new Error(l.message);c.stack="",r[s]=c}}else r[s]=l;return r}var S6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,w1=d.forwardRef(function({onClick:n,discover:r="render",prefetch:s="none",relative:l,reloadDocument:c,replace:u,unstable_mask:h,state:m,target:g,to:y,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:S,...w},M){let{basename:A,navigator:j,unstable_useTransitions:C}=d.useContext(Ra),H=typeof y=="string"&&S6.test(y),B=J4(y,A);y=B.to;let Z=xE(y,{relative:l}),ee=Za(),re=null;if(h){let ve=Mu(h,[],ee.unstable_mask?ee.unstable_mask.pathname:"/",!0);A!=="/"&&(ve.pathname=ve.pathname==="/"?A:Aa([A,ve.pathname])),re=j.createHref(ve)}let[N,ce,le]=c9(s,w),ue=S9(y,{replace:u,unstable_mask:h,state:m,target:g,preventScrollReset:b,relative:l,viewTransition:x,unstable_defaultShouldRevalidate:S,unstable_useTransitions:C});function X(ve){n&&n(ve),ve.defaultPrevented||ue(ve)}let xe=!(B.isExternal||c),me=d.createElement("a",{...w,...le,href:(xe?re:void 0)||B.absoluteURL||Z,onClick:xe?X:n,ref:m9(M,ce),target:g,"data-discover":!H&&r==="render"?"true":void 0});return N&&!H?d.createElement(d.Fragment,null,me,d.createElement(u9,{page:Z})):me});w1.displayName="Link";var v9=d.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:s="",end:l=!1,style:c,to:u,viewTransition:h,children:m,...g},y){let b=bo(u,{relative:g.relative}),x=Za(),S=d.useContext(po),{navigator:w,basename:M}=d.useContext(Ra),A=S!=null&&R9(b)&&h===!0,j=w.encodeLocation?w.encodeLocation(b).pathname:b.pathname,C=x.pathname,H=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(C=C.toLowerCase(),H=H?H.toLowerCase():null,j=j.toLowerCase()),H&&M&&(H=Ma(H,M)||H);const B=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let Z=C===j||!l&&C.startsWith(j)&&C.charAt(B)==="/",ee=H!=null&&(H===j||!l&&H.startsWith(j)&&H.charAt(j.length)==="/"),re={isActive:Z,isPending:ee,isTransitioning:A},N=Z?n:void 0,ce;typeof s=="function"?ce=s(re):ce=[s,Z?"active":null,ee?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let le=typeof c=="function"?c(re):c;return d.createElement(w1,{...g,"aria-current":N,className:ce,ref:y,style:le,to:u,viewTransition:h},typeof m=="function"?m(re):m)});v9.displayName="NavLink";var x9=d.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:s,replace:l,state:c,method:u=Yc,action:h,onSubmit:m,relative:g,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:x,...S},w)=>{let{unstable_useTransitions:M}=d.useContext(Ra),A=T9(),j=M9(h,{relative:g}),C=u.toLowerCase()==="get"?"get":"post",H=typeof h=="string"&&S6.test(h),B=Z=>{if(m&&m(Z),Z.defaultPrevented)return;Z.preventDefault();let ee=Z.nativeEvent.submitter,re=(ee==null?void 0:ee.getAttribute("formmethod"))||u,N=()=>A(ee||Z.currentTarget,{fetcherKey:n,method:re,navigate:r,replace:l,state:c,relative:g,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:x});M&&r!==!1?d.startTransition(()=>N()):N()};return d.createElement("form",{ref:w,method:C,action:j,onSubmit:s?m:B,...S,"data-discover":!H&&e==="render"?"true":void 0})});x9.displayName="Form";function E9(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function w6(e){let n=d.useContext(Pi);return tt(n,E9(e)),n}function S9(e,{target:n,replace:r,unstable_mask:s,state:l,preventScrollReset:c,relative:u,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:g}={}){let y=yo(),b=Za(),x=bo(e,{relative:u});return d.useCallback(S=>{if(QE(S,n)){S.preventDefault();let w=r!==void 0?r:Wa(b)===Wa(x),M=()=>y(e,{replace:w,unstable_mask:s,state:l,preventScrollReset:c,relative:u,viewTransition:h,unstable_defaultShouldRevalidate:m});g?d.startTransition(()=>M()):M()}},[b,y,x,r,s,l,n,e,c,u,h,m,g])}var w9=0,A9=()=>`__${String(++w9)}__`;function T9(){let{router:e}=w6("useSubmit"),{basename:n}=d.useContext(Ra),r=DE(),s=e.fetch,l=e.navigate;return d.useCallback(async(c,u={})=>{let{action:h,method:m,encType:g,formData:y,body:b}=e9(c,n);if(u.navigate===!1){let x=u.fetcherKey||A9();await s(x,r,u.action||h,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:b,formMethod:u.method||m,formEncType:u.encType||g,flushSync:u.flushSync})}else await l(u.action||h,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:b,formMethod:u.method||m,formEncType:u.encType||g,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[s,l,n,r])}function M9(e,{relative:n}={}){let{basename:r}=d.useContext(Ra),s=d.useContext(Ba);tt(s,"useFormAction must be used inside a RouteContext");let[l]=s.matches.slice(-1),c={...bo(e||".",{relative:n})},u=Za();if(e==null){c.search=u.search;let h=new URLSearchParams(c.search),m=h.getAll("index");if(m.some(y=>y==="")){h.delete("index"),m.filter(b=>b).forEach(b=>h.append("index",b));let y=h.toString();c.search=y?`?${y}`:""}}return(!e||e===".")&&l.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:Aa([r,c.pathname])),Wa(c)}function R9(e,{relative:n}={}){let r=d.useContext(p1);tt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=w6("useViewTransitionState"),l=bo(e,{relative:n});if(!r.isTransitioning)return!1;let c=Ma(r.currentLocation.pathname,s)||r.currentLocation.pathname,u=Ma(r.nextLocation.pathname,s)||r.nextLocation.pathname;return lu(l.pathname,u)!=null||lu(l.pathname,c)!=null}var C9=$4();function k9(e){return d.createElement(PE,{flushSync:C9.flushSync,...e})}const N9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("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"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),d.createElement("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"}))],["fill",d.createElement(d.Fragment,null,d.createElement("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"}))],["light",d.createElement(d.Fragment,null,d.createElement("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",d.createElement(d.Fragment,null,d.createElement("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"}))],["thin",d.createElement(d.Fragment,null,d.createElement("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"}))]]),_9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),d.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),j9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),d.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),D9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"}),d.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"}))]]),L9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("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"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,112H56l72-72Z",opacity:"0.2"}),d.createElement("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"}))],["fill",d.createElement(d.Fragment,null,d.createElement("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"}))],["light",d.createElement(d.Fragment,null,d.createElement("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",d.createElement(d.Fragment,null,d.createElement("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"}))],["thin",d.createElement(d.Fragment,null,d.createElement("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"}))]]),O9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M219.23,159.2a196.66,196.66,0,0,0-18-31.2,196.66,196.66,0,0,0,18-31.2c11.84-26.31,11.69-47.48-.43-59.6s-33.29-12.27-59.6-.43a196.66,196.66,0,0,0-31.2,18,196.66,196.66,0,0,0-31.2-18c-26.31-11.84-47.48-11.69-59.6.43s-12.27,33.29-.43,59.6a196.66,196.66,0,0,0,18,31.2,196.66,196.66,0,0,0-18,31.2c-11.84,26.31-11.69,47.48.43,59.6h0C43.33,224.93,51.78,228,62,228c10,0,21.77-2.92,34.76-8.77a196.66,196.66,0,0,0,31.2-18,196.66,196.66,0,0,0,31.2,18c13,5.85,24.74,8.77,34.76,8.77,10.26,0,18.71-3.07,24.84-9.2h0C230.92,206.68,231.07,185.51,219.23,159.2Zm-17.41-105c5.25,5.26,1.79,26-16,53.78-5.61-6.66-11.65-13.25-18.07-19.67S154.7,75.83,148,70.22C175.82,52.39,196.56,48.93,201.82,54.18ZM171.24,128a288.6,288.6,0,0,1-20.51,22.73A288.6,288.6,0,0,1,128,171.24a288.6,288.6,0,0,1-22.73-20.51A288.6,288.6,0,0,1,84.76,128,298.55,298.55,0,0,1,128,84.76a286.83,286.83,0,0,1,22.73,20.51A286.83,286.83,0,0,1,171.24,128ZM54.18,54.18c1.46-1.45,4.1-2.24,7.75-2.24,9.53,0,25.94,5.39,46,18.28-6.66,5.61-13.25,11.65-19.67,18.07S75.83,101.3,70.22,108C52.39,80.18,48.93,59.44,54.18,54.18Zm0,147.64c-5.25-5.26-1.79-26,16-53.78,5.61,6.66,11.65,13.25,18.07,19.67s13,12.46,19.67,18.07C80.18,203.61,59.44,207.07,54.18,201.82Zm147.64,0c-5.26,5.25-26,1.79-53.78-16,6.66-5.61,13.25-11.65,19.67-18.07s12.46-13,18.07-19.67C203.61,175.82,207.07,196.56,201.82,201.82ZM144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M210.26,210.26c-17.23,17.23-68-5.63-113.46-51.06S28.51,63,45.74,45.74s68,5.63,113.46,51.06S227.49,193,210.26,210.26Z",opacity:"0.2"}),d.createElement("path",{d:"M196.12,128c24.65-34.61,37.22-70.38,19.74-87.86S162.61,35.23,128,59.88C93.39,35.23,57.62,22.66,40.14,40.14S35.23,93.39,59.88,128c-24.65,34.61-37.22,70.38-19.74,87.86h0c5.63,5.63,13.15,8.14,21.91,8.14,18.48,0,42.48-11.17,66-27.88C151.47,212.83,175.47,224,194,224c8.76,0,16.29-2.52,21.91-8.14h0C233.34,198.38,220.77,162.61,196.12,128Zm8.43-76.55c7.64,7.64,2.48,32.4-18.52,63.28a300.33,300.33,0,0,0-21.19-23.57A300.33,300.33,0,0,0,141.27,70C172.15,49,196.91,43.8,204.55,51.45ZM176.29,128a289.14,289.14,0,0,1-22.76,25.53A289.14,289.14,0,0,1,128,176.29a289.14,289.14,0,0,1-25.53-22.76A289.14,289.14,0,0,1,79.71,128,298.62,298.62,0,0,1,128,79.71a289.14,289.14,0,0,1,25.53,22.76A289.14,289.14,0,0,1,176.29,128ZM51.45,51.45c2.2-2.21,5.83-3.35,10.62-3.35C73.89,48.1,92.76,55,114.72,70A304,304,0,0,0,91.16,91.16,300.33,300.33,0,0,0,70,114.73C49,83.85,43.81,59.09,51.45,51.45Zm0,153.1C43.81,196.91,49,172.15,70,141.27a300.33,300.33,0,0,0,21.19,23.57A304.18,304.18,0,0,0,114.73,186C83.85,207,59.09,212.2,51.45,204.55Zm153.1,0c-7.64,7.65-32.4,2.48-63.28-18.52a304.18,304.18,0,0,0,23.57-21.19A300.33,300.33,0,0,0,186,141.27C207,172.15,212.19,196.91,204.55,204.55ZM140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M196.12,128c24.65-34.61,37.22-70.38,19.74-87.86S162.61,35.23,128,59.88C93.39,35.23,57.62,22.66,40.14,40.14S35.23,93.39,59.88,128c-24.65,34.61-37.22,70.38-19.74,87.86h0c5.63,5.63,13.15,8.14,21.91,8.14,18.47,0,42.48-11.17,66-27.88C151.47,212.83,175.47,224,194,224c8.76,0,16.29-2.52,21.91-8.14h0C233.34,198.38,220.77,162.61,196.12,128Zm8.43-76.55c7.64,7.64,2.48,32.4-18.52,63.28a300.33,300.33,0,0,0-21.19-23.57A302.47,302.47,0,0,0,141.27,70C172.15,49,196.91,43.81,204.55,51.45Zm-153.1,0c2.2-2.21,5.83-3.35,10.62-3.35C73.89,48.1,92.76,55,114.72,70A304,304,0,0,0,91.16,91.16,300.33,300.33,0,0,0,70,114.73C49,83.85,43.81,59.09,51.45,51.45Zm0,153.1C43.81,196.91,49,172.15,70,141.27a300.33,300.33,0,0,0,21.19,23.57A304.18,304.18,0,0,0,114.73,186C83.85,207,59.09,212.19,51.45,204.55ZM128,140a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm76.55,64.56c-7.64,7.65-32.4,2.48-63.28-18.52a304.18,304.18,0,0,0,23.57-21.19A300.33,300.33,0,0,0,186,141.27C207,172.15,212.19,196.91,204.55,204.55Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M193.83,128a195.73,195.73,0,0,0,19.9-33.65c10.74-23.88,11-42.66.8-52.88s-29-9.94-52.88.8A195.73,195.73,0,0,0,128,62.17a195.73,195.73,0,0,0-33.65-19.9c-23.88-10.74-42.66-11-52.88-.8s-9.94,29,.8,52.88A195.73,195.73,0,0,0,62.17,128a195.73,195.73,0,0,0-19.9,33.65c-10.74,23.88-11,42.66-.8,52.88h0c5,5,12,7.47,20.63,7.47,9.1,0,20-2.76,32.25-8.27A195.73,195.73,0,0,0,128,193.83a195.73,195.73,0,0,0,33.65,19.9C173.9,219.24,184.8,222,193.9,222c8.64,0,15.65-2.49,20.63-7.47h0c10.23-10.22,9.94-29-.8-52.88A195.73,195.73,0,0,0,193.83,128ZM206,50c9.28,9.28,2.36,36.29-19.8,68a306.2,306.2,0,0,0-22.78-25.45A306.2,306.2,0,0,0,138,69.76C169.75,47.61,196.77,40.68,206,50Zm-27.19,78A289.17,289.17,0,0,1,155,155a289.17,289.17,0,0,1-27,23.88A289.17,289.17,0,0,1,101,155a290.62,290.62,0,0,1-23.88-27A297.06,297.06,0,0,1,128,77.14,290.74,290.74,0,0,1,155,101,289.17,289.17,0,0,1,178.85,128ZM50,50c2.68-2.69,6.84-4,12.17-4,13.11,0,33.3,8,55.87,23.81A302.94,302.94,0,0,0,92.54,92.54,306.2,306.2,0,0,0,69.76,118C47.6,86.25,40.68,59.24,50,50ZM50,206h0c-9.28-9.28-2.35-36.29,19.8-68a306.2,306.2,0,0,0,22.78,25.45A306.2,306.2,0,0,0,118,186.24C86.25,208.4,59.24,215.32,50,206ZM206,206c-9.28,9.28-36.29,2.35-68-19.81a304.26,304.26,0,0,0,25.45-22.77A306.2,306.2,0,0,0,186.24,138C208.4,169.75,215.32,196.76,206,206Zm-68-78a10,10,0,1,1-10-10A10,10,0,0,1,138,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M196.12,128c24.65-34.61,37.22-70.38,19.74-87.86S162.61,35.23,128,59.88C93.39,35.23,57.62,22.66,40.14,40.14S35.23,93.39,59.88,128c-24.65,34.61-37.22,70.38-19.74,87.86h0c5.63,5.63,13.15,8.14,21.91,8.14,18.48,0,42.48-11.17,66-27.88C151.47,212.83,175.47,224,194,224c8.76,0,16.29-2.52,21.91-8.14h0C233.34,198.38,220.77,162.61,196.12,128Zm8.43-76.55c7.64,7.64,2.48,32.4-18.52,63.28a300.33,300.33,0,0,0-21.19-23.57A300.33,300.33,0,0,0,141.27,70C172.15,49,196.91,43.8,204.55,51.45ZM176.29,128a289.14,289.14,0,0,1-22.76,25.53A289.14,289.14,0,0,1,128,176.29a289.14,289.14,0,0,1-25.53-22.76A289.14,289.14,0,0,1,79.71,128,298.62,298.62,0,0,1,128,79.71a289.14,289.14,0,0,1,25.53,22.76A289.14,289.14,0,0,1,176.29,128ZM51.45,51.45c2.2-2.21,5.83-3.35,10.62-3.35C73.89,48.1,92.76,55,114.72,70A304,304,0,0,0,91.16,91.16,300.33,300.33,0,0,0,70,114.73C49,83.85,43.81,59.09,51.45,51.45Zm0,153.1C43.81,196.91,49,172.15,70,141.27a300.33,300.33,0,0,0,21.19,23.57A304.18,304.18,0,0,0,114.73,186C83.85,207,59.09,212.2,51.45,204.55Zm153.1,0c-7.64,7.65-32.4,2.48-63.28-18.52a304.18,304.18,0,0,0,23.57-21.19A300.33,300.33,0,0,0,186,141.27C207,172.15,212.19,196.91,204.55,204.55ZM140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M211.89,162.47A195.58,195.58,0,0,0,191.36,128a195.58,195.58,0,0,0,20.53-34.47c10.38-23.06,10.81-41,1.21-50.63s-27.57-9.17-50.63,1.21A195.58,195.58,0,0,0,128,64.64,195.58,195.58,0,0,0,93.53,44.11C70.47,33.73,52.49,33.3,42.9,42.9s-9.17,27.57,1.21,50.63A195.58,195.58,0,0,0,64.64,128a195.58,195.58,0,0,0-20.53,34.47c-10.38,23.06-10.81,41-1.21,50.63h0C47.5,217.7,54,220,62.12,220c8.78,0,19.41-2.71,31.41-8.11A195.58,195.58,0,0,0,128,191.36a195.58,195.58,0,0,0,34.47,20.53c12,5.4,22.63,8.11,31.41,8.11,8.09,0,14.62-2.3,19.22-6.9h0C222.7,203.51,222.27,185.53,211.89,162.47ZM207.45,48.55c10.27,10.28,3.14,39.05-21.1,72.84A301,301,0,0,0,162,94a301,301,0,0,0-27.43-24.31C168.4,45.4,197.17,38.27,207.45,48.55Zm-26,79.45a293.16,293.16,0,0,1-25,28.38,291.82,291.82,0,0,1-28.38,25,291.82,291.82,0,0,1-28.38-25,293.16,293.16,0,0,1-25-28.38A302.36,302.36,0,0,1,128,74.58a295.83,295.83,0,0,1,28.37,25A293.16,293.16,0,0,1,181.41,128ZM48.55,48.55c3.05-3,7.71-4.55,13.64-4.55,14.11,0,35.41,8.59,59.19,25.65a304.89,304.89,0,0,0-51.73,51.74C45.41,87.6,38.28,58.83,48.55,48.55Zm0,158.9c-10.27-10.28-3.14-39,21.1-72.84A301,301,0,0,0,94,162a301,301,0,0,0,27.43,24.31C87.6,210.59,58.83,217.72,48.55,207.45Zm158.9,0c-10.28,10.27-39,3.14-72.84-21.1A301,301,0,0,0,162,162a301,301,0,0,0,24.31-27.43C210.59,168.4,217.72,197.17,207.45,207.45ZM136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Z"}))]]),H9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),d.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),V9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,160H48l80-80Z",opacity:"0.2"}),d.createElement("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"}))]]),z9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236,208a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V48a12,12,0,0,1,24,0v85.55L88.1,95a12,12,0,0,1,15.1-.57l56.22,42.16L216.1,87A12,12,0,1,1,231.9,105l-64,56a12,12,0,0,1-15.1.57L96.58,119.44,44,165.45V196H224A12,12,0,0,1,236,208Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,64V208H32V48H208A16,16,0,0,1,224,64Z",opacity:"0.2"}),d.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM200,176a8,8,0,0,1,0,16H56a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v62.92l34.88-29.07a8,8,0,0,1,9.56-.51l43,28.69,43.41-36.18a8,8,0,0,1,10.24,12.3l-48,40a8,8,0,0,1-9.56.51l-43-28.69L64,155.75V176Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M230,208a6,6,0,0,1-6,6H32a6,6,0,0,1-6-6V48a6,6,0,0,1,12,0v98.78l54.05-47.3a6,6,0,0,1,7.55-.28l60.11,45.08,60.34-52.8a6,6,0,0,1,7.9,9l-64,56a6,6,0,0,1-7.55.28L96.29,111.72,38,162.72V202H224A6,6,0,0,1,230,208Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,208a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V48a4,4,0,0,1,8,0V151.19L93.37,101a4,4,0,0,1,5-.19l61.41,46.05L221.37,93a4,4,0,0,1,5.26,6l-64,56a4,4,0,0,1-5,.19l-61.41-46L36,161.81V204H224A4,4,0,0,1,228,208Z"}))]]),B9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z",opacity:"0.2"}),d.createElement("path",{d:"M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z"}))]]),Z9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),U9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),P9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M172,164a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,164Zm-12-52H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm60-64V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V48A20,20,0,0,1,56,28H90.53a51.88,51.88,0,0,1,74.94,0H200A20,20,0,0,1,220,48ZM100.29,60h55.42a28,28,0,0,0-55.42,0ZM196,52H178.59A52.13,52.13,0,0,1,180,64v8a12,12,0,0,1-12,12H88A12,12,0,0,1,76,72V64a52.13,52.13,0,0,1,1.41-12H60V212H196Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,48V216a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H96a39.83,39.83,0,0,0-8,24v8h80V64a39.83,39.83,0,0,0-8-24h40A8,8,0,0,1,208,48Z",opacity:"0.2"}),d.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,32H163.74a47.92,47.92,0,0,0-71.48,0H56A16,16,0,0,0,40,48V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V48A16,16,0,0,0,200,32Zm-72,0a32,32,0,0,1,32,32H96A32,32,0,0,1,128,32Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M166,152a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,152Zm-6-38H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm54-66V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V48A14,14,0,0,1,56,34H93.17a45.91,45.91,0,0,1,69.66,0H200A14,14,0,0,1,214,48ZM94,64v2h68V64a34,34,0,0,0-68,0ZM202,48a2,2,0,0,0-2-2H170.33A45.77,45.77,0,0,1,174,64v8a6,6,0,0,1-6,6H88a6,6,0,0,1-6-6V64a45.77,45.77,0,0,1,3.67-18H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200a2,2,0,0,0,2-2Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M164,152a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,152Zm-4-36H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm52-68V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V48A12,12,0,0,1,56,36H94.08a44,44,0,0,1,67.84,0H200A12,12,0,0,1,212,48ZM92,64v4h72V64a36,36,0,0,0-72,0ZM204,48a4,4,0,0,0-4-4H167.17A43.71,43.71,0,0,1,172,64v8a4,4,0,0,1-4,4H88a4,4,0,0,1-4-4V64a43.71,43.71,0,0,1,4.83-20H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200a4,4,0,0,0,4-4Z"}))]]),I9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("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,212ZM163.27,77l-56,24a12,12,0,0,0-6.3,6.3l-24,56A12,12,0,0,0,92.73,179l56-24a12,12,0,0,0,6.3-6.3l24-56A12,12,0,0,0,163.27,77Zm-28.41,57.89-24,10.29,10.29-24,24-10.29Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,32a96,96,0,1,0,96,96A96,96,0,0,0,128,32Zm16,112L80,176l32-64,64-32Z",opacity:"0.2"}),d.createElement("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,216ZM172.42,72.84l-64,32a8.05,8.05,0,0,0-3.58,3.58l-32,64A8,8,0,0,0,80,184a8.1,8.1,0,0,0,3.58-.84l64-32a8.05,8.05,0,0,0,3.58-3.58l32-64a8,8,0,0,0-10.74-10.74ZM138,138,97.89,158.11,118,118l40.15-20.07Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm51.58,57.79-32,64a4.08,4.08,0,0,1-1.79,1.79l-64,32a4,4,0,0,1-5.37-5.37l32-64a4.08,4.08,0,0,1,1.79-1.79l64-32A4,4,0,0,1,179.58,81.79Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("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,218ZM173.32,74.63l-64,32a6,6,0,0,0-2.69,2.69l-32,64A6,6,0,0,0,80,182a6.06,6.06,0,0,0,2.68-.63l64-32a6,6,0,0,0,2.69-2.69l32-64a6,6,0,0,0-8.05-8.05Zm-33.79,64.9L93.42,162.58l23-46.11,46.11-23Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("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,216ZM172.42,72.84l-64,32a8.05,8.05,0,0,0-3.58,3.58l-32,64A8,8,0,0,0,80,184a8.1,8.1,0,0,0,3.58-.84l64-32a8.05,8.05,0,0,0,3.58-3.58l32-64a8,8,0,0,0-10.74-10.74ZM138,138,97.89,158.11,118,118l40.15-20.07Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("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,220ZM174.21,76.42l-64,32a4.08,4.08,0,0,0-1.79,1.79l-32,64A4,4,0,0,0,80,180a4.05,4.05,0,0,0,1.79-.42l64-32a4.08,4.08,0,0,0,1.79-1.79l32-64a4,4,0,0,0-5.37-5.37ZM141,141l-52.08,26L115,115l52.08-26Z"}))]]),$9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("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"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),d.createElement("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"}))],["fill",d.createElement(d.Fragment,null,d.createElement("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"}))],["light",d.createElement(d.Fragment,null,d.createElement("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",d.createElement(d.Fragment,null,d.createElement("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"}))],["thin",d.createElement(d.Fragment,null,d.createElement("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"}))]]),F9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z",opacity:"0.2"}),d.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"}))]]),G9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),d.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),q9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),d.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z"}))]]),K9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"}))]]),Y9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M180.49,143.51a12,12,0,0,1,0,17l-24,24a12,12,0,0,1-17-17L155,152l-15.52-15.51a12,12,0,1,1,17-17Zm-64-24a12,12,0,0,0-17,0l-24,24a12,12,0,0,0,0,17l24,24a12,12,0,0,0,17-17L101,152l15.52-15.51A12,12,0,0,0,116.49,119.51ZM220,88V216a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V40A20,20,0,0,1,56,20h96a12,12,0,0,1,8.49,3.52l56,56A12,12,0,0,1,220,88ZM160,57V80h23Zm36,155V104H148a12,12,0,0,1-12-12V44H60V212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.createElement("path",{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34Zm-104,88a8,8,0,0,1-11.32,11.32l-24-24a8,8,0,0,1,0-11.32l24-24a8,8,0,0,1,11.32,11.32L91.31,152Zm72-12.68-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32l24,24A8,8,0,0,1,181.66,157.66ZM152,88V44l44,44Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M180.24,147.76a6,6,0,0,1,0,8.48l-24,24a6,6,0,0,1-8.48-8.48L167.51,152l-19.75-19.76a6,6,0,1,1,8.48-8.48Zm-72-24a6,6,0,0,0-8.48,0l-24,24a6,6,0,0,0,0,8.48l24,24a6,6,0,1,0,8.48-8.48L88.49,152l19.75-19.76A6,6,0,0,0,108.24,123.76ZM214,88V216a14,14,0,0,1-14,14H56a14,14,0,0,1-14-14V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88Zm-56-6h35.52L158,46.48Zm44,134V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2V216a2,2,0,0,0,2,2H200A2,2,0,0,0,202,216Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M178.83,149.17a4,4,0,0,1,0,5.66l-24,24a4,4,0,0,1-5.66-5.66L170.34,152l-21.17-21.17a4,4,0,1,1,5.66-5.66Zm-72-24a4,4,0,0,0-5.66,0l-24,24a4,4,0,0,0,0,5.66l24,24a4,4,0,1,0,5.66-5.66L85.66,152l21.17-21.17A4,4,0,0,0,106.83,125.17ZM212,88V216a12,12,0,0,1-12,12H56a12,12,0,0,1-12-12V40A12,12,0,0,1,56,28h96a4,4,0,0,1,2.83,1.17l56,56A4,4,0,0,1,212,88Zm-56-4h42.34L156,41.65Zm48,132V92H152a4,4,0,0,1-4-4V36H56a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H200A4,4,0,0,0,204,216Z"}))]]),X9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),d.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"}))]]),Q9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z",opacity:"0.2"}),d.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z"}))]]),J9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M212.62,75.17A63.7,63.7,0,0,0,206.39,26,12,12,0,0,0,196,20a63.71,63.71,0,0,0-50,24H126A63.71,63.71,0,0,0,76,20a12,12,0,0,0-10.39,6,63.7,63.7,0,0,0-6.23,49.17A61.5,61.5,0,0,0,52,104v8a60.1,60.1,0,0,0,45.76,58.28A43.66,43.66,0,0,0,92,192v4H76a20,20,0,0,1-20-20,44.05,44.05,0,0,0-44-44,12,12,0,0,0,0,24,20,20,0,0,1,20,20,44.05,44.05,0,0,0,44,44H92v12a12,12,0,0,0,24,0V192a20,20,0,0,1,40,0v40a12,12,0,0,0,24,0V192a43.66,43.66,0,0,0-5.76-21.72A60.1,60.1,0,0,0,220,112v-8A61.5,61.5,0,0,0,212.62,75.17ZM196,112a36,36,0,0,1-36,36H112a36,36,0,0,1-36-36v-8a37.87,37.87,0,0,1,6.13-20.12,11.65,11.65,0,0,0,1.58-11.49,39.9,39.9,0,0,1-.4-27.72,39.87,39.87,0,0,1,26.41,17.8A12,12,0,0,0,119.82,68h32.35a12,12,0,0,0,10.11-5.53,39.84,39.84,0,0,1,26.41-17.8,39.9,39.9,0,0,1-.4,27.72,12,12,0,0,0,1.61,11.53A37.85,37.85,0,0,1,196,104Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208,104v8a48,48,0,0,1-48,48H136a32,32,0,0,1,32,32v40H104V192a32,32,0,0,1,32-32H112a48,48,0,0,1-48-48v-8a49.28,49.28,0,0,1,8.51-27.3A51.92,51.92,0,0,1,76,32a52,52,0,0,1,43.83,24h32.34A52,52,0,0,1,196,32a51.92,51.92,0,0,1,3.49,44.7A49.28,49.28,0,0,1,208,104Z",opacity:"0.2"}),d.createElement("path",{d:"M208.3,75.68A59.74,59.74,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58,58,0,0,0,208.3,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.76,41.76,0,0,1,200,104Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,104v8a56.06,56.06,0,0,1-48.44,55.47A39.8,39.8,0,0,1,176,192v40a8,8,0,0,1-8,8H104a8,8,0,0,1-8-8V216H72a40,40,0,0,1-40-40A24,24,0,0,0,8,152a8,8,0,0,1,0-16,40,40,0,0,1,40,40,24,24,0,0,0,24,24H96v-8a39.8,39.8,0,0,1,8.44-24.53A56.06,56.06,0,0,1,56,112v-8a58.14,58.14,0,0,1,7.69-28.32A59.78,59.78,0,0,1,69.07,28,8,8,0,0,1,76,24a59.75,59.75,0,0,1,48,24h24a59.75,59.75,0,0,1,48-24,8,8,0,0,1,6.93,4,59.74,59.74,0,0,1,5.37,47.68A58,58,0,0,1,216,104Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M206.13,75.92A57.79,57.79,0,0,0,201.2,29a6,6,0,0,0-5.2-3,57.77,57.77,0,0,0-47,24H123A57.77,57.77,0,0,0,76,26a6,6,0,0,0-5.2,3,57.79,57.79,0,0,0-4.93,46.92A55.88,55.88,0,0,0,58,104v8a54.06,54.06,0,0,0,50.45,53.87A37.85,37.85,0,0,0,98,192v10H72a26,26,0,0,1-26-26A38,38,0,0,0,8,138a6,6,0,0,0,0,12,26,26,0,0,1,26,26,38,38,0,0,0,38,38H98v18a6,6,0,0,0,12,0V192a26,26,0,0,1,52,0v40a6,6,0,0,0,12,0V192a37.85,37.85,0,0,0-10.45-26.13A54.06,54.06,0,0,0,214,112v-8A55.88,55.88,0,0,0,206.13,75.92ZM202,112a42,42,0,0,1-42,42H112a42,42,0,0,1-42-42v-8a43.86,43.86,0,0,1,7.3-23.69,6,6,0,0,0,.81-5.76,45.85,45.85,0,0,1,1.43-36.42,45.85,45.85,0,0,1,35.23,21.1A6,6,0,0,0,119.83,62h32.34a6,6,0,0,0,5.06-2.76,45.83,45.83,0,0,1,35.23-21.11,45.85,45.85,0,0,1,1.43,36.42,6,6,0,0,0,.79,5.74A43.78,43.78,0,0,1,202,104Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M208.31,75.68A59.78,59.78,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58.14,58.14,0,0,0,208.31,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.72,41.72,0,0,1,200,104Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M203.94,76.16A55.73,55.73,0,0,0,199.46,30,4,4,0,0,0,196,28a55.78,55.78,0,0,0-46,24H122A55.78,55.78,0,0,0,76,28a4,4,0,0,0-3.46,2,55.73,55.73,0,0,0-4.48,46.16A53.78,53.78,0,0,0,60,104v8a52.06,52.06,0,0,0,52,52h1.41A36,36,0,0,0,100,192v12H72a28,28,0,0,1-28-28A36,36,0,0,0,8,140a4,4,0,0,0,0,8,28,28,0,0,1,28,28,36,36,0,0,0,36,36h28v20a4,4,0,0,0,8,0V192a28,28,0,0,1,56,0v40a4,4,0,0,0,8,0V192a36,36,0,0,0-13.41-28H160a52.06,52.06,0,0,0,52-52v-8A53.78,53.78,0,0,0,203.94,76.16ZM204,112a44.05,44.05,0,0,1-44,44H112a44.05,44.05,0,0,1-44-44v-8a45.76,45.76,0,0,1,7.71-24.89,4,4,0,0,0,.53-3.84,47.82,47.82,0,0,1,2.1-39.21,47.8,47.8,0,0,1,38.12,22.1A4,4,0,0,0,119.83,60h32.34a4,4,0,0,0,3.37-1.84,47.8,47.8,0,0,1,38.12-22.1,47.82,47.82,0,0,1,2.1,39.21,4,4,0,0,0,.53,3.83A45.85,45.85,0,0,1,204,104Z"}))]]),W9=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("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,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),eS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M196,76a16,16,0,1,1-16-16A16,16,0,0,1,196,76Zm48,22.74A84.3,84.3,0,0,1,160.11,180H160a83.52,83.52,0,0,1-23.65-3.38l-7.86,7.87A12,12,0,0,1,120,188H108v12a12,12,0,0,1-12,12H84v12a12,12,0,0,1-12,12H40a20,20,0,0,1-20-20V187.31a19.86,19.86,0,0,1,5.86-14.14l53.52-53.52A84,84,0,1,1,244,98.74ZM202.43,53.57A59.48,59.48,0,0,0,158,36c-32,1-58,27.89-58,59.89a59.69,59.69,0,0,0,4.2,22.19,12,12,0,0,1-2.55,13.21L44,189v23H60V200a12,12,0,0,1,12-12H84V176a12,12,0,0,1,12-12h19l9.65-9.65a12,12,0,0,1,13.22-2.55A59.58,59.58,0,0,0,160,156h.08c32,0,58.87-26.07,59.89-58A59.55,59.55,0,0,0,202.43,53.57Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232,98.36C230.73,136.92,198.67,168,160.09,168a71.68,71.68,0,0,1-26.92-5.17h0L120,176H96v24H72v24H40a8,8,0,0,1-8-8V187.31a8,8,0,0,1,2.34-5.65l58.83-58.83h0A71.68,71.68,0,0,1,88,95.91c0-38.58,31.08-70.64,69.64-71.87A72,72,0,0,1,232,98.36Z",opacity:"0.2"}),d.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM180,92a16,16,0,1,1,16-16A16,16,0,0,1,180,92Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M215.15,40.85A78,78,0,0,0,86.2,121.31l-56.1,56.1a13.94,13.94,0,0,0-4.1,9.9V216a14,14,0,0,0,14,14H72a6,6,0,0,0,6-6V206H96a6,6,0,0,0,6-6V182h18a6,6,0,0,0,4.24-1.76l10.45-10.44A77.59,77.59,0,0,0,160,174h.1A78,78,0,0,0,215.15,40.85ZM226,98.16c-1.12,35.16-30.67,63.8-65.88,63.84a65.93,65.93,0,0,1-24.51-4.67,6,6,0,0,0-6.64,1.26L117.51,170H96a6,6,0,0,0-6,6v18H72a6,6,0,0,0-6,6v18H40a2,2,0,0,1-2-2V187.31a2,2,0,0,1,.58-1.41l58.83-58.83a6,6,0,0,0,1.26-6.64A65.61,65.61,0,0,1,94,95.92C94,60.71,122.68,31.16,157.83,30A66,66,0,0,1,226,98.16ZM190,76a10,10,0,1,1-10-10A10,10,0,0,1,190,76Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.74,42.26A76,76,0,0,0,88.51,121.84l-57,57A11.93,11.93,0,0,0,28,187.31V216a12,12,0,0,0,12,12H72a4,4,0,0,0,4-4V204H96a4,4,0,0,0,4-4V180h20a4,4,0,0,0,2.83-1.17l11.33-11.34A75.72,75.72,0,0,0,160,172h.1A76,76,0,0,0,213.74,42.26Zm14.22,56c-1.15,36.22-31.6,65.72-67.87,65.77H160a67.52,67.52,0,0,1-25.21-4.83,4,4,0,0,0-4.45.83l-12,12H96a4,4,0,0,0-4,4v20H72a4,4,0,0,0-4,4v20H40a4,4,0,0,1-4-4V187.31a4.06,4.06,0,0,1,1.17-2.83L96,125.66a4,4,0,0,0,.83-4.45A67.51,67.51,0,0,1,92,95.91C92,59.64,121.55,29.19,157.77,28A68,68,0,0,1,228,98.23ZM188,76a8,8,0,1,1-8-8A8,8,0,0,1,188,76Z"}))]]),tS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M219.71,117.38a12,12,0,0,0-7.25-8.52L161.28,88.39l10.59-70.61a12,12,0,0,0-20.64-10l-112,120a12,12,0,0,0,4.31,19.33l51.18,20.47L84.13,238.22a12,12,0,0,0,20.64,10l112-120A12,12,0,0,0,219.71,117.38ZM113.6,203.55l6.27-41.77a12,12,0,0,0-7.41-12.92L68.74,131.37,142.4,52.45l-6.27,41.77a12,12,0,0,0,7.41,12.92l43.72,17.49Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M96,240l16-80L48,136,160,16,144,96l64,24Z",opacity:"0.2"}),d.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.85,125.46l-112,120a8,8,0,0,1-13.69-7l14.66-73.33L45.19,143.49a8,8,0,0,1-3-13l112-120a8,8,0,0,1,13.69,7L153.18,90.9l57.63,21.61a8,8,0,0,1,3,12.95Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M213.84,118.63a6,6,0,0,0-3.73-4.25L150.88,92.17l15-75a6,6,0,0,0-10.27-5.27l-112,120a6,6,0,0,0,2.28,9.71l59.23,22.21-15,75a6,6,0,0,0,3.14,6.52A6.07,6.07,0,0,0,96,246a6,6,0,0,0,4.39-1.91l112-120A6,6,0,0,0,213.84,118.63ZM106,220.46l11.85-59.28a6,6,0,0,0-3.77-6.8l-55.6-20.85,91.46-98L138.12,94.82a6,6,0,0,0,3.77,6.8l55.6,20.85Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M215.79,118.17a8,8,0,0,0-5-5.66L153.18,90.9l14.66-73.33a8,8,0,0,0-13.69-7l-112,120a8,8,0,0,0,3,13l57.63,21.61L88.16,238.43a8,8,0,0,0,13.69,7l112-120A8,8,0,0,0,215.79,118.17ZM109.37,214l10.47-52.38a8,8,0,0,0-5-9.06L62,132.71l84.62-90.66L136.16,94.43a8,8,0,0,0,5,9.06l52.8,19.8Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M211.89,119.09a4,4,0,0,0-2.49-2.84l-60.81-22.8,15.33-76.67a4,4,0,0,0-6.84-3.51l-112,120a4,4,0,0,0-1,3.64,4,4,0,0,0,2.49,2.84l60.81,22.8L92.08,239.22a4,4,0,0,0,6.84,3.51l112-120A4,4,0,0,0,211.89,119.09ZM102.68,227l13.24-66.2a4,4,0,0,0-2.52-4.53L55,134.36,153.32,29l-13.24,66.2a4,4,0,0,0,2.52,4.53L201,121.64Z"}))]]),nS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,164a36.07,36.07,0,0,0-33.94,24H72a28,28,0,0,1,0-56h96a44,44,0,0,0,0-88H72a12,12,0,0,0,0,24h96a20,20,0,0,1,0,40H72a52,52,0,0,0,0,104h94.06A36,36,0,1,0,200,164Zm0,48a12,12,0,1,1,12-12A12,12,0,0,1,200,212Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,200a24,24,0,1,1-24-24A24,24,0,0,1,224,200Z",opacity:"0.2"}),d.createElement("path",{d:"M200,168a32.06,32.06,0,0,0-31,24H72a32,32,0,0,1,0-64h96a40,40,0,0,0,0-80H72a8,8,0,0,0,0,16h96a24,24,0,0,1,0,48H72a48,48,0,0,0,0,96h97a32,32,0,1,0,31-40Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,200,216Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,200a28,28,0,0,1-54.83,8H72a48,48,0,0,1,0-96h96a24,24,0,0,0,0-48H72a8,8,0,0,1,0-16h96a40,40,0,0,1,0,80H72a32,32,0,0,0,0,64H173.17A28,28,0,0,1,228,200Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,170a30.05,30.05,0,0,0-29.4,24H72a34,34,0,0,1,0-68h96a38,38,0,0,0,0-76H72a6,6,0,0,0,0,12h96a26,26,0,0,1,0,52H72a46,46,0,0,0,0,92h98.6A30,30,0,1,0,200,170Zm0,48a18,18,0,1,1,18-18A18,18,0,0,1,200,218Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,168a32.06,32.06,0,0,0-31,24H72a32,32,0,0,1,0-64h96a40,40,0,0,0,0-80H72a8,8,0,0,0,0,16h96a24,24,0,0,1,0,48H72a48,48,0,0,0,0,96h97a32,32,0,1,0,31-40Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,200,216Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,172a28,28,0,0,0-27.71,24H72a36,36,0,0,1,0-72h96a36,36,0,0,0,0-72H72a4,4,0,0,0,0,8h96a28,28,0,0,1,0,56H72a44,44,0,0,0,0,88H172.29A28,28,0,1,0,200,172Zm0,48a20,20,0,1,1,20-20A20,20,0,0,1,200,220Z"}))]]),aS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M230.15,70.54,185.46,25.86a20,20,0,0,0-28.28,0L33.86,149.17A19.86,19.86,0,0,0,28,163.31V208a20,20,0,0,0,20,20H216a12,12,0,0,0,0-24H125L230.15,98.83A20,20,0,0,0,230.15,70.54ZM136,81l11,11L76,163,65,152ZM52,204V173l15.52,15.51h0L83,204Zm52-13L93,180l71-71,11,11Zm88-88L153,64l18.34-18.34,39,39Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),d.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188,164,103.31,180.69,120,96,204.69ZM68,176.69,51.31,160,136,75.31,152.69,92Zm-20,2.62L76.69,208H48Zm144-70.62L147.32,64l24-24L216,84.69Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM79.32,188l90.34-90.34,16.69,16.68L96,204.69Zm79-101.66h0L68,176.69,51.31,160l90.35-90.34ZM48,179.31,76.69,208H48Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M225.91,74.79,181.22,30.1a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H216a6,6,0,0,0,0-12H110.49L225.91,94.59A14,14,0,0,0,225.91,74.79ZM76.49,188,164,100.48,183.52,120,96,207.51ZM68,179.52,48.49,160,136,72.49,155.52,92ZM46,208V174.48L81.52,210H48A2,2,0,0,1,46,208ZM217.42,86.1,192,111.52,144.49,64,169.9,38.59a2,2,0,0,1,2.83,0l44.69,44.68A2,2,0,0,1,217.42,86.1Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M227.32,73.37,182.63,28.69a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H216a8,8,0,0,0,0-16H115.32l112-112A16,16,0,0,0,227.32,73.37ZM136,75.31,152.69,92,68,176.69,51.31,160ZM48,208V179.31L76.69,208Zm48-3.31L79.32,188,164,103.31,180.69,120Zm96-96L147.32,64l24-24L216,84.69Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.51,154.83A12,12,0,0,0,36,163.31V208a12,12,0,0,0,12,12H216a4,4,0,0,0,0-8H105.66L224.49,93.17A12,12,0,0,0,224.49,76.2ZM73.66,188,164,97.66,186.35,120,96,210.34ZM68,182.34,45.66,160,136,69.66,158.35,92ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208ZM218.83,87.51,192,114.34,141.66,64l26.83-26.83a4,4,0,0,1,5.66,0l44.68,44.69A4,4,0,0,1,218.83,87.51Z"}))]]),rS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z",opacity:"0.2"}),d.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z"}))]]),iS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("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"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("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"}),d.createElement("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"}))],["fill",d.createElement(d.Fragment,null,d.createElement("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"}))],["light",d.createElement(d.Fragment,null,d.createElement("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",d.createElement(d.Fragment,null,d.createElement("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"}))],["thin",d.createElement(d.Fragment,null,d.createElement("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"}))]]),sS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),d.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),lS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M160,116h48a20,20,0,0,0,20-20V48a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20V60H128a28,28,0,0,0-28,28v28H76v-4A20,20,0,0,0,56,92H24A20,20,0,0,0,4,112v32a20,20,0,0,0,20,20H56a20,20,0,0,0,20-20v-4h24v28a28,28,0,0,0,28,28h12v12a20,20,0,0,0,20,20h48a20,20,0,0,0,20-20V160a20,20,0,0,0-20-20H160a20,20,0,0,0-20,20v12H128a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4h12V96A20,20,0,0,0,160,116ZM52,140H28V116H52Zm112,24h40v40H164Zm0-112h40V92H164Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M64,112v32a8,8,0,0,1-8,8H24a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H56A8,8,0,0,1,64,112ZM208,40H160a8,8,0,0,0-8,8V96a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V48A8,8,0,0,0,208,40Zm0,112H160a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152Z",opacity:"0.2"}),d.createElement("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M144,96V80H128a8,8,0,0,0-8,8v80a8,8,0,0,0,8,8h16V160a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16v48a16,16,0,0,1-16,16H160a16,16,0,0,1-16-16V192H128a24,24,0,0,1-24-24V136H72v8a16,16,0,0,1-16,16H24A16,16,0,0,1,8,144V112A16,16,0,0,1,24,96H56a16,16,0,0,1,16,16v8h32V88a24,24,0,0,1,24-24h16V48a16,16,0,0,1,16-16h48a16,16,0,0,1,16,16V96a16,16,0,0,1-16,16H160A16,16,0,0,1,144,96Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M160,110h48a14,14,0,0,0,14-14V48a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14V66H128a22,22,0,0,0-22,22v34H70V112A14,14,0,0,0,56,98H24a14,14,0,0,0-14,14v32a14,14,0,0,0,14,14H56a14,14,0,0,0,14-14V134h36v34a22,22,0,0,0,22,22h18v18a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V160a14,14,0,0,0-14-14H160a14,14,0,0,0-14,14v18H128a10,10,0,0,1-10-10V88a10,10,0,0,1,10-10h18V96A14,14,0,0,0,160,110ZM58,144a2,2,0,0,1-2,2H24a2,2,0,0,1-2-2V112a2,2,0,0,1,2-2H56a2,2,0,0,1,2,2Zm100,16a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2v48a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Zm0-112a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2V96a2,2,0,0,1-2,2H160a2,2,0,0,1-2-2Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M160,112h48a16,16,0,0,0,16-16V48a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16V64H128a24,24,0,0,0-24,24v32H72v-8A16,16,0,0,0,56,96H24A16,16,0,0,0,8,112v32a16,16,0,0,0,16,16H56a16,16,0,0,0,16-16v-8h32v32a24,24,0,0,0,24,24h16v16a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V160a16,16,0,0,0-16-16H160a16,16,0,0,0-16,16v16H128a8,8,0,0,1-8-8V88a8,8,0,0,1,8-8h16V96A16,16,0,0,0,160,112ZM56,144H24V112H56v32Zm104,16h48v48H160Zm0-112h48V96H160Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M160,108h48a12,12,0,0,0,12-12V48a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12V68H128a20,20,0,0,0-20,20v36H68V112a12,12,0,0,0-12-12H24a12,12,0,0,0-12,12v32a12,12,0,0,0,12,12H56a12,12,0,0,0,12-12V132h40v36a20,20,0,0,0,20,20h20v20a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V160a12,12,0,0,0-12-12H160a12,12,0,0,0-12,12v20H128a12,12,0,0,1-12-12V88a12,12,0,0,1,12-12h20V96A12,12,0,0,0,160,108ZM60,144a4,4,0,0,1-4,4H24a4,4,0,0,1-4-4V112a4,4,0,0,1,4-4H56a4,4,0,0,1,4,4Zm96,16a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v48a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Zm0-112a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V96a4,4,0,0,1-4,4H160a4,4,0,0,1-4-4Z"}))]]),oS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0ZM96.49,80.49,116,61v83a12,12,0,0,0,24,0V61l19.51,19.52a12,12,0,1,0,17-17l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,1,0,17,17Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),d.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM88,80h32v64a8,8,0,0,0,16,0V80h32a8,8,0,0,0,5.66-13.66l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,88,80Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0ZM92.24,76.24,122,46.49V144a6,6,0,0,0,12,0V46.49l29.76,29.75a6,6,0,0,0,8.48-8.48l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0ZM90.83,74.83,124,41.66V144a4,4,0,0,0,8,0V41.66l33.17,33.17a4,4,0,1,0,5.66-5.66l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66Z"}))]]),cS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20ZM79.57,196.57a60,60,0,0,1,96.86,0,83.72,83.72,0,0,1-96.86,0ZM100,120a28,28,0,1,1,28,28A28,28,0,0,1,100,120ZM194,179.94a83.48,83.48,0,0,0-29-23.42,52,52,0,1,0-74,0,83.48,83.48,0,0,0-29,23.42,84,84,0,1,1,131.9,0Z"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("path",{d:"M224,128a95.76,95.76,0,0,1-31.8,71.37A72,72,0,0,0,128,160a40,40,0,1,0-40-40,40,40,0,0,0,40,40,72,72,0,0,0-64.2,39.37h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["fill",d.createElement(d.Fragment,null,d.createElement("path",{d:"M172,120a44,44,0,1,1-44-44A44.05,44.05,0,0,1,172,120Zm60,8A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88.09,88.09,0,0,0-91.47-87.93C77.43,41.89,39.87,81.12,40,128.25a87.65,87.65,0,0,0,22.24,58.16A79.71,79.71,0,0,1,84,165.1a4,4,0,0,1,4.83.32,59.83,59.83,0,0,0,78.28,0,4,4,0,0,1,4.83-.32,79.71,79.71,0,0,1,21.79,21.31A87.62,87.62,0,0,0,216,128Z"}))],["light",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26ZM71.44,198a66,66,0,0,1,113.12,0,89.8,89.8,0,0,1-113.12,0ZM94,120a34,34,0,1,1,34,34A34,34,0,0,1,94,120Zm99.51,69.64a77.53,77.53,0,0,0-40-31.38,46,46,0,1,0-51,0,77.53,77.53,0,0,0-40,31.38,90,90,0,1,1,131,0Z"}))],["regular",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z"}))],["thin",d.createElement(d.Fragment,null,d.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28ZM68.87,198.42a68,68,0,0,1,118.26,0,91.8,91.8,0,0,1-118.26,0Zm124.3-5.55a75.61,75.61,0,0,0-44.51-34,44,44,0,1,0-41.32,0,75.61,75.61,0,0,0-44.51,34,92,92,0,1,1,130.34,0ZM128,156a36,36,0,1,1,36-36A36,36,0,0,1,128,156Z"}))]]),uS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("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"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("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"}),d.createElement("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"}))],["fill",d.createElement(d.Fragment,null,d.createElement("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"}))],["light",d.createElement(d.Fragment,null,d.createElement("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",d.createElement(d.Fragment,null,d.createElement("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"}))],["thin",d.createElement(d.Fragment,null,d.createElement("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"}))]]),dS=new Map([["bold",d.createElement(d.Fragment,null,d.createElement("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"}))],["duotone",d.createElement(d.Fragment,null,d.createElement("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"}),d.createElement("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"}))],["fill",d.createElement(d.Fragment,null,d.createElement("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"}))],["light",d.createElement(d.Fragment,null,d.createElement("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",d.createElement(d.Fragment,null,d.createElement("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"}))],["thin",d.createElement(d.Fragment,null,d.createElement("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"}))]]),fS=d.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),st=d.forwardRef((e,n)=>{const{alt:r,color:s,size:l,weight:c,mirrored:u,children:h,weights:m,...g}=e,{color:y="currentColor",size:b,weight:x="regular",mirrored:S=!1,...w}=d.useContext(fS);return d.createElement("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:l??b,height:l??b,fill:s??y,viewBox:"0 0 256 256",transform:u||S?"scale(-1, 1)":void 0,...w,...g},!!r&&d.createElement("title",null,r),h,m.get(c??x))});st.displayName="IconBase";const A6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:N9}));A6.displayName="ArrowClockwiseIcon";const hS=A6,T6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:_9}));T6.displayName="ArrowLeftIcon";const M6=T6,R6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:j9}));R6.displayName="ArrowRightIcon";const mS=R6,C6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:D9}));C6.displayName="ArrowSquareOutIcon";const pS=C6,k6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:L9}));k6.displayName="ArrowUpIcon";const N6=k6,_6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:O9}));_6.displayName="AtomIcon";const gS=_6,j6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:H9}));j6.displayName="CaretDownIcon";const D6=j6,L6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:V9}));L6.displayName="CaretUpIcon";const yS=L6,O6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:z9}));O6.displayName="ChartLineIcon";const bS=O6,H6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:B9}));H6.displayName="CheckIcon";const V6=H6,z6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:Z9}));z6.displayName="CheckCircleIcon";const Zi=z6,B6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:U9}));B6.displayName="CircleNotchIcon";const Os=B6,Z6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:P9}));Z6.displayName="ClipboardTextIcon";const Qc=Z6,U6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:I9}));U6.displayName="CompassIcon";const vS=U6,P6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:$9}));P6.displayName="CopyIcon";const xS=P6,I6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:F9}));I6.displayName="DatabaseIcon";const cu=I6,$6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:G9}));$6.displayName="DownloadSimpleIcon";const Dg=$6,F6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:q9}));F6.displayName="EyeIcon";const ES=F6,G6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:K9}));G6.displayName="FileIcon";const SS=G6,q6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:Y9}));q6.displayName="FileCodeIcon";const wS=q6,K6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:X9}));K6.displayName="FileTextIcon";const Y6=K6,X6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:Q9}));X6.displayName="FolderIcon";const Lg=X6,Q6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:J9}));Q6.displayName="GithubLogoIcon";const AS=Q6,J6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:W9}));J6.displayName="InfoIcon";const TS=J6,W6=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:eS}));W6.displayName="KeyIcon";const MS=W6,ey=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:tS}));ey.displayName="LightningIcon";const RS=ey,ty=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:nS}));ty.displayName="PathIcon";const CS=ty,ny=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:aS}));ny.displayName="PencilLineIcon";const kS=ny,ay=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:rS}));ay.displayName="PlayIcon";const NS=ay,ry=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:iS}));ry.displayName="SparkleIcon";const Cf=ry,iy=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:sS}));iy.displayName="TrashIcon";const _S=iy,sy=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:lS}));sy.displayName="TreeStructureIcon";const jS=sy,ly=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:oS}));ly.displayName="UploadSimpleIcon";const DS=ly,oy=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:cS}));oy.displayName="UserCircleIcon";const LS=oy,cy=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:uS}));cy.displayName="WarningIcon";const OS=cy,uy=d.forwardRef((e,n)=>d.createElement(st,{ref:n,...e,weights:dS}));uy.displayName="XIcon";const A1=uy,Og=e=>{let n;const r=new Set,s=(g,y)=>{const b=typeof g=="function"?g(n):g;if(!Object.is(b,n)){const x=n;n=y??(typeof b!="object"||b===null)?b:Object.assign({},n,b),r.forEach(S=>S(n,x))}},l=()=>n,h={setState:s,getState:l,getInitialState:()=>m,subscribe:g=>(r.add(g),()=>r.delete(g))},m=n=e(s,l,h);return h},HS=(e=>e?Og(e):Og),VS=e=>e;function zS(e,n=VS){const r=Rs.useSyncExternalStore(e.subscribe,Rs.useCallback(()=>n(e.getState()),[e,n]),Rs.useCallback(()=>n(e.getInitialState()),[e,n]));return Rs.useDebugValue(r),r}const Hg=e=>{const n=HS(e),r=s=>zS(n,s);return Object.assign(r,n),r},nr=(e=>e?Hg(e):Hg);async function Ua(e,n){const r=await fetch(e,{headers:{"Content-Type":"application/json"},...n});if(!r.ok)throw new Error(`[persistence] ${(n==null?void 0:n.method)??"GET"} ${e} → ${r.status}`);return r.json()}async function BS(){try{return await Ua("/api/data/projects")}catch{return[]}}function dy(e){Ua(`/api/data/projects/${e.slug}`,{method:"PUT",body:JSON.stringify(e)}).catch(()=>{})}function ZS(e){Ua("/api/data/projects",{method:"POST",body:JSON.stringify(e)}).catch(()=>{})}function fy(e){Ua(`/api/data/projects/${e}`,{method:"DELETE"}).catch(()=>{})}function US(e,n){Ua(`/api/data/projects/${e}/conversation`,{method:"PUT",body:JSON.stringify(n)}).catch(()=>{})}function Vg(e,n){Ua(`/api/data/projects/${e}/artifacts`,{method:"PUT",body:JSON.stringify(n)}).catch(()=>{})}function PS(e,n){Ua(`/api/data/projects/${e}/session`,{method:"PUT",body:JSON.stringify(n)}).catch(()=>{})}async function IS(e,n){const r=new FormData;for(const c of n)r.append("files",c);const s=await fetch(`/api/data/projects/${e}/uploads`,{method:"POST",body:r});if(!s.ok)throw new Error(`Upload failed: ${s.status}`);return(await s.json()).uploaded}async function $S(e,n){const r=await fetch(`/api/data/projects/${e}/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:n})});if(!r.ok)throw new Error(`Export failed: ${r.status}`);return await r.json()}async function FS(e){try{return(await Ua(`/api/kb/${e}/context`)).entries??[]}catch{return[]}}async function zg(e,n,r=3e3){try{const s=new URLSearchParams({query:n,max_tokens:String(r)});return await Ua(`/api/kb/${e}/retrieve?${s.toString()}`)}catch{return null}}async function GS(){try{const n=await Ua("/api/auth");return!n||Object.keys(n).length===0?null:n}catch{return null}}function qS(e){fetch("/api/auth",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).catch(()=>{})}function KS(){fetch("/api/auth",{method:"DELETE"}).catch(()=>{})}async function YS(){try{const e=await Ua("/api/data/token-stats");return e||null}catch{return null}}function XS(e){fetch("/api/data/token-stats",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).catch(()=>{})}const hy="enigma_projects",my="enigma_deleted_slugs";function py(){try{const e=localStorage.getItem(my);return e?new Set(JSON.parse(e)):new Set}catch{return new Set}}function QS(e){try{const n=py();n.add(e),localStorage.setItem(my,JSON.stringify(Array.from(n)))}catch{}}function JS(){try{const e=localStorage.getItem(hy);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n:[]}catch{return[]}}function Xd(e){try{localStorage.setItem(hy,JSON.stringify(e))}catch{console.error("Failed to save projects")}}function WS(e,n){for(const r of n){const s=e.find(l=>l.slug===r.slug);s?JSON.stringify(r)!==JSON.stringify(s)&&dy(r):ZS(r)}for(const r of e)n.find(s=>s.slug===r.slug)||fy(r.slug)}const zt=nr(e=>({projects:JS(),selectedSlug:null,sidebarCollapsed:!1,contextPanelOpen:!1,contextPanelContent:null,setProjects:n=>{const r=zt.getState().projects;Xd(n),WS(r,n),e({projects:n})},selectProject:n=>{try{localStorage.setItem("enigma_selected_project",n)}catch{console.error("Failed to save selected project")}e({selectedSlug:n})},clearProject:()=>{try{localStorage.removeItem("enigma_selected_project")}catch{console.error("Failed to clear selected project")}e({selectedSlug:null})},removeProject:n=>e(r=>{const s=r.projects.filter(l=>l.slug!==n);Xd(s),QS(n),fy(n);try{localStorage.getItem("enigma_selected_project")===n&&localStorage.removeItem("enigma_selected_project")}catch{console.error("Failed to clear removed selected project")}return{projects:s,selectedSlug:r.selectedSlug===n?null:r.selectedSlug}}),restoreLastProject:()=>{try{const n=localStorage.getItem("enigma_selected_project");if(n)return e({selectedSlug:n}),n}catch{console.error("Failed to restore selected project")}return null},updateProject:(n,r)=>e(s=>{const l=s.projects.map(u=>u.slug===n?{...u,...r,last_active_at:new Date().toISOString()}:u);Xd(l);const c=l.find(u=>u.slug===n);return c&&dy(c),{projects:l}}),toggleSidebar:()=>e(n=>({sidebarCollapsed:!n.sidebarCollapsed})),openContextPanel:n=>e({contextPanelOpen:!0,contextPanelContent:n}),closeContextPanel:()=>e({contextPanelOpen:!1,contextPanelContent:null})}));function ew(e,n){let r;try{r=e()}catch{return}return{getItem:l=>{var c;const u=m=>m===null?null:JSON.parse(m,void 0),h=(c=r.getItem(l))!=null?c:null;return h instanceof Promise?h.then(u):u(h)},setItem:(l,c)=>r.setItem(l,JSON.stringify(c,void 0)),removeItem:l=>r.removeItem(l)}}const kf=e=>n=>{try{const r=e(n);return r instanceof Promise?r:{then(s){return kf(s)(r)},catch(s){return this}}}catch(r){return{then(s){return this},catch(s){return kf(s)(r)}}}},tw=(e,n)=>(r,s,l)=>{let c={storage:ew(()=>window.localStorage),partialize:A=>A,version:0,merge:(A,j)=>({...j,...A}),...n},u=!1,h=0;const m=new Set,g=new Set;let y=c.storage;if(!y)return e((...A)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),r(...A)},s,l);const b=()=>{const A=c.partialize({...s()});return y.setItem(c.name,{state:A,version:c.version})},x=l.setState;l.setState=(A,j)=>(x(A,j),b());const S=e((...A)=>(r(...A),b()),s,l);l.getInitialState=()=>S;let w;const M=()=>{var A,j;if(!y)return;const C=++h;u=!1,m.forEach(B=>{var Z;return B((Z=s())!=null?Z:S)});const H=((j=c.onRehydrateStorage)==null?void 0:j.call(c,(A=s())!=null?A:S))||void 0;return kf(y.getItem.bind(y))(c.name).then(B=>{if(B)if(typeof B.version=="number"&&B.version!==c.version){if(c.migrate){const Z=c.migrate(B.state,B.version);return Z instanceof Promise?Z.then(ee=>[!0,ee]):[!0,Z]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,B.state];return[!1,void 0]}).then(B=>{var Z;if(C!==h)return;const[ee,re]=B;if(w=c.merge(re,(Z=s())!=null?Z:S),r(w,!0),ee)return b()}).then(()=>{C===h&&(H==null||H(s(),void 0),w=s(),u=!0,g.forEach(B=>B(w)))}).catch(B=>{C===h&&(H==null||H(void 0,B))})};return l.persist={setOptions:A=>{c={...c,...A},A.storage&&(y=A.storage)},clearStorage:()=>{y==null||y.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>M(),hasHydrated:()=>u,onHydrate:A=>(m.add(A),()=>{m.delete(A)}),onFinishHydration:A=>(g.add(A),()=>{g.delete(A)})},c.skipHydration||M(),w||S},T1=tw,Qd={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_GITHUB_CLIENT_ID:"01ab8ac9400c4e429b23"};function M1(e){var c,u,h,m;const n=typeof import.meta<"u"&&typeof Qd=="object"&&Qd?Qd:void 0,r=(n==null?void 0:n[e])??(n==null?void 0:n[`VITE_${e}`]);if(typeof r=="string"&&r.trim().length>0)return r.trim();const s=globalThis,l=((u=(c=s.process)==null?void 0:c.env)==null?void 0:u[e])??((m=(h=s.process)==null?void 0:h.env)==null?void 0:m[`VITE_${e}`]);return typeof l=="string"?l.trim():""}const nw="vscode/1.99.0",aw="copilot-chat/0.28.0",rw="copilot/1.280.0",iw=M1("COPILOT_EDITOR_VERSION")||nw,sw=M1("COPILOT_CHAT_PLUGIN_VERSION")||aw,Bg=M1("COPILOT_AUTH_PLUGIN_VERSION")||rw,lw="vscode-chat",ow="conversation-panel",cw="DesignX/0.1";function Nf(e,n={}){const{pluginVersion:r=sw,includeIntegrationId:s=!0,includeOpenAIIntent:l=!0}=n,c={Authorization:e,"User-Agent":cw};return c["Editor-Version"]=iw,r&&(c["Editor-Plugin-Version"]=r),l&&(c["OpenAI-Intent"]=ow),s&&(c["Copilot-Integration-Id"]=lw),c}const uw="read:user user:email",Zg="2025-04-01",Jd=2;function Ug(e){return new Promise(n=>window.setTimeout(n,e))}function dw(e){if(!e)return null;const n=Number(e);if(Number.isFinite(n)&&n>0)return Math.round(n*1e3);const r=Date.parse(e);if(Number.isNaN(r))return null;const s=r-Date.now();return s>0?s:null}function fw(e,n,r){let s=null;try{s=r.length>0?JSON.parse(r):null}catch{s=null}const c=(s&&typeof s.message=="string"?s.message:null)??(r.trim()||`HTTP ${e}`),u=s&&typeof s.documentation_url=="string"?s.documentation_url:null;return e===404?{status:e,classification:"endpoint_not_found_or_no_entitlement",requestId:n,docsUrl:u,message:c}:e===401?{status:e,classification:"invalid_or_expired_github_token",requestId:n,docsUrl:u,message:c}:e===403?{status:e,classification:"forbidden_by_policy_or_entitlement",requestId:n,docsUrl:u,message:c}:e===429?{status:e,classification:"rate_limited",requestId:n,docsUrl:u,message:c}:e>=500||e===0?{status:e,classification:"server_or_network_error",requestId:n,docsUrl:u,message:c}:{status:e,classification:"unknown_failure",requestId:n,docsUrl:u,message:c}}function Pg(e){const n=e.requestId?` requestId=${e.requestId}`:"",r=e.docsUrl?` docs=${e.docsUrl}`:"";return new Error(`Copilot token exchange failed (${e.status}). ${e.classification}. ${e.message}${n}${r}`)}async function hw(e){const n=await fetch("/api/github-auth/login/device/code",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:e,scope:uw})});if(!n.ok)throw new Error(`Device flow init failed: ${n.status}`);return n.json()}function mw(e,n,r){let s=r;return new Promise((l,c)=>{const u=async()=>{const m=await(await fetch("/api/github-auth/login/oauth/access_token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},body:new URLSearchParams({client_id:e,device_code:n,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})})).json();if(m.access_token){l(m.access_token);return}switch(m.error){case"authorization_pending":setTimeout(u,s*1e3);break;case"slow_down":s+=5,setTimeout(u,s*1e3);break;case"expired_token":c(new Error("expired_token"));break;case"access_denied":c(new Error("access_denied"));break;default:setTimeout(u,s*1e3)}};setTimeout(u,s*1e3)})}async function gy(e){const n=crypto.randomUUID(),r=[{auth:`token ${e}`,headers:{...Nf(`token ${e}`,{pluginVersion:Bg,includeOpenAIIntent:!1}),Accept:"application/json","X-GitHub-Api-Version":Zg,"X-Request-Id":n}},{auth:`Bearer ${e}`,headers:{...Nf(`Bearer ${e}`,{pluginVersion:Bg,includeOpenAIIntent:!1}),Accept:"application/json","X-GitHub-Api-Version":Zg,"X-Request-Id":n}}],s=new Set;let l={status:0,classification:"unknown_failure",requestId:null,docsUrl:null,message:"No response received."};for(const c of r){const u=`${c.auth}|${c.headers["Editor-Version"]??""}|${c.headers["Editor-Plugin-Version"]??""}`;if(!s.has(u)){s.add(u);for(let h=0;h<=Jd;h+=1){let m;try{m=await fetch("/api/github-api/copilot_internal/v2/token",{headers:c.headers})}catch(x){if(l={status:0,classification:"server_or_network_error",requestId:null,docsUrl:null,message:x instanceof Error?x.message:"Network error"},h<Jd){await Ug(700*(h+1));continue}break}if(m.ok)return m.json();const g=await m.text(),y=fw(m.status,m.headers.get("x-github-request-id"),g);if(l=y,(m.status===429||m.status>=500)&&h<Jd){const x=dw(m.headers.get("retry-after"));await Ug(x??700*(h+1));continue}if(m.status!==404)throw Pg(y);break}}}throw Pg(l)}async function pw(e){const n=await fetch("/api/github-api/user",{headers:{Authorization:`token ${e}`}});if(!n.ok)throw new Error(`GitHub user fetch failed: ${n.status}`);const r=await n.json();return{login:r.login,name:r.name??null,avatar_url:r.avatar_url}}const sa=nr()(T1((e,n)=>({githubToken:null,copilotToken:null,copilotTokenExpiresAt:null,user:null,setAuth:(r,s,l,c)=>{e({githubToken:r,copilotToken:s,copilotTokenExpiresAt:l,user:c}),qS({githubToken:r,copilotToken:s,copilotTokenExpiresAt:l,user:c})},ensureFreshCopilotToken:async(r=!1)=>{const{githubToken:s,copilotToken:l,copilotTokenExpiresAt:c}=n();if(!s)throw new Error("Not authenticated");const u=Date.now(),h=!!l&&l!==s&&!!c&&c>u+6e4;if(!r&&h)return l;try{const m=await gy(s),g=new Date(m.expires_at).getTime();return e({copilotToken:m.token,copilotTokenExpiresAt:g}),m.token}catch{if(l&&l!==s)return l;throw e({copilotToken:null,copilotTokenExpiresAt:null}),new Error("Copilot session token refresh failed. Reconnect Copilot.")}},disconnect:()=>{e({githubToken:null,copilotToken:null,copilotTokenExpiresAt:null,user:null}),KS()}}),{name:"dx-auth"}));async function Ig(e=!1){return sa.getState().ensureFreshCopilotToken(e)}const oi=nr()(T1(e=>({provider:null,apiKey:null,setByok:(n,r)=>e({provider:n,apiKey:r}),clearByok:()=>e({provider:null,apiKey:null})}),{name:"dx-byok"}));function yy(e){var n,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(r=yy(e[n]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function gw(){for(var e,n,r=0,s="",l=arguments.length;r<l;r++)(e=arguments[r])&&(n=yy(e))&&(s&&(s+=" "),s+=n);return s}const R1="-",yw=e=>{const n=vw(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:u=>{const h=u.split(R1);return h[0]===""&&h.length!==1&&h.shift(),by(h,n)||bw(u)},getConflictingClassGroupIds:(u,h)=>{const m=r[u]||[];return h&&s[u]?[...m,...s[u]]:m}}},by=(e,n)=>{var u;if(e.length===0)return n.classGroupId;const r=e[0],s=n.nextPart.get(r),l=s?by(e.slice(1),s):void 0;if(l)return l;if(n.validators.length===0)return;const c=e.join(R1);return(u=n.validators.find(({validator:h})=>h(c)))==null?void 0:u.classGroupId},$g=/^\[(.+)\]$/,bw=e=>{if($g.test(e)){const n=$g.exec(e)[1],r=n==null?void 0:n.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},vw=e=>{const{theme:n,prefix:r}=e,s={nextPart:new Map,validators:[]};return Ew(Object.entries(e.classGroups),r).forEach(([c,u])=>{_f(u,s,c,n)}),s},_f=(e,n,r,s)=>{e.forEach(l=>{if(typeof l=="string"){const c=l===""?n:Fg(n,l);c.classGroupId=r;return}if(typeof l=="function"){if(xw(l)){_f(l(s),n,r,s);return}n.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([c,u])=>{_f(u,Fg(n,c),r,s)})})},Fg=(e,n)=>{let r=e;return n.split(R1).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},xw=e=>e.isThemeGetter,Ew=(e,n)=>n?e.map(([r,s])=>{const l=s.map(c=>typeof c=="string"?n+c:typeof c=="object"?Object.fromEntries(Object.entries(c).map(([u,h])=>[n+u,h])):c);return[r,l]}):e,Sw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,s=new Map;const l=(c,u)=>{r.set(c,u),n++,n>e&&(n=0,s=r,r=new Map)};return{get(c){let u=r.get(c);if(u!==void 0)return u;if((u=s.get(c))!==void 0)return l(c,u),u},set(c,u){r.has(c)?r.set(c,u):l(c,u)}}},vy="!",ww=e=>{const{separator:n,experimentalParseClassName:r}=e,s=n.length===1,l=n[0],c=n.length,u=h=>{const m=[];let g=0,y=0,b;for(let A=0;A<h.length;A++){let j=h[A];if(g===0){if(j===l&&(s||h.slice(A,A+c)===n)){m.push(h.slice(y,A)),y=A+c;continue}if(j==="/"){b=A;continue}}j==="["?g++:j==="]"&&g--}const x=m.length===0?h:h.substring(y),S=x.startsWith(vy),w=S?x.substring(1):x,M=b&&b>y?b-y:void 0;return{modifiers:m,hasImportantModifier:S,baseClassName:w,maybePostfixModifierPosition:M}};return r?h=>r({className:h,parseClassName:u}):u},Aw=e=>{if(e.length<=1)return e;const n=[];let r=[];return e.forEach(s=>{s[0]==="["?(n.push(...r.sort(),s),r=[]):r.push(s)}),n.push(...r.sort()),n},Tw=e=>({cache:Sw(e.cacheSize),parseClassName:ww(e),...yw(e)}),Mw=/\s+/,Rw=(e,n)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:l}=n,c=[],u=e.trim().split(Mw);let h="";for(let m=u.length-1;m>=0;m-=1){const g=u[m],{modifiers:y,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:S}=r(g);let w=!!S,M=s(w?x.substring(0,S):x);if(!M){if(!w){h=g+(h.length>0?" "+h:h);continue}if(M=s(x),!M){h=g+(h.length>0?" "+h:h);continue}w=!1}const A=Aw(y).join(":"),j=b?A+vy:A,C=j+M;if(c.includes(C))continue;c.push(C);const H=l(M,w);for(let B=0;B<H.length;++B){const Z=H[B];c.push(j+Z)}h=g+(h.length>0?" "+h:h)}return h};function Cw(){let e=0,n,r,s="";for(;e<arguments.length;)(n=arguments[e++])&&(r=xy(n))&&(s&&(s+=" "),s+=r);return s}const xy=e=>{if(typeof e=="string")return e;let n,r="";for(let s=0;s<e.length;s++)e[s]&&(n=xy(e[s]))&&(r&&(r+=" "),r+=n);return r};function Gg(e,...n){let r,s,l,c=u;function u(m){const g=n.reduce((y,b)=>b(y),e());return r=Tw(g),s=r.cache.get,l=r.cache.set,c=h,h(m)}function h(m){const g=s(m);if(g)return g;const y=Rw(m,r);return l(m,y),y}return function(){return c(Cw.apply(null,arguments))}}const Ft=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},Ey=/^\[(?:([a-z-]+):)?(.+)\]$/i,kw=/^\d+\/\d+$/,Nw=new Set(["px","full","screen"]),_w=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Dw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ow=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wr=e=>Ds(e)||Nw.has(e)||kw.test(e),ei=e=>zs(e,"length",Iw),Ds=e=>!!e&&!Number.isNaN(Number(e)),Wd=e=>zs(e,"number",Ds),zl=e=>!!e&&Number.isInteger(Number(e)),Hw=e=>e.endsWith("%")&&Ds(e.slice(0,-1)),We=e=>Ey.test(e),ti=e=>_w.test(e),Vw=new Set(["length","size","percentage"]),zw=e=>zs(e,Vw,Sy),Bw=e=>zs(e,"position",Sy),Zw=new Set(["image","url"]),Uw=e=>zs(e,Zw,Fw),Pw=e=>zs(e,"",$w),Bl=()=>!0,zs=(e,n,r)=>{const s=Ey.exec(e);return s?s[1]?typeof n=="string"?s[1]===n:n.has(s[1]):r(s[2]):!1},Iw=e=>jw.test(e)&&!Dw.test(e),Sy=()=>!1,$w=e=>Lw.test(e),Fw=e=>Ow.test(e),qg=()=>{const e=Ft("colors"),n=Ft("spacing"),r=Ft("blur"),s=Ft("brightness"),l=Ft("borderColor"),c=Ft("borderRadius"),u=Ft("borderSpacing"),h=Ft("borderWidth"),m=Ft("contrast"),g=Ft("grayscale"),y=Ft("hueRotate"),b=Ft("invert"),x=Ft("gap"),S=Ft("gradientColorStops"),w=Ft("gradientColorStopPositions"),M=Ft("inset"),A=Ft("margin"),j=Ft("opacity"),C=Ft("padding"),H=Ft("saturate"),B=Ft("scale"),Z=Ft("sepia"),ee=Ft("skew"),re=Ft("space"),N=Ft("translate"),ce=()=>["auto","contain","none"],le=()=>["auto","hidden","clip","visible","scroll"],ue=()=>["auto",We,n],X=()=>[We,n],xe=()=>["",wr,ei],me=()=>["auto",Ds,We],ve=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],V=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",We],we=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[Ds,We];return{cacheSize:500,separator:":",theme:{colors:[Bl],spacing:[wr,ei],blur:["none","",ti,We],brightness:k(),borderColor:[e],borderRadius:["none","","full",ti,We],borderSpacing:X(),borderWidth:xe(),contrast:k(),grayscale:de(),hueRotate:k(),invert:de(),gap:X(),gradientColorStops:[e],gradientColorStopPositions:[Hw,ei],inset:ue(),margin:ue(),opacity:k(),padding:X(),saturate:k(),scale:k(),sepia:de(),skew:k(),space:X(),translate:X()},classGroups:{aspect:[{aspect:["auto","square","video",We]}],container:["container"],columns:[{columns:[ti]}],"break-after":[{"break-after":we()}],"break-before":[{"break-before":we()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ve(),We]}],overflow:[{overflow:le()}],"overflow-x":[{"overflow-x":le()}],"overflow-y":[{"overflow-y":le()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-y":[{"overscroll-y":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[M]}],"inset-x":[{"inset-x":[M]}],"inset-y":[{"inset-y":[M]}],start:[{start:[M]}],end:[{end:[M]}],top:[{top:[M]}],right:[{right:[M]}],bottom:[{bottom:[M]}],left:[{left:[M]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zl,We]}],basis:[{basis:ue()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",We]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",zl,We]}],"grid-cols":[{"grid-cols":[Bl]}],"col-start-end":[{col:["auto",{span:["full",zl,We]},We]}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":[Bl]}],"row-start-end":[{row:["auto",{span:[zl,We]},We]}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",We]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",We]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[re]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",We,n]}],"min-w":[{"min-w":[We,n,"min","max","fit"]}],"max-w":[{"max-w":[We,n,"none","full","min","max","fit","prose",{screen:[ti]},ti]}],h:[{h:[We,n,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[We,n,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[We,n,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[We,n,"auto","min","max","fit"]}],"font-size":[{text:["base",ti,ei]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wd]}],"font-family":[{font:[Bl]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",We]}],"line-clamp":[{"line-clamp":["none",Ds,Wd]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wr,We]}],"list-image":[{"list-image":["none",We]}],"list-style-type":[{list:["none","disc","decimal",We]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wr,ei]}],"underline-offset":[{"underline-offset":["auto",wr,We]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:X()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",We]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",We]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ve(),Bw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zw]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Uw]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[c]}],"rounded-s":[{"rounded-s":[c]}],"rounded-e":[{"rounded-e":[c]}],"rounded-t":[{"rounded-t":[c]}],"rounded-r":[{"rounded-r":[c]}],"rounded-b":[{"rounded-b":[c]}],"rounded-l":[{"rounded-l":[c]}],"rounded-ss":[{"rounded-ss":[c]}],"rounded-se":[{"rounded-se":[c]}],"rounded-ee":[{"rounded-ee":[c]}],"rounded-es":[{"rounded-es":[c]}],"rounded-tl":[{"rounded-tl":[c]}],"rounded-tr":[{"rounded-tr":[c]}],"rounded-br":[{"rounded-br":[c]}],"rounded-bl":[{"rounded-bl":[c]}],"border-w":[{border:[h]}],"border-w-x":[{"border-x":[h]}],"border-w-y":[{"border-y":[h]}],"border-w-s":[{"border-s":[h]}],"border-w-e":[{"border-e":[h]}],"border-w-t":[{"border-t":[h]}],"border-w-r":[{"border-r":[h]}],"border-w-b":[{"border-b":[h]}],"border-w-l":[{"border-l":[h]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...V(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:V()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[wr,We]}],"outline-w":[{outline:[wr,ei]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:xe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[wr,ei]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ti,Pw]}],"shadow-color":[{shadow:[Bl]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",ti,We]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[b]}],saturate:[{saturate:[H]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",We]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",We]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",We]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[zl,We]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[ee]}],"skew-y":[{"skew-y":[ee]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",We]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",We]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":X()}],"scroll-mx":[{"scroll-mx":X()}],"scroll-my":[{"scroll-my":X()}],"scroll-ms":[{"scroll-ms":X()}],"scroll-me":[{"scroll-me":X()}],"scroll-mt":[{"scroll-mt":X()}],"scroll-mr":[{"scroll-mr":X()}],"scroll-mb":[{"scroll-mb":X()}],"scroll-ml":[{"scroll-ml":X()}],"scroll-p":[{"scroll-p":X()}],"scroll-px":[{"scroll-px":X()}],"scroll-py":[{"scroll-py":X()}],"scroll-ps":[{"scroll-ps":X()}],"scroll-pe":[{"scroll-pe":X()}],"scroll-pt":[{"scroll-pt":X()}],"scroll-pr":[{"scroll-pr":X()}],"scroll-pb":[{"scroll-pb":X()}],"scroll-pl":[{"scroll-pl":X()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",We]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[wr,ei,Wd]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Gw=(e,{cacheSize:n,prefix:r,separator:s,experimentalParseClassName:l,extend:c={},override:u={}})=>{Yl(e,"cacheSize",n),Yl(e,"prefix",r),Yl(e,"separator",s),Yl(e,"experimentalParseClassName",l);for(const h in u)qw(e[h],u[h]);for(const h in c)Kw(e[h],c[h]);return e},Yl=(e,n,r)=>{r!==void 0&&(e[n]=r)},qw=(e,n)=>{if(n)for(const r in n)Yl(e,r,n[r])},Kw=(e,n)=>{if(n)for(const r in n){const s=n[r];s!==void 0&&(e[r]=(e[r]||[]).concat(s))}},Yw=(e,...n)=>typeof e=="function"?Gg(qg,e,...n):Gg(()=>Gw(qg(),e),...n),Xw=Yw({extend:{classGroups:{"font-size":[{text:["display-hero","display-secondary","section-heading","card-heading","feature-title","sub-heading","body-large","body","body-standard","body-medium","button","button-large","button-small","nav-link","caption","small","uppercase-label"]}]}}});function Ha(...e){return Xw(gw(e))}const wy="enigma_artifacts_v1";function Qw(){try{const e=localStorage.getItem(wy);if(!e)return{};const n=JSON.parse(e);return typeof n=="object"&&n!==null?n:{}}catch{return{}}}function ef(e){try{localStorage.setItem(wy,JSON.stringify(e))}catch{}}const Ls=nr(e=>({byProject:Qw(),upsertArtifacts:(n,r)=>{e(s=>{const c=[...s.byProject[n]??[]];for(const h of r){const m=c.findIndex(g=>g.id===h.id);m>=0?c[m]=h:c.push(h)}const u={...s.byProject,[n]:c};return ef(u),Vg(n,c),{byProject:u}})},finalizeProjectArtifacts:n=>{e(r=>{const s=r.byProject[n];if(!s)return r;const l={...r.byProject,[n]:s.map(c=>({...c,isStreaming:!1}))};return ef(l),Vg(n,l[n]),{byProject:l}})},clearProjectArtifacts:n=>{e(r=>{const{[n]:s,...l}=r.byProject;return ef(l),{byProject:l}})}}));async function Jw(e,n,r){const s=await fetch("/api/kb/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectSlug:e,source:r,files:n.map(l=>({id:l.id,name:l.name,size:l.size,type:l.type}))})});if(!s.ok)throw new Error("Failed to start KB processing.");return await s.json()}async function Ay(e){const n=await fetch(`/api/kb/jobs/${e}`);if(!n.ok)throw new Error("Failed to load KB processing status.");return await n.json()}async function tf(e,n){const r=await fetch(`/api/kb/jobs/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error("Failed to update KB processing status.");return await r.json()}const Ty="enigma_kb_jobs",jf=new Map;function Ww(){try{const e=localStorage.getItem(Ty);if(!e)return{};const n=JSON.parse(e);return typeof n=="object"&&n?n:{}}catch{return{}}}function e7(e){try{localStorage.setItem(Ty,JSON.stringify(e))}catch{console.error("Failed to save KB jobs")}}function uu(e){const n=jf.get(e);n!==void 0&&(window.clearTimeout(n),jf.delete(e))}function Ka(e){return e7(e),e}function Df(e,n){return{projectSlug:e.projectSlug,jobId:e.id,source:e.source,status:e.status,progress:e.progress,stageLabel:e.stageLabel,filesCount:e.fileCount,createdAt:e.createdAt,updatedAt:e.updatedAt,contextRefreshPending:e.status==="applied"?!1:(n==null?void 0:n.contextRefreshPending)??e.status==="ready",autoApplyToContext:(n==null?void 0:n.autoApplyToContext)??!0,error:e.error??(n==null?void 0:n.error)??null}}function Lf(e,n=900){uu(e);const r=window.setTimeout(async()=>{const s=Dn.getState().jobsByProject[e];if(s!=null&&s.jobId){try{const l=await Ay(s.jobId);Dn.setState(u=>{const h=u.jobsByProject[e];if(!h)return u;const m=Df(l,h);return{jobsByProject:Ka({...u.jobsByProject,[e]:m})}});const c=Dn.getState().jobsByProject[e];if(c&&(c.status==="queued"||c.status==="processing")){Lf(e);return}}catch{Dn.getState().markContextRefreshDeferred(e,"KB status channel was interrupted. Re-run extraction to try again.")}uu(e)}},n);jf.set(e,r)}const Dn=nr((e,n)=>({jobsByProject:Ww(),queueKbJob:async(r,s,l,c=!0)=>{if(uu(r),s.length===0){e(u=>{const h={...u.jobsByProject};return delete h[r],{jobsByProject:Ka(h)}});return}e(u=>{const h=u.jobsByProject[r];return{jobsByProject:Ka({...u.jobsByProject,[r]:{projectSlug:r,jobId:(h==null?void 0:h.jobId)??null,source:l,status:"queued",progress:8,stageLabel:"Queued KB intake for orchestrator preprocessing.",filesCount:s.length,createdAt:(h==null?void 0:h.createdAt)??null,updatedAt:new Date().toISOString(),contextRefreshPending:!0,autoApplyToContext:c,error:null}})}});try{const u=await Jw(r,s,l);e(h=>({jobsByProject:Ka({...h.jobsByProject,[r]:{...Df(u,h.jobsByProject[r]),autoApplyToContext:c,contextRefreshPending:!0}})})),Lf(r)}catch(u){e(h=>({jobsByProject:Ka({...h.jobsByProject,[r]:{projectSlug:r,jobId:null,source:l,status:"failed",progress:0,stageLabel:"KB preprocessing could not start.",filesCount:s.length,createdAt:null,updatedAt:new Date().toISOString(),contextRefreshPending:!0,autoApplyToContext:c,error:u instanceof Error?u.message:"Failed to start KB preprocessing."}})}))}},resumeProjectJob:async r=>{const s=n().jobsByProject[r];if(s!=null&&s.jobId&&!(s.status!=="queued"&&s.status!=="processing"))try{const l=await Ay(s.jobId);e(u=>({jobsByProject:Ka({...u.jobsByProject,[r]:Df(l,u.jobsByProject[r])})}));const c=n().jobsByProject[r];c&&(c.status==="queued"||c.status==="processing")&&Lf(r)}catch{n().markContextRefreshDeferred(r,"KB status channel was interrupted. Re-run extraction to try again.")}},markContextRefreshStarted:r=>{e(l=>{const c=l.jobsByProject[r];return c?{jobsByProject:Ka({...l.jobsByProject,[r]:{...c,status:"refreshing-context",progress:100,stageLabel:"Applying the prepared KB package to the active project context.",updatedAt:new Date().toISOString(),error:null}})}:l});const s=n().jobsByProject[r];s!=null&&s.jobId&&tf(s.jobId,{status:"refreshing-context",progress:100,stageLabel:"Applying the prepared KB package to the active project context.",error:null}).catch(()=>{console.error("Failed to persist KB context-refresh start state")})},markContextRefreshCompleted:r=>{e(l=>{const c=l.jobsByProject[r];return c?{jobsByProject:Ka({...l.jobsByProject,[r]:{...c,status:"applied",progress:100,stageLabel:"Project context refreshed from the latest KB package.",updatedAt:new Date().toISOString(),contextRefreshPending:!1,error:null}})}:l});const s=n().jobsByProject[r];s!=null&&s.jobId&&tf(s.jobId,{status:"applied",progress:100,stageLabel:"Project context refreshed from the latest KB package.",error:null}).catch(()=>{console.error("Failed to persist KB context-refresh completion state")})},markContextRefreshDeferred:(r,s)=>{e(c=>{const u=c.jobsByProject[r];return u?{jobsByProject:Ka({...c.jobsByProject,[r]:{...u,status:u.jobId?"ready":"failed",progress:u.jobId?100:0,stageLabel:u.jobId?"KB package ready for project-context refresh.":"KB preprocessing could not finish.",updatedAt:new Date().toISOString(),contextRefreshPending:!!u.jobId,autoApplyToContext:!1,error:s}})}:c});const l=n().jobsByProject[r];l!=null&&l.jobId&&tf(l.jobId,{status:"ready",progress:100,stageLabel:"KB package ready for project-context refresh.",error:s}).catch(()=>{console.error("Failed to persist deferred KB context-refresh state")})},clearProjectJob:r=>{uu(r),e(s=>{const l={...s.jobsByProject};return delete l[r],{jobsByProject:Ka(l)}})}})),My="enigma_project_sessions",Kg="enigma_current_project";function t7(){try{const e=localStorage.getItem(My);if(!e)return new Map;const n=JSON.parse(e);return new Map(Object.entries(n))}catch{return new Map}}function Yg(e){try{const n=Object.fromEntries(e);localStorage.setItem(My,JSON.stringify(n))}catch{console.error("Failed to save project sessions to localStorage")}}const du=nr((e,n)=>({sessions:t7(),saveProjectSession:(r,s)=>e(l=>{const c=new Map(l.sessions),h={...c.get(r)||{slug:r,lastActiveAt:new Date().toISOString(),currentPhaseNumber:0,messages:[],isStreaming:!1,activeGateKey:null,inputDraft:""},...s,slug:r,lastActiveAt:new Date().toISOString()};return c.set(r,h),Yg(c),PS(r,h),{sessions:c}}),getProjectSession:r=>n().sessions.get(r)||null,clearProjectSession:r=>e(s=>{const l=new Map(s.sessions);return l.delete(r),Yg(l),{sessions:l}}),setCurrentProject:r=>{try{localStorage.setItem(Kg,r)}catch{console.error("Failed to save current project")}},getCurrentProject:()=>{try{return localStorage.getItem(Kg)}catch{return null}}})),ku=new Map;function n7(e,n){ku.set(e,n)}function a7(e){return ku.get(e)??null}function r7(e){ku.delete(e)}function i7(e){for(const n of e)ku.delete(n)}const s7={1:"bg-lemon-500",2:"bg-slushie-500",3:"bg-ube-300",4:"bg-matcha-300",5:"bg-blueberry-800",6:"bg-pomegranate-400",7:"bg-ube-800"},l7={1:"Onboarding",2:"Discover",3:"Ideate",4:"Design",5:"Plan",6:"Deliver",7:"Measure"};function o7({project:e,isActive:n}){const r=yo(),s=zt(S=>S.removeProject),l=zt(S=>S.clearProject),c=Ls(S=>S.clearProjectArtifacts),u=Dn(S=>S.clearProjectJob),h=du(S=>S.clearProjectSession),m=s7[e.current_phase]??"bg-border",g=l7[e.current_phase]??`Phase ${e.current_phase}`,y=e.status==="onboarding";function b(){r(y?`/setup/${e.slug}`:`/project/${e.slug}`)}function x(S){if(S.stopPropagation(),S.preventDefault(),!!window.confirm(`Delete "${e.name}"?`)){try{localStorage.removeItem(`enigma_stream_${e.slug}`)}catch{}i7(e.kb_files.map(w=>w.id)),c(e.slug),u(e.slug),h(e.slug),s(e.slug),n&&(l(),r("/"))}}return v.jsxs("div",{className:"group relative",children:[v.jsxs("button",{onClick:b,"aria-current":n?"page":void 0,"aria-label":`${e.name}, ${g} phase${e.status==="gate-pending"?", gate review pending":""}`,className:Ha("w-full flex items-center gap-3 px-3 py-2.5 pr-8 rounded-card text-left cursor-pointer transition-all","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary",n?"bg-card border border-border shadow-clay text-text-primary":"text-text-secondary hover:bg-[rgba(0,0,0,0.04)] hover:text-text-primary"),children:[v.jsx("span",{className:Ha("w-2 h-2 rounded-full flex-shrink-0",m),"aria-hidden":"true"}),v.jsxs("span",{className:"flex-1 min-w-0",children:[v.jsx("span",{className:"block text-button-small font-medium truncate",children:e.name}),v.jsx("span",{className:"block text-small text-text-tertiary truncate",children:g})]}),e.status==="gate-pending"&&v.jsx("span",{className:"flex-shrink-0 w-1.5 h-1.5 rounded-full bg-lemon-500","aria-hidden":"true",title:"Gate review pending"})]}),v.jsx("button",{type:"button",onClick:x,"aria-label":`Delete ${e.name}`,className:Ha("absolute right-1.5 top-1/2 -translate-y-1/2","w-6 h-6 flex items-center justify-center rounded-card","opacity-0 group-hover:opacity-100 transition-opacity duration-100","text-text-tertiary hover:text-pomegranate-400","focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary"),children:v.jsx(_S,{size:13,"aria-hidden":"true"})})]})}function c7(){const e=zt(S=>S.projects),n=zt(S=>S.clearProject),{pathname:r}=Za(),s=yo(),l=sa(S=>S.user),c=sa(S=>S.disconnect),u=sa(S=>S.githubToken),h=sa(S=>S.copilotToken),m=oi(S=>!!S.apiKey),g=!!h||m,y=m?"BYOK":h&&u&&h!==u?"Copilot":"GitHub",b=r.startsWith("/project/")||r.startsWith("/setup/")?r.split("/")[2]??null:null;function x(){sessionStorage.setItem("enigma_skip_restore_once","true"),n(),s("/setup")}return v.jsxs("nav",{"aria-label":"Projects navigation",className:"w-[260px] flex-shrink-0 flex flex-col h-full border-r border-border bg-canvas",children:[v.jsx("div",{className:"h-14 flex items-center px-4 border-b border-border",children:v.jsx(w1,{to:"/",className:`text-feature-title font-features-display text-text-primary font-semibold
|
|
63
|
+
tracking-tight hover:opacity-80 transition-opacity focus-visible:outline-none
|
|
64
|
+
focus-visible:ring-2 focus-visible:ring-text-primary rounded-sharp`,"aria-label":"DesignX — go to home",children:"DesignX"})}),v.jsx("div",{className:"px-3 pt-3",children:v.jsxs("button",{type:"button",onClick:x,className:`flex items-center gap-2 w-full px-3 py-2.5 rounded-card
|
|
65
|
+
bg-card border border-border shadow-clay
|
|
66
|
+
text-button-small font-medium text-text-primary
|
|
67
|
+
hover:-translate-y-0.5 hover:shadow-hover-subtle
|
|
68
|
+
transition-all duration-100
|
|
69
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary`,"aria-label":"Start a new project",children:[v.jsx(kS,{size:14,weight:"bold","aria-hidden":"true"}),"New Project"]})}),v.jsx("hr",{className:"mx-3 mt-3 border-border","aria-hidden":"true"}),v.jsx("div",{className:"flex-1 overflow-y-auto py-2 px-2",children:e.length===0?v.jsx("p",{className:"px-3 py-2 text-small text-text-tertiary",role:"status",children:"No projects yet"}):v.jsx("ul",{role:"list",className:"space-y-0.5",children:e.map(S=>v.jsx("li",{role:"listitem",children:v.jsx(o7,{project:S,isActive:S.slug===b})},S.id))})}),l&&v.jsx("div",{className:"p-3 border-t border-border",children:v.jsxs("div",{className:"flex items-center gap-2.5 px-2 py-1.5 rounded-card",children:[v.jsxs("div",{className:"relative flex-shrink-0",children:[v.jsx("img",{src:l.avatar_url,alt:`${l.login}'s avatar`,className:"w-6 h-6 rounded-full"}),g&&v.jsx("span",{className:"absolute -bottom-0.5 -right-0.5 w-2 h-2 rounded-full bg-emerald-500 ring-1 ring-canvas",title:`Connected via ${y}`,"aria-label":`Connected via ${y}`})]}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsxs("span",{className:"block text-caption text-text-secondary truncate",children:["@",l.login]}),v.jsxs("span",{className:"block text-caption text-text-tertiary",children:["via ",y]})]}),v.jsx("button",{onClick:c,"aria-label":"Disconnect GitHub Copilot",className:`text-small text-text-tertiary hover:text-pomegranate-400 transition-colors
|
|
70
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary rounded-sharp`,children:"Disconnect"})]})})]})}const u7="modulepreload",d7=function(e){return"/"+e},Xg={},Wl=function(n,r,s){let l=Promise.resolve();if(r&&r.length>0){let u=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));l=u(r.map(g=>{if(g=d7(g),g in Xg)return;Xg[g]=!0;const y=g.endsWith(".css"),b=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${b}`))return;const x=document.createElement("link");if(x.rel=y?"stylesheet":u7,y||(x.as="script"),x.crossOrigin="",x.href=g,m&&x.setAttribute("nonce",m),document.head.appendChild(x),y)return new Promise((S,w)=>{x.addEventListener("load",S),x.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${g}`)))})}))}function c(u){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=u,window.dispatchEvent(h),!h.defaultPrevented)throw u}return l.then(u=>{for(const h of u||[])h.status==="rejected"&&c(h.reason);return n().catch(c)})};function C1(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ii=C1();function Ry(e){Ii=e}var Li={exec:()=>null};function Ss(e){let n=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),l=n[s];return l||(l=e(s),n[s]=l),l}}function pt(e,n=""){let r=typeof e=="string"?e:e.source,s={replace:(l,c)=>{let u=typeof c=="string"?c:c.source;return u=u.replace(Ln.caret,"$1"),r=r.replace(l,u),s},getRegex:()=>new RegExp(r,n)};return s}var f7=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Ln={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ss(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ss(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ss(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ss(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Ss(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ss(e=>new RegExp(`^ {0,${e}}>`))},h7=/^(?:[ \t]*(?:\n|$))+/,m7=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,p7=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,vo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,g7=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,k1=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Cy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ky=pt(Cy).replace(/bull/g,k1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),y7=pt(Cy).replace(/bull/g,k1).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),N1=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,b7=/^[^\n]+/,_1=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,v7=pt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_1).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),x7=pt(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,k1).getRegex(),Nu="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",j1=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,E7=pt("^ {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",j1).replace("tag",Nu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ny=pt(N1).replace("hr",vo).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nu).getRegex(),S7=pt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ny).getRegex(),D1={blockquote:S7,code:m7,def:v7,fences:p7,heading:g7,hr:vo,html:E7,lheading:ky,list:x7,newline:h7,paragraph:Ny,table:Li,text:b7},Qg=pt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",vo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nu).getRegex(),w7={...D1,lheading:y7,table:Qg,paragraph:pt(N1).replace("hr",vo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Qg).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nu).getRegex()},A7={...D1,html:pt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",j1).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:Li,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:pt(N1).replace("hr",vo).replace("heading",` *#{1,6} *[^
|
|
71
|
+
]`).replace("lheading",ky).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},T7=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,M7=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_y=/^( {2,}|\\)\n(?!\s*$)/,R7=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Bs=/[\p{P}\p{S}]/u,_u=/[\s\p{P}\p{S}]/u,L1=/[^\s\p{P}\p{S}]/u,C7=pt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_u).getRegex(),jy=/(?!~)[\p{P}\p{S}]/u,k7=/(?!~)[\s\p{P}\p{S}]/u,N7=/(?:[^\s\p{P}\p{S}]|~)/u,_7=pt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",f7?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Dy=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,j7=pt(Dy,"u").replace(/punct/g,Bs).getRegex(),D7=pt(Dy,"u").replace(/punct/g,jy).getRegex(),Ly="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",L7=pt(Ly,"gu").replace(/notPunctSpace/g,L1).replace(/punctSpace/g,_u).replace(/punct/g,Bs).getRegex(),O7=pt(Ly,"gu").replace(/notPunctSpace/g,N7).replace(/punctSpace/g,k7).replace(/punct/g,jy).getRegex(),H7=pt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,L1).replace(/punctSpace/g,_u).replace(/punct/g,Bs).getRegex(),V7=pt(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Bs).getRegex(),z7="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",B7=pt(z7,"gu").replace(/notPunctSpace/g,L1).replace(/punctSpace/g,_u).replace(/punct/g,Bs).getRegex(),Z7=pt(/\\(punct)/,"gu").replace(/punct/g,Bs).getRegex(),U7=pt(/^<(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(),P7=pt(j1).replace("(?:-->|$)","-->").getRegex(),I7=pt("^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",P7).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,$7=pt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",fu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Oy=pt(/^!?\[(label)\]\[(ref)\]/).replace("label",fu).replace("ref",_1).getRegex(),Hy=pt(/^!?\[(ref)\](?:\[\])?/).replace("ref",_1).getRegex(),F7=pt("reflink|nolink(?!\\()","g").replace("reflink",Oy).replace("nolink",Hy).getRegex(),Jg=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,O1={_backpedal:Li,anyPunctuation:Z7,autolink:U7,blockSkip:_7,br:_y,code:M7,del:Li,delLDelim:Li,delRDelim:Li,emStrongLDelim:j7,emStrongRDelimAst:L7,emStrongRDelimUnd:H7,escape:T7,link:$7,nolink:Hy,punctuation:C7,reflink:Oy,reflinkSearch:F7,tag:I7,text:R7,url:Li},G7={...O1,link:pt(/^!?\[(label)\]\((.*?)\)/).replace("label",fu).getRegex(),reflink:pt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fu).getRegex()},Of={...O1,emStrongRDelimAst:O7,emStrongLDelim:D7,delLDelim:V7,delRDelim:B7,url:pt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Jg).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\S]|[^\s~\\]))\1(?=[^~]|$)/,text:pt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Jg).getRegex()},q7={...Of,br:pt(_y).replace("{2,}","*").getRegex(),text:pt(Of.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zc={normal:D1,gfm:w7,pedantic:A7},Zl={normal:O1,gfm:Of,breaks:q7,pedantic:G7},K7={"&":"&","<":"<",">":">",'"':""","'":"'"},Wg=e=>K7[e];function Ya(e,n){if(n){if(Ln.escapeTest.test(e))return e.replace(Ln.escapeReplace,Wg)}else if(Ln.escapeTestNoEncode.test(e))return e.replace(Ln.escapeReplaceNoEncode,Wg);return e}function e8(e){try{e=encodeURI(e).replace(Ln.percentDecode,"%")}catch{return null}return e}function t8(e,n){var c;let r=e.replace(Ln.findPipe,(u,h,m)=>{let g=!1,y=h;for(;--y>=0&&m[y]==="\\";)g=!g;return g?"|":" |"}),s=r.split(Ln.splitPipe),l=0;if(s[0].trim()||s.shift(),s.length>0&&!((c=s.at(-1))!=null&&c.trim())&&s.pop(),n)if(s.length>n)s.splice(n);else for(;s.length<n;)s.push("");for(;l<s.length;l++)s[l]=s[l].trim().replace(Ln.slashPipe,"|");return s}function ni(e,n,r){let s=e.length;if(s===0)return"";let l=0;for(;l<s&&e.charAt(s-l-1)===n;)l++;return e.slice(0,s-l)}function n8(e){let n=e.split(`
|
|
72
|
+
`),r=n.length-1;for(;r>=0&&Ln.blankLine.test(n[r]);)r--;return n.length-r<=2?e:n.slice(0,r+1).join(`
|
|
73
|
+
`)}function Y7(e,n){if(e.indexOf(n[1])===-1)return-1;let r=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===n[0])r++;else if(e[s]===n[1]&&(r--,r<0))return s;return r>0?-2:-1}function X7(e,n=0){let r=n,s="";for(let l of e)if(l===" "){let c=4-r%4;s+=" ".repeat(c),r+=c}else s+=l,r++;return s}function a8(e,n,r,s,l){let c=n.href,u=n.title||null,h=e[1].replace(l.other.outputLinkReplace,"$1");s.state.inLink=!0;let m={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:c,title:u,text:h,tokens:s.inlineTokens(h)};return s.state.inLink=!1,m}function Q7(e,n,r){let s=e.match(r.other.indentCodeCompensation);if(s===null)return n;let l=s[1];return n.split(`
|
|
74
|
+
`).map(c=>{let u=c.match(r.other.beginningSpace);if(u===null)return c;let[h]=u;return h.length>=l.length?c.slice(l.length):c}).join(`
|
|
75
|
+
`)}var hu=class{constructor(e){Lt(this,"options");Lt(this,"rules");Lt(this,"lexer");this.options=e||Ii}space(e){let n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){let n=this.rules.block.code.exec(e);if(n){let r=this.options.pedantic?n[0]:n8(n[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let r=n[0],s=Q7(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(e){let n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){let s=ni(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:ni(n[0],`
|
|
76
|
+
`),depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:ni(n[0],`
|
|
77
|
+
`)}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let r=ni(n[0],`
|
|
78
|
+
`).split(`
|
|
79
|
+
`),s="",l="",c=[];for(;r.length>0;){let u=!1,h=[],m;for(m=0;m<r.length;m++)if(this.rules.other.blockquoteStart.test(r[m]))h.push(r[m]),u=!0;else if(!u)h.push(r[m]);else break;r=r.slice(m);let g=h.join(`
|
|
80
|
+
`),y=g.replace(this.rules.other.blockquoteSetextReplace,`
|
|
81
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
82
|
+
${g}`:g,l=l?`${l}
|
|
83
|
+
${y}`:y;let b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,c,!0),this.lexer.state.top=b,r.length===0)break;let x=c.at(-1);if((x==null?void 0:x.type)==="code")break;if((x==null?void 0:x.type)==="blockquote"){let S=x,w=S.raw+`
|
|
84
|
+
`+r.join(`
|
|
85
|
+
`),M=this.blockquote(w);c[c.length-1]=M,s=s.substring(0,s.length-S.raw.length)+M.raw,l=l.substring(0,l.length-S.text.length)+M.text;break}else if((x==null?void 0:x.type)==="list"){let S=x,w=S.raw+`
|
|
86
|
+
`+r.join(`
|
|
87
|
+
`),M=this.list(w);c[c.length-1]=M,s=s.substring(0,s.length-x.raw.length)+M.raw,l=l.substring(0,l.length-S.raw.length)+M.raw,r=w.substring(c.at(-1).raw.length).split(`
|
|
88
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:c,text:l}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r=n[1].trim(),s=r.length>1,l={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let c=this.rules.other.listItemRegex(r),u=!1;for(;e;){let m=!1,g="",y="";if(!(n=c.exec(e))||this.rules.block.hr.test(e))break;g=n[0],e=e.substring(g.length);let b=X7(n[2].split(`
|
|
89
|
+
`,1)[0],n[1].length),x=e.split(`
|
|
90
|
+
`,1)[0],S=!b.trim(),w=0;if(this.options.pedantic?(w=2,y=b.trimStart()):S?w=n[1].length+1:(w=b.search(this.rules.other.nonSpaceChar),w=w>4?1:w,y=b.slice(w),w+=n[1].length),S&&this.rules.other.blankLine.test(x)&&(g+=x+`
|
|
91
|
+
`,e=e.substring(x.length+1),m=!0),!m){let M=this.rules.other.nextBulletRegex(w),A=this.rules.other.hrRegex(w),j=this.rules.other.fencesBeginRegex(w),C=this.rules.other.headingBeginRegex(w),H=this.rules.other.htmlBeginRegex(w),B=this.rules.other.blockquoteBeginRegex(w);for(;e;){let Z=e.split(`
|
|
92
|
+
`,1)[0],ee;if(x=Z,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),ee=x):ee=x.replace(this.rules.other.tabCharGlobal," "),j.test(x)||C.test(x)||H.test(x)||B.test(x)||M.test(x)||A.test(x))break;if(ee.search(this.rules.other.nonSpaceChar)>=w||!x.trim())y+=`
|
|
93
|
+
`+ee.slice(w);else{if(S||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||j.test(b)||C.test(b)||A.test(b))break;y+=`
|
|
94
|
+
`+x}S=!x.trim(),g+=Z+`
|
|
95
|
+
`,e=e.substring(Z.length+1),b=ee.slice(w)}}l.loose||(u?l.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(u=!0)),l.items.push({type:"list_item",raw:g,task:!!this.options.gfm&&this.rules.other.listIsTask.test(y),loose:!1,text:y,tokens:[]}),l.raw+=g}let h=l.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let m of l.items){this.lexer.state.top=!1,m.tokens=this.lexer.blockTokens(m.text,[]);let g=m.tokens[0];if(m.task&&((g==null?void 0:g.type)==="text"||(g==null?void 0:g.type)==="paragraph")){m.text=m.text.replace(this.rules.other.listReplaceTask,""),g.raw=g.raw.replace(this.rules.other.listReplaceTask,""),g.text=g.text.replace(this.rules.other.listReplaceTask,"");for(let b=this.lexer.inlineQueue.length-1;b>=0;b--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[b].src)){this.lexer.inlineQueue[b].src=this.lexer.inlineQueue[b].src.replace(this.rules.other.listReplaceTask,"");break}let y=this.rules.other.listTaskCheckbox.exec(m.raw);if(y){let b={type:"checkbox",raw:y[0]+" ",checked:y[0]!=="[ ]"};m.checked=b.checked,l.loose?m.tokens[0]&&["paragraph","text"].includes(m.tokens[0].type)&&"tokens"in m.tokens[0]&&m.tokens[0].tokens?(m.tokens[0].raw=b.raw+m.tokens[0].raw,m.tokens[0].text=b.raw+m.tokens[0].text,m.tokens[0].tokens.unshift(b)):m.tokens.unshift({type:"paragraph",raw:b.raw,text:b.raw,tokens:[b]}):m.tokens.unshift(b)}}else m.task&&(m.task=!1);if(!l.loose){let y=m.tokens.filter(x=>x.type==="space"),b=y.length>0&&y.some(x=>this.rules.other.anyLine.test(x.raw));l.loose=b}}if(l.loose)for(let m of l.items){m.loose=!0;for(let g of m.tokens)g.type==="text"&&(g.type="paragraph")}return l}}html(e){let n=this.rules.block.html.exec(e);if(n){let r=n8(n[0]);return{type:"html",block:!0,raw:r,pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:r}}}def(e){let n=this.rules.block.def.exec(e);if(n){let r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:ni(n[0],`
|
|
96
|
+
`),href:s,title:l}}}table(e){var u;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=t8(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=(u=n[3])!=null&&u.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
97
|
+
`):[],c={type:"table",raw:ni(n[0],`
|
|
98
|
+
`),header:[],align:[],rows:[]};if(r.length===s.length){for(let h of s)this.rules.other.tableAlignRight.test(h)?c.align.push("right"):this.rules.other.tableAlignCenter.test(h)?c.align.push("center"):this.rules.other.tableAlignLeft.test(h)?c.align.push("left"):c.align.push(null);for(let h=0;h<r.length;h++)c.header.push({text:r[h],tokens:this.lexer.inline(r[h]),header:!0,align:c.align[h]});for(let h of l)c.rows.push(t8(h,c.header.length).map((m,g)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:c.align[g]})));return c}}lheading(e){let n=this.rules.block.lheading.exec(e);if(n){let r=n[1].trim();return{type:"heading",raw:ni(n[0],`
|
|
99
|
+
`),depth:n[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(e){let n=this.rules.block.paragraph.exec(e);if(n){let r=n[1].charAt(n[1].length-1)===`
|
|
100
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){let n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(e){let n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){let n=this.rules.inline.link.exec(e);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let c=ni(r.slice(0,-1),"\\");if((r.length-c.length)%2===0)return}else{let c=Y7(n[2],"()");if(c===-2)return;if(c>-1){let u=(n[0].indexOf("!")===0?5:4)+n[1].length+c;n[2]=n[2].substring(0,c),n[0]=n[0].substring(0,u).trim(),n[3]=""}}let s=n[2],l="";if(this.options.pedantic){let c=this.rules.other.pedanticHrefTitle.exec(s);c&&(s=c[1],l=c[3])}else l=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),a8(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=n[s.toLowerCase()];if(!l){let c=r[0].charAt(0);return{type:"text",raw:c,text:c}}return a8(r,l,r[0],this.lexer,this.rules)}}emStrong(e,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!r||this.rules.inline.punctuation.exec(r))){let l=[...s[0]].length-1,c,u,h=l,m=0,g=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,n=n.slice(-1*e.length+l);(s=g.exec(n))!==null;){if(c=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!c)continue;if(u=[...c].length,s[3]||s[4]){h+=u;continue}else if((s[5]||s[6])&&l%3&&!((l+u)%3)){m+=u;continue}if(h-=u,h>0)continue;u=Math.min(u,u+h+m);let y=[...s[0]][0].length,b=e.slice(0,l+s.index+y+u);if(Math.min(l,u)%2){let S=b.slice(1,-1);return{type:"em",raw:b,text:S,tokens:this.lexer.inlineTokens(S)}}let x=b.slice(2,-2);return{type:"strong",raw:b,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(e){let n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),l=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&l&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(e){let n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e,n,r=""){let s=this.rules.inline.delLDelim.exec(e);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let l=[...s[0]].length-1,c,u,h=l,m=this.rules.inline.delRDelim;for(m.lastIndex=0,n=n.slice(-1*e.length+l);(s=m.exec(n))!==null;){if(c=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!c||(u=[...c].length,u!==l))continue;if(s[3]||s[4]){h+=u;continue}if(h-=u,h>0)continue;u=Math.min(u,u+h);let g=[...s[0]][0].length,y=e.slice(0,l+s.index+g+u),b=y.slice(l,-l);return{type:"del",raw:y,text:b,tokens:this.lexer.inlineTokens(b)}}}}autolink(e){let n=this.rules.inline.autolink.exec(e);if(n){let r,s;return n[2]==="@"?(r=n[1],s="mailto:"+r):(r=n[1],s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let n;if(n=this.rules.inline.url.exec(e)){let s,l;if(n[2]==="@")s=n[0],l="mailto:"+s;else{let c;do c=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(c!==n[0]);s=n[0],n[1]==="www."?l="http://"+n[0]:l=n[0]}return{type:"link",raw:n[0],text:s,href:l,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){let n=this.rules.inline.text.exec(e);if(n){let r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},La=class Hf{constructor(n){Lt(this,"tokens");Lt(this,"options");Lt(this,"state");Lt(this,"inlineQueue");Lt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=n||Ii,this.options.tokenizer=this.options.tokenizer||new hu,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={other:Ln,block:zc.normal,inline:Zl.normal};this.options.pedantic?(r.block=zc.pedantic,r.inline=Zl.pedantic):this.options.gfm&&(r.block=zc.gfm,this.options.breaks?r.inline=Zl.breaks:r.inline=Zl.gfm),this.tokenizer.rules=r}static get rules(){return{block:zc,inline:Zl}}static lex(n,r){return new Hf(r).lex(n)}static lexInline(n,r){return new Hf(r).inlineTokens(n)}lex(n){n=n.replace(Ln.carriageReturn,`
|
|
101
|
+
`),this.blockTokens(n,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(n,r=[],s=!1){var c,u,h;this.tokenizer.lexer=this,this.options.pedantic&&(n=n.replace(Ln.tabCharGlobal," ").replace(Ln.spaceLine,""));let l=1/0;for(;n;){if(n.length<l)l=n.length;else{this.infiniteLoopError(n.charCodeAt(0));break}let m;if((u=(c=this.options.extensions)==null?void 0:c.block)!=null&&u.some(y=>(m=y.call({lexer:this},n,r))?(n=n.substring(m.raw.length),r.push(m),!0):!1))continue;if(m=this.tokenizer.space(n)){n=n.substring(m.raw.length);let y=r.at(-1);m.raw.length===1&&y!==void 0?y.raw+=`
|
|
102
|
+
`:r.push(m);continue}if(m=this.tokenizer.code(n)){n=n.substring(m.raw.length);let y=r.at(-1);(y==null?void 0:y.type)==="paragraph"||(y==null?void 0:y.type)==="text"?(y.raw+=(y.raw.endsWith(`
|
|
103
|
+
`)?"":`
|
|
104
|
+
`)+m.raw,y.text+=`
|
|
105
|
+
`+m.text,this.inlineQueue.at(-1).src=y.text):r.push(m);continue}if(m=this.tokenizer.fences(n)){n=n.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.heading(n)){n=n.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.hr(n)){n=n.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.blockquote(n)){n=n.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.list(n)){n=n.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.html(n)){n=n.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.def(n)){n=n.substring(m.raw.length);let y=r.at(-1);(y==null?void 0:y.type)==="paragraph"||(y==null?void 0:y.type)==="text"?(y.raw+=(y.raw.endsWith(`
|
|
106
|
+
`)?"":`
|
|
107
|
+
`)+m.raw,y.text+=`
|
|
108
|
+
`+m.raw,this.inlineQueue.at(-1).src=y.text):this.tokens.links[m.tag]||(this.tokens.links[m.tag]={href:m.href,title:m.title},r.push(m));continue}if(m=this.tokenizer.table(n)){n=n.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.lheading(n)){n=n.substring(m.raw.length),r.push(m);continue}let g=n;if((h=this.options.extensions)!=null&&h.startBlock){let y=1/0,b=n.slice(1),x;this.options.extensions.startBlock.forEach(S=>{x=S.call({lexer:this},b),typeof x=="number"&&x>=0&&(y=Math.min(y,x))}),y<1/0&&y>=0&&(g=n.substring(0,y+1))}if(this.state.top&&(m=this.tokenizer.paragraph(g))){let y=r.at(-1);s&&(y==null?void 0:y.type)==="paragraph"?(y.raw+=(y.raw.endsWith(`
|
|
109
|
+
`)?"":`
|
|
110
|
+
`)+m.raw,y.text+=`
|
|
111
|
+
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=y.text):r.push(m),s=g.length!==n.length,n=n.substring(m.raw.length);continue}if(m=this.tokenizer.text(n)){n=n.substring(m.raw.length);let y=r.at(-1);(y==null?void 0:y.type)==="text"?(y.raw+=(y.raw.endsWith(`
|
|
112
|
+
`)?"":`
|
|
113
|
+
`)+m.raw,y.text+=`
|
|
114
|
+
`+m.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=y.text):r.push(m);continue}if(n){this.infiniteLoopError(n.charCodeAt(0));break}}return this.state.top=!0,r}inline(n,r=[]){return this.inlineQueue.push({src:n,tokens:r}),r}inlineTokens(n,r=[]){var g,y,b,x,S;this.tokenizer.lexer=this;let s=n,l=null;if(this.tokens.links){let w=Object.keys(this.tokens.links);if(w.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)w.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(s))!==null;)s=s.slice(0,l.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let c;for(;(l=this.tokenizer.rules.inline.blockSkip.exec(s))!==null;)c=l[2]?l[2].length:0,s=s.slice(0,l.index+c)+"["+"a".repeat(l[0].length-c-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((y=(g=this.options.hooks)==null?void 0:g.emStrongMask)==null?void 0:y.call({lexer:this},s))??s;let u=!1,h="",m=1/0;for(;n;){if(n.length<m)m=n.length;else{this.infiniteLoopError(n.charCodeAt(0));break}u||(h=""),u=!1;let w;if((x=(b=this.options.extensions)==null?void 0:b.inline)!=null&&x.some(A=>(w=A.call({lexer:this},n,r))?(n=n.substring(w.raw.length),r.push(w),!0):!1))continue;if(w=this.tokenizer.escape(n)){n=n.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.tag(n)){n=n.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.link(n)){n=n.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(w.raw.length);let A=r.at(-1);w.type==="text"&&(A==null?void 0:A.type)==="text"?(A.raw+=w.raw,A.text+=w.text):r.push(w);continue}if(w=this.tokenizer.emStrong(n,s,h)){n=n.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.codespan(n)){n=n.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.br(n)){n=n.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.del(n,s,h)){n=n.substring(w.raw.length),r.push(w);continue}if(w=this.tokenizer.autolink(n)){n=n.substring(w.raw.length),r.push(w);continue}if(!this.state.inLink&&(w=this.tokenizer.url(n))){n=n.substring(w.raw.length),r.push(w);continue}let M=n;if((S=this.options.extensions)!=null&&S.startInline){let A=1/0,j=n.slice(1),C;this.options.extensions.startInline.forEach(H=>{C=H.call({lexer:this},j),typeof C=="number"&&C>=0&&(A=Math.min(A,C))}),A<1/0&&A>=0&&(M=n.substring(0,A+1))}if(w=this.tokenizer.inlineText(M)){n=n.substring(w.raw.length),w.raw.slice(-1)!=="_"&&(h=w.raw.slice(-1)),u=!0;let A=r.at(-1);(A==null?void 0:A.type)==="text"?(A.raw+=w.raw,A.text+=w.text):r.push(w);continue}if(n){this.infiniteLoopError(n.charCodeAt(0));break}}return r}infiniteLoopError(n){let r="Infinite loop on byte: "+n;if(this.options.silent)console.error(r);else throw new Error(r)}},mu=class{constructor(e){Lt(this,"options");Lt(this,"parser");this.options=e||Ii}space(e){return""}code({text:e,lang:n,escaped:r}){var c;let s=(c=(n||"").match(Ln.notSpaceStart))==null?void 0:c[0],l=e.replace(Ln.endingNewline,"")+`
|
|
115
|
+
`;return s?'<pre><code class="language-'+Ya(s)+'">'+(r?l:Ya(l,!0))+`</code></pre>
|
|
116
|
+
`:"<pre><code>"+(r?l:Ya(l,!0))+`</code></pre>
|
|
117
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
118
|
+
${this.parser.parse(e)}</blockquote>
|
|
119
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:n}){return`<h${n}>${this.parser.parseInline(e)}</h${n}>
|
|
120
|
+
`}hr(e){return`<hr>
|
|
121
|
+
`}list(e){let n=e.ordered,r=e.start,s="";for(let u=0;u<e.items.length;u++){let h=e.items[u];s+=this.listitem(h)}let l=n?"ol":"ul",c=n&&r!==1?' start="'+r+'"':"";return"<"+l+c+`>
|
|
122
|
+
`+s+"</"+l+`>
|
|
123
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
124
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
125
|
+
`}table(e){let n="",r="";for(let l=0;l<e.header.length;l++)r+=this.tablecell(e.header[l]);n+=this.tablerow({text:r});let s="";for(let l=0;l<e.rows.length;l++){let c=e.rows[l];r="";for(let u=0;u<c.length;u++)r+=this.tablecell(c[u]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
126
|
+
<thead>
|
|
127
|
+
`+n+`</thead>
|
|
128
|
+
`+s+`</table>
|
|
129
|
+
`}tablerow({text:e}){return`<tr>
|
|
130
|
+
${e}</tr>
|
|
131
|
+
`}tablecell(e){let n=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`</${r}>
|
|
132
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Ya(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:n,tokens:r}){let s=this.parser.parseInline(r),l=e8(e);if(l===null)return s;e=l;let c='<a href="'+e+'"';return n&&(c+=' title="'+Ya(n)+'"'),c+=">"+s+"</a>",c}image({href:e,title:n,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let l=e8(e);if(l===null)return Ya(r);e=l;let c=`<img src="${e}" alt="${Ya(r)}"`;return n&&(c+=` title="${Ya(n)}"`),c+=">",c}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Ya(e.text)}},H1=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},Oa=class Vf{constructor(n){Lt(this,"options");Lt(this,"renderer");Lt(this,"textRenderer");this.options=n||Ii,this.options.renderer=this.options.renderer||new mu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new H1}static parse(n,r){return new Vf(r).parse(n)}static parseInline(n,r){return new Vf(r).parseInline(n)}parse(n){var s,l;this.renderer.parser=this;let r="";for(let c=0;c<n.length;c++){let u=n[c];if((l=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&l[u.type]){let m=u,g=this.options.extensions.renderers[m.type].call({parser:this},m);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){r+=g||"";continue}}let h=u;switch(h.type){case"space":{r+=this.renderer.space(h);break}case"hr":{r+=this.renderer.hr(h);break}case"heading":{r+=this.renderer.heading(h);break}case"code":{r+=this.renderer.code(h);break}case"table":{r+=this.renderer.table(h);break}case"blockquote":{r+=this.renderer.blockquote(h);break}case"list":{r+=this.renderer.list(h);break}case"checkbox":{r+=this.renderer.checkbox(h);break}case"html":{r+=this.renderer.html(h);break}case"def":{r+=this.renderer.def(h);break}case"paragraph":{r+=this.renderer.paragraph(h);break}case"text":{r+=this.renderer.text(h);break}default:{let m='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return r}parseInline(n,r=this.renderer){var l,c;this.renderer.parser=this;let s="";for(let u=0;u<n.length;u++){let h=n[u];if((c=(l=this.options.extensions)==null?void 0:l.renderers)!=null&&c[h.type]){let g=this.options.extensions.renderers[h.type].call({parser:this},h);if(g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(h.type)){s+=g||"";continue}}let m=h;switch(m.type){case"escape":{s+=r.text(m);break}case"html":{s+=r.html(m);break}case"link":{s+=r.link(m);break}case"image":{s+=r.image(m);break}case"checkbox":{s+=r.checkbox(m);break}case"strong":{s+=r.strong(m);break}case"em":{s+=r.em(m);break}case"codespan":{s+=r.codespan(m);break}case"br":{s+=r.br(m);break}case"del":{s+=r.del(m);break}case"text":{s+=r.text(m);break}default:{let g='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return s}},qc,Xl=(qc=class{constructor(e){Lt(this,"options");Lt(this,"block");this.options=e||Ii}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?La.lex:La.lexInline}provideParser(e=this.block){return e?Oa.parse:Oa.parseInline}},Lt(qc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Lt(qc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),qc),J7=class{constructor(...e){Lt(this,"defaults",C1());Lt(this,"options",this.setOptions);Lt(this,"parse",this.parseMarkdown(!0));Lt(this,"parseInline",this.parseMarkdown(!1));Lt(this,"Parser",Oa);Lt(this,"Renderer",mu);Lt(this,"TextRenderer",H1);Lt(this,"Lexer",La);Lt(this,"Tokenizer",hu);Lt(this,"Hooks",Xl);this.use(...e)}walkTokens(e,n){var s,l;let r=[];for(let c of e)switch(r=r.concat(n.call(this,c)),c.type){case"table":{let u=c;for(let h of u.header)r=r.concat(this.walkTokens(h.tokens,n));for(let h of u.rows)for(let m of h)r=r.concat(this.walkTokens(m.tokens,n));break}case"list":{let u=c;r=r.concat(this.walkTokens(u.items,n));break}default:{let u=c;(l=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&l[u.type]?this.defaults.extensions.childTokens[u.type].forEach(h=>{let m=u[h].flat(1/0);r=r.concat(this.walkTokens(m,n))}):u.tokens&&(r=r.concat(this.walkTokens(u.tokens,n)))}}return r}use(...e){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){let c=n.renderers[l.name];c?n.renderers[l.name]=function(...u){let h=l.renderer.apply(this,u);return h===!1&&(h=c.apply(this,u)),h}:n.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let c=n[l.level];c?c.unshift(l.tokenizer):n[l.level]=[l.tokenizer],l.start&&(l.level==="block"?n.startBlock?n.startBlock.push(l.start):n.startBlock=[l.start]:l.level==="inline"&&(n.startInline?n.startInline.push(l.start):n.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(n.childTokens[l.name]=l.childTokens)}),s.extensions=n),r.renderer){let l=this.defaults.renderer||new mu(this.defaults);for(let c in r.renderer){if(!(c in l))throw new Error(`renderer '${c}' does not exist`);if(["options","parser"].includes(c))continue;let u=c,h=r.renderer[u],m=l[u];l[u]=(...g)=>{let y=h.apply(l,g);return y===!1&&(y=m.apply(l,g)),y||""}}s.renderer=l}if(r.tokenizer){let l=this.defaults.tokenizer||new hu(this.defaults);for(let c in r.tokenizer){if(!(c in l))throw new Error(`tokenizer '${c}' does not exist`);if(["options","rules","lexer"].includes(c))continue;let u=c,h=r.tokenizer[u],m=l[u];l[u]=(...g)=>{let y=h.apply(l,g);return y===!1&&(y=m.apply(l,g)),y}}s.tokenizer=l}if(r.hooks){let l=this.defaults.hooks||new Xl;for(let c in r.hooks){if(!(c in l))throw new Error(`hook '${c}' does not exist`);if(["options","block"].includes(c))continue;let u=c,h=r.hooks[u],m=l[u];Xl.passThroughHooks.has(c)?l[u]=g=>{if(this.defaults.async&&Xl.passThroughHooksRespectAsync.has(c))return(async()=>{let b=await h.call(l,g);return m.call(l,b)})();let y=h.call(l,g);return m.call(l,y)}:l[u]=(...g)=>{if(this.defaults.async)return(async()=>{let b=await h.apply(l,g);return b===!1&&(b=await m.apply(l,g)),b})();let y=h.apply(l,g);return y===!1&&(y=m.apply(l,g)),y}}s.hooks=l}if(r.walkTokens){let l=this.defaults.walkTokens,c=r.walkTokens;s.walkTokens=function(u){let h=[];return h.push(c.call(this,u)),l&&(h=h.concat(l.call(this,u))),h}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,n){return La.lex(e,n??this.defaults)}parser(e,n){return Oa.parse(e,n??this.defaults)}parseMarkdown(e){return(n,r)=>{let s={...r},l={...this.defaults,...s},c=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return c(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=e),l.async)return(async()=>{let u=l.hooks?await l.hooks.preprocess(n):n,h=await(l.hooks?await l.hooks.provideLexer(e):e?La.lex:La.lexInline)(u,l),m=l.hooks?await l.hooks.processAllTokens(h):h;l.walkTokens&&await Promise.all(this.walkTokens(m,l.walkTokens));let g=await(l.hooks?await l.hooks.provideParser(e):e?Oa.parse:Oa.parseInline)(m,l);return l.hooks?await l.hooks.postprocess(g):g})().catch(c);try{l.hooks&&(n=l.hooks.preprocess(n));let u=(l.hooks?l.hooks.provideLexer(e):e?La.lex:La.lexInline)(n,l);l.hooks&&(u=l.hooks.processAllTokens(u)),l.walkTokens&&this.walkTokens(u,l.walkTokens);let h=(l.hooks?l.hooks.provideParser(e):e?Oa.parse:Oa.parseInline)(u,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(u){return c(u)}}}onError(e,n){return r=>{if(r.message+=`
|
|
133
|
+
Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error occurred:</p><pre>"+Ya(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}},Ui=new J7;function kt(e,n){return Ui.parse(e,n)}kt.options=kt.setOptions=function(e){return Ui.setOptions(e),kt.defaults=Ui.defaults,Ry(kt.defaults),kt};kt.getDefaults=C1;kt.defaults=Ii;kt.use=function(...e){return Ui.use(...e),kt.defaults=Ui.defaults,Ry(kt.defaults),kt};kt.walkTokens=function(e,n){return Ui.walkTokens(e,n)};kt.parseInline=Ui.parseInline;kt.Parser=Oa;kt.parser=Oa.parse;kt.Renderer=mu;kt.TextRenderer=H1;kt.Lexer=La;kt.lexer=La.lex;kt.Tokenizer=hu;kt.Hooks=Xl;kt.parse=kt;kt.options;kt.setOptions;kt.use;kt.walkTokens;kt.parseInline;Oa.parse;La.lex;const V1=d.createContext({});function z1(e){const n=d.useRef(null);return n.current===null&&(n.current=e()),n.current}const W7=typeof window<"u",Vy=W7?d.useLayoutEffect:d.useEffect,ju=d.createContext(null);function B1(e,n){e.indexOf(n)===-1&&e.push(n)}function pu(e,n){const r=e.indexOf(n);r>-1&&e.splice(r,1)}const er=(e,n,r)=>r>n?n:r<e?e:r;let Z1=()=>{};const ui={},zy=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function By(e){return typeof e=="object"&&e!==null}const Zy=e=>/^0[^.\s]+$/u.test(e);function Uy(e){let n;return()=>(n===void 0&&(n=e()),n)}const Ta=e=>e,eA=(e,n)=>r=>n(e(r)),xo=(...e)=>e.reduce(eA),lo=(e,n,r)=>{const s=n-e;return s===0?1:(r-e)/s};class U1{constructor(){this.subscriptions=[]}add(n){return B1(this.subscriptions,n),()=>pu(this.subscriptions,n)}notify(n,r,s){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](n,r,s);else for(let c=0;c<l;c++){const u=this.subscriptions[c];u&&u(n,r,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const la=e=>e*1e3,wa=e=>e/1e3;function Py(e,n){return n?e*(1e3/n):0}const Iy=(e,n,r)=>(((1-3*r+3*n)*e+(3*r-6*n))*e+3*n)*e,tA=1e-7,nA=12;function aA(e,n,r,s,l){let c,u,h=0;do u=n+(r-n)/2,c=Iy(u,s,l)-e,c>0?r=u:n=u;while(Math.abs(c)>tA&&++h<nA);return u}function Eo(e,n,r,s){if(e===n&&r===s)return Ta;const l=c=>aA(c,0,1,e,r);return c=>c===0||c===1?c:Iy(l(c),n,s)}const $y=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,Fy=e=>n=>1-e(1-n),Gy=Eo(.33,1.53,.69,.99),P1=Fy(Gy),qy=$y(P1),Ky=e=>e>=1?1:(e*=2)<1?.5*P1(e):.5*(2-Math.pow(2,-10*(e-1))),I1=e=>1-Math.sin(Math.acos(e)),Yy=Fy(I1),Xy=$y(I1),rA=Eo(.42,0,1,1),iA=Eo(0,0,.58,1),Qy=Eo(.42,0,.58,1),sA=e=>Array.isArray(e)&&typeof e[0]!="number",Jy=e=>Array.isArray(e)&&typeof e[0]=="number",lA={linear:Ta,easeIn:rA,easeInOut:Qy,easeOut:iA,circIn:I1,circInOut:Xy,circOut:Yy,backIn:P1,backInOut:qy,backOut:Gy,anticipate:Ky},oA=e=>typeof e=="string",r8=e=>{if(Jy(e)){Z1(e.length===4);const[n,r,s,l]=e;return Eo(n,r,s,l)}else if(oA(e))return lA[e];return e},Bc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function cA(e,n){let r=new Set,s=new Set,l=!1,c=!1;const u=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(y){u.has(y)&&(g.schedule(y),e()),y(h)}const g={schedule:(y,b=!1,x=!1)=>{const w=x&&l?r:s;return b&&u.add(y),w.add(y),y},cancel:y=>{s.delete(y),u.delete(y)},process:y=>{if(h=y,l){c=!0;return}l=!0;const b=r;r=s,s=b,r.forEach(m),r.clear(),l=!1,c&&(c=!1,g.process(y))}};return g}const uA=40;function Wy(e,n){let r=!1,s=!0;const l={delta:0,timestamp:0,isProcessing:!1},c=()=>r=!0,u=Bc.reduce((H,B)=>(H[B]=cA(c),H),{}),{setup:h,read:m,resolveKeyframes:g,preUpdate:y,update:b,preRender:x,render:S,postRender:w}=u,M=()=>{const H=ui.useManualTiming,B=H?l.timestamp:performance.now();r=!1,H||(l.delta=s?1e3/60:Math.max(Math.min(B-l.timestamp,uA),1)),l.timestamp=B,l.isProcessing=!0,h.process(l),m.process(l),g.process(l),y.process(l),b.process(l),x.process(l),S.process(l),w.process(l),l.isProcessing=!1,r&&n&&(s=!1,e(M))},A=()=>{r=!0,s=!0,l.isProcessing||e(M)};return{schedule:Bc.reduce((H,B)=>{const Z=u[B];return H[B]=(ee,re=!1,N=!1)=>(r||A(),Z.schedule(ee,re,N)),H},{}),cancel:H=>{for(let B=0;B<Bc.length;B++)u[Bc[B]].cancel(H)},state:l,steps:u}}const{schedule:Bt,cancel:di,state:Cn,steps:nf}=Wy(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ta,!0);let Jc;function dA(){Jc=void 0}const Zn={now:()=>(Jc===void 0&&Zn.set(Cn.isProcessing||ui.useManualTiming?Cn.timestamp:performance.now()),Jc),set:e=>{Jc=e,queueMicrotask(dA)}},eb=e=>n=>typeof n=="string"&&n.startsWith(e),tb=eb("--"),fA=eb("var(--"),$1=e=>fA(e)?hA.test(e.split("/*")[0].trim()):!1,hA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function i8(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Zs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},oo={...Zs,transform:e=>er(0,1,e)},Zc={...Zs,default:1},eo=e=>Math.round(e*1e5)/1e5,F1=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mA(e){return e==null}const pA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,G1=(e,n)=>r=>!!(typeof r=="string"&&pA.test(r)&&r.startsWith(e)||n&&!mA(r)&&Object.prototype.hasOwnProperty.call(r,n)),nb=(e,n,r)=>s=>{if(typeof s!="string")return s;const[l,c,u,h]=s.match(F1);return{[e]:parseFloat(l),[n]:parseFloat(c),[r]:parseFloat(u),alpha:h!==void 0?parseFloat(h):1}},gA=e=>er(0,255,e),af={...Zs,transform:e=>Math.round(gA(e))},Hi={test:G1("rgb","red"),parse:nb("red","green","blue"),transform:({red:e,green:n,blue:r,alpha:s=1})=>"rgba("+af.transform(e)+", "+af.transform(n)+", "+af.transform(r)+", "+eo(oo.transform(s))+")"};function yA(e){let n="",r="",s="",l="";return e.length>5?(n=e.substring(1,3),r=e.substring(3,5),s=e.substring(5,7),l=e.substring(7,9)):(n=e.substring(1,2),r=e.substring(2,3),s=e.substring(3,4),l=e.substring(4,5),n+=n,r+=r,s+=s,l+=l),{red:parseInt(n,16),green:parseInt(r,16),blue:parseInt(s,16),alpha:l?parseInt(l,16)/255:1}}const zf={test:G1("#"),parse:yA,transform:Hi.transform},So=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),ai=So("deg"),Ja=So("%"),Le=So("px"),bA=So("vh"),vA=So("vw"),s8={...Ja,parse:e=>Ja.parse(e)/100,transform:e=>Ja.transform(e*100)},ks={test:G1("hsl","hue"),parse:nb("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:r,alpha:s=1})=>"hsla("+Math.round(e)+", "+Ja.transform(eo(n))+", "+Ja.transform(eo(r))+", "+eo(oo.transform(s))+")"},fn={test:e=>Hi.test(e)||zf.test(e)||ks.test(e),parse:e=>Hi.test(e)?Hi.parse(e):ks.test(e)?ks.parse(e):zf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Hi.transform(e):ks.transform(e),getAnimatableNone:e=>{const n=fn.parse(e);return n.alpha=0,fn.transform(n)}},xA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function EA(e){var n,r;return isNaN(e)&&typeof e=="string"&&(((n=e.match(F1))==null?void 0:n.length)||0)+(((r=e.match(xA))==null?void 0:r.length)||0)>0}const ab="number",rb="color",SA="var",wA="var(",l8="${}",AA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Hs(e){const n=e.toString(),r=[],s={color:[],number:[],var:[]},l=[];let c=0;const h=n.replace(AA,m=>(fn.test(m)?(s.color.push(c),l.push(rb),r.push(fn.parse(m))):m.startsWith(wA)?(s.var.push(c),l.push(SA),r.push(m)):(s.number.push(c),l.push(ab),r.push(parseFloat(m))),++c,l8)).split(l8);return{values:r,split:h,indexes:s,types:l}}function TA(e){return Hs(e).values}function ib({split:e,types:n}){const r=e.length;return s=>{let l="";for(let c=0;c<r;c++)if(l+=e[c],s[c]!==void 0){const u=n[c];u===ab?l+=eo(s[c]):u===rb?l+=fn.transform(s[c]):l+=s[c]}return l}}function MA(e){return ib(Hs(e))}const RA=e=>typeof e=="number"?0:fn.test(e)?fn.getAnimatableNone(e):e,CA=(e,n)=>typeof e=="number"?n!=null&&n.trim().endsWith("/")?e:0:RA(e);function kA(e){const n=Hs(e);return ib(n)(n.values.map((s,l)=>CA(s,n.split[l])))}const za={test:EA,parse:TA,createTransformer:MA,getAnimatableNone:kA};function rf(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*6*r:r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function NA({hue:e,saturation:n,lightness:r,alpha:s}){e/=360,n/=100,r/=100;let l=0,c=0,u=0;if(!n)l=c=u=r;else{const h=r<.5?r*(1+n):r+n-r*n,m=2*r-h;l=rf(m,h,e+1/3),c=rf(m,h,e),u=rf(m,h,e-1/3)}return{red:Math.round(l*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:s}}function gu(e,n){return r=>r>0?n:e}const Gt=(e,n,r)=>e+(n-e)*r,sf=(e,n,r)=>{const s=e*e,l=r*(n*n-s)+s;return l<0?0:Math.sqrt(l)},_A=[zf,Hi,ks],jA=e=>_A.find(n=>n.test(e));function o8(e){const n=jA(e);if(!n)return!1;let r=n.parse(e);return n===ks&&(r=NA(r)),r}const c8=(e,n)=>{const r=o8(e),s=o8(n);if(!r||!s)return gu(e,n);const l={...r};return c=>(l.red=sf(r.red,s.red,c),l.green=sf(r.green,s.green,c),l.blue=sf(r.blue,s.blue,c),l.alpha=Gt(r.alpha,s.alpha,c),Hi.transform(l))},Bf=new Set(["none","hidden"]);function DA(e,n){return Bf.has(e)?r=>r<=0?e:n:r=>r>=1?n:e}function LA(e,n){return r=>Gt(e,n,r)}function q1(e){return typeof e=="number"?LA:typeof e=="string"?$1(e)?gu:fn.test(e)?c8:VA:Array.isArray(e)?sb:typeof e=="object"?fn.test(e)?c8:OA:gu}function sb(e,n){const r=[...e],s=r.length,l=e.map((c,u)=>q1(c)(c,n[u]));return c=>{for(let u=0;u<s;u++)r[u]=l[u](c);return r}}function OA(e,n){const r={...e,...n},s={};for(const l in r)e[l]!==void 0&&n[l]!==void 0&&(s[l]=q1(e[l])(e[l],n[l]));return l=>{for(const c in s)r[c]=s[c](l);return r}}function HA(e,n){const r=[],s={color:0,var:0,number:0};for(let l=0;l<n.values.length;l++){const c=n.types[l],u=e.indexes[c][s[c]],h=e.values[u]??0;r[l]=h,s[c]++}return r}const VA=(e,n)=>{const r=za.createTransformer(n),s=Hs(e),l=Hs(n);return s.indexes.var.length===l.indexes.var.length&&s.indexes.color.length===l.indexes.color.length&&s.indexes.number.length>=l.indexes.number.length?Bf.has(e)&&!l.values.length||Bf.has(n)&&!s.values.length?DA(e,n):xo(sb(HA(s,l),l.values),r):gu(e,n)};function lb(e,n,r){return typeof e=="number"&&typeof n=="number"&&typeof r=="number"?Gt(e,n,r):q1(e)(e,n)}const zA=e=>{const n=({timestamp:r})=>e(r);return{start:(r=!0)=>Bt.update(n,r),stop:()=>di(n),now:()=>Cn.isProcessing?Cn.timestamp:Zn.now()}},ob=(e,n,r=10)=>{let s="";const l=Math.max(Math.round(n/r),2);for(let c=0;c<l;c++)s+=Math.round(e(c/(l-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},yu=2e4;function K1(e){let n=0;const r=50;let s=e.next(n);for(;!s.done&&n<yu;)n+=r,s=e.next(n);return n>=yu?1/0:n}function BA(e,n=100,r){const s=r({...e,keyframes:[0,n]}),l=Math.min(K1(s),yu);return{type:"keyframes",ease:c=>s.next(l*c).value/n,duration:wa(l)}}const Wt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Zf(e,n){return e*Math.sqrt(1-n*n)}const ZA=12;function UA(e,n,r){let s=r;for(let l=1;l<ZA;l++)s=s-e(s)/n(s);return s}const lf=.001;function PA({duration:e=Wt.duration,bounce:n=Wt.bounce,velocity:r=Wt.velocity,mass:s=Wt.mass}){let l,c,u=1-n;u=er(Wt.minDamping,Wt.maxDamping,u),e=er(Wt.minDuration,Wt.maxDuration,wa(e)),u<1?(l=g=>{const y=g*u,b=y*e,x=y-r,S=Zf(g,u),w=Math.exp(-b);return lf-x/S*w},c=g=>{const b=g*u*e,x=b*r+r,S=Math.pow(u,2)*Math.pow(g,2)*e,w=Math.exp(-b),M=Zf(Math.pow(g,2),u);return(-l(g)+lf>0?-1:1)*((x-S)*w)/M}):(l=g=>{const y=Math.exp(-g*e),b=(g-r)*e+1;return-lf+y*b},c=g=>{const y=Math.exp(-g*e),b=(r-g)*(e*e);return y*b});const h=5/e,m=UA(l,c,h);if(e=la(e),isNaN(m))return{stiffness:Wt.stiffness,damping:Wt.damping,duration:e};{const g=Math.pow(m,2)*s;return{stiffness:g,damping:u*2*Math.sqrt(s*g),duration:e}}}const IA=["duration","bounce"],$A=["stiffness","damping","mass"];function u8(e,n){return n.some(r=>e[r]!==void 0)}function FA(e){let n={velocity:Wt.velocity,stiffness:Wt.stiffness,damping:Wt.damping,mass:Wt.mass,isResolvedFromDuration:!1,...e};if(!u8(e,$A)&&u8(e,IA))if(n.velocity=0,e.visualDuration){const r=e.visualDuration,s=2*Math.PI/(r*1.2),l=s*s,c=2*er(.05,1,1-(e.bounce||0))*Math.sqrt(l);n={...n,mass:Wt.mass,stiffness:l,damping:c}}else{const r=PA({...e,velocity:0});n={...n,...r,mass:Wt.mass},n.isResolvedFromDuration=!0}return n}function bu(e=Wt.visualDuration,n=Wt.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:s,restDelta:l}=r;const c=r.keyframes[0],u=r.keyframes[r.keyframes.length-1],h={done:!1,value:c},{stiffness:m,damping:g,mass:y,duration:b,velocity:x,isResolvedFromDuration:S}=FA({...r,velocity:-wa(r.velocity||0)}),w=x||0,M=g/(2*Math.sqrt(m*y)),A=u-c,j=wa(Math.sqrt(m/y)),C=Math.abs(A)<5;s||(s=C?Wt.restSpeed.granular:Wt.restSpeed.default),l||(l=C?Wt.restDelta.granular:Wt.restDelta.default);let H,B,Z,ee,re,N;if(M<1)Z=Zf(j,M),ee=(w+M*j*A)/Z,H=le=>{const ue=Math.exp(-M*j*le);return u-ue*(ee*Math.sin(Z*le)+A*Math.cos(Z*le))},re=M*j*ee+A*Z,N=M*j*A-ee*Z,B=le=>Math.exp(-M*j*le)*(re*Math.sin(Z*le)+N*Math.cos(Z*le));else if(M===1){H=ue=>u-Math.exp(-j*ue)*(A+(w+j*A)*ue);const le=w+j*A;B=ue=>Math.exp(-j*ue)*(j*le*ue-w)}else{const le=j*Math.sqrt(M*M-1);H=me=>{const ve=Math.exp(-M*j*me),V=Math.min(le*me,300);return u-ve*((w+M*j*A)*Math.sinh(V)+le*A*Math.cosh(V))/le};const ue=(w+M*j*A)/le,X=M*j*ue-A*le,xe=M*j*A-ue*le;B=me=>{const ve=Math.exp(-M*j*me),V=Math.min(le*me,300);return ve*(X*Math.sinh(V)+xe*Math.cosh(V))}}const ce={calculatedDuration:S&&b||null,velocity:le=>la(B(le)),next:le=>{if(!S&&M<1){const X=Math.exp(-M*j*le),xe=Math.sin(Z*le),me=Math.cos(Z*le),ve=u-X*(ee*xe+A*me),V=la(X*(re*xe+N*me));return h.done=Math.abs(V)<=s&&Math.abs(u-ve)<=l,h.value=h.done?u:ve,h}const ue=H(le);if(S)h.done=le>=b;else{const X=la(B(le));h.done=Math.abs(X)<=s&&Math.abs(u-ue)<=l}return h.value=h.done?u:ue,h},toString:()=>{const le=Math.min(K1(ce),yu),ue=ob(X=>ce.next(le*X).value,le,30);return le+"ms "+ue},toTransition:()=>{}};return ce}bu.applyToOptions=e=>{const n=BA(e,100,bu);return e.ease=n.ease,e.duration=la(n.duration),e.type="keyframes",e};const GA=5;function cb(e,n,r){const s=Math.max(n-GA,0);return Py(r-e(s),n-s)}function Uf({keyframes:e,velocity:n=0,power:r=.8,timeConstant:s=325,bounceDamping:l=10,bounceStiffness:c=500,modifyTarget:u,min:h,max:m,restDelta:g=.5,restSpeed:y}){const b=e[0],x={done:!1,value:b},S=N=>h!==void 0&&N<h||m!==void 0&&N>m,w=N=>h===void 0?m:m===void 0||Math.abs(h-N)<Math.abs(m-N)?h:m;let M=r*n;const A=b+M,j=u===void 0?A:u(A);j!==A&&(M=j-b);const C=N=>-M*Math.exp(-N/s),H=N=>j+C(N),B=N=>{const ce=C(N),le=H(N);x.done=Math.abs(ce)<=g,x.value=x.done?j:le};let Z,ee;const re=N=>{S(x.value)&&(Z=N,ee=bu({keyframes:[x.value,w(x.value)],velocity:cb(H,N,x.value),damping:l,stiffness:c,restDelta:g,restSpeed:y}))};return re(0),{calculatedDuration:null,next:N=>{let ce=!1;return!ee&&Z===void 0&&(ce=!0,B(N),re(N)),Z!==void 0&&N>=Z?ee.next(N-Z):(!ce&&B(N),x)}}}function qA(e,n,r){const s=[],l=r||ui.mix||lb,c=e.length-1;for(let u=0;u<c;u++){let h=l(e[u],e[u+1]);if(n){const m=Array.isArray(n)?n[u]||Ta:n;h=xo(m,h)}s.push(h)}return s}function KA(e,n,{clamp:r=!0,ease:s,mixer:l}={}){const c=e.length;if(Z1(c===n.length),c===1)return()=>n[0];if(c===2&&n[0]===n[1])return()=>n[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),n=[...n].reverse());const h=qA(n,s,l),m=h.length,g=y=>{if(u&&y<e[0])return n[0];let b=0;if(m>1)for(;b<e.length-2&&!(y<e[b+1]);b++);const x=lo(e[b],e[b+1],y);return h[b](x)};return r?y=>g(er(e[0],e[c-1],y)):g}function YA(e,n){const r=e[e.length-1];for(let s=1;s<=n;s++){const l=lo(0,n,s);e.push(Gt(r,1,l))}}function XA(e){const n=[0];return YA(n,e.length-1),n}function QA(e,n){return e.map(r=>r*n)}function JA(e,n){return e.map(()=>n||Qy).splice(0,e.length-1)}function to({duration:e=300,keyframes:n,times:r,ease:s="easeInOut"}){const l=sA(s)?s.map(r8):r8(s),c={done:!1,value:n[0]},u=QA(r&&r.length===n.length?r:XA(n),e),h=KA(u,n,{ease:Array.isArray(l)?l:JA(n,l)});return{calculatedDuration:e,next:m=>(c.value=h(m),c.done=m>=e,c)}}const WA=e=>e!==null;function Du(e,{repeat:n,repeatType:r="loop"},s,l=1){const c=e.filter(WA),h=l<0||n&&r!=="loop"&&n%2===1?0:c.length-1;return!h||s===void 0?c[h]:s}const eT={decay:Uf,inertia:Uf,tween:to,keyframes:to,spring:bu};function ub(e){typeof e.type=="string"&&(e.type=eT[e.type])}class Y1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,r){return this.finished.then(n,r)}}const tT=e=>e/100;class vu extends Y1{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var s,l;const{motionValue:r}=this.options;r&&r.updatedAt!==Zn.now()&&this.tick(Zn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(l=(s=this.options).onStop)==null||l.call(s))},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;ub(n);const{type:r=to,repeat:s=0,repeatDelay:l=0,repeatType:c,velocity:u=0}=n;let{keyframes:h}=n;const m=r||to;m!==to&&typeof h[0]!="number"&&(this.mixKeyframes=xo(tT,lb(h[0],h[1])),h=[0,100]);const g=m({...n,keyframes:h});c==="mirror"&&(this.mirroredGenerator=m({...n,keyframes:[...h].reverse(),velocity:-u})),g.calculatedDuration===null&&(g.calculatedDuration=K1(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+l,this.totalDuration=this.resolvedDuration*(s+1)-l,this.generator=g}updateTime(n){const r=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(n,r=!1){const{generator:s,totalDuration:l,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return s.next(0);const{delay:g=0,keyframes:y,repeat:b,repeatType:x,repeatDelay:S,type:w,onUpdate:M,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-l/this.speed,this.startTime)),r?this.currentTime=n:this.updateTime(n);const j=this.currentTime-g*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?j<0:j>l;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let H=this.currentTime,B=s;if(b){const N=Math.min(this.currentTime,l)/h;let ce=Math.floor(N),le=N%1;!le&&N>=1&&(le=1),le===1&&ce--,ce=Math.min(ce,b+1),!!(ce%2)&&(x==="reverse"?(le=1-le,S&&(le-=S/h)):x==="mirror"&&(B=u)),H=er(0,1,le)*h}let Z;C?(this.delayState.value=y[0],Z=this.delayState):Z=B.next(H),c&&!C&&(Z.value=c(Z.value));let{done:ee}=Z;!C&&m!==null&&(ee=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const re=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ee);return re&&w!==Uf&&(Z.value=Du(y,this.options,A,this.speed)),M&&M(Z.value),re&&this.finish(),Z}then(n,r){return this.finished.then(n,r)}get duration(){return wa(this.calculatedDuration)}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+wa(n)}get time(){return wa(this.currentTime)}set time(n){n=la(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=n,this.tick(n))}getGeneratorVelocity(){const n=this.currentTime;if(n<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(n);const r=this.generator.next(n).value;return cb(s=>this.generator.next(s).value,n,r)}get speed(){return this.playbackSpeed}set speed(n){const r=this.playbackSpeed!==n;r&&this.driver&&this.updateTime(Zn.now()),this.playbackSpeed=n,r&&this.driver&&(this.time=wa(this.currentTime))}play(){var l,c;if(this.isStopped)return;const{driver:n=zA,startTime:r}=this.options;this.driver||(this.driver=n(u=>this.tick(u))),(c=(l=this.options).onPlay)==null||c.call(l);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=r??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Zn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var n,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(n=this.options).onComplete)==null||r.call(n)}cancel(){var n,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(n=this.options).onCancel)==null||r.call(n)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),n.observe(this)}}function nT(e){for(let n=1;n<e.length;n++)e[n]??(e[n]=e[n-1])}const Vi=e=>e*180/Math.PI,Pf=e=>{const n=Vi(Math.atan2(e[1],e[0]));return If(n)},aT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Pf,rotateZ:Pf,skewX:e=>Vi(Math.atan(e[1])),skewY:e=>Vi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},If=e=>(e=e%360,e<0&&(e+=360),e),d8=Pf,f8=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),h8=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),rT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:f8,scaleY:h8,scale:e=>(f8(e)+h8(e))/2,rotateX:e=>If(Vi(Math.atan2(e[6],e[5]))),rotateY:e=>If(Vi(Math.atan2(-e[2],e[0]))),rotateZ:d8,rotate:d8,skewX:e=>Vi(Math.atan(e[4])),skewY:e=>Vi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function $f(e){return e.includes("scale")?1:0}function Ff(e,n){if(!e||e==="none")return $f(n);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,l;if(r)s=rT,l=r;else{const h=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=aT,l=h}if(!l)return $f(n);const c=s[n],u=l[1].split(",").map(sT);return typeof c=="function"?c(u):u[c]}const iT=(e,n)=>{const{transform:r="none"}=getComputedStyle(e);return Ff(r,n)};function sT(e){return parseFloat(e.trim())}const Us=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ps=new Set(Us),m8=e=>e===Zs||e===Le,lT=new Set(["x","y","z"]),oT=Us.filter(e=>!lT.has(e));function cT(e){const n=[];return oT.forEach(r=>{const s=e.getValue(r);s!==void 0&&(n.push([r,s.get()]),s.set(r.startsWith("scale")?1:0))}),n}const ci={width:({x:e},{paddingLeft:n="0",paddingRight:r="0",boxSizing:s})=>{const l=e.max-e.min;return s==="border-box"?l:l-parseFloat(n)-parseFloat(r)},height:({y:e},{paddingTop:n="0",paddingBottom:r="0",boxSizing:s})=>{const l=e.max-e.min;return s==="border-box"?l:l-parseFloat(n)-parseFloat(r)},top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:(e,{transform:n})=>Ff(n,"x"),y:(e,{transform:n})=>Ff(n,"y")};ci.translateX=ci.x;ci.translateY=ci.y;const zi=new Set;let Gf=!1,qf=!1,Kf=!1;function db(){if(qf){const e=Array.from(zi).filter(s=>s.needsMeasurement),n=new Set(e.map(s=>s.element)),r=new Map;n.forEach(s=>{const l=cT(s);l.length&&(r.set(s,l),s.render())}),e.forEach(s=>s.measureInitialState()),n.forEach(s=>{s.render();const l=r.get(s);l&&l.forEach(([c,u])=>{var h;(h=s.getValue(c))==null||h.set(u)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}qf=!1,Gf=!1,zi.forEach(e=>e.complete(Kf)),zi.clear()}function fb(){zi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qf=!0)})}function uT(){Kf=!0,fb(),db(),Kf=!1}class X1{constructor(n,r,s,l,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=r,this.name=s,this.motionValue=l,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(zi.add(this),Gf||(Gf=!0,Bt.read(fb),Bt.resolveKeyframes(db))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:r,element:s,motionValue:l}=this;if(n[0]===null){const c=l==null?void 0:l.get(),u=n[n.length-1];if(c!==void 0)n[0]=c;else if(s&&r){const h=s.readValue(r,u);h!=null&&(n[0]=h)}n[0]===void 0&&(n[0]=u),l&&c===void 0&&l.set(n[0])}nT(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),zi.delete(this)}cancel(){this.state==="scheduled"&&(zi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const dT=e=>e.startsWith("--");function hb(e,n,r){dT(n)?e.style.setProperty(n,r):e.style[n]=r}const fT={};function mb(e,n){const r=Uy(e);return()=>fT[n]??r()}const hT=mb(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),pb=mb(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ql=([e,n,r,s])=>`cubic-bezier(${e}, ${n}, ${r}, ${s})`,p8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ql([0,.65,.55,1]),circOut:Ql([.55,0,1,.45]),backIn:Ql([.31,.01,.66,-.59]),backOut:Ql([.33,1.53,.69,.99])};function gb(e,n){if(e)return typeof e=="function"?pb()?ob(e,n):"ease-out":Jy(e)?Ql(e):Array.isArray(e)?e.map(r=>gb(r,n)||p8.easeOut):p8[e]}function mT(e,n,r,{delay:s=0,duration:l=300,repeat:c=0,repeatType:u="loop",ease:h="easeOut",times:m}={},g=void 0){const y={[n]:r};m&&(y.offset=m);const b=gb(h,l);Array.isArray(b)&&(y.easing=b);const x={delay:s,duration:l,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return g&&(x.pseudoElement=g),e.animate(y,x)}function yb(e){return typeof e=="function"&&"applyToOptions"in e}function pT({type:e,...n}){return yb(e)&&pb()?e.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class bb extends Y1{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!n)return;const{element:r,name:s,keyframes:l,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:h,onComplete:m}=n;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=n,Z1(typeof n.type!="string");const g=pT(n);this.animation=mT(r,s,l,g,c),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const y=Du(l,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(y),hb(r,s,y),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var n,r;(r=(n=this.animation).finish)==null||r.call(n)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,s,l;const n=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(n!=null&&n.isConnected)&&((l=(s=this.animation).commitStyles)==null||l.call(s))}get duration(){var r,s;const n=((s=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:s.call(r).duration)||0;return wa(Number(n))}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+wa(n)}get time(){return wa(Number(this.animation.currentTime)||0)}set time(n){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=la(n),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(n){this.manualStartTime=this.animation.startTime=n}attachTimeline({timeline:n,rangeStart:r,rangeEnd:s,observe:l}){var c;return this.allowFlatten&&((c=this.animation.effect)==null||c.updateTiming({easing:"linear"})),this.animation.onfinish=null,n&&hT()?(this.animation.timeline=n,r&&(this.animation.rangeStart=r),s&&(this.animation.rangeEnd=s),Ta):l(this)}}const vb={anticipate:Ky,backInOut:qy,circInOut:Xy};function gT(e){return e in vb}function yT(e){typeof e.ease=="string"&&gT(e.ease)&&(e.ease=vb[e.ease])}const of=10;class bT extends bb{constructor(n){yT(n),ub(n),super(n),n.startTime!==void 0&&n.autoplay!==!1&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:r,onUpdate:s,onComplete:l,element:c,...u}=this.options;if(!r)return;if(n!==void 0){r.set(n);return}const h=new vu({...u,autoplay:!1}),m=Math.max(of,Zn.now()-this.startTime),g=er(0,of,m-of),y=h.sample(m).value,{name:b}=this.options;c&&b&&hb(c,b,y),r.setWithVelocity(h.sample(Math.max(0,m-g)).value,y,g),h.stop()}}const g8=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(za.test(e)||e==="0")&&!e.startsWith("url("));function vT(e){const n=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}function xT(e,n,r,s){const l=e[0];if(l===null)return!1;if(n==="display"||n==="visibility")return!0;const c=e[e.length-1],u=g8(l,n),h=g8(c,n);return!u||!h?!1:vT(e)||(r==="spring"||yb(r))&&s}function Yf(e){e.duration=0,e.type="keyframes"}const xb=new Set(["opacity","clipPath","filter","transform"]),ET=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ST(e){for(let n=0;n<e.length;n++)if(typeof e[n]=="string"&&ET.test(e[n]))return!0;return!1}const wT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),AT=Uy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function TT(e){var b;const{motionValue:n,name:r,repeatDelay:s,repeatType:l,damping:c,type:u,keyframes:h}=e;if(!(((b=n==null?void 0:n.owner)==null?void 0:b.current)instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:y}=n.owner.getProps();return AT()&&r&&(xb.has(r)||wT.has(r)&&ST(h))&&(r!=="transform"||!y)&&!g&&!s&&l!=="mirror"&&c!==0&&u!=="inertia"}const MT=40;class RT extends Y1{constructor({autoplay:n=!0,delay:r=0,type:s="keyframes",repeat:l=0,repeatDelay:c=0,repeatType:u="loop",keyframes:h,name:m,motionValue:g,element:y,...b}){var w;super(),this.stop=()=>{var M,A;this._animation&&(this._animation.stop(),(M=this.stopTimeline)==null||M.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=Zn.now();const x={autoplay:n,delay:r,type:s,repeat:l,repeatDelay:c,repeatType:u,name:m,motionValue:g,element:y,...b},S=(y==null?void 0:y.KeyframeResolver)||X1;this.keyframeResolver=new S(h,(M,A,j)=>this.onKeyframesResolved(M,A,x,!j),m,g,y),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(n,r,s,l){var j,C;this.keyframeResolver=void 0;const{name:c,type:u,velocity:h,delay:m,isHandoff:g,onUpdate:y}=s;this.resolvedAt=Zn.now();let b=!0;xT(n,c,u,h)||(b=!1,(ui.instantAnimations||!m)&&(y==null||y(Du(n,s,r))),n[0]=n[n.length-1],Yf(s),s.repeat=0);const S={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>MT?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...s,keyframes:n},w=b&&!g&&TT(S),M=(C=(j=S.motionValue)==null?void 0:j.owner)==null?void 0:C.current;let A;if(w)try{A=new bT({...S,element:M})}catch{A=new vu(S)}else A=new vu(S);A.finished.then(()=>{this.notifyFinished()}).catch(Ta),this.pendingTimeline&&(this.stopTimeline=A.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=A}get finished(){return this._animation?this.animation.finished:this._finished}then(n,r){return this.finished.finally(n).then(()=>{})}get animation(){var n;return this._animation||((n=this.keyframeResolver)==null||n.resume(),uT()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var n;this._animation&&this.animation.cancel(),(n=this.keyframeResolver)==null||n.cancel()}}function Eb(e,n,r,s=0,l=1){const c=Array.from(e).sort((g,y)=>g.sortNodePosition(y)).indexOf(n),u=e.size,h=(u-1)*s;return typeof r=="function"?r(c,u):l===1?c*s:h-c*s}const CT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kT(e){const n=CT.exec(e);if(!n)return[,];const[,r,s,l]=n;return[`--${r??s}`,l]}function Sb(e,n,r=1){const[s,l]=kT(e);if(!s)return;const c=window.getComputedStyle(n).getPropertyValue(s);if(c){const u=c.trim();return zy(u)?parseFloat(u):u}return $1(l)?Sb(l,n,r+1):l}const NT={type:"spring",stiffness:500,damping:25,restSpeed:10},_T=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jT={type:"keyframes",duration:.8},DT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LT=(e,{keyframes:n})=>n.length>2?jT:Ps.has(e)?e.startsWith("scale")?_T(n[1]):NT:DT;function wb(e,n){if(e!=null&&e.inherit&&n){const{inherit:r,...s}=e;return{...n,...s}}return e}function Q1(e,n){const r=(e==null?void 0:e[n])??(e==null?void 0:e.default)??e;return r!==e?wb(r,e):r}const OT=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function HT(e){for(const n in e)if(!OT.has(n))return!0;return!1}const J1=(e,n,r,s={},l,c)=>u=>{const h=Q1(s,e)||{},m=h.delay||s.delay||0;let{elapsed:g=0}=s;g=g-la(m);const y={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:n.getVelocity(),...h,delay:-g,onUpdate:x=>{n.set(x),h.onUpdate&&h.onUpdate(x)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:e,motionValue:n,element:c?void 0:l};HT(h)||Object.assign(y,LT(e,y)),y.duration&&(y.duration=la(y.duration)),y.repeatDelay&&(y.repeatDelay=la(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let b=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Yf(y),y.delay===0&&(b=!0)),(ui.instantAnimations||ui.skipAnimations||l!=null&&l.shouldSkipAnimations)&&(b=!0,Yf(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,b&&!c&&n.get()!==void 0){const x=Du(y.keyframes,h);if(x!==void 0){Bt.update(()=>{y.onUpdate(x),y.onComplete()});return}}return h.isSync?new vu(y):new RT(y)};function y8(e){const n=[{},{}];return e==null||e.values.forEach((r,s)=>{n[0][s]=r.get(),n[1][s]=r.getVelocity()}),n}function W1(e,n,r,s){if(typeof n=="function"){const[l,c]=y8(s);n=n(r!==void 0?r:e.custom,l,c)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[l,c]=y8(s);n=n(r!==void 0?r:e.custom,l,c)}return n}function Bi(e,n,r){const s=e.getProps();return W1(s,n,r!==void 0?r:s.custom,e)}const Ab=new Set(["width","height","top","left","right","bottom",...Us]),b8=30,VT=e=>!isNaN(parseFloat(e));class zT{constructor(n,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var c;const l=Zn.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((c=this.events.change)==null||c.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=r.owner}setCurrent(n){this.current=n,this.updatedAt=Zn.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=VT(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,r){this.events[n]||(this.events[n]=new U1);const s=this.events[n].add(r);return n==="change"?()=>{s(),Bt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,r){this.passiveEffect=n,this.stopPassiveEffect=r}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,r,s){this.set(r),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-s}jump(n,r=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var n;(n=this.events.change)==null||n.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=Zn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>b8)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,b8);return Py(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(n){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=n(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var n,r;(n=this.dependents)==null||n.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vs(e,n){return new zT(e,n)}const Xf=e=>Array.isArray(e);function BT(e,n,r){e.hasValue(n)?e.getValue(n).set(r):e.addValue(n,Vs(r))}function ZT(e){return Xf(e)?e[e.length-1]||0:e}function UT(e,n){const r=Bi(e,n);let{transitionEnd:s={},transition:l={},...c}=r||{};c={...c,...s};for(const u in c){const h=ZT(c[u]);BT(e,u,h)}}const kn=e=>!!(e&&e.getVelocity);function PT(e){return!!(kn(e)&&e.add)}function Qf(e,n){const r=e.getValue("willChange");if(PT(r))return r.add(n);if(!r&&ui.WillChange){const s=new ui.WillChange("auto");e.addValue("willChange",s),s.add(n)}}function eh(e){return e.replace(/([A-Z])/g,n=>`-${n.toLowerCase()}`)}const IT="framerAppearId",Tb="data-"+eh(IT);function Mb(e){return e.props[Tb]}function $T({protectedKeys:e,needsAnimating:n},r){const s=e.hasOwnProperty(r)&&n[r]!==!0;return n[r]=!1,s}function Rb(e,n,{delay:r=0,transitionOverride:s,type:l}={}){let{transition:c,transitionEnd:u,...h}=n;const m=e.getDefaultTransition();c=c?wb(c,m):m;const g=c==null?void 0:c.reduceMotion;s&&(c=s);const y=[],b=l&&e.animationState&&e.animationState.getState()[l];for(const x in h){const S=e.getValue(x,e.latestValues[x]??null),w=h[x];if(w===void 0||b&&$T(b,x))continue;const M={delay:r,...Q1(c||{},x)},A=S.get();if(A!==void 0&&!S.isAnimating()&&!Array.isArray(w)&&w===A&&!M.velocity){Bt.update(()=>S.set(w));continue}let j=!1;if(window.MotionHandoffAnimation){const B=Mb(e);if(B){const Z=window.MotionHandoffAnimation(B,x,Bt);Z!==null&&(M.startTime=Z,j=!0)}}Qf(e,x);const C=g??e.shouldReduceMotion;S.start(J1(x,S,w,C&&Ab.has(x)?{type:!1}:M,e,j));const H=S.animation;H&&y.push(H)}if(u){const x=()=>Bt.update(()=>{u&&UT(e,u)});y.length?Promise.all(y).then(x):x()}return y}function Jf(e,n,r={}){var m;const s=Bi(e,n,r.type==="exit"?(m=e.presenceContext)==null?void 0:m.custom:void 0);let{transition:l=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(l=r.transitionOverride);const c=s?()=>Promise.all(Rb(e,s,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:b,staggerDirection:x}=l;return FT(e,n,g,y,b,x,r)}:()=>Promise.resolve(),{when:h}=l;if(h){const[g,y]=h==="beforeChildren"?[c,u]:[u,c];return g().then(()=>y())}else return Promise.all([c(),u(r.delay)])}function FT(e,n,r=0,s=0,l=0,c=1,u){const h=[];for(const m of e.variantChildren)m.notify("AnimationStart",n),h.push(Jf(m,n,{...u,delay:r+(typeof s=="function"?0:s)+Eb(e.variantChildren,m,s,l,c)}).then(()=>m.notify("AnimationComplete",n)));return Promise.all(h)}function GT(e,n,r={}){e.notify("AnimationStart",n);let s;if(Array.isArray(n)){const l=n.map(c=>Jf(e,c,r));s=Promise.all(l)}else if(typeof n=="string")s=Jf(e,n,r);else{const l=typeof n=="function"?Bi(e,n,r.custom):n;s=Promise.all(Rb(e,l,r))}return s.then(()=>{e.notify("AnimationComplete",n)})}const qT={test:e=>e==="auto",parse:e=>e},Cb=e=>n=>n.test(e),kb=[Zs,Le,Ja,ai,vA,bA,qT],v8=e=>kb.find(Cb(e));function KT(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Zy(e):!0}const YT=new Set(["brightness","contrast","saturate","opacity"]);function XT(e){const[n,r]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[s]=r.match(F1)||[];if(!s)return e;const l=r.replace(s,"");let c=YT.has(n)?1:0;return s!==r&&(c*=100),n+"("+c+l+")"}const QT=/\b([a-z-]*)\(.*?\)/gu,Wf={...za,getAnimatableNone:e=>{const n=e.match(QT);return n?n.map(XT).join(" "):e}},e1={...za,getAnimatableNone:e=>{const n=za.parse(e);return za.createTransformer(e)(n.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},x8={...Zs,transform:Math.round},JT={rotate:ai,rotateX:ai,rotateY:ai,rotateZ:ai,scale:Zc,scaleX:Zc,scaleY:Zc,scaleZ:Zc,skew:ai,skewX:ai,skewY:ai,distance:Le,translateX:Le,translateY:Le,translateZ:Le,x:Le,y:Le,z:Le,perspective:Le,transformPerspective:Le,opacity:oo,originX:s8,originY:s8,originZ:Le},th={borderWidth:Le,borderTopWidth:Le,borderRightWidth:Le,borderBottomWidth:Le,borderLeftWidth:Le,borderRadius:Le,borderTopLeftRadius:Le,borderTopRightRadius:Le,borderBottomRightRadius:Le,borderBottomLeftRadius:Le,width:Le,maxWidth:Le,height:Le,maxHeight:Le,top:Le,right:Le,bottom:Le,left:Le,inset:Le,insetBlock:Le,insetBlockStart:Le,insetBlockEnd:Le,insetInline:Le,insetInlineStart:Le,insetInlineEnd:Le,padding:Le,paddingTop:Le,paddingRight:Le,paddingBottom:Le,paddingLeft:Le,paddingBlock:Le,paddingBlockStart:Le,paddingBlockEnd:Le,paddingInline:Le,paddingInlineStart:Le,paddingInlineEnd:Le,margin:Le,marginTop:Le,marginRight:Le,marginBottom:Le,marginLeft:Le,marginBlock:Le,marginBlockStart:Le,marginBlockEnd:Le,marginInline:Le,marginInlineStart:Le,marginInlineEnd:Le,fontSize:Le,backgroundPositionX:Le,backgroundPositionY:Le,...JT,zIndex:x8,fillOpacity:oo,strokeOpacity:oo,numOctaves:x8},WT={...th,color:fn,backgroundColor:fn,outlineColor:fn,fill:fn,stroke:fn,borderColor:fn,borderTopColor:fn,borderRightColor:fn,borderBottomColor:fn,borderLeftColor:fn,filter:Wf,WebkitFilter:Wf,mask:e1,WebkitMask:e1},Nb=e=>WT[e],eM=new Set([Wf,e1]);function _b(e,n){let r=Nb(e);return eM.has(r)||(r=za),r.getAnimatableNone?r.getAnimatableNone(n):void 0}const tM=new Set(["auto","none","0"]);function nM(e,n,r){let s=0,l;for(;s<e.length&&!l;){const c=e[s];typeof c=="string"&&!tM.has(c)&&Hs(c).values.length&&(l=e[s]),s++}if(l&&r)for(const c of n)e[c]=_b(r,l)}class aM extends X1{constructor(n,r,s,l,c){super(n,r,s,l,c,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:r,name:s}=this;if(!r||!r.current)return;super.readKeyframes();for(let y=0;y<n.length;y++){let b=n[y];if(typeof b=="string"&&(b=b.trim(),$1(b))){const x=Sb(b,r.current);x!==void 0&&(n[y]=x),y===n.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!Ab.has(s)||n.length!==2)return;const[l,c]=n,u=v8(l),h=v8(c),m=i8(l),g=i8(c);if(m!==g&&ci[s]){this.needsMeasurement=!0;return}if(u!==h)if(m8(u)&&m8(h))for(let y=0;y<n.length;y++){const b=n[y];typeof b=="string"&&(n[y]=parseFloat(b))}else ci[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:r}=this,s=[];for(let l=0;l<n.length;l++)(n[l]===null||KT(n[l]))&&s.push(l);s.length&&nM(n,s,r)}measureInitialState(){const{element:n,unresolvedKeyframes:r,name:s}=this;if(!n||!n.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ci[s](n.measureViewportBox(),window.getComputedStyle(n.current)),r[0]=this.measuredOrigin;const l=r[r.length-1];l!==void 0&&n.getValue(s,l).jump(l,!1)}measureEndState(){var h;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const l=n.getValue(r);l&&l.jump(this.measuredOrigin,!1);const c=s.length-1,u=s[c];s[c]=ci[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,g])=>{n.getValue(m).set(g)}),this.resolveNoneKeyframes()}}function jb(e,n,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const l=(r==null?void 0:r[e])??s.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e).filter(s=>s!=null)}const Db=(e,n)=>n&&typeof e=="number"?n.transform(e):e;function Wc(e){return By(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:nh}=Wy(queueMicrotask,!1),Da={x:!1,y:!1};function Lb(){return Da.x||Da.y}function rM(e){return e==="x"||e==="y"?Da[e]?null:(Da[e]=!0,()=>{Da[e]=!1}):Da.x||Da.y?null:(Da.x=Da.y=!0,()=>{Da.x=Da.y=!1})}function Ob(e,n){const r=jb(e),s=new AbortController,l={passive:!0,...n,signal:s.signal};return[r,l,()=>s.abort()]}function iM(e){return!(e.pointerType==="touch"||Lb())}function sM(e,n,r={}){const[s,l,c]=Ob(e,r);return s.forEach(u=>{let h=!1,m=!1,g;const y=()=>{u.removeEventListener("pointerleave",w)},b=A=>{g&&(g(A),g=void 0),y()},x=A=>{h=!1,window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),m&&(m=!1,b(A))},S=()=>{h=!0,window.addEventListener("pointerup",x,l),window.addEventListener("pointercancel",x,l)},w=A=>{if(A.pointerType!=="touch"){if(h){m=!0;return}b(A)}},M=A=>{if(!iM(A))return;m=!1;const j=n(u,A);typeof j=="function"&&(g=j,u.addEventListener("pointerleave",w,l))};u.addEventListener("pointerenter",M,l),u.addEventListener("pointerdown",S,l)}),c}const Hb=(e,n)=>n?e===n?!0:Hb(e,n.parentElement):!1,ah=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,lM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function oM(e){return lM.has(e.tagName)||e.isContentEditable===!0}const cM=new Set(["INPUT","SELECT","TEXTAREA"]);function uM(e){return cM.has(e.tagName)||e.isContentEditable===!0}const eu=new WeakSet;function E8(e){return n=>{n.key==="Enter"&&e(n)}}function cf(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const dM=(e,n)=>{const r=e.currentTarget;if(!r)return;const s=E8(()=>{if(eu.has(r))return;cf(r,"down");const l=E8(()=>{cf(r,"up")}),c=()=>cf(r,"cancel");r.addEventListener("keyup",l,n),r.addEventListener("blur",c,n)});r.addEventListener("keydown",s,n),r.addEventListener("blur",()=>r.removeEventListener("keydown",s),n)};function S8(e){return ah(e)&&!Lb()}const w8=new WeakSet;function fM(e,n,r={}){const[s,l,c]=Ob(e,r),u=h=>{const m=h.currentTarget;if(!S8(h)||w8.has(h))return;eu.add(m),r.stopPropagation&&w8.add(h);const g=n(m,h),y=(S,w)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",x),eu.has(m)&&eu.delete(m),S8(S)&&typeof g=="function"&&g(S,{success:w})},b=S=>{y(S,m===window||m===document||r.useGlobalTarget||Hb(m,S.target))},x=S=>{y(S,!1)};window.addEventListener("pointerup",b,l),window.addEventListener("pointercancel",x,l)};return s.forEach(h=>{(r.useGlobalTarget?window:h).addEventListener("pointerdown",u,l),Wc(h)&&(h.addEventListener("focus",g=>dM(g,l)),!oM(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),c}function rh(e){return By(e)&&"ownerSVGElement"in e}const tu=new WeakMap;let ri;const Vb=(e,n,r)=>(s,l)=>l&&l[0]?l[0][e+"Size"]:rh(s)&&"getBBox"in s?s.getBBox()[n]:s[r],hM=Vb("inline","width","offsetWidth"),mM=Vb("block","height","offsetHeight");function pM({target:e,borderBoxSize:n}){var r;(r=tu.get(e))==null||r.forEach(s=>{s(e,{get width(){return hM(e,n)},get height(){return mM(e,n)}})})}function gM(e){e.forEach(pM)}function yM(){typeof ResizeObserver>"u"||(ri=new ResizeObserver(gM))}function bM(e,n){ri||yM();const r=jb(e);return r.forEach(s=>{let l=tu.get(s);l||(l=new Set,tu.set(s,l)),l.add(n),ri==null||ri.observe(s)}),()=>{r.forEach(s=>{const l=tu.get(s);l==null||l.delete(n),l!=null&&l.size||ri==null||ri.unobserve(s)})}}const nu=new Set;let Ns;function vM(){Ns=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};nu.forEach(n=>n(e))},window.addEventListener("resize",Ns)}function xM(e){return nu.add(e),Ns||vM(),()=>{nu.delete(e),!nu.size&&typeof Ns=="function"&&(window.removeEventListener("resize",Ns),Ns=void 0)}}function A8(e,n){return typeof e=="function"?xM(e):bM(e,n)}function EM(e){return rh(e)&&e.tagName==="svg"}const SM=[...kb,fn,za],wM=e=>SM.find(Cb(e)),T8=()=>({translate:0,scale:1,origin:0,originPoint:0}),_s=()=>({x:T8(),y:T8()}),M8=()=>({min:0,max:0}),yn=()=>({x:M8(),y:M8()}),AM=new WeakMap;function Lu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function co(e){return typeof e=="string"||Array.isArray(e)}const ih=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],sh=["initial",...ih];function Ou(e){return Lu(e.animate)||sh.some(n=>co(e[n]))}function zb(e){return!!(Ou(e)||e.variants)}function TM(e,n,r){for(const s in n){const l=n[s],c=r[s];if(kn(l))e.addValue(s,l);else if(kn(c))e.addValue(s,Vs(l,{owner:e}));else if(c!==l)if(e.hasValue(s)){const u=e.getValue(s);u.liveStyle===!0?u.jump(l):u.hasAnimated||u.set(l)}else{const u=e.getStaticValue(s);e.addValue(s,Vs(u!==void 0?u:l,{owner:e}))}}for(const s in r)n[s]===void 0&&e.removeValue(s);return n}const t1={current:null},Bb={current:!1},MM=typeof window<"u";function RM(){if(Bb.current=!0,!!MM)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>t1.current=e.matches;e.addEventListener("change",n),n()}else t1.current=!1}const R8=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let xu={};function Zb(e){xu=e}function CM(){return xu}class kM{scrapeMotionValuesFromProps(n,r,s){return{}}constructor({parent:n,props:r,presenceContext:s,reducedMotionConfig:l,skipAnimations:c,blockInitialAnimation:u,visualState:h},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=X1,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=Zn.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Bt.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=h;this.latestValues=g,this.baseTarget={...g},this.initialValues=r.initial?{...g}:{},this.renderState=y,this.parent=n,this.props=r,this.presenceContext=s,this.depth=n?n.depth+1:0,this.reducedMotionConfig=l,this.skipAnimationsConfig=c,this.options=m,this.blockInitialAnimation=!!u,this.isControllingVariants=Ou(r),this.isVariantNode=zb(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:b,...x}=this.scrapeMotionValuesFromProps(r,{},this);for(const S in x){const w=x[S];g[S]!==void 0&&kn(w)&&w.set(g[S])}}mount(n){var r,s;if(this.hasBeenMounted)for(const l in this.initialValues)(r=this.values.get(l))==null||r.jump(this.initialValues[l]),this.latestValues[l]=this.initialValues[l];this.current=n,AM.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,c)=>this.bindToMotionValue(c,l)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Bb.current||RM(),this.shouldReduceMotion=t1.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var n;this.projection&&this.projection.unmount(),di(this.notifyUpdate),di(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(n=this.parent)==null||n.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const s=this.features[r];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,r){if(this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)(),r.accelerate&&xb.has(n)&&this.current instanceof HTMLElement){const{factory:u,keyframes:h,times:m,ease:g,duration:y}=r.accelerate,b=new bb({element:this.current,name:n,keyframes:h,times:m,ease:g,duration:la(y)}),x=u(b);this.valueSubscriptions.set(n,()=>{x(),b.cancel()});return}const s=Ps.has(n);s&&this.onBindTransform&&this.onBindTransform();const l=r.on("change",u=>{this.latestValues[n]=u,this.props.onUpdate&&Bt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;typeof window<"u"&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,n,r)),this.valueSubscriptions.set(n,()=>{l(),c&&c(),r.owner&&r.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in xu){const r=xu[n];if(!r)continue;const{isEnabled:s,Feature:l}=r;if(!this.features[n]&&l&&s(this.props)&&(this.features[n]=new l(this)),this.features[n]){const c=this.features[n];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yn()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,r){this.latestValues[n]=r}update(n,r){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let s=0;s<R8.length;s++){const l=R8[s];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const c="on"+l,u=n[c];u&&(this.propEventSubscriptions[l]=this.on(l,u))}this.prevMotionValues=TM(this,this.scrapeMotionValuesFromProps(n,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(n){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(n),()=>r.variantChildren.delete(n)}addValue(n,r){const s=this.values.get(n);r!==s&&(s&&this.removeValue(n),this.bindToMotionValue(n,r),this.values.set(n,r),this.latestValues[n]=r.get())}removeValue(n){this.values.delete(n);const r=this.valueSubscriptions.get(n);r&&(r(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,r){if(this.props.values&&this.props.values[n])return this.props.values[n];let s=this.values.get(n);return s===void 0&&r!==void 0&&(s=Vs(r===null?void 0:r,{owner:this}),this.addValue(n,s)),s}readValue(n,r){let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(zy(s)||Zy(s))?s=parseFloat(s):!wM(s)&&za.test(r)&&(s=_b(n,r)),this.setBaseTarget(n,kn(s)?s.get():s)),kn(s)?s.get():s}setBaseTarget(n,r){this.baseTarget[n]=r}getBaseTarget(n){var c;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const u=W1(this.props,r,(c=this.presenceContext)==null?void 0:c.custom);u&&(s=u[n])}if(r&&s!==void 0)return s;const l=this.getBaseTargetFromProps(this.props,n);return l!==void 0&&!kn(l)?l:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,r){return this.events[n]||(this.events[n]=new U1),this.events[n].add(r)}notify(n,...r){this.events[n]&&this.events[n].notify(...r)}scheduleRenderMicrotask(){nh.render(this.render)}}class Ub extends kM{constructor(){super(...arguments),this.KeyframeResolver=aM}sortInstanceNodePosition(n,r){return n.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(n,r){const s=n.style;return s?s[r]:void 0}removeValueFromRenderState(n,{vars:r,style:s}){delete r[n],delete s[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;kn(n)&&(this.childSubscription=n.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class fi{constructor(n){this.isMounted=!1,this.node=n}update(){}}function Pb({top:e,left:n,right:r,bottom:s}){return{x:{min:n,max:r},y:{min:e,max:s}}}function NM({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function _M(e,n){if(!n)return e;const r=n({x:e.left,y:e.top}),s=n({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:s.y,right:s.x}}function uf(e){return e===void 0||e===1}function n1({scale:e,scaleX:n,scaleY:r}){return!uf(e)||!uf(n)||!uf(r)}function Di(e){return n1(e)||Ib(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ib(e){return C8(e.x)||C8(e.y)}function C8(e){return e&&e!=="0%"}function Eu(e,n,r){const s=e-r,l=n*s;return r+l}function k8(e,n,r,s,l){return l!==void 0&&(e=Eu(e,l,s)),Eu(e,r,s)+n}function a1(e,n=0,r=1,s,l){e.min=k8(e.min,n,r,s,l),e.max=k8(e.max,n,r,s,l)}function $b(e,{x:n,y:r}){a1(e.x,n.translate,n.scale,n.originPoint),a1(e.y,r.translate,r.scale,r.originPoint)}const N8=.999999999999,_8=1.0000000000001;function jM(e,n,r,s=!1){var h;const l=r.length;if(!l)return;n.x=n.y=1;let c,u;for(let m=0;m<l;m++){c=r[m],u=c.projectionDelta;const{visualElement:g}=c.options;g&&g.props.style&&g.props.style.display==="contents"||(s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&(Qa(e.x,-c.scroll.offset.x),Qa(e.y,-c.scroll.offset.y)),u&&(n.x*=u.x.scale,n.y*=u.y.scale,$b(e,u)),s&&Di(c.latestValues)&&au(e,c.latestValues,(h=c.layout)==null?void 0:h.layoutBox))}n.x<_8&&n.x>N8&&(n.x=1),n.y<_8&&n.y>N8&&(n.y=1)}function Qa(e,n){e.min+=n,e.max+=n}function j8(e,n,r,s,l=.5){const c=Gt(e.min,e.max,l);a1(e,n,r,c,s)}function D8(e,n){return typeof e=="string"?parseFloat(e)/100*(n.max-n.min):e}function au(e,n,r){const s=r??e;j8(e.x,D8(n.x,s.x),n.scaleX,n.scale,n.originX),j8(e.y,D8(n.y,s.y),n.scaleY,n.scale,n.originY)}function Fb(e,n){return Pb(_M(e.getBoundingClientRect(),n))}function DM(e,n,r){const s=Fb(e,r),{scroll:l}=n;return l&&(Qa(s.x,l.offset.x),Qa(s.y,l.offset.y)),s}const LM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},OM=Us.length;function HM(e,n,r){let s="",l=!0;for(let c=0;c<OM;c++){const u=Us[c],h=e[u];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(u.startsWith("scale")?1:0);else{const g=parseFloat(h);m=u.startsWith("scale")?g===1:g===0}if(!m||r){const g=Db(h,th[u]);if(!m){l=!1;const y=LM[u]||u;s+=`${y}(${g}) `}r&&(n[u]=g)}}return s=s.trim(),r?s=r(n,l?"":s):l&&(s="none"),s}function lh(e,n,r){const{style:s,vars:l,transformOrigin:c}=e;let u=!1,h=!1;for(const m in n){const g=n[m];if(Ps.has(m)){u=!0;continue}else if(tb(m)){l[m]=g;continue}else{const y=Db(g,th[m]);m.startsWith("origin")?(h=!0,c[m]=y):s[m]=y}}if(n.transform||(u||r?s.transform=HM(n,e.transform,r):s.transform&&(s.transform="none")),h){const{originX:m="50%",originY:g="50%",originZ:y=0}=c;s.transformOrigin=`${m} ${g} ${y}`}}function Gb(e,{style:n,vars:r},s,l){const c=e.style;let u;for(u in n)c[u]=n[u];l==null||l.applyProjectionStyles(c,s);for(u in r)c.setProperty(u,r[u])}function L8(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const Ul={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(Le.test(e))e=parseFloat(e);else return e;const r=L8(e,n.target.x),s=L8(e,n.target.y);return`${r}% ${s}%`}},VM={correct:(e,{treeScale:n,projectionDelta:r})=>{const s=e,l=za.parse(e);if(l.length>5)return s;const c=za.createTransformer(e),u=typeof l[0]!="number"?1:0,h=r.x.scale*n.x,m=r.y.scale*n.y;l[0+u]/=h,l[1+u]/=m;const g=Gt(h,m,.5);return typeof l[2+u]=="number"&&(l[2+u]/=g),typeof l[3+u]=="number"&&(l[3+u]/=g),c(l)}},r1={borderRadius:{...Ul,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ul,borderTopRightRadius:Ul,borderBottomLeftRadius:Ul,borderBottomRightRadius:Ul,boxShadow:VM};function qb(e,{layout:n,layoutId:r}){return Ps.has(e)||e.startsWith("origin")||(n||r!==void 0)&&(!!r1[e]||e==="opacity")}function oh(e,n,r){var u;const s=e.style,l=n==null?void 0:n.style,c={};if(!s)return c;for(const h in s)(kn(s[h])||l&&kn(l[h])||qb(h,e)||((u=r==null?void 0:r.getValue(h))==null?void 0:u.liveStyle)!==void 0)&&(c[h]=s[h]);return c}function zM(e){return window.getComputedStyle(e)}class BM extends Ub{constructor(){super(...arguments),this.type="html",this.renderInstance=Gb}readValueFromInstance(n,r){var s;if(Ps.has(r))return(s=this.projection)!=null&&s.isProjecting?$f(r):iT(n,r);{const l=zM(n),c=(tb(r)?l.getPropertyValue(r):l[r])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(n,{transformPagePoint:r}){return Fb(n,r)}build(n,r,s){lh(n,r,s.transformTemplate)}scrapeMotionValuesFromProps(n,r,s){return oh(n,r,s)}}const ZM={offset:"stroke-dashoffset",array:"stroke-dasharray"},UM={offset:"strokeDashoffset",array:"strokeDasharray"};function PM(e,n,r=1,s=0,l=!0){e.pathLength=1;const c=l?ZM:UM;e[c.offset]=`${-s}`,e[c.array]=`${n} ${r}`}const IM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Kb(e,{attrX:n,attrY:r,attrScale:s,pathLength:l,pathSpacing:c=1,pathOffset:u=0,...h},m,g,y){if(lh(e,h,g),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:x}=e;b.transform&&(x.transform=b.transform,delete b.transform),(x.transform||b.transformOrigin)&&(x.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),x.transform&&(x.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete b.transformBox);for(const S of IM)b[S]!==void 0&&(x[S]=b[S],delete b[S]);n!==void 0&&(b.x=n),r!==void 0&&(b.y=r),s!==void 0&&(b.scale=s),l!==void 0&&PM(b,l,c,u,!1)}const Yb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Xb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $M(e,n,r,s){Gb(e,n,void 0,s);for(const l in n.attrs)e.setAttribute(Yb.has(l)?l:eh(l),n.attrs[l])}function Qb(e,n,r){const s=oh(e,n,r);for(const l in e)if(kn(e[l])||kn(n[l])){const c=Us.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;s[c]=e[l]}return s}class FM extends Ub{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yn}getBaseTargetFromProps(n,r){return n[r]}readValueFromInstance(n,r){if(Ps.has(r)){const s=Nb(r);return s&&s.default||0}return r=Yb.has(r)?r:eh(r),n.getAttribute(r)}scrapeMotionValuesFromProps(n,r,s){return Qb(n,r,s)}build(n,r,s){Kb(n,r,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(n,r,s,l){$M(n,r,s,l)}mount(n){this.isSVGTag=Xb(n.tagName),super.mount(n)}}const GM=sh.length;function Jb(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?Jb(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const n={};for(let r=0;r<GM;r++){const s=sh[r],l=e.props[s];(co(l)||l===!1)&&(n[s]=l)}return n}function Wb(e,n){if(!Array.isArray(n))return!1;const r=n.length;if(r!==e.length)return!1;for(let s=0;s<r;s++)if(n[s]!==e[s])return!1;return!0}const qM=[...ih].reverse(),KM=ih.length;function YM(e){return n=>Promise.all(n.map(({animation:r,options:s})=>GT(e,r,s)))}function XM(e){let n=YM(e),r=O8(),s=!0,l=!1;const c=g=>(y,b)=>{var S;const x=Bi(e,b,g==="exit"?(S=e.presenceContext)==null?void 0:S.custom:void 0);if(x){const{transition:w,transitionEnd:M,...A}=x;y={...y,...A,...M}}return y};function u(g){n=g(e)}function h(g){const{props:y}=e,b=Jb(e.parent)||{},x=[],S=new Set;let w={},M=1/0;for(let j=0;j<KM;j++){const C=qM[j],H=r[C],B=y[C]!==void 0?y[C]:b[C],Z=co(B),ee=C===g?H.isActive:null;ee===!1&&(M=j);let re=B===b[C]&&B!==y[C]&&Z;if(re&&(s||l)&&e.manuallyAnimateOnMount&&(re=!1),H.protectedKeys={...w},!H.isActive&&ee===null||!B&&!H.prevProp||Lu(B)||typeof B=="boolean")continue;if(C==="exit"&&H.isActive&&ee!==!0){H.prevResolvedValues&&(w={...w,...H.prevResolvedValues});continue}const N=QM(H.prevProp,B);let ce=N||C===g&&H.isActive&&!re&&Z||j>M&&Z,le=!1;const ue=Array.isArray(B)?B:[B];let X=ue.reduce(c(C),{});ee===!1&&(X={});const{prevResolvedValues:xe={}}=H,me={...xe,...X},ve=G=>{ce=!0,S.has(G)&&(le=!0,S.delete(G)),H.needsAnimating[G]=!0;const de=e.getValue(G);de&&(de.liveStyle=!1)};for(const G in me){const de=X[G],we=xe[G];if(w.hasOwnProperty(G))continue;let k=!1;Xf(de)&&Xf(we)?k=!Wb(de,we):k=de!==we,k?de!=null?ve(G):S.add(G):de!==void 0&&S.has(G)?ve(G):H.protectedKeys[G]=!0}H.prevProp=B,H.prevResolvedValues=X,H.isActive&&(w={...w,...X}),(s||l)&&e.blockInitialAnimation&&(ce=!1);const V=re&&N;ce&&(!V||le)&&x.push(...ue.map(G=>{const de={type:C};if(typeof G=="string"&&(s||l)&&!V&&e.manuallyAnimateOnMount&&e.parent){const{parent:we}=e,k=Bi(we,G);if(we.enteringChildren&&k){const{delayChildren:F}=k.transition||{};de.delay=Eb(we.enteringChildren,e,F)}}return{animation:G,options:de}}))}if(S.size){const j={};if(typeof y.initial!="boolean"){const C=Bi(e,Array.isArray(y.initial)?y.initial[0]:y.initial);C&&C.transition&&(j.transition=C.transition)}S.forEach(C=>{const H=e.getBaseTarget(C),B=e.getValue(C);B&&(B.liveStyle=!0),j[C]=H??null}),x.push({animation:j})}let A=!!x.length;return s&&(y.initial===!1||y.initial===y.animate)&&!e.manuallyAnimateOnMount&&(A=!1),s=!1,l=!1,A?n(x):Promise.resolve()}function m(g,y){var x;if(r[g].isActive===y)return Promise.resolve();(x=e.variantChildren)==null||x.forEach(S=>{var w;return(w=S.animationState)==null?void 0:w.setActive(g,y)}),r[g].isActive=y;const b=h(g);for(const S in r)r[S].protectedKeys={};return b}return{animateChanges:h,setActive:m,setAnimateFunction:u,getState:()=>r,reset:()=>{r=O8(),l=!0}}}function QM(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!Wb(n,e):!1}function _i(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function O8(){return{animate:_i(!0),whileInView:_i(),whileHover:_i(),whileTap:_i(),whileDrag:_i(),whileFocus:_i(),exit:_i()}}function i1(e,n){e.min=n.min,e.max=n.max}function ja(e,n){i1(e.x,n.x),i1(e.y,n.y)}function H8(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}const ev=1e-4,JM=1-ev,WM=1+ev,tv=.01,eR=0-tv,tR=0+tv;function Un(e){return e.max-e.min}function nR(e,n,r){return Math.abs(e-n)<=r}function V8(e,n,r,s=.5){e.origin=s,e.originPoint=Gt(n.min,n.max,e.origin),e.scale=Un(r)/Un(n),e.translate=Gt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=JM&&e.scale<=WM||isNaN(e.scale))&&(e.scale=1),(e.translate>=eR&&e.translate<=tR||isNaN(e.translate))&&(e.translate=0)}function no(e,n,r,s){V8(e.x,n.x,r.x,s?s.originX:void 0),V8(e.y,n.y,r.y,s?s.originY:void 0)}function z8(e,n,r,s=0){const l=s?Gt(r.min,r.max,s):r.min;e.min=l+n.min,e.max=e.min+Un(n)}function aR(e,n,r,s){z8(e.x,n.x,r.x,s==null?void 0:s.x),z8(e.y,n.y,r.y,s==null?void 0:s.y)}function B8(e,n,r,s=0){const l=s?Gt(r.min,r.max,s):r.min;e.min=n.min-l,e.max=e.min+Un(n)}function Su(e,n,r,s){B8(e.x,n.x,r.x,s==null?void 0:s.x),B8(e.y,n.y,r.y,s==null?void 0:s.y)}function Z8(e,n,r,s,l){return e-=n,e=Eu(e,1/r,s),l!==void 0&&(e=Eu(e,1/l,s)),e}function rR(e,n=0,r=1,s=.5,l,c=e,u=e){if(Ja.test(n)&&(n=parseFloat(n),n=Gt(u.min,u.max,n/100)-u.min),typeof n!="number")return;let h=Gt(c.min,c.max,s);e===c&&(h-=n),e.min=Z8(e.min,n,r,h,l),e.max=Z8(e.max,n,r,h,l)}function U8(e,n,[r,s,l],c,u){rR(e,n[r],n[s],n[l],n.scale,c,u)}const iR=["x","scaleX","originX"],sR=["y","scaleY","originY"];function P8(e,n,r,s){U8(e.x,n,iR,r?r.x:void 0,s?s.x:void 0),U8(e.y,n,sR,r?r.y:void 0,s?s.y:void 0)}function I8(e){return e.translate===0&&e.scale===1}function nv(e){return I8(e.x)&&I8(e.y)}function $8(e,n){return e.min===n.min&&e.max===n.max}function lR(e,n){return $8(e.x,n.x)&&$8(e.y,n.y)}function F8(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function av(e,n){return F8(e.x,n.x)&&F8(e.y,n.y)}function G8(e){return Un(e.x)/Un(e.y)}function q8(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}function Xa(e){return[e("x"),e("y")]}function oR(e,n,r){let s="";const l=e.x.translate/n.x,c=e.y.translate/n.y,u=(r==null?void 0:r.z)||0;if((l||c||u)&&(s=`translate3d(${l}px, ${c}px, ${u}px) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),r){const{transformPerspective:g,rotate:y,rotateX:b,rotateY:x,skewX:S,skewY:w}=r;g&&(s=`perspective(${g}px) ${s}`),y&&(s+=`rotate(${y}deg) `),b&&(s+=`rotateX(${b}deg) `),x&&(s+=`rotateY(${x}deg) `),S&&(s+=`skewX(${S}deg) `),w&&(s+=`skewY(${w}deg) `)}const h=e.x.scale*n.x,m=e.y.scale*n.y;return(h!==1||m!==1)&&(s+=`scale(${h}, ${m})`),s||"none"}const rv=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],cR=rv.length,K8=e=>typeof e=="string"?parseFloat(e):e,Y8=e=>typeof e=="number"||Le.test(e);function uR(e,n,r,s,l,c){l?(e.opacity=Gt(0,r.opacity??1,dR(s)),e.opacityExit=Gt(n.opacity??1,0,fR(s))):c&&(e.opacity=Gt(n.opacity??1,r.opacity??1,s));for(let u=0;u<cR;u++){const h=rv[u];let m=X8(n,h),g=X8(r,h);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||Y8(m)===Y8(g)?(e[h]=Math.max(Gt(K8(m),K8(g),s),0),(Ja.test(g)||Ja.test(m))&&(e[h]+="%")):e[h]=g}(n.rotate||r.rotate)&&(e.rotate=Gt(n.rotate||0,r.rotate||0,s))}function X8(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const dR=iv(0,.5,Yy),fR=iv(.5,.95,Ta);function iv(e,n,r){return s=>s<e?0:s>n?1:r(lo(e,n,s))}function hR(e,n,r){const s=kn(e)?e:Vs(e);return s.start(J1("",s,n,r)),s.animation}function uo(e,n,r,s={passive:!0}){return e.addEventListener(n,r,s),()=>e.removeEventListener(n,r)}const mR=(e,n)=>e.depth-n.depth;class pR{constructor(){this.children=[],this.isDirty=!1}add(n){B1(this.children,n),this.isDirty=!0}remove(n){pu(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(mR),this.isDirty=!1,this.children.forEach(n)}}function gR(e,n){const r=Zn.now(),s=({timestamp:l})=>{const c=l-r;c>=n&&(di(s),e(c-n))};return Bt.setup(s,!0),()=>di(s)}function ru(e){return kn(e)?e.get():e}class yR{constructor(){this.members=[]}add(n){B1(this.members,n);for(let r=this.members.length-1;r>=0;r--){const s=this.members[r];if(s===n||s===this.lead||s===this.prevLead)continue;const l=s.instance;(!l||l.isConnected===!1)&&!s.snapshot&&(pu(this.members,s),s.unmount())}n.scheduleRender()}remove(n){if(pu(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(n){var r;for(let s=this.members.indexOf(n)-1;s>=0;s--){const l=this.members[s];if(l.isPresent!==!1&&((r=l.instance)==null?void 0:r.isConnected)!==!1)return this.promote(l),!0}return!1}promote(n,r){var l;const s=this.lead;if(n!==s&&(this.prevLead=s,this.lead=n,n.show(),s)){s.updateSnapshot(),n.scheduleRender();const{layoutDependency:c}=s.options,{layoutDependency:u}=n.options;(c===void 0||c!==u)&&(n.resumeFrom=s,r&&(s.preserveOpacity=!0),s.snapshot&&(n.snapshot=s.snapshot,n.snapshot.latestValues=s.animationValues||s.latestValues),(l=n.root)!=null&&l.isUpdating&&(n.isLayoutDirty=!0)),n.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(n=>{var r,s,l,c,u;(s=(r=n.options).onExitComplete)==null||s.call(r),(u=(l=n.resumingFrom)==null?void 0:(c=l.options).onExitComplete)==null||u.call(c)})}scheduleRender(){this.members.forEach(n=>n.instance&&n.scheduleRender(!1))}removeLeadSnapshot(){var n;(n=this.lead)!=null&&n.snapshot&&(this.lead.snapshot=void 0)}}const iu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},df=["","X","Y","Z"],bR=1e3;let vR=0;function ff(e,n,r,s){const{latestValues:l}=n;l[e]&&(r[e]=l[e],n.setStaticValue(e,0),s&&(s[e]=0))}function sv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const r=Mb(n);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:l,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Bt,!(l||c))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&sv(s)}function lv({attachResizeListener:e,defaultParent:n,measureScroll:r,checkIsScrollRoot:s,resetTransform:l}){return class{constructor(u={},h=n==null?void 0:n()){this.id=vR++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(SR),this.nodes.forEach(CR),this.nodes.forEach(kR),this.nodes.forEach(wR)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new pR)}addEventListener(u,h){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new U1),this.eventHandlers.get(u).add(h)}notifyListeners(u,...h){const m=this.eventHandlers.get(u);m&&m.notify(...h)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=rh(u)&&!EM(u),this.instance=u;const{layoutId:h,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),e){let y,b=0;const x=()=>this.root.updateBlockedByResize=!1;Bt.read(()=>{b=window.innerWidth}),e(u,()=>{const S=window.innerWidth;S!==b&&(b=S,this.root.updateBlockedByResize=!0,y&&y(),y=gR(x,250),iu.hasAnimatedSinceResize&&(iu.hasAnimatedSinceResize=!1,this.nodes.forEach(W8)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:x,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||g.getDefaultTransition()||LR,{onLayoutAnimationStart:M,onLayoutAnimationComplete:A}=g.getProps(),j=!this.targetLayout||!av(this.targetLayout,S),C=!b&&x;if(this.options.layoutRoot||this.resumeFrom||C||b&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const H={...Q1(w,"layout"),onPlay:M,onComplete:A};(g.shouldReduceMotion||this.options.layoutRoot)&&(H.delay=0,H.type=!1),this.startAnimation(H),this.setAnimationOrigin(y,C)}else b||W8(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),di(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(NR),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&sv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const b=this.path[y];b.shouldResetTransform=!0,(typeof b.latestValues.x=="string"||typeof b.latestValues.y=="string")&&(b.isLayoutDirty=!0),b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const m=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),m&&this.nodes.forEach(TR),this.nodes.forEach(Q8);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(J8);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(MR),this.nodes.forEach(RR),this.nodes.forEach(xR),this.nodes.forEach(ER)):this.nodes.forEach(J8),this.clearAllSnapshots();const h=Zn.now();Cn.delta=er(0,1e3/60,h-Cn.timestamp),Cn.timestamp=h,Cn.isProcessing=!0,nf.update.process(Cn),nf.preRender.process(Cn),nf.render.process(Cn),Cn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,nh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(AR),this.sharedNodes.forEach(_R)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Bt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Bt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Un(this.snapshot.measuredBox.x)&&!Un(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=yn()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(h=!1),h&&this.instance){const m=s(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:m,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!l)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!nv(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;u&&this.instance&&(h||Di(this.latestValues)||y)&&(l(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return u&&(m=this.removeTransform(m)),OR(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:u}=this.options;if(!u)return yn();const h=u.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(HR))){const{scroll:y}=this.root;y&&(Qa(h.x,y.offset.x),Qa(h.y,y.offset.y))}return h}removeElementScroll(u){var m;const h=yn();if(ja(h,u),(m=this.scroll)!=null&&m.wasRoot)return h;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:b,options:x}=y;y!==this.root&&b&&x.layoutScroll&&(b.wasRoot&&ja(h,u),Qa(h.x,b.offset.x),Qa(h.y,b.offset.y))}return h}applyTransform(u,h=!1,m){var y,b;const g=m||yn();ja(g,u);for(let x=0;x<this.path.length;x++){const S=this.path[x];!h&&S.options.layoutScroll&&S.scroll&&S!==S.root&&(Qa(g.x,-S.scroll.offset.x),Qa(g.y,-S.scroll.offset.y)),Di(S.latestValues)&&au(g,S.latestValues,(y=S.layout)==null?void 0:y.layoutBox)}return Di(this.latestValues)&&au(g,this.latestValues,(b=this.layout)==null?void 0:b.layoutBox),g}removeTransform(u){var m;const h=yn();ja(h,u);for(let g=0;g<this.path.length;g++){const y=this.path[g];if(!Di(y.latestValues))continue;let b;y.instance&&(n1(y.latestValues)&&y.updateSnapshot(),b=yn(),ja(b,y.measurePageBox())),P8(h,y.latestValues,(m=y.snapshot)==null?void 0:m.layoutBox,b)}return Di(this.latestValues)&&P8(h,this.latestValues),h}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Cn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var S;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(u||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:b}=this.options;if(!this.layout||!(y||b))return;this.resolvedRelativeTargetAt=Cn.timestamp;const x=this.getClosestProjectingParent();x&&this.linkedParentVersion!==x.layoutVersion&&!x.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&x&&x.layout?this.createRelativeTarget(x,this.layout.layoutBox,x.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=yn(),this.targetWithTransforms=yn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),aR(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ja(this.target,this.layout.layoutBox),$b(this.target,this.targetDelta)):ja(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?this.createRelativeTarget(x,this.target,x.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||n1(this.parent.latestValues)||Ib(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,h,m){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yn(),this.relativeTargetOrigin=yn(),Su(this.relativeTargetOrigin,h,m,this.options.layoutAnchor||void 0),ja(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const u=this.getLead(),h=!!this.resumingFrom||this!==u;let m=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Cn.timestamp&&(m=!1),m)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;ja(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,x=this.treeScale.y;jM(this.layoutCorrected,this.treeScale,this.path,h),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=yn());const{target:S}=u;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(H8(this.prevProjectionDelta.x,this.projectionDelta.x),H8(this.prevProjectionDelta.y,this.projectionDelta.y)),no(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==x||!q8(this.projectionDelta.x,this.prevProjectionDelta.x)||!q8(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),u){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_s(),this.projectionDelta=_s(),this.projectionDeltaWithTransform=_s()}setAnimationOrigin(u,h=!1){const m=this.snapshot,g=m?m.latestValues:{},y={...this.latestValues},b=_s();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const x=yn(),S=m?m.source:void 0,w=this.layout?this.layout.source:void 0,M=S!==w,A=this.getStack(),j=!A||A.members.length<=1,C=!!(M&&!j&&this.options.crossfade===!0&&!this.path.some(DR));this.animationProgress=0;let H;this.mixTargetDelta=B=>{const Z=B/1e3;e4(b.x,u.x,Z),e4(b.y,u.y,Z),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Su(x,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),jR(this.relativeTarget,this.relativeTargetOrigin,x,Z),H&&lR(this.relativeTarget,H)&&(this.isProjectionDirty=!1),H||(H=yn()),ja(H,this.relativeTarget)),M&&(this.animationValues=y,uR(y,g,this.latestValues,Z,C,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var h,m,g;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(g=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||g.stop(),this.pendingAnimation&&(di(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Bt.update(()=>{iu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Vs(0)),this.motionValue.jump(0,!1),this.currentAnimation=hR(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),u.onUpdate&&u.onUpdate(y)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:h,target:m,layout:g,latestValues:y}=u;if(!(!h||!m||!g)){if(this!==u&&this.layout&&g&&ov(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||yn();const b=Un(this.layout.layoutBox.x);m.x.min=u.target.x.min,m.x.max=m.x.min+b;const x=Un(this.layout.layoutBox.y);m.y.min=u.target.y.min,m.y.max=m.y.min+x}ja(h,m),au(h,y),no(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(u,h){this.sharedNodes.has(u)||this.sharedNodes.set(u,new yR),this.sharedNodes.get(u).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var h;const{layoutId:u}=this.options;return u?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:u}=this.options;return u?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:h,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let h=!1;const{latestValues:m}=u;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const g={};m.z&&ff("z",u,g,this.animationValues);for(let y=0;y<df.length;y++)ff(`rotate${df[y]}`,u,g,this.animationValues),ff(`skew${df[y]}`,u,g,this.animationValues);u.render();for(const y in g)u.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);u.scheduleRender()}applyProjectionStyles(u,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=ru(h==null?void 0:h.pointerEvents)||"",u.transform=m?m(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=ru(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Di(this.latestValues)&&(u.transform=m?m({},""):"none",this.hasProjected=!1);return}u.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let b=oR(this.projectionDeltaWithTransform,this.treeScale,y);m&&(b=m(y,b)),u.transform=b;const{x,y:S}=this.projectionDelta;u.transformOrigin=`${x.origin*100}% ${S.origin*100}% 0`,g.animationValues?u.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:u.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const w in r1){if(y[w]===void 0)continue;const{correct:M,applyTo:A,isCSSVariable:j}=r1[w],C=b==="none"?y[w]:M(y[w],g);if(A){const H=A.length;for(let B=0;B<H;B++)u[A[B]]=C}else j?this.options.visualElement.renderState.vars[w]=C:u[w]=C}this.options.layoutId&&(u.pointerEvents=g===this?ru(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var h;return(h=u.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(Q8),this.root.sharedNodes.clear()}}}function xR(e){e.updateLayout()}function ER(e){var r;const n=((r=e.resumeFrom)==null?void 0:r.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:l}=e.layout,{animationType:c}=e.options,u=n.source!==e.layout.source;if(c==="size")Xa(b=>{const x=u?n.measuredBox[b]:n.layoutBox[b],S=Un(x);x.min=s[b].min,x.max=x.min+S});else if(c==="x"||c==="y"){const b=c==="x"?"y":"x";i1(u?n.measuredBox[b]:n.layoutBox[b],s[b])}else ov(c,n.layoutBox,s)&&Xa(b=>{const x=u?n.measuredBox[b]:n.layoutBox[b],S=Un(s[b]);x.max=x.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[b].max=e.relativeTarget[b].min+S)});const h=_s();no(h,s,n.layoutBox);const m=_s();u?no(m,e.applyTransform(l,!0),n.measuredBox):no(m,s,n.layoutBox);const g=!nv(h);let y=!1;if(!e.resumeFrom){const b=e.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:x,layout:S}=b;if(x&&S){const w=e.options.layoutAnchor||void 0,M=yn();Su(M,n.layoutBox,x.layoutBox,w);const A=yn();Su(A,s,S.layoutBox,w),av(M,A)||(y=!0),b.options.layoutRoot&&(e.relativeTarget=A,e.relativeTargetOrigin=M,e.relativeParent=b)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:m,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function SR(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function wR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AR(e){e.clearSnapshot()}function Q8(e){e.clearMeasurements()}function TR(e){e.isLayoutDirty=!0,e.updateLayout()}function J8(e){e.isLayoutDirty=!1}function MR(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function RR(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function W8(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function CR(e){e.resolveTargetDelta()}function kR(e){e.calcProjection()}function NR(e){e.resetSkewAndRotation()}function _R(e){e.removeLeadSnapshot()}function e4(e,n,r){e.translate=Gt(n.translate,0,r),e.scale=Gt(n.scale,1,r),e.origin=n.origin,e.originPoint=n.originPoint}function t4(e,n,r,s){e.min=Gt(n.min,r.min,s),e.max=Gt(n.max,r.max,s)}function jR(e,n,r,s){t4(e.x,n.x,r.x,s),t4(e.y,n.y,r.y,s)}function DR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const LR={duration:.45,ease:[.4,0,.1,1]},n4=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),a4=n4("applewebkit/")&&!n4("chrome/")?Math.round:Ta;function r4(e){e.min=a4(e.min),e.max=a4(e.max)}function OR(e){r4(e.x),r4(e.y)}function ov(e,n,r){return e==="position"||e==="preserve-aspect"&&!nR(G8(n),G8(r),.2)}function HR(e){var n;return e!==e.root&&((n=e.scroll)==null?void 0:n.wasRoot)}const VR=lv({attachResizeListener:(e,n)=>uo(e,"resize",n),measureScroll:()=>{var e,n;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((n=document.body)==null?void 0:n.scrollTop)||0}},checkIsScrollRoot:()=>!0}),hf={current:void 0},cv=lv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hf.current){const e=new VR({});e.mount(window),e.setOptions({layoutScroll:!0}),hf.current=e}return hf.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ch=d.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function i4(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function zR(...e){return n=>{let r=!1;const s=e.map(l=>{const c=i4(l,n);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let l=0;l<s.length;l++){const c=s[l];typeof c=="function"?c():i4(e[l],null)}}}}function BR(...e){return d.useCallback(zR(...e),e)}class ZR extends d.Component{getSnapshotBeforeUpdate(n){const r=this.props.childRef.current;if(Wc(r)&&n.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=r.offsetParent,l=Wc(s)&&s.offsetWidth||0,c=Wc(s)&&s.offsetHeight||0,u=getComputedStyle(r),h=this.props.sizeRef.current;h.height=parseFloat(u.height),h.width=parseFloat(u.width),h.top=r.offsetTop,h.left=r.offsetLeft,h.right=l-h.width-h.left,h.bottom=c-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function UR({children:e,isPresent:n,anchorX:r,anchorY:s,root:l,pop:c}){var x;const u=d.useId(),h=d.useRef(null),m=d.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:g}=d.useContext(ch),y=((x=e.props)==null?void 0:x.ref)??(e==null?void 0:e.ref),b=BR(h,y);return d.useInsertionEffect(()=>{const{width:S,height:w,top:M,left:A,right:j,bottom:C}=m.current;if(n||c===!1||!h.current||!S||!w)return;const H=r==="left"?`left: ${A}`:`right: ${j}`,B=s==="bottom"?`bottom: ${C}`:`top: ${M}`;h.current.dataset.motionPopId=u;const Z=document.createElement("style");g&&(Z.nonce=g);const ee=l??document.head;return ee.appendChild(Z),Z.sheet&&Z.sheet.insertRule(`
|
|
134
|
+
[data-motion-pop-id="${u}"] {
|
|
135
|
+
position: absolute !important;
|
|
136
|
+
width: ${S}px !important;
|
|
137
|
+
height: ${w}px !important;
|
|
138
|
+
${H}px !important;
|
|
139
|
+
${B}px !important;
|
|
140
|
+
}
|
|
141
|
+
`),()=>{var re;(re=h.current)==null||re.removeAttribute("data-motion-pop-id"),ee.contains(Z)&&ee.removeChild(Z)}},[n]),v.jsx(ZR,{isPresent:n,childRef:h,sizeRef:m,pop:c,children:c===!1?e:d.cloneElement(e,{ref:b})})}const PR=({children:e,initial:n,isPresent:r,onExitComplete:s,custom:l,presenceAffectsLayout:c,mode:u,anchorX:h,anchorY:m,root:g})=>{const y=z1(IR),b=d.useId();let x=!0,S=d.useMemo(()=>(x=!1,{id:b,initial:n,isPresent:r,custom:l,onExitComplete:w=>{y.set(w,!0);for(const M of y.values())if(!M)return;s&&s()},register:w=>(y.set(w,!1),()=>y.delete(w))}),[r,y,s]);return c&&x&&(S={...S}),d.useMemo(()=>{y.forEach((w,M)=>y.set(M,!1))},[r]),d.useEffect(()=>{!r&&!y.size&&s&&s()},[r]),e=v.jsx(UR,{pop:u==="popLayout",isPresent:r,anchorX:h,anchorY:m,root:g,children:e}),v.jsx(ju.Provider,{value:S,children:e})};function IR(){return new Map}function uv(e=!0){const n=d.useContext(ju);if(n===null)return[!0,null];const{isPresent:r,onExitComplete:s,register:l}=n,c=d.useId();d.useEffect(()=>{if(e)return l(c)},[e]);const u=d.useCallback(()=>e&&s&&s(c),[c,s,e]);return!r&&s?[!1,u]:[!0]}const Uc=e=>e.key||"";function s4(e){const n=[];return d.Children.forEach(e,r=>{d.isValidElement(r)&&n.push(r)}),n}const $R=({children:e,custom:n,initial:r=!0,onExitComplete:s,presenceAffectsLayout:l=!0,mode:c="sync",propagate:u=!1,anchorX:h="left",anchorY:m="top",root:g})=>{const[y,b]=uv(u),x=d.useMemo(()=>s4(e),[e]),S=u&&!y?[]:x.map(Uc),w=d.useRef(!0),M=d.useRef(x),A=z1(()=>new Map),j=d.useRef(new Set),[C,H]=d.useState(x),[B,Z]=d.useState(x);Vy(()=>{w.current=!1,M.current=x;for(let N=0;N<B.length;N++){const ce=Uc(B[N]);S.includes(ce)?(A.delete(ce),j.current.delete(ce)):A.get(ce)!==!0&&A.set(ce,!1)}},[B,S.length,S.join("-")]);const ee=[];if(x!==C){let N=[...x];for(let ce=0;ce<B.length;ce++){const le=B[ce],ue=Uc(le);S.includes(ue)||(N.splice(ce,0,le),ee.push(le))}return c==="wait"&&ee.length&&(N=ee),Z(s4(N)),H(x),null}const{forceRender:re}=d.useContext(V1);return v.jsx(v.Fragment,{children:B.map(N=>{const ce=Uc(N),le=u&&!y?!1:x===B||S.includes(ce),ue=()=>{if(j.current.has(ce))return;if(A.has(ce))j.current.add(ce),A.set(ce,!0);else return;let X=!0;A.forEach(xe=>{xe||(X=!1)}),X&&(re==null||re(),Z(M.current),u&&(b==null||b()),s&&s())};return v.jsx(PR,{isPresent:le,initial:!w.current||r?void 0:!1,custom:n,presenceAffectsLayout:l,mode:c,root:g,onExitComplete:le?void 0:ue,anchorX:h,anchorY:m,children:N},ce)})})},dv=d.createContext({strict:!1}),l4={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let o4=!1;function FR(){if(o4)return;const e={};for(const n in l4)e[n]={isEnabled:r=>l4[n].some(s=>!!r[s])};Zb(e),o4=!0}function fv(){return FR(),CM()}function GR(e){const n=fv();for(const r in e)n[r]={...n[r],...e[r]};Zb(n)}const qR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function wu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qR.has(e)}let hv=e=>!wu(e);function KR(e){typeof e=="function"&&(hv=n=>n.startsWith("on")?!wu(n):e(n))}try{KR(require("@emotion/is-prop-valid").default)}catch{}function YR(e,n,r){const s={};for(const l in e)l==="values"&&typeof e.values=="object"||kn(e[l])||(hv(l)||r===!0&&wu(l)||!n&&!wu(l)||e.draggable&&l.startsWith("onDrag"))&&(s[l]=e[l]);return s}const Hu=d.createContext({});function XR(e,n){if(Ou(e)){const{initial:r,animate:s}=e;return{initial:r===!1||co(r)?r:void 0,animate:co(s)?s:void 0}}return e.inherit!==!1?n:{}}function QR(e){const{initial:n,animate:r}=XR(e,d.useContext(Hu));return d.useMemo(()=>({initial:n,animate:r}),[c4(n),c4(r)])}function c4(e){return Array.isArray(e)?e.join(" "):e}const uh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mv(e,n,r){for(const s in n)!kn(n[s])&&!qb(s,r)&&(e[s]=n[s])}function JR({transformTemplate:e},n){return d.useMemo(()=>{const r=uh();return lh(r,n,e),Object.assign({},r.vars,r.style)},[n])}function WR(e,n){const r=e.style||{},s={};return mv(s,r,e),Object.assign(s,JR(e,n)),s}function eC(e,n){const r={},s=WR(e,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r}const pv=()=>({...uh(),attrs:{}});function tC(e,n,r,s){const l=d.useMemo(()=>{const c=pv();return Kb(c,n,Xb(s),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[n]);if(e.style){const c={};mv(c,e.style,e),l.style={...c,...l.style}}return l}const nC=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function dh(e){return typeof e!="string"||e.includes("-")?!1:!!(nC.indexOf(e)>-1||/[A-Z]/u.test(e))}function aC(e,n,r,{latestValues:s},l,c=!1,u){const m=(u??dh(e)?tC:eC)(n,s,l,e),g=YR(n,typeof e=="string",c),y=e!==d.Fragment?{...g,...m,ref:r}:{},{children:b}=n,x=d.useMemo(()=>kn(b)?b.get():b,[b]);return d.createElement(e,{...y,children:x})}function rC({scrapeMotionValuesFromProps:e,createRenderState:n},r,s,l){return{latestValues:iC(r,s,l,e),renderState:n()}}function iC(e,n,r,s){const l={},c=s(e,{});for(const x in c)l[x]=ru(c[x]);let{initial:u,animate:h}=e;const m=Ou(e),g=zb(e);n&&g&&!m&&e.inherit!==!1&&(u===void 0&&(u=n.initial),h===void 0&&(h=n.animate));let y=r?r.initial===!1:!1;y=y||u===!1;const b=y?h:u;if(b&&typeof b!="boolean"&&!Lu(b)){const x=Array.isArray(b)?b:[b];for(let S=0;S<x.length;S++){const w=W1(e,x[S]);if(w){const{transitionEnd:M,transition:A,...j}=w;for(const C in j){let H=j[C];if(Array.isArray(H)){const B=y?H.length-1:0;H=H[B]}H!==null&&(l[C]=H)}for(const C in M)l[C]=M[C]}}}return l}const gv=e=>(n,r)=>{const s=d.useContext(Hu),l=d.useContext(ju),c=()=>rC(e,n,s,l);return r?c():z1(c)},sC=gv({scrapeMotionValuesFromProps:oh,createRenderState:uh}),lC=gv({scrapeMotionValuesFromProps:Qb,createRenderState:pv}),oC=Symbol.for("motionComponentSymbol");function cC(e,n,r){const s=d.useRef(r);d.useInsertionEffect(()=>{s.current=r});const l=d.useRef(null);return d.useCallback(c=>{var h;c&&((h=e.onMount)==null||h.call(e,c));const u=s.current;if(typeof u=="function")if(c){const m=u(c);typeof m=="function"&&(l.current=m)}else l.current?(l.current(),l.current=null):u(c);else u&&(u.current=c);n&&(c?n.mount(c):n.unmount())},[n])}const yv=d.createContext({});function Ts(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uC(e,n,r,s,l,c){var H,B;const{visualElement:u}=d.useContext(Hu),h=d.useContext(dv),m=d.useContext(ju),g=d.useContext(ch),y=g.reducedMotion,b=g.skipAnimations,x=d.useRef(null),S=d.useRef(!1);s=s||h.renderer,!x.current&&s&&(x.current=s(e,{visualState:n,parent:u,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y,skipAnimations:b,isSVG:c}),S.current&&x.current&&(x.current.manuallyAnimateOnMount=!0));const w=x.current,M=d.useContext(yv);w&&!w.projection&&l&&(w.type==="html"||w.type==="svg")&&dC(x.current,r,l,M);const A=d.useRef(!1);d.useInsertionEffect(()=>{w&&A.current&&w.update(r,m)});const j=r[Tb],C=d.useRef(!!j&&typeof window<"u"&&!((H=window.MotionHandoffIsComplete)!=null&&H.call(window,j))&&((B=window.MotionHasOptimisedAnimation)==null?void 0:B.call(window,j)));return Vy(()=>{S.current=!0,w&&(A.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),C.current&&w.animationState&&w.animationState.animateChanges())}),d.useEffect(()=>{w&&(!C.current&&w.animationState&&w.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var Z;(Z=window.MotionHandoffMarkAsComplete)==null||Z.call(window,j)}),C.current=!1),w.enteringChildren=void 0)}),w}function dC(e,n,r,s){const{layoutId:l,layout:c,drag:u,dragConstraints:h,layoutScroll:m,layoutRoot:g,layoutAnchor:y,layoutCrossfade:b}=n;e.projection=new r(e.latestValues,n["data-framer-portal-id"]?void 0:bv(e.parent)),e.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||h&&Ts(h),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,crossfade:b,layoutScroll:m,layoutRoot:g,layoutAnchor:y})}function bv(e){if(e)return e.options.allowProjection!==!1?e.projection:bv(e.parent)}function mf(e,{forwardMotionProps:n=!1,type:r}={},s,l){s&&GR(s);const c=r?r==="svg":dh(e),u=c?lC:sC;function h(g,y){let b;const x={...d.useContext(ch),...g,layoutId:fC(g)},{isStatic:S}=x,w=QR(g),M=u(g,S);if(!S&&typeof window<"u"){hC();const A=mC(x);b=A.MeasureLayout,w.visualElement=uC(e,M,x,l,A.ProjectionNode,c)}return v.jsxs(Hu.Provider,{value:w,children:[b&&w.visualElement?v.jsx(b,{visualElement:w.visualElement,...x}):null,aC(e,g,cC(M,w.visualElement,y),M,S,n,c)]})}h.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const m=d.forwardRef(h);return m[oC]=e,m}function fC({layoutId:e}){const n=d.useContext(V1).id;return n&&e!==void 0?n+"-"+e:e}function hC(e,n){d.useContext(dv).strict}function mC(e){const n=fv(),{drag:r,layout:s}=n;if(!r&&!s)return{};const l={...r,...s};return{MeasureLayout:r!=null&&r.isEnabled(e)||s!=null&&s.isEnabled(e)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}function pC(e,n){if(typeof Proxy>"u")return mf;const r=new Map,s=(c,u)=>mf(c,u,e,n),l=(c,u)=>s(c,u);return new Proxy(l,{get:(c,u)=>u==="create"?s:(r.has(u)||r.set(u,mf(u,void 0,e,n)),r.get(u))})}const gC=(e,n)=>n.isSVG??dh(e)?new FM(n):new BM(n,{allowProjection:e!==d.Fragment});class yC extends fi{constructor(n){super(n),n.animationState||(n.animationState=XM(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();Lu(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:r}=this.node.prevProps||{};n!==r&&this.updateAnimationControlsSubscription()}unmount(){var n;this.node.animationState.reset(),(n=this.unmountControls)==null||n.call(this)}}let bC=0;class vC extends fi{constructor(){super(...arguments),this.id=bC++,this.isExitComplete=!1}update(){var c;if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:r}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===s)return;if(n&&s===!1){if(this.isExitComplete){const{initial:u,custom:h}=this.node.getProps();if(typeof u=="string"){const m=Bi(this.node,u,h);if(m){const{transition:g,transitionEnd:y,...b}=m;for(const x in b)(c=this.node.getValue(x))==null||c.jump(b[x])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const l=this.node.animationState.setActive("exit",!n);r&&!n&&l.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){const{register:n,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const xC={animation:{Feature:yC},exit:{Feature:vC}};function wo(e){return{point:{x:e.pageX,y:e.pageY}}}const EC=e=>n=>ah(n)&&e(n,wo(n));function ao(e,n,r,s){return uo(e,n,EC(r),s)}const vv=({current:e})=>e?e.ownerDocument.defaultView:null,u4=(e,n)=>Math.abs(e-n);function SC(e,n){const r=u4(e.x,n.x),s=u4(e.y,n.y);return Math.sqrt(r**2+s**2)}const d4=new Set(["auto","scroll"]);class xv{constructor(n,r,{transformPagePoint:s,contextWindow:l=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=S=>{this.handleScroll(S.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Pc(this.lastRawMoveEventInfo,this.transformPagePoint));const S=pf(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,M=SC(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!M)return;const{point:A}=S,{timestamp:j}=Cn;this.history.push({...A,timestamp:j});const{onStart:C,onMove:H}=this.handlers;w||(C&&C(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),H&&H(this.lastMoveEvent,S)},this.handlePointerMove=(S,w)=>{this.lastMoveEvent=S,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Pc(w,this.transformPagePoint),Bt.update(this.updatePoint,!0)},this.handlePointerUp=(S,w)=>{this.end();const{onEnd:M,onSessionEnd:A,resumeAnimation:j}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=pf(S.type==="pointercancel"?this.lastMoveEventInfo:Pc(w,this.transformPagePoint),this.history);this.startEvent&&M&&M(S,C),A&&A(S,C)},!ah(n))return;this.dragSnapToOrigin=c,this.handlers=r,this.transformPagePoint=s,this.distanceThreshold=u,this.contextWindow=l||window;const m=wo(n),g=Pc(m,this.transformPagePoint),{point:y}=g,{timestamp:b}=Cn;this.history=[{...y,timestamp:b}];const{onSessionStart:x}=r;x&&x(n,pf(g,this.history)),this.removeListeners=xo(ao(this.contextWindow,"pointermove",this.handlePointerMove),ao(this.contextWindow,"pointerup",this.handlePointerUp),ao(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(n){let r=n.parentElement;for(;r;){const s=getComputedStyle(r);(d4.has(s.overflowX)||d4.has(s.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(n){const r=this.scrollPositions.get(n);if(!r)return;const s=n===window,l=s?{x:window.scrollX,y:window.scrollY}:{x:n.scrollLeft,y:n.scrollTop},c={x:l.x-r.x,y:l.y-r.y};c.x===0&&c.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=c.x,this.lastMoveEventInfo.point.y+=c.y):this.history.length>0&&(this.history[0].x-=c.x,this.history[0].y-=c.y),this.scrollPositions.set(n,l),Bt.update(this.updatePoint,!0))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),di(this.updatePoint)}}function Pc(e,n){return n?{point:n(e.point)}:e}function f4(e,n){return{x:e.x-n.x,y:e.y-n.y}}function pf({point:e},n){return{point:e,delta:f4(e,Ev(n)),offset:f4(e,wC(n)),velocity:AC(n,.1)}}function wC(e){return e[0]}function Ev(e){return e[e.length-1]}function AC(e,n){if(e.length<2)return{x:0,y:0};let r=e.length-1,s=null;const l=Ev(e);for(;r>=0&&(s=e[r],!(l.timestamp-s.timestamp>la(n)));)r--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&l.timestamp-s.timestamp>la(n)*2&&(s=e[1]);const c=wa(l.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const u={x:(l.x-s.x)/c,y:(l.y-s.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function TC(e,{min:n,max:r},s){return n!==void 0&&e<n?e=s?Gt(n,e,s.min):Math.max(e,n):r!==void 0&&e>r&&(e=s?Gt(r,e,s.max):Math.min(e,r)),e}function h4(e,n,r){return{min:n!==void 0?e.min+n:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function MC(e,{top:n,left:r,bottom:s,right:l}){return{x:h4(e.x,r,l),y:h4(e.y,n,s)}}function m4(e,n){let r=n.min-e.min,s=n.max-e.max;return n.max-n.min<e.max-e.min&&([r,s]=[s,r]),{min:r,max:s}}function RC(e,n){return{x:m4(e.x,n.x),y:m4(e.y,n.y)}}function CC(e,n){let r=.5;const s=Un(e),l=Un(n);return l>s?r=lo(n.min,n.max-s,e.min):s>l&&(r=lo(e.min,e.max-l,n.min)),er(0,1,r)}function kC(e,n){const r={};return n.min!==void 0&&(r.min=n.min-e.min),n.max!==void 0&&(r.max=n.max-e.min),r}const s1=.35;function NC(e=s1){return e===!1?e=0:e===!0&&(e=s1),{x:p4(e,"left","right"),y:p4(e,"top","bottom")}}function p4(e,n,r){return{min:g4(e,n),max:g4(e,r)}}function g4(e,n){return typeof e=="number"?e:e[n]||0}const _C=new WeakMap;class jC{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:r=!1,distanceThreshold:s}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const c=b=>{r&&this.snapToCursor(wo(b).point),this.stopAnimation()},u=(b,x)=>{const{drag:S,dragPropagation:w,onDragStart:M}=this.getProps();if(S&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rM(S),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Xa(j=>{let C=this.getAxisMotionValue(j).get()||0;if(Ja.test(C)){const{projection:H}=this.visualElement;if(H&&H.layout){const B=H.layout.layoutBox[j];B&&(C=Un(B)*(parseFloat(C)/100))}}this.originPoint[j]=C}),M&&Bt.update(()=>M(b,x),!1,!0),Qf(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},h=(b,x)=>{this.latestPointerEvent=b,this.latestPanInfo=x;const{dragPropagation:S,dragDirectionLock:w,onDirectionLock:M,onDrag:A}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:j}=x;if(w&&this.currentDirection===null){this.currentDirection=LC(j),this.currentDirection!==null&&M&&M(this.currentDirection);return}this.updateAxis("x",x.point,j),this.updateAxis("y",x.point,j),this.visualElement.render(),A&&Bt.update(()=>A(b,x),!1,!0)},m=(b,x)=>{this.latestPointerEvent=b,this.latestPanInfo=x,this.stop(b,x),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new xv(n,{onSessionStart:c,onStart:u,onMove:h,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:s,contextWindow:vv(this.visualElement),element:this.visualElement.current})}stop(n,r){const s=n||this.latestPointerEvent,l=r||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!l||!s)return;const{velocity:u}=l;this.startAnimation(u);const{onDragEnd:h}=this.getProps();h&&Bt.postRender(()=>h(s,l))}cancel(){this.isDragging=!1;const{projection:n,animationState:r}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(n,r,s){const{drag:l}=this.getProps();if(!s||!Ic(n,l,this.currentDirection))return;const c=this.getAxisMotionValue(n);let u=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(u=TC(u,this.constraints[n],this.elastic[n])),c.set(u)}resolveConstraints(){var c;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,l=this.constraints;n&&Ts(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=MC(s.layoutBox,n):this.constraints=!1,this.elastic=NC(r),l!==this.constraints&&!Ts(n)&&s&&this.constraints&&!this.hasMutatedConstraints&&Xa(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=kC(s.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:r}=this.getProps();if(!n||!Ts(n))return!1;const s=n.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const c=DM(s,l.root,this.visualElement.getTransformPagePoint());let u=RC(l.layout.layoutBox,c);if(r){const h=r(NM(u));this.hasMutatedConstraints=!!h,h&&(u=Pb(h))}return u}startAnimation(n){const{drag:r,dragMomentum:s,dragElastic:l,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},g=Xa(y=>{if(!Ic(y,r,this.currentDirection))return;let b=m&&m[y]||{};(u===!0||u===y)&&(b={min:0,max:0});const x=l?200:1e6,S=l?40:1e7,w={type:"inertia",velocity:s?n[y]:0,bounceStiffness:x,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...c,...b};return this.startAxisValueAnimation(y,w)});return Promise.all(g).then(h)}startAxisValueAnimation(n,r){const s=this.getAxisMotionValue(n);return Qf(this.visualElement,n),s.start(J1(n,s,0,r,this.visualElement,!1))}stopAnimation(){Xa(n=>this.getAxisMotionValue(n).stop())}getAxisMotionValue(n){const r=`_drag${n.toUpperCase()}`,s=this.visualElement.getProps(),l=s[r];return l||this.visualElement.getValue(n,(s.initial?s.initial[n]:void 0)||0)}snapToCursor(n){Xa(r=>{const{drag:s}=this.getProps();if(!Ic(r,s,this.currentDirection))return;const{projection:l}=this.visualElement,c=this.getAxisMotionValue(r);if(l&&l.layout){const{min:u,max:h}=l.layout.layoutBox[r],m=c.get()||0;c.set(n[r]-Gt(u,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:s}=this.visualElement;if(!Ts(r)||!s||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};Xa(u=>{const h=this.getAxisMotionValue(u);if(h&&this.constraints!==!1){const m=h.get();l[u]=CC({min:m,max:m},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Xa(u=>{if(!Ic(u,n,null))return;const h=this.getAxisMotionValue(u),{min:m,max:g}=this.constraints[u];h.set(Gt(m,g,l[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;_C.set(this.visualElement,this);const n=this.visualElement.current,r=ao(n,"pointerdown",g=>{const{drag:y,dragListener:b=!0}=this.getProps(),x=g.target,S=x!==n&&uM(x);y&&b&&!S&&this.start(g)});let s;const l=()=>{const{dragConstraints:g}=this.getProps();Ts(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),s||(s=DC(n,g.current,()=>this.scalePositionWithinConstraints())))},{projection:c}=this.visualElement,u=c.addEventListener("measure",l);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Bt.read(l);const h=uo(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(Xa(b=>{const x=this.getAxisMotionValue(b);x&&(this.originPoint[b]+=g[b].translate,x.set(x.get()+g[b].translate))}),this.visualElement.render())}));return()=>{h(),r(),u(),m&&m(),s&&s()}}getProps(){const n=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:s=!1,dragPropagation:l=!1,dragConstraints:c=!1,dragElastic:u=s1,dragMomentum:h=!0}=n;return{...n,drag:r,dragDirectionLock:s,dragPropagation:l,dragConstraints:c,dragElastic:u,dragMomentum:h}}}function y4(e){let n=!0;return()=>{if(n){n=!1;return}e()}}function DC(e,n,r){const s=A8(e,y4(r)),l=A8(n,y4(r));return()=>{s(),l()}}function Ic(e,n,r){return(n===!0||n===e)&&(r===null||r===e)}function LC(e,n=10){let r=null;return Math.abs(e.y)>n?r="y":Math.abs(e.x)>n&&(r="x"),r}class OC extends fi{constructor(n){super(n),this.removeGroupControls=Ta,this.removeListeners=Ta,this.controls=new jC(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ta}update(){const{dragControls:n}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};n!==r&&(this.removeGroupControls(),n&&(this.removeGroupControls=n.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const gf=e=>(n,r)=>{e&&Bt.update(()=>e(n,r),!1,!0)};class HC extends fi{constructor(){super(...arguments),this.removePointerDownListener=Ta}onPointerDown(n){this.session=new xv(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:vv(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:r,onPan:s,onPanEnd:l}=this.node.getProps();return{onSessionStart:gf(n),onStart:gf(r),onMove:gf(s),onEnd:(c,u)=>{delete this.session,l&&Bt.postRender(()=>l(c,u))}}}mount(){this.removePointerDownListener=ao(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let yf=!1;class VC extends d.Component{componentDidMount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:s,layoutId:l}=this.props,{projection:c}=n;c&&(r.group&&r.group.add(c),s&&s.register&&l&&s.register(c),yf&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),iu.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:r,visualElement:s,drag:l,isPresent:c}=this.props,{projection:u}=s;return u&&(u.isPresent=c,n.layoutDependency!==r&&u.setOptions({...u.options,layoutDependency:r}),yf=!0,l||n.layoutDependency!==r||r===void 0||n.isPresent!==c?u.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?u.promote():u.relegate()||Bt.postRender(()=>{const h=u.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:n,layoutAnchor:r}=this.props,{projection:s}=n;s&&(s.options.layoutAnchor=r,s.root.didUpdate(),nh.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:r,switchLayoutGroup:s}=this.props,{projection:l}=n;yf=!0,l&&(l.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(l),s&&s.deregister&&s.deregister(l))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function Sv(e){const[n,r]=uv(),s=d.useContext(V1);return v.jsx(VC,{...e,layoutGroup:s,switchLayoutGroup:d.useContext(yv),isPresent:n,safeToRemove:r})}const zC={pan:{Feature:HC},drag:{Feature:OC,ProjectionNode:cv,MeasureLayout:Sv}};function b4(e,n,r){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",r==="Start");const l="onHover"+r,c=s[l];c&&Bt.postRender(()=>c(n,wo(n)))}class BC extends fi{mount(){const{current:n}=this.node;n&&(this.unmount=sM(n,(r,s)=>(b4(this.node,s,"Start"),l=>b4(this.node,l,"End"))))}unmount(){}}class ZC extends fi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xo(uo(this.node.current,"focus",()=>this.onFocus()),uo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function v4(e,n,r){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",r==="Start");const l="onTap"+(r==="End"?"":r),c=s[l];c&&Bt.postRender(()=>c(n,wo(n)))}class UC extends fi{mount(){const{current:n}=this.node;if(!n)return;const{globalTapTarget:r,propagate:s}=this.node.props;this.unmount=fM(n,(l,c)=>(v4(this.node,c,"Start"),(u,{success:h})=>v4(this.node,u,h?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const l1=new WeakMap,bf=new WeakMap,PC=e=>{const n=l1.get(e.target);n&&n(e)},IC=e=>{e.forEach(PC)};function $C({root:e,...n}){const r=e||document;bf.has(r)||bf.set(r,{});const s=bf.get(r),l=JSON.stringify(n);return s[l]||(s[l]=new IntersectionObserver(IC,{root:e,...n})),s[l]}function FC(e,n,r){const s=$C(n);return l1.set(e,r),s.observe(e),()=>{l1.delete(e),s.unobserve(e)}}const GC={some:0,all:1};class qC extends fi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var m;(m=this.stopObserver)==null||m.call(this);const{viewport:n={}}=this.node.getProps(),{root:r,margin:s,amount:l="some",once:c}=n,u={root:r?r.current:void 0,rootMargin:s,threshold:typeof l=="number"?l:GC[l]},h=g=>{const{isIntersecting:y}=g;if(this.isInView===y||(this.isInView=y,c&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:b,onViewportLeave:x}=this.node.getProps(),S=y?b:x;S&&S(g)};this.stopObserver=FC(this.node.current,u,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:r}=this.node;["amount","margin","root"].some(KC(n,r))&&this.startObserver()}unmount(){var n;(n=this.stopObserver)==null||n.call(this),this.hasEnteredView=!1,this.isInView=!1}}function KC({viewport:e={}},{viewport:n={}}={}){return r=>e[r]!==n[r]}const YC={inView:{Feature:qC},tap:{Feature:UC},focus:{Feature:ZC},hover:{Feature:BC}},XC={layout:{ProjectionNode:cv,MeasureLayout:Sv}},QC={...xC,...YC,...zC,...XC},JC=pC(QC,gC),Sa=nr((e,n)=>({runs:new Map,activeRunId:null,isModalOpen:!1,startRun:(r,s,l,c)=>{e(u=>{const h=new Map(u.runs);return h.set(r,{runId:r,agentId:s,agentName:l,projectSlug:c,status:"queued",messages:[],startedAt:Date.now()}),{runs:h,activeRunId:r,isModalOpen:!0}})},appendMessage:(r,s)=>{e(l=>{const c=new Map(l.runs),u=c.get(r);return u&&(u.messages.push(s),u.status==="queued"&&(u.status="running"),c.set(r,u)),{runs:c}})},completeRun:(r,s)=>{e(l=>{const c=new Map(l.runs),u=c.get(r);return u&&(u.status="completed",u.completedAt=Date.now(),s&&(u.artefactSummary=s),c.set(r,u)),{runs:c}})},failRun:(r,s)=>{e(l=>{const c=new Map(l.runs),u=c.get(r);return u&&(u.status="failed",u.error=s,u.completedAt=Date.now(),c.set(r,u)),{runs:c}})},syncRun:(r,s)=>{e(l=>{const c=new Map(l.runs),u=c.get(r);return u?(c.set(r,{...u,...s}),{runs:c}):{runs:c}})},discardRun:r=>{e(s=>{const l=new Map(s.runs);return l.delete(r),{runs:l,activeRunId:s.activeRunId===r?null:s.activeRunId,isModalOpen:s.activeRunId===r?!1:s.isModalOpen}})},setActiveRunId:r=>e({activeRunId:r}),setModalOpen:r=>e({isModalOpen:r}),getRun:r=>n().runs.get(r),getAllRuns:()=>Array.from(n().runs.values()).sort((r,s)=>s.startedAt-r.startedAt)})),x4=[".md",".mdx",".markdown",".pdf",".docx",".pptx",".xlsx",".xls",".csv",".tsv",".txt",".text",".rst",".json",".yaml",".yml",".xml",".html",".htm",".toml",".js",".jsx",".ts",".tsx",".py",".css",".scss",".less",".sql",".sh",".bash",".zsh",".bat",".ps1",".ini",".cfg",".conf",".env",".log"],E4=50,WC=new Set([".md",".mdx",".markdown",".txt",".text",".rst",".json",".yaml",".yml",".xml",".html",".htm",".toml",".js",".jsx",".ts",".tsx",".py",".css",".scss",".less",".sql",".sh",".bash",".zsh",".bat",".ps1",".ini",".cfg",".conf",".env",".log",".csv",".tsv"]);function ek(e){const n=e.lastIndexOf(".");return n>=0?e.slice(n).toLowerCase():""}function S4(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(0)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function wv({files:e,onChange:n,showFileList:r=!0,projectSlug:s}){const l=d.useRef(null),[c,u]=d.useState(!1),[h,m]=d.useState(!1),[g,y]=d.useState(null),[b,x]=d.useState("none"),[S,w]=d.useState(!1),[M,A]=d.useState(null),[j,C]=d.useState(""),[H,B]=d.useState(""),[Z,ee]=d.useState(null);d.useEffect(()=>()=>{Z&&URL.revokeObjectURL(Z)},[Z]);function re(ue){var xe;if(!ue)return;const X=[];for(const me of Array.from(ue)){if(me.size>E4*1024*1024)continue;const ve="."+((xe=me.name.split(".").pop())==null?void 0:xe.toLowerCase());if(!x4.includes(ve)||e.some(Q=>Q.name===me.name))continue;const V=crypto.randomUUID();X.push({id:V,name:me.name,size:me.size,type:me.type}),n7(V,me)}if(X.length&&(n([...e,...X]),s)){const ve=Array.from(ue).filter(V=>X.some(Q=>Q.name===V.name));ve.length&&IS(s,ve).catch(()=>{})}}function N(ue){r7(ue),n(e.filter(X=>X.id!==ue))}async function ce(ue){const X=a7(ue.id);if(m(!0),y(ue),x("none"),A(null),C(""),B(""),Z&&(URL.revokeObjectURL(Z),ee(null)),!X){A("Preview unavailable for this file in the current session. Re-attach the file to preview it.");return}w(!0);const xe=ek(ue.name);try{if(X.type.startsWith("image/")){const me=URL.createObjectURL(X);ee(me),x("image");return}if(X.type.startsWith("audio/")){const me=URL.createObjectURL(X);ee(me),x("audio");return}if(X.type.startsWith("video/")){const me=URL.createObjectURL(X);ee(me),x("video");return}if(xe===".pdf"){const me=URL.createObjectURL(X);ee(me),x("pdf");return}if(xe===".docx"){const ve=await(await Wl(()=>import("./index-YCdF8pEa.js").then(V=>V.i),__vite__mapDeps([0,1]))).convertToHtml({arrayBuffer:await X.arrayBuffer()});B(`<!doctype html><html><body style="font-family:ui-sans-serif,system-ui;padding:16px;line-height:1.5">${ve.value}</body></html>`),x("srcdoc");return}if(xe===".pptx"){try{const ve=await(await Wl(async()=>{const{default:k}=await import("./jszip.min-DzuQM42A.js").then(F=>F.j);return{default:k}},__vite__mapDeps([2,1]))).default.loadAsync(await X.arrayBuffer()),V=Object.keys(ve.files).filter(k=>/^ppt\/slides\/slide\d+\.xml$/.test(k)).sort((k,F)=>{var ge,ke;const ie=parseInt(((ge=k.match(/\d+/))==null?void 0:ge[0])??"0",10),be=parseInt(((ke=F.match(/\d+/))==null?void 0:ke[0])??"0",10);return ie-be}),Q=V.length,G=[];for(const k of V.slice(0,10)){const ie=(await ve.files[k].async("text")).replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim().slice(0,300);ie&&G.push(ie)}const de=G.map((k,F)=>`<tr><td style="color:#888;padding:4px 8px;vertical-align:top;white-space:nowrap">Slide ${F+1}</td><td style="padding:4px 8px;color:#222">${k.replace(/</g,"<")}</td></tr>`).join(""),we=`<!doctype html><html><body style="font-family:ui-sans-serif,system-ui;padding:16px;line-height:1.5">
|
|
142
|
+
<p style="color:#888;margin:0 0 12px"><strong style="color:#222">${Q} slide${Q===1?"":"s"}</strong> — ${ue.name}</p>
|
|
143
|
+
<table style="width:100%;border-collapse:collapse;font-size:13px">${de}</table>
|
|
144
|
+
${Q>10?'<p style="color:#aaa;font-size:12px;margin-top:8px">Showing first 10 slides</p>':""}
|
|
145
|
+
</body></html>`;B(we),x("srcdoc")}catch{A("Could not read this PPTX file. It may be password-protected or corrupted.")}return}if(xe===".xlsx"||xe===".xls"){const me=await Wl(()=>import("./xlsx-CkFp8p6R.js"),[]),ve=me.read(await X.arrayBuffer(),{type:"array"}),V=ve.SheetNames[0],Q=ve.Sheets[V],G=me.utils.sheet_to_html(Q);B(`<!doctype html><html><body style="font-family:ui-sans-serif,system-ui;padding:12px">${G}</body></html>`),x("srcdoc");return}if(WC.has(xe)||X.type.startsWith("text/")){const me=await X.text(),ve=xe===".json"?JSON.stringify(JSON.parse(me),null,2):me;C(ve.slice(0,25e4)),x("text");return}A("This file type is attached successfully, but in-app preview is not available yet for this format.")}catch(me){const ve=me instanceof Error?me.message:"Unable to preview this file.";A(ve)}finally{w(!1)}}function le(){m(!1),y(null),x("none"),A(null),C(""),B(""),Z&&(URL.revokeObjectURL(Z),ee(null))}return v.jsxs("div",{className:"space-y-3 mt-4",children:[v.jsxs("div",{role:"button",tabIndex:0,"aria-label":"Upload knowledge base files — click or drag and drop",onClick:()=>{var ue;return(ue=l.current)==null?void 0:ue.click()},onKeyDown:ue=>{var X;(ue.key==="Enter"||ue.key===" ")&&((X=l.current)==null||X.click())},onDragOver:ue=>{ue.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:ue=>{ue.preventDefault(),u(!1),re(ue.dataTransfer.files)},className:["flex flex-col items-center justify-center gap-2 rounded-card border-2 border-dashed","px-4 py-6 cursor-pointer transition-colors duration-100 select-none","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary",c?"border-text-primary bg-border-secondary":"border-border hover:border-text-tertiary hover:bg-border-secondary"].join(" "),children:[v.jsx(DS,{size:24,className:c?"text-text-primary":"text-text-tertiary","aria-hidden":"true"}),v.jsxs("p",{className:"text-caption text-text-secondary text-center",children:["Drop files here or ",v.jsx("span",{className:"text-text-primary font-medium",children:"click to browse"})]}),v.jsxs("p",{className:"text-small text-text-tertiary",children:["Office, text, data, markup, code, and config files · max ",E4," MB"]})]}),v.jsx("input",{ref:l,type:"file",multiple:!0,accept:x4.join(","),className:"sr-only",tabIndex:-1,"aria-hidden":"true",onChange:ue=>re(ue.target.files)}),r&&e.length>0&&v.jsx("ul",{role:"list","aria-label":"Knowledge base files",className:"space-y-1.5",children:e.map(ue=>v.jsxs("li",{className:`flex items-center gap-2.5 px-3 py-2 rounded-card border border-border
|
|
146
|
+
bg-card shadow-clay`,children:[v.jsx(SS,{size:14,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),v.jsx("span",{className:"flex-1 text-caption text-text-primary font-mono truncate",children:ue.name}),v.jsx("span",{className:"text-small text-text-tertiary flex-shrink-0",children:S4(ue.size)}),v.jsx("button",{onClick:X=>{X.stopPropagation(),ce(ue)},"aria-label":`Preview ${ue.name}`,className:`flex-shrink-0 text-text-tertiary hover:text-text-primary
|
|
147
|
+
transition-colors focus-visible:outline-none focus-visible:ring-2
|
|
148
|
+
focus-visible:ring-text-primary rounded`,children:v.jsx(ES,{size:12,weight:"bold","aria-hidden":"true"})}),v.jsx("button",{onClick:X=>{X.stopPropagation(),N(ue.id)},"aria-label":`Remove ${ue.name}`,className:`flex-shrink-0 text-text-tertiary hover:text-text-primary
|
|
149
|
+
transition-colors focus-visible:outline-none focus-visible:ring-2
|
|
150
|
+
focus-visible:ring-text-primary rounded`,children:v.jsx(A1,{size:12,weight:"bold","aria-hidden":"true"})})]},ue.id))}),h&&v.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center bg-[rgba(0,0,0,0.35)] px-4",role:"dialog","aria-modal":"true","aria-label":g?`Preview ${g.name}`:"File preview",children:v.jsxs("div",{className:"w-full max-w-5xl h-[80vh] rounded-feature border border-border bg-canvas shadow-clay flex flex-col overflow-hidden",children:[v.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[v.jsxs("div",{className:"min-w-0",children:[v.jsx("p",{className:"text-body-standard font-medium text-text-primary truncate",children:g==null?void 0:g.name}),v.jsx("p",{className:"text-small text-text-tertiary",children:g?S4(g.size):""})]}),v.jsx("button",{type:"button",onClick:le,className:"rounded-card border border-border px-3 py-1.5 text-small text-text-secondary hover:text-text-primary",children:"Close"})]}),v.jsxs("div",{className:"flex-1 overflow-auto p-4",children:[S&&v.jsx("p",{className:"text-small text-text-secondary",children:"Loading preview…"}),!S&&M&&v.jsx("p",{className:"text-small text-text-secondary",children:M}),!S&&!M&&b==="text"&&v.jsx("pre",{className:"whitespace-pre-wrap break-words text-small text-text-primary font-mono",children:j}),!S&&!M&&b==="srcdoc"&&v.jsx("iframe",{title:"Document preview",srcDoc:H,className:"w-full h-full min-h-[56vh] border border-border rounded-card",sandbox:""}),!S&&!M&&b==="pdf"&&Z&&v.jsx("iframe",{title:"PDF preview",src:Z,className:"w-full h-full min-h-[56vh] border border-border rounded-card"}),!S&&!M&&b==="image"&&Z&&v.jsx("img",{src:Z,alt:(g==null?void 0:g.name)??"Image preview",className:"max-w-full h-auto rounded-card border border-border"}),!S&&!M&&b==="audio"&&Z&&v.jsx("audio",{controls:!0,src:Z,className:"w-full"}),!S&&!M&&b==="video"&&Z&&v.jsx("video",{controls:!0,src:Z,className:"max-w-full h-auto rounded-card border border-border"})]})]})})]})}const tk=[[/store|zustand/i,"ts"],[/hook|use[A-Z]/i,"ts"],[/service|api|client|fetch/i,"ts"],[/type|interface|model|schema/i,"ts"],[/config|constants?|env/i,"ts"],[/component|button|card|modal|drawer|header|footer|layout|page|screen|view/i,"tsx"],[/app$/i,"tsx"]];function nk(e){for(const[n,r]of tk)if(n.test(e))return r;return"ts"}function ak(e){const n=e.replace(/\s*[\-—]\s*[\w/ ]+$/,"").replace(/[^a-zA-Z0-9 ]/g,"").trim().split(/\s+/).map((s,l)=>l===0?s.toLowerCase():s.charAt(0).toUpperCase()+s.slice(1).toLowerCase()).join(""),r=nk(e);return/component|button|card|modal|drawer|header|footer|layout|page|screen|view/i.test(e)?`src/components/${n}.${r}`:/store|zustand/i.test(e)?`src/stores/${n}.${r}`:/hook|use[A-Z]/i.test(e)?`src/hooks/${n}.${r}`:/service|api|client|fetch/i.test(e)?`src/lib/${n}.${r}`:/type|interface|model|schema/i.test(e)?`src/types/${n}.${r}`:/route|router|navigation/i.test(e)?`src/router/${n}.${r}`:`src/${n}.${r}`}function rk(e){const n=[],r=/```(\w*)\n([\s\S]*?)```/g;let s;for(;(s=r.exec(e))!==null;){const l=s[1]||"text",c=s[2],u=c.split(`
|
|
151
|
+
`).find(h=>h.trim())??"";n.push({lang:l,code:c,firstLine:u})}return n}function ik(e){return/tsx?|jsx?|ts|js|css|scss|json|html|sh|bash|yaml|yml/i.test(e)}const sk=/(?:\*\*file(?:name)?:\*\*\s*`([^`]+)`|^\/\/\s*(src\/[^\s]+))/im;function lk(e){const n=sk.exec(e);return n?n[1]??n[2]??null:null}function w4(e){const n=/^(?:\/\/|#)\s*(src\/[^\s]+\.[a-z]+)/i.exec(e);return n?n[1]:null}function ok(e,n="Generated App"){const r={};for(const s of e){if(s.phase!==6)continue;const l=rk(s.content);if(l.length===0)continue;const c=lk(s.content)??w4(l[0].firstLine),u=c??ak(s.title),h=l.find(g=>ik(g.lang))??l[0];let m=h.code;!c&&w4(h.firstLine)&&(m=m.replace(/^[^\n]+\n/,"")),r[u]=m.trimEnd()}return r["package.json"]||(r["package.json"]=JSON.stringify({name:n.toLowerCase().replace(/\s+/g,"-"),version:"0.0.1",private:!0,scripts:{dev:"vite",build:"tsc -b && vite build",preview:"vite preview"},dependencies:{react:"^19.0.0","react-dom":"^19.0.0","react-router-dom":"^7.5.0",zustand:"^5.0.12",axios:"^1.7.9"},devDependencies:{"@types/react":"^19.0.0","@types/react-dom":"^19.0.0","@vitejs/plugin-react":"^4.3.4",typescript:"^5.7.2",vite:"^6.0.5"}},null,2)),r["vite.config.ts"]||(r["vite.config.ts"]=`import { defineConfig } from 'vite'
|
|
152
|
+
import react from '@vitejs/plugin-react'
|
|
153
|
+
|
|
154
|
+
export default defineConfig({
|
|
155
|
+
plugins: [react()],
|
|
156
|
+
})
|
|
157
|
+
`),r["index.html"]||(r["index.html"]=`<!doctype html>
|
|
158
|
+
<html lang="en">
|
|
159
|
+
<head>
|
|
160
|
+
<meta charset="UTF-8" />
|
|
161
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
162
|
+
<title>${n}</title>
|
|
163
|
+
</head>
|
|
164
|
+
<body>
|
|
165
|
+
<div id="root"></div>
|
|
166
|
+
<script type="module" src="/src/main.tsx"><\/script>
|
|
167
|
+
</body>
|
|
168
|
+
</html>
|
|
169
|
+
`),r["src/main.tsx"]||(r["src/main.tsx"]=`import { StrictMode } from 'react'
|
|
170
|
+
import { createRoot } from 'react-dom/client'
|
|
171
|
+
import App from './App'
|
|
172
|
+
|
|
173
|
+
createRoot(document.getElementById('root')!).render(
|
|
174
|
+
<StrictMode>
|
|
175
|
+
<App />
|
|
176
|
+
</StrictMode>,
|
|
177
|
+
)
|
|
178
|
+
`),r["tsconfig.json"]||(r["tsconfig.json"]=JSON.stringify({compilerOptions:{target:"ES2020",useDefineForClassFields:!0,lib:["ES2020","DOM","DOM.Iterable"],module:"ESNext",skipLibCheck:!0,moduleResolution:"bundler",allowImportingTsExtensions:!0,isolatedModules:!0,moduleDetection:"force",noEmit:!0,jsx:"react-jsx",strict:!0},include:["src"]},null,2)),r}const ck=d.lazy(()=>Wl(()=>import("./AppPreviewPanel-Kzzw8_FK.js"),[])),uk=[];function A4(e){switch(e){case"persona":return LS;case"journey-map":return CS;case"feature-tree":return jS;case"data-model":return wS;case"brief":return TS;case"extraction-ledger":return cu;case"competitive-analysis":return bS;case"insights":return Cf;case"flow":return vS;default:return Y6}}function T4(e){switch(e){case"persona":return"Persona";case"journey-map":return"Journey Map";case"feature-tree":return"Feature Tree";case"data-model":return"Data Model";case"brief":return"Brief";case"extraction-ledger":return"KB Ledger";case"competitive-analysis":return"Competitive";case"insights":return"Insights";case"flow":return"User Flow";default:return"Document"}}function Av(e,n){const r=URL.createObjectURL(e),s=document.createElement("a");s.href=r,s.download=n,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(r)}function Ms(e){return e.replace(/\\/g,"\\\\").replace(/{/g,"\\{").replace(/}/g,"\\}")}function vf(e){return Ms(e).replace(/\*\*([^*]+)\*\*/g,"{\\b $1}").replace(/\*([^*]+)\*/g,"{\\i $1}")}function dk(e,n){const r=n.split(`
|
|
179
|
+
`);let s=`{\\pard\\sb240\\sa120\\b\\fs36 ${Ms(e)}\\b0\\par
|
|
180
|
+
\\pard\\par
|
|
181
|
+
`;for(const l of r)l.startsWith("## ")?s+=`\\pard\\sb240\\sa100\\b\\fs28 ${Ms(l.slice(3))}\\b0\\par
|
|
182
|
+
`:l.startsWith("### ")?s+=`\\pard\\sb160\\sa80\\b\\fs24 ${Ms(l.slice(4))}\\b0\\par
|
|
183
|
+
`:l.startsWith("#### ")?s+=`\\pard\\sb120\\sa60\\b\\fs22 ${Ms(l.slice(5))}\\b0\\par
|
|
184
|
+
`:l.startsWith("- ")||l.startsWith("* ")?s+=`\\pard\\li360\\fi-180\\sa60\\bullet\\tx360 ${vf(l.slice(2))}\\par
|
|
185
|
+
`:/^\d+\. /.test(l)?s+=`\\pard\\li360\\sa60 ${vf(l.replace(/^\d+\. /,""))}\\par
|
|
186
|
+
`:l.startsWith("> ")?s+=`\\pard\\li360\\sa100\\i ${Ms(l.slice(2))}\\i0\\par
|
|
187
|
+
`:l.trim()?s+=`\\pard\\sa100 ${vf(l)}\\par
|
|
188
|
+
`:s+=`\\pard\\par
|
|
189
|
+
`;return`{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\froman\\fcharset0 Times New Roman;}{\\f1\\fswiss\\fcharset0 Arial;}}\\widowctrl\\hyphauto\\f0\\fs24
|
|
190
|
+
${s}}`}function fk(e){const n=dk(e.title,e.content);Av(new Blob([n],{type:"application/rtf"}),`${e.title}.rtf`)}async function hk(e){const{Document:n,Packer:r,Paragraph:s,TextRun:l,HeadingLevel:c,AlignmentType:u,LevelFormat:h,NumberFormat:m}=await Wl(async()=>{const{Document:S,Packer:w,Paragraph:M,TextRun:A,HeadingLevel:j,AlignmentType:C,LevelFormat:H,NumberFormat:B}=await import("./index-Bym9SmTQ.js");return{Document:S,Packer:w,Paragraph:M,TextRun:A,HeadingLevel:j,AlignmentType:C,LevelFormat:H,NumberFormat:B}},[]),g=[];g.push(new s({text:e.title,heading:c.TITLE,spacing:{after:240}}));const y=e.content.split(`
|
|
191
|
+
`);for(const S of y)if(S.startsWith("## "))g.push(new s({text:S.slice(3).trim(),heading:c.HEADING_2}));else if(S.startsWith("### "))g.push(new s({text:S.slice(4).trim(),heading:c.HEADING_3}));else if(S.startsWith("#### "))g.push(new s({text:S.slice(5).trim(),heading:c.HEADING_4}));else if(S.startsWith("- ")||S.startsWith("* "))g.push(new s({text:S.slice(2).trim(),bullet:{level:0}}));else if(/^\d+\. /.test(S))g.push(new s({text:S.replace(/^\d+\. /,"").trim(),numbering:{reference:"default-numbering",level:0}}));else if(S.startsWith("> "))g.push(new s({children:[new l({text:S.slice(2).trim(),italics:!0,color:"666666"})],indent:{left:720}}));else if(S.trim()){const w=[],M=S.split(/(\*\*[^*]+\*\*)/g);for(const A of M)A.startsWith("**")&&A.endsWith("**")?w.push(new l({text:A.slice(2,-2),bold:!0})):A&&w.push(new l({text:A}));g.push(new s({children:w}))}else g.push(new s({text:""}));const b=new n({numbering:{config:[{reference:"default-numbering",levels:[{level:0,format:h.DECIMAL,text:"%1.",alignment:u.LEFT}]}]},sections:[{children:g}]}),x=await r.toBlob(b);Av(x,`${e.title}.docx`)}function mk(e){return kt.parse(e,{async:!1})}function pk(){const e=zt(fe=>fe.contextPanelOpen),n=zt(fe=>fe.contextPanelContent),r=zt(fe=>fe.closeContextPanel),s=zt(fe=>fe.selectedSlug),l=zt(fe=>fe.projects.find(Ie=>Ie.slug===s)),c=zt(fe=>fe.updateProject),u=Dn(fe=>s?fe.jobsByProject[s]??null:null),h=Sa(fe=>fe.runs),m=Sa(fe=>fe.setActiveRunId),g=Sa(fe=>fe.setModalOpen),y=Sa(fe=>fe.discardRun),b=Dn(fe=>fe.queueKbJob),x=Dn(fe=>fe.resumeProjectJob),S=Dn(fe=>fe.clearProjectJob),w=sa(fe=>!!fe.copilotToken),M=Ls(fe=>fe.byProject),A=(s?M[s]:void 0)??uk,[j,C]=d.useState("kb"),[H,B]=d.useState(null),[Z,ee]=d.useState(!1),[re,N]=d.useState(!1),[ce,le]=d.useState(new Set),[ue,X]=d.useState(new Set),[xe,me]=d.useState(!1),ve=d.useRef(new Set),V=d.useRef(null),Q=d.useMemo(()=>Array.from(h.values()).sort((fe,Ie)=>Ie.startedAt-fe.startedAt),[h]),G=s?Q.filter(fe=>fe.projectSlug===s):[],de=H?A.find(fe=>fe.id===H)??null:null;d.useEffect(()=>{n==="kb"?C("kb"):n==="artefacts"&&C("artifacts")},[n]),d.useEffect(()=>{e||B(null)},[e]),d.useEffect(()=>{var fe;e&&((fe=V.current)==null||fe.focus())},[e]),d.useEffect(()=>{s&&x(s)},[x,s]),d.useEffect(()=>{function fe(Ie){if(Ie.key==="Escape"&&e){if(H){B(null);return}r()}}return document.addEventListener("keydown",fe),()=>document.removeEventListener("keydown",fe)},[e,r,H]);async function we(fe){if(l){if(c(l.slug,{kb_files:fe}),fe.length===0){S(l.slug);return}await b(l.slug,fe,"upload",!0)}}const k=d.useCallback(async fe=>{N(!0);try{await hk(fe)}finally{N(!1)}},[]),F=!!u&&u.status!=="idle",ie=A.filter(fe=>fe.isStreaming).length,be=A.some(fe=>fe.phase===6),[ge,ke]=d.useState(!1),[K,ze]=d.useState(null);d.useEffect(()=>{const fe=new Set(A.map(qe=>qe.id)),Ie=[];for(const qe of fe)ve.current.has(qe)||Ie.push(qe);ve.current=fe,Ie.length!==0&&(X(qe=>new Set([...qe,...Ie])),Ie.forEach(qe=>{window.setTimeout(()=>{X(Tt=>{const Zt=new Set(Tt);return Zt.delete(qe),Zt})},1600)}))},[A]);function je({id:fe,label:Ie,count:qe,icon:Tt}){const Zt=j===fe&&!H;return v.jsxs("button",{type:"button",onClick:()=>{C(fe),B(null)},className:["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-card text-small font-medium transition-colors",Zt?"bg-border-secondary text-text-primary":"text-text-tertiary hover:text-text-secondary hover:bg-border-secondary/50"].join(" "),children:[v.jsx(Tt,{size:13,"aria-hidden":"true"}),Ie,qe!==void 0&&qe>0&&v.jsx("span",{className:["ml-0.5 min-w-[18px] h-[18px] rounded-full text-caption flex items-center justify-center px-1",Zt?"bg-text-primary text-white":"bg-border-secondary text-text-secondary"].join(" "),children:qe})]},fe)}function xt(){if(A.length===0&&G.length===0)return v.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center py-16",children:[v.jsx(Lg,{size:32,className:"text-text-tertiary mb-3","aria-hidden":"true"}),v.jsx("p",{className:"text-body-standard text-text-secondary",children:"No artefacts yet"}),v.jsx("p",{className:"text-caption text-text-tertiary mt-1",children:"Artefacts appear as the pipeline generates them"})]});const fe=A.reduce((qe,Tt)=>(qe.has(Tt.phase)||qe.set(Tt.phase,{name:Tt.phaseName,color:Tt.phaseColor,items:[]}),qe.get(Tt.phase).items.push(Tt),qe),new Map),Ie=Array.from(fe.entries()).sort(([qe],[Tt])=>qe-Tt);return v.jsxs("div",{className:"space-y-4 p-4",children:[ie>0&&v.jsxs("div",{className:"flex items-center gap-2 text-small text-text-tertiary",children:[v.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-lemon-500 animate-pulse flex-shrink-0"}),"Generating ",ie," artefact",ie>1?"s":"","…"]}),be&&ie===0&&v.jsxs("button",{type:"button",onClick:()=>ee(!0),className:"w-full flex items-center gap-2 px-3 py-2.5 rounded-card border border-border bg-card hover:shadow-hover-subtle transition-all group",children:[v.jsx(NS,{size:14,className:"text-text-tertiary group-hover:text-text-primary transition-colors flex-shrink-0","aria-hidden":"true"}),v.jsxs("div",{className:"flex-1 text-left min-w-0",children:[v.jsx("p",{className:"text-small font-medium text-text-primary",children:"Preview app"}),v.jsx("p",{className:"text-caption text-text-tertiary",children:"Open generated code in StackBlitz"})]})]}),be&&ie===0&&l&&v.jsxs("button",{type:"button",disabled:ge,onClick:async()=>{ke(!0),ze(null);try{const qe=A.filter(Ut=>Ut.phase===6),Tt=ok(qe),Zt=await $S(l.slug,Tt);ze({dir:Zt.exportDir})}catch{}finally{ke(!1)}},className:"w-full flex items-center gap-2 px-3 py-2.5 rounded-card border border-border bg-card hover:shadow-hover-subtle transition-all group disabled:opacity-50",children:[v.jsx(Dg,{size:14,className:"text-text-tertiary group-hover:text-text-primary transition-colors flex-shrink-0","aria-hidden":"true"}),v.jsxs("div",{className:"flex-1 text-left min-w-0",children:[v.jsx("p",{className:"text-small font-medium text-text-primary",children:ge?"Exporting…":K?"Exported":"Export to disk"}),v.jsx("p",{className:"text-caption text-text-tertiary truncate",children:K?K.dir:"Save code to ~/DesignX/projects/"})]})]}),G.length>0&&v.jsxs("div",{children:[v.jsxs("p",{className:"text-caption font-medium text-text-tertiary uppercase tracking-wider px-1 mb-2",children:["Agent Runs (",G.length,")"]}),v.jsx("ul",{role:"list",className:"space-y-1.5",children:G.map(qe=>v.jsxs("li",{className:"flex items-center gap-2.5 px-3 py-2.5 rounded-card border border-border bg-card",children:[v.jsx(Cf,{size:14,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("p",{className:"text-caption text-text-primary truncate",children:qe.agentName}),v.jsx("p",{className:"text-caption text-text-tertiary truncate",children:qe.status})]}),v.jsxs("div",{className:"flex items-center gap-1",children:[v.jsx("button",{type:"button",onClick:()=>{m(qe.runId),g(!0)},className:"rounded-card border border-border px-2 py-1 text-caption text-text-secondary hover:text-text-primary",children:"View"}),v.jsx("button",{type:"button",onClick:()=>y(qe.runId),className:"rounded-card border border-border px-2 py-1 text-caption text-text-secondary hover:text-text-primary",children:"Discard"})]})]},qe.runId))})]}),Ie.map(([qe,Tt])=>{const Zt=ce.has(qe);return v.jsxs("div",{children:[v.jsxs("button",{type:"button",onClick:()=>le(Ut=>{const en=new Set(Ut);return en.has(qe)?en.delete(qe):en.add(qe),en}),className:"w-full flex items-center gap-2 px-1 mb-2 group",children:[v.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{backgroundColor:Tt.color}}),v.jsx("p",{className:"text-caption font-medium text-text-tertiary uppercase tracking-wider flex-1 text-left",children:Tt.name}),v.jsx("span",{className:"text-caption text-text-tertiary",children:Tt.items.length}),v.jsx("span",{className:"text-caption text-text-tertiary ml-1",children:Zt?"›":"⌄"})]}),!Zt&&v.jsx("ul",{role:"list",className:"space-y-1.5",children:Tt.items.map(Ut=>{const en=A4(Ut.type),En=ue.has(Ut.id);return v.jsx("li",{children:v.jsxs("button",{type:"button",onClick:()=>B(Ut.id),style:En?{"--spotlight-color":Ut.phaseColor}:void 0,className:["w-full flex items-center gap-2.5 px-3 py-2.5 rounded-card border border-border bg-card hover:shadow-clay transition-all text-left group",En?"artifact-spotlight":"",Ut.isStreaming?"artifact-streaming":""].join(" "),children:[v.jsx(en,{size:14,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("p",{className:"text-small text-text-primary truncate leading-snug group-hover:text-text-primary",children:Ut.title}),v.jsx("p",{className:"text-caption text-text-tertiary",children:T4(Ut.type)})]})]})},Ut.id)})})]},qe)})]})}function Et(fe){const Ie=A4(fe.type);return v.jsxs("div",{className:"flex flex-col h-full",children:[v.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4 pb-3 border-b border-border flex-shrink-0",children:[v.jsx("div",{className:"w-7 h-7 rounded-card border border-border flex items-center justify-center text-text-secondary",children:v.jsx(Ie,{size:14,"aria-hidden":"true"})}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("p",{className:"text-small font-medium text-text-primary leading-tight truncate",children:fe.title}),v.jsxs("p",{className:"text-caption text-text-tertiary",children:[T4(fe.type)," · ",fe.phaseName,fe.isStreaming&&v.jsxs("span",{className:"ml-1.5 inline-flex items-center gap-1 text-lemon-500",children:[v.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-lemon-500 animate-pulse"}),"live"]})]})]})]}),v.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b border-border flex-shrink-0",children:[v.jsxs("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(fe.content).then(()=>{me(!0),window.setTimeout(()=>me(!1),2e3)})},className:"flex items-center gap-1.5 rounded-card border border-border px-2.5 py-1 text-caption text-text-secondary hover:text-text-primary hover:shadow-hover-subtle transition-all",children:[xe?v.jsx(V6,{size:12,"aria-hidden":"true"}):v.jsx(xS,{size:12,"aria-hidden":"true"}),xe?"Copied":"Copy"]}),v.jsx("span",{className:"text-border-primary","aria-hidden":"true",children:"|"}),v.jsx(Dg,{size:13,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),v.jsx("span",{className:"text-caption text-text-tertiary mr-1",children:"Export"}),v.jsx("button",{type:"button",onClick:()=>fk(fe),className:"rounded-card border border-border px-2.5 py-1 text-caption text-text-secondary hover:text-text-primary hover:shadow-hover-subtle transition-all",children:"RTF"}),v.jsx("button",{type:"button",onClick:()=>void k(fe),disabled:re,className:"rounded-card border border-border px-2.5 py-1 text-caption text-text-secondary hover:text-text-primary hover:shadow-hover-subtle transition-all disabled:opacity-40",children:re?"Exporting…":"DOCX"})]}),v.jsx("div",{className:"flex-1 overflow-y-auto px-4 py-4 prose-dx max-w-none",children:v.jsx("div",{dangerouslySetInnerHTML:{__html:mk(fe.content)}})})]})}function xn(){return v.jsx("div",{className:"space-y-4 p-4",children:v.jsxs("div",{className:"rounded-card border border-border bg-card px-4 py-4 shadow-clay",children:[v.jsxs("div",{className:"flex items-start gap-3",children:[v.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-card bg-border-secondary text-text-primary flex-shrink-0",children:v.jsx(cu,{size:18,"aria-hidden":"true"})}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("p",{className:"text-body-medium font-medium text-text-primary",children:"Project KB"}),v.jsx("p",{className:"mt-1 text-caption text-text-secondary",children:"Keep source documents attached, add or remove files, then refresh the project context when sources change."})]})]}),v.jsx("div",{className:"mt-4 rounded-card border border-border bg-canvas px-3 py-3",children:v.jsxs("div",{className:"flex items-center justify-between gap-3",children:[v.jsxs("div",{children:[v.jsxs("p",{className:"text-small font-medium text-text-primary",children:[(l==null?void 0:l.kb_files.length)??0," file",(l==null?void 0:l.kb_files.length)===1?"":"s"," attached"]}),v.jsx("p",{className:"mt-0.5 text-small text-text-tertiary",children:"Changes persist with the project and feed the next context refresh."})]}),v.jsxs("button",{type:"button",onClick:()=>l&&void b(l.slug,l.kb_files,"manual",!0),disabled:!l||l.kb_files.length===0||(u==null?void 0:u.status)==="queued"||(u==null?void 0:u.status)==="processing"||(u==null?void 0:u.status)==="refreshing-context",className:"flex items-center gap-1.5 rounded-card border border-border px-3 py-2 text-small font-medium text-text-primary transition-all duration-100 hover:-translate-y-0.5 hover:shadow-hover-subtle disabled:cursor-not-allowed disabled:opacity-40",children:[v.jsx(Cf,{size:14,"aria-hidden":"true"}),"Re-run extraction"]})]})}),F&&v.jsxs("div",{className:"mt-4 rounded-card border border-border bg-canvas px-3 py-3",children:[v.jsxs("div",{className:"flex items-center justify-between gap-3",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-small font-medium text-text-primary",children:(u==null?void 0:u.status)==="queued"?"Knowledge base queued":(u==null?void 0:u.status)==="processing"?"Preparing knowledge base":(u==null?void 0:u.status)==="ready"?"Knowledge base ready":(u==null?void 0:u.status)==="refreshing-context"?"Refreshing project context":(u==null?void 0:u.status)==="applied"?"Project context refreshed":"KB processing needs attention"}),v.jsx("p",{className:"mt-0.5 text-small text-text-tertiary",children:(u==null?void 0:u.error)??(u==null?void 0:u.stageLabel)})]}),v.jsxs("span",{className:"text-small font-medium text-text-secondary",children:[Math.max(1,Math.min(100,Math.round((u==null?void 0:u.progress)??0))),"%"]})]}),v.jsx("div",{className:"mt-3 h-2 overflow-hidden rounded-full bg-border-secondary",children:v.jsx("div",{className:["h-full rounded-full bg-text-primary transition-all duration-500",(u==null?void 0:u.status)==="queued"||(u==null?void 0:u.status)==="processing"||(u==null?void 0:u.status)==="refreshing-context"?"animate-pulse":""].join(" "),style:{width:`${Math.max(8,Math.min(100,(u==null?void 0:u.progress)??0))}%`}})})]}),v.jsx(wv,{files:(l==null?void 0:l.kb_files)??[],onChange:we,projectSlug:l==null?void 0:l.slug}),!w&&(u==null?void 0:u.status)==="ready"&&v.jsx("p",{className:"text-small text-text-tertiary mt-3",children:"Connect Copilot to apply the prepared KB package to the active project context."})]})})}return v.jsx($R,{children:e&&v.jsxs(JC.aside,{initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{x:"100%",opacity:0},transition:{type:"spring",stiffness:300,damping:30},className:"w-[380px] flex-shrink-0 flex flex-col border-l border-border bg-canvas overflow-hidden h-full",role:"complementary","aria-label":de?de.title:j==="kb"?"Knowledge Base":"Artefacts",children:[v.jsxs("div",{className:"h-12 flex items-center justify-between px-3 border-b border-border flex-shrink-0",children:[de?v.jsxs("div",{className:"flex items-center gap-1 w-full min-w-0",children:[v.jsxs("button",{type:"button",onClick:()=>B(null),className:"flex items-center gap-1 text-small text-text-tertiary hover:text-text-primary transition-colors flex-shrink-0 px-1","aria-label":"Back to artefacts list",children:[v.jsx(M6,{size:14,"aria-hidden":"true"}),"Back"]}),v.jsx("span",{className:"text-small text-text-secondary truncate flex-1 ml-1",children:de.title})]}):v.jsxs("div",{className:"flex items-center gap-1",children:[je({id:"kb",label:"Knowledge Base",icon:cu}),je({id:"artifacts",label:"Artefacts",count:A.length,icon:Lg})]}),v.jsx("button",{ref:V,onClick:r,"aria-label":"Close panel",className:"ml-2 flex-shrink-0 w-7 h-7 flex items-center justify-center rounded-card text-text-tertiary hover:text-text-primary hover:bg-border-secondary transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary",children:v.jsx(A1,{size:15,"aria-hidden":"true"})})]}),v.jsx("div",{className:"flex-1 overflow-hidden flex flex-col",children:de?Et(de):j==="kb"?v.jsx("div",{className:"flex-1 overflow-y-auto",children:xn()}):v.jsx("div",{className:"flex-1 overflow-y-auto",children:xt()})}),Z&&s&&v.jsx(d.Suspense,{fallback:null,children:v.jsx("div",{className:"absolute inset-0 z-20",children:v.jsx(ck,{artifacts:A,projectName:(l==null?void 0:l.name)??s,onClose:()=>ee(!1)})})})]})})}function gk({children:e}){return v.jsxs("div",{className:"flex h-dvh overflow-hidden bg-canvas",children:[v.jsx(c7,{}),v.jsx("main",{className:"flex-1 min-w-0 flex flex-col overflow-hidden",id:"main-content",children:e}),v.jsx(pk,{})]})}const su=[{id:"name",question:"What are we designing?",hint:"Give your project a name — a product, feature, or concept.",inputType:"text",placeholder:"e.g. Fintech onboarding flow, Patient portal redesign…"},{id:"domain",question:"Which domain does this fall under?",hint:"Shapes research patterns and design heuristics.",inputType:"select",options:[{value:"fintech",label:"Fintech"},{value:"medtech",label:"MedTech"},{value:"saas",label:"SaaS"},{value:"healthcare",label:"Healthcare"},{value:"e-commerce",label:"E-commerce"},{value:"enterprise",label:"Enterprise"},{value:"education",label:"Education"},{value:"other",label:"Other"}]},{id:"nature",question:"Are we starting fresh or building on something existing?",hint:"This determines how the pipeline handles research and architecture.",inputType:"select",options:[{value:"greenfield",label:"Greenfield",description:"Brand new product — starting from scratch"},{value:"brownfield",label:"Brownfield",description:"Existing product — evolving, redesigning, or extending it"}]},{id:"application_type",question:"What type of application is this?",hint:"Determines the design patterns and component libraries the pipeline uses.",inputType:"select",options:[{value:"responsive-website",label:"Responsive Website",description:"Multi-page site, marketing, or content-heavy product"},{value:"mobile-app",label:"Mobile App",description:"iOS, Android, or cross-platform native app"},{value:"chatbot",label:"Chatbot / Conversational",description:"Chat-first interface or assistant-driven product"},{value:"agent-platform",label:"Agent Platform",description:"Multi-agent workflow orchestration product"},{value:"dashboard",label:"Dashboard / Analytics",description:"Data-heavy interfaces, charts, operational tools"},{value:"custom",label:"Custom",description:"Doesn't fit the above — let's figure it out"}]},{id:"preset",question:"How far should the pipeline go?",hint:"Your preset determines which phases run.",inputType:"select",options:[{value:"end-to-end",label:"End-to-End",description:"Research → Ideate → Design → Plan → Build → Measure"},{value:"research-sprint",label:"Research Sprint",description:"Research → Design only, no build phase"}]},{id:"control_mode",question:"How hands-on do you want to be?",hint:"You can change this at any time during the project.",inputType:"select",options:[{value:"human-in-loop",label:"Review each gate",description:"Pause at every decision point — you approve before moving on"},{value:"autonomous",label:"Let it run",description:"Auto-advance when confident, stop only at critical decisions"}]}],M4=5,yk=su.length+1,fo="enigma_setup_drafts";function bk(e){try{const n=localStorage.getItem(fo);return n?JSON.parse(n)[e]??null:null}catch{return null}}function R4(e,n){try{const r=localStorage.getItem(fo),s=r?JSON.parse(r):{};s[e]=n,localStorage.setItem(fo,JSON.stringify(s))}catch{console.error(`Failed to save setup draft for ${e}`)}}function vk(e){try{const n=localStorage.getItem(fo);if(!n)return;const r=JSON.parse(n);delete r[e],localStorage.setItem(fo,JSON.stringify(r))}catch{console.error(`Failed to clear setup draft for ${e}`)}}function xk(e){const n=Date.now(),r=[{id:crypto.randomUUID(),type:"agent",timestamp:n,content:"Let's set up your project. I'll ask a few questions to understand what we're building and how to configure the pipeline."}];return e.forEach((s,l)=>{const c=n+(l+1)*2;r.push({id:crypto.randomUUID(),type:"agent",timestamp:c,content:s.question}),r.push({id:crypto.randomUUID(),type:"user",timestamp:c+1,content:s.displayValue})}),r.push({id:crypto.randomUUID(),type:"system",timestamp:n+(e.length+1)*2,content:"Onboarding completed. Project moved to Discover."}),r}function Ek(e,n){try{localStorage.setItem(`enigma_stream_${e}`,JSON.stringify({messages:xk(n),activeGateKey:null,inputDraft:""}))}catch{console.error(`Failed to save onboarding transcript for ${e}`)}}function Pl({children:e}){return v.jsxs("div",{className:"flex gap-3",children:[v.jsx("div",{className:`flex-shrink-0 w-7 h-7 rounded-card bg-lemon-500 flex items-center
|
|
192
|
+
justify-center text-small font-semibold text-lemon-800`,"aria-hidden":"true",children:"DX"}),v.jsx("div",{className:"flex-1 min-w-0 pt-0.5",children:e})]})}function Sk({text:e}){return v.jsx("div",{className:"flex justify-end",children:v.jsx("div",{className:"rounded-feature rounded-br-sharp bg-text-primary text-text-inverse px-4 py-2.5 text-body-standard shadow-clay max-w-[80%]",children:e})})}function Tv(){const{slug:e}=b6(),{pathname:n}=Za(),[r,s]=d.useState(0),[l,c]=d.useState([]),[u,h]=d.useState({}),[m,g]=d.useState([]),[y,b]=d.useState(""),[x,S]=d.useState(!1),[w,M]=d.useState(null),A=d.useRef(null),j=d.useRef(null),C=yo(),H=zt(K=>K.setProjects),B=zt(K=>K.projects),Z=zt(K=>K.selectProject),ee=zt(K=>K.clearProject),re=zt(K=>K.updateProject),N=zt(K=>K.openContextPanel),ce=Dn(K=>K.queueKbJob),le=Dn(K=>K.clearProjectJob),ue=Ls(K=>K.clearProjectArtifacts),X=du(K=>K.clearProjectSession),xe=e?B.find(K=>K.slug===e):null,me=!!xe&&xe.status==="onboarding";function ve(){s(0),c([]),h({}),g([]),b(""),S(!1),M(null)}const V=r===M4,Q=r>=yk,G=(()=>{if(!(V||Q))return r<M4?su[r]:su[r-1]})();d.useEffect(()=>{var K;(K=A.current)==null||K.scrollIntoView({behavior:"smooth",block:"end"})},[r,x]),d.useEffect(()=>{var K;(G==null?void 0:G.inputType)==="text"&&((K=j.current)==null||K.focus())},[r]),d.useEffect(()=>{if(!xe||xe.status!=="onboarding")return;const K=bk(xe.slug);if(K){s(K.currentStepIndex),c(K.completedSteps),h(K.answers),g(K.kbFiles),M(xe.slug),Z(xe.slug);return}const ze={name:xe.name},je=[{stepId:"name",question:su[0].question,displayValue:xe.name}];h(ze),c(je),s(1),g(xe.kb_files??[]),M(xe.slug),Z(xe.slug)},[xe,Z]),d.useEffect(()=>{if(n.startsWith("/setup")){sessionStorage.getItem("enigma_skip_restore_once")&&sessionStorage.removeItem("enigma_skip_restore_once");return}if(!sessionStorage.getItem("enigma_restoration_attempted")){sessionStorage.setItem("enigma_restoration_attempted","true");try{const ze=localStorage.getItem("enigma_selected_project");if(ze&&B.length>0&&B.some(xt=>xt.slug===ze)){const xt=setTimeout(()=>{Z(ze),C(`/project/${ze}`)},300);return()=>clearTimeout(xt)}}catch{}}},[n,B,C,e,Z]),d.useEffect(()=>{if(n.startsWith("/setup")){if(!e){ve();return}if(!xe){ve(),ee(),C("/setup",{replace:!0});return}xe.status!=="onboarding"&&C(`/project/${xe.slug}`,{replace:!0})}},[n,e,xe,ee,C]);function de(K){return K.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function we(K){const ze=K||"new-project";let je=ze,xt=2;for(;B.some(Et=>Et.slug===je);)je=`${ze}-${xt}`,xt+=1;return je}function k(K){const ze=de(K),je=we(ze);ue(je),le(je),X(je);try{localStorage.removeItem(`enigma_stream_${je}`)}catch{}const xt=new Date().toISOString(),Et={id:crypto.randomUUID(),slug:je,name:K,description:null,domain:"other",nature:"greenfield",application_type:"responsive-website",preset:"end-to-end",control_mode:"human-in-loop",current_phase:1,status:"onboarding",created_at:xt,last_active_at:xt,tech_framework:null,tech_language:null,kb_files:[]};return H([Et,...B]),Z(je),M(je),je}function F(K,ze,je){const xt={...u,[K.id]:ze},Et=[...l,{stepId:K.id,question:K.question,displayValue:je}],xn=r+1;h(xt),c(Et);let fe=w;if(K.id==="name")w?re(w,{name:ze}):fe=k(ze);else if(fe){const Ie={};K.id==="domain"&&(Ie.domain=ze),K.id==="nature"&&(Ie.nature=ze),K.id==="application_type"&&(Ie.application_type=ze),K.id==="preset"&&(Ie.preset=ze),K.id==="control_mode"&&(Ie.control_mode=ze),Object.keys(Ie).length>0&&re(fe,Ie)}fe&&R4(fe,{currentStepIndex:xn,completedSteps:Et,answers:xt,kbFiles:m}),b(""),s(xn)}function ie(){if(!G||G.inputType!=="text")return;const K=y.trim();K&&F(G,K,K)}function be(K){!G||G.inputType!=="select"||F(G,K.value,K.label)}function ge(){const K=m.length>0?`${m.length} file${m.length>1?"s":""} added`:"Skipped",ze=[...l,{stepId:"kb",question:"Do you have a knowledge base to attach?",displayValue:K}],je=r+1;c(ze),w&&(re(w,{kb_files:m}),R4(w,{currentStepIndex:je,completedSteps:ze,answers:u,kbFiles:m})),s(je)}async function ke(K){if(g(K),!!w){if(re(w,{kb_files:K}),K.length===0){le(w);return}Z(w),N("kb"),await ce(w,K,"upload",!0)}}return d.useEffect(()=>{if(!Q||x)return;S(!0);const K=w??k(u.name??"New Project"),ze=async()=>{try{const je=await fetch("/api/projects/scaffold",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectSlug:K,projectName:u.name??"New Project",domain:u.domain??"other",nature:u.nature??"greenfield",application_type:u.application_type??"responsive-website",preset:u.preset??"end-to-end",control_mode:u.control_mode??"human-in-loop"})});if(!je.ok){const xt=await je.json();console.error("Failed to scaffold project:",xt)}}catch(je){console.error("Error scaffolding project:",je)}Ek(K,l),re(K,{name:u.name??"New Project",domain:u.domain??"other",nature:u.nature??"greenfield",application_type:u.application_type??"responsive-website",preset:u.preset??"end-to-end",control_mode:u.control_mode??"human-in-loop",kb_files:m,current_phase:2,status:"active"}),vk(K),Z(K),C(`/project/${K}`)};setTimeout(()=>{ze()},900)},[Q,x,w,u,m,C,Z,re]),v.jsxs("div",{className:"flex flex-col h-full",role:"main","aria-label":"New project setup",children:[v.jsx("div",{className:"flex-1 overflow-y-auto","aria-live":"polite","aria-atomic":"false",children:v.jsxs("div",{className:"mx-auto max-w-[640px] px-6 py-10 space-y-5 pb-36",children:[v.jsx(Pl,{children:v.jsx("p",{className:"text-body text-text-primary leading-relaxed",children:me?"You are resuming a saved draft. I will continue from the last unanswered step and preserve the answers already captured.":"Let's set up your project. I'll ask a few questions to understand what we're building and how to configure the pipeline."})}),l.map(K=>v.jsxs("div",{className:"space-y-2",children:[v.jsx(Pl,{children:v.jsx("p",{className:"text-body-standard text-text-tertiary",children:K.question})}),v.jsx(Sk,{text:K.displayValue})]},K.stepId)),G&&!V&&!Q&&v.jsx("div",{className:"space-y-4",children:v.jsxs(Pl,{children:[v.jsx("p",{className:"text-body text-text-primary leading-relaxed",children:G.question}),G.hint&&v.jsx("p",{className:"mt-1 text-caption text-text-secondary",children:G.hint}),G.inputType==="select"&&G.options&&v.jsx("div",{className:"mt-4 flex flex-col gap-2",role:"group","aria-label":`Options for: ${G.question}`,children:G.options.map(K=>v.jsxs("button",{onClick:()=>be(K),className:`w-full text-left px-4 py-3 rounded-card border border-border bg-card
|
|
193
|
+
shadow-clay hover:-translate-y-0.5 hover:shadow-hover-subtle
|
|
194
|
+
transition-all duration-100
|
|
195
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary`,"aria-label":K.description?`${K.label} — ${K.description}`:K.label,children:[v.jsx("span",{className:"block text-button-small font-medium text-text-primary",children:K.label}),K.description&&v.jsx("span",{className:"block text-small text-text-secondary mt-0.5",children:K.description})]},K.value))})]})}),V&&!Q&&v.jsx("div",{className:"space-y-4",children:v.jsxs(Pl,{children:[v.jsx("p",{className:"text-body text-text-primary leading-relaxed",children:"Do you have existing documents — research notes, briefs, specs — to attach as a knowledge base?"}),v.jsx("p",{className:"mt-1 text-caption text-text-secondary",children:"Accepted: .md, .pdf, .docx, .xlsx, .csv, .txt · Optional"}),v.jsx(wv,{files:m,onChange:ke,showFileList:!1}),v.jsx("p",{className:"mt-3 text-small text-text-secondary",children:m.length>0?`${m.length} document${m.length===1?"":"s"} uploaded`:"No documents uploaded yet"}),v.jsx("div",{className:"mt-4",children:v.jsx("button",{onClick:ge,className:`px-4 py-2 rounded-card bg-text-primary text-text-inverse
|
|
196
|
+
text-button-small font-medium shadow-clay
|
|
197
|
+
hover:-translate-y-0.5 hover:shadow-hover-subtle transition-all duration-100
|
|
198
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary`,children:m.length>0?`Continue with ${m.length} file${m.length>1?"s":""}`:"Skip for now"})})]})}),x&&v.jsx(Pl,{children:v.jsxs("p",{className:"text-body text-text-primary leading-relaxed flex items-center gap-2",children:[v.jsx(Zi,{size:16,className:"text-matcha-600 flex-shrink-0",weight:"fill","aria-hidden":"true"}),"Creating your project…"]})}),v.jsx("div",{ref:A,"aria-hidden":"true"})]})}),(G==null?void 0:G.inputType)==="text"&&!Q&&v.jsx("div",{className:"sticky bottom-0 bg-canvas",children:v.jsx("div",{className:"mx-auto max-w-[640px] px-6 py-4",children:v.jsxs("div",{className:`flex items-end gap-2 rounded-feature border border-border
|
|
199
|
+
bg-card shadow-clay px-4 py-3
|
|
200
|
+
focus-within:border-text-primary transition-colors`,children:[v.jsx("input",{ref:j,value:y,onChange:K=>b(K.target.value),onKeyDown:K=>{K.key==="Enter"&&ie()},placeholder:G.placeholder,"aria-label":G.question,className:`flex-1 bg-transparent text-body-standard text-text-primary
|
|
201
|
+
placeholder:text-text-secondary font-primary outline-none
|
|
202
|
+
min-h-[24px] leading-relaxed`}),v.jsx("button",{onClick:ie,disabled:!y.trim(),"aria-label":"Submit answer","aria-disabled":!y.trim(),className:`flex-shrink-0 w-8 h-8 rounded-standard flex items-center justify-center
|
|
203
|
+
bg-text-primary text-text-inverse
|
|
204
|
+
disabled:opacity-30 disabled:cursor-not-allowed
|
|
205
|
+
enabled:hover:-rotate-6 enabled:hover:-translate-y-1
|
|
206
|
+
enabled:hover:shadow-hover-hard
|
|
207
|
+
transition-all duration-100
|
|
208
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-inverse`,children:v.jsx(N6,{size:14,weight:"bold","aria-hidden":"true"})})]})})})]})}function wk(){return v.jsx(Tv,{})}function C4(){return v.jsx(Tv,{})}const At=nr((e,n)=>({messages:[],isStreaming:!1,activeGateKey:null,inputDraft:"",onGateResolved:null,currentProjectSlug:null,setCurrentProjectSlug:r=>e({currentProjectSlug:r}),saveStreamToStorage:r=>{try{const s=n(),l={messages:s.messages,activeGateKey:s.activeGateKey,inputDraft:s.inputDraft},c=`enigma_stream_${r}`;localStorage.setItem(c,JSON.stringify(l)),US(r,l)}catch{console.error(`Failed to save stream for project ${r}`)}},loadStreamFromStorage:r=>{try{const s=`enigma_stream_${r}`,l=localStorage.getItem(s);if(l){const c=JSON.parse(l);return e({messages:c.messages||[],activeGateKey:c.activeGateKey||null,inputDraft:c.inputDraft||""}),!0}}catch{console.error(`Failed to load stream for project ${r}`)}return!1},appendMessage:r=>e(s=>({messages:[...s.messages,r],activeGateKey:r.type==="gate"&&r.gateStatus==="pending"?r.gateKey??null:s.activeGateKey})),updateLastAgent:r=>e(s=>{const l=[...s.messages];for(let c=l.length-1;c>=0;c--)if(l[c].type==="agent")return l[c]={...l[c],content:r},{messages:l};return{}}),updateArtifactProgress:(r,s,l)=>e(c=>({messages:c.messages.map(u=>u.id===r?{...u,artifactProgress:s,...l!==void 0?{agentNote:l}:{}}:u)})),resolveGate:(r,s,l)=>{var c,u;e(h=>({messages:h.messages.map(m=>m.type==="gate"&&m.gateKey===r?{...m,gateStatus:s}:m),activeGateKey:null})),(u=(c=n()).onGateResolved)==null||u.call(c,r,s,l)},setOnGateResolved:r=>e({onGateResolved:r}),setInputDraft:r=>e({inputDraft:r}),setStreaming:r=>e({isStreaming:r}),clearStream:()=>e({messages:[],isStreaming:!1,activeGateKey:null})}));function Ak({content:e}){return v.jsx("div",{className:"flex justify-end",children:v.jsx("div",{className:`max-w-[75%] rounded-feature rounded-br-sharp bg-text-primary text-text-inverse
|
|
209
|
+
px-4 py-3 text-body-standard shadow-clay whitespace-pre-wrap`,children:e})})}var xf,k4;function Tk(){if(k4)return xf;k4=1;function e(O){return O instanceof Map?O.clear=O.delete=O.set=function(){throw new Error("map is read-only")}:O instanceof Set&&(O.add=O.clear=O.delete=function(){throw new Error("set is read-only")}),Object.freeze(O),Object.getOwnPropertyNames(O).forEach(ae=>{const Se=O[ae],Ze=typeof Se;(Ze==="object"||Ze==="function")&&!Object.isFrozen(Se)&&e(Se)}),O}class n{constructor(ae){ae.data===void 0&&(ae.data={}),this.data=ae.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(O){return O.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(O,...ae){const Se=Object.create(null);for(const Ze in O)Se[Ze]=O[Ze];return ae.forEach(function(Ze){for(const ft in Ze)Se[ft]=Ze[ft]}),Se}const l="</span>",c=O=>!!O.scope,u=(O,{prefix:ae})=>{if(O.startsWith("language:"))return O.replace("language:","language-");if(O.includes(".")){const Se=O.split(".");return[`${ae}${Se.shift()}`,...Se.map((Ze,ft)=>`${Ze}${"_".repeat(ft+1)}`)].join(" ")}return`${ae}${O}`};class h{constructor(ae,Se){this.buffer="",this.classPrefix=Se.classPrefix,ae.walk(this)}addText(ae){this.buffer+=r(ae)}openNode(ae){if(!c(ae))return;const Se=u(ae.scope,{prefix:this.classPrefix});this.span(Se)}closeNode(ae){c(ae)&&(this.buffer+=l)}value(){return this.buffer}span(ae){this.buffer+=`<span class="${ae}">`}}const m=(O={})=>{const ae={children:[]};return Object.assign(ae,O),ae};class g{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ae){this.top.children.push(ae)}openNode(ae){const Se=m({scope:ae});this.add(Se),this.stack.push(Se)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ae){return this.constructor._walk(ae,this.rootNode)}static _walk(ae,Se){return typeof Se=="string"?ae.addText(Se):Se.children&&(ae.openNode(Se),Se.children.forEach(Ze=>this._walk(ae,Ze)),ae.closeNode(Se)),ae}static _collapse(ae){typeof ae!="string"&&ae.children&&(ae.children.every(Se=>typeof Se=="string")?ae.children=[ae.children.join("")]:ae.children.forEach(Se=>{g._collapse(Se)}))}}class y extends g{constructor(ae){super(),this.options=ae}addText(ae){ae!==""&&this.add(ae)}startScope(ae){this.openNode(ae)}endScope(){this.closeNode()}__addSublanguage(ae,Se){const Ze=ae.root;Se&&(Ze.scope=`language:${Se}`),this.add(Ze)}toHTML(){return new h(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function b(O){return O?typeof O=="string"?O:O.source:null}function x(O){return M("(?=",O,")")}function S(O){return M("(?:",O,")*")}function w(O){return M("(?:",O,")?")}function M(...O){return O.map(Se=>b(Se)).join("")}function A(O){const ae=O[O.length-1];return typeof ae=="object"&&ae.constructor===Object?(O.splice(O.length-1,1),ae):{}}function j(...O){return"("+(A(O).capture?"":"?:")+O.map(Ze=>b(Ze)).join("|")+")"}function C(O){return new RegExp(O.toString()+"|").exec("").length-1}function H(O,ae){const Se=O&&O.exec(ae);return Se&&Se.index===0}const B=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Z(O,{joinWith:ae}){let Se=0;return O.map(Ze=>{Se+=1;const ft=Se;let ht=b(Ze),D="";for(;ht.length>0;){const J=B.exec(ht);if(!J){D+=ht;break}D+=ht.substring(0,J.index),ht=ht.substring(J.index+J[0].length),J[0][0]==="\\"&&J[1]?D+="\\"+String(Number(J[1])+ft):(D+=J[0],J[0]==="("&&Se++)}return D}).map(Ze=>`(${Ze})`).join(ae)}const ee=/\b\B/,re="[a-zA-Z]\\w*",N="[a-zA-Z_]\\w*",ce="\\b\\d+(\\.\\d+)?",le="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ue="\\b(0b[01]+)",X="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",xe=(O={})=>{const ae=/^#![ ]*\//;return O.binary&&(O.begin=M(ae,/.*\b/,O.binary,/\b.*/)),s({scope:"meta",begin:ae,end:/$/,relevance:0,"on:begin":(Se,Ze)=>{Se.index!==0&&Ze.ignoreMatch()}},O)},me={begin:"\\\\[\\s\\S]",relevance:0},ve={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[me]},V={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[me]},Q={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/},G=function(O,ae,Se={}){const Ze=s({scope:"comment",begin:O,end:ae,contains:[]},Se);Ze.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const ft=j("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 Ze.contains.push({begin:M(/[ ]+/,"(",ft,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ze},de=G("//","$"),we=G("/\\*","\\*/"),k=G("#","$"),F={scope:"number",begin:ce,relevance:0},ie={scope:"number",begin:le,relevance:0},be={scope:"number",begin:ue,relevance:0},ge={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[me,{begin:/\[/,end:/\]/,relevance:0,contains:[me]}]},ke={scope:"title",begin:re,relevance:0},K={scope:"title",begin:N,relevance:0},ze={begin:"\\.\\s*"+N,relevance:0};var xt=Object.freeze({__proto__:null,APOS_STRING_MODE:ve,BACKSLASH_ESCAPE:me,BINARY_NUMBER_MODE:be,BINARY_NUMBER_RE:ue,COMMENT:G,C_BLOCK_COMMENT_MODE:we,C_LINE_COMMENT_MODE:de,C_NUMBER_MODE:ie,C_NUMBER_RE:le,END_SAME_AS_BEGIN:function(O){return Object.assign(O,{"on:begin":(ae,Se)=>{Se.data._beginMatch=ae[1]},"on:end":(ae,Se)=>{Se.data._beginMatch!==ae[1]&&Se.ignoreMatch()}})},HASH_COMMENT_MODE:k,IDENT_RE:re,MATCH_NOTHING_RE:ee,METHOD_GUARD:ze,NUMBER_MODE:F,NUMBER_RE:ce,PHRASAL_WORDS_MODE:Q,QUOTE_STRING_MODE:V,REGEXP_MODE:ge,RE_STARTERS_RE:X,SHEBANG:xe,TITLE_MODE:ke,UNDERSCORE_IDENT_RE:N,UNDERSCORE_TITLE_MODE:K});function Et(O,ae){O.input[O.index-1]==="."&&ae.ignoreMatch()}function xn(O,ae){O.className!==void 0&&(O.scope=O.className,delete O.className)}function fe(O,ae){ae&&O.beginKeywords&&(O.begin="\\b("+O.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",O.__beforeBegin=Et,O.keywords=O.keywords||O.beginKeywords,delete O.beginKeywords,O.relevance===void 0&&(O.relevance=0))}function Ie(O,ae){Array.isArray(O.illegal)&&(O.illegal=j(...O.illegal))}function qe(O,ae){if(O.match){if(O.begin||O.end)throw new Error("begin & end are not supported with match");O.begin=O.match,delete O.match}}function Tt(O,ae){O.relevance===void 0&&(O.relevance=1)}const Zt=(O,ae)=>{if(!O.beforeMatch)return;if(O.starts)throw new Error("beforeMatch cannot be used with starts");const Se=Object.assign({},O);Object.keys(O).forEach(Ze=>{delete O[Ze]}),O.keywords=Se.keywords,O.begin=M(Se.beforeMatch,x(Se.begin)),O.starts={relevance:0,contains:[Object.assign(Se,{endsParent:!0})]},O.relevance=0,delete Se.beforeMatch},Ut=["of","and","for","in","not","or","if","then","parent","list","value"],en="keyword";function En(O,ae,Se=en){const Ze=Object.create(null);return typeof O=="string"?ft(Se,O.split(" ")):Array.isArray(O)?ft(Se,O):Object.keys(O).forEach(function(ht){Object.assign(Ze,En(O[ht],ae,ht))}),Ze;function ft(ht,D){ae&&(D=D.map(J=>J.toLowerCase())),D.forEach(function(J){const ye=J.split("|");Ze[ye[0]]=[ht,Ca(ye[0],ye[1])]})}}function Ca(O,ae){return ae?Number(ae):Pa(O)?0:1}function Pa(O){return Ut.includes(O.toLowerCase())}const Ia={},Ot=O=>{console.error(O)},mn=(O,...ae)=>{console.log(`WARN: ${O}`,...ae)},bn=(O,ae)=>{Ia[`${O}/${ae}`]||(console.log(`Deprecated as of ${O}. ${ae}`),Ia[`${O}/${ae}`]=!0)},Xn=new Error;function On(O,ae,{key:Se}){let Ze=0;const ft=O[Se],ht={},D={};for(let J=1;J<=ae.length;J++)D[J+Ze]=ft[J],ht[J+Ze]=!0,Ze+=C(ae[J-1]);O[Se]=D,O[Se]._emit=ht,O[Se]._multi=!0}function Hn(O){if(Array.isArray(O.begin)){if(O.skip||O.excludeBegin||O.returnBegin)throw Ot("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Xn;if(typeof O.beginScope!="object"||O.beginScope===null)throw Ot("beginScope must be object"),Xn;On(O,O.begin,{key:"beginScope"}),O.begin=Z(O.begin,{joinWith:""})}}function Sn(O){if(Array.isArray(O.end)){if(O.skip||O.excludeEnd||O.returnEnd)throw Ot("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Xn;if(typeof O.endScope!="object"||O.endScope===null)throw Ot("endScope must be object"),Xn;On(O,O.end,{key:"endScope"}),O.end=Z(O.end,{joinWith:""})}}function ar(O){O.scope&&typeof O.scope=="object"&&O.scope!==null&&(O.beginScope=O.scope,delete O.scope)}function Rr(O){ar(O),typeof O.beginScope=="string"&&(O.beginScope={_wrap:O.beginScope}),typeof O.endScope=="string"&&(O.endScope={_wrap:O.endScope}),Hn(O),Sn(O)}function Vn(O){function ae(D,J){return new RegExp(b(D),"m"+(O.case_insensitive?"i":"")+(O.unicodeRegex?"u":"")+(J?"g":""))}class Se{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(J,ye){ye.position=this.position++,this.matchIndexes[this.matchAt]=ye,this.regexes.push([ye,J]),this.matchAt+=C(J)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const J=this.regexes.map(ye=>ye[1]);this.matcherRe=ae(Z(J,{joinWith:"|"}),!0),this.lastIndex=0}exec(J){this.matcherRe.lastIndex=this.lastIndex;const ye=this.matcherRe.exec(J);if(!ye)return null;const R=ye.findIndex((U,W)=>W>0&&U!==void 0),_=this.matchIndexes[R];return ye.splice(0,R),Object.assign(ye,_)}}class Ze{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(J){if(this.multiRegexes[J])return this.multiRegexes[J];const ye=new Se;return this.rules.slice(J).forEach(([R,_])=>ye.addRule(R,_)),ye.compile(),this.multiRegexes[J]=ye,ye}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(J,ye){this.rules.push([J,ye]),ye.type==="begin"&&this.count++}exec(J){const ye=this.getMatcher(this.regexIndex);ye.lastIndex=this.lastIndex;let R=ye.exec(J);if(this.resumingScanAtSamePosition()&&!(R&&R.index===this.lastIndex)){const _=this.getMatcher(0);_.lastIndex=this.lastIndex+1,R=_.exec(J)}return R&&(this.regexIndex+=R.position+1,this.regexIndex===this.count&&this.considerAll()),R}}function ft(D){const J=new Ze;return D.contains.forEach(ye=>J.addRule(ye.begin,{rule:ye,type:"begin"})),D.terminatorEnd&&J.addRule(D.terminatorEnd,{type:"end"}),D.illegal&&J.addRule(D.illegal,{type:"illegal"}),J}function ht(D,J){const ye=D;if(D.isCompiled)return ye;[xn,qe,Rr,Zt].forEach(_=>_(D,J)),O.compilerExtensions.forEach(_=>_(D,J)),D.__beforeBegin=null,[fe,Ie,Tt].forEach(_=>_(D,J)),D.isCompiled=!0;let R=null;return typeof D.keywords=="object"&&D.keywords.$pattern&&(D.keywords=Object.assign({},D.keywords),R=D.keywords.$pattern,delete D.keywords.$pattern),R=R||/\w+/,D.keywords&&(D.keywords=En(D.keywords,O.case_insensitive)),ye.keywordPatternRe=ae(R,!0),J&&(D.begin||(D.begin=/\B|\b/),ye.beginRe=ae(ye.begin),!D.end&&!D.endsWithParent&&(D.end=/\B|\b/),D.end&&(ye.endRe=ae(ye.end)),ye.terminatorEnd=b(ye.end)||"",D.endsWithParent&&J.terminatorEnd&&(ye.terminatorEnd+=(D.end?"|":"")+J.terminatorEnd)),D.illegal&&(ye.illegalRe=ae(D.illegal)),D.contains||(D.contains=[]),D.contains=[].concat(...D.contains.map(function(_){return Xt(_==="self"?D:_)})),D.contains.forEach(function(_){ht(_,ye)}),D.starts&&ht(D.starts,J),ye.matcher=ft(ye),ye}if(O.compilerExtensions||(O.compilerExtensions=[]),O.contains&&O.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return O.classNameAliases=s(O.classNameAliases||{}),ht(O)}function tn(O){return O?O.endsWithParent||tn(O.starts):!1}function Xt(O){return O.variants&&!O.cachedVariants&&(O.cachedVariants=O.variants.map(function(ae){return s(O,{variants:null},ae)})),O.cachedVariants?O.cachedVariants:tn(O)?s(O,{starts:O.starts?s(O.starts):null}):Object.isFrozen(O)?s(O):O}var sn="11.11.1";class Cr extends Error{constructor(ae,Se){super(ae),this.name="HTMLInjectionError",this.html=Se}}const oa=r,zn=s,ca=Symbol("nomatch"),ua=7,Pn=function(O){const ae=Object.create(null),Se=Object.create(null),Ze=[];let ft=!0;const ht="Could not find the language '{}', did you forget to load/include a language module?",D={disableAutodetect:!0,name:"Plain text",contains:[]};let J={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:y};function ye(te){return J.noHighlightRe.test(te)}function R(te){let Ne=te.className+" ";Ne+=te.parentNode?te.parentNode.className:"";const Pe=J.languageDetectRe.exec(Ne);if(Pe){const et=nt(Pe[1]);return et||(mn(ht.replace("{}",Pe[1])),mn("Falling back to no-highlight mode for this block.",te)),et?Pe[1]:"no-highlight"}return Ne.split(/\s+/).find(et=>ye(et)||nt(et))}function _(te,Ne,Pe){let et="",gt="";typeof Ne=="object"?(et=te,Pe=Ne.ignoreIllegals,gt=Ne.language):(bn("10.7.0","highlight(lang, code, ...args) has been deprecated."),bn("10.7.0",`Please use highlight(code, options) instead.
|
|
210
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),gt=te,et=Ne),Pe===void 0&&(Pe=!0);const Ve={code:et,language:gt};pn("before:highlight",Ve);const at=Ve.result?Ve.result:U(Ve.language,Ve.code,Pe);return at.code=Ve.code,pn("after:highlight",at),at}function U(te,Ne,Pe,et){const gt=Object.create(null);function Ve(Ae,Oe){return Ae.keywords[Oe]}function at(){if(!Ge.keywords){ln.addText(Mt);return}let Ae=0;Ge.keywordPatternRe.lastIndex=0;let Oe=Ge.keywordPatternRe.exec(Mt),Ye="";for(;Oe;){Ye+=Mt.substring(Ae,Oe.index);const ot=wn.case_insensitive?Oe[0].toLowerCase():Oe[0],Yt=Ve(Ge,ot);if(Yt){const[da,Fs]=Yt;if(ln.addText(Ye),Ye="",gt[ot]=(gt[ot]||0)+1,gt[ot]<=ua&&(kr+=Fs),da.startsWith("_"))Ye+=Oe[0];else{const Mo=wn.classNameAliases[da]||da;lt(Oe[0],Mo)}}else Ye+=Oe[0];Ae=Ge.keywordPatternRe.lastIndex,Oe=Ge.keywordPatternRe.exec(Mt)}Ye+=Mt.substring(Ae),ln.addText(Ye)}function Pt(){if(Mt==="")return;let Ae=null;if(typeof Ge.subLanguage=="string"){if(!ae[Ge.subLanguage]){ln.addText(Mt);return}Ae=U(Ge.subLanguage,Mt,!0,To[Ge.subLanguage]),To[Ge.subLanguage]=Ae._top}else Ae=he(Mt,Ge.subLanguage.length?Ge.subLanguage:null);Ge.relevance>0&&(kr+=Ae.relevance),ln.__addSublanguage(Ae._emitter,Ae.language)}function mt(){Ge.subLanguage!=null?Pt():at(),Mt=""}function lt(Ae,Oe){Ae!==""&&(ln.startScope(Oe),ln.addText(Ae),ln.endScope())}function rr(Ae,Oe){let Ye=1;const ot=Oe.length-1;for(;Ye<=ot;){if(!Ae._emit[Ye]){Ye++;continue}const Yt=wn.classNameAliases[Ae[Ye]]||Ae[Ye],da=Oe[Ye];Yt?lt(da,Yt):(Mt=da,at(),Mt=""),Ye++}}function ir(Ae,Oe){return Ae.scope&&typeof Ae.scope=="string"&&ln.openNode(wn.classNameAliases[Ae.scope]||Ae.scope),Ae.beginScope&&(Ae.beginScope._wrap?(lt(Mt,wn.classNameAliases[Ae.beginScope._wrap]||Ae.beginScope._wrap),Mt=""):Ae.beginScope._multi&&(rr(Ae.beginScope,Oe),Mt="")),Ge=Object.create(Ae,{parent:{value:Ge}}),Ge}function hi(Ae,Oe,Ye){let ot=H(Ae.endRe,Ye);if(ot){if(Ae["on:end"]){const Yt=new n(Ae);Ae["on:end"](Oe,Yt),Yt.isMatchIgnored&&(ot=!1)}if(ot){for(;Ae.endsParent&&Ae.parent;)Ae=Ae.parent;return Ae}}if(Ae.endsWithParent)return hi(Ae.parent,Oe,Ye)}function $i(Ae){return Ge.matcher.regexIndex===0?(Mt+=Ae[0],1):(Nr=!0,0)}function Vu(Ae){const Oe=Ae[0],Ye=Ae.rule,ot=new n(Ye),Yt=[Ye.__beforeBegin,Ye["on:begin"]];for(const da of Yt)if(da&&(da(Ae,ot),ot.isMatchIgnored))return $i(Oe);return Ye.skip?Mt+=Oe:(Ye.excludeBegin&&(Mt+=Oe),mt(),!Ye.returnBegin&&!Ye.excludeBegin&&(Mt=Oe)),ir(Ye,Ae),Ye.returnBegin?0:Oe.length}function In(Ae){const Oe=Ae[0],Ye=Ne.substring(Ae.index),ot=hi(Ge,Ae,Ye);if(!ot)return ca;const Yt=Ge;Ge.endScope&&Ge.endScope._wrap?(mt(),lt(Oe,Ge.endScope._wrap)):Ge.endScope&&Ge.endScope._multi?(mt(),rr(Ge.endScope,Ae)):Yt.skip?Mt+=Oe:(Yt.returnEnd||Yt.excludeEnd||(Mt+=Oe),mt(),Yt.excludeEnd&&(Mt=Oe));do Ge.scope&&ln.closeNode(),!Ge.skip&&!Ge.subLanguage&&(kr+=Ge.relevance),Ge=Ge.parent;while(Ge!==ot.parent);return ot.starts&&ir(ot.starts,Ae),Yt.returnEnd?0:Oe.length}function Is(){const Ae=[];for(let Oe=Ge;Oe!==wn;Oe=Oe.parent)Oe.scope&&Ae.unshift(Oe.scope);Ae.forEach(Oe=>ln.openNode(Oe))}let mi={};function Fi(Ae,Oe){const Ye=Oe&&Oe[0];if(Mt+=Ae,Ye==null)return mt(),0;if(mi.type==="begin"&&Oe.type==="end"&&mi.index===Oe.index&&Ye===""){if(Mt+=Ne.slice(Oe.index,Oe.index+1),!ft){const ot=new Error(`0 width match regex (${te})`);throw ot.languageName=te,ot.badRule=mi.rule,ot}return 1}if(mi=Oe,Oe.type==="begin")return Vu(Oe);if(Oe.type==="illegal"&&!Pe){const ot=new Error('Illegal lexeme "'+Ye+'" for mode "'+(Ge.scope||"<unnamed>")+'"');throw ot.mode=Ge,ot}else if(Oe.type==="end"){const ot=In(Oe);if(ot!==ca)return ot}if(Oe.type==="illegal"&&Ye==="")return Mt+=`
|
|
211
|
+
`,1;if($s>1e5&&$s>Oe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Mt+=Ye,Ye.length}const wn=nt(te);if(!wn)throw Ot(ht.replace("{}",te)),new Error('Unknown language: "'+te+'"');const Ao=Vn(wn);let Gi="",Ge=et||Ao;const To={},ln=new J.__emitter(J);Is();let Mt="",kr=0,sr=0,$s=0,Nr=!1;try{if(wn.__emitTokens)wn.__emitTokens(Ne,ln);else{for(Ge.matcher.considerAll();;){$s++,Nr?Nr=!1:Ge.matcher.considerAll(),Ge.matcher.lastIndex=sr;const Ae=Ge.matcher.exec(Ne);if(!Ae)break;const Oe=Ne.substring(sr,Ae.index),Ye=Fi(Oe,Ae);sr=Ae.index+Ye}Fi(Ne.substring(sr))}return ln.finalize(),Gi=ln.toHTML(),{language:te,value:Gi,relevance:kr,illegal:!1,_emitter:ln,_top:Ge}}catch(Ae){if(Ae.message&&Ae.message.includes("Illegal"))return{language:te,value:oa(Ne),illegal:!0,relevance:0,_illegalBy:{message:Ae.message,index:sr,context:Ne.slice(sr-100,sr+100),mode:Ae.mode,resultSoFar:Gi},_emitter:ln};if(ft)return{language:te,value:oa(Ne),illegal:!1,relevance:0,errorRaised:Ae,_emitter:ln,_top:Ge};throw Ae}}function W(te){const Ne={value:oa(te),illegal:!1,relevance:0,_top:D,_emitter:new J.__emitter(J)};return Ne._emitter.addText(te),Ne}function he(te,Ne){Ne=Ne||J.languages||Object.keys(ae);const Pe=W(te),et=Ne.filter(nt).filter(Qe).map(mt=>U(mt,te,!1));et.unshift(Pe);const gt=et.sort((mt,lt)=>{if(mt.relevance!==lt.relevance)return lt.relevance-mt.relevance;if(mt.language&<.language){if(nt(mt.language).supersetOf===lt.language)return 1;if(nt(lt.language).supersetOf===mt.language)return-1}return 0}),[Ve,at]=gt,Pt=Ve;return Pt.secondBest=at,Pt}function Ee(te,Ne,Pe){const et=Ne&&Se[Ne]||Pe;te.classList.add("hljs"),te.classList.add(`language-${et}`)}function pe(te){let Ne=null;const Pe=R(te);if(ye(Pe))return;if(pn("before:highlightElement",{el:te,language:Pe}),te.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",te);return}if(te.children.length>0&&(J.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(te)),J.throwUnescapedHTML))throw new Cr("One of your code blocks includes unescaped HTML.",te.innerHTML);Ne=te;const et=Ne.textContent,gt=Pe?_(et,{language:Pe,ignoreIllegals:!0}):he(et);te.innerHTML=gt.value,te.dataset.highlighted="yes",Ee(te,Pe,gt.language),te.result={language:gt.language,re:gt.relevance,relevance:gt.relevance},gt.secondBest&&(te.secondBest={language:gt.secondBest.language,relevance:gt.secondBest.relevance}),pn("after:highlightElement",{el:te,result:gt,text:et})}function Ce(te){J=zn(J,te)}const Me=()=>{Re(),bn("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Te(){Re(),bn("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let _e=!1;function Re(){function te(){Re()}if(document.readyState==="loading"){_e||window.addEventListener("DOMContentLoaded",te,!1),_e=!0;return}document.querySelectorAll(J.cssSelector).forEach(pe)}function Ue(te,Ne){let Pe=null;try{Pe=Ne(O)}catch(et){if(Ot("Language definition for '{}' could not be registered.".replace("{}",te)),ft)Ot(et);else throw et;Pe=D}Pe.name||(Pe.name=te),ae[te]=Pe,Pe.rawDefinition=Ne.bind(null,O),Pe.aliases&&Nt(Pe.aliases,{languageName:te})}function $e(te){delete ae[te];for(const Ne of Object.keys(Se))Se[Ne]===te&&delete Se[Ne]}function yt(){return Object.keys(ae)}function nt(te){return te=(te||"").toLowerCase(),ae[te]||ae[Se[te]]}function Nt(te,{languageName:Ne}){typeof te=="string"&&(te=[te]),te.forEach(Pe=>{Se[Pe.toLowerCase()]=Ne})}function Qe(te){const Ne=nt(te);return Ne&&!Ne.disableAutodetect}function Ht(te){te["before:highlightBlock"]&&!te["before:highlightElement"]&&(te["before:highlightElement"]=Ne=>{te["before:highlightBlock"](Object.assign({block:Ne.el},Ne))}),te["after:highlightBlock"]&&!te["after:highlightElement"]&&(te["after:highlightElement"]=Ne=>{te["after:highlightBlock"](Object.assign({block:Ne.el},Ne))})}function St(te){Ht(te),Ze.push(te)}function Qn(te){const Ne=Ze.indexOf(te);Ne!==-1&&Ze.splice(Ne,1)}function pn(te,Ne){const Pe=te;Ze.forEach(function(et){et[Pe]&&et[Pe](Ne)})}function Kt(te){return bn("10.7.0","highlightBlock will be removed entirely in v12.0"),bn("10.7.0","Please use highlightElement now."),pe(te)}Object.assign(O,{highlight:_,highlightAuto:he,highlightAll:Re,highlightElement:pe,highlightBlock:Kt,configure:Ce,initHighlighting:Me,initHighlightingOnLoad:Te,registerLanguage:Ue,unregisterLanguage:$e,listLanguages:yt,getLanguage:nt,registerAliases:Nt,autoDetection:Qe,inherit:zn,addPlugin:St,removePlugin:Qn}),O.debugMode=function(){ft=!1},O.safeMode=function(){ft=!0},O.versionString=sn,O.regex={concat:M,lookahead:x,either:j,optional:w,anyNumberOfTimes:S};for(const te in xt)typeof xt[te]=="object"&&e(xt[te]);return Object.assign(O,xt),O},nn=Pn({});return nn.newInstance=()=>Pn({}),xf=nn,nn.HighlightJS=nn,nn.default=nn,xf}var Mk=Tk();const Nn=I4(Mk),N4="[A-Za-z$_][0-9A-Za-z$_]*",Rk=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Ck=["true","false","null","undefined","NaN","Infinity"],Mv=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Rv=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Cv=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],kk=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Nk=[].concat(Cv,Mv,Rv);function fh(e){const n=e.regex,r=(G,{after:de})=>{const we="</"+G[0].slice(1);return G.input.indexOf(we,de)!==-1},s=N4,l={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,de)=>{const we=G[0].length+G.index,k=G.input[we];if(k==="<"||k===","){de.ignoreMatch();return}k===">"&&(r(G,{after:we})||de.ignoreMatch());let F;const ie=G.input.substring(we);if(F=ie.match(/^\s*=/)){de.ignoreMatch();return}if((F=ie.match(/^\s+extends\s+/))&&F.index===0){de.ignoreMatch();return}}},h={$pattern:N4,keyword:Rk,literal:Ck,built_in:Nk,"variable.language":kk},m="[0-9](_?[0-9])*",g=`\\.(${m})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${y})((${g})|\\.)?|(${g}))[eE][+-]?(${m})\\b`},{begin:`\\b(${y})\\b((${g})\\b|\\.)?|(${g})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:h,contains:[]},S={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"css"}},M={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:s+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},H=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,w,M,A,{match:/\$\d+/},b];x.contains=H.concat({begin:/\{/,end:/\}/,keywords:h,contains:["self"].concat(H)});const B=[].concat(C,x.contains),Z=B.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:["self"].concat(B)}]),ee={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:Z},re={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,n.concat(s,"(",n.concat(/\./,s),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,s],scope:{1:"keyword",3:"title.class"}}]},N={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Mv,...Rv]}},ce={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},le={variants:[{match:[/function/,/\s+/,s,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[ee],illegal:/%/},ue={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function X(G){return n.concat("(?!",G.join("|"),")")}const xe={match:n.concat(/\b/,X([...Cv,"super","import"].map(G=>`${G}\\s*\\(`)),s,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},me={begin:n.concat(/\./,n.lookahead(n.concat(s,/(?![0-9A-Za-z$_(])/))),end:s,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ve={match:[/get|set/,/\s+/,s,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},ee]},V="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,s,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(V)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[ee]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:h,exports:{PARAMS_CONTAINS:Z,CLASS_REFERENCE:N},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ce,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,w,M,A,C,{match:/\$\d+/},b,N,{scope:"attr",match:s+n.lookahead(":"),relevance:0},Q,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:V,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:Z}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:l.begin,end:l.end},{match:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},le,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[ee,e.inherit(e.TITLE_MODE,{begin:s,className:"title.function"})]},{match:/\.\.\./,relevance:0},me,{match:"\\$"+s,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[ee]},xe,ue,re,ve,{match:/\$[(.]/}]}}const Au="[A-Za-z$_][0-9A-Za-z$_]*",kv=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Nv=["true","false","null","undefined","NaN","Infinity"],_v=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],jv=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Dv=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Lv=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ov=[].concat(Dv,_v,jv);function _k(e){const n=e.regex,r=(G,{after:de})=>{const we="</"+G[0].slice(1);return G.input.indexOf(we,de)!==-1},s=Au,l={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,de)=>{const we=G[0].length+G.index,k=G.input[we];if(k==="<"||k===","){de.ignoreMatch();return}k===">"&&(r(G,{after:we})||de.ignoreMatch());let F;const ie=G.input.substring(we);if(F=ie.match(/^\s*=/)){de.ignoreMatch();return}if((F=ie.match(/^\s+extends\s+/))&&F.index===0){de.ignoreMatch();return}}},h={$pattern:Au,keyword:kv,literal:Nv,built_in:Ov,"variable.language":Lv},m="[0-9](_?[0-9])*",g=`\\.(${m})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${y})((${g})|\\.)?|(${g}))[eE][+-]?(${m})\\b`},{begin:`\\b(${y})\\b((${g})\\b|\\.)?|(${g})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:h,contains:[]},S={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"css"}},M={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,x],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,x]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:s+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},H=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,w,M,A,{match:/\$\d+/},b];x.contains=H.concat({begin:/\{/,end:/\}/,keywords:h,contains:["self"].concat(H)});const B=[].concat(C,x.contains),Z=B.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:["self"].concat(B)}]),ee={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:Z},re={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,n.concat(s,"(",n.concat(/\./,s),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,s],scope:{1:"keyword",3:"title.class"}}]},N={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[..._v,...jv]}},ce={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},le={variants:[{match:[/function/,/\s+/,s,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[ee],illegal:/%/},ue={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function X(G){return n.concat("(?!",G.join("|"),")")}const xe={match:n.concat(/\b/,X([...Dv,"super","import"].map(G=>`${G}\\s*\\(`)),s,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},me={begin:n.concat(/\./,n.lookahead(n.concat(s,/(?![0-9A-Za-z$_(])/))),end:s,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ve={match:[/get|set/,/\s+/,s,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},ee]},V="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,s,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(V)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[ee]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:h,exports:{PARAMS_CONTAINS:Z,CLASS_REFERENCE:N},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ce,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,S,w,M,A,C,{match:/\$\d+/},b,N,{scope:"attr",match:s+n.lookahead(":"),relevance:0},Q,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:V,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:Z}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:l.begin,end:l.end},{match:c},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},le,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[ee,e.inherit(e.TITLE_MODE,{begin:s,className:"title.function"})]},{match:/\.\.\./,relevance:0},me,{match:"\\$"+s,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[ee]},xe,ue,re,ve,{match:/\$[(.]/}]}}function hh(e){const n=e.regex,r=_k(e),s=Au,l=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},u={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:l},contains:[r.exports.CLASS_REFERENCE]},h={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},m=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],g={$pattern:Au,keyword:kv.concat(m),literal:Nv,built_in:Ov.concat(l),"variable.language":Lv},y={className:"meta",begin:"@"+s},b=(M,A,j)=>{const C=M.contains.findIndex(H=>H.label===A);if(C===-1)throw new Error("can not find mode to replace");M.contains.splice(C,1,j)};Object.assign(r.keywords,g),r.exports.PARAMS_CONTAINS.push(y);const x=r.contains.find(M=>M.scope==="attr"),S=Object.assign({},x,{match:n.concat(s,n.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,x,S]),r.contains=r.contains.concat([y,c,u,S]),b(r,"shebang",e.SHEBANG()),b(r,"use_strict",h);const w=r.contains.find(M=>M.label==="func.def");return w.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function Hv(e){const n=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],h={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},g={className:"subst",begin:/\{/,end:/\}/,keywords:h,illegal:/#/},y={begin:/\{\{/,relevance:0},b={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,m,y,g]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,m,y,g]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,y,g]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,y,g]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},x="[0-9](_?[0-9])*",S=`(\\b(${x}))?\\.(${x})|\\b(${x})\\.`,w=`\\b|${s.join("|")}`,M={className:"number",relevance:0,variants:[{begin:`(\\b(${x})|(${S}))[eE][+-]?(${x})[jJ]?(?=${w})`},{begin:`(${S})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${w})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${w})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${w})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${w})`},{begin:`\\b(${x})[jJ](?=${w})`}]},A={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:h,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},j={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:["self",m,M,b,e.HASH_COMMENT_MODE]}]};return g.contains=[b,M,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:h,illegal:/(<\/|\?)|=>/,contains:[m,M,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},b,A,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[j]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[M,j,b]}]}}const jk=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Dk=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Lk=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ok=[...Dk,...Lk],Hk=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Vk=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),zk=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Bk=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Vv(e){const n=e.regex,r=jk(e),s={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},l="and or not only",c=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",h=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,s,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Vk.join("|")+")"},{begin:":(:)?("+zk.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Bk.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...h,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...h,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:n.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:l,attribute:Hk.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...h,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ok.join("|")+")\\b"}]}}function mh(e){const n=e.regex,r={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const l={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),u={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},h={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,l]};l.contains.push(h);const m={match:/\\"/},g={className:"string",begin:/'/,end:/'/},y={match:/\\'/},b={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},x=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],S=e.SHEBANG({binary:`(${x.join("|")})`,relevance:10}),w={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},M=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],A=["true","false"],j={match:/(\/[a-z._-]+)+/},C=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],H=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],B=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],Z=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:M,literal:A,built_in:[...C,...H,"set","shopt",...B,...Z]},contains:[S,e.SHEBANG(),w,b,c,u,j,h,m,g,y,r]}}function Zk(e){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],l={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[n,r,e.QUOTE_STRING_MODE,l,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function zv(e){const n=e.regex,r=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,l={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=e.inherit(c,{begin:/\(/,end:/\)/}),h=e.inherit(e.APOS_STRING_MODE,{className:"string"}),m=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),g={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[l]},{begin:/'/,end:/'/,contains:[l]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,m,h,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,u,m,h]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},l,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[g],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[g],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(r,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:g}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}Nn.registerLanguage("javascript",fh);Nn.registerLanguage("js",fh);Nn.registerLanguage("jsx",fh);Nn.registerLanguage("typescript",hh);Nn.registerLanguage("ts",hh);Nn.registerLanguage("tsx",hh);Nn.registerLanguage("python",Hv);Nn.registerLanguage("py",Hv);Nn.registerLanguage("css",Vv);Nn.registerLanguage("scss",Vv);Nn.registerLanguage("bash",mh);Nn.registerLanguage("sh",mh);Nn.registerLanguage("shell",mh);Nn.registerLanguage("json",Zk);Nn.registerLanguage("xml",zv);Nn.registerLanguage("html",zv);function Uk(e){const n=[],r=/```([a-z:_-]*)\n([\s\S]*?)```/g;let s=0,l;for(;(l=r.exec(e))!==null;){const u=e.slice(s,l.index);u.trim()&&n.push({kind:"markdown",content:u});const h=l[1],m=l[2];if(h==="json:persona")try{n.push({kind:"persona",data:JSON.parse(m)})}catch{n.push({kind:"code",lang:"json",content:m})}else if(h==="json:journey-map")try{n.push({kind:"journey-map",data:JSON.parse(m)})}catch{n.push({kind:"code",lang:"json",content:m})}else if(h==="json:feature-tree")try{n.push({kind:"feature-tree",data:JSON.parse(m)})}catch{n.push({kind:"code",lang:"json",content:m})}else n.push({kind:"code",lang:h||"text",content:m});s=l.index+l[0].length}const c=e.slice(s);return c.trim()&&n.push({kind:"markdown",content:c}),n}function ji(e){return e.split(/(\*\*[^*]+\*\*|`[^`]+`|\*[^*]+\*)/g).map((r,s)=>r.startsWith("**")&&r.endsWith("**")?v.jsx("strong",{className:"font-semibold",children:r.slice(2,-2)},s):r.startsWith("`")&&r.endsWith("`")?v.jsx("code",{className:"font-mono text-[0.82em] bg-border-secondary px-1 rounded",children:r.slice(1,-1)},s):r.startsWith("*")&&r.endsWith("*")&&r.length>2?v.jsx("em",{children:r.slice(1,-1)},s):r)}function _4(e){const n=e.split(`
|
|
212
|
+
`),r=[];let s=0,l=[],c=[];function u(){l.length>0&&(r.push(v.jsx("ul",{className:"list-disc pl-5 mb-3 space-y-0.5",children:l.map((h,m)=>v.jsx("li",{className:"text-body text-text-primary",children:ji(h)},m))},`ul-${s}`)),l=[]),c.length>0&&(r.push(v.jsx("ol",{className:"list-decimal pl-5 mb-3 space-y-0.5",children:c.map((h,m)=>v.jsx("li",{className:"text-body text-text-primary",children:ji(h)},m))},`ol-${s}`)),c=[])}for(;s<n.length;){const h=n[s],m=h.trim();h.startsWith("#### ")?(u(),r.push(v.jsx("h4",{className:"text-small font-semibold mt-3 mb-1 text-text-primary",children:ji(h.slice(5))},s))):h.startsWith("### ")?(u(),r.push(v.jsx("h3",{className:"text-sub-heading font-medium mt-4 mb-1.5 text-text-primary",children:ji(h.slice(4))},s))):h.startsWith("## ")?(u(),r.push(v.jsx("h2",{className:"text-feature-title font-semibold font-features-display mt-5 mb-2 text-text-primary",children:ji(h.slice(3))},s))):h.startsWith("> ")?(u(),r.push(v.jsx("blockquote",{className:"border-l-2 border-border pl-4 text-text-secondary italic text-body my-2",children:ji(h.slice(2))},s))):h.startsWith("- ")||h.startsWith("* ")?(c.length>0&&u(),l.push(h.slice(2))):/^\d+\. /.test(h)?(l.length>0&&u(),c.push(h.replace(/^\d+\. /,""))):m==="---"||m==="***"?(u(),r.push(v.jsx("hr",{className:"my-3 border-border"},s))):m===""?u():(u(),r.push(v.jsx("p",{className:"text-body text-text-primary mb-2 leading-relaxed",children:ji(h)},s))),s++}return u(),r}const Pk={curious:"🤔",positive:"😊",happy:"😊",excited:"🤩",neutral:"😐",negative:"😞",frustrated:"😤",confused:"😕",anxious:"😰"};function Ik(e){return Pk[e.toLowerCase()]??"😐"}function $k({data:e}){const n=e.name.split(" ").map(r=>r[0]).join("").slice(0,2).toUpperCase();return v.jsxs("div",{className:"rounded-feature border border-border bg-card shadow-clay overflow-hidden my-3 w-full",children:[v.jsxs("div",{className:"px-4 py-3 border-b border-border bg-canvas flex items-center gap-3",children:[v.jsx("div",{className:"w-10 h-10 rounded-full bg-lemon-500 flex items-center justify-center text-sm font-bold text-lemon-800 flex-shrink-0",children:n}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsxs("p",{className:"font-semibold text-text-primary text-body leading-tight",children:[e.name,e.age?`, ${e.age}`:""]}),v.jsx("p",{className:"text-small text-text-secondary truncate",children:e.role})]}),e.sourced&&v.jsx("span",{className:"flex-shrink-0 text-caption px-2 py-0.5 rounded-full border border-border text-text-tertiary",children:"SOURCED"})]}),v.jsxs("div",{className:"grid grid-cols-2 divide-x divide-border border-b border-border",children:[v.jsxs("div",{className:"p-3",children:[v.jsx("p",{className:"text-caption font-medium text-text-tertiary uppercase tracking-wider mb-2",children:"Goals"}),v.jsx("ul",{className:"space-y-1.5",children:(e.goals??[]).map((r,s)=>v.jsxs("li",{className:"flex gap-1.5 text-small text-text-primary",children:[v.jsx("span",{className:"text-green-500 flex-shrink-0 mt-0.5",children:"✓"}),v.jsx("span",{children:r})]},s))})]}),v.jsxs("div",{className:"p-3",children:[v.jsx("p",{className:"text-caption font-medium text-text-tertiary uppercase tracking-wider mb-2",children:"Pain Points"}),v.jsx("ul",{className:"space-y-1.5",children:(e.pains??[]).map((r,s)=>v.jsxs("li",{className:"flex gap-1.5 text-small text-text-primary",children:[v.jsx("span",{className:"text-pomegranate-400 flex-shrink-0 mt-0.5",children:"✗"}),v.jsx("span",{children:r})]},s))})]})]}),e.behaviors&&e.behaviors.length>0&&v.jsxs("div",{className:"px-4 py-3 border-b border-border",children:[v.jsx("p",{className:"text-caption font-medium text-text-tertiary uppercase tracking-wider mb-2",children:"Behaviours"}),v.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.behaviors.map((r,s)=>v.jsx("span",{className:"px-2 py-0.5 rounded-full bg-border-secondary text-small text-text-secondary",children:r},s))})]}),e.quote&&v.jsx("div",{className:"px-4 py-3",children:v.jsxs("p",{className:"text-body italic text-text-secondary leading-relaxed",children:["“",e.quote,"”"]})})]})}function Fk({data:e}){return v.jsxs("div",{className:"rounded-feature border border-border bg-card shadow-clay overflow-hidden my-3 w-full",children:[v.jsx("div",{className:"px-4 py-2.5 border-b border-border bg-canvas",children:v.jsxs("p",{className:"text-small font-medium text-text-primary",children:["Journey Map — ",v.jsx("span",{className:"text-text-secondary",children:e.persona})]})}),v.jsx("div",{className:"overflow-x-auto",children:v.jsx("div",{className:"inline-flex min-w-full",children:(e.stages??[]).map((n,r)=>v.jsxs("div",{className:"min-w-[140px] flex-1 border-r border-border last:border-r-0 flex flex-col",children:[v.jsx("div",{className:"px-3 py-2 border-b border-border bg-border-secondary",children:v.jsx("p",{className:"text-caption font-medium text-text-primary text-center leading-tight",children:n.name})}),v.jsx("div",{className:"px-3 py-2 text-center text-base border-b border-border",children:Ik(n.emotion)}),v.jsxs("div",{className:"px-3 py-2 border-b border-border flex-1",children:[v.jsx("p",{className:"text-caption text-text-tertiary mb-1 font-medium",children:"Touchpoints"}),(n.touchpoints??[]).map((s,l)=>v.jsxs("p",{className:"text-caption text-text-primary leading-snug",children:["· ",s]},l))]}),n.pains&&n.pains.length>0&&v.jsxs("div",{className:"px-3 py-2",children:[v.jsx("p",{className:"text-caption text-text-tertiary mb-1 font-medium",children:"Pains"}),n.pains.map((s,l)=>v.jsxs("p",{className:"text-caption text-pomegranate-400 leading-snug",children:["· ",s]},l))]})]},r))})})]})}function Gk({data:e}){const n=[{label:"MVP",items:e.mvp??[],color:"text-green-600"},{label:"Phase 2",items:e.phase2??[],color:"text-blue-500"},{label:"Backlog",items:e.backlog??[],color:"text-text-tertiary"}];return v.jsxs("div",{className:"rounded-feature border border-border bg-card shadow-clay overflow-hidden my-3 w-full",children:[v.jsx("div",{className:"px-4 py-2.5 border-b border-border bg-canvas",children:v.jsx("p",{className:"text-small font-medium text-text-primary",children:"Feature Tree"})}),v.jsx("div",{className:"grid grid-cols-3 divide-x divide-border",children:n.map(({label:r,items:s,color:l})=>v.jsxs("div",{className:"p-3",children:[v.jsx("p",{className:`text-caption font-medium uppercase tracking-wider mb-2 ${l}`,children:r}),v.jsxs("ul",{className:"space-y-1.5",children:[s.map((c,u)=>v.jsx("li",{className:"text-caption text-text-primary leading-snug",children:c},u)),s.length===0&&v.jsx("li",{className:"text-caption text-text-tertiary italic",children:"None yet"})]})]},r))})]})}function qk({lang:e,content:n}){const[r,s]=d.useState(!1),l=d.useMemo(()=>{if(!e||e==="text")return null;try{return Nn.highlight(n,{language:e,ignoreIllegals:!0}).value}catch{return null}},[e,n]);function c(){navigator.clipboard.writeText(n).then(()=>{s(!0),window.setTimeout(()=>s(!1),1500)})}const u=e&&e!=="text";return v.jsxs("div",{className:"my-3 relative",children:[u&&v.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 border border-b-0 border-border rounded-t-card bg-border-secondary",children:[v.jsx("span",{className:"text-caption text-text-tertiary font-mono",children:e}),v.jsx("button",{type:"button",onClick:c,className:"text-caption text-text-tertiary hover:text-text-primary transition-colors",children:r?"Copied!":"Copy"})]}),v.jsx("pre",{className:["overflow-auto border border-border bg-canvas p-3 text-small font-mono text-text-primary",u?"rounded-b-card rounded-tr-card":"rounded-card"].join(" "),children:l?v.jsx("code",{className:"hljs",dangerouslySetInnerHTML:{__html:l}}):v.jsx("code",{children:n})})]})}function Kk({content:e,agentName:n,isStreaming:r}){const s=d.useMemo(()=>r?null:Uk(e),[e,r]),l=d.useMemo(()=>_4(e),[e]);return v.jsxs("article",{className:"flex gap-3",children:[v.jsx("div",{className:"flex-shrink-0 w-7 h-7 rounded-card bg-lemon-500 flex items-center justify-center text-small font-semibold text-lemon-800",children:"DX"}),v.jsxs("div",{className:"flex-1 min-w-0",children:[n&&v.jsx("p",{className:"text-uppercase-label text-text-tertiary mb-2",children:n}),v.jsx("div",{className:"text-body text-text-primary leading-relaxed",children:r||!s?l:s.map((c,u)=>c.kind==="markdown"?v.jsx(Rs.Fragment,{children:_4(c.content)},u):c.kind==="persona"?v.jsx($k,{data:c.data},u):c.kind==="journey-map"?v.jsx(Fk,{data:c.data},u):c.kind==="feature-tree"?v.jsx(Gk,{data:c.data},u):c.kind==="code"?v.jsx(qk,{lang:c.lang,content:c.content},u):null)}),r&&v.jsx("span",{className:"inline-block w-1.5 h-4 bg-text-primary animate-pulse ml-1 align-middle"})]})]})}function Yk({phaseName:e,phaseColor:n,items:r,agentNote:s,isStreaming:l}){const[c,u]=d.useState(!1),h=r.filter(b=>b.status==="done").length,m=r.length,g=l&&m===0?"Working…":l?`Generating ${m} artifact${m!==1?"s":""}…`:`Generated ${m} artifact${m!==1?"s":""}`,y=n??"#3bd3fd";return v.jsxs("article",{className:"flex gap-3",children:[v.jsx("div",{className:"flex-shrink-0 w-7 h-7 rounded-card bg-lemon-500 flex items-center justify-center text-small font-semibold text-lemon-800",children:"DX"}),v.jsxs("div",{className:"flex-1 min-w-0",children:[e&&v.jsx("p",{className:"text-uppercase-label text-text-tertiary mb-2",children:e}),v.jsxs("div",{className:"rounded-feature border border-border bg-card overflow-hidden shadow-clay",children:[v.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border",children:[v.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{backgroundColor:y}}),v.jsx("p",{className:"text-small font-medium text-text-primary flex-1 leading-snug",children:g}),l&&h<m&&v.jsx(Os,{size:14,className:"text-text-tertiary animate-spin flex-shrink-0","aria-label":"Generating"}),!l&&m>0&&v.jsx(Zi,{size:14,weight:"fill",className:"text-status-success flex-shrink-0","aria-label":"Complete"})]}),m>0&&v.jsx("div",{className:"divide-y divide-border max-h-[256px] overflow-y-auto",children:r.map(b=>v.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-2.5",children:[b.status==="done"?v.jsx(Zi,{size:13,weight:"fill",className:"text-status-success flex-shrink-0"}):v.jsx(Os,{size:13,className:"text-text-tertiary animate-spin flex-shrink-0"}),v.jsx("p",{className:"text-small text-text-primary truncate",children:b.title})]},b.id))}),s&&s.length>0&&v.jsxs("div",{className:"border-t border-border",children:[v.jsxs("button",{type:"button",onClick:()=>u(b=>!b),className:"w-full flex items-center gap-2 px-4 py-2.5 text-left hover:bg-border-secondary/30 transition-colors",children:[c?v.jsx(yS,{size:11,className:"text-text-tertiary flex-shrink-0"}):v.jsx(D6,{size:11,className:"text-text-tertiary flex-shrink-0"}),v.jsx("span",{className:"text-caption text-text-tertiary",children:"Agent note"})]}),c&&v.jsx("div",{className:"px-4 pb-3 text-caption text-text-secondary leading-relaxed whitespace-pre-wrap",children:s})]})]})]})]})}const Xk={1:{bg:"#fef3c7",text:"#92400e"},2:{bg:"#e0f8ff",text:"#0c6a82"},3:{bg:"#ede9ff",text:"#43089f"},4:{bg:"#dcfce7",text:"#02492a"},5:{bg:"#dbeafe",text:"#01418d"},6:{bg:"#ffe4e6",text:"#be123c"},7:{bg:"#ede9ff",text:"#32037d"}};function Qk({phaseNumber:e,phaseName:n,size:r="sm"}){const s=Xk[e]??{bg:"#f4f4f5",text:"#71717a"};return v.jsxs("span",{className:`inline-flex items-center gap-1.5 rounded-pill font-medium ${r==="sm"?"text-small px-2 py-0.5":"text-caption px-2.5 py-1"}`,style:{backgroundColor:s.bg,color:s.text},children:[v.jsx("span",{className:"font-semibold",children:e}),n]})}function Jk({phaseNumber:e,phaseName:n,direction:r}){return v.jsxs("div",{className:"flex items-center gap-3 py-2",children:[v.jsx("div",{className:"flex-1 h-px bg-border"}),v.jsx(Qk,{phaseNumber:e,phaseName:n}),v.jsx("span",{className:"text-caption text-text-tertiary",children:r==="entering"?"started":"complete"}),v.jsx("div",{className:"flex-1 h-px bg-border"})]})}const Wk={primary:"bg-text-primary text-white shadow-clay hover:enabled:-rotate-6 hover:enabled:-translate-y-1 hover:enabled:shadow-hover-lemon",secondary:"bg-card text-text-primary border border-border shadow-clay hover:enabled:-rotate-6 hover:enabled:-translate-y-1 hover:enabled:shadow-hover-hard",ghost:"bg-transparent text-text-secondary border border-transparent hover:border-border hover:text-text-primary transition-colors"},eN={sm:"text-button-small px-3 py-1.5 rounded-card",md:"text-button px-5 py-2.5 rounded-card",lg:"text-button-large px-6 py-3 rounded-feature"};function Tr({variant:e="primary",size:n="md",className:r,children:s,disabled:l,...c}){return v.jsx("button",{disabled:l,"aria-disabled":l,className:Ha("inline-flex items-center gap-2 font-medium cursor-pointer","transition-all duration-100","disabled:opacity-30 disabled:cursor-not-allowed","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary",Wk[e],eN[n],r),...c,children:s})}function tN({gateKey:e,phaseName:n,phaseNumber:r,gateSummary:s,gateStatus:l,summaryArtefacts:c=[],gateVariant:u="standard",gateNextStep:h}){const m=At(w=>w.resolveGate),[g,y]=d.useState(!1),[b,x]=d.useState("");if(l==="approved"){const w=u==="type-selection"?`${n} — path chosen`:`${n} — approved`;return v.jsxs("div",{role:"status","aria-label":`Gate ${e} approved`,className:`rounded-feature border border-matcha-300 bg-card shadow-clay px-5 py-3
|
|
213
|
+
flex items-center gap-3 opacity-80`,children:[v.jsx(Zi,{size:16,className:"text-matcha-600 flex-shrink-0",weight:"fill","aria-hidden":"true"}),v.jsx("span",{className:"text-body-standard text-matcha-600 font-medium",children:w}),v.jsxs("span",{className:"text-caption text-text-tertiary ml-auto",children:["Gate ",e]})]})}if(l==="rejected")return v.jsxs("div",{role:"status","aria-label":`Gate ${e} — revisions requested`,className:`rounded-feature border border-border-secondary bg-canvas shadow-clay px-5 py-3
|
|
214
|
+
flex items-center gap-3 opacity-70`,children:[v.jsx(Qc,{size:16,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),v.jsxs("span",{className:"text-body-standard text-text-secondary font-medium",children:[n," — revisions requested"]}),v.jsxs("span",{className:"text-caption text-text-tertiary ml-auto",children:["Gate ",e]})]});if(u==="type-selection")return v.jsxs("section",{"aria-label":"Choose your ideation path",className:"rounded-feature border-2 border-ube-300 bg-card shadow-clay overflow-hidden",children:[v.jsxs("div",{className:"bg-ube-300 px-5 py-3 flex items-center gap-3",children:[v.jsx(Qc,{size:18,className:"text-text-primary flex-shrink-0",weight:"duotone","aria-hidden":"true"}),v.jsxs("div",{children:[v.jsx("p",{className:"text-body-medium text-text-primary font-semibold",children:"Choose Your Path"}),v.jsxs("p",{className:"text-caption text-text-primary opacity-60",children:["Gate ",e," · ",n]})]})]}),v.jsxs("div",{className:"px-5 py-5 space-y-3",children:[s&&v.jsx("p",{className:"text-body text-text-primary",children:s}),v.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[v.jsxs("button",{onClick:()=>m(e,"approved","fast-track"),className:`text-left px-4 py-4 rounded-card border-2 border-lemon-500 bg-card
|
|
215
|
+
shadow-clay hover:-translate-y-0.5 hover:shadow-hover-subtle
|
|
216
|
+
transition-all duration-100
|
|
217
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-lemon-500`,"aria-label":"Choose Fast Track — 2–3 focused concepts, 3–4 week sprint",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[v.jsx(RS,{size:16,className:"text-lemon-700",weight:"fill","aria-hidden":"true"}),v.jsx("span",{className:"text-button-small font-semibold text-text-primary",children:"Fast Track"}),v.jsx("span",{className:"text-caption text-text-tertiary ml-auto",children:"Type 1"})]}),v.jsx("p",{className:"text-small text-text-secondary",children:"2–3 focused concepts → north star convergence. Best for tight timelines."})]}),v.jsxs("button",{onClick:()=>m(e,"approved","experimental"),className:`text-left px-4 py-4 rounded-card border-2 border-ube-300 bg-card
|
|
218
|
+
shadow-clay hover:-translate-y-0.5 hover:shadow-hover-subtle
|
|
219
|
+
transition-all duration-100
|
|
220
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ube-300`,"aria-label":"Choose Experimental — 4–5 divergent concepts, 6–8 week sprint",children:[v.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[v.jsx(gS,{size:16,className:"text-ube-800",weight:"fill","aria-hidden":"true"}),v.jsx("span",{className:"text-button-small font-semibold text-text-primary",children:"Experimental"}),v.jsx("span",{className:"text-caption text-text-tertiary ml-auto",children:"Type 2"})]}),v.jsx("p",{className:"text-small text-text-secondary",children:"4–5 divergent concepts → feedback loop → convergence. Best for innovation-heavy work."})]})]})]})]});const S=u==="review"?`${n} — ready for sign-off`:`${n} — ready for review`;return v.jsxs("section",{"aria-label":`Gate ${e}: ${n} ready for review`,className:"rounded-feature border-2 border-lemon-500 bg-card shadow-clay overflow-hidden",children:[v.jsxs("div",{className:"bg-lemon-500 px-5 py-3 flex items-center gap-3",children:[v.jsx(Qc,{size:18,className:"text-text-primary flex-shrink-0",weight:"duotone","aria-hidden":"true"}),v.jsxs("div",{children:[v.jsx("p",{className:"text-body-medium text-text-primary font-semibold",children:S}),v.jsxs("p",{className:"text-caption text-text-primary opacity-60",children:["Gate ",e]})]})]}),v.jsxs("div",{className:"px-5 py-4 space-y-4",children:[s&&v.jsx("p",{className:"text-body text-text-primary",children:s}),c.length>0&&v.jsx("ul",{role:"list","aria-label":"Produced artefacts",className:"space-y-1.5",children:c.map(w=>v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx(Y6,{size:13,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),v.jsx("span",{className:"text-caption text-text-secondary font-mono truncate",children:w})]},w))}),h&&!g&&v.jsxs("div",{className:"flex items-start gap-2 pt-1 border-t border-border-secondary",children:[v.jsx(mS,{size:13,className:"text-text-tertiary flex-shrink-0 mt-0.5","aria-hidden":"true"}),v.jsxs("p",{className:"text-caption text-text-tertiary",children:[v.jsx("span",{className:"font-medium text-text-secondary",children:"Next:"})," ",h]})]}),g?v.jsxs("div",{className:"space-y-2",role:"form","aria-label":"Submit revisions",children:[v.jsx("label",{htmlFor:`feedback-${e}`,className:"sr-only",children:"Describe the revisions you need"}),v.jsx("textarea",{id:`feedback-${e}`,value:b,onChange:w=>x(w.target.value),rows:3,placeholder:"What would you like changed or improved?","aria-required":"true",className:`w-full rounded-card border border-border bg-canvas px-4 py-3
|
|
221
|
+
text-body-standard text-text-primary resize-none
|
|
222
|
+
focus:outline-none focus:border-text-primary transition-colors
|
|
223
|
+
placeholder:text-text-secondary`}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx(Tr,{variant:"primary",size:"sm",onClick:()=>{b.trim()&&(m(e,"rejected"),y(!1),x(""))},children:"Send revisions"}),v.jsx(Tr,{variant:"ghost",size:"sm",onClick:()=>y(!1),children:"Cancel"})]})]}):v.jsxs("div",{className:"flex items-center gap-3 flex-wrap pt-1",children:[v.jsxs(Tr,{variant:"primary",size:"md",onClick:()=>m(e,"approved"),children:[v.jsx(Zi,{size:15,weight:"bold","aria-hidden":"true"}),"Approve & Continue"]}),v.jsx(Tr,{variant:"ghost",size:"md",onClick:()=>y(!0),children:"Request Revisions"})]})]})]})}function nN({phaseNumber:e,phaseName:n,phaseColor:r="#dad4c8",summaryArtefacts:s=[]}){const l=zt(c=>c.openContextPanel);return v.jsxs("div",{className:"rounded-feature border border-border bg-card shadow-clay overflow-hidden",children:[v.jsx("div",{className:"h-1.5",style:{backgroundColor:r}}),v.jsxs("div",{className:"px-5 py-4",children:[v.jsxs("p",{className:"text-feature-title font-features-display text-text-primary font-semibold",children:[n," complete"]}),v.jsxs("p",{className:"text-caption text-text-secondary mt-1",children:["Phase ",e," · ",s.length," artefact",s.length!==1?"s":""," produced"]}),s.length>0&&v.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:s.map(c=>v.jsx("span",{className:"text-small rounded-pill border border-border px-2.5 py-1 text-text-secondary font-mono",children:c.split("/").pop()},c))}),v.jsx("button",{className:`mt-3 text-caption text-text-tertiary hover:text-text-primary
|
|
224
|
+
flex items-center gap-1 transition-colors`,onClick:()=>l("artefacts"),children:"View all artefacts →"})]})]})}function aN({thinkingText:e,thinkingProgress:n=0}){return v.jsxs("div",{className:"flex items-start gap-3",children:[v.jsx("div",{className:`flex-shrink-0 w-7 h-7 rounded-card bg-lemon-500 flex items-center
|
|
225
|
+
justify-center text-small font-semibold text-lemon-800`,children:"DX"}),v.jsxs("div",{className:"flex-1 space-y-2 pt-1",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Os,{size:14,className:"text-text-secondary animate-spin"}),v.jsx("span",{className:"text-caption text-text-secondary",children:e??"Working…"})]}),n>0&&v.jsx("div",{className:"h-0.5 rounded-pill bg-border overflow-hidden w-48",children:v.jsx("div",{className:"h-full bg-text-primary rounded-pill transition-all duration-300",style:{width:`${n}%`}})})]})]})}function Bv({message:e,isCurrentlyStreaming:n}){switch(e.type){case"user":return v.jsx(Ak,{content:e.content??""});case"agent":return v.jsx(Kk,{content:e.content??"",agentName:e.agentName,isStreaming:n??!1});case"artifact-progress":return v.jsx(Yk,{phaseName:e.phaseName,phaseColor:e.phaseColor,items:e.artifactProgress??[],agentNote:e.agentNote,isStreaming:n??!1});case"phase-transition":return v.jsx(Jk,{phaseNumber:e.phaseNumber??1,phaseName:e.phaseName??"",direction:e.direction??"entering"});case"gate":return v.jsx(tN,{gateKey:e.gateKey??"",phaseName:e.phaseName??"",phaseNumber:e.phaseNumber??1,gateSummary:e.gateSummary,gateStatus:e.gateStatus??"pending",summaryArtefacts:e.summaryArtefacts,gateVariant:e.gateVariant,gateNextStep:e.gateNextStep});case"phase-summary":return v.jsx(nN,{phaseNumber:e.phaseNumber??1,phaseName:e.phaseName??"",phaseColor:e.phaseColor,summaryArtefacts:e.summaryArtefacts});case"thinking":return v.jsx(aN,{thinkingText:e.thinkingText,thinkingProgress:e.thinkingProgress});case"system":return v.jsx("div",{className:"text-center",children:v.jsx("span",{className:"text-caption text-text-tertiary",children:e.content})});default:return null}}function rN({messages:e}){const n=d.useRef(null),s=At(l=>l.isStreaming)?e.reduceRight((l,c)=>l??(c.type==="agent"||c.type==="artifact-progress"?c.id:null),null):null;return d.useEffect(()=>{var l;(l=n.current)==null||l.scrollIntoView({behavior:"smooth"})},[e.length]),v.jsx("div",{className:"flex-1 overflow-y-auto",role:"log","aria-label":"Project stream","aria-live":"polite","aria-atomic":"false",children:v.jsxs("div",{className:"mx-auto max-w-[720px] px-4 py-6 space-y-4 pb-32",children:[e.length===0&&v.jsx("p",{className:"text-body-standard text-text-tertiary text-center py-12",role:"status",children:"No messages yet."}),e.map(l=>v.jsx(Bv,{message:l,isCurrentlyStreaming:(l.type==="agent"||l.type==="artifact-progress")&&l.id===s},l.id)),v.jsx("div",{ref:n,"aria-hidden":"true"})]})})}function iN({onSubmit:e,disabled:n=!1,placeholder:r="Type a command or ask anything…",label:s="Send a message",adornmentLeft:l}){const[c,u]=d.useState(""),h=d.useRef(null);function m(b){u(b.target.value);const x=b.target;x.style.height="auto",x.style.height=Math.min(x.scrollHeight,160)+"px"}function g(b){b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),y())}function y(){const b=c.trim();!b||n||(e(b),u(""),h.current&&(h.current.style.height="auto"))}return v.jsx("div",{className:"sticky bottom-0 bg-canvas",role:"form","aria-label":s,children:v.jsxs("div",{className:"mx-auto max-w-[720px] px-4 py-3",children:[l&&v.jsx("div",{className:"mb-1.5 px-1",children:l}),v.jsxs("div",{className:`flex items-end gap-2 rounded-feature border border-border
|
|
226
|
+
bg-card shadow-clay px-4 py-3
|
|
227
|
+
focus-within:border-text-primary transition-colors`,children:[v.jsx("textarea",{ref:h,value:c,onChange:m,onKeyDown:g,disabled:n,placeholder:r,"aria-label":r,rows:1,className:`flex-1 resize-none bg-transparent text-body-standard text-text-primary
|
|
228
|
+
placeholder:text-text-secondary font-primary outline-none leading-relaxed
|
|
229
|
+
min-h-[24px] max-h-[160px] disabled:opacity-40`}),v.jsx("button",{onClick:y,disabled:!c.trim()||n,"aria-label":"Send message","aria-disabled":!c.trim()||n,className:`flex-shrink-0 w-8 h-8 rounded-standard flex items-center justify-center
|
|
230
|
+
bg-text-primary text-text-inverse
|
|
231
|
+
disabled:opacity-30 disabled:cursor-not-allowed
|
|
232
|
+
enabled:hover:-rotate-6 enabled:hover:-translate-y-1
|
|
233
|
+
enabled:hover:shadow-hover-hard
|
|
234
|
+
transition-all duration-100
|
|
235
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-inverse`,children:v.jsx(N6,{size:14,weight:"bold","aria-hidden":"true"})})]}),v.jsx("p",{className:"sr-only",children:"Press Enter to send. Shift+Enter for a new line."})]})})}const sN="01ab8ac9400c4e429b23",j4="01ab8ac9400c4e429b23".trim()||sN;function lN(){const e=sa(B=>B.setAuth),[n,r]=d.useState("idle"),[s,l]=d.useState(""),[c,u]=d.useState("https://github.com/login/device"),[h,m]=d.useState(0),[g,y]=d.useState(""),[b,x]=d.useState(!1),S=d.useRef(!1);d.useEffect(()=>{if(n!=="awaiting"||h<=0)return;const B=setInterval(()=>m(Z=>Z-1),1e3);return()=>clearInterval(B)},[n,h]);async function w(){r("awaiting"),y(""),S.current=!1;try{const B=await hw(j4);l(B.user_code),u(B.verification_uri),m(B.expires_in);const Z=await mw(j4,B.device_code,B.interval);if(S.current)return;r("connecting");const ee=await pw(Z),re=await gy(Z),N=re.token,ce=new Date(re.expires_at).getTime();e(Z,N,ce,ee)}catch(B){if(S.current)return;const Z=B instanceof Error?B.message:String(B);y(Z==="expired_token"?"Code expired. Try again.":Z==="access_denied"?"Access denied on GitHub.":Z),r("error")}}function M(){S.current=!0,r("idle"),l(""),y("")}async function A(){await navigator.clipboard.writeText(s),x(!0),setTimeout(()=>x(!1),2e3)}const j=Math.floor(h/60),C=h%60,H=`${j}:${C.toString().padStart(2,"0")}`;return n==="connecting"?v.jsx("div",{className:"sticky bottom-0 bg-canvas border-t border-border","aria-live":"polite","aria-label":"Authorising with GitHub",children:v.jsxs("div",{className:"mx-auto max-w-[640px] px-6 py-4 flex items-center gap-3",children:[v.jsx(Os,{size:18,className:"text-text-tertiary animate-spin flex-shrink-0","aria-hidden":"true"}),v.jsx("p",{className:"text-body-standard text-text-secondary",children:"Authorising with GitHub…"})]})}):n==="awaiting"?v.jsx("div",{className:"sticky bottom-0 bg-canvas border-t border-border",role:"region","aria-label":"GitHub device authorisation","aria-live":"polite",children:v.jsxs("div",{className:"mx-auto max-w-[640px] px-6 py-4 space-y-3",children:[v.jsxs("div",{className:"rounded-card bg-lemon-500 px-4 py-3 flex items-center gap-4",children:[v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsxs("p",{className:"text-caption text-text-primary opacity-70 mb-1",children:["Enter this code at"," ",v.jsxs("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"underline hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary rounded-sharp",children:["github.com/login/device",v.jsx(pS,{size:11,className:"inline ml-0.5 -mt-0.5","aria-hidden":"true"})]})]}),v.jsx("p",{className:"font-mono text-section-heading font-bold text-text-primary tracking-widest","aria-label":`Your code is ${s}`,children:s})]}),v.jsxs("div",{className:"flex flex-col items-end gap-2 flex-shrink-0",children:[v.jsxs("button",{onClick:A,"aria-label":b?"Code copied":"Copy code to clipboard",className:`flex items-center gap-1.5 px-3 py-1.5 rounded-card bg-white/50 hover:bg-white/80
|
|
236
|
+
text-caption text-text-primary transition-colors
|
|
237
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary`,children:[b?v.jsx(Zi,{size:13,weight:"fill","aria-hidden":"true"}):v.jsx(Qc,{size:13,"aria-hidden":"true"}),b?"Copied":"Copy"]}),h>0&&v.jsxs("p",{className:"text-small text-text-primary opacity-60","aria-live":"off",children:["Expires ",H]})]})]}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(Os,{size:14,className:"text-text-tertiary animate-spin flex-shrink-0","aria-hidden":"true"}),v.jsx("p",{className:"text-caption text-text-secondary flex-1",children:"Waiting for authorisation — EPAM SSO will handle authentication automatically."}),v.jsx("button",{onClick:M,className:`text-caption text-text-tertiary hover:text-text-primary transition-colors
|
|
238
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary rounded-sharp`,children:"Cancel"})]})]})}):v.jsx("div",{className:"sticky bottom-0 bg-canvas border-t border-border",role:"region","aria-label":"Connect GitHub Copilot",children:v.jsx("div",{className:"mx-auto max-w-[640px] px-6 py-4",children:v.jsxs("div",{className:`flex items-center gap-4 rounded-feature border border-border
|
|
239
|
+
bg-card shadow-clay px-5 py-4`,children:[v.jsx(AS,{size:28,className:"text-text-primary flex-shrink-0",weight:"fill","aria-hidden":"true"}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("p",{className:"text-body-standard text-text-primary font-medium",children:"Connect GitHub Copilot"}),v.jsx("p",{className:"text-caption text-text-secondary mt-0.5",children:n==="error"&&g?g:"Uses your EPAM GitHub account — no password needed."})]}),v.jsx(Tr,{variant:"primary",size:"sm",onClick:w,"aria-label":"Connect your GitHub Copilot account",children:"Connect"})]})})})}function oN({onBack:e}){const n=oi(C=>C.setByok),r=oi(C=>C.clearByok),s=oi(C=>C.provider),l=oi(C=>C.apiKey),[c,u]=d.useState(s??"openai"),[h,m]=d.useState(l??""),[g,y]=d.useState(!1),[b,x]=d.useState("idle"),[S,w]=d.useState("");async function M(){const C=h.trim();if(C){y(!0),x("idle"),w("");try{const B=await(await fetch("/api/byok/test",{method:"POST",headers:{"x-byok-provider":c,"x-byok-key":C}})).json();B.ok?(x("ok"),n(c,C)):(x("fail"),w(B.error??"Validation failed."))}catch(H){x("fail"),w(H instanceof Error?H.message:"Network error.")}finally{y(!1)}}}function A(){r(),m(""),x("idle")}const j=!!l&&!!s;return v.jsxs("div",{className:"mx-auto w-full max-w-sm space-y-4 px-4 py-8",children:[e&&v.jsxs("button",{type:"button",onClick:e,className:"flex items-center gap-1.5 text-small text-text-tertiary hover:text-text-primary",children:[v.jsx(M6,{size:14}),"Use GitHub Copilot instead"]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-h4 font-semibold text-text-primary",children:"Connect your API key"}),v.jsx("p",{className:"mt-1 text-small text-text-secondary",children:"Bring your own OpenAI or Anthropic key to use DesignX without GitHub Copilot."})]}),v.jsxs("div",{className:"space-y-1.5",children:[v.jsx("label",{className:"text-small font-medium text-text-secondary",htmlFor:"byok-provider",children:"Provider"}),v.jsxs("select",{id:"byok-provider",value:c,onChange:C=>{u(C.target.value),x("idle")},className:"w-full rounded-md border border-border-primary bg-canvas px-3 py-2 text-small text-text-primary",children:[v.jsx("option",{value:"openai",children:"OpenAI"}),v.jsx("option",{value:"anthropic",children:"Anthropic"})]})]}),v.jsxs("div",{className:"space-y-1.5",children:[v.jsx("label",{className:"text-small font-medium text-text-secondary",htmlFor:"byok-key",children:"API Key"}),v.jsx("input",{id:"byok-key",type:"password",value:h,onChange:C=>{m(C.target.value),x("idle")},placeholder:c==="openai"?"sk-...":"sk-ant-...",autoComplete:"off",className:"w-full rounded-md border border-border-primary bg-canvas px-3 py-2 text-small text-text-primary font-mono placeholder:text-text-quaternary"})]}),b==="ok"&&v.jsxs("p",{className:"flex items-center gap-1.5 text-small text-green-600",children:[v.jsx(Zi,{size:14,weight:"fill"}),"Key validated and saved"]}),b==="fail"&&v.jsxs("p",{className:"flex items-center gap-1.5 text-small text-red-500",children:[v.jsx(OS,{size:14,weight:"fill"}),S||"Validation failed"]}),v.jsxs("div",{className:"flex gap-2",children:[v.jsxs(Tr,{variant:"primary",size:"sm",onClick:()=>void M(),disabled:!h.trim()||g,className:"flex items-center gap-1.5",children:[g?v.jsx(Os,{size:14,className:"animate-spin"}):v.jsx(MS,{size:14}),g?"Validating…":"Test & Save"]}),j&&v.jsx(Tr,{variant:"ghost",size:"sm",onClick:A,children:"Disconnect"})]}),j&&s&&v.jsxs("p",{className:"text-small text-text-tertiary",children:["Connected: ",s==="openai"?"OpenAI":"Anthropic"]})]})}const cN=[{id:"auto",label:"Auto",vendor:"copilot"},{id:"gpt-5.5",label:"GPT-5.5",vendor:"openai"},{id:"gpt-5.4",label:"GPT-5.4",vendor:"openai"},{id:"gpt-5.4-mini",label:"GPT-5.4 mini",vendor:"openai"},{id:"gpt-5-mini",label:"GPT-5 mini",vendor:"openai"},{id:"gpt-5.3-codex",label:"GPT-5.3-Codex",vendor:"openai"},{id:"gpt-5.2-codex",label:"GPT-5.2-Codex",vendor:"openai"},{id:"gpt-4.1",label:"GPT-4.1",vendor:"openai"},{id:"gpt-4.1-mini",label:"GPT-4.1 Mini",vendor:"openai"},{id:"gpt-4.1-nano",label:"GPT-4.1 Nano",vendor:"openai"},{id:"gpt-4o",label:"GPT-4o",vendor:"openai"},{id:"gpt-4o-mini",label:"GPT-4o Mini",vendor:"openai"},{id:"o1",label:"o1",vendor:"openai"},{id:"o1-mini",label:"o1 Mini",vendor:"openai"},{id:"o3-mini",label:"o3 Mini",vendor:"openai"},{id:"o4-mini",label:"o4 Mini",vendor:"openai"},{id:"claude-opus-4.7",label:"Claude Opus 4.7",vendor:"anthropic"},{id:"claude-opus-4.6",label:"Claude Opus 4.6",vendor:"anthropic"},{id:"claude-opus-4.5",label:"Claude Opus 4.5",vendor:"anthropic"},{id:"claude-sonnet-4.6",label:"Claude Sonnet 4.6",vendor:"anthropic"},{id:"claude-sonnet-4.5",label:"Claude Sonnet 4.5",vendor:"anthropic"},{id:"claude-haiku-4.5",label:"Claude Haiku 4.5",vendor:"anthropic"},{id:"claude-sonnet-4",label:"Claude Sonnet 4",vendor:"anthropic"},{id:"claude-3.7-sonnet",label:"Claude 3.7 Sonnet",vendor:"anthropic"},{id:"gemini-2.5-pro",label:"Gemini 2.5 Pro",vendor:"google"},{id:"gemini-2.0-flash",label:"Gemini 2.0 Flash",vendor:"google"},{id:"gemini-3.1-pro-preview",label:"Gemini 3.1 Pro (Preview)",vendor:"google"},{id:"gemini-3-flash-preview",label:"Gemini 3 Flash (Preview)",vendor:"google"},{id:"claude-sonnet-4-5",label:"Claude Sonnet 4.5",vendor:"anthropic"},{id:"claude-3.5-sonnet",label:"Claude 3.5 Sonnet",vendor:"anthropic"},{id:"claude-3-5-sonnet",label:"Claude 3.5 Sonnet",vendor:"anthropic"}],Mr="claude-sonnet-4.6";function uN(){const e=new Set,n=[{id:"auto",label:"Auto",vendor:"copilot"}];for(const r of cN){if(r.id==="auto")continue;const s=r.label.toLowerCase().trim();e.has(s)||(e.add(s),n.push({id:r.id,label:r.label,vendor:r.vendor,isDefault:r.id===Mr}))}return n}const Il=uN();function $l(e){const n=new Map;n.set("auto",{id:"auto",label:"Auto",vendor:"copilot"});for(const s of e)!(s!=null&&s.id)||!(s!=null&&s.label)||n.set(s.id,{...s,isDefault:s.id===Mr});const r=n.get(Mr);return r&&n.set(Mr,{...r,isDefault:!0}),Array.from(n.values())}function Ef(e,n){var r,s;return n.some(l=>l.id===e)?e:n.some(l=>l.id===Mr)?Mr:((r=n.find(l=>l.isDefault))==null?void 0:r.id)??((s=n[0])==null?void 0:s.id)??"auto"}const Va=nr()(T1(e=>({model:Mr,availableModels:Il,discoveryStatus:"idle",discoveryError:null,setModel:n=>e({model:n}),setAvailableModels:n=>e(r=>{const s=$l(n);return{availableModels:s,model:Ef(r.model,s),discoveryStatus:"ready",discoveryError:null}}),setDiscoveryLoading:()=>e(n=>({discoveryStatus:"loading",discoveryError:null,availableModels:n.availableModels.length>0?n.availableModels:$l(Il)})),setDiscoveryError:n=>e(r=>({discoveryStatus:"error",discoveryError:n,availableModels:r.availableModels.length>0?r.availableModels:$l(Il),model:Ef(r.model,r.availableModels.length>0?r.availableModels:$l(Il))})),resetAvailableModels:()=>e(n=>{const r=$l(Il);return{availableModels:r,model:Ef(n.model,r),discoveryStatus:"idle",discoveryError:null}})}),{name:"dx-model",version:2,migrate:(e,n)=>{if(!e||typeof e!="object")return{model:Mr};const r=e;return n<2&&r.model==="auto"?{...r,model:Mr}:r},partialize:e=>({model:e.model})})),D4=["copilot","anthropic","openai","google","xai","mistral","meta","other"];function dN(e){switch(e){case"copilot":return"GitHub Copilot";case"anthropic":return"Anthropic";case"openai":return"OpenAI";case"google":return"Google";case"xai":return"xAI";case"meta":return"Meta";case"mistral":return"Mistral";default:return e.charAt(0).toUpperCase()+e.slice(1)}}function Sf(e){return e==="anthropic"?"✦":""}function fN(){const e=Va(w=>w.model),n=Va(w=>w.availableModels),r=Va(w=>w.discoveryStatus),s=Va(w=>w.discoveryError),l=Va(w=>w.setModel),[c,u]=d.useState(!1),[h,m]=d.useState(!1),[g,y]=d.useState(320),b=d.useRef(null),x=n.find(w=>w.id===e)??n[0],S=d.useMemo(()=>{const w=new Map;for(const M of n){const A=w.get(M.vendor)??[];A.push(M),w.set(M.vendor,A)}return Array.from(w.entries()).sort(([M],[A])=>{const j=D4.indexOf(M),C=D4.indexOf(A),H=j===-1?Number.MAX_SAFE_INTEGER:j,B=C===-1?Number.MAX_SAFE_INTEGER:C;return H-B||M.localeCompare(A)})},[n]);return d.useEffect(()=>{function w(M){b.current&&!b.current.contains(M.target)&&u(!1)}return c&&document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[c]),d.useEffect(()=>{function w(M){M.key==="Escape"&&u(!1)}return c&&document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[c]),d.useLayoutEffect(()=>{if(!c||!b.current)return;function w(){var Z;const M=(Z=b.current)==null?void 0:Z.getBoundingClientRect();if(!M)return;const A=16,j=320,C=window.innerHeight-M.bottom-A,H=M.top-A,B=C<220&&H>C;m(B),y(Math.max(180,Math.min(j,B?H:C)))}return w(),window.addEventListener("resize",w),window.addEventListener("scroll",w,!0),()=>{window.removeEventListener("resize",w),window.removeEventListener("scroll",w,!0)}},[c]),v.jsxs("div",{ref:b,className:"relative",children:[v.jsxs("button",{onClick:()=>u(w=>!w),"aria-haspopup":"listbox","aria-expanded":c,"aria-label":`Model: ${x.label}`,className:Ha("flex items-center gap-1.5 px-2.5 py-1.5 rounded-card text-caption","border border-border-secondary bg-card shadow-clay","hover:border-border transition-colors duration-100","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary"),children:[Sf(x.vendor)&&v.jsx("span",{className:"text-ube-800 text-small font-bold leading-none","aria-hidden":"true",children:Sf(x.vendor)}),v.jsx("span",{className:"text-text-secondary font-medium",children:x.label}),v.jsx(D6,{size:10,className:Ha("text-text-tertiary transition-transform duration-100",c&&"rotate-180"),"aria-hidden":"true"})]}),c&&v.jsxs("ul",{role:"listbox","aria-label":"Select model",className:Ha("absolute right-0 z-50 min-w-[240px]",h?"bottom-full mb-2":"top-full mt-1","rounded-card border border-border bg-card shadow-hover-subtle overflow-y-auto overscroll-contain"),style:{maxHeight:`${g}px`},children:[S.map(([w,M],A)=>v.jsxs("li",{role:"presentation",children:[v.jsx("div",{className:Ha("px-3 pt-2.5 pb-1",A>0&&"border-t border-border-secondary mt-1 pt-3"),children:v.jsx("span",{className:"text-small text-text-tertiary uppercase tracking-wide font-semibold",children:dN(w)})}),v.jsx("ul",{children:M.map(j=>v.jsx("li",{role:"option","aria-selected":j.id===e,children:v.jsxs("button",{onClick:()=>{l(j.id),u(!1)},className:Ha("w-full flex items-center gap-2.5 px-3 py-2 text-left","text-body-standard transition-colors duration-100",j.id===e?"text-text-primary bg-border-secondary":"text-text-secondary hover:text-text-primary hover:bg-border-secondary"),children:[v.jsx("span",{className:"text-ube-800 text-small font-bold leading-none w-3","aria-hidden":"true",children:Sf(j.vendor)}),v.jsx("span",{className:"flex-1",children:j.label}),j.id===e&&v.jsx(V6,{size:12,className:"text-text-primary flex-shrink-0",weight:"bold","aria-hidden":"true"})]})},j.id))})]},w)),r==="loading"&&v.jsx("li",{role:"presentation",className:"px-3 py-2 text-small text-text-tertiary border-t border-border-secondary mt-1",children:"Detecting Copilot models…"}),r==="error"&&s&&v.jsxs("li",{role:"presentation",className:"px-3 py-2 text-small text-text-tertiary border-t border-border-secondary mt-1",children:["Using fallback models. ",s]}),v.jsx("li",{role:"presentation",className:"h-1"})]})]})}const L4={"claude-sonnet-4.6":{input:3,output:15},"claude-sonnet-4.5":{input:3,output:15},"claude-sonnet-4-5":{input:3,output:15},"claude-3-5-sonnet":{input:3,output:15},"claude-opus-4.7":{input:15,output:75},"claude-opus-4.6":{input:15,output:75},"claude-opus-4.5":{input:15,output:75},"claude-haiku-4.5":{input:.25,output:1.25},"claude-3-opus":{input:15,output:75},"claude-3-haiku":{input:.25,output:1.25},"gpt-5.5":{input:2.5,output:10},"gpt-5.4":{input:2.5,output:10},"gpt-5.4-mini":{input:.15,output:.6},"gpt-5-mini":{input:.15,output:.6},"gpt-5.3-codex":{input:2.5,output:10},"gpt-5.2-codex":{input:2.5,output:10},"gpt-4.1":{input:2,output:8},"gpt-4.1-mini":{input:.4,output:1.6},"gpt-4.1-nano":{input:.1,output:.4},"gpt-4o":{input:2.5,output:10},"gpt-4o-mini":{input:.15,output:.6},o1:{input:15,output:60},"o1-mini":{input:3,output:12},"o3-mini":{input:1.1,output:4.4},"o4-mini":{input:1.1,output:4.4},"claude-3.7-sonnet":{input:3,output:15},"claude-3.5-sonnet":{input:3,output:15},"claude-sonnet-4":{input:3,output:15},"gemini-2.0-flash":{input:.1,output:.4},"gpt-4":{input:30,output:60}};function hN(e,n,r){const s=L4[r]??L4["gpt-4o"];return e/1e6*s.input+n/1e6*s.output}const O4={input:0,output:0,total:0},Tu=nr((e,n)=>({sessionTokens:{...O4},sessionCostUsd:0,lastMessageTokens:null,allTimeInput:0,allTimeOutput:0,allTimeCostUsd:0,addUsage:(r,s,l)=>{const c=n().sessionTokens,u=hN(r,s,l),h=n().allTimeInput+r,m=n().allTimeOutput+s,g=n().allTimeCostUsd+u;e({sessionTokens:{input:c.input+r,output:c.output+s,total:c.total+r+s},sessionCostUsd:n().sessionCostUsd+u,lastMessageTokens:{input:r,output:s},allTimeInput:h,allTimeOutput:m,allTimeCostUsd:g}),XS({allTimeInput:h,allTimeOutput:m,allTimeCostUsd:g})},seedAllTime:({allTimeInput:r,allTimeOutput:s,allTimeCostUsd:l})=>e({allTimeInput:r,allTimeOutput:s,allTimeCostUsd:l}),reset:()=>e({sessionTokens:{...O4},sessionCostUsd:0,lastMessageTokens:null})}));function Fl(e){return e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function wf(e){return e<.01?"<$0.01":`~$${e.toFixed(2)}`}function mN({contextRatio:e,contextStatus:n,autoCompact:r,onAutoCompactChange:s,onCompactNow:l,isStreaming:c}={}){const{sessionTokens:u,sessionCostUsd:h,lastMessageTokens:m,allTimeInput:g,allTimeOutput:y,allTimeCostUsd:b}=Tu(),x=Va(C=>C.model),S=u.total>0,w=g+y>0;if(!S&&!w)return null;const M=e!==void 0&&e>0,A=M?`${Math.min(100,Math.round(e*100))}%`:"0%",j=n==="critical"?"bg-red-500":n==="warn"?"bg-amber-500":"bg-emerald-500";return v.jsxs("div",{className:"flex items-center gap-2","aria-label":"Token usage",children:[v.jsxs("div",{title:[`Model: ${x}`,S?`Session: ${Fl(u.input)}↑ ${Fl(u.output)}↓`:"",m?`Last message: +${Fl(m.input+m.output)}`:"",w?`All-time: ${Fl(g+y)} tokens · ${wf(b)}`:"",M?`Context: ${Math.round(e*100)}% used`:""].filter(Boolean).join(`
|
|
240
|
+
`),className:Ha("inline-flex flex-col gap-0.5 px-2 py-1 rounded-pill","border border-border-secondary bg-canvas","text-small text-text-tertiary select-none cursor-default","transition-opacity duration-200"),children:[v.jsxs("div",{className:"flex items-center gap-1.5",children:[S&&v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"font-mono",children:[Fl(u.total)," tokens"]}),v.jsx("span",{className:"text-border-primary","aria-hidden":"true",children:"·"}),v.jsx("span",{className:"font-mono",children:wf(h)})]}),w&&v.jsxs(v.Fragment,{children:[S&&v.jsx("span",{className:"text-border-primary","aria-hidden":"true",children:"|"}),v.jsxs("span",{className:"font-mono text-text-quaternary",children:[wf(b)," total"]})]})]}),M&&v.jsx("div",{className:"h-0.5 w-full overflow-hidden rounded-full bg-border-secondary",children:v.jsx("div",{className:Ha("h-full rounded-full transition-all duration-500",j),style:{width:A}})})]}),M&&l&&v.jsx("button",{type:"button",onClick:l,disabled:c,title:"Compact conversation context now",className:"text-caption text-text-tertiary hover:text-text-primary disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:"Compact"}),s&&v.jsxs("label",{className:"inline-flex items-center gap-1 text-caption text-text-tertiary cursor-pointer select-none",children:[v.jsx("input",{type:"checkbox",checked:r??!0,onChange:C=>s(C.target.checked),className:"h-3 w-3 rounded border-border"}),"Auto"]})]})}const ph="auto",pN={auto:["claude-sonnet-4.6",null],"claude-sonnet-4.6":["claude-sonnet-4.6","claude-sonnet-4.5","claude-sonnet-4-5",null],"claude-sonnet-4.5":["claude-sonnet-4.5","claude-sonnet-4-5",null],"claude-sonnet-4-5":["claude-sonnet-4-5","claude-sonnet-4.5",null],"claude-opus-4.7":["claude-opus-4.7","claude-opus-4.6","claude-opus-4.5",null],"claude-opus-4.6":["claude-opus-4.6","claude-opus-4.5",null],"claude-opus-4.5":["claude-opus-4.5",null],"claude-haiku-4.5":["claude-haiku-4.5","claude-sonnet-4.5",null],"claude-3-5-sonnet":["claude-3-5-sonnet","claude-3.5-sonnet","claude-sonnet-4.5",null],"claude-3.5-sonnet":["claude-3.5-sonnet","claude-3-5-sonnet","claude-sonnet-4.5",null],"gpt-4o":["gpt-4o",null],"gpt-4o-mini":["gpt-4o-mini",null],"gpt-5.5":["gpt-5.5","gpt-5.4","gpt-5-mini",null],"gpt-5.4":["gpt-5.4","gpt-5-mini",null],"gpt-5.4-mini":["gpt-5.4-mini","gpt-5-mini",null],"gpt-5-mini":["gpt-5-mini","gpt-4o",null],"gpt-5.3-codex":["gpt-5.3-codex","gpt-5.2-codex","gpt-5-mini",null],"gpt-5.2-codex":["gpt-5.2-codex","gpt-5-mini",null]},H4=2,gN="dx.copilot.lastRequest",$c="dx.copilot.lastError",yN="dx.copilot.lastStream",Zv=900*1024,Fc=3e4,V4=5*6e4,Gc=Zv;function bN(e){return new Promise(n=>window.setTimeout(n,e))}function vN(e){if(!e)return null;const n=Number(e);if(Number.isFinite(n)&&n>0)return Math.round(n*1e3);const r=Date.parse(e);if(Number.isNaN(r))return null;const s=r-Date.now();return s>0?s:null}function xN(e,n){return e!==400?!1:n.includes("model_not_supported")||n.includes("requested model is not supported")}function EN(e,n){return e!==400?!1:/unknown integration/i.test(n)}function SN(e,n){return e===413?!0:/payload too large|entity too large/i.test(n)}function wN(e){const n=e??ph;return n==="auto"?["claude-sonnet-4.6",null]:pN[n]??[n,null]}function z4(e,n=ph){const r={messages:e,stream:!0,temperature:.7,max_tokens:4096};return n!=="auto"&&(r.model=n),new TextEncoder().encode(JSON.stringify(r)).length}function ws(e,n){try{sessionStorage.setItem(e,JSON.stringify(n))}catch{}}function B4(e,n,r=!1,s=4096){const l=e.slice(1,-1),c=r?[0]:[20,14,10,6,4,2,0],u=e[e.length-1],h=e[0];for(const y of c){const b=l.slice(-y),S={messages:[h,...b,u],stream:!0,temperature:.7,max_tokens:s};n&&(S.model=n);const w=JSON.stringify(S),M=new TextEncoder().encode(w).length;if(M<=Zv||y===0)return{bodyPayload:S,serializedBody:w,requestBytes:M,historyMessagesUsed:b.length,compacted:b.length!==l.length}}const m={messages:e,stream:!0,temperature:.7,max_tokens:s};n&&(m.model=n);const g=JSON.stringify(m);return{bodyPayload:m,serializedBody:g,requestBytes:new TextEncoder().encode(g).length,historyMessagesUsed:Math.max(e.length-2,0),compacted:!1}}async function AN(e,n){let r;try{const s=new Promise(l=>{r=window.setTimeout(()=>l(null),n)});return await Promise.race([e.read(),s])}finally{r!==void 0&&window.clearTimeout(r)}}async function TN(e,n,r,s,l=ph,c,u,h,m,g){var S,w,M,A,j;let y="",b=n,x=!1;for(const[C,H]of wN(l).entries()){let B=B4(e,H,!1,m);const Z=crypto.randomUUID();let ee=!1;ws(gN,{requestId:Z,at:new Date().toISOString(),model:H,messageCount:e.length,requestBytes:B.requestBytes,historyChars:e.reduce((k,F)=>k+F.content.length,0),historyMessagesUsed:B.historyMessagesUsed,compacted:B.compacted});const re=H===null&&C>0;let N=null,ce="";for(let k=0;k<=H4;k+=1){if(N=await fetch("/api/copilot/chat/completions",{method:"POST",signal:u,headers:{"Content-Type":"application/json","X-Request-Id":Z,...re?{"X-DesignX-Auto-Fallback":"1"}:{},...Nf(`Bearer ${b}`)},body:B.serializedBody}),N.status===413&&!ee){ee=!0,B=B4(e,H,!0,m);continue}if(N.status!==429||(ce=await N.text(),k>=H4))break;const ie=vN(N.headers.get("retry-after"))??1200*(k+1);await bN(ie)}if(!N)throw new Error("Copilot API error: no response received.");if(!N.ok){const k=N.status===429?ce||await N.text():await N.text();if(ws($c,{requestId:Z,at:new Date().toISOString(),status:N.status,body:k.slice(0,2e3),responseRequestId:N.headers.get("x-request-id"),historyMessagesUsed:B.historyMessagesUsed,compacted:B.compacted}),y=`Copilot API error (${N.status}): ${k}`,EN(N.status,k)&&h&&!x){x=!0,b=await h();continue}if(N.status===429)throw new Error(`Copilot API rate limit reached (429). Please wait a moment and retry. ${k}`.trim());if(SN(N.status,k))throw new Error(`Copilot request still too large after compaction (${B.requestBytes} bytes). ${k}`);if(xN(N.status,k))continue;throw new Error(y)}if(!N.body)throw new Error("No response body from Copilot API");const le=N.body.getReader(),ue=new TextDecoder;let X="";const xe=Date.now();let me=xe,ve=0,V=0,Q=0,G=0,de=0,we=!1;for(;;){if(Date.now()-xe>V4){await le.cancel("max stream duration exceeded").catch(()=>{});const ge=`Copilot stream exceeded ${Math.round(V4/1e3)}s and was stopped.`;throw ws($c,{requestId:Z,at:new Date().toISOString(),status:"stream-max-duration",body:ge,responseRequestId:N.headers.get("x-request-id")}),new Error(ge)}if(Date.now()-me>Fc){await le.cancel("no meaningful stream progress").catch(()=>{});const ge=`Copilot stream stalled (no token progress for ${Math.round(Fc/1e3)}s).`;throw ws($c,{requestId:Z,at:new Date().toISOString(),status:"stream-no-progress",body:ge,responseRequestId:N.headers.get("x-request-id")}),new Error(ge)}let k;try{k=await AN(le,Fc)}catch(ge){const ke=ge instanceof Error?ge.message:String(ge);if(/premature close|ERR_STREAM_PREMATURE_CLOSE/i.test(ke)){if(ve>0){s();return}throw new Error("Stream closed by server before any data was received.")}throw ge}if(!k){await le.cancel("idle timeout").catch(()=>{});const ge=`Copilot stream stalled (no chunks for ${Math.round(Fc/1e3)}s).`;throw ws($c,{requestId:Z,at:new Date().toISOString(),status:"stream-stalled",body:ge,responseRequestId:N.headers.get("x-request-id")}),new Error(ge)}const{done:F,value:ie}=k;if(F)break;ve+=1,X+=ue.decode(ie,{stream:!0});const be=X.split(`
|
|
241
|
+
`);X=be.pop()??"";for(const ge of be){const ke=ge.trim();if(ke){if(ke==="data: [DONE]"){Q+=1;continue}if(ke.startsWith("data: ")){V+=1;try{const K=JSON.parse(ke.slice(6)),ze=(M=(w=(S=K==null?void 0:K.choices)==null?void 0:S[0])==null?void 0:w.delta)==null?void 0:M.content;ze&&(/\S/.test(ze)?(me=Date.now(),G+=1):de+=1,r(ze));const je=(j=(A=K==null?void 0:K.choices)==null?void 0:A[0])==null?void 0:j.finish_reason;je&&(me=Date.now(),je==="length"&&(we=!0)),K!=null&&K.usage&&c&&(me=Date.now(),c({prompt_tokens:K.usage.prompt_tokens??0,completion_tokens:K.usage.completion_tokens??0,total_tokens:K.usage.total_tokens??0}))}catch{}}}}}ws(yN,{requestId:Z,at:new Date().toISOString(),durationMs:Date.now()-xe,networkChunkCount:ve,dataEventCount:V,doneEventCount:Q,visibleDeltaCount:G,whitespaceOnlyDeltaCount:de,responseRequestId:N.headers.get("x-request-id")}),s(),we&&(g==null||g());return}throw new Error(y||"Copilot API error: no supported model available")}function Z4(e){return Array.isArray(e)?e.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&typeof n.label=="string"&&typeof n.vendor=="string"&&(typeof n.verified!="boolean"||n.verified===!0)):[]}async function MN(e,n={}){const r={Authorization:`Bearer ${e}`},s=Date.now(),l=n.forceRefresh?"&force=1":"";let c=await fetch(`/api/copilot/models/full?ts=${s}${l}`,{cache:"no-store",headers:r});!c.ok&&c.status!==401&&(c=await fetch(`/api/copilot/models?ts=${s}${l}`,{cache:"no-store",headers:r}));const u=await c.json().catch(()=>({}));if(!c.ok)throw new Error(u.error??`Copilot model discovery failed (${c.status}).`);const h=Z4(u.models);if(h.length>0)return h;const m=await fetch(`/api/copilot/models?ts=${s}-fallback${l}`,{cache:"no-store",headers:r}),g=await m.json().catch(()=>({}));if(!m.ok)throw new Error(g.error??`Copilot model discovery failed (${m.status}).`);return Z4(g.models)}async function RN(e,n,r,s,l,c,u,h,m=4096){var S,w,M;const g=await fetch("/api/byok/chat",{method:"POST",headers:{"Content-Type":"application/json","x-byok-provider":n,"x-byok-key":r},body:JSON.stringify({model:c,messages:e,stream:!0,max_tokens:m}),signal:h});if(!g.ok){const A=await g.text().catch(()=>"");throw new Error(`BYOK ${g.status}: ${A.slice(0,300)}`)}if(!g.body)throw new Error("BYOK: empty response body");const y=g.body.getReader(),b=new TextDecoder;let x="";try{for(;;){const{done:A,value:j}=await y.read();if(A)break;x+=b.decode(j,{stream:!0});const C=x.split(`
|
|
242
|
+
`);x=C.pop()??"";for(const H of C){const B=H.trim();if(!B.startsWith("data: "))continue;const Z=B.slice(6);if(Z==="[DONE]"){l();return}try{const ee=JSON.parse(Z),re=(M=(w=(S=ee.choices)==null?void 0:S[0])==null?void 0:w.delta)==null?void 0:M.content;re&&s(re),ee.usage&&typeof ee.usage.completion_tokens=="number"&&(u==null||u({prompt_tokens:ee.usage.prompt_tokens??0,completion_tokens:ee.usage.completion_tokens,total_tokens:ee.usage.total_tokens??ee.usage.completion_tokens}))}catch{}}}}finally{y.cancel().catch(()=>{})}l()}const CN=/^(D[1-4]|R[34]|VDG|Type Selection|Choose Your Path|Checkpoint[\s\-]?1)[\s\u2014\-]/i,kN=/integration guide|changelog|change log|readme|backend selection|handover|index|architecture|spec pack/i;function NN(e){const n=e.toLowerCase();return/persona|user profile|user archetype/.test(n)?"persona":/journey map|customer journey|user journey|experience map/.test(n)?"journey-map":/feature tree|feature list/.test(n)?"feature-tree":/data model|entity model|schema/.test(n)?"data-model":/user flow|onboarding flow|navigation flow/.test(n)?"flow":/brief|project brief|research brief|complexity/.test(n)?"brief":/extraction ledger|kb ledger|knowledge base extraction/.test(n)?"extraction-ledger":/competitive|competitor|market analysis/.test(n)?"competitive-analysis":/insight|key finding/.test(n)?"insights":"document"}function _N(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,40)}function Gl(e,n,r,s=!1){const l=e.split(`
|
|
243
|
+
`),c=[];let u=null;for(const m of l)if(m.startsWith("## ")){const g=m.slice(3).trim();if(u!=null&&u.lines.some(y=>y.trim())&&c.push({...u,isStreaming:!1}),CN.test(g)){u=null;continue}if(s&&n.id===6&&!kN.test(g)){u=null;continue}u={title:g,lines:[]}}else u&&u.lines.push(m);u!=null&&u.lines.some(m=>m.trim())&&c.push({...u,isStreaming:!0});const h=Date.now();return c.map((m,g)=>({id:`${r}-ph${n.id}-${_N(m.title)}`,projectSlug:r,title:m.title,type:NN(m.title),content:m.lines.join(`
|
|
244
|
+
`).trimEnd(),phase:n.id,phaseName:n.name,phaseColor:n.color,createdAt:h+g,updatedAt:h+g,isStreaming:m.isStreaming}))}const Uv=[{id:2,key:"discover",name:"Discover",color:"#3bd3fd",agents:["Strategist","Researcher"],gates:[{key:"D1",label:"Discovery Gate",nextStep:"Type Selection — choose between Fast Track and Experimental ideation",variant:"standard"}],activeFor:["end-to-end","research-sprint"]},{id:3,key:"ideate",name:"Ideate",color:"#c1b0ff",agents:["Ideation Designer","Visual Designer"],gates:[{key:"type-selection",label:"Choose Your Path",nextStep:"Ideation phase will begin based on your choice",variant:"type-selection"},{key:"checkpoint-1",label:"Concept Review",nextStep:"Concept Refinement — your chosen concept develops into a north star",variant:"review"},{key:"D2",label:"Ideation Gate",nextStep:"Design Phase — visual direction, design system, and component library",variant:"standard"}],activeFor:["end-to-end"]},{id:4,key:"design",name:"Design",color:"#84e7a5",agents:["Architect","Visual Designer","Content Designer"],gates:[{key:"VDG",label:"Visual Direction Gate",nextStep:"Design System — tokens, component library, and screen designs",variant:"standard"},{key:"D3",label:"Design Gate",nextStep:"Planning Phase — stories, API contracts, and sprint plan",variant:"standard"}],activeFor:["end-to-end","research-sprint"]},{id:5,key:"plan",name:"Plan",color:"#01418d",agents:["Story Writer"],gates:[{key:"D4",label:"Planning Gate",nextStep:"Deliver Phase — working prototype",variant:"standard"}],activeFor:["end-to-end"]},{id:6,key:"deliver",name:"Deliver",color:"#fc7981",agents:["Builder"],gates:[{key:"R3",label:"Build Review",nextStep:"Measure Phase — quality assessment and final sign-off",variant:"review"}],activeFor:["end-to-end"]},{id:7,key:"measure",name:"Measure",color:"#43089f",agents:["Quality Assessor"],gates:[{key:"R4",label:"Quality Sign-off",nextStep:"Project complete — all phases finished",variant:"review"}],activeFor:["end-to-end"]}];function jN(e){return Uv.filter(n=>n.activeFor.includes(e))}function gh(e){return Uv.find(n=>n.id===e)}function DN(e,n){var r;return(r=gh(e))==null?void 0:r.gates.find(s=>s.key===n)}function LN(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(0)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function ON(e){switch(e.key){case"discover":return`You are leading the **Discover phase** as Strategist and Researcher.
|
|
245
|
+
|
|
246
|
+
**KB Artifact Discovery — run before generating any artefact from scratch:**
|
|
247
|
+
Scan every KB file listed in the Knowledge Base section for:
|
|
248
|
+
- Existing personas, user profiles, or user archetypes
|
|
249
|
+
- Existing journey maps or experience maps
|
|
250
|
+
- Existing research briefs, competitive analyses, or insight reports
|
|
251
|
+
If found: extract and adapt to the required output format below, label as SOURCED.
|
|
252
|
+
If not found: generate from scratch based on KB content and domain knowledge, label as SYNTHESISED.
|
|
253
|
+
|
|
254
|
+
**Deliverables (produce all of these):**
|
|
255
|
+
1. Knowledge base extraction ledger — list every KB file and what evidence you drew from it
|
|
256
|
+
2. Complexity assessment — rate LOW / MODERATE / HIGH / CRITICAL across: interaction, domain, data, integration. Justify each.
|
|
257
|
+
3. Project brief — objectives, user needs, constraints, success metrics, assumptions
|
|
258
|
+
4. Personas (2–4) — use the structured format below for each persona
|
|
259
|
+
5. Journey maps — one per persona, use the structured format below
|
|
260
|
+
6. Key insights (10–15) — each labelled REAL (sourced from KB) or SYNTHESISED (inferred)
|
|
261
|
+
7. Competitive analysis — include when domain signals indicate market context matters
|
|
262
|
+
|
|
263
|
+
**Rules:**
|
|
264
|
+
- Every claim must be labelled REAL or SYNTHESISED
|
|
265
|
+
- Do not begin personas until the brief is drafted
|
|
266
|
+
- Use the project name and domain throughout — no generic placeholders
|
|
267
|
+
|
|
268
|
+
**Required output format for each persona (place directly in the ## Personas section):**
|
|
269
|
+
Output each persona as a JSON block immediately after a brief intro sentence:
|
|
270
|
+
\`\`\`json:persona
|
|
271
|
+
{
|
|
272
|
+
"name": "Full Name",
|
|
273
|
+
"age": 30,
|
|
274
|
+
"role": "Job Title / Role",
|
|
275
|
+
"goals": ["specific goal 1", "specific goal 2", "specific goal 3"],
|
|
276
|
+
"pains": ["pain point 1", "pain point 2", "pain point 3"],
|
|
277
|
+
"behaviors": ["behavior pattern 1", "behavior pattern 2"],
|
|
278
|
+
"quote": "A direct quote capturing their core frustration or motivation.",
|
|
279
|
+
"sourced": false
|
|
280
|
+
}
|
|
281
|
+
\`\`\`
|
|
282
|
+
|
|
283
|
+
**Required output format for each journey map (place directly in the ## Journey Maps section):**
|
|
284
|
+
\`\`\`json:journey-map
|
|
285
|
+
{
|
|
286
|
+
"persona": "Persona Name",
|
|
287
|
+
"stages": [
|
|
288
|
+
{
|
|
289
|
+
"name": "Stage Name",
|
|
290
|
+
"touchpoints": ["touchpoint 1", "touchpoint 2"],
|
|
291
|
+
"emotion": "curious",
|
|
292
|
+
"pains": ["pain at this stage"],
|
|
293
|
+
"opportunities": ["opportunity here"]
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
\`\`\`
|
|
298
|
+
Emotion values: curious · positive · neutral · negative · frustrated
|
|
299
|
+
|
|
300
|
+
**Gate signal (required):**
|
|
301
|
+
When all deliverables above are complete, output a section headed exactly:
|
|
302
|
+
\`\`\`
|
|
303
|
+
## D1 — Discovery Gate
|
|
304
|
+
\`\`\`
|
|
305
|
+
Then list every artefact produced as bullet points. This is the signal to pause for approval.`;case"ideate":return`You are leading the **Ideate phase** as Ideation Designer with Visual Designer collaboration.
|
|
306
|
+
|
|
307
|
+
**Step 1 — Type Selection (mandatory first step):**
|
|
308
|
+
Output a section headed exactly:
|
|
309
|
+
\`\`\`
|
|
310
|
+
## Type Selection — Choose Your Path
|
|
311
|
+
\`\`\`
|
|
312
|
+
Describe both options clearly:
|
|
313
|
+
- **Fast Track (Type 1):** 2–3 focused concepts → direct north star convergence. Best for tight timelines (3–4 week sprint).
|
|
314
|
+
- **Experimental (Type 2):** 4–5 divergent concepts → user feedback loop → convergence. Best for innovation-heavy work (6–8 week sprint).
|
|
315
|
+
|
|
316
|
+
Wait for the user to choose before continuing.
|
|
317
|
+
|
|
318
|
+
**After type selection:**
|
|
319
|
+
1. Generate 6–8 "How Might We" questions grounded in research insights
|
|
320
|
+
2. Develop concepts per type count (Type 1: 2–3, Type 2: 4–5). For each: concept story, key screens, visual direction notes
|
|
321
|
+
3. For Type 2 only: output \`## Checkpoint 1 — Concept Review\` and wait for feedback before converging
|
|
322
|
+
4. Converge on a north star concept with full specification
|
|
323
|
+
5. Produce the feature tree (categorised by priority: MVP / Phase 2 / Backlog) — use the structured format below
|
|
324
|
+
|
|
325
|
+
**Required output format for the feature tree (place directly in the ## Feature Tree section):**
|
|
326
|
+
\`\`\`json:feature-tree
|
|
327
|
+
{
|
|
328
|
+
"mvp": ["Feature 1 — brief description", "Feature 2 — brief description"],
|
|
329
|
+
"phase2": ["Feature 3 — brief description"],
|
|
330
|
+
"backlog": ["Feature 4 — brief description"]
|
|
331
|
+
}
|
|
332
|
+
\`\`\`
|
|
333
|
+
|
|
334
|
+
**Gate signal:**
|
|
335
|
+
\`\`\`
|
|
336
|
+
## D2 — Ideation Gate
|
|
337
|
+
\`\`\`
|
|
338
|
+
List all artefacts. Wait for approval.`;case"design":return`You are leading the **Design phase** as Architect, Visual Designer, and Content Designer.
|
|
339
|
+
|
|
340
|
+
**Architect deliverables:**
|
|
341
|
+
- Information architecture (sitemap with all sections and screens)
|
|
342
|
+
- Screen inventory (every screen, its purpose, entry points)
|
|
343
|
+
- User flows (key journeys: onboarding, core task, error recovery)
|
|
344
|
+
- Data model (entities, relationships, key attributes)
|
|
345
|
+
|
|
346
|
+
**Visual Designer — Stage 1 (produce first, then pause):**
|
|
347
|
+
- Visual Direction Brief: typography, colour palette, spacing scale, motion principles, visual tone
|
|
348
|
+
|
|
349
|
+
**Gate signal after Stage 1:**
|
|
350
|
+
\`\`\`
|
|
351
|
+
## VDG — Visual Direction Gate
|
|
352
|
+
\`\`\`
|
|
353
|
+
Wait for approval before continuing to Stage 2.
|
|
354
|
+
|
|
355
|
+
**Visual Designer — Stage 2 (after VDG approval):**
|
|
356
|
+
- Design tokens (typography scale, colour tokens, spacing, radius, shadow)
|
|
357
|
+
- Component library (component name, variants, states, usage notes)
|
|
358
|
+
- Screen designs (annotated screens for all key flows)
|
|
359
|
+
|
|
360
|
+
**Content Designer deliverables:**
|
|
361
|
+
- Content strategy (voice, tone, reading levels)
|
|
362
|
+
- Terminology guide (product vocabulary, do/don't pairs)
|
|
363
|
+
- Key content patterns (empty states, errors, success messages)
|
|
364
|
+
|
|
365
|
+
**Final gate signal:**
|
|
366
|
+
\`\`\`
|
|
367
|
+
## D3 — Design Gate
|
|
368
|
+
\`\`\`
|
|
369
|
+
List all artefacts. Wait for approval.`;case"plan":return`You are leading the **Plan phase** as Story Writer.
|
|
370
|
+
|
|
371
|
+
**Deliverables:**
|
|
372
|
+
1. Story map — all features grouped by user journey (columns = journeys, rows = story types)
|
|
373
|
+
2. User stories — for every item in the story map. Format: "As a [user], I want to [action] so that [outcome]." Include acceptance criteria (3–5 per story, testable and specific).
|
|
374
|
+
3. API contracts — for key integrations: endpoint, method, request schema, response schema, error cases
|
|
375
|
+
4. Sprint plan — stories grouped into sprints, ordered by dependency and priority
|
|
376
|
+
|
|
377
|
+
**Rules:**
|
|
378
|
+
- Every spec element from previous phases must be covered by at least one story
|
|
379
|
+
- No stories that weren't in the spec
|
|
380
|
+
- ACs must be testable — no "it should feel" or "it should be easy"
|
|
381
|
+
|
|
382
|
+
**Gate signal:**
|
|
383
|
+
\`\`\`
|
|
384
|
+
## D4 — Planning Gate
|
|
385
|
+
\`\`\`
|
|
386
|
+
List all artefacts. Wait for approval.`;case"deliver":return`You are leading the **Deliver phase** as Builder.
|
|
387
|
+
|
|
388
|
+
**Process:**
|
|
389
|
+
1. Classify all stories from the sprint plan into types: foundation → feature → integration → polish
|
|
390
|
+
2. Build in that order — foundation first, polish last
|
|
391
|
+
3. Follow design tokens and components exactly — no improvisation on visual decisions
|
|
392
|
+
4. After each story type: verify build compiles and core flows work
|
|
393
|
+
5. Produce: integration guide (how to run and configure the app) and changelog
|
|
394
|
+
|
|
395
|
+
**Multi-batch generation rules:**
|
|
396
|
+
- Use a \`## Heading\` for every artifact (component, file, guide, etc.)
|
|
397
|
+
- Generate as many artifacts as you can fit — the system will automatically continue if you run out of space
|
|
398
|
+
- If you are prompted to continue, pick up exactly where you left off — do not restart or repeat already-generated artifacts
|
|
399
|
+
- **Only output \`## R3 — Build Review\` once ALL artifacts for this phase are complete** — not before
|
|
400
|
+
|
|
401
|
+
**Gate signal:**
|
|
402
|
+
\`\`\`
|
|
403
|
+
## R3 — Build Review
|
|
404
|
+
\`\`\`
|
|
405
|
+
Summarise what was built, what was deferred, and any known issues. Wait for sign-off.`;case"measure":return`You are leading the **Measure phase** as Quality Assessor.
|
|
406
|
+
|
|
407
|
+
**Assessment areas:**
|
|
408
|
+
1. Prototype vs research success criteria — does it solve the problems identified in the brief?
|
|
409
|
+
2. Visual QA — does every screen follow the design system (tokens, components, spacing)?
|
|
410
|
+
3. Accessibility audit — keyboard navigation, colour contrast, ARIA labels, focus states
|
|
411
|
+
4. Dead elements — unused components, orphaned screens, placeholder content
|
|
412
|
+
5. UX gap analysis — flows with missing error handling, unclear empty states, ambiguous CTAs
|
|
413
|
+
|
|
414
|
+
**Output:** Quality Assessment Report with findings per area, severity ratings (critical / major / minor), and a clear recommendation: accept, fix and accept, or re-run.
|
|
415
|
+
|
|
416
|
+
**Gate signal:**
|
|
417
|
+
\`\`\`
|
|
418
|
+
## R4 — Quality Sign-off
|
|
419
|
+
\`\`\`
|
|
420
|
+
Present findings and recommendation. Wait for final approval.`;default:return`Execute the ${e.name} phase deliverables according to the Enigma v2 framework.`}}function HN(e,n,r){const s=e.control_mode==="human-in-loop",l=r&&r.length>0?`The following knowledge base files are attached — their full text content is included below:
|
|
421
|
+
|
|
422
|
+
${r.map(u=>`### ${u.name}${u.truncated?" [truncated to token budget]":""}
|
|
423
|
+
${u.content}`).join(`
|
|
424
|
+
|
|
425
|
+
---
|
|
426
|
+
|
|
427
|
+
`)}`:e.kb_files.length>0?`The following files are attached as your knowledge base:
|
|
428
|
+
${e.kb_files.map(u=>`- **${u.name}** (${LN(u.size)})`).join(`
|
|
429
|
+
`)}
|
|
430
|
+
|
|
431
|
+
Reference these files throughout your analysis. If you need the content of a specific file, ask the user to paste it.`:"No knowledge base files have been attached. Work from the project context and ask the user for relevant information as needed.",c=s?"**Control mode: Human-in-loop.** At each gate heading, stop and present your work clearly. The user will review and approve before you continue. Do not proceed past a gate without explicit approval.":"**Control mode: Autonomous.** Work through all deliverables without pausing. Output every required gate heading exactly, and under each gate list the concrete artefacts you produced as explicit backticked paths such as `spec/02-discover/project-brief.md`. Continue immediately after the gate block unless you genuinely cannot proceed without user input.";return{role:"system",content:`You are **Enigma v2** — an AI-powered product design pipeline assistant.
|
|
432
|
+
|
|
433
|
+
## Active Phase
|
|
434
|
+
**${n.name}** (Phase ${n.id} of ${e.preset==="end-to-end"?"7":"4"})
|
|
435
|
+
Agents: ${n.agents.join(", ")}
|
|
436
|
+
|
|
437
|
+
## Project Context
|
|
438
|
+
- **Name:** ${e.name}
|
|
439
|
+
- **Domain:** ${e.domain}
|
|
440
|
+
- **Nature:** ${e.nature==="greenfield"?"Greenfield (new product, starting from scratch)":"Brownfield (existing product, evolving or redesigning)"}
|
|
441
|
+
- **Application type:** ${e.application_type}
|
|
442
|
+
- **Pipeline:** ${e.preset==="end-to-end"?"End-to-End (Research → Ideate → Design → Plan → Build → Measure)":"Research Sprint (Research → Design only, no build phase)"}
|
|
443
|
+
|
|
444
|
+
## Control Mode
|
|
445
|
+
${c}
|
|
446
|
+
|
|
447
|
+
## Knowledge Base
|
|
448
|
+
${l}
|
|
449
|
+
|
|
450
|
+
## Phase Instructions
|
|
451
|
+
${ON(n)}
|
|
452
|
+
|
|
453
|
+
## Response Style
|
|
454
|
+
- Use clear markdown with headers (\`##\`) and bullet lists
|
|
455
|
+
- Be specific — use the project name, domain, and context throughout every response
|
|
456
|
+
- When referencing produced artefacts, use paths as they would appear in \`spec/\` (e.g. \`spec/02-brief.md\`)
|
|
457
|
+
- At each gate, name every produced artefact as a concrete path in backticks so the workspace can track it
|
|
458
|
+
- Keep responses focused on the current phase — do not jump ahead
|
|
459
|
+
- Do not use placeholder names or generic examples — everything must be grounded in this specific project`}}const Pv=[{pattern:/(?:^|\n)#+\s*type[\s-]?selection|choose your path|fast[\s-]?track.*experimental|experimental.*fast[\s-]?track/im,key:"type-selection"},{pattern:/(?:^|\n)#+\s*(?:VDG|visual direction gate)|visual direction brief.*ready/im,key:"VDG"},{pattern:/(?:^|\n)#+\s*concept[\s-]?review|checkpoint[\s-]?1|concepts.*ready.*review/im,key:"checkpoint-1"},{pattern:/(?:^|\n)#+\s*D1[\s—\-]|discovery gate|brief.*ready.*review|research.*brief.*complete/im,key:"D1"},{pattern:/(?:^|\n)#+\s*D2[\s—\-]|ideation gate|north star.*ready.*approval/im,key:"D2"},{pattern:/(?:^|\n)#+\s*D3[\s—\-]|design gate|feature handover.*ready/im,key:"D3"},{pattern:/(?:^|\n)#+\s*D4[\s—\-]|planning gate|sprint plan.*ready.*approval/im,key:"D4"},{pattern:/(?:^|\n)#+\s*R3[\s—\-]|build review|prototype.*ready.*review/im,key:"R3"},{pattern:/(?:^|\n)#+\s*R4[\s—\-]|quality sign[\s-]?off|quality assessment.*complete/im,key:"R4"}];function VN(e){const n=[],r=e.match(/`[a-z0-9_\-/.]+\.[a-z]{2,5}`/gi)??[];n.push(...r.map(l=>l.replace(/`/g,"")));const s=e.match(/(?:^|\n)[•\-*]\s+([A-Z0-9][^:\n]{3,50})/gm)??[];return n.push(...s.map(l=>l.replace(/^[\n•\-*]\s+/,"").trim()).filter(l=>l.length>=4&&l.length<=60).slice(0,6)),[...new Set(n)].slice(0,8)}function zN(e){var r,s;const n=e.split(`
|
|
460
|
+
`).filter(l=>l.trim());for(let l=0;l<n.length-1;l++)if(Pv.some(c=>c.pattern.test(n[l]))){const c=(r=n[l+1])==null?void 0:r.trim();if(c&&c.length>20&&!c.startsWith("#")&&!c.startsWith("---"))return c.replace(/^[*_]{1,2}|[*_]{1,2}$|\-\s*/g,"").slice(0,240)}return((s=n.find(l=>l.length>30&&!l.startsWith("#")&&!l.startsWith("---")))==null?void 0:s.slice(0,240))??""}function BN(e){for(const{pattern:n,key:r}of Pv)if(n.test(e))return{key:r,summary:zN(e),artefacts:VN(e)};return null}function xa(e){return gh(e.current_phase)??jN(e.preset)[0]}function ZN(e,n){const s={D1:e.preset==="research-sprint"?4:3,D2:4,D3:e.preset==="research-sprint"?"complete":5,D4:6,R3:7,R4:"complete","type-selection":e.current_phase,"checkpoint-1":e.current_phase,VDG:e.current_phase}[n];return s===void 0?null:s==="complete"?"complete":s===e.current_phase?xa(e):gh(s)??null}function U4(e,n){const r=xa(e);return HN(e,r,n)}function UN(e,n){return e==="type-selection"?`I choose **${n==="fast-track"?"Fast Track (Type 1)":"Experimental (Type 2)"}**. Please proceed with ideation using this approach.`:e==="VDG"?"Visual direction approved. Please continue with design tokens, component library, and screen designs.":e==="checkpoint-1"?"Concept feedback noted. Please continue refining toward the north star concept.":e==="R3"?"Build approved. Please proceed with quality assessment.":"Approved. Please continue to the next step."}async function PN(e){const n=await fetch(`/api/agents/runs/${encodeURIComponent(e)}`);if(!n.ok){const r=await n.json().catch(()=>({error:"Failed to fetch agent run."}));throw new Error(r.error||"Failed to fetch agent run.")}return n.json()}async function IN(e){const n=await fetch(`/api/agents/runs/${encodeURIComponent(e)}/merge`,{method:"POST",headers:{"Content-Type":"application/json"}});if(!n.ok){const r=await n.json().catch(()=>({error:"Failed to apply agent run."}));throw new Error(r.error||"Failed to apply agent run.")}}async function $N(e){const n=await fetch(`/api/agents/runs/${encodeURIComponent(e)}`,{method:"DELETE"});if(!n.ok&&n.status!==204){const r=await n.json().catch(()=>({error:"Failed to discard agent run."}));throw new Error(r.error||"Failed to discard agent run.")}}function FN(){const e=Sa(M=>M.activeRunId),n=Sa(M=>M.isModalOpen),r=Sa(M=>M.runs),s=Sa(M=>M.setModalOpen),l=Sa(M=>M.discardRun),c=Sa(M=>M.syncRun),u=Sa(M=>M.completeRun),h=Sa(M=>M.failRun),m=d.useRef(null),g=e?r.get(e)??null:null,y=g==null?void 0:g.status,b=(g==null?void 0:g.messages.length)??0;if(d.useEffect(()=>{var M;!n||!g||(M=m.current)==null||M.scrollIntoView({behavior:"smooth"})},[n,g,b]),d.useEffect(()=>{if(!e||!y||y==="completed"||y==="failed")return;const M=window.setInterval(async()=>{try{const A=await PN(e);c(e,{status:A.status,messages:A.messages,artefactSummary:A.artefactSummary,error:A.error??void 0}),A.status==="completed"&&u(e,A.artefactSummary),A.status==="failed"&&A.error&&h(e,A.error)}catch(A){h(e,A instanceof Error?A.message:"Failed to refresh run status.")}},700);return()=>window.clearInterval(M)},[e,u,h,y,c]),!n||!g)return null;const x=()=>{s(!1)},S=async()=>{try{await IN(g.runId),s(!1)}catch(M){h(g.runId,M instanceof Error?M.message:"Failed to apply run.")}},w=()=>{(async()=>{try{await $N(g.runId)}finally{l(g.runId),s(!1)}})()};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"fixed inset-0 bg-black/20 z-50 pointer-events-none"}),v.jsxs("div",{className:"fixed right-0 top-0 bottom-0 w-1/2 bg-canvas border-l-2 border-text-tertiary z-50 flex flex-col overflow-hidden pointer-events-auto",children:[v.jsxs("div",{className:"px-6 py-4 border-b border-text-tertiary bg-surface-primary flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsxs("h2",{className:"text-title-compact font-medium text-text-primary flex items-center gap-2",children:[v.jsx("span",{className:"text-lg",children:"⚙️"}),g.agentName]}),v.jsxs("p",{className:"text-caption text-text-secondary mt-1",children:["Project: ",g.projectSlug," • Run ID: ",g.runId.split("-").pop()]})]}),v.jsx("button",{onClick:x,className:"text-text-tertiary hover:text-text-primary transition-colors text-lg",title:"Close modal",children:"✕"})]}),v.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-4 space-y-4",children:[g.messages.length===0&&g.status==="queued"&&v.jsx("p",{className:"text-body-standard text-text-tertiary text-center py-8",children:"Preparing agent..."}),g.messages.map(M=>v.jsx(Bv,{message:M},M.id)),g.status==="running"&&v.jsx("div",{className:"flex items-center gap-2 py-4",children:v.jsx("span",{className:"text-caption text-text-secondary",children:"Agent is thinking..."})}),g.status==="completed"&&v.jsxs("div",{className:"bg-surface-secondary rounded-lg p-4 mt-4",children:[v.jsxs("p",{className:"text-caption font-medium text-text-primary flex items-center gap-2",children:[v.jsx("span",{children:"✅"}),"Agent run completed"]}),g.artefactSummary&&v.jsxs("div",{className:"mt-3 text-caption text-text-secondary",children:[v.jsx("p",{className:"font-medium mb-1",children:"Generated:"}),v.jsx("ul",{className:"list-disc list-inside space-y-0.5",children:g.artefactSummary.map((M,A)=>v.jsx("li",{children:M},A))})]})]}),g.status==="failed"&&v.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 mt-4",children:[v.jsxs("p",{className:"text-caption font-medium text-red-700 flex items-center gap-2",children:[v.jsx("span",{children:"❌"}),"Agent run failed"]}),g.error&&v.jsx("p",{className:"text-caption text-red-600 mt-2",children:g.error})]}),v.jsx("div",{ref:m})]}),v.jsxs("div",{className:"px-6 py-4 border-t border-text-tertiary bg-surface-primary flex gap-3",children:[v.jsx("button",{onClick:w,className:"flex-1 px-4 py-2 rounded border border-text-secondary text-text-primary hover:bg-surface-secondary transition-colors text-label font-medium",children:"Discard"}),v.jsx("button",{onClick:()=>{},className:"flex-1 px-4 py-2 rounded border border-text-secondary text-text-primary hover:bg-surface-secondary transition-colors text-label font-medium",children:"View Spec"}),v.jsx("button",{onClick:S,disabled:g.status!=="completed",className:"flex-1 px-4 py-2 rounded bg-text-primary text-canvas hover:bg-text-secondary disabled:opacity-50 disabled:cursor-not-allowed transition-colors text-label font-medium",children:"Apply Changes"})]})]})]})}const P4="dx.context.autoCompact",Af=8,GN=8;function qN(){const{slug:e}=b6(),n=yo(),r=At(D=>D.messages),s=At(D=>D.isStreaming),l=At(D=>D.clearStream),c=At(D=>D.appendMessage),u=At(D=>D.updateLastAgent),h=At(D=>D.updateArtifactProgress),m=At(D=>D.setStreaming),g=At(D=>D.setOnGateResolved),y=At(D=>D.setCurrentProjectSlug),b=At(D=>D.saveStreamToStorage),x=At(D=>D.loadStreamFromStorage),S=du(D=>D.saveProjectSession),w=du(D=>D.setCurrentProject),M=zt(D=>D.selectProject),A=zt(D=>D.openContextPanel),j=zt(D=>D.updateProject),C=zt(D=>D.projects.find(J=>J.slug===e)),H=Dn(D=>e?D.jobsByProject[e]??null:null),B=Dn(D=>D.resumeProjectJob),Z=Dn(D=>D.markContextRefreshStarted),ee=Dn(D=>D.markContextRefreshCompleted),re=Dn(D=>D.markContextRefreshDeferred);sa(D=>D.githubToken);const N=sa(D=>D.copilotToken),ce=sa(D=>D.copilotTokenExpiresAt),le=sa(D=>!!D.copilotToken&&D.copilotToken!==D.githubToken),ue=oi(D=>!!D.apiKey),X=le||ue,xe=Va(D=>D.model),me=Va(D=>D.setAvailableModels),ve=Va(D=>D.setDiscoveryLoading),V=Va(D=>D.setDiscoveryError),Q=Va(D=>D.resetAvailableModels),G=Tu(D=>D.addUsage),de=Tu(D=>D.reset),we=Ls(D=>D.upsertArtifacts),k=Ls(D=>D.finalizeProjectArtifacts),F=zt(D=>D.contextPanelOpen),ie=zt(D=>D.contextPanelContent),be=zt(D=>D.closeContextPanel),[ge,ke]=d.useState(null),[K,ze]=d.useState(()=>Date.now()),[je,xt]=d.useState(()=>{try{return localStorage.getItem(P4)!=="0"}catch{return!0}}),Et=d.useRef(""),xn=d.useRef(!1),fe=d.useRef(!1),Ie=d.useRef(null),qe=d.useRef(null),Tt=d.useRef(0),Zt=d.useRef(new Set),Ut=d.useRef(new Set),en=d.useRef(null),En=d.useRef(0),Ca=d.useRef(C);d.useEffect(()=>{Ca.current=C},[C]);const Pa=d.useRef(xe);d.useEffect(()=>{Pa.current=xe},[xe]);const[Ia,Ot]=d.useState([]),mn=d.useRef([]),bn=d.useRef("");d.useEffect(()=>{if(!e||!C)return;const D=`${e}:${C.kb_files.length}:${C.current_phase??0}`;if(bn.current===D)return;if(bn.current=D,C.kb_files.length===0){Ot([]),mn.current=[];return}const J=xa(C),ye=`Phase: ${J.name} — ${J.key}`;zg(e,ye).then(R=>{if(R){const _=[{name:"knowledge-base",content:R.context,truncated:!1}];Ot(_),mn.current=_}else FS(e).then(_=>{Ot(_),mn.current=_}).catch(()=>{})}).catch(()=>{})},[e,C==null?void 0:C.kb_files.length,C==null?void 0:C.current_phase]);const Xn=ge?Math.max(0,Math.ceil((ge-K)/1e3)):0,On=Xn>0;d.useEffect(()=>{try{localStorage.setItem(P4,je?"1":"0")}catch{}},[je]),d.useEffect(()=>{if(!ge)return;const D=window.setInterval(()=>{ze(Date.now())},1e3);return()=>window.clearInterval(D)},[ge]),d.useEffect(()=>{ge&&Date.now()>=ge&&ke(null)},[K,ge]);function Hn(D){return D instanceof Error?/\(429\)|rate limit|too many requests/i.test(D.message):!1}const Sn=d.useCallback(async(D=!1)=>{if(!N){const J=oi.getState();if(J.provider&&J.apiKey){me({openai:[{id:"gpt-4o",label:"GPT-4o",vendor:"openai"},{id:"gpt-4o-mini",label:"GPT-4o Mini",vendor:"openai"},{id:"gpt-4.1",label:"GPT-4.1",vendor:"openai"},{id:"gpt-4.1-mini",label:"GPT-4.1 Mini",vendor:"openai"},{id:"o4-mini",label:"o4-mini",vendor:"openai"},{id:"o3-mini",label:"o3-mini",vendor:"openai"}],anthropic:[{id:"claude-3-5-sonnet-20241022",label:"Claude 3.5 Sonnet",vendor:"anthropic"},{id:"claude-3-5-haiku-20241022",label:"Claude 3.5 Haiku",vendor:"anthropic"},{id:"claude-3-opus-20240229",label:"Claude 3 Opus",vendor:"anthropic"}]}[J.provider]??[]);return}Q();return}ve();try{const J=await MN(N,{forceRefresh:D});if(J.length===0){V("Copilot returned no models for this account.");return}me(J)}catch(J){const ye=J instanceof Error?J.message:"Copilot model discovery failed.";console.warn("[copilot-models]",ye),V(ye)}},[N,Q,me,V,ve]);d.useEffect(()=>{let D=!1;return(async()=>D||await Sn(!1))(),()=>{D=!0}},[N,ce,Sn]);function ar(D=20){return At.getState().messages.filter(J=>J.type==="user"||J.type==="agent"||J.type==="artifact-progress").slice(-D).map(J=>({role:J.type==="user"?"user":"assistant",content:J.content??""}))}const Rr=d.useCallback((D="manual")=>{const ye=At.getState().messages,R=ye.filter(_e=>_e.type==="user"||_e.type==="agent");if(R.length<=Af)return D==="manual"&&c({id:crypto.randomUUID(),type:"system",timestamp:Date.now(),content:"Context is already compact enough. No older turns were compressed."}),!1;const _=R.length-Af;let U=0,W=-1,he=0;const Ee=[],pe=[];for(const _e of ye){if(!(_e.type==="user"||_e.type==="agent")){pe.push(_e);continue}U<_?(W===-1&&(W=pe.length),he+=1,Ee.push(_e)):pe.push(_e),U+=1}const Ce=Ee.slice(-12).map(_e=>{const Re=_e.type==="user"?"User":"Assistant",Ue=(_e.content??"").replace(/\s+/g," ").trim(),$e=Ue.length>140?`${Ue.slice(0,140)}...`:Ue;return`- ${Re}: ${$e}`}),Me={id:crypto.randomUUID(),type:"system",timestamp:Date.now(),content:[`Context compacted (${D}).`,`Compressed ${he} older turns and kept the latest ${Af}.`,"Recent compacted context snapshot:",...Ce].join(`
|
|
461
|
+
`)},Te=W===-1?0:W;return pe.splice(Te,0,Me),At.setState({messages:pe}),!0},[c]),Vn=d.useMemo(()=>{if(!C)return{requestBytes:0,budgetBytes:Gc,ratio:0};const D=U4(C,Ia.length>0?Ia:void 0),J=r.filter(R=>R.type==="user"||R.type==="agent").map(R=>({role:R.type==="user"?"user":"assistant",content:R.content??""})),ye=z4([D,...J,{role:"user",content:"(next prompt)"}],Pa.current);return{requestBytes:ye,budgetBytes:Gc,ratio:ye/Gc}},[r,C,Ia]);function tn(D){const J=xa(D),ye=Gl(Et.current,J,D.slug,!1),R=Gl(Et.current,J,D.slug,!0);if(R.length>0&&we(D.slug,R),Ie.current){const _=ye.map(U=>({id:U.id,title:U.title,status:U.isStreaming?"generating":"done"}));h(Ie.current,_)}}function Xt(D,J,ye){Et.current+=D;const R=Et.current;if(R.startsWith("## ")||R.includes(`
|
|
462
|
+
## `)){if(!Ie.current){const U=R.indexOf(`
|
|
463
|
+
## `),W=U>0?R.slice(0,U).trim():"",he=crypto.randomUUID();Ie.current=he;const Ee=xa(ye);At.setState(pe=>({messages:pe.messages.filter(Ce=>Ce.id!==J&&!(Ce.type==="agent"&&!Ce.agentName))})),c({id:he,type:"artifact-progress",timestamp:Date.now(),phaseNumber:Ee.id,phaseName:Ee.name,phaseColor:Ee.color,artifactProgress:[],agentNote:W||void 0}),xn.current=!0}tn(ye)}else xn.current?u(Et.current):(At.setState(U=>({messages:U.messages.filter(W=>W.id!==J)})),c({id:crypto.randomUUID(),type:"agent",timestamp:Date.now(),content:Et.current}),xn.current=!0)}function sn(D,J){At.setState(ye=>({messages:ye.messages.filter(R=>R.id!==J)})),m(!1),c({id:crypto.randomUUID(),type:"system",timestamp:Date.now(),content:D instanceof Error?D.message:"Something went wrong. Please try again."})}function Cr(D){if(!D||fe.current)return;const J=BN(Et.current);if(!J)return;fe.current=!0;const ye=DN(D.current_phase,J.key),R=xa(D);if(D.control_mode==="autonomous"){!At.getState().messages.some(W=>W.type==="agent")&&Et.current&&c({id:crypto.randomUUID(),type:"agent",timestamp:Date.now(),content:Et.current});const U=J.key==="type-selection"?"fast-track":void 0;oa(J.key,U,D,J.artefacts)}else c({id:crypto.randomUUID(),type:"gate",timestamp:Date.now(),gateKey:J.key,gateSummary:J.summary??void 0,gateStatus:"pending",summaryArtefacts:J.artefacts,phaseNumber:R.id,phaseName:R.name,phaseColor:R.color,gateVariant:(ye==null?void 0:ye.variant)??"standard",gateNextStep:ye==null?void 0:ye.nextStep})}const oa=d.useCallback((D,J,ye,R)=>{const _=ye??Ca.current;if(!_)return;const U=R??At.getState().messages.filter(Me=>Me.type==="gate"&&Me.gateKey===D).flatMap(Me=>Me.summaryArtefacts??[]),W=xa(_),he=ZN(_,D);if(c({id:crypto.randomUUID(),type:"phase-summary",timestamp:Date.now(),phaseNumber:W.id,phaseName:W.name,phaseColor:W.color,summaryArtefacts:U}),he==="complete"){j(_.slug,{status:"complete"}),c({id:crypto.randomUUID(),type:"system",timestamp:Date.now(),content:"Project complete. All phases finished."});return}const Ee=he;Ee&&Ee.id!==W.id&&(En.current=0,j(_.slug,{current_phase:Ee.id}),c({id:crypto.randomUUID(),type:"phase-transition",timestamp:Date.now()+1,phaseNumber:Ee.id,phaseName:Ee.name,phaseColor:Ee.color,direction:"entering"}));const pe=UN(D,J),Ce=Ee&&Ee.id!==W.id?{..._,current_phase:Ee.id}:_;zn(Ce,pe,!0)},[]);async function zn(D,J,ye=!1,R){var Te,_e;Et.current="",xn.current=!1,fe.current=!1,Ie.current=null,en.current=null,qe.current=new AbortController,ye||(En.current=0);const _=crypto.randomUUID();c({id:_,type:"thinking",timestamp:Date.now(),thinkingText:ye?"Continuing…":"Processing…",thinkingProgress:15}),m(!0),ze(Date.now());let U="",W=null,he=0;const Ee=150,pe=()=>{if(!U)return;const Re=U;U="",he=Date.now(),Xt(Re,_,D)},Ce=()=>{W!==null&&(window.clearTimeout(W),W=null)},Me=()=>{if(W!==null)return;const Re=U.includes(`
|
|
464
|
+
`),Ue=Date.now()-he,$e=Re?0:Math.max(0,Ee-Ue);W=window.setTimeout(()=>{W=null,pe()},$e)};try{const{provider:Re,apiKey:Ue}=oi.getState(),$e=!!Re&&!!Ue;let yt="";if($e||(yt=await Ig()),D.kb_files.length>0&&e){const te=ye?`Phase: ${xa(D).name} — ${xa(D).key}`:J.slice(0,500);zg(e,te).then(Ne=>{Ne&&(mn.current=[{name:"knowledge-base",content:Ne.context,truncated:!1}])}).catch(()=>{})}const nt=U4(D,mn.current.length>0?mn.current:void 0),Nt=20;let Qe=(R==null?void 0:R.includeHistory)===!1?[]:ar(Nt);if((R==null?void 0:R.includeHistory)!==!1){const te=z4([nt,...Qe,{role:"user",content:J}],Pa.current);je&&te>Gc&&Rr("auto")&&(Qe=ar(Nt))}const Ht=Pa.current,St=xa(D),Qn=St.id===6||St.id===7?16e3:4096,pn=[nt,...Qe,{role:"user",content:J}],Kt=()=>{var te;if(Ce(),pe(),qe.current=null,m(!1),tn(D),k(D.slug),Ie.current){const Ne=xa(D),Pe=Gl(Et.current,Ne,D.slug,!1),et=Gl(Et.current,Ne,D.slug,!0);h(Ie.current,Pe.map(at=>({id:at.id,title:at.title,status:"done"})));const gt=Ie.current,Ve=Pe.length>0?`[${Ne.name} build — generated ${Pe.length} artifact(s):
|
|
465
|
+
${Pe.map(at=>`- ${at.title}`).join(`
|
|
466
|
+
`)}]`:`[${Ne.name} build batch complete]`;At.setState(at=>({messages:at.messages.map(Pt=>Pt.id===gt?{...Pt,content:Ve}:Pt)})),et.length>0&&we(D.slug,et)}Cr(D),(te=R==null?void 0:R.onComplete)==null||te.call(R)};$e?await RN(pn,Re,Ue,te=>{U+=te,W!==null&&U.includes(`
|
|
467
|
+
`)&&Ce(),Me()},Kt,Ht,te=>G(te.prompt_tokens,te.completion_tokens,Ht),qe.current.signal,Qn):await TN(pn,yt,te=>{U+=te,W!==null&&U.includes(`
|
|
468
|
+
`)&&Ce(),Me()},Kt,Ht,te=>G(te.prompt_tokens,te.completion_tokens,Ht),qe.current.signal,()=>Ig(!0),Qn,()=>{if(fe.current)return;const te=xa(D),Pe=(Ie.current?Gl(Et.current,te,D.slug,!1):[]).map(Ve=>Ve.title),et=Pe.length>0?`
|
|
469
|
+
|
|
470
|
+
Already completed:
|
|
471
|
+
${Pe.map(Ve=>`- ${Ve}`).join(`
|
|
472
|
+
`)}`:"",gt=te.id===6?"## R3 — Build Review":te.id===7?"## R4 — Quality Sign-off":te.id===2?"## D1":te.id===3?"## D2":te.id===4?"## D3":te.id===5?"## D4":null;if(En.current<GN){En.current+=1;const Ve=Ie.current?`Continue generating the remaining ${te.name} phase artifacts from where you left off.${et}
|
|
473
|
+
|
|
474
|
+
Pick up with the next artifact. When ALL artifacts for this phase are complete, output:
|
|
475
|
+
${gt??"the phase completion gate"}`:`Continue your response for the ${te.name} phase from where you left off. When the phase is complete, output the gate signal: ${gt??"the appropriate gate heading"}`;zn(D,Ve,!0)}else{const Ve=gt?`Wrap up the ${te.name} phase now.${et}
|
|
476
|
+
|
|
477
|
+
Output the phase completion gate:
|
|
478
|
+
|
|
479
|
+
${gt}
|
|
480
|
+
|
|
481
|
+
Summarise what was completed, what was deferred, and any known issues.`:`The ${te.name} phase has reached the continuation limit. Please summarise what was completed and indicate the next step.`;zn(D,Ve,!0)}})}catch(Re){if(Ce(),pe(),qe.current=null,Re instanceof DOMException&&Re.name==="AbortError"){At.setState(Ue=>({messages:Ue.messages.filter($e=>$e.id!==_)})),m(!1),c({id:crypto.randomUUID(),type:"system",timestamp:Date.now(),content:"Run paused. Add instructions when ready, then continue from the current project state."}),(Te=R==null?void 0:R.onAbort)==null||Te.call(R);return}Hn(Re)&&(en.current=()=>{zn(D,J,ye,R)},ke(Date.now()+2e4)),(_e=R==null?void 0:R.onError)==null||_e.call(R),sn(Re,_)}}d.useEffect(()=>{const D=r.filter(J=>J.type==="phase-summary"||J.type==="gate").flatMap(J=>J.summaryArtefacts??[]).filter((J,ye,R)=>R.indexOf(J)===ye).length;D>0&&Tt.current===0&&A("artefacts"),Tt.current=D},[r,A]);const ca=Ls(D=>D.byProject),Pn=((e?ca[e]:void 0)??[]).some(D=>D.isStreaming),nn=d.useRef(!1);d.useEffect(()=>{Pn&&!nn.current&&A("artefacts"),nn.current=Pn},[Pn,A]),d.useEffect(()=>{e&&B(e)},[B,e]),d.useEffect(()=>{if(!e||(M(e),y(e),w(e),de(),!C))return;if(C.status==="onboarding"){n(`/setup/${e}`,{replace:!0});return}x(e)||l()},[e,n]),d.useEffect(()=>{if(!e||!C||!X||r.length>0||C.status==="onboarding"||C.status==="complete"||H!=null&&H.contextRefreshPending&&H.autoApplyToContext||Zt.current.has(e)||At.getState().isStreaming)return;Zt.current.add(e);const D="Proceed with the current phase and produce the next best output based on the project context.";c({id:crypto.randomUUID(),type:"user",timestamp:Date.now(),content:"Proceed with the current phase."}),zn(C,D,!0)},[c,X,s,H,r.length,C,e]),d.useEffect(()=>{const D=()=>{e&&(b(e),S(e,{messages:At.getState().messages,isStreaming:At.getState().isStreaming,activeGateKey:At.getState().activeGateKey,inputDraft:At.getState().inputDraft,currentPhaseNumber:(C==null?void 0:C.current_phase)??0}))};return window.addEventListener("beforeunload",D),()=>{window.removeEventListener("beforeunload",D),D()}},[e,C,b,S]),d.useEffect(()=>{e&&(b(e),S(e,{messages:r,isStreaming:s,activeGateKey:At.getState().activeGateKey,inputDraft:At.getState().inputDraft,currentPhaseNumber:(C==null?void 0:C.current_phase)??0}))},[e,r,s,C,S,b]),d.useEffect(()=>(g((D,J,ye)=>{J==="approved"&&oa(D,ye)}),()=>g(null)),[oa,g]),d.useEffect(()=>{if(!C||!H||H.status!=="ready"||!H.contextRefreshPending||!H.autoApplyToContext||!X||C.kb_files.length===0||Ut.current.has(C.slug)||At.getState().isStreaming)return;const D=["Refresh the project context from the currently attached knowledge base files.","Rebuild the knowledge base extraction ledger, note any additions or removals reflected by the current file list, and use that refreshed context for subsequent work.","Current project selections:",`- Project name: ${C.name}`,`- Domain: ${C.domain}`,`- Product nature: ${C.nature}`,`- Application type: ${C.application_type}`,`- Preset: ${C.preset}`,`- Control mode: ${C.control_mode}`,`- Current phase: ${C.current_phase}`].join(`
|
|
482
|
+
`);Ut.current.add(C.slug),Z(C.slug),A("kb"),c({id:crypto.randomUUID(),type:"user",timestamp:Date.now(),content:"Apply the prepared KB package to the active project context."}),zn(C,D,!0,{onComplete:()=>{Ut.current.delete(C.slug),ee(C.slug);const J=Ca.current;if(J&&J.status!=="onboarding"&&J.status!=="complete"){const ye="Proceed with the current phase and produce the next best output based on the project context.";c({id:crypto.randomUUID(),type:"user",timestamp:Date.now(),content:"Proceed with the current phase."}),zn(J,ye,!0)}},onAbort:()=>{Ut.current.delete(C.slug),re(C.slug,"KB package is ready, but project-context refresh was paused.")},onError:()=>{Ut.current.delete(C.slug),re(C.slug,"KB package is ready, but project-context refresh failed.")},includeHistory:!1})},[c,X,s,H,ee,re,Z,A,C]);async function O(D){C&&(c({id:crypto.randomUUID(),type:"user",timestamp:Date.now(),content:D}),await zn(C,D))}function ae(){var D;(D=qe.current)==null||D.abort()}const Se=(C==null?void 0:C.kb_files.length)??0,Ze=Se===0?"Knowledge Base":`Knowledge Base · ${Se} file${Se===1?"":"s"}`,ft=Vn.budgetBytes>0?Vn.requestBytes/Vn.budgetBytes:0,ht=ft>=1?"critical":ft>=.8?"warn":"safe";return v.jsxs(v.Fragment,{children:[v.jsx(rN,{messages:r}),X?v.jsxs("div",{className:"flex-shrink-0",children:[v.jsxs("div",{className:"mx-auto max-w-[720px] px-4 flex items-center justify-between pt-1",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("button",{type:"button",onClick:()=>F&&ie==="kb"?be():A("kb"),"aria-label":Ze,title:Ze,"aria-pressed":F&&ie==="kb",className:["inline-flex items-center gap-1.5 rounded-card border px-3 py-1.5 text-small font-medium transition-all duration-100 hover:-translate-y-0.5 hover:shadow-hover-subtle",F&&ie==="kb"?"border-text-tertiary bg-border-secondary text-text-primary":"border-border text-text-secondary hover:text-text-primary"].join(" "),children:[v.jsx(cu,{size:14,"aria-hidden":"true"}),v.jsx("span",{className:"truncate max-w-[220px]",children:Ze})]}),s&&v.jsx(Tr,{variant:"secondary",size:"sm",onClick:ae,children:"Stop & Add Instructions"})]}),v.jsx("div",{className:"flex items-center gap-2",children:v.jsx(fN,{})})]}),ge&&v.jsx("div",{className:"mx-auto mt-2 max-w-[720px] px-4",children:v.jsxs("div",{className:"rounded-card border border-border bg-card px-3 py-2 text-small text-text-secondary flex items-center justify-between gap-3",children:[v.jsxs("span",{children:["Copilot is rate-limited."," ",On?`Retry available in ${Xn}s.`:"You can retry now."]}),v.jsx(Tr,{variant:"secondary",size:"sm",disabled:On||!en.current||s,onClick:()=>{var D;ke(null),(D=en.current)==null||D.call(en)},children:"Retry"})]})}),v.jsx(iN,{onSubmit:O,disabled:s||On,adornmentLeft:v.jsx(mN,{contextRatio:ft,contextStatus:ht,autoCompact:je,onAutoCompactChange:xt,onCompactNow:()=>Rr("manual"),isStreaming:s})})]}):v.jsxs("div",{className:"flex flex-col items-center gap-4",children:[v.jsx(lN,{}),v.jsxs("div",{className:"flex items-center gap-3 text-small text-text-tertiary",children:[v.jsx("span",{className:"h-px w-16 bg-border-primary"}),"or",v.jsx("span",{className:"h-px w-16 bg-border-primary"})]}),v.jsx(oN,{})]}),v.jsx(FN,{})]})}function KN(){return v.jsx(gk,{children:v.jsx(FE,{})})}const YN=g9([{element:v.jsx(KN,{}),children:[{path:"/",element:v.jsx(wk,{})},{path:"/setup",element:v.jsx(C4,{})},{path:"/setup/:slug",element:v.jsx(C4,{})},{path:"/project/:slug",element:v.jsx(qN,{})}]}]),XN=600*1e3;function QN(){const[e,n]=d.useState(null),[r,s]=d.useState(!1),[l,c]=d.useState(!1),u=d.useRef(null);async function h(){try{const g=await fetch("/api/update-available");if(!g.ok)return;const y=await g.json();y.available&&y.latest&&y.current&&n({available:!0,latest:y.latest,current:y.current})}catch{}}if(d.useEffect(()=>{const g=setTimeout(()=>void h(),5e3);return u.current=setInterval(()=>void h(),XN),()=>{clearTimeout(g),u.current&&clearInterval(u.current)}},[]),!e||r)return null;async function m(){c(!0);try{await fetch("/api/relaunch",{method:"POST"}),setTimeout(()=>window.location.reload(),2e3)}catch{c(!1)}}return v.jsxs("div",{role:"status","aria-live":"polite",className:"fixed bottom-4 left-1/2 -translate-x-1/2 z-50 flex items-center gap-3 px-4 py-3 rounded-card border border-lemon-500 bg-lemon-800 text-text-primary shadow-lg",children:[v.jsx(hS,{size:14,className:"text-lemon-400 flex-shrink-0","aria-hidden":"true"}),v.jsxs("p",{className:"text-small",children:[v.jsxs("span",{className:"font-medium",children:["DesignX ",e.latest," is available"]}),v.jsxs("span",{className:"text-text-secondary",children:[" — you are on ",e.current]})]}),v.jsx("button",{type:"button",onClick:()=>void m(),disabled:l,className:"ml-1 px-2.5 py-1 rounded-card bg-lemon-500 text-lemon-800 text-small font-medium hover:bg-lemon-400 transition-colors disabled:opacity-60",children:l?"Relaunching…":"Relaunch to update"}),v.jsx("button",{type:"button","aria-label":"Dismiss update notification",onClick:()=>s(!0),className:"ml-1 text-text-tertiary hover:text-text-primary transition-colors",children:v.jsx(A1,{size:12,"aria-hidden":"true"})})]})}function JN(){const e=d.useRef(!1);d.useEffect(()=>{e.current||(e.current=!0,(async()=>{const n=await BS();if(GS().then(m=>{m!=null&&m.copilotToken&&!sa.getState().copilotToken&&sa.getState().setAuth(m.githubToken??"",m.copilotToken,m.copilotTokenExpiresAt??0,m.user)}).catch(()=>{}),YS().then(m=>{m&&Tu.getState().seedAllTime(m)}).catch(()=>{}),n.length===0)return;const r=py(),s=n.filter(m=>!r.has(m.slug)),l=zt.getState().projects,c=[...s,...l.filter(m=>!s.find(g=>g.slug===m.slug))],u=s.map(m=>m.slug).sort().join(),h=l.map(m=>m.slug).sort().join();if(u!==h){zt.setState({projects:c});try{localStorage.setItem("enigma_projects",JSON.stringify(c))}catch{}}})())},[])}function WN(){return JN(),v.jsxs(v.Fragment,{children:[v.jsx(k9,{router:YN}),v.jsx(QN,{})]})}a5.createRoot(document.getElementById("root")).render(v.jsx(d.StrictMode,{children:v.jsx(WN,{})}));export{ok as a,A1 as b,NS as c,t_ as d,I4 as e,n_ as g,v as j,pS as n,st as p,d as r,Os as s};
|