@studioindia/designx 1.0.2 → 1.0.4
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/README.md +4 -4
- package/bin/designx.js +2 -2
- package/dist/assets/{AppPreviewPanel-r56nQGPH.js → AppPreviewPanel-BHaogGvG.js} +1 -1
- package/dist/assets/index-B4DsP2aY.js +415 -0
- package/dist/assets/{index-CAWjWFwD.js → index-BSj8C6Y3.js} +1 -1
- package/dist/assets/index-CQNunw04.css +10 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/server.cjs +271 -1
- package/dist/assets/index-CBUxOHiU.js +0 -406
- package/dist/assets/index-vZi_8zoX.css +0 -10
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
function Gx(t,a){for(var i=0;i<a.length;i++){const s=a[i];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const c=Object.getOwnPropertyDescriptor(s,o);c&&Object.defineProperty(t,o,c.get?c:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)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 i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var gN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a4(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yN(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var a=t.default;if(typeof a=="function"){var i=function s(){return this instanceof s?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};i.prototype=a.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(i,s,o.get?o:{enumerable:!0,get:function(){return t[s]}})}),i}var b0={exports:{}},wl={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var p2;function $x(){if(p2)return wl;p2=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(s,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var h in o)h!=="key"&&(c[h]=o[h])}else c=o;return o=c.ref,{$$typeof:t,type:s,key:u,ref:o!==void 0?o:null,props:c}}return wl.Fragment=a,wl.jsx=i,wl.jsxs=i,wl}var g2;function qx(){return g2||(g2=1,b0.exports=$x()),b0.exports}var y=qx(),v0={exports:{}},tt={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var y2;function Kx(){if(y2)return tt;y2=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),E=Symbol.iterator;function S(R){return R===null||typeof R!="object"?null:(R=E&&R[E]||R["@@iterator"],typeof R=="function"?R:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,M={};function j(R,q,ce){this.props=R,this.context=q,this.refs=M,this.updater=ce||w}j.prototype.isReactComponent={},j.prototype.setState=function(R,q){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,q,"setState")},j.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function C(){}C.prototype=j.prototype;function D(R,q,ce){this.props=R,this.context=q,this.refs=M,this.updater=ce||w}var H=D.prototype=new C;H.constructor=D,T(H,j.prototype),H.isPureReactComponent=!0;var U=Array.isArray;function te(){}var ne={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function ae(R,q,ce){var ye=ce.ref;return{$$typeof:t,type:R,key:q,ref:ye!==void 0?ye:null,props:ce}}function ie(R,q){return ae(R.type,q,R.props)}function oe(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function J(R){var q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ce){return q[ce]})}var ge=/\/+/g;function he(R,q){return typeof R=="object"&&R!==null&&R.key!=null?J(""+R.key):q.toString(36)}function xe(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(te,te):(R.status="pending",R.then(function(q){R.status==="pending"&&(R.status="fulfilled",R.value=q)},function(q){R.status==="pending"&&(R.status="rejected",R.reason=q)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function V(R,q,ce,ye,Se){var Re=typeof R;(Re==="undefined"||Re==="boolean")&&(R=null);var $=!1;if(R===null)$=!0;else switch(Re){case"bigint":case"string":case"number":$=!0;break;case"object":switch(R.$$typeof){case t:case a:$=!0;break;case b:return $=R._init,V($(R._payload),q,ce,ye,Se)}}if($)return Se=Se(R),$=ye===""?"."+he(R,0):ye,U(Se)?(ce="",$!=null&&(ce=$.replace(ge,"$&/")+"/"),V(Se,q,ce,"",function(ot){return ot})):Se!=null&&(oe(Se)&&(Se=ie(Se,ce+(Se.key==null||R&&R.key===Se.key?"":(""+Se.key).replace(ge,"$&/")+"/")+$)),q.push(Se)),1;$=0;var Ze=ye===""?".":ye+":";if(U(R))for(var Oe=0;Oe<R.length;Oe++)ye=R[Oe],Re=Ze+he(ye,Oe),$+=V(ye,q,ce,Re,Se);else if(Oe=S(R),typeof Oe=="function")for(R=Oe.call(R),Oe=0;!(ye=R.next()).done;)ye=ye.value,Re=Ze+he(ye,Oe++),$+=V(ye,q,ce,Re,Se);else if(Re==="object"){if(typeof R.then=="function")return V(xe(R),q,ce,ye,Se);throw q=String(R),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return $}function Q(R,q,ce){if(R==null)return R;var ye=[],Se=0;return V(R,ye,"","",function(Re){return q.call(ce,Re,Se++)}),ye}function K(R){if(R._status===-1){var q=R._result;q=q(),q.then(function(ce){(R._status===0||R._status===-1)&&(R._status=1,R._result=ce)},function(ce){(R._status===0||R._status===-1)&&(R._status=2,R._result=ce)}),R._status===-1&&(R._status=0,R._result=q)}if(R._status===1)return R._result.default;throw R._result}var de=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},we={map:Q,forEach:function(R,q,ce){Q(R,function(){q.apply(this,arguments)},ce)},count:function(R){var q=0;return Q(R,function(){q++}),q},toArray:function(R){return Q(R,function(q){return q})||[]},only:function(R){if(!oe(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return tt.Activity=v,tt.Children=we,tt.Component=j,tt.Fragment=i,tt.Profiler=o,tt.PureComponent=D,tt.StrictMode=s,tt.Suspense=g,tt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ne,tt.__COMPILER_RUNTIME={__proto__:null,c:function(R){return ne.H.useMemoCache(R)}},tt.cache=function(R){return function(){return R.apply(null,arguments)}},tt.cacheSignal=function(){return null},tt.cloneElement=function(R,q,ce){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var ye=T({},R.props),Se=R.key;if(q!=null)for(Re in q.key!==void 0&&(Se=""+q.key),q)!_.call(q,Re)||Re==="key"||Re==="__self"||Re==="__source"||Re==="ref"&&q.ref===void 0||(ye[Re]=q[Re]);var Re=arguments.length-2;if(Re===1)ye.children=ce;else if(1<Re){for(var $=Array(Re),Ze=0;Ze<Re;Ze++)$[Ze]=arguments[Ze+2];ye.children=$}return ae(R.type,Se,ye)},tt.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},tt.createElement=function(R,q,ce){var ye,Se={},Re=null;if(q!=null)for(ye in q.key!==void 0&&(Re=""+q.key),q)_.call(q,ye)&&ye!=="key"&&ye!=="__self"&&ye!=="__source"&&(Se[ye]=q[ye]);var $=arguments.length-2;if($===1)Se.children=ce;else if(1<$){for(var Ze=Array($),Oe=0;Oe<$;Oe++)Ze[Oe]=arguments[Oe+2];Se.children=Ze}if(R&&R.defaultProps)for(ye in $=R.defaultProps,$)Se[ye]===void 0&&(Se[ye]=$[ye]);return ae(R,Re,Se)},tt.createRef=function(){return{current:null}},tt.forwardRef=function(R){return{$$typeof:h,render:R}},tt.isValidElement=oe,tt.lazy=function(R){return{$$typeof:b,_payload:{_status:-1,_result:R},_init:K}},tt.memo=function(R,q){return{$$typeof:p,type:R,compare:q===void 0?null:q}},tt.startTransition=function(R){var q=ne.T,ce={};ne.T=ce;try{var ye=R(),Se=ne.S;Se!==null&&Se(ce,ye),typeof ye=="object"&&ye!==null&&typeof ye.then=="function"&&ye.then(te,de)}catch(Re){de(Re)}finally{q!==null&&ce.types!==null&&(q.types=ce.types),ne.T=q}},tt.unstable_useCacheRefresh=function(){return ne.H.useCacheRefresh()},tt.use=function(R){return ne.H.use(R)},tt.useActionState=function(R,q,ce){return ne.H.useActionState(R,q,ce)},tt.useCallback=function(R,q){return ne.H.useCallback(R,q)},tt.useContext=function(R){return ne.H.useContext(R)},tt.useDebugValue=function(){},tt.useDeferredValue=function(R,q){return ne.H.useDeferredValue(R,q)},tt.useEffect=function(R,q){return ne.H.useEffect(R,q)},tt.useEffectEvent=function(R){return ne.H.useEffectEvent(R)},tt.useId=function(){return ne.H.useId()},tt.useImperativeHandle=function(R,q,ce){return ne.H.useImperativeHandle(R,q,ce)},tt.useInsertionEffect=function(R,q){return ne.H.useInsertionEffect(R,q)},tt.useLayoutEffect=function(R,q){return ne.H.useLayoutEffect(R,q)},tt.useMemo=function(R,q){return ne.H.useMemo(R,q)},tt.useOptimistic=function(R,q){return ne.H.useOptimistic(R,q)},tt.useReducer=function(R,q,ce){return ne.H.useReducer(R,q,ce)},tt.useRef=function(R){return ne.H.useRef(R)},tt.useState=function(R){return ne.H.useState(R)},tt.useSyncExternalStore=function(R,q,ce){return ne.H.useSyncExternalStore(R,q,ce)},tt.useTransition=function(){return ne.H.useTransition()},tt.version="19.2.5",tt}var b2;function Bf(){return b2||(b2=1,v0.exports=Kx()),v0.exports}var d=Bf();const xs=a4(d),Yx=Gx({__proto__:null,default:xs},[d]);var x0={exports:{}},Al={},E0={exports:{}},S0={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var v2;function Xx(){return v2||(v2=1,(function(t){function a(V,Q){var K=V.length;V.push(Q);e:for(;0<K;){var de=K-1>>>1,we=V[de];if(0<o(we,Q))V[de]=Q,V[K]=we,K=de;else break e}}function i(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var Q=V[0],K=V.pop();if(K!==Q){V[0]=K;e:for(var de=0,we=V.length,R=we>>>1;de<R;){var q=2*(de+1)-1,ce=V[q],ye=q+1,Se=V[ye];if(0>o(ce,K))ye<we&&0>o(Se,ce)?(V[de]=Se,V[ye]=K,de=ye):(V[de]=ce,V[q]=K,de=q);else if(ye<we&&0>o(Se,K))V[de]=Se,V[ye]=K,de=ye;else break e}}return Q}function o(V,Q){var K=V.sortIndex-Q.sortIndex;return K!==0?K:V.id-Q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,h=u.now();t.unstable_now=function(){return u.now()-h}}var g=[],p=[],b=1,v=null,E=3,S=!1,w=!1,T=!1,M=!1,j=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function H(V){for(var Q=i(p);Q!==null;){if(Q.callback===null)s(p);else if(Q.startTime<=V)s(p),Q.sortIndex=Q.expirationTime,a(g,Q);else break;Q=i(p)}}function U(V){if(T=!1,H(V),!w)if(i(g)!==null)w=!0,te||(te=!0,J());else{var Q=i(p);Q!==null&&xe(U,Q.startTime-V)}}var te=!1,ne=-1,_=5,ae=-1;function ie(){return M?!0:!(t.unstable_now()-ae<_)}function oe(){if(M=!1,te){var V=t.unstable_now();ae=V;var Q=!0;try{e:{w=!1,T&&(T=!1,C(ne),ne=-1),S=!0;var K=E;try{t:{for(H(V),v=i(g);v!==null&&!(v.expirationTime>V&&ie());){var de=v.callback;if(typeof de=="function"){v.callback=null,E=v.priorityLevel;var we=de(v.expirationTime<=V);if(V=t.unstable_now(),typeof we=="function"){v.callback=we,H(V),Q=!0;break t}v===i(g)&&s(g),H(V)}else s(g);v=i(g)}if(v!==null)Q=!0;else{var R=i(p);R!==null&&xe(U,R.startTime-V),Q=!1}}break e}finally{v=null,E=K,S=!1}Q=void 0}}finally{Q?J():te=!1}}}var J;if(typeof D=="function")J=function(){D(oe)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,he=ge.port2;ge.port1.onmessage=oe,J=function(){he.postMessage(null)}}else J=function(){j(oe,0)};function xe(V,Q){ne=j(function(){V(t.unstable_now())},Q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(V){V.callback=null},t.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"):_=0<V?Math.floor(1e3/V):5},t.unstable_getCurrentPriorityLevel=function(){return E},t.unstable_next=function(V){switch(E){case 1:case 2:case 3:var Q=3;break;default:Q=E}var K=E;E=Q;try{return V()}finally{E=K}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(V,Q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var K=E;E=V;try{return Q()}finally{E=K}},t.unstable_scheduleCallback=function(V,Q,K){var de=t.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?de+K:de):K=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=K+we,V={id:b++,callback:Q,priorityLevel:V,startTime:K,expirationTime:we,sortIndex:-1},K>de?(V.sortIndex=K,a(p,V),i(g)===null&&V===i(p)&&(T?(C(ne),ne=-1):T=!0,xe(U,K-de))):(V.sortIndex=we,a(g,V),w||S||(w=!0,te||(te=!0,J()))),V},t.unstable_shouldYield=ie,t.unstable_wrapCallback=function(V){var Q=E;return function(){var K=E;E=Q;try{return V.apply(this,arguments)}finally{E=K}}}})(S0)),S0}var x2;function Qx(){return x2||(x2=1,E0.exports=Xx()),E0.exports}var w0={exports:{}},On={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var E2;function Jx(){if(E2)return On;E2=1;var t=Bf();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(g,p,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:g,containerInfo:p,implementation:b}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return On.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,On.createPortal=function(g,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return c(g,p,null,b)},On.flushSync=function(g){var p=u.T,b=s.p;try{if(u.T=null,s.p=2,g)return g()}finally{u.T=p,s.p=b,s.d.f()}},On.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(g,p))},On.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},On.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var b=p.as,v=h(b,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:E,fetchPriority:S}):b==="script"&&s.d.X(g,{crossOrigin:v,integrity:E,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},On.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);s.d.M(g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(g)},On.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,v=h(b,p.crossOrigin);s.d.L(g,b,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},On.preloadModule=function(g,p){if(typeof g=="string")if(p){var b=h(p.as,p.crossOrigin);s.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(g)},On.requestFormReset=function(g){s.d.r(g)},On.unstable_batchedUpdates=function(g,p){return g(p)},On.useFormState=function(g,p,b){return u.H.useFormState(g,p,b)},On.useFormStatus=function(){return u.H.useHostTransitionStatus()},On.version="19.2.5",On}var S2;function r4(){if(S2)return w0.exports;S2=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),w0.exports=Jx(),w0.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var w2;function Wx(){if(w2)return Al;w2=1;var t=Qx(),a=Bf(),i=r4();function s(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,r=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(r=n.return),e=n.return;while(e)}return n.tag===3?r:null}function u(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(c(e)!==e)throw Error(s(188))}function p(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(s(188));return n!==e?null:e}for(var r=e,l=n;;){var f=r.return;if(f===null)break;var m=f.alternate;if(m===null){if(l=f.return,l!==null){r=l;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===r)return g(f),e;if(m===l)return g(f),n;m=m.sibling}throw Error(s(188))}if(r.return!==l.return)r=f,l=m;else{for(var x=!1,A=f.child;A;){if(A===r){x=!0,r=f,l=m;break}if(A===l){x=!0,l=f,r=m;break}A=A.sibling}if(!x){for(A=m.child;A;){if(A===r){x=!0,r=m,l=f;break}if(A===l){x=!0,l=m,r=f;break}A=A.sibling}if(!x)throw Error(s(189))}}if(r.alternate!==l)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:n}function b(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=b(e),n!==null)return n;e=e.sibling}return null}var v=Object.assign,E=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),D=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=oe&&e[oe]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case j:return"Profiler";case M:return"StrictMode";case U:return"Suspense";case te:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case D:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case H:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ne:return n=e.displayName||null,n!==null?n:he(e.type)||"Memo";case _:n=e._payload,e=e._init;try{return he(e(n))}catch{}}return null}var xe=Array.isArray,V=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},de=[],we=-1;function R(e){return{current:e}}function q(e){0>we||(e.current=de[we],de[we]=null,we--)}function ce(e,n){we++,de[we]=e.current,e.current=n}var ye=R(null),Se=R(null),Re=R(null),$=R(null);function Ze(e,n){switch(ce(Re,n),ce(Se,e),ce(ye,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?zp(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=zp(n),e=Bp(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(ye),ce(ye,e)}function Oe(){q(ye),q(Se),q(Re)}function ot(e){e.memoizedState!==null&&ce($,e);var n=ye.current,r=Bp(n,e.type);n!==r&&(ce(Se,e),ce(ye,r))}function me(e){Se.current===e&&(q(ye),q(Se)),$.current===e&&(q($),vl._currentValue=K)}var bt,Le;function Xe(e){if(bt===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);bt=n&&n[1]||"",Le=-1<r.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+bt+e+Le}var qt=!1;function Nt(e,n){if(!e||qt)return"";qt=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(Y){var G=Y}Reflect.construct(e,[],le)}else{try{le.call()}catch(Y){G=Y}e.call(le.prototype)}}else{try{throw Error()}catch(Y){G=Y}(le=e())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(Y){if(Y&&G&&typeof Y.stack=="string")return[Y.stack,G.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),x=m[0],A=m[1];if(x&&A){var O=x.split(`
|
|
44
|
+
`),I=A.split(`
|
|
45
|
+
`);for(f=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;f<I.length&&!I[f].includes("DetermineComponentFrameRoot");)f++;if(l===O.length||f===I.length)for(l=O.length-1,f=I.length-1;1<=l&&0<=f&&O[l]!==I[f];)f--;for(;1<=l&&0<=f;l--,f--)if(O[l]!==I[f]){if(l!==1||f!==1)do if(l--,f--,0>f||O[l]!==I[f]){var ee=`
|
|
46
|
+
`+O[l].replace(" at new "," at ");return e.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",e.displayName)),ee}while(1<=l&&0<=f);break}}}finally{qt=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Xe(r):""}function Qt(e,n){switch(e.tag){case 26:case 27:case 5:return Xe(e.type);case 16:return Xe("Lazy");case 13:return e.child!==n&&n!==null?Xe("Suspense Fallback"):Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 15:return Nt(e.type,!1);case 11:return Nt(e.type.render,!1);case 1:return Nt(e.type,!0);case 31:return Xe("Activity");default:return""}}function ua(e){try{var n="",r=null;do n+=Qt(e,r),r=e,e=e.return;while(e);return n}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var Za=Object.prototype.hasOwnProperty,Pn=t.unstable_scheduleCallback,lr=t.unstable_cancelCallback,yn=t.unstable_shouldYield,ja=t.unstable_requestPaint,Dt=t.unstable_now,Jt=t.unstable_getCurrentPriorityLevel,Wt=t.unstable_ImmediatePriority,Qn=t.unstable_UserBlockingPriority,Fn=t.unstable_NormalPriority,bn=t.unstable_LowPriority,ln=t.unstable_IdlePriority,Pa=t.log,jr=t.unstable_setDisableYieldValue,_n=null,en=null;function Kt(e){if(typeof Pa=="function"&&jr(e),en&&typeof en.setStrictMode=="function")try{en.setStrictMode(_n,e)}catch{}}var Yt=Math.clz32?Math.clz32:Fa,or=Math.log,_a=Math.LN2;function Fa(e){return e>>>=0,e===0?32:31-(or(e)/_a|0)|0}var da=256,Vn=262144,fa=4194304;function on(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function L(e,n,r){var l=e.pendingLanes;if(l===0)return 0;var f=0,m=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var A=l&134217727;return A!==0?(l=A&~m,l!==0?f=on(l):(x&=A,x!==0?f=on(x):r||(r=A&~e,r!==0&&(f=on(r))))):(A=l&~m,A!==0?f=on(A):x!==0?f=on(x):r||(r=l&~e,r!==0&&(f=on(r)))),f===0?0:n!==0&&n!==f&&(n&m)===0&&(m=f&-f,r=n&-n,m>=r||m===32&&(r&4194048)!==0)?n:f}function W(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ee(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 qe(){var e=fa;return fa<<=1,(fa&62914560)===0&&(fa=4194304),e}function St(e){for(var n=[],r=0;31>r;r++)n.push(e);return n}function Et(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ne(e,n,r,l,f,m){var x=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var A=e.entanglements,O=e.expirationTimes,I=e.hiddenUpdates;for(r=x&~r;0<r;){var ee=31-Yt(r),le=1<<ee;A[ee]=0,O[ee]=-1;var G=I[ee];if(G!==null)for(I[ee]=null,ee=0;ee<G.length;ee++){var Y=G[ee];Y!==null&&(Y.lane&=-536870913)}r&=~le}l!==0&&Me(e,l,0),m!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=m&~(x&~n))}function Me(e,n,r){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-Yt(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|r&261930}function Ge(e,n){var r=e.entangledLanes|=n;for(e=e.entanglements;r;){var l=31-Yt(r),f=1<<l;f&n|e[l]&n&&(e[l]|=n),r&=~f}}function N(e,n){var r=n&-n;return r=(r&42)!==0?1:k(r),(r&(e.suspendedLanes|n))!==0?0:r}function k(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function P(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ue(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:o2(e.type))}function fe(e,n){var r=Q.p;try{return Q.p=e,n()}finally{Q.p=r}}var Ce=Math.random().toString(36).slice(2),ve="__reactFiber$"+Ce,je="__reactProps$"+Ce,Te="__reactContainer$"+Ce,Ae="__reactEvents$"+Ce,Pe="__reactListeners$"+Ce,_e="__reactHandles$"+Ce,Je="__reactResources$"+Ce,et="__reactMarker$"+Ce;function wt(e){delete e[ve],delete e[je],delete e[Ae],delete e[Pe],delete e[_e]}function ut(e){var n=e[ve];if(n)return n;for(var r=e.parentNode;r;){if(n=r[Te]||r[ve]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(e=$p(e);e!==null;){if(r=e[ve])return r;e=$p(e)}return n}e=r,r=e.parentNode}return null}function Ot(e){if(e=e[ve]||e[Te]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function st(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function Ut(e){var n=e[Je];return n||(n=e[Je]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function Tt(e){e[et]=!0}var Jn=new Set,B={};function be(e,n){X(e,n),X(e+"Capture",n)}function X(e,n){for(B[e]=n,e=0;e<n.length;e++)Jn.add(n[e])}var se=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]*$"),De={},ze={};function Ie(e){return Za.call(ze,e)?!0:Za.call(De,e)?!1:se.test(e)?ze[e]=!0:(De[e]=!0,!1)}function Be(e,n,r){if(Ie(n))if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+r)}}function Ye(e,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+r)}}function vt(e,n,r,l){if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(n,r,""+l)}}function Qe(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function We(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function In(e,n,r){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,m=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(x){r=""+x,m.call(this,x)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return r},setValue:function(x){r=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Gt(e){if(!e._valueTracker){var n=We(e)?"checked":"value";e._valueTracker=In(e,n,""+e[n])}}function tn(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),l="";return e&&(l=We(e)?e.checked?"true":"false":e.value),e=l,e!==r?(n.setValue(e),!0):!1}function Sn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ha=/[\n"\\]/g;function wn(e){return e.replace(ha,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function _r(e,n,r,l,f,m,x,A){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Qe(n)):e.value!==""+Qe(n)&&(e.value=""+Qe(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?Ga(e,x,Qe(n)):r!=null?Ga(e,x,Qe(r)):l!=null&&e.removeAttribute("value"),f==null&&m!=null&&(e.defaultChecked=!!m),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+Qe(A):e.removeAttribute("name")}function Ia(e,n,r,l,f,m,x,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),n!=null||r!=null){if(!(m!=="submit"&&m!=="reset"||n!=null)){Gt(e);return}r=r!=null?""+Qe(r):"",n=n!=null?""+Qe(n):r,A||n===e.value||(e.value=n),e.defaultValue=n}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=A?e.checked:!!l,e.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Gt(e)}function Ga(e,n,r){n==="number"&&Sn(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function nn(e,n,r,l){if(e=e.options,n){n={};for(var f=0;f<r.length;f++)n["$"+r[f]]=!0;for(r=0;r<e.length;r++)f=n.hasOwnProperty("$"+e[r].value),e[r].selected!==f&&(e[r].selected=f),f&&l&&(e[r].defaultSelected=!0)}else{for(r=""+Qe(r),n=null,f=0;f<e.length;f++){if(e[f].value===r){e[f].selected=!0,l&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function fi(e,n,r){if(n!=null&&(n=""+Qe(n),n!==e.value&&(e.value=n),r==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=r!=null?""+Qe(r):""}function cr(e,n,r,l){if(n==null){if(l!=null){if(r!=null)throw Error(s(92));if(xe(l)){if(1<l.length)throw Error(s(93));l=l[0]}r=l}r==null&&(r=""),n=r}r=Qe(n),e.defaultValue=r,l=e.textContent,l===r&&l!==""&&l!==null&&(e.value=l),Gt(e)}function $e(e,n){if(n){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}var hi=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 lt(e,n,r){var l=n.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,r):typeof r!="number"||r===0||hi.has(n)?n==="float"?e.cssFloat=r:e[n]=(""+r).trim():e[n]=r+"px"}function ht(e,n,r){if(n!=null&&typeof n!="object")throw Error(s(62));if(e=e.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var f in n)l=n[f],n.hasOwnProperty(f)&&r[f]!==l&<(e,f,l)}else for(var m in n)n.hasOwnProperty(m)&<(e,m,n[m])}function Dn(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hn=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"]]),zn=/^[\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 $a(e){return zn.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pe(){}var ke=null;function nt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mt=null,Xt=null;function ma(e){var n=Ot(e);if(n&&(e=n.stateNode)){var r=e[je]||null;e:switch(e=n.stateNode,n.type){case"input":if(_r(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),n=r.name,r.type==="radio"&&n!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+wn(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var l=r[n];if(l!==e&&l.form===e.form){var f=l[je]||null;if(!f)throw Error(s(90));_r(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<r.length;n++)l=r[n],l.form===e.form&&tn(l)}break e;case"textarea":fi(e,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&nn(e,!!r.multiple,n,!1)}}}var ks=!1;function fo(e,n,r){if(ks)return e(n,r);ks=!0;try{var l=e(n);return l}finally{if(ks=!1,(mt!==null||Xt!==null)&&(Wo(),mt&&(n=mt,e=Xt,Xt=mt=null,ma(n),e)))for(n=0;n<e.length;n++)ma(e[n])}}function Vs(e,n){var r=e.stateNode;if(r===null)return null;var l=r[je]||null;if(l===null)return null;r=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,n,typeof r));return r}var ur=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bu=!1;if(ur)try{var Hs={};Object.defineProperty(Hs,"passive",{get:function(){bu=!0}}),window.addEventListener("test",Hs,Hs),window.removeEventListener("test",Hs,Hs)}catch{bu=!1}var Dr=null,vu=null,ho=null;function B1(){if(ho)return ho;var e,n=vu,r=n.length,l,f="value"in Dr?Dr.value:Dr.textContent,m=f.length;for(e=0;e<r&&n[e]===f[e];e++);var x=r-e;for(l=1;l<=x&&n[r-l]===f[m-l];l++);return ho=f.slice(e,1<l?1-l:void 0)}function mo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function po(){return!0}function U1(){return!1}function Gn(e){function n(r,l,f,m,x){this._reactName=r,this._targetInst=f,this.type=l,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(r=e[A],this[A]=r?r(m):m[A]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?po:U1,this.isPropagationStopped=U1,this}return v(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=po)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=po)},persist:function(){},isPersistent:po}),n}var mi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},go=Gn(mi),zs=v({},mi,{view:0,detail:0}),Fb=Gn(zs),xu,Eu,Bs,yo=v({},zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Bs&&(Bs&&e.type==="mousemove"?(xu=e.screenX-Bs.screenX,Eu=e.screenY-Bs.screenY):Eu=xu=0,Bs=e),xu)},movementY:function(e){return"movementY"in e?e.movementY:Eu}}),Z1=Gn(yo),Ib=v({},yo,{dataTransfer:0}),Gb=Gn(Ib),$b=v({},zs,{relatedTarget:0}),Su=Gn($b),qb=v({},mi,{animationName:0,elapsedTime:0,pseudoElement:0}),Kb=Gn(qb),Yb=v({},mi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xb=Gn(Yb),Qb=v({},mi,{data:0}),P1=Gn(Qb),Jb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wb={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"},ev={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tv(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=ev[e])?!!n[e]:!1}function wu(){return tv}var nv=v({},zs,{key:function(e){if(e.key){var n=Jb[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=mo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wu,charCode:function(e){return e.type==="keypress"?mo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),av=Gn(nv),rv=v({},yo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),F1=Gn(rv),iv=v({},zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wu}),sv=Gn(iv),lv=v({},mi,{propertyName:0,elapsedTime:0,pseudoElement:0}),ov=Gn(lv),cv=v({},yo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),uv=Gn(cv),dv=v({},mi,{newState:0,oldState:0}),fv=Gn(dv),hv=[9,13,27,32],Au=ur&&"CompositionEvent"in window,Us=null;ur&&"documentMode"in document&&(Us=document.documentMode);var mv=ur&&"TextEvent"in window&&!Us,I1=ur&&(!Au||Us&&8<Us&&11>=Us),G1=" ",$1=!1;function q1(e,n){switch(e){case"keyup":return hv.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function K1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zi=!1;function pv(e,n){switch(e){case"compositionend":return K1(n);case"keypress":return n.which!==32?null:($1=!0,G1);case"textInput":return e=n.data,e===G1&&$1?null:e;default:return null}}function gv(e,n){if(Zi)return e==="compositionend"||!Au&&q1(e,n)?(e=B1(),ho=vu=Dr=null,Zi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return I1&&n.locale!=="ko"?null:n.data;default:return null}}var yv={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 Y1(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!yv[e.type]:n==="textarea"}function X1(e,n,r,l){mt?Xt?Xt.push(l):Xt=[l]:mt=l,n=sc(n,"onChange"),0<n.length&&(r=new go("onChange","change",null,r,l),e.push({event:r,listeners:n}))}var Zs=null,Ps=null;function bv(e){Dp(e,0)}function bo(e){var n=st(e);if(tn(n))return e}function Q1(e,n){if(e==="change")return n}var J1=!1;if(ur){var Mu;if(ur){var Tu="oninput"in document;if(!Tu){var W1=document.createElement("div");W1.setAttribute("oninput","return;"),Tu=typeof W1.oninput=="function"}Mu=Tu}else Mu=!1;J1=Mu&&(!document.documentMode||9<document.documentMode)}function eh(){Zs&&(Zs.detachEvent("onpropertychange",th),Ps=Zs=null)}function th(e){if(e.propertyName==="value"&&bo(Ps)){var n=[];X1(n,Ps,e,nt(e)),fo(bv,n)}}function vv(e,n,r){e==="focusin"?(eh(),Zs=n,Ps=r,Zs.attachEvent("onpropertychange",th)):e==="focusout"&&eh()}function xv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bo(Ps)}function Ev(e,n){if(e==="click")return bo(n)}function Sv(e,n){if(e==="input"||e==="change")return bo(n)}function wv(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Wn=typeof Object.is=="function"?Object.is:wv;function Fs(e,n){if(Wn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var r=Object.keys(e),l=Object.keys(n);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var f=r[l];if(!Za.call(n,f)||!Wn(e[f],n[f]))return!1}return!0}function nh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ah(e,n){var r=nh(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=n&&l>=n)return{node:r,offset:n-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nh(r)}}function rh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?rh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ih(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Sn(e.document);n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)e=n.contentWindow;else break;n=Sn(e.document)}return n}function Cu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var Av=ur&&"documentMode"in document&&11>=document.documentMode,Pi=null,Ru=null,Is=null,Nu=!1;function sh(e,n,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Nu||Pi==null||Pi!==Sn(l)||(l=Pi,"selectionStart"in l&&Cu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Is&&Fs(Is,l)||(Is=l,l=sc(Ru,"onSelect"),0<l.length&&(n=new go("onSelect","select",null,n,r),e.push({event:n,listeners:l}),n.target=Pi)))}function pi(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit"+e]="webkit"+n,r["Moz"+e]="moz"+n,r}var Fi={animationend:pi("Animation","AnimationEnd"),animationiteration:pi("Animation","AnimationIteration"),animationstart:pi("Animation","AnimationStart"),transitionrun:pi("Transition","TransitionRun"),transitionstart:pi("Transition","TransitionStart"),transitioncancel:pi("Transition","TransitionCancel"),transitionend:pi("Transition","TransitionEnd")},ju={},lh={};ur&&(lh=document.createElement("div").style,"AnimationEvent"in window||(delete Fi.animationend.animation,delete Fi.animationiteration.animation,delete Fi.animationstart.animation),"TransitionEvent"in window||delete Fi.transitionend.transition);function gi(e){if(ju[e])return ju[e];if(!Fi[e])return e;var n=Fi[e],r;for(r in n)if(n.hasOwnProperty(r)&&r in lh)return ju[e]=n[r];return e}var oh=gi("animationend"),ch=gi("animationiteration"),uh=gi("animationstart"),Mv=gi("transitionrun"),Tv=gi("transitionstart"),Cv=gi("transitioncancel"),dh=gi("transitionend"),fh=new Map,_u="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(" ");_u.push("scrollEnd");function Da(e,n){fh.set(e,n),be(n,[e])}var vo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pa=[],Ii=0,Du=0;function xo(){for(var e=Ii,n=Du=Ii=0;n<e;){var r=pa[n];pa[n++]=null;var l=pa[n];pa[n++]=null;var f=pa[n];pa[n++]=null;var m=pa[n];if(pa[n++]=null,l!==null&&f!==null){var x=l.pending;x===null?f.next=f:(f.next=x.next,x.next=f),l.pending=f}m!==0&&hh(r,f,m)}}function Eo(e,n,r,l){pa[Ii++]=e,pa[Ii++]=n,pa[Ii++]=r,pa[Ii++]=l,Du|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ou(e,n,r,l){return Eo(e,n,r,l),So(e)}function yi(e,n){return Eo(e,null,null,n),So(e)}function hh(e,n,r){e.lanes|=r;var l=e.alternate;l!==null&&(l.lanes|=r);for(var f=!1,m=e.return;m!==null;)m.childLanes|=r,l=m.alternate,l!==null&&(l.childLanes|=r),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(f=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,f&&n!==null&&(f=31-Yt(r),e=m.hiddenUpdates,l=e[f],l===null?e[f]=[n]:l.push(n),n.lane=r|536870912),m):null}function So(e){if(50<fl)throw fl=0,Pd=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Gi={};function Rv(e,n,r,l){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ea(e,n,r,l){return new Rv(e,n,r,l)}function Lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dr(e,n){var r=e.alternate;return r===null?(r=ea(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function mh(e,n){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,n=r.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function wo(e,n,r,l,f,m){var x=0;if(l=e,typeof e=="function")Lu(e)&&(x=1);else if(typeof e=="string")x=Ox(e,r,ye.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=ea(31,r,n,f),e.elementType=ae,e.lanes=m,e;case T:return bi(r.children,f,m,n);case M:x=8,f|=24;break;case j:return e=ea(12,r,n,f|2),e.elementType=j,e.lanes=m,e;case U:return e=ea(13,r,n,f),e.elementType=U,e.lanes=m,e;case te:return e=ea(19,r,n,f),e.elementType=te,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:x=10;break e;case C:x=9;break e;case H:x=11;break e;case ne:x=14;break e;case _:x=16,l=null;break e}x=29,r=Error(s(130,e===null?"null":typeof e,"")),l=null}return n=ea(x,r,n,f),n.elementType=e,n.type=l,n.lanes=m,n}function bi(e,n,r,l){return e=ea(7,e,l,n),e.lanes=r,e}function ku(e,n,r){return e=ea(6,e,null,n),e.lanes=r,e}function ph(e){var n=ea(18,null,null,0);return n.stateNode=e,n}function Vu(e,n,r){return n=ea(4,e.children!==null?e.children:[],e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var gh=new WeakMap;function ga(e,n){if(typeof e=="object"&&e!==null){var r=gh.get(e);return r!==void 0?r:(n={value:e,source:n,stack:ua(n)},gh.set(e,n),n)}return{value:e,source:n,stack:ua(n)}}var $i=[],qi=0,Ao=null,Gs=0,ya=[],ba=0,Or=null,qa=1,Ka="";function fr(e,n){$i[qi++]=Gs,$i[qi++]=Ao,Ao=e,Gs=n}function yh(e,n,r){ya[ba++]=qa,ya[ba++]=Ka,ya[ba++]=Or,Or=e;var l=qa;e=Ka;var f=32-Yt(l)-1;l&=~(1<<f),r+=1;var m=32-Yt(n)+f;if(30<m){var x=f-f%5;m=(l&(1<<x)-1).toString(32),l>>=x,f-=x,qa=1<<32-Yt(n)+f|r<<f|l,Ka=m+e}else qa=1<<m|r<<f|l,Ka=e}function Hu(e){e.return!==null&&(fr(e,1),yh(e,1,0))}function zu(e){for(;e===Ao;)Ao=$i[--qi],$i[qi]=null,Gs=$i[--qi],$i[qi]=null;for(;e===Or;)Or=ya[--ba],ya[ba]=null,Ka=ya[--ba],ya[ba]=null,qa=ya[--ba],ya[ba]=null}function bh(e,n){ya[ba++]=qa,ya[ba++]=Ka,ya[ba++]=Or,qa=n.id,Ka=n.overflow,Or=e}var An=null,Zt=null,xt=!1,Lr=null,va=!1,Bu=Error(s(519));function kr(e){var n=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $s(ga(n,e)),Bu}function vh(e){var n=e.stateNode,r=e.type,l=e.memoizedProps;switch(n[ve]=e,n[je]=l,r){case"dialog":ft("cancel",n),ft("close",n);break;case"iframe":case"object":case"embed":ft("load",n);break;case"video":case"audio":for(r=0;r<ml.length;r++)ft(ml[r],n);break;case"source":ft("error",n);break;case"img":case"image":case"link":ft("error",n),ft("load",n);break;case"details":ft("toggle",n);break;case"input":ft("invalid",n),Ia(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ft("invalid",n);break;case"textarea":ft("invalid",n),cr(n,l.value,l.defaultValue,l.children)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||n.textContent===""+r||l.suppressHydrationWarning===!0||Vp(n.textContent,r)?(l.popover!=null&&(ft("beforetoggle",n),ft("toggle",n)),l.onScroll!=null&&ft("scroll",n),l.onScrollEnd!=null&&ft("scrollend",n),l.onClick!=null&&(n.onclick=pe),n=!0):n=!1,n||kr(e,!0)}function xh(e){for(An=e.return;An;)switch(An.tag){case 5:case 31:case 13:va=!1;return;case 27:case 3:va=!0;return;default:An=An.return}}function Ki(e){if(e!==An)return!1;if(!xt)return xh(e),xt=!0,!1;var n=e.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||a0(e.type,e.memoizedProps)),r=!r),r&&Zt&&kr(e),xh(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Zt=Gp(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Zt=Gp(e)}else n===27?(n=Zt,Yr(e.type)?(e=o0,o0=null,Zt=e):Zt=n):Zt=An?Ea(e.stateNode.nextSibling):null;return!0}function vi(){Zt=An=null,xt=!1}function Uu(){var e=Lr;return e!==null&&(Yn===null?Yn=e:Yn.push.apply(Yn,e),Lr=null),e}function $s(e){Lr===null?Lr=[e]:Lr.push(e)}var Zu=R(null),xi=null,hr=null;function Vr(e,n,r){ce(Zu,n._currentValue),n._currentValue=r}function mr(e){e._currentValue=Zu.current,q(Zu)}function Pu(e,n,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===r)break;e=e.return}}function Fu(e,n,r,l){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var m=f.dependencies;if(m!==null){var x=f.child;m=m.firstContext;e:for(;m!==null;){var A=m;m=f;for(var O=0;O<n.length;O++)if(A.context===n[O]){m.lanes|=r,A=m.alternate,A!==null&&(A.lanes|=r),Pu(m.return,r,e),l||(x=null);break e}m=A.next}}else if(f.tag===18){if(x=f.return,x===null)throw Error(s(341));x.lanes|=r,m=x.alternate,m!==null&&(m.lanes|=r),Pu(x,r,e),x=null}else x=f.child;if(x!==null)x.return=f;else for(x=f;x!==null;){if(x===e){x=null;break}if(f=x.sibling,f!==null){f.return=x.return,x=f;break}x=x.return}f=x}}function Yi(e,n,r,l){e=null;for(var f=n,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var x=f.alternate;if(x===null)throw Error(s(387));if(x=x.memoizedProps,x!==null){var A=f.type;Wn(f.pendingProps.value,x.value)||(e!==null?e.push(A):e=[A])}}else if(f===$.current){if(x=f.alternate,x===null)throw Error(s(387));x.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(vl):e=[vl])}f=f.return}e!==null&&Fu(n,e,r,l),n.flags|=262144}function Mo(e){for(e=e.firstContext;e!==null;){if(!Wn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ei(e){xi=e,hr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Mn(e){return Eh(xi,e)}function To(e,n){return xi===null&&Ei(e),Eh(e,n)}function Eh(e,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},hr===null){if(e===null)throw Error(s(308));hr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else hr=hr.next=n;return r}var Nv=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(r,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(r){return r()})}},jv=t.unstable_scheduleCallback,_v=t.unstable_NormalPriority,dn={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Iu(){return{controller:new Nv,data:new Map,refCount:0}}function qs(e){e.refCount--,e.refCount===0&&jv(_v,function(){e.controller.abort()})}var Ks=null,Gu=0,Xi=0,Qi=null;function Dv(e,n){if(Ks===null){var r=Ks=[];Gu=0,Xi=Kd(),Qi={status:"pending",value:void 0,then:function(l){r.push(l)}}}return Gu++,n.then(Sh,Sh),n}function Sh(){if(--Gu===0&&Ks!==null){Qi!==null&&(Qi.status="fulfilled");var e=Ks;Ks=null,Xi=0,Qi=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Ov(e,n){var r=[],l={status:"pending",value:null,reason:null,then:function(f){r.push(f)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var f=0;f<r.length;f++)(0,r[f])(n)},function(f){for(l.status="rejected",l.reason=f,f=0;f<r.length;f++)(0,r[f])(void 0)}),l}var wh=V.S;V.S=function(e,n){sp=Dt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Dv(e,n),wh!==null&&wh(e,n)};var Si=R(null);function $u(){var e=Si.current;return e!==null?e:Ht.pooledCache}function Co(e,n){n===null?ce(Si,Si.current):ce(Si,n.pool)}function Ah(){var e=$u();return e===null?null:{parent:dn._currentValue,pool:e}}var Ji=Error(s(460)),qu=Error(s(474)),Ro=Error(s(542)),No={then:function(){}};function Mh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Th(e,n,r){switch(r=e[r],r===void 0?e.push(n):r!==n&&(n.then(pe,pe),n=r),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Rh(e),e;default:if(typeof n.status=="string")n.then(pe,pe);else{if(e=Ht,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=l}},function(l){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Rh(e),e}throw Ai=n,Ji}}function wi(e){try{var n=e._init;return n(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Ai=r,Ji):r}}var Ai=null;function Ch(){if(Ai===null)throw Error(s(459));var e=Ai;return Ai=null,e}function Rh(e){if(e===Ji||e===Ro)throw Error(s(483))}var Wi=null,Ys=0;function jo(e){var n=Ys;return Ys+=1,Wi===null&&(Wi=[]),Th(Wi,e,n)}function Xs(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function _o(e,n){throw n.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Nh(e){function n(Z,z){if(e){var F=Z.deletions;F===null?(Z.deletions=[z],Z.flags|=16):F.push(z)}}function r(Z,z){if(!e)return null;for(;z!==null;)n(Z,z),z=z.sibling;return null}function l(Z){for(var z=new Map;Z!==null;)Z.key!==null?z.set(Z.key,Z):z.set(Z.index,Z),Z=Z.sibling;return z}function f(Z,z){return Z=dr(Z,z),Z.index=0,Z.sibling=null,Z}function m(Z,z,F){return Z.index=F,e?(F=Z.alternate,F!==null?(F=F.index,F<z?(Z.flags|=67108866,z):F):(Z.flags|=67108866,z)):(Z.flags|=1048576,z)}function x(Z){return e&&Z.alternate===null&&(Z.flags|=67108866),Z}function A(Z,z,F,re){return z===null||z.tag!==6?(z=ku(F,Z.mode,re),z.return=Z,z):(z=f(z,F),z.return=Z,z)}function O(Z,z,F,re){var Fe=F.type;return Fe===T?ee(Z,z,F.props.children,re,F.key):z!==null&&(z.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===_&&wi(Fe)===z.type)?(z=f(z,F.props),Xs(z,F),z.return=Z,z):(z=wo(F.type,F.key,F.props,null,Z.mode,re),Xs(z,F),z.return=Z,z)}function I(Z,z,F,re){return z===null||z.tag!==4||z.stateNode.containerInfo!==F.containerInfo||z.stateNode.implementation!==F.implementation?(z=Vu(F,Z.mode,re),z.return=Z,z):(z=f(z,F.children||[]),z.return=Z,z)}function ee(Z,z,F,re,Fe){return z===null||z.tag!==7?(z=bi(F,Z.mode,re,Fe),z.return=Z,z):(z=f(z,F),z.return=Z,z)}function le(Z,z,F){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=ku(""+z,Z.mode,F),z.return=Z,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case S:return F=wo(z.type,z.key,z.props,null,Z.mode,F),Xs(F,z),F.return=Z,F;case w:return z=Vu(z,Z.mode,F),z.return=Z,z;case _:return z=wi(z),le(Z,z,F)}if(xe(z)||J(z))return z=bi(z,Z.mode,F,null),z.return=Z,z;if(typeof z.then=="function")return le(Z,jo(z),F);if(z.$$typeof===D)return le(Z,To(Z,z),F);_o(Z,z)}return null}function G(Z,z,F,re){var Fe=z!==null?z.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return Fe!==null?null:A(Z,z,""+F,re);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case S:return F.key===Fe?O(Z,z,F,re):null;case w:return F.key===Fe?I(Z,z,F,re):null;case _:return F=wi(F),G(Z,z,F,re)}if(xe(F)||J(F))return Fe!==null?null:ee(Z,z,F,re,null);if(typeof F.then=="function")return G(Z,z,jo(F),re);if(F.$$typeof===D)return G(Z,z,To(Z,F),re);_o(Z,F)}return null}function Y(Z,z,F,re,Fe){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return Z=Z.get(F)||null,A(z,Z,""+re,Fe);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case S:return Z=Z.get(re.key===null?F:re.key)||null,O(z,Z,re,Fe);case w:return Z=Z.get(re.key===null?F:re.key)||null,I(z,Z,re,Fe);case _:return re=wi(re),Y(Z,z,F,re,Fe)}if(xe(re)||J(re))return Z=Z.get(F)||null,ee(z,Z,re,Fe,null);if(typeof re.then=="function")return Y(Z,z,F,jo(re),Fe);if(re.$$typeof===D)return Y(Z,z,F,To(z,re),Fe);_o(z,re)}return null}function Ve(Z,z,F,re){for(var Fe=null,At=null,Ue=z,rt=z=0,gt=null;Ue!==null&&rt<F.length;rt++){Ue.index>rt?(gt=Ue,Ue=null):gt=Ue.sibling;var Mt=G(Z,Ue,F[rt],re);if(Mt===null){Ue===null&&(Ue=gt);break}e&&Ue&&Mt.alternate===null&&n(Z,Ue),z=m(Mt,z,rt),At===null?Fe=Mt:At.sibling=Mt,At=Mt,Ue=gt}if(rt===F.length)return r(Z,Ue),xt&&fr(Z,rt),Fe;if(Ue===null){for(;rt<F.length;rt++)Ue=le(Z,F[rt],re),Ue!==null&&(z=m(Ue,z,rt),At===null?Fe=Ue:At.sibling=Ue,At=Ue);return xt&&fr(Z,rt),Fe}for(Ue=l(Ue);rt<F.length;rt++)gt=Y(Ue,Z,rt,F[rt],re),gt!==null&&(e&>.alternate!==null&&Ue.delete(gt.key===null?rt:gt.key),z=m(gt,z,rt),At===null?Fe=gt:At.sibling=gt,At=gt);return e&&Ue.forEach(function(ei){return n(Z,ei)}),xt&&fr(Z,rt),Fe}function Ke(Z,z,F,re){if(F==null)throw Error(s(151));for(var Fe=null,At=null,Ue=z,rt=z=0,gt=null,Mt=F.next();Ue!==null&&!Mt.done;rt++,Mt=F.next()){Ue.index>rt?(gt=Ue,Ue=null):gt=Ue.sibling;var ei=G(Z,Ue,Mt.value,re);if(ei===null){Ue===null&&(Ue=gt);break}e&&Ue&&ei.alternate===null&&n(Z,Ue),z=m(ei,z,rt),At===null?Fe=ei:At.sibling=ei,At=ei,Ue=gt}if(Mt.done)return r(Z,Ue),xt&&fr(Z,rt),Fe;if(Ue===null){for(;!Mt.done;rt++,Mt=F.next())Mt=le(Z,Mt.value,re),Mt!==null&&(z=m(Mt,z,rt),At===null?Fe=Mt:At.sibling=Mt,At=Mt);return xt&&fr(Z,rt),Fe}for(Ue=l(Ue);!Mt.done;rt++,Mt=F.next())Mt=Y(Ue,Z,rt,Mt.value,re),Mt!==null&&(e&&Mt.alternate!==null&&Ue.delete(Mt.key===null?rt:Mt.key),z=m(Mt,z,rt),At===null?Fe=Mt:At.sibling=Mt,At=Mt);return e&&Ue.forEach(function(Ix){return n(Z,Ix)}),xt&&fr(Z,rt),Fe}function Vt(Z,z,F,re){if(typeof F=="object"&&F!==null&&F.type===T&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case S:e:{for(var Fe=F.key;z!==null;){if(z.key===Fe){if(Fe=F.type,Fe===T){if(z.tag===7){r(Z,z.sibling),re=f(z,F.props.children),re.return=Z,Z=re;break e}}else if(z.elementType===Fe||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===_&&wi(Fe)===z.type){r(Z,z.sibling),re=f(z,F.props),Xs(re,F),re.return=Z,Z=re;break e}r(Z,z);break}else n(Z,z);z=z.sibling}F.type===T?(re=bi(F.props.children,Z.mode,re,F.key),re.return=Z,Z=re):(re=wo(F.type,F.key,F.props,null,Z.mode,re),Xs(re,F),re.return=Z,Z=re)}return x(Z);case w:e:{for(Fe=F.key;z!==null;){if(z.key===Fe)if(z.tag===4&&z.stateNode.containerInfo===F.containerInfo&&z.stateNode.implementation===F.implementation){r(Z,z.sibling),re=f(z,F.children||[]),re.return=Z,Z=re;break e}else{r(Z,z);break}else n(Z,z);z=z.sibling}re=Vu(F,Z.mode,re),re.return=Z,Z=re}return x(Z);case _:return F=wi(F),Vt(Z,z,F,re)}if(xe(F))return Ve(Z,z,F,re);if(J(F)){if(Fe=J(F),typeof Fe!="function")throw Error(s(150));return F=Fe.call(F),Ke(Z,z,F,re)}if(typeof F.then=="function")return Vt(Z,z,jo(F),re);if(F.$$typeof===D)return Vt(Z,z,To(Z,F),re);_o(Z,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,z!==null&&z.tag===6?(r(Z,z.sibling),re=f(z,F),re.return=Z,Z=re):(r(Z,z),re=ku(F,Z.mode,re),re.return=Z,Z=re),x(Z)):r(Z,z)}return function(Z,z,F,re){try{Ys=0;var Fe=Vt(Z,z,F,re);return Wi=null,Fe}catch(Ue){if(Ue===Ji||Ue===Ro)throw Ue;var At=ea(29,Ue,null,Z.mode);return At.lanes=re,At.return=Z,At}finally{}}}var Mi=Nh(!0),jh=Nh(!1),Hr=!1;function Ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function zr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Br(e,n,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ct&2)!==0){var f=l.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),l.pending=n,n=So(e),hh(e,null,r),n}return Eo(e,l,n,r),So(e)}function Qs(e,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,r|=l,n.lanes=r,Ge(e,r)}}function Xu(e,n){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var f=null,m=null;if(r=r.firstBaseUpdate,r!==null){do{var x={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};m===null?f=m=x:m=m.next=x,r=r.next}while(r!==null);m===null?f=m=n:m=m.next=n}else f=m=n;r={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=n:e.next=n,r.lastBaseUpdate=n}var Qu=!1;function Js(){if(Qu){var e=Qi;if(e!==null)throw e}}function Ws(e,n,r,l){Qu=!1;var f=e.updateQueue;Hr=!1;var m=f.firstBaseUpdate,x=f.lastBaseUpdate,A=f.shared.pending;if(A!==null){f.shared.pending=null;var O=A,I=O.next;O.next=null,x===null?m=I:x.next=I,x=O;var ee=e.alternate;ee!==null&&(ee=ee.updateQueue,A=ee.lastBaseUpdate,A!==x&&(A===null?ee.firstBaseUpdate=I:A.next=I,ee.lastBaseUpdate=O))}if(m!==null){var le=f.baseState;x=0,ee=I=O=null,A=m;do{var G=A.lane&-536870913,Y=G!==A.lane;if(Y?(pt&G)===G:(l&G)===G){G!==0&&G===Xi&&(Qu=!0),ee!==null&&(ee=ee.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Ve=e,Ke=A;G=n;var Vt=r;switch(Ke.tag){case 1:if(Ve=Ke.payload,typeof Ve=="function"){le=Ve.call(Vt,le,G);break e}le=Ve;break e;case 3:Ve.flags=Ve.flags&-65537|128;case 0:if(Ve=Ke.payload,G=typeof Ve=="function"?Ve.call(Vt,le,G):Ve,G==null)break e;le=v({},le,G);break e;case 2:Hr=!0}}G=A.callback,G!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=f.callbacks,Y===null?f.callbacks=[G]:Y.push(G))}else Y={lane:G,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ee===null?(I=ee=Y,O=le):ee=ee.next=Y,x|=G;if(A=A.next,A===null){if(A=f.shared.pending,A===null)break;Y=A,A=Y.next,Y.next=null,f.lastBaseUpdate=Y,f.shared.pending=null}}while(!0);ee===null&&(O=le),f.baseState=O,f.firstBaseUpdate=I,f.lastBaseUpdate=ee,m===null&&(f.shared.lanes=0),Ir|=x,e.lanes=x,e.memoizedState=le}}function _h(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function Dh(e,n){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)_h(r[e],n)}var es=R(null),Do=R(0);function Oh(e,n){e=wr,ce(Do,e),ce(es,n),wr=e|n.baseLanes}function Ju(){ce(Do,wr),ce(es,es.current)}function Wu(){wr=Do.current,q(es),q(Do)}var ta=R(null),xa=null;function Ur(e){var n=e.alternate;ce(cn,cn.current&1),ce(ta,e),xa===null&&(n===null||es.current!==null||n.memoizedState!==null)&&(xa=e)}function ed(e){ce(cn,cn.current),ce(ta,e),xa===null&&(xa=e)}function Lh(e){e.tag===22?(ce(cn,cn.current),ce(ta,e),xa===null&&(xa=e)):Zr()}function Zr(){ce(cn,cn.current),ce(ta,ta.current)}function na(e){q(ta),xa===e&&(xa=null),q(cn)}var cn=R(0);function Oo(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||s0(r)||l0(r)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var pr=0,at=null,Lt=null,fn=null,Lo=!1,ts=!1,Ti=!1,ko=0,el=0,ns=null,Lv=0;function an(){throw Error(s(321))}function td(e,n){if(n===null)return!1;for(var r=0;r<n.length&&r<e.length;r++)if(!Wn(e[r],n[r]))return!1;return!0}function nd(e,n,r,l,f,m){return pr=m,at=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,V.H=e===null||e.memoizedState===null?ym:yd,Ti=!1,m=r(l,f),Ti=!1,ts&&(m=Vh(n,r,l,f)),kh(e),m}function kh(e){V.H=al;var n=Lt!==null&&Lt.next!==null;if(pr=0,fn=Lt=at=null,Lo=!1,el=0,ns=null,n)throw Error(s(300));e===null||hn||(e=e.dependencies,e!==null&&Mo(e)&&(hn=!0))}function Vh(e,n,r,l){at=e;var f=0;do{if(ts&&(ns=null),el=0,ts=!1,25<=f)throw Error(s(301));if(f+=1,fn=Lt=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}V.H=bm,m=n(r,l)}while(ts);return m}function kv(){var e=V.H,n=e.useState()[0];return n=typeof n.then=="function"?tl(n):n,e=e.useState()[0],(Lt!==null?Lt.memoizedState:null)!==e&&(at.flags|=1024),n}function ad(){var e=ko!==0;return ko=0,e}function rd(e,n,r){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~r}function id(e){if(Lo){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Lo=!1}pr=0,fn=Lt=at=null,ts=!1,el=ko=0,ns=null}function Bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fn===null?at.memoizedState=fn=e:fn=fn.next=e,fn}function un(){if(Lt===null){var e=at.alternate;e=e!==null?e.memoizedState:null}else e=Lt.next;var n=fn===null?at.memoizedState:fn.next;if(n!==null)fn=n,Lt=e;else{if(e===null)throw at.alternate===null?Error(s(467)):Error(s(310));Lt=e,e={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},fn===null?at.memoizedState=fn=e:fn=fn.next=e}return fn}function Vo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tl(e){var n=el;return el+=1,ns===null&&(ns=[]),e=Th(ns,e,n),n=at,(fn===null?n.memoizedState:fn.next)===null&&(n=n.alternate,V.H=n===null||n.memoizedState===null?ym:yd),e}function Ho(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return tl(e);if(e.$$typeof===D)return Mn(e)}throw Error(s(438,String(e)))}function sd(e){var n=null,r=at.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var l=at.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),r===null&&(r=Vo(),at.updateQueue=r),r.memoCache=n,r=n.data[n.index],r===void 0)for(r=n.data[n.index]=Array(e),l=0;l<e;l++)r[l]=ie;return n.index++,r}function gr(e,n){return typeof n=="function"?n(e):n}function zo(e){var n=un();return ld(n,Lt,e)}function ld(e,n,r){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=r;var f=e.baseQueue,m=l.pending;if(m!==null){if(f!==null){var x=f.next;f.next=m.next,m.next=x}n.baseQueue=f=m,l.pending=null}if(m=e.baseState,f===null)e.memoizedState=m;else{n=f.next;var A=x=null,O=null,I=n,ee=!1;do{var le=I.lane&-536870913;if(le!==I.lane?(pt&le)===le:(pr&le)===le){var G=I.revertLane;if(G===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),le===Xi&&(ee=!0);else if((pr&G)===G){I=I.next,G===Xi&&(ee=!0);continue}else le={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},O===null?(A=O=le,x=m):O=O.next=le,at.lanes|=G,Ir|=G;le=I.action,Ti&&r(m,le),m=I.hasEagerState?I.eagerState:r(m,le)}else G={lane:le,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},O===null?(A=O=G,x=m):O=O.next=G,at.lanes|=le,Ir|=le;I=I.next}while(I!==null&&I!==n);if(O===null?x=m:O.next=A,!Wn(m,e.memoizedState)&&(hn=!0,ee&&(r=Qi,r!==null)))throw r;e.memoizedState=m,e.baseState=x,e.baseQueue=O,l.lastRenderedState=m}return f===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function od(e){var n=un(),r=n.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var l=r.dispatch,f=r.pending,m=n.memoizedState;if(f!==null){r.pending=null;var x=f=f.next;do m=e(m,x.action),x=x.next;while(x!==f);Wn(m,n.memoizedState)||(hn=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),r.lastRenderedState=m}return[m,l]}function Hh(e,n,r){var l=at,f=un(),m=xt;if(m){if(r===void 0)throw Error(s(407));r=r()}else r=n();var x=!Wn((Lt||f).memoizedState,r);if(x&&(f.memoizedState=r,hn=!0),f=f.queue,dd(Uh.bind(null,l,f,e),[e]),f.getSnapshot!==n||x||fn!==null&&fn.memoizedState.tag&1){if(l.flags|=2048,as(9,{destroy:void 0},Bh.bind(null,l,f,r,n),null),Ht===null)throw Error(s(349));m||(pr&127)!==0||zh(l,n,r)}return r}function zh(e,n,r){e.flags|=16384,e={getSnapshot:n,value:r},n=at.updateQueue,n===null?(n=Vo(),at.updateQueue=n,n.stores=[e]):(r=n.stores,r===null?n.stores=[e]:r.push(e))}function Bh(e,n,r,l){n.value=r,n.getSnapshot=l,Zh(n)&&Ph(e)}function Uh(e,n,r){return r(function(){Zh(n)&&Ph(e)})}function Zh(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!Wn(e,r)}catch{return!0}}function Ph(e){var n=yi(e,2);n!==null&&Xn(n,e,2)}function cd(e){var n=Bn();if(typeof e=="function"){var r=e;if(e=r(),Ti){Kt(!0);try{r()}finally{Kt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:e},n}function Fh(e,n,r,l){return e.baseState=r,ld(e,Lt,typeof l=="function"?l:gr)}function Vv(e,n,r,l,f){if(Zo(e))throw Error(s(485));if(e=n.action,e!==null){var m={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){m.listeners.push(x)}};V.T!==null?r(!0):m.isTransition=!1,l(m),r=n.pending,r===null?(m.next=n.pending=m,Ih(n,m)):(m.next=r.next,n.pending=r.next=m)}}function Ih(e,n){var r=n.action,l=n.payload,f=e.state;if(n.isTransition){var m=V.T,x={};V.T=x;try{var A=r(f,l),O=V.S;O!==null&&O(x,A),Gh(e,n,A)}catch(I){ud(e,n,I)}finally{m!==null&&x.types!==null&&(m.types=x.types),V.T=m}}else try{m=r(f,l),Gh(e,n,m)}catch(I){ud(e,n,I)}}function Gh(e,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){$h(e,n,l)},function(l){return ud(e,n,l)}):$h(e,n,r)}function $h(e,n,r){n.status="fulfilled",n.value=r,qh(n),e.state=r,n=e.pending,n!==null&&(r=n.next,r===n?e.pending=null:(r=r.next,n.next=r,Ih(e,r)))}function ud(e,n,r){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=r,qh(n),n=n.next;while(n!==l)}e.action=null}function qh(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Kh(e,n){return n}function Yh(e,n){if(xt){var r=Ht.formState;if(r!==null){e:{var l=at;if(xt){if(Zt){t:{for(var f=Zt,m=va;f.nodeType!==8;){if(!m){f=null;break t}if(f=Ea(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){Zt=Ea(f.nextSibling),l=f.data==="F!";break e}}kr(l)}l=!1}l&&(n=r[0])}}return r=Bn(),r.memoizedState=r.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kh,lastRenderedState:n},r.queue=l,r=mm.bind(null,at,l),l.dispatch=r,l=cd(!1),m=gd.bind(null,at,!1,l.queue),l=Bn(),f={state:n,dispatch:null,action:e,pending:null},l.queue=f,r=Vv.bind(null,at,f,m,r),f.dispatch=r,l.memoizedState=e,[n,r,!1]}function Xh(e){var n=un();return Qh(n,Lt,e)}function Qh(e,n,r){if(n=ld(e,n,Kh)[0],e=zo(gr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=tl(n)}catch(x){throw x===Ji?Ro:x}else l=n;n=un();var f=n.queue,m=f.dispatch;return r!==n.memoizedState&&(at.flags|=2048,as(9,{destroy:void 0},Hv.bind(null,f,r),null)),[l,m,e]}function Hv(e,n){e.action=n}function Jh(e){var n=un(),r=Lt;if(r!==null)return Qh(n,r,e);un(),n=n.memoizedState,r=un();var l=r.queue.dispatch;return r.memoizedState=e,[n,l,!1]}function as(e,n,r,l){return e={tag:e,create:r,deps:l,inst:n,next:null},n=at.updateQueue,n===null&&(n=Vo(),at.updateQueue=n),r=n.lastEffect,r===null?n.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,n.lastEffect=e),e}function Wh(){return un().memoizedState}function Bo(e,n,r,l){var f=Bn();at.flags|=e,f.memoizedState=as(1|n,{destroy:void 0},r,l===void 0?null:l)}function Uo(e,n,r,l){var f=un();l=l===void 0?null:l;var m=f.memoizedState.inst;Lt!==null&&l!==null&&td(l,Lt.memoizedState.deps)?f.memoizedState=as(n,m,r,l):(at.flags|=e,f.memoizedState=as(1|n,m,r,l))}function em(e,n){Bo(8390656,8,e,n)}function dd(e,n){Uo(2048,8,e,n)}function zv(e){at.flags|=4;var n=at.updateQueue;if(n===null)n=Vo(),at.updateQueue=n,n.events=[e];else{var r=n.events;r===null?n.events=[e]:r.push(e)}}function tm(e){var n=un().memoizedState;return zv({ref:n,nextImpl:e}),function(){if((Ct&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}function nm(e,n){return Uo(4,2,e,n)}function am(e,n){return Uo(4,4,e,n)}function rm(e,n){if(typeof n=="function"){e=e();var r=n(e);return function(){typeof r=="function"?r():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function im(e,n,r){r=r!=null?r.concat([e]):null,Uo(4,4,rm.bind(null,n,e),r)}function fd(){}function sm(e,n){var r=un();n=n===void 0?null:n;var l=r.memoizedState;return n!==null&&td(n,l[1])?l[0]:(r.memoizedState=[e,n],e)}function lm(e,n){var r=un();n=n===void 0?null:n;var l=r.memoizedState;if(n!==null&&td(n,l[1]))return l[0];if(l=e(),Ti){Kt(!0);try{e()}finally{Kt(!1)}}return r.memoizedState=[l,n],l}function hd(e,n,r){return r===void 0||(pr&1073741824)!==0&&(pt&261930)===0?e.memoizedState=n:(e.memoizedState=r,e=op(),at.lanes|=e,Ir|=e,r)}function om(e,n,r,l){return Wn(r,n)?r:es.current!==null?(e=hd(e,r,l),Wn(e,n)||(hn=!0),e):(pr&42)===0||(pr&1073741824)!==0&&(pt&261930)===0?(hn=!0,e.memoizedState=r):(e=op(),at.lanes|=e,Ir|=e,n)}function cm(e,n,r,l,f){var m=Q.p;Q.p=m!==0&&8>m?m:8;var x=V.T,A={};V.T=A,gd(e,!1,n,r);try{var O=f(),I=V.S;if(I!==null&&I(A,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var ee=Ov(O,l);nl(e,n,ee,ia(e))}else nl(e,n,l,ia(e))}catch(le){nl(e,n,{then:function(){},status:"rejected",reason:le},ia())}finally{Q.p=m,x!==null&&A.types!==null&&(x.types=A.types),V.T=x}}function Bv(){}function md(e,n,r,l){if(e.tag!==5)throw Error(s(476));var f=um(e).queue;cm(e,f,n,K,r===null?Bv:function(){return dm(e),r(l)})}function um(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:K},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:r},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function dm(e){var n=um(e);n.next===null&&(n=e.alternate.memoizedState),nl(e,n.next.queue,{},ia())}function pd(){return Mn(vl)}function fm(){return un().memoizedState}function hm(){return un().memoizedState}function Uv(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=ia();e=zr(r);var l=Br(n,e,r);l!==null&&(Xn(l,n,r),Qs(l,n,r)),n={cache:Iu()},e.payload=n;return}n=n.return}}function Zv(e,n,r){var l=ia();r={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Zo(e)?pm(n,r):(r=Ou(e,n,r,l),r!==null&&(Xn(r,e,l),gm(r,n,l)))}function mm(e,n,r){var l=ia();nl(e,n,r,l)}function nl(e,n,r,l){var f={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Zo(e))pm(n,f);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var x=n.lastRenderedState,A=m(x,r);if(f.hasEagerState=!0,f.eagerState=A,Wn(A,x))return Eo(e,n,f,0),Ht===null&&xo(),!1}catch{}finally{}if(r=Ou(e,n,f,l),r!==null)return Xn(r,e,l),gm(r,n,l),!0}return!1}function gd(e,n,r,l){if(l={lane:2,revertLane:Kd(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Zo(e)){if(n)throw Error(s(479))}else n=Ou(e,r,l,2),n!==null&&Xn(n,e,2)}function Zo(e){var n=e.alternate;return e===at||n!==null&&n===at}function pm(e,n){ts=Lo=!0;var r=e.pending;r===null?n.next=n:(n.next=r.next,r.next=n),e.pending=n}function gm(e,n,r){if((r&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,r|=l,n.lanes=r,Ge(e,r)}}var al={readContext:Mn,use:Ho,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useLayoutEffect:an,useInsertionEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useSyncExternalStore:an,useId:an,useHostTransitionStatus:an,useFormState:an,useActionState:an,useOptimistic:an,useMemoCache:an,useCacheRefresh:an};al.useEffectEvent=an;var ym={readContext:Mn,use:Ho,useCallback:function(e,n){return Bn().memoizedState=[e,n===void 0?null:n],e},useContext:Mn,useEffect:em,useImperativeHandle:function(e,n,r){r=r!=null?r.concat([e]):null,Bo(4194308,4,rm.bind(null,n,e),r)},useLayoutEffect:function(e,n){return Bo(4194308,4,e,n)},useInsertionEffect:function(e,n){Bo(4,2,e,n)},useMemo:function(e,n){var r=Bn();n=n===void 0?null:n;var l=e();if(Ti){Kt(!0);try{e()}finally{Kt(!1)}}return r.memoizedState=[l,n],l},useReducer:function(e,n,r){var l=Bn();if(r!==void 0){var f=r(n);if(Ti){Kt(!0);try{r(n)}finally{Kt(!1)}}}else f=n;return l.memoizedState=l.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},l.queue=e,e=e.dispatch=Zv.bind(null,at,e),[l.memoizedState,e]},useRef:function(e){var n=Bn();return e={current:e},n.memoizedState=e},useState:function(e){e=cd(e);var n=e.queue,r=mm.bind(null,at,n);return n.dispatch=r,[e.memoizedState,r]},useDebugValue:fd,useDeferredValue:function(e,n){var r=Bn();return hd(r,e,n)},useTransition:function(){var e=cd(!1);return e=cm.bind(null,at,e.queue,!0,!1),Bn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,r){var l=at,f=Bn();if(xt){if(r===void 0)throw Error(s(407));r=r()}else{if(r=n(),Ht===null)throw Error(s(349));(pt&127)!==0||zh(l,n,r)}f.memoizedState=r;var m={value:r,getSnapshot:n};return f.queue=m,em(Uh.bind(null,l,m,e),[e]),l.flags|=2048,as(9,{destroy:void 0},Bh.bind(null,l,m,r,n),null),r},useId:function(){var e=Bn(),n=Ht.identifierPrefix;if(xt){var r=Ka,l=qa;r=(l&~(1<<32-Yt(l)-1)).toString(32)+r,n="_"+n+"R_"+r,r=ko++,0<r&&(n+="H"+r.toString(32)),n+="_"}else r=Lv++,n="_"+n+"r_"+r.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:pd,useFormState:Yh,useActionState:Yh,useOptimistic:function(e){var n=Bn();n.memoizedState=n.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=gd.bind(null,at,!0,r),r.dispatch=n,[e,n]},useMemoCache:sd,useCacheRefresh:function(){return Bn().memoizedState=Uv.bind(null,at)},useEffectEvent:function(e){var n=Bn(),r={impl:e};return n.memoizedState=r,function(){if((Ct&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}},yd={readContext:Mn,use:Ho,useCallback:sm,useContext:Mn,useEffect:dd,useImperativeHandle:im,useInsertionEffect:nm,useLayoutEffect:am,useMemo:lm,useReducer:zo,useRef:Wh,useState:function(){return zo(gr)},useDebugValue:fd,useDeferredValue:function(e,n){var r=un();return om(r,Lt.memoizedState,e,n)},useTransition:function(){var e=zo(gr)[0],n=un().memoizedState;return[typeof e=="boolean"?e:tl(e),n]},useSyncExternalStore:Hh,useId:fm,useHostTransitionStatus:pd,useFormState:Xh,useActionState:Xh,useOptimistic:function(e,n){var r=un();return Fh(r,Lt,e,n)},useMemoCache:sd,useCacheRefresh:hm};yd.useEffectEvent=tm;var bm={readContext:Mn,use:Ho,useCallback:sm,useContext:Mn,useEffect:dd,useImperativeHandle:im,useInsertionEffect:nm,useLayoutEffect:am,useMemo:lm,useReducer:od,useRef:Wh,useState:function(){return od(gr)},useDebugValue:fd,useDeferredValue:function(e,n){var r=un();return Lt===null?hd(r,e,n):om(r,Lt.memoizedState,e,n)},useTransition:function(){var e=od(gr)[0],n=un().memoizedState;return[typeof e=="boolean"?e:tl(e),n]},useSyncExternalStore:Hh,useId:fm,useHostTransitionStatus:pd,useFormState:Jh,useActionState:Jh,useOptimistic:function(e,n){var r=un();return Lt!==null?Fh(r,Lt,e,n):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:sd,useCacheRefresh:hm};bm.useEffectEvent=tm;function bd(e,n,r,l){n=e.memoizedState,r=r(l,n),r=r==null?n:v({},n,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var vd={enqueueSetState:function(e,n,r){e=e._reactInternals;var l=ia(),f=zr(l);f.payload=n,r!=null&&(f.callback=r),n=Br(e,f,l),n!==null&&(Xn(n,e,l),Qs(n,e,l))},enqueueReplaceState:function(e,n,r){e=e._reactInternals;var l=ia(),f=zr(l);f.tag=1,f.payload=n,r!=null&&(f.callback=r),n=Br(e,f,l),n!==null&&(Xn(n,e,l),Qs(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var r=ia(),l=zr(r);l.tag=2,n!=null&&(l.callback=n),n=Br(e,l,r),n!==null&&(Xn(n,e,r),Qs(n,e,r))}};function vm(e,n,r,l,f,m,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,m,x):n.prototype&&n.prototype.isPureReactComponent?!Fs(r,l)||!Fs(f,m):!0}function xm(e,n,r,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,l),n.state!==e&&vd.enqueueReplaceState(n,n.state,null)}function Ci(e,n){var r=n;if("ref"in n){r={};for(var l in n)l!=="ref"&&(r[l]=n[l])}if(e=e.defaultProps){r===n&&(r=v({},r));for(var f in e)r[f]===void 0&&(r[f]=e[f])}return r}function Em(e){vo(e)}function Sm(e){console.error(e)}function wm(e){vo(e)}function Po(e,n){try{var r=e.onUncaughtError;r(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function Am(e,n,r){try{var l=e.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function xd(e,n,r){return r=zr(r),r.tag=3,r.payload={element:null},r.callback=function(){Po(e,n)},r}function Mm(e){return e=zr(e),e.tag=3,e}function Tm(e,n,r,l){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var m=l.value;e.payload=function(){return f(m)},e.callback=function(){Am(n,r,l)}}var x=r.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Am(n,r,l),typeof f!="function"&&(Gr===null?Gr=new Set([this]):Gr.add(this));var A=l.stack;this.componentDidCatch(l.value,{componentStack:A!==null?A:""})})}function Pv(e,n,r,l,f){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=r.alternate,n!==null&&Yi(n,r,f,!0),r=ta.current,r!==null){switch(r.tag){case 31:case 13:return xa===null?ec():r.alternate===null&&rn===0&&(rn=3),r.flags&=-257,r.flags|=65536,r.lanes=f,l===No?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([l]):n.add(l),Gd(e,l,f)),!1;case 22:return r.flags|=65536,l===No?r.flags|=16384:(n=r.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=n):(r=n.retryQueue,r===null?n.retryQueue=new Set([l]):r.add(l)),Gd(e,l,f)),!1}throw Error(s(435,r.tag))}return Gd(e,l,f),ec(),!1}if(xt)return n=ta.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,l!==Bu&&(e=Error(s(422),{cause:l}),$s(ga(e,r)))):(l!==Bu&&(n=Error(s(423),{cause:l}),$s(ga(n,r))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,l=ga(l,r),f=xd(e.stateNode,l,f),Xu(e,f),rn!==4&&(rn=2)),!1;var m=Error(s(520),{cause:l});if(m=ga(m,r),dl===null?dl=[m]:dl.push(m),rn!==4&&(rn=2),n===null)return!0;l=ga(l,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,e=f&-f,r.lanes|=e,e=xd(r.stateNode,l,e),Xu(r,e),!1;case 1:if(n=r.type,m=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Gr===null||!Gr.has(m))))return r.flags|=65536,f&=-f,r.lanes|=f,f=Mm(f),Tm(f,e,r,l),Xu(r,f),!1}r=r.return}while(r!==null);return!1}var Ed=Error(s(461)),hn=!1;function Tn(e,n,r,l){n.child=e===null?jh(n,null,r,l):Mi(n,e.child,r,l)}function Cm(e,n,r,l,f){r=r.render;var m=n.ref;if("ref"in l){var x={};for(var A in l)A!=="ref"&&(x[A]=l[A])}else x=l;return Ei(n),l=nd(e,n,r,x,m,f),A=ad(),e!==null&&!hn?(rd(e,n,f),yr(e,n,f)):(xt&&A&&Hu(n),n.flags|=1,Tn(e,n,l,f),n.child)}function Rm(e,n,r,l,f){if(e===null){var m=r.type;return typeof m=="function"&&!Lu(m)&&m.defaultProps===void 0&&r.compare===null?(n.tag=15,n.type=m,Nm(e,n,m,l,f)):(e=wo(r.type,null,l,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!Nd(e,f)){var x=m.memoizedProps;if(r=r.compare,r=r!==null?r:Fs,r(x,l)&&e.ref===n.ref)return yr(e,n,f)}return n.flags|=1,e=dr(m,l),e.ref=n.ref,e.return=n,n.child=e}function Nm(e,n,r,l,f){if(e!==null){var m=e.memoizedProps;if(Fs(m,l)&&e.ref===n.ref)if(hn=!1,n.pendingProps=l=m,Nd(e,f))(e.flags&131072)!==0&&(hn=!0);else return n.lanes=e.lanes,yr(e,n,f)}return Sd(e,n,r,l,f)}function jm(e,n,r,l){var f=l.children,m=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((n.flags&128)!==0){if(m=m!==null?m.baseLanes|r:r,e!==null){for(l=n.child=e.child,f=0;l!==null;)f=f|l.lanes|l.childLanes,l=l.sibling;l=f&~m}else l=0,n.child=null;return _m(e,n,m,r,l)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Co(n,m!==null?m.cachePool:null),m!==null?Oh(n,m):Ju(),Lh(n);else return l=n.lanes=536870912,_m(e,n,m!==null?m.baseLanes|r:r,r,l)}else m!==null?(Co(n,m.cachePool),Oh(n,m),Zr(),n.memoizedState=null):(e!==null&&Co(n,null),Ju(),Zr());return Tn(e,n,f,r),n.child}function rl(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function _m(e,n,r,l,f){var m=$u();return m=m===null?null:{parent:dn._currentValue,pool:m},n.memoizedState={baseLanes:r,cachePool:m},e!==null&&Co(n,null),Ju(),Lh(n),e!==null&&Yi(e,n,l,!0),n.childLanes=f,null}function Fo(e,n){return n=Go({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Dm(e,n,r){return Mi(n,e.child,null,r),e=Fo(n,n.pendingProps),e.flags|=2,na(n),n.memoizedState=null,e}function Fv(e,n,r){var l=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(xt){if(l.mode==="hidden")return e=Fo(n,l),n.lanes=536870912,rl(null,e);if(ed(n),(e=Zt)?(e=Ip(e,va),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Or!==null?{id:qa,overflow:Ka}:null,retryLane:536870912,hydrationErrors:null},r=ph(e),r.return=n,n.child=r,An=n,Zt=null)):e=null,e===null)throw kr(n);return n.lanes=536870912,null}return Fo(n,l)}var m=e.memoizedState;if(m!==null){var x=m.dehydrated;if(ed(n),f)if(n.flags&256)n.flags&=-257,n=Dm(e,n,r);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(s(558));else if(hn||Yi(e,n,r,!1),f=(r&e.childLanes)!==0,hn||f){if(l=Ht,l!==null&&(x=N(l,r),x!==0&&x!==m.retryLane))throw m.retryLane=x,yi(e,x),Xn(l,e,x),Ed;ec(),n=Dm(e,n,r)}else e=m.treeContext,Zt=Ea(x.nextSibling),An=n,xt=!0,Lr=null,va=!1,e!==null&&bh(n,e),n=Fo(n,l),n.flags|=4096;return n}return e=dr(e.child,{mode:l.mode,children:l.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Io(e,n){var r=n.ref;if(r===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(e===null||e.ref!==r)&&(n.flags|=4194816)}}function Sd(e,n,r,l,f){return Ei(n),r=nd(e,n,r,l,void 0,f),l=ad(),e!==null&&!hn?(rd(e,n,f),yr(e,n,f)):(xt&&l&&Hu(n),n.flags|=1,Tn(e,n,r,f),n.child)}function Om(e,n,r,l,f,m){return Ei(n),n.updateQueue=null,r=Vh(n,l,r,f),kh(e),l=ad(),e!==null&&!hn?(rd(e,n,m),yr(e,n,m)):(xt&&l&&Hu(n),n.flags|=1,Tn(e,n,r,m),n.child)}function Lm(e,n,r,l,f){if(Ei(n),n.stateNode===null){var m=Gi,x=r.contextType;typeof x=="object"&&x!==null&&(m=Mn(x)),m=new r(l,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=vd,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=l,m.state=n.memoizedState,m.refs={},Ku(n),x=r.contextType,m.context=typeof x=="object"&&x!==null?Mn(x):Gi,m.state=n.memoizedState,x=r.getDerivedStateFromProps,typeof x=="function"&&(bd(n,r,x,l),m.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(x=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),x!==m.state&&vd.enqueueReplaceState(m,m.state,null),Ws(n,l,m,f),Js(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){m=n.stateNode;var A=n.memoizedProps,O=Ci(r,A);m.props=O;var I=m.context,ee=r.contextType;x=Gi,typeof ee=="object"&&ee!==null&&(x=Mn(ee));var le=r.getDerivedStateFromProps;ee=typeof le=="function"||typeof m.getSnapshotBeforeUpdate=="function",A=n.pendingProps!==A,ee||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(A||I!==x)&&xm(n,m,l,x),Hr=!1;var G=n.memoizedState;m.state=G,Ws(n,l,m,f),Js(),I=n.memoizedState,A||G!==I||Hr?(typeof le=="function"&&(bd(n,r,le,l),I=n.memoizedState),(O=Hr||vm(n,r,O,l,G,I,x))?(ee||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=I),m.props=l,m.state=I,m.context=x,l=O):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{m=n.stateNode,Yu(e,n),x=n.memoizedProps,ee=Ci(r,x),m.props=ee,le=n.pendingProps,G=m.context,I=r.contextType,O=Gi,typeof I=="object"&&I!==null&&(O=Mn(I)),A=r.getDerivedStateFromProps,(I=typeof A=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==le||G!==O)&&xm(n,m,l,O),Hr=!1,G=n.memoizedState,m.state=G,Ws(n,l,m,f),Js();var Y=n.memoizedState;x!==le||G!==Y||Hr||e!==null&&e.dependencies!==null&&Mo(e.dependencies)?(typeof A=="function"&&(bd(n,r,A,l),Y=n.memoizedState),(ee=Hr||vm(n,r,ee,l,G,Y,O)||e!==null&&e.dependencies!==null&&Mo(e.dependencies))?(I||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,Y,O),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,Y,O)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=Y),m.props=l,m.state=Y,m.context=O,l=ee):(typeof m.componentDidUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),l=!1)}return m=l,Io(e,n),l=(n.flags&128)!==0,m||l?(m=n.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,e!==null&&l?(n.child=Mi(n,e.child,null,f),n.child=Mi(n,null,r,f)):Tn(e,n,r,f),n.memoizedState=m.state,e=n.child):e=yr(e,n,f),e}function km(e,n,r,l){return vi(),n.flags|=256,Tn(e,n,r,l),n.child}var wd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ad(e){return{baseLanes:e,cachePool:Ah()}}function Md(e,n,r){return e=e!==null?e.childLanes&~r:0,n&&(e|=ra),e}function Vm(e,n,r){var l=n.pendingProps,f=!1,m=(n.flags&128)!==0,x;if((x=m)||(x=e!==null&&e.memoizedState===null?!1:(cn.current&2)!==0),x&&(f=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(xt){if(f?Ur(n):Zr(),(e=Zt)?(e=Ip(e,va),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Or!==null?{id:qa,overflow:Ka}:null,retryLane:536870912,hydrationErrors:null},r=ph(e),r.return=n,n.child=r,An=n,Zt=null)):e=null,e===null)throw kr(n);return l0(e)?n.lanes=32:n.lanes=536870912,null}var A=l.children;return l=l.fallback,f?(Zr(),f=n.mode,A=Go({mode:"hidden",children:A},f),l=bi(l,f,r,null),A.return=n,l.return=n,A.sibling=l,n.child=A,l=n.child,l.memoizedState=Ad(r),l.childLanes=Md(e,x,r),n.memoizedState=wd,rl(null,l)):(Ur(n),Td(n,A))}var O=e.memoizedState;if(O!==null&&(A=O.dehydrated,A!==null)){if(m)n.flags&256?(Ur(n),n.flags&=-257,n=Cd(e,n,r)):n.memoizedState!==null?(Zr(),n.child=e.child,n.flags|=128,n=null):(Zr(),A=l.fallback,f=n.mode,l=Go({mode:"visible",children:l.children},f),A=bi(A,f,r,null),A.flags|=2,l.return=n,A.return=n,l.sibling=A,n.child=l,Mi(n,e.child,null,r),l=n.child,l.memoizedState=Ad(r),l.childLanes=Md(e,x,r),n.memoizedState=wd,n=rl(null,l));else if(Ur(n),l0(A)){if(x=A.nextSibling&&A.nextSibling.dataset,x)var I=x.dgst;x=I,l=Error(s(419)),l.stack="",l.digest=x,$s({value:l,source:null,stack:null}),n=Cd(e,n,r)}else if(hn||Yi(e,n,r,!1),x=(r&e.childLanes)!==0,hn||x){if(x=Ht,x!==null&&(l=N(x,r),l!==0&&l!==O.retryLane))throw O.retryLane=l,yi(e,l),Xn(x,e,l),Ed;s0(A)||ec(),n=Cd(e,n,r)}else s0(A)?(n.flags|=192,n.child=e.child,n=null):(e=O.treeContext,Zt=Ea(A.nextSibling),An=n,xt=!0,Lr=null,va=!1,e!==null&&bh(n,e),n=Td(n,l.children),n.flags|=4096);return n}return f?(Zr(),A=l.fallback,f=n.mode,O=e.child,I=O.sibling,l=dr(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,I!==null?A=dr(I,A):(A=bi(A,f,r,null),A.flags|=2),A.return=n,l.return=n,l.sibling=A,n.child=l,rl(null,l),l=n.child,A=e.child.memoizedState,A===null?A=Ad(r):(f=A.cachePool,f!==null?(O=dn._currentValue,f=f.parent!==O?{parent:O,pool:O}:f):f=Ah(),A={baseLanes:A.baseLanes|r,cachePool:f}),l.memoizedState=A,l.childLanes=Md(e,x,r),n.memoizedState=wd,rl(e.child,l)):(Ur(n),r=e.child,e=r.sibling,r=dr(r,{mode:"visible",children:l.children}),r.return=n,r.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=r,n.memoizedState=null,r)}function Td(e,n){return n=Go({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Go(e,n){return e=ea(22,e,null,n),e.lanes=0,e}function Cd(e,n,r){return Mi(n,e.child,null,r),e=Td(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Hm(e,n,r){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),Pu(e.return,n,r)}function Rd(e,n,r,l,f,m){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:f,treeForkCount:m}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=l,x.tail=r,x.tailMode=f,x.treeForkCount=m)}function zm(e,n,r){var l=n.pendingProps,f=l.revealOrder,m=l.tail;l=l.children;var x=cn.current,A=(x&2)!==0;if(A?(x=x&1|2,n.flags|=128):x&=1,ce(cn,x),Tn(e,n,l,r),l=xt?Gs:0,!A&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Hm(e,r,n);else if(e.tag===19)Hm(e,r,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(r=n.child,f=null;r!==null;)e=r.alternate,e!==null&&Oo(e)===null&&(f=r),r=r.sibling;r=f,r===null?(f=n.child,n.child=null):(f=r.sibling,r.sibling=null),Rd(n,!1,f,r,m,l);break;case"backwards":case"unstable_legacy-backwards":for(r=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&Oo(e)===null){n.child=f;break}e=f.sibling,f.sibling=r,r=f,f=e}Rd(n,!0,r,null,m,l);break;case"together":Rd(n,!1,null,null,void 0,l);break;default:n.memoizedState=null}return n.child}function yr(e,n,r){if(e!==null&&(n.dependencies=e.dependencies),Ir|=n.lanes,(r&n.childLanes)===0)if(e!==null){if(Yi(e,n,r,!1),(r&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(s(153));if(n.child!==null){for(e=n.child,r=dr(e,e.pendingProps),n.child=r,r.return=n;e.sibling!==null;)e=e.sibling,r=r.sibling=dr(e,e.pendingProps),r.return=n;r.sibling=null}return n.child}function Nd(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Mo(e)))}function Iv(e,n,r){switch(n.tag){case 3:Ze(n,n.stateNode.containerInfo),Vr(n,dn,e.memoizedState.cache),vi();break;case 27:case 5:ot(n);break;case 4:Ze(n,n.stateNode.containerInfo);break;case 10:Vr(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,ed(n),null;break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(Ur(n),n.flags|=128,null):(r&n.child.childLanes)!==0?Vm(e,n,r):(Ur(n),e=yr(e,n,r),e!==null?e.sibling:null);Ur(n);break;case 19:var f=(e.flags&128)!==0;if(l=(r&n.childLanes)!==0,l||(Yi(e,n,r,!1),l=(r&n.childLanes)!==0),f){if(l)return zm(e,n,r);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ce(cn,cn.current),l)break;return null;case 22:return n.lanes=0,jm(e,n,r,n.pendingProps);case 24:Vr(n,dn,e.memoizedState.cache)}return yr(e,n,r)}function Bm(e,n,r){if(e!==null)if(e.memoizedProps!==n.pendingProps)hn=!0;else{if(!Nd(e,r)&&(n.flags&128)===0)return hn=!1,Iv(e,n,r);hn=(e.flags&131072)!==0}else hn=!1,xt&&(n.flags&1048576)!==0&&yh(n,Gs,n.index);switch(n.lanes=0,n.tag){case 16:e:{var l=n.pendingProps;if(e=wi(n.elementType),n.type=e,typeof e=="function")Lu(e)?(l=Ci(e,l),n.tag=1,n=Lm(null,n,e,l,r)):(n.tag=0,n=Sd(null,n,e,l,r));else{if(e!=null){var f=e.$$typeof;if(f===H){n.tag=11,n=Cm(null,n,e,l,r);break e}else if(f===ne){n.tag=14,n=Rm(null,n,e,l,r);break e}}throw n=he(e)||e,Error(s(306,n,""))}}return n;case 0:return Sd(e,n,n.type,n.pendingProps,r);case 1:return l=n.type,f=Ci(l,n.pendingProps),Lm(e,n,l,f,r);case 3:e:{if(Ze(n,n.stateNode.containerInfo),e===null)throw Error(s(387));l=n.pendingProps;var m=n.memoizedState;f=m.element,Yu(e,n),Ws(n,l,null,r);var x=n.memoizedState;if(l=x.cache,Vr(n,dn,l),l!==m.cache&&Fu(n,[dn],r,!0),Js(),l=x.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=km(e,n,l,r);break e}else if(l!==f){f=ga(Error(s(424)),n),$s(f),n=km(e,n,l,r);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Zt=Ea(e.firstChild),An=n,xt=!0,Lr=null,va=!0,r=jh(n,null,l,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(vi(),l===f){n=yr(e,n,r);break e}Tn(e,n,l,r)}n=n.child}return n;case 26:return Io(e,n),e===null?(r=Xp(n.type,null,n.pendingProps,null))?n.memoizedState=r:xt||(r=n.type,e=n.pendingProps,l=lc(Re.current).createElement(r),l[ve]=n,l[je]=e,Cn(l,r,e),Tt(l),n.stateNode=l):n.memoizedState=Xp(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return ot(n),e===null&&xt&&(l=n.stateNode=qp(n.type,n.pendingProps,Re.current),An=n,va=!0,f=Zt,Yr(n.type)?(o0=f,Zt=Ea(l.firstChild)):Zt=f),Tn(e,n,n.pendingProps.children,r),Io(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&xt&&((f=l=Zt)&&(l=xx(l,n.type,n.pendingProps,va),l!==null?(n.stateNode=l,An=n,Zt=Ea(l.firstChild),va=!1,f=!0):f=!1),f||kr(n)),ot(n),f=n.type,m=n.pendingProps,x=e!==null?e.memoizedProps:null,l=m.children,a0(f,m)?l=null:x!==null&&a0(f,x)&&(n.flags|=32),n.memoizedState!==null&&(f=nd(e,n,kv,null,null,r),vl._currentValue=f),Io(e,n),Tn(e,n,l,r),n.child;case 6:return e===null&&xt&&((e=r=Zt)&&(r=Ex(r,n.pendingProps,va),r!==null?(n.stateNode=r,An=n,Zt=null,e=!0):e=!1),e||kr(n)),null;case 13:return Vm(e,n,r);case 4:return Ze(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Mi(n,null,l,r):Tn(e,n,l,r),n.child;case 11:return Cm(e,n,n.type,n.pendingProps,r);case 7:return Tn(e,n,n.pendingProps,r),n.child;case 8:return Tn(e,n,n.pendingProps.children,r),n.child;case 12:return Tn(e,n,n.pendingProps.children,r),n.child;case 10:return l=n.pendingProps,Vr(n,n.type,l.value),Tn(e,n,l.children,r),n.child;case 9:return f=n.type._context,l=n.pendingProps.children,Ei(n),f=Mn(f),l=l(f),n.flags|=1,Tn(e,n,l,r),n.child;case 14:return Rm(e,n,n.type,n.pendingProps,r);case 15:return Nm(e,n,n.type,n.pendingProps,r);case 19:return zm(e,n,r);case 31:return Fv(e,n,r);case 22:return jm(e,n,r,n.pendingProps);case 24:return Ei(n),l=Mn(dn),e===null?(f=$u(),f===null&&(f=Ht,m=Iu(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=r),f=m),n.memoizedState={parent:l,cache:f},Ku(n),Vr(n,dn,f)):((e.lanes&r)!==0&&(Yu(e,n),Ws(n,null,null,r),Js()),f=e.memoizedState,m=n.memoizedState,f.parent!==l?(f={parent:l,cache:l},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),Vr(n,dn,l)):(l=m.cache,Vr(n,dn,l),l!==f.cache&&Fu(n,[dn],r,!0))),Tn(e,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function br(e){e.flags|=4}function jd(e,n,r,l,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(fp())e.flags|=8192;else throw Ai=No,qu}else e.flags&=-16777217}function Um(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!t2(n))if(fp())e.flags|=8192;else throw Ai=No,qu}function $o(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?qe():536870912,e.lanes|=n,ls|=n)}function il(e,n){if(!xt)switch(e.tailMode){case"hidden":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Pt(e){var n=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(n)for(var f=e.child;f!==null;)r|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)r|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=l,e.childLanes=r,n}function Gv(e,n,r){var l=n.pendingProps;switch(zu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pt(n),null;case 1:return Pt(n),null;case 3:return r=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),mr(dn),Oe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ki(n)?br(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Uu())),Pt(n),null;case 26:var f=n.type,m=n.memoizedState;return e===null?(br(n),m!==null?(Pt(n),Um(n,m)):(Pt(n),jd(n,f,null,l,r))):m?m!==e.memoizedState?(br(n),Pt(n),Um(n,m)):(Pt(n),n.flags&=-16777217):(e=e.memoizedProps,e!==l&&br(n),Pt(n),jd(n,f,e,l,r)),null;case 27:if(me(n),r=Re.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&br(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Pt(n),null}e=ye.current,Ki(n)?vh(n):(e=qp(f,l,r),n.stateNode=e,br(n))}return Pt(n),null;case 5:if(me(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&br(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Pt(n),null}if(m=ye.current,Ki(n))vh(n);else{var x=lc(Re.current);switch(m){case 1:m=x.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:m=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":m=x.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":m=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":m=x.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof l.is=="string"?x.createElement("select",{is:l.is}):x.createElement("select"),l.multiple?m.multiple=!0:l.size&&(m.size=l.size);break;default:m=typeof l.is=="string"?x.createElement(f,{is:l.is}):x.createElement(f)}}m[ve]=n,m[je]=l;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)m.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=m;e:switch(Cn(m,f,l),f){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&br(n)}}return Pt(n),jd(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,r),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&br(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(s(166));if(e=Re.current,Ki(n)){if(e=n.stateNode,r=n.memoizedProps,l=null,f=An,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}e[ve]=n,e=!!(e.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||Vp(e.nodeValue,r)),e||kr(n,!0)}else e=lc(e).createTextNode(l),e[ve]=n,n.stateNode=e}return Pt(n),null;case 31:if(r=n.memoizedState,e===null||e.memoizedState!==null){if(l=Ki(n),r!==null){if(e===null){if(!l)throw Error(s(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[ve]=n}else vi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Pt(n),e=!1}else r=Uu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return n.flags&256?(na(n),n):(na(n),null);if((n.flags&128)!==0)throw Error(s(558))}return Pt(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Ki(n),l!==null&&l.dehydrated!==null){if(e===null){if(!f)throw Error(s(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(s(317));f[ve]=n}else vi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Pt(n),f=!1}else f=Uu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(na(n),n):(na(n),null)}return na(n),(n.flags&128)!==0?(n.lanes=r,n):(r=l!==null,e=e!==null&&e.memoizedState!==null,r&&(l=n.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==f&&(l.flags|=2048)),r!==e&&r&&(n.child.flags|=8192),$o(n,n.updateQueue),Pt(n),null);case 4:return Oe(),e===null&&Jd(n.stateNode.containerInfo),Pt(n),null;case 10:return mr(n.type),Pt(n),null;case 19:if(q(cn),l=n.memoizedState,l===null)return Pt(n),null;if(f=(n.flags&128)!==0,m=l.rendering,m===null)if(f)il(l,!1);else{if(rn!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=Oo(e),m!==null){for(n.flags|=128,il(l,!1),e=m.updateQueue,n.updateQueue=e,$o(n,e),n.subtreeFlags=0,e=r,r=n.child;r!==null;)mh(r,e),r=r.sibling;return ce(cn,cn.current&1|2),xt&&fr(n,l.treeForkCount),n.child}e=e.sibling}l.tail!==null&&Dt()>Qo&&(n.flags|=128,f=!0,il(l,!1),n.lanes=4194304)}else{if(!f)if(e=Oo(m),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,$o(n,e),il(l,!0),l.tail===null&&l.tailMode==="hidden"&&!m.alternate&&!xt)return Pt(n),null}else 2*Dt()-l.renderingStartTime>Qo&&r!==536870912&&(n.flags|=128,f=!0,il(l,!1),n.lanes=4194304);l.isBackwards?(m.sibling=n.child,n.child=m):(e=l.last,e!==null?e.sibling=m:n.child=m,l.last=m)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Dt(),e.sibling=null,r=cn.current,ce(cn,f?r&1|2:r&1),xt&&fr(n,l.treeForkCount),e):(Pt(n),null);case 22:case 23:return na(n),Wu(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(r&536870912)!==0&&(n.flags&128)===0&&(Pt(n),n.subtreeFlags&6&&(n.flags|=8192)):Pt(n),r=n.updateQueue,r!==null&&$o(n,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==r&&(n.flags|=2048),e!==null&&q(Si),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),mr(dn),Pt(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function $v(e,n){switch(zu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return mr(dn),Oe(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return me(n),null;case 31:if(n.memoizedState!==null){if(na(n),n.alternate===null)throw Error(s(340));vi()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(na(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));vi()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return q(cn),null;case 4:return Oe(),null;case 10:return mr(n.type),null;case 22:case 23:return na(n),Wu(),e!==null&&q(Si),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return mr(dn),null;case 25:return null;default:return null}}function Zm(e,n){switch(zu(n),n.tag){case 3:mr(dn),Oe();break;case 26:case 27:case 5:me(n);break;case 4:Oe();break;case 31:n.memoizedState!==null&&na(n);break;case 13:na(n);break;case 19:q(cn);break;case 10:mr(n.type);break;case 22:case 23:na(n),Wu(),e!==null&&q(Si);break;case 24:mr(dn)}}function sl(e,n){try{var r=n.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var f=l.next;r=f;do{if((r.tag&e)===e){l=void 0;var m=r.create,x=r.inst;l=m(),x.destroy=l}r=r.next}while(r!==f)}}catch(A){_t(n,n.return,A)}}function Pr(e,n,r){try{var l=n.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var m=f.next;l=m;do{if((l.tag&e)===e){var x=l.inst,A=x.destroy;if(A!==void 0){x.destroy=void 0,f=n;var O=r,I=A;try{I()}catch(ee){_t(f,O,ee)}}}l=l.next}while(l!==m)}}catch(ee){_t(n,n.return,ee)}}function Pm(e){var n=e.updateQueue;if(n!==null){var r=e.stateNode;try{Dh(n,r)}catch(l){_t(e,e.return,l)}}}function Fm(e,n,r){r.props=Ci(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(l){_t(e,n,l)}}function ll(e,n){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof r=="function"?e.refCleanup=r(l):r.current=l}}catch(f){_t(e,n,f)}}function Ya(e,n){var r=e.ref,l=e.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(f){_t(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(f){_t(e,n,f)}else r.current=null}function Im(e){var n=e.type,r=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break e;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(f){_t(e,e.return,f)}}function _d(e,n,r){try{var l=e.stateNode;mx(l,e.type,r,n),l[je]=n}catch(f){_t(e,e.return,f)}}function Gm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Yr(e.type)||e.tag===4}function Dd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Yr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Od(e,n,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,n):(n=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,n.appendChild(e),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=pe));else if(l!==4&&(l===27&&Yr(e.type)&&(r=e.stateNode,n=null),e=e.child,e!==null))for(Od(e,n,r),e=e.sibling;e!==null;)Od(e,n,r),e=e.sibling}function qo(e,n,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?r.insertBefore(e,n):r.appendChild(e);else if(l!==4&&(l===27&&Yr(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(qo(e,n,r),e=e.sibling;e!==null;)qo(e,n,r),e=e.sibling}function $m(e){var n=e.stateNode,r=e.memoizedProps;try{for(var l=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);Cn(n,l,r),n[ve]=e,n[je]=r}catch(m){_t(e,e.return,m)}}var vr=!1,mn=!1,Ld=!1,qm=typeof WeakSet=="function"?WeakSet:Set,En=null;function qv(e,n){if(e=e.containerInfo,t0=mc,e=ih(e),Cu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var f=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{r.nodeType,m.nodeType}catch{r=null;break e}var x=0,A=-1,O=-1,I=0,ee=0,le=e,G=null;t:for(;;){for(var Y;le!==r||f!==0&&le.nodeType!==3||(A=x+f),le!==m||l!==0&&le.nodeType!==3||(O=x+l),le.nodeType===3&&(x+=le.nodeValue.length),(Y=le.firstChild)!==null;)G=le,le=Y;for(;;){if(le===e)break t;if(G===r&&++I===f&&(A=x),G===m&&++ee===l&&(O=x),(Y=le.nextSibling)!==null)break;le=G,G=le.parentNode}le=Y}r=A===-1||O===-1?null:{start:A,end:O}}else r=null}r=r||{start:0,end:0}}else r=null;for(n0={focusedElem:e,selectionRange:r},mc=!1,En=n;En!==null;)if(n=En,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,En=e;else for(;En!==null;){switch(n=En,m=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)f=e[r],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,r=n,f=m.memoizedProps,m=m.memoizedState,l=r.stateNode;try{var Ve=Ci(r.type,f);e=l.getSnapshotBeforeUpdate(Ve,m),l.__reactInternalSnapshotBeforeUpdate=e}catch(Ke){_t(r,r.return,Ke)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,r=e.nodeType,r===9)i0(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":i0(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=n.sibling,e!==null){e.return=n.return,En=e;break}En=n.return}}function Km(e,n,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:Er(e,r),l&4&&sl(5,r);break;case 1:if(Er(e,r),l&4)if(e=r.stateNode,n===null)try{e.componentDidMount()}catch(x){_t(r,r.return,x)}else{var f=Ci(r.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){_t(r,r.return,x)}}l&64&&Pm(r),l&512&&ll(r,r.return);break;case 3:if(Er(e,r),l&64&&(e=r.updateQueue,e!==null)){if(n=null,r.child!==null)switch(r.child.tag){case 27:case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}try{Dh(e,n)}catch(x){_t(r,r.return,x)}}break;case 27:n===null&&l&4&&$m(r);case 26:case 5:Er(e,r),n===null&&l&4&&Im(r),l&512&&ll(r,r.return);break;case 12:Er(e,r);break;case 31:Er(e,r),l&4&&Qm(e,r);break;case 13:Er(e,r),l&4&&Jm(e,r),l&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=nx.bind(null,r),Sx(e,r))));break;case 22:if(l=r.memoizedState!==null||vr,!l){n=n!==null&&n.memoizedState!==null||mn,f=vr;var m=mn;vr=l,(mn=n)&&!m?Sr(e,r,(r.subtreeFlags&8772)!==0):Er(e,r),vr=f,mn=m}break;case 30:break;default:Er(e,r)}}function Ym(e){var n=e.alternate;n!==null&&(e.alternate=null,Ym(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&wt(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var $t=null,$n=!1;function xr(e,n,r){for(r=r.child;r!==null;)Xm(e,n,r),r=r.sibling}function Xm(e,n,r){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(_n,r)}catch{}switch(r.tag){case 26:mn||Ya(r,n),xr(e,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:mn||Ya(r,n);var l=$t,f=$n;Yr(r.type)&&($t=r.stateNode,$n=!1),xr(e,n,r),gl(r.stateNode),$t=l,$n=f;break;case 5:mn||Ya(r,n);case 6:if(l=$t,f=$n,$t=null,xr(e,n,r),$t=l,$n=f,$t!==null)if($n)try{($t.nodeType===9?$t.body:$t.nodeName==="HTML"?$t.ownerDocument.body:$t).removeChild(r.stateNode)}catch(m){_t(r,n,m)}else try{$t.removeChild(r.stateNode)}catch(m){_t(r,n,m)}break;case 18:$t!==null&&($n?(e=$t,Pp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),ps(e)):Pp($t,r.stateNode));break;case 4:l=$t,f=$n,$t=r.stateNode.containerInfo,$n=!0,xr(e,n,r),$t=l,$n=f;break;case 0:case 11:case 14:case 15:Pr(2,r,n),mn||Pr(4,r,n),xr(e,n,r);break;case 1:mn||(Ya(r,n),l=r.stateNode,typeof l.componentWillUnmount=="function"&&Fm(r,n,l)),xr(e,n,r);break;case 21:xr(e,n,r);break;case 22:mn=(l=mn)||r.memoizedState!==null,xr(e,n,r),mn=l;break;default:xr(e,n,r)}}function Qm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ps(e)}catch(r){_t(n,n.return,r)}}}function Jm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ps(e)}catch(r){_t(n,n.return,r)}}function Kv(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new qm),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new qm),n;default:throw Error(s(435,e.tag))}}function Ko(e,n){var r=Kv(e);n.forEach(function(l){if(!r.has(l)){r.add(l);var f=ax.bind(null,e,l);l.then(f,f)}})}function qn(e,n){var r=n.deletions;if(r!==null)for(var l=0;l<r.length;l++){var f=r[l],m=e,x=n,A=x;e:for(;A!==null;){switch(A.tag){case 27:if(Yr(A.type)){$t=A.stateNode,$n=!1;break e}break;case 5:$t=A.stateNode,$n=!1;break e;case 3:case 4:$t=A.stateNode.containerInfo,$n=!0;break e}A=A.return}if($t===null)throw Error(s(160));Xm(m,x,f),$t=null,$n=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Wm(n,e),n=n.sibling}var Oa=null;function Wm(e,n){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:qn(n,e),Kn(e),l&4&&(Pr(3,e,e.return),sl(3,e),Pr(5,e,e.return));break;case 1:qn(n,e),Kn(e),l&512&&(mn||r===null||Ya(r,r.return)),l&64&&vr&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var f=Oa;if(qn(n,e),Kn(e),l&512&&(mn||r===null||Ya(r,r.return)),l&4){var m=r!==null?r.memoizedState:null;if(l=e.memoizedState,r===null)if(l===null)if(e.stateNode===null){e:{l=e.type,r=e.memoizedProps,f=f.ownerDocument||f;t:switch(l){case"title":m=f.getElementsByTagName("title")[0],(!m||m[et]||m[ve]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(l),f.head.insertBefore(m,f.querySelector("head > title"))),Cn(m,l,r),m[ve]=e,Tt(m),l=m;break e;case"link":var x=Wp("link","href",f).get(l+(r.href||""));if(x){for(var A=0;A<x.length;A++)if(m=x[A],m.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&m.getAttribute("rel")===(r.rel==null?null:r.rel)&&m.getAttribute("title")===(r.title==null?null:r.title)&&m.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){x.splice(A,1);break t}}m=f.createElement(l),Cn(m,l,r),f.head.appendChild(m);break;case"meta":if(x=Wp("meta","content",f).get(l+(r.content||""))){for(A=0;A<x.length;A++)if(m=x[A],m.getAttribute("content")===(r.content==null?null:""+r.content)&&m.getAttribute("name")===(r.name==null?null:r.name)&&m.getAttribute("property")===(r.property==null?null:r.property)&&m.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&m.getAttribute("charset")===(r.charSet==null?null:r.charSet)){x.splice(A,1);break t}}m=f.createElement(l),Cn(m,l,r),f.head.appendChild(m);break;default:throw Error(s(468,l))}m[ve]=e,Tt(m),l=m}e.stateNode=l}else e2(f,e.type,e.stateNode);else e.stateNode=Jp(f,l,e.memoizedProps);else m!==l?(m===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):m.count--,l===null?e2(f,e.type,e.stateNode):Jp(f,l,e.memoizedProps)):l===null&&e.stateNode!==null&&_d(e,e.memoizedProps,r.memoizedProps)}break;case 27:qn(n,e),Kn(e),l&512&&(mn||r===null||Ya(r,r.return)),r!==null&&l&4&&_d(e,e.memoizedProps,r.memoizedProps);break;case 5:if(qn(n,e),Kn(e),l&512&&(mn||r===null||Ya(r,r.return)),e.flags&32){f=e.stateNode;try{$e(f,"")}catch(Ve){_t(e,e.return,Ve)}}l&4&&e.stateNode!=null&&(f=e.memoizedProps,_d(e,f,r!==null?r.memoizedProps:f)),l&1024&&(Ld=!0);break;case 6:if(qn(n,e),Kn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,r=e.stateNode;try{r.nodeValue=l}catch(Ve){_t(e,e.return,Ve)}}break;case 3:if(uc=null,f=Oa,Oa=oc(n.containerInfo),qn(n,e),Oa=f,Kn(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{ps(n.containerInfo)}catch(Ve){_t(e,e.return,Ve)}Ld&&(Ld=!1,ep(e));break;case 4:l=Oa,Oa=oc(e.stateNode.containerInfo),qn(n,e),Kn(e),Oa=l;break;case 12:qn(n,e),Kn(e);break;case 31:qn(n,e),Kn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ko(e,l)));break;case 13:qn(n,e),Kn(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Xo=Dt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ko(e,l)));break;case 22:f=e.memoizedState!==null;var O=r!==null&&r.memoizedState!==null,I=vr,ee=mn;if(vr=I||f,mn=ee||O,qn(n,e),mn=ee,vr=I,Kn(e),l&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(r===null||O||vr||mn||Ri(e)),r=null,n=e;;){if(n.tag===5||n.tag===26){if(r===null){O=r=n;try{if(m=O.stateNode,f)x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{A=O.stateNode;var le=O.memoizedProps.style,G=le!=null&&le.hasOwnProperty("display")?le.display:null;A.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(Ve){_t(O,O.return,Ve)}}}else if(n.tag===6){if(r===null){O=n;try{O.stateNode.nodeValue=f?"":O.memoizedProps}catch(Ve){_t(O,O.return,Ve)}}}else if(n.tag===18){if(r===null){O=n;try{var Y=O.stateNode;f?Fp(Y,!0):Fp(O.stateNode,!1)}catch(Ve){_t(O,O.return,Ve)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;r===n&&(r=null),n=n.return}r===n&&(r=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,Ko(e,r))));break;case 19:qn(n,e),Kn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ko(e,l)));break;case 30:break;case 21:break;default:qn(n,e),Kn(e)}}function Kn(e){var n=e.flags;if(n&2){try{for(var r,l=e.return;l!==null;){if(Gm(l)){r=l;break}l=l.return}if(r==null)throw Error(s(160));switch(r.tag){case 27:var f=r.stateNode,m=Dd(e);qo(e,m,f);break;case 5:var x=r.stateNode;r.flags&32&&($e(x,""),r.flags&=-33);var A=Dd(e);qo(e,A,x);break;case 3:case 4:var O=r.stateNode.containerInfo,I=Dd(e);Od(e,I,O);break;default:throw Error(s(161))}}catch(ee){_t(e,e.return,ee)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function ep(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;ep(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Er(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Km(e,n.alternate,n),n=n.sibling}function Ri(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Pr(4,n,n.return),Ri(n);break;case 1:Ya(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&Fm(n,n.return,r),Ri(n);break;case 27:gl(n.stateNode);case 26:case 5:Ya(n,n.return),Ri(n);break;case 22:n.memoizedState===null&&Ri(n);break;case 30:Ri(n);break;default:Ri(n)}e=e.sibling}}function Sr(e,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,f=e,m=n,x=m.flags;switch(m.tag){case 0:case 11:case 15:Sr(f,m,r),sl(4,m);break;case 1:if(Sr(f,m,r),l=m,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(I){_t(l,l.return,I)}if(l=m,f=l.updateQueue,f!==null){var A=l.stateNode;try{var O=f.shared.hiddenCallbacks;if(O!==null)for(f.shared.hiddenCallbacks=null,f=0;f<O.length;f++)_h(O[f],A)}catch(I){_t(l,l.return,I)}}r&&x&64&&Pm(m),ll(m,m.return);break;case 27:$m(m);case 26:case 5:Sr(f,m,r),r&&l===null&&x&4&&Im(m),ll(m,m.return);break;case 12:Sr(f,m,r);break;case 31:Sr(f,m,r),r&&x&4&&Qm(f,m);break;case 13:Sr(f,m,r),r&&x&4&&Jm(f,m);break;case 22:m.memoizedState===null&&Sr(f,m,r),ll(m,m.return);break;case 30:break;default:Sr(f,m,r)}n=n.sibling}}function kd(e,n){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&qs(r))}function Vd(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&qs(e))}function La(e,n,r,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)tp(e,n,r,l),n=n.sibling}function tp(e,n,r,l){var f=n.flags;switch(n.tag){case 0:case 11:case 15:La(e,n,r,l),f&2048&&sl(9,n);break;case 1:La(e,n,r,l);break;case 3:La(e,n,r,l),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&qs(e)));break;case 12:if(f&2048){La(e,n,r,l),e=n.stateNode;try{var m=n.memoizedProps,x=m.id,A=m.onPostCommit;typeof A=="function"&&A(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){_t(n,n.return,O)}}else La(e,n,r,l);break;case 31:La(e,n,r,l);break;case 13:La(e,n,r,l);break;case 23:break;case 22:m=n.stateNode,x=n.alternate,n.memoizedState!==null?m._visibility&2?La(e,n,r,l):ol(e,n):m._visibility&2?La(e,n,r,l):(m._visibility|=2,rs(e,n,r,l,(n.subtreeFlags&10256)!==0||!1)),f&2048&&kd(x,n);break;case 24:La(e,n,r,l),f&2048&&Vd(n.alternate,n);break;default:La(e,n,r,l)}}function rs(e,n,r,l,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var m=e,x=n,A=r,O=l,I=x.flags;switch(x.tag){case 0:case 11:case 15:rs(m,x,A,O,f),sl(8,x);break;case 23:break;case 22:var ee=x.stateNode;x.memoizedState!==null?ee._visibility&2?rs(m,x,A,O,f):ol(m,x):(ee._visibility|=2,rs(m,x,A,O,f)),f&&I&2048&&kd(x.alternate,x);break;case 24:rs(m,x,A,O,f),f&&I&2048&&Vd(x.alternate,x);break;default:rs(m,x,A,O,f)}n=n.sibling}}function ol(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var r=e,l=n,f=l.flags;switch(l.tag){case 22:ol(r,l),f&2048&&kd(l.alternate,l);break;case 24:ol(r,l),f&2048&&Vd(l.alternate,l);break;default:ol(r,l)}n=n.sibling}}var cl=8192;function is(e,n,r){if(e.subtreeFlags&cl)for(e=e.child;e!==null;)np(e,n,r),e=e.sibling}function np(e,n,r){switch(e.tag){case 26:is(e,n,r),e.flags&cl&&e.memoizedState!==null&&Lx(r,Oa,e.memoizedState,e.memoizedProps);break;case 5:is(e,n,r);break;case 3:case 4:var l=Oa;Oa=oc(e.stateNode.containerInfo),is(e,n,r),Oa=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=cl,cl=16777216,is(e,n,r),cl=l):is(e,n,r));break;default:is(e,n,r)}}function ap(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function ul(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];En=l,ip(l,e)}ap(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rp(e),e=e.sibling}function rp(e){switch(e.tag){case 0:case 11:case 15:ul(e),e.flags&2048&&Pr(9,e,e.return);break;case 3:ul(e);break;case 12:ul(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Yo(e)):ul(e);break;default:ul(e)}}function Yo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];En=l,ip(l,e)}ap(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Pr(8,n,n.return),Yo(n);break;case 22:r=n.stateNode,r._visibility&2&&(r._visibility&=-3,Yo(n));break;default:Yo(n)}e=e.sibling}}function ip(e,n){for(;En!==null;){var r=En;switch(r.tag){case 0:case 11:case 15:Pr(8,r,n);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:qs(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,En=l;else e:for(r=e;En!==null;){l=En;var f=l.sibling,m=l.return;if(Ym(l),l===r){En=null;break e}if(f!==null){f.return=m,En=f;break e}En=m}}}var Yv={getCacheForType:function(e){var n=Mn(dn),r=n.data.get(e);return r===void 0&&(r=e(),n.data.set(e,r)),r},cacheSignal:function(){return Mn(dn).controller.signal}},Xv=typeof WeakMap=="function"?WeakMap:Map,Ct=0,Ht=null,dt=null,pt=0,jt=0,aa=null,Fr=!1,ss=!1,Hd=!1,wr=0,rn=0,Ir=0,Ni=0,zd=0,ra=0,ls=0,dl=null,Yn=null,Bd=!1,Xo=0,sp=0,Qo=1/0,Jo=null,Gr=null,vn=0,$r=null,os=null,Ar=0,Ud=0,Zd=null,lp=null,fl=0,Pd=null;function ia(){return(Ct&2)!==0&&pt!==0?pt&-pt:V.T!==null?Kd():ue()}function op(){if(ra===0)if((pt&536870912)===0||xt){var e=Vn;Vn<<=1,(Vn&3932160)===0&&(Vn=262144),ra=e}else ra=536870912;return e=ta.current,e!==null&&(e.flags|=32),ra}function Xn(e,n,r){(e===Ht&&(jt===2||jt===9)||e.cancelPendingCommit!==null)&&(cs(e,0),qr(e,pt,ra,!1)),Et(e,r),((Ct&2)===0||e!==Ht)&&(e===Ht&&((Ct&2)===0&&(Ni|=r),rn===4&&qr(e,pt,ra,!1)),Xa(e))}function cp(e,n,r){if((Ct&6)!==0)throw Error(s(327));var l=!r&&(n&127)===0&&(n&e.expiredLanes)===0||W(e,n),f=l?Wv(e,n):Id(e,n,!0),m=l;do{if(f===0){ss&&!l&&qr(e,n,0,!1);break}else{if(r=e.current.alternate,m&&!Qv(r)){f=Id(e,n,!1),m=!1;continue}if(f===2){if(m=n,e.errorRecoveryDisabledLanes&m)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var A=e;f=dl;var O=A.current.memoizedState.isDehydrated;if(O&&(cs(A,x).flags|=256),x=Id(A,x,!1),x!==2){if(Hd&&!O){A.errorRecoveryDisabledLanes|=m,Ni|=m,f=4;break e}m=Yn,Yn=f,m!==null&&(Yn===null?Yn=m:Yn.push.apply(Yn,m))}f=x}if(m=!1,f!==2)continue}}if(f===1){cs(e,0),qr(e,n,0,!0);break}e:{switch(l=e,m=f,m){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:qr(l,n,ra,!Fr);break e;case 2:Yn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(f=Xo+300-Dt(),10<f)){if(qr(l,n,ra,!Fr),L(l,0,!0)!==0)break e;Ar=n,l.timeoutHandle=Up(up.bind(null,l,r,Yn,Jo,Bd,n,ra,Ni,ls,Fr,m,"Throttled",-0,0),f);break e}up(l,r,Yn,Jo,Bd,n,ra,Ni,ls,Fr,m,null,-0,0)}}break}while(!0);Xa(e)}function up(e,n,r,l,f,m,x,A,O,I,ee,le,G,Y){if(e.timeoutHandle=-1,le=n.subtreeFlags,le&8192||(le&16785408)===16785408){le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pe},np(n,m,le);var Ve=(m&62914560)===m?Xo-Dt():(m&4194048)===m?sp-Dt():0;if(Ve=kx(le,Ve),Ve!==null){Ar=m,e.cancelPendingCommit=Ve(bp.bind(null,e,n,m,r,l,f,x,A,O,ee,le,null,G,Y)),qr(e,m,x,!I);return}}bp(e,n,m,r,l,f,x,A,O)}function Qv(e){for(var n=e;;){var r=n.tag;if((r===0||r===11||r===15)&&n.flags&16384&&(r=n.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var f=r[l],m=f.getSnapshot;f=f.value;try{if(!Wn(m(),f))return!1}catch{return!1}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function qr(e,n,r,l){n&=~zd,n&=~Ni,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var f=n;0<f;){var m=31-Yt(f),x=1<<m;l[m]=-1,f&=~x}r!==0&&Me(e,r,n)}function Wo(){return(Ct&6)===0?(hl(0),!1):!0}function Fd(){if(dt!==null){if(jt===0)var e=dt.return;else e=dt,hr=xi=null,id(e),Wi=null,Ys=0,e=dt;for(;e!==null;)Zm(e.alternate,e),e=e.return;dt=null}}function cs(e,n){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,yx(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Ar=0,Fd(),Ht=e,dt=r=dr(e.current,null),pt=n,jt=0,aa=null,Fr=!1,ss=W(e,n),Hd=!1,ls=ra=zd=Ni=Ir=rn=0,Yn=dl=null,Bd=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var f=31-Yt(l),m=1<<f;n|=e[f],l&=~m}return wr=n,xo(),r}function dp(e,n){at=null,V.H=al,n===Ji||n===Ro?(n=Ch(),jt=3):n===qu?(n=Ch(),jt=4):jt=n===Ed?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,aa=n,dt===null&&(rn=1,Po(e,ga(n,e.current)))}function fp(){var e=ta.current;return e===null?!0:(pt&4194048)===pt?xa===null:(pt&62914560)===pt||(pt&536870912)!==0?e===xa:!1}function hp(){var e=V.H;return V.H=al,e===null?al:e}function mp(){var e=V.A;return V.A=Yv,e}function ec(){rn=4,Fr||(pt&4194048)!==pt&&ta.current!==null||(ss=!0),(Ir&134217727)===0&&(Ni&134217727)===0||Ht===null||qr(Ht,pt,ra,!1)}function Id(e,n,r){var l=Ct;Ct|=2;var f=hp(),m=mp();(Ht!==e||pt!==n)&&(Jo=null,cs(e,n)),n=!1;var x=rn;e:do try{if(jt!==0&&dt!==null){var A=dt,O=aa;switch(jt){case 8:Fd(),x=6;break e;case 3:case 2:case 9:case 6:ta.current===null&&(n=!0);var I=jt;if(jt=0,aa=null,us(e,A,O,I),r&&ss){x=0;break e}break;default:I=jt,jt=0,aa=null,us(e,A,O,I)}}Jv(),x=rn;break}catch(ee){dp(e,ee)}while(!0);return n&&e.shellSuspendCounter++,hr=xi=null,Ct=l,V.H=f,V.A=m,dt===null&&(Ht=null,pt=0,xo()),x}function Jv(){for(;dt!==null;)pp(dt)}function Wv(e,n){var r=Ct;Ct|=2;var l=hp(),f=mp();Ht!==e||pt!==n?(Jo=null,Qo=Dt()+500,cs(e,n)):ss=W(e,n);e:do try{if(jt!==0&&dt!==null){n=dt;var m=aa;t:switch(jt){case 1:jt=0,aa=null,us(e,n,m,1);break;case 2:case 9:if(Mh(m)){jt=0,aa=null,gp(n);break}n=function(){jt!==2&&jt!==9||Ht!==e||(jt=7),Xa(e)},m.then(n,n);break e;case 3:jt=7;break e;case 4:jt=5;break e;case 7:Mh(m)?(jt=0,aa=null,gp(n)):(jt=0,aa=null,us(e,n,m,7));break;case 5:var x=null;switch(dt.tag){case 26:x=dt.memoizedState;case 5:case 27:var A=dt;if(x?t2(x):A.stateNode.complete){jt=0,aa=null;var O=A.sibling;if(O!==null)dt=O;else{var I=A.return;I!==null?(dt=I,tc(I)):dt=null}break t}}jt=0,aa=null,us(e,n,m,5);break;case 6:jt=0,aa=null,us(e,n,m,6);break;case 8:Fd(),rn=6;break e;default:throw Error(s(462))}}ex();break}catch(ee){dp(e,ee)}while(!0);return hr=xi=null,V.H=l,V.A=f,Ct=r,dt!==null?0:(Ht=null,pt=0,xo(),rn)}function ex(){for(;dt!==null&&!yn();)pp(dt)}function pp(e){var n=Bm(e.alternate,e,wr);e.memoizedProps=e.pendingProps,n===null?tc(e):dt=n}function gp(e){var n=e,r=n.alternate;switch(n.tag){case 15:case 0:n=Om(r,n,n.pendingProps,n.type,void 0,pt);break;case 11:n=Om(r,n,n.pendingProps,n.type.render,n.ref,pt);break;case 5:id(n);default:Zm(r,n),n=dt=mh(n,wr),n=Bm(r,n,wr)}e.memoizedProps=e.pendingProps,n===null?tc(e):dt=n}function us(e,n,r,l){hr=xi=null,id(n),Wi=null,Ys=0;var f=n.return;try{if(Pv(e,f,n,r,pt)){rn=1,Po(e,ga(r,e.current)),dt=null;return}}catch(m){if(f!==null)throw dt=f,m;rn=1,Po(e,ga(r,e.current)),dt=null;return}n.flags&32768?(xt||l===1?e=!0:ss||(pt&536870912)!==0?e=!1:(Fr=e=!0,(l===2||l===9||l===3||l===6)&&(l=ta.current,l!==null&&l.tag===13&&(l.flags|=16384))),yp(n,e)):tc(n)}function tc(e){var n=e;do{if((n.flags&32768)!==0){yp(n,Fr);return}e=n.return;var r=Gv(n.alternate,n,wr);if(r!==null){dt=r;return}if(n=n.sibling,n!==null){dt=n;return}dt=n=e}while(n!==null);rn===0&&(rn=5)}function yp(e,n){do{var r=$v(e.alternate,e);if(r!==null){r.flags&=32767,dt=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(e=e.sibling,e!==null)){dt=e;return}dt=e=r}while(e!==null);rn=6,dt=null}function bp(e,n,r,l,f,m,x,A,O){e.cancelPendingCommit=null;do nc();while(vn!==0);if((Ct&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(m=n.lanes|n.childLanes,m|=Du,Ne(e,r,m,x,A,O),e===Ht&&(dt=Ht=null,pt=0),os=n,$r=e,Ar=r,Ud=m,Zd=f,lp=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,rx(Fn,function(){return wp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=V.T,V.T=null,f=Q.p,Q.p=2,x=Ct,Ct|=4;try{qv(e,n,r)}finally{Ct=x,Q.p=f,V.T=l}}vn=1,vp(),xp(),Ep()}}function vp(){if(vn===1){vn=0;var e=$r,n=os,r=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||r){r=V.T,V.T=null;var l=Q.p;Q.p=2;var f=Ct;Ct|=4;try{Wm(n,e);var m=n0,x=ih(e.containerInfo),A=m.focusedElem,O=m.selectionRange;if(x!==A&&A&&A.ownerDocument&&rh(A.ownerDocument.documentElement,A)){if(O!==null&&Cu(A)){var I=O.start,ee=O.end;if(ee===void 0&&(ee=I),"selectionStart"in A)A.selectionStart=I,A.selectionEnd=Math.min(ee,A.value.length);else{var le=A.ownerDocument||document,G=le&&le.defaultView||window;if(G.getSelection){var Y=G.getSelection(),Ve=A.textContent.length,Ke=Math.min(O.start,Ve),Vt=O.end===void 0?Ke:Math.min(O.end,Ve);!Y.extend&&Ke>Vt&&(x=Vt,Vt=Ke,Ke=x);var Z=ah(A,Ke),z=ah(A,Vt);if(Z&&z&&(Y.rangeCount!==1||Y.anchorNode!==Z.node||Y.anchorOffset!==Z.offset||Y.focusNode!==z.node||Y.focusOffset!==z.offset)){var F=le.createRange();F.setStart(Z.node,Z.offset),Y.removeAllRanges(),Ke>Vt?(Y.addRange(F),Y.extend(z.node,z.offset)):(F.setEnd(z.node,z.offset),Y.addRange(F))}}}}for(le=[],Y=A;Y=Y.parentNode;)Y.nodeType===1&&le.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<le.length;A++){var re=le[A];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}mc=!!t0,n0=t0=null}finally{Ct=f,Q.p=l,V.T=r}}e.current=n,vn=2}}function xp(){if(vn===2){vn=0;var e=$r,n=os,r=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||r){r=V.T,V.T=null;var l=Q.p;Q.p=2;var f=Ct;Ct|=4;try{Km(e,n.alternate,n)}finally{Ct=f,Q.p=l,V.T=r}}vn=3}}function Ep(){if(vn===4||vn===3){vn=0,ja();var e=$r,n=os,r=Ar,l=lp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?vn=5:(vn=0,os=$r=null,Sp(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Gr=null),P(r),n=n.stateNode,en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(_n,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=V.T,f=Q.p,Q.p=2,V.T=null;try{for(var m=e.onRecoverableError,x=0;x<l.length;x++){var A=l[x];m(A.value,{componentStack:A.stack})}}finally{V.T=n,Q.p=f}}(Ar&3)!==0&&nc(),Xa(e),f=e.pendingLanes,(r&261930)!==0&&(f&42)!==0?e===Pd?fl++:(fl=0,Pd=e):fl=0,hl(0)}}function Sp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,qs(n)))}function nc(){return vp(),xp(),Ep(),wp()}function wp(){if(vn!==5)return!1;var e=$r,n=Ud;Ud=0;var r=P(Ar),l=V.T,f=Q.p;try{Q.p=32>r?32:r,V.T=null,r=Zd,Zd=null;var m=$r,x=Ar;if(vn=0,os=$r=null,Ar=0,(Ct&6)!==0)throw Error(s(331));var A=Ct;if(Ct|=4,rp(m.current),tp(m,m.current,x,r),Ct=A,hl(0,!1),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(_n,m)}catch{}return!0}finally{Q.p=f,V.T=l,Sp(e,n)}}function Ap(e,n,r){n=ga(r,n),n=xd(e.stateNode,n,2),e=Br(e,n,2),e!==null&&(Et(e,2),Xa(e))}function _t(e,n,r){if(e.tag===3)Ap(e,e,r);else for(;n!==null;){if(n.tag===3){Ap(n,e,r);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Gr===null||!Gr.has(l))){e=ga(r,e),r=Mm(2),l=Br(n,r,2),l!==null&&(Tm(r,l,n,e),Et(l,2),Xa(l));break}}n=n.return}}function Gd(e,n,r){var l=e.pingCache;if(l===null){l=e.pingCache=new Xv;var f=new Set;l.set(n,f)}else f=l.get(n),f===void 0&&(f=new Set,l.set(n,f));f.has(r)||(Hd=!0,f.add(r),e=tx.bind(null,e,n,r),n.then(e,e))}function tx(e,n,r){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ht===e&&(pt&r)===r&&(rn===4||rn===3&&(pt&62914560)===pt&&300>Dt()-Xo?(Ct&2)===0&&cs(e,0):zd|=r,ls===pt&&(ls=0)),Xa(e)}function Mp(e,n){n===0&&(n=qe()),e=yi(e,n),e!==null&&(Et(e,n),Xa(e))}function nx(e){var n=e.memoizedState,r=0;n!==null&&(r=n.retryLane),Mp(e,r)}function ax(e,n){var r=0;switch(e.tag){case 31:case 13:var l=e.stateNode,f=e.memoizedState;f!==null&&(r=f.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(n),Mp(e,r)}function rx(e,n){return Pn(e,n)}var ac=null,ds=null,$d=!1,rc=!1,qd=!1,Kr=0;function Xa(e){e!==ds&&e.next===null&&(ds===null?ac=ds=e:ds=ds.next=e),rc=!0,$d||($d=!0,sx())}function hl(e,n){if(!qd&&rc){qd=!0;do for(var r=!1,l=ac;l!==null;){if(e!==0){var f=l.pendingLanes;if(f===0)var m=0;else{var x=l.suspendedLanes,A=l.pingedLanes;m=(1<<31-Yt(42|e)+1)-1,m&=f&~(x&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(r=!0,Np(l,m))}else m=pt,m=L(l,l===Ht?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||W(l,m)||(r=!0,Np(l,m));l=l.next}while(r);qd=!1}}function ix(){Tp()}function Tp(){rc=$d=!1;var e=0;Kr!==0&&gx()&&(e=Kr);for(var n=Dt(),r=null,l=ac;l!==null;){var f=l.next,m=Cp(l,n);m===0?(l.next=null,r===null?ac=f:r.next=f,f===null&&(ds=r)):(r=l,(e!==0||(m&3)!==0)&&(rc=!0)),l=f}vn!==0&&vn!==5||hl(e),Kr!==0&&(Kr=0)}function Cp(e,n){for(var r=e.suspendedLanes,l=e.pingedLanes,f=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var x=31-Yt(m),A=1<<x,O=f[x];O===-1?((A&r)===0||(A&l)!==0)&&(f[x]=Ee(A,n)):O<=n&&(e.expiredLanes|=A),m&=~A}if(n=Ht,r=pt,r=L(e,e===n?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,r===0||e===n&&(jt===2||jt===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&lr(l),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||W(e,r)){if(n=r&-r,n===e.callbackPriority)return n;switch(l!==null&&lr(l),P(r)){case 2:case 8:r=Qn;break;case 32:r=Fn;break;case 268435456:r=ln;break;default:r=Fn}return l=Rp.bind(null,e),r=Pn(r,l),e.callbackPriority=n,e.callbackNode=r,n}return l!==null&&l!==null&&lr(l),e.callbackPriority=2,e.callbackNode=null,2}function Rp(e,n){if(vn!==0&&vn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(nc()&&e.callbackNode!==r)return null;var l=pt;return l=L(e,e===Ht?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(cp(e,l,n),Cp(e,Dt()),e.callbackNode!=null&&e.callbackNode===r?Rp.bind(null,e):null)}function Np(e,n){if(nc())return null;cp(e,n,!0)}function sx(){bx(function(){(Ct&6)!==0?Pn(Wt,ix):Tp()})}function Kd(){if(Kr===0){var e=Xi;e===0&&(e=da,da<<=1,(da&261888)===0&&(da=256)),Kr=e}return Kr}function jp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$a(""+e)}function _p(e,n){var r=n.ownerDocument.createElement("input");return r.name=n.name,r.value=n.value,e.id&&r.setAttribute("form",e.id),n.parentNode.insertBefore(r,n),e=new FormData(e),r.parentNode.removeChild(r),e}function lx(e,n,r,l,f){if(n==="submit"&&r&&r.stateNode===f){var m=jp((f[je]||null).action),x=l.submitter;x&&(n=(n=x[je]||null)?jp(n.formAction):x.getAttribute("formAction"),n!==null&&(m=n,x=null));var A=new go("action","action",null,l,f);e.push({event:A,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Kr!==0){var O=x?_p(f,x):new FormData(f);md(r,{pending:!0,data:O,method:f.method,action:m},null,O)}}else typeof m=="function"&&(A.preventDefault(),O=x?_p(f,x):new FormData(f),md(r,{pending:!0,data:O,method:f.method,action:m},m,O))},currentTarget:f}]})}}for(var Yd=0;Yd<_u.length;Yd++){var Xd=_u[Yd],ox=Xd.toLowerCase(),cx=Xd[0].toUpperCase()+Xd.slice(1);Da(ox,"on"+cx)}Da(oh,"onAnimationEnd"),Da(ch,"onAnimationIteration"),Da(uh,"onAnimationStart"),Da("dblclick","onDoubleClick"),Da("focusin","onFocus"),Da("focusout","onBlur"),Da(Mv,"onTransitionRun"),Da(Tv,"onTransitionStart"),Da(Cv,"onTransitionCancel"),Da(dh,"onTransitionEnd"),X("onMouseEnter",["mouseout","mouseover"]),X("onMouseLeave",["mouseout","mouseover"]),X("onPointerEnter",["pointerout","pointerover"]),X("onPointerLeave",["pointerout","pointerover"]),be("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),be("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),be("onBeforeInput",["compositionend","keypress","textInput","paste"]),be("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),be("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),be("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ml="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(" "),ux=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ml));function Dp(e,n){n=(n&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],f=l.event;l=l.listeners;e:{var m=void 0;if(n)for(var x=l.length-1;0<=x;x--){var A=l[x],O=A.instance,I=A.currentTarget;if(A=A.listener,O!==m&&f.isPropagationStopped())break e;m=A,f.currentTarget=I;try{m(f)}catch(ee){vo(ee)}f.currentTarget=null,m=O}else for(x=0;x<l.length;x++){if(A=l[x],O=A.instance,I=A.currentTarget,A=A.listener,O!==m&&f.isPropagationStopped())break e;m=A,f.currentTarget=I;try{m(f)}catch(ee){vo(ee)}f.currentTarget=null,m=O}}}}function ft(e,n){var r=n[Ae];r===void 0&&(r=n[Ae]=new Set);var l=e+"__bubble";r.has(l)||(Op(n,e,2,!1),r.add(l))}function Qd(e,n,r){var l=0;n&&(l|=4),Op(r,e,l,n)}var ic="_reactListening"+Math.random().toString(36).slice(2);function Jd(e){if(!e[ic]){e[ic]=!0,Jn.forEach(function(r){r!=="selectionchange"&&(ux.has(r)||Qd(r,!1,e),Qd(r,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[ic]||(n[ic]=!0,Qd("selectionchange",!1,n))}}function Op(e,n,r,l){switch(o2(n)){case 2:var f=zx;break;case 8:f=Bx;break;default:f=h0}r=f.bind(null,n,r,e),f=void 0,!bu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),l?f!==void 0?e.addEventListener(n,r,{capture:!0,passive:f}):e.addEventListener(n,r,!0):f!==void 0?e.addEventListener(n,r,{passive:f}):e.addEventListener(n,r,!1)}function Wd(e,n,r,l,f){var m=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var A=l.stateNode.containerInfo;if(A===f)break;if(x===4)for(x=l.return;x!==null;){var O=x.tag;if((O===3||O===4)&&x.stateNode.containerInfo===f)return;x=x.return}for(;A!==null;){if(x=ut(A),x===null)return;if(O=x.tag,O===5||O===6||O===26||O===27){l=m=x;continue e}A=A.parentNode}}l=l.return}fo(function(){var I=m,ee=nt(r),le=[];e:{var G=fh.get(e);if(G!==void 0){var Y=go,Ve=e;switch(e){case"keypress":if(mo(r)===0)break e;case"keydown":case"keyup":Y=av;break;case"focusin":Ve="focus",Y=Su;break;case"focusout":Ve="blur",Y=Su;break;case"beforeblur":case"afterblur":Y=Su;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Z1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=Gb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=sv;break;case oh:case ch:case uh:Y=Kb;break;case dh:Y=ov;break;case"scroll":case"scrollend":Y=Fb;break;case"wheel":Y=uv;break;case"copy":case"cut":case"paste":Y=Xb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=F1;break;case"toggle":case"beforetoggle":Y=fv}var Ke=(n&4)!==0,Vt=!Ke&&(e==="scroll"||e==="scrollend"),Z=Ke?G!==null?G+"Capture":null:G;Ke=[];for(var z=I,F;z!==null;){var re=z;if(F=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||F===null||Z===null||(re=Vs(z,Z),re!=null&&Ke.push(pl(z,re,F))),Vt)break;z=z.return}0<Ke.length&&(G=new Y(G,Ve,null,r,ee),le.push({event:G,listeners:Ke}))}}if((n&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",G&&r!==ke&&(Ve=r.relatedTarget||r.fromElement)&&(ut(Ve)||Ve[Te]))break e;if((Y||G)&&(G=ee.window===ee?ee:(G=ee.ownerDocument)?G.defaultView||G.parentWindow:window,Y?(Ve=r.relatedTarget||r.toElement,Y=I,Ve=Ve?ut(Ve):null,Ve!==null&&(Vt=c(Ve),Ke=Ve.tag,Ve!==Vt||Ke!==5&&Ke!==27&&Ke!==6)&&(Ve=null)):(Y=null,Ve=I),Y!==Ve)){if(Ke=Z1,re="onMouseLeave",Z="onMouseEnter",z="mouse",(e==="pointerout"||e==="pointerover")&&(Ke=F1,re="onPointerLeave",Z="onPointerEnter",z="pointer"),Vt=Y==null?G:st(Y),F=Ve==null?G:st(Ve),G=new Ke(re,z+"leave",Y,r,ee),G.target=Vt,G.relatedTarget=F,re=null,ut(ee)===I&&(Ke=new Ke(Z,z+"enter",Ve,r,ee),Ke.target=F,Ke.relatedTarget=Vt,re=Ke),Vt=re,Y&&Ve)t:{for(Ke=dx,Z=Y,z=Ve,F=0,re=Z;re;re=Ke(re))F++;re=0;for(var Fe=z;Fe;Fe=Ke(Fe))re++;for(;0<F-re;)Z=Ke(Z),F--;for(;0<re-F;)z=Ke(z),re--;for(;F--;){if(Z===z||z!==null&&Z===z.alternate){Ke=Z;break t}Z=Ke(Z),z=Ke(z)}Ke=null}else Ke=null;Y!==null&&Lp(le,G,Y,Ke,!1),Ve!==null&&Vt!==null&&Lp(le,Vt,Ve,Ke,!0)}}e:{if(G=I?st(I):window,Y=G.nodeName&&G.nodeName.toLowerCase(),Y==="select"||Y==="input"&&G.type==="file")var At=Q1;else if(Y1(G))if(J1)At=Sv;else{At=xv;var Ue=vv}else Y=G.nodeName,!Y||Y.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?I&&Dn(I.elementType)&&(At=Q1):At=Ev;if(At&&(At=At(e,I))){X1(le,At,r,ee);break e}Ue&&Ue(e,G,I),e==="focusout"&&I&&G.type==="number"&&I.memoizedProps.value!=null&&Ga(G,"number",G.value)}switch(Ue=I?st(I):window,e){case"focusin":(Y1(Ue)||Ue.contentEditable==="true")&&(Pi=Ue,Ru=I,Is=null);break;case"focusout":Is=Ru=Pi=null;break;case"mousedown":Nu=!0;break;case"contextmenu":case"mouseup":case"dragend":Nu=!1,sh(le,r,ee);break;case"selectionchange":if(Av)break;case"keydown":case"keyup":sh(le,r,ee)}var rt;if(Au)e:{switch(e){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else Zi?q1(e,r)&&(gt="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(gt="onCompositionStart");gt&&(I1&&r.locale!=="ko"&&(Zi||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Zi&&(rt=B1()):(Dr=ee,vu="value"in Dr?Dr.value:Dr.textContent,Zi=!0)),Ue=sc(I,gt),0<Ue.length&&(gt=new P1(gt,e,null,r,ee),le.push({event:gt,listeners:Ue}),rt?gt.data=rt:(rt=K1(r),rt!==null&&(gt.data=rt)))),(rt=mv?pv(e,r):gv(e,r))&&(gt=sc(I,"onBeforeInput"),0<gt.length&&(Ue=new P1("onBeforeInput","beforeinput",null,r,ee),le.push({event:Ue,listeners:gt}),Ue.data=rt)),lx(le,e,I,r,ee)}Dp(le,n)})}function pl(e,n,r){return{instance:e,listener:n,currentTarget:r}}function sc(e,n){for(var r=n+"Capture",l=[];e!==null;){var f=e,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=Vs(e,r),f!=null&&l.unshift(pl(e,f,m)),f=Vs(e,n),f!=null&&l.push(pl(e,f,m))),e.tag===3)return l;e=e.return}return[]}function dx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Lp(e,n,r,l,f){for(var m=n._reactName,x=[];r!==null&&r!==l;){var A=r,O=A.alternate,I=A.stateNode;if(A=A.tag,O!==null&&O===l)break;A!==5&&A!==26&&A!==27||I===null||(O=I,f?(I=Vs(r,m),I!=null&&x.unshift(pl(r,I,O))):f||(I=Vs(r,m),I!=null&&x.push(pl(r,I,O)))),r=r.return}x.length!==0&&e.push({event:n,listeners:x})}var fx=/\r\n?/g,hx=/\u0000|\uFFFD/g;function kp(e){return(typeof e=="string"?e:""+e).replace(fx,`
|
|
49
|
+
`).replace(hx,"")}function Vp(e,n){return n=kp(n),kp(e)===n}function kt(e,n,r,l,f,m){switch(r){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||$e(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&$e(e,""+l);break;case"className":Ye(e,"class",l);break;case"tabIndex":Ye(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ye(e,r,l);break;case"style":ht(e,l,m);break;case"data":if(n!=="object"){Ye(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||r!=="href")){e.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=$a(""+l),e.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(r,"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 m=="function"&&(r==="formAction"?(n!=="input"&&kt(e,n,"name",f.name,f,null),kt(e,n,"formEncType",f.formEncType,f,null),kt(e,n,"formMethod",f.formMethod,f,null),kt(e,n,"formTarget",f.formTarget,f,null)):(kt(e,n,"encType",f.encType,f,null),kt(e,n,"method",f.method,f,null),kt(e,n,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=$a(""+l),e.setAttribute(r,l);break;case"onClick":l!=null&&(e.onclick=pe);break;case"onScroll":l!=null&&ft("scroll",e);break;case"onScrollEnd":l!=null&&ft("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(f.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}r=$a(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""+l):e.removeAttribute(r);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":l===!0?e.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,l):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(r,l):e.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(r):e.setAttribute(r,l);break;case"popover":ft("beforetoggle",e),ft("toggle",e),Be(e,"popover",l);break;case"xlinkActuate":vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":vt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":vt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":vt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":vt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Be(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=Hn.get(r)||r,Be(e,r,l))}}function e0(e,n,r,l,f,m){switch(r){case"style":ht(e,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(f.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"children":typeof l=="string"?$e(e,l):(typeof l=="number"||typeof l=="bigint")&&$e(e,""+l);break;case"onScroll":l!=null&&ft("scroll",e);break;case"onScrollEnd":l!=null&&ft("scrollend",e);break;case"onClick":l!=null&&(e.onclick=pe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!B.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),n=r.slice(2,f?r.length-7:void 0),m=e[je]||null,m=m!=null?m[r]:null,typeof m=="function"&&e.removeEventListener(n,m,f),typeof l=="function")){typeof m!="function"&&m!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(n,l,f);break e}r in e?e[r]=l:l===!0?e.setAttribute(r,""):Be(e,r,l)}}}function Cn(e,n,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",e),ft("load",e);var l=!1,f=!1,m;for(m in r)if(r.hasOwnProperty(m)){var x=r[m];if(x!=null)switch(m){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:kt(e,n,m,x,r,null)}}f&&kt(e,n,"srcSet",r.srcSet,r,null),l&&kt(e,n,"src",r.src,r,null);return;case"input":ft("invalid",e);var A=m=x=f=null,O=null,I=null;for(l in r)if(r.hasOwnProperty(l)){var ee=r[l];if(ee!=null)switch(l){case"name":f=ee;break;case"type":x=ee;break;case"checked":O=ee;break;case"defaultChecked":I=ee;break;case"value":m=ee;break;case"defaultValue":A=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(s(137,n));break;default:kt(e,n,l,ee,r,null)}}Ia(e,m,A,O,I,x,f,!1);return;case"select":ft("invalid",e),l=x=m=null;for(f in r)if(r.hasOwnProperty(f)&&(A=r[f],A!=null))switch(f){case"value":m=A;break;case"defaultValue":x=A;break;case"multiple":l=A;default:kt(e,n,f,A,r,null)}n=m,r=x,e.multiple=!!l,n!=null?nn(e,!!l,n,!1):r!=null&&nn(e,!!l,r,!0);return;case"textarea":ft("invalid",e),m=f=l=null;for(x in r)if(r.hasOwnProperty(x)&&(A=r[x],A!=null))switch(x){case"value":l=A;break;case"defaultValue":f=A;break;case"children":m=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(91));break;default:kt(e,n,x,A,r,null)}cr(e,l,f,m);return;case"option":for(O in r)if(r.hasOwnProperty(O)&&(l=r[O],l!=null))switch(O){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:kt(e,n,O,l,r,null)}return;case"dialog":ft("beforetoggle",e),ft("toggle",e),ft("cancel",e),ft("close",e);break;case"iframe":case"object":ft("load",e);break;case"video":case"audio":for(l=0;l<ml.length;l++)ft(ml[l],e);break;case"image":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"embed":case"source":case"link":ft("error",e),ft("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in r)if(r.hasOwnProperty(I)&&(l=r[I],l!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:kt(e,n,I,l,r,null)}return;default:if(Dn(n)){for(ee in r)r.hasOwnProperty(ee)&&(l=r[ee],l!==void 0&&e0(e,n,ee,l,r,void 0));return}}for(A in r)r.hasOwnProperty(A)&&(l=r[A],l!=null&&kt(e,n,A,l,r,null))}function mx(e,n,r,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,x=null,A=null,O=null,I=null,ee=null;for(Y in r){var le=r[Y];if(r.hasOwnProperty(Y)&&le!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":O=le;default:l.hasOwnProperty(Y)||kt(e,n,Y,null,l,le)}}for(var G in l){var Y=l[G];if(le=r[G],l.hasOwnProperty(G)&&(Y!=null||le!=null))switch(G){case"type":m=Y;break;case"name":f=Y;break;case"checked":I=Y;break;case"defaultChecked":ee=Y;break;case"value":x=Y;break;case"defaultValue":A=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,n));break;default:Y!==le&&kt(e,n,G,Y,l,le)}}_r(e,x,A,O,I,ee,m,f);return;case"select":Y=x=A=G=null;for(m in r)if(O=r[m],r.hasOwnProperty(m)&&O!=null)switch(m){case"value":break;case"multiple":Y=O;default:l.hasOwnProperty(m)||kt(e,n,m,null,l,O)}for(f in l)if(m=l[f],O=r[f],l.hasOwnProperty(f)&&(m!=null||O!=null))switch(f){case"value":G=m;break;case"defaultValue":A=m;break;case"multiple":x=m;default:m!==O&&kt(e,n,f,m,l,O)}n=A,r=x,l=Y,G!=null?nn(e,!!r,G,!1):!!l!=!!r&&(n!=null?nn(e,!!r,n,!0):nn(e,!!r,r?[]:"",!1));return;case"textarea":Y=G=null;for(A in r)if(f=r[A],r.hasOwnProperty(A)&&f!=null&&!l.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:kt(e,n,A,null,l,f)}for(x in l)if(f=l[x],m=r[x],l.hasOwnProperty(x)&&(f!=null||m!=null))switch(x){case"value":G=f;break;case"defaultValue":Y=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(s(91));break;default:f!==m&&kt(e,n,x,f,l,m)}fi(e,G,Y);return;case"option":for(var Ve in r)if(G=r[Ve],r.hasOwnProperty(Ve)&&G!=null&&!l.hasOwnProperty(Ve))switch(Ve){case"selected":e.selected=!1;break;default:kt(e,n,Ve,null,l,G)}for(O in l)if(G=l[O],Y=r[O],l.hasOwnProperty(O)&&G!==Y&&(G!=null||Y!=null))switch(O){case"selected":e.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:kt(e,n,O,G,l,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 Ke in r)G=r[Ke],r.hasOwnProperty(Ke)&&G!=null&&!l.hasOwnProperty(Ke)&&kt(e,n,Ke,null,l,G);for(I in l)if(G=l[I],Y=r[I],l.hasOwnProperty(I)&&G!==Y&&(G!=null||Y!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,n));break;default:kt(e,n,I,G,l,Y)}return;default:if(Dn(n)){for(var Vt in r)G=r[Vt],r.hasOwnProperty(Vt)&&G!==void 0&&!l.hasOwnProperty(Vt)&&e0(e,n,Vt,void 0,l,G);for(ee in l)G=l[ee],Y=r[ee],!l.hasOwnProperty(ee)||G===Y||G===void 0&&Y===void 0||e0(e,n,ee,G,l,Y);return}}for(var Z in r)G=r[Z],r.hasOwnProperty(Z)&&G!=null&&!l.hasOwnProperty(Z)&&kt(e,n,Z,null,l,G);for(le in l)G=l[le],Y=r[le],!l.hasOwnProperty(le)||G===Y||G==null&&Y==null||kt(e,n,le,G,l,Y)}function Hp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function px(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,r=performance.getEntriesByType("resource"),l=0;l<r.length;l++){var f=r[l],m=f.transferSize,x=f.initiatorType,A=f.duration;if(m&&A&&Hp(x)){for(x=0,A=f.responseEnd,l+=1;l<r.length;l++){var O=r[l],I=O.startTime;if(I>A)break;var ee=O.transferSize,le=O.initiatorType;ee&&Hp(le)&&(O=O.responseEnd,x+=ee*(O<A?1:(A-I)/(O-I)))}if(--l,n+=8*(m+x)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var t0=null,n0=null;function lc(e){return e.nodeType===9?e:e.ownerDocument}function zp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Bp(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function a0(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var r0=null;function gx(){var e=window.event;return e&&e.type==="popstate"?e===r0?!1:(r0=e,!0):(r0=null,!1)}var Up=typeof setTimeout=="function"?setTimeout:void 0,yx=typeof clearTimeout=="function"?clearTimeout:void 0,Zp=typeof Promise=="function"?Promise:void 0,bx=typeof queueMicrotask=="function"?queueMicrotask:typeof Zp<"u"?function(e){return Zp.resolve(null).then(e).catch(vx)}:Up;function vx(e){setTimeout(function(){throw e})}function Yr(e){return e==="head"}function Pp(e,n){var r=n,l=0;do{var f=r.nextSibling;if(e.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"||r==="/&"){if(l===0){e.removeChild(f),ps(n);return}l--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")l++;else if(r==="html")gl(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,gl(r);for(var m=r.firstChild;m;){var x=m.nextSibling,A=m.nodeName;m[et]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&m.rel.toLowerCase()==="stylesheet"||r.removeChild(m),m=x}}else r==="body"&&gl(e.ownerDocument.body);r=f}while(r);ps(n)}function Fp(e,n){var r=e;e=0;do{var l=r.nextSibling;if(r.nodeType===1?n?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(n?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=l}while(r)}function i0(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var r=n;switch(n=n.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":i0(r),wt(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function xx(e,n,r,l){for(;e.nodeType===1;){var f=r;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[et])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=Ea(e.nextSibling),e===null)break}return null}function Ex(e,n,r){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Ea(e.nextSibling),e===null))return null;return e}function Ip(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ea(e.nextSibling),e===null))return null;return e}function s0(e){return e.data==="$?"||e.data==="$~"}function l0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Sx(e,n){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||r.readyState!=="loading")n();else{var l=function(){n(),r.removeEventListener("DOMContentLoaded",l)};r.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Ea(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var o0=null;function Gp(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(n===0)return Ea(e.nextSibling);n--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||n++}e=e.nextSibling}return null}function $p(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(n===0)return e;n--}else r!=="/$"&&r!=="/&"||n++}e=e.previousSibling}return null}function qp(e,n,r){switch(n=lc(r),e){case"html":if(e=n.documentElement,!e)throw Error(s(452));return e;case"head":if(e=n.head,!e)throw Error(s(453));return e;case"body":if(e=n.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function gl(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);wt(e)}var Sa=new Map,Kp=new Set;function oc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mr=Q.d;Q.d={f:wx,r:Ax,D:Mx,C:Tx,L:Cx,m:Rx,X:jx,S:Nx,M:_x};function wx(){var e=Mr.f(),n=Wo();return e||n}function Ax(e){var n=Ot(e);n!==null&&n.tag===5&&n.type==="form"?dm(n):Mr.r(e)}var fs=typeof document>"u"?null:document;function Yp(e,n,r){var l=fs;if(l&&typeof n=="string"&&n){var f=wn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),Kp.has(f)||(Kp.add(f),e={rel:e,crossOrigin:r,href:n},l.querySelector(f)===null&&(n=l.createElement("link"),Cn(n,"link",e),Tt(n),l.head.appendChild(n)))}}function Mx(e){Mr.D(e),Yp("dns-prefetch",e,null)}function Tx(e,n){Mr.C(e,n),Yp("preconnect",e,n)}function Cx(e,n,r){Mr.L(e,n,r);var l=fs;if(l&&e&&n){var f='link[rel="preload"][as="'+wn(n)+'"]';n==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+wn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+wn(r.imageSizes)+'"]')):f+='[href="'+wn(e)+'"]';var m=f;switch(n){case"style":m=hs(e);break;case"script":m=ms(e)}Sa.has(m)||(e=v({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:e,as:n},r),Sa.set(m,e),l.querySelector(f)!==null||n==="style"&&l.querySelector(yl(m))||n==="script"&&l.querySelector(bl(m))||(n=l.createElement("link"),Cn(n,"link",e),Tt(n),l.head.appendChild(n)))}}function Rx(e,n){Mr.m(e,n);var r=fs;if(r&&e){var l=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+wn(l)+'"][href="'+wn(e)+'"]',m=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=ms(e)}if(!Sa.has(m)&&(e=v({rel:"modulepreload",href:e},n),Sa.set(m,e),r.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(bl(m)))return}l=r.createElement("link"),Cn(l,"link",e),Tt(l),r.head.appendChild(l)}}}function Nx(e,n,r){Mr.S(e,n,r);var l=fs;if(l&&e){var f=Ut(l).hoistableStyles,m=hs(e);n=n||"default";var x=f.get(m);if(!x){var A={loading:0,preload:null};if(x=l.querySelector(yl(m)))A.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":n},r),(r=Sa.get(m))&&c0(e,r);var O=x=l.createElement("link");Tt(O),Cn(O,"link",e),O._p=new Promise(function(I,ee){O.onload=I,O.onerror=ee}),O.addEventListener("load",function(){A.loading|=1}),O.addEventListener("error",function(){A.loading|=2}),A.loading|=4,cc(x,n,l)}x={type:"stylesheet",instance:x,count:1,state:A},f.set(m,x)}}}function jx(e,n){Mr.X(e,n);var r=fs;if(r&&e){var l=Ut(r).hoistableScripts,f=ms(e),m=l.get(f);m||(m=r.querySelector(bl(f)),m||(e=v({src:e,async:!0},n),(n=Sa.get(f))&&u0(e,n),m=r.createElement("script"),Tt(m),Cn(m,"link",e),r.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function _x(e,n){Mr.M(e,n);var r=fs;if(r&&e){var l=Ut(r).hoistableScripts,f=ms(e),m=l.get(f);m||(m=r.querySelector(bl(f)),m||(e=v({src:e,async:!0,type:"module"},n),(n=Sa.get(f))&&u0(e,n),m=r.createElement("script"),Tt(m),Cn(m,"link",e),r.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function Xp(e,n,r,l){var f=(f=Re.current)?oc(f):null;if(!f)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(n=hs(r.href),r=Ut(f).hoistableStyles,l=r.get(n),l||(l={type:"style",instance:null,count:0,state:null},r.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=hs(r.href);var m=Ut(f).hoistableStyles,x=m.get(e);if(x||(f=f.ownerDocument||f,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,x),(m=f.querySelector(yl(e)))&&!m._p&&(x.instance=m,x.state.loading=5),Sa.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Sa.set(e,r),m||Dx(f,e,r,x.state))),n&&l===null)throw Error(s(528,""));return x}if(n&&l!==null)throw Error(s(529,""));return null;case"script":return n=r.async,r=r.src,typeof r=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ms(r),r=Ut(f).hoistableScripts,l=r.get(n),l||(l={type:"script",instance:null,count:0,state:null},r.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function hs(e){return'href="'+wn(e)+'"'}function yl(e){return'link[rel="stylesheet"]['+e+"]"}function Qp(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Dx(e,n,r,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),Cn(n,"link",r),Tt(n),e.head.appendChild(n))}function ms(e){return'[src="'+wn(e)+'"]'}function bl(e){return"script[async]"+e}function Jp(e,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+wn(r.href)+'"]');if(l)return n.instance=l,Tt(l),l;var f=v({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Tt(l),Cn(l,"style",f),cc(l,r.precedence,e),n.instance=l;case"stylesheet":f=hs(r.href);var m=e.querySelector(yl(f));if(m)return n.state.loading|=4,n.instance=m,Tt(m),m;l=Qp(r),(f=Sa.get(f))&&c0(l,f),m=(e.ownerDocument||e).createElement("link"),Tt(m);var x=m;return x._p=new Promise(function(A,O){x.onload=A,x.onerror=O}),Cn(m,"link",l),n.state.loading|=4,cc(m,r.precedence,e),n.instance=m;case"script":return m=ms(r.src),(f=e.querySelector(bl(m)))?(n.instance=f,Tt(f),f):(l=r,(f=Sa.get(m))&&(l=v({},r),u0(l,f)),e=e.ownerDocument||e,f=e.createElement("script"),Tt(f),Cn(f,"link",l),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,cc(l,r.precedence,e));return n.instance}function cc(e,n,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,m=f,x=0;x<l.length;x++){var A=l[x];if(A.dataset.precedence===n)m=A;else if(m!==f)break}m?m.parentNode.insertBefore(e,m.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(e,n.firstChild))}function c0(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function u0(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var uc=null;function Wp(e,n,r){if(uc===null){var l=new Map,f=uc=new Map;f.set(r,l)}else f=uc,l=f.get(r),l||(l=new Map,f.set(r,l));if(l.has(e))return l;for(l.set(e,null),r=r.getElementsByTagName(e),f=0;f<r.length;f++){var m=r[f];if(!(m[et]||m[ve]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var x=m.getAttribute(n)||"";x=e+x;var A=l.get(x);A?A.push(m):l.set(x,[m])}}return l}function e2(e,n,r){e=e.ownerDocument||e,e.head.insertBefore(r,n==="title"?e.querySelector("head > title"):null)}function Ox(e,n,r){if(r===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function t2(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Lx(e,n,r,l){if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var f=hs(l.href),m=n.querySelector(yl(f));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=dc.bind(e),n.then(e,e)),r.state.loading|=4,r.instance=m,Tt(m);return}m=n.ownerDocument||n,l=Qp(l),(f=Sa.get(f))&&c0(l,f),m=m.createElement("link"),Tt(m);var x=m;x._p=new Promise(function(A,O){x.onload=A,x.onerror=O}),Cn(m,"link",l),r.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=dc.bind(e),n.addEventListener("load",r),n.addEventListener("error",r))}}var d0=0;function kx(e,n){return e.stylesheets&&e.count===0&&hc(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var l=setTimeout(function(){if(e.stylesheets&&hc(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+n);0<e.imgBytes&&d0===0&&(d0=62500*px());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&hc(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>d0?50:800)+n);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(f)}}:null}function dc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fc=null;function hc(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fc=new Map,n.forEach(Vx,e),fc=null,dc.call(e))}function Vx(e,n){if(!(n.state.loading&4)){var r=fc.get(e);if(r)var l=r.get(null);else{r=new Map,fc.set(e,r);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var x=f[m];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(r.set(x.dataset.precedence,x),l=x)}l&&r.set(null,l)}f=n.instance,x=f.getAttribute("data-precedence"),m=r.get(x)||l,m===l&&r.set(null,f),r.set(x,f),this.count++,l=dc.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),m?m.parentNode.insertBefore(f,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var vl={$$typeof:D,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Hx(e,n,r,l,f,m,x,A,O){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=St(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=St(0),this.hiddenUpdates=St(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function n2(e,n,r,l,f,m,x,A,O,I,ee,le){return e=new Hx(e,n,r,x,O,I,ee,le,A),n=1,m===!0&&(n|=24),m=ea(3,null,null,n),e.current=m,m.stateNode=e,n=Iu(),n.refCount++,e.pooledCache=n,n.refCount++,m.memoizedState={element:l,isDehydrated:r,cache:n},Ku(m),e}function a2(e){return e?(e=Gi,e):Gi}function r2(e,n,r,l,f,m){f=a2(f),l.context===null?l.context=f:l.pendingContext=f,l=zr(n),l.payload={element:r},m=m===void 0?null:m,m!==null&&(l.callback=m),r=Br(e,l,n),r!==null&&(Xn(r,e,n),Qs(r,e,n))}function i2(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<n?r:n}}function f0(e,n){i2(e,n),(e=e.alternate)&&i2(e,n)}function s2(e){if(e.tag===13||e.tag===31){var n=yi(e,67108864);n!==null&&Xn(n,e,67108864),f0(e,67108864)}}function l2(e){if(e.tag===13||e.tag===31){var n=ia();n=k(n);var r=yi(e,n);r!==null&&Xn(r,e,n),f0(e,n)}}var mc=!0;function zx(e,n,r,l){var f=V.T;V.T=null;var m=Q.p;try{Q.p=2,h0(e,n,r,l)}finally{Q.p=m,V.T=f}}function Bx(e,n,r,l){var f=V.T;V.T=null;var m=Q.p;try{Q.p=8,h0(e,n,r,l)}finally{Q.p=m,V.T=f}}function h0(e,n,r,l){if(mc){var f=m0(l);if(f===null)Wd(e,n,l,pc,r),c2(e,l);else if(Zx(f,e,n,r,l))l.stopPropagation();else if(c2(e,l),n&4&&-1<Ux.indexOf(e)){for(;f!==null;){var m=Ot(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var x=on(m.pendingLanes);if(x!==0){var A=m;for(A.pendingLanes|=2,A.entangledLanes|=2;x;){var O=1<<31-Yt(x);A.entanglements[1]|=O,x&=~O}Xa(m),(Ct&6)===0&&(Qo=Dt()+500,hl(0))}}break;case 31:case 13:A=yi(m,2),A!==null&&Xn(A,m,2),Wo(),f0(m,2)}if(m=m0(l),m===null&&Wd(e,n,l,pc,r),m===f)break;f=m}f!==null&&l.stopPropagation()}else Wd(e,n,l,null,r)}}function m0(e){return e=nt(e),p0(e)}var pc=null;function p0(e){if(pc=null,e=ut(e),e!==null){var n=c(e);if(n===null)e=null;else{var r=n.tag;if(r===13){if(e=u(n),e!==null)return e;e=null}else if(r===31){if(e=h(n),e!==null)return e;e=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return pc=e,null}function o2(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Jt()){case Wt:return 2;case Qn:return 8;case Fn:case bn:return 32;case ln:return 268435456;default:return 32}default:return 32}}var g0=!1,Xr=null,Qr=null,Jr=null,xl=new Map,El=new Map,Wr=[],Ux="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 c2(e,n){switch(e){case"focusin":case"focusout":Xr=null;break;case"dragenter":case"dragleave":Qr=null;break;case"mouseover":case"mouseout":Jr=null;break;case"pointerover":case"pointerout":xl.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":El.delete(n.pointerId)}}function Sl(e,n,r,l,f,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:r,eventSystemFlags:l,nativeEvent:m,targetContainers:[f]},n!==null&&(n=Ot(n),n!==null&&s2(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function Zx(e,n,r,l,f){switch(n){case"focusin":return Xr=Sl(Xr,e,n,r,l,f),!0;case"dragenter":return Qr=Sl(Qr,e,n,r,l,f),!0;case"mouseover":return Jr=Sl(Jr,e,n,r,l,f),!0;case"pointerover":var m=f.pointerId;return xl.set(m,Sl(xl.get(m)||null,e,n,r,l,f)),!0;case"gotpointercapture":return m=f.pointerId,El.set(m,Sl(El.get(m)||null,e,n,r,l,f)),!0}return!1}function u2(e){var n=ut(e.target);if(n!==null){var r=c(n);if(r!==null){if(n=r.tag,n===13){if(n=u(r),n!==null){e.blockedOn=n,fe(e.priority,function(){l2(r)});return}}else if(n===31){if(n=h(r),n!==null){e.blockedOn=n,fe(e.priority,function(){l2(r)});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function gc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var r=m0(e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);ke=l,r.target.dispatchEvent(l),ke=null}else return n=Ot(r),n!==null&&s2(n),e.blockedOn=r,!1;n.shift()}return!0}function d2(e,n,r){gc(e)&&r.delete(n)}function Px(){g0=!1,Xr!==null&&gc(Xr)&&(Xr=null),Qr!==null&&gc(Qr)&&(Qr=null),Jr!==null&&gc(Jr)&&(Jr=null),xl.forEach(d2),El.forEach(d2)}function yc(e,n){e.blockedOn===n&&(e.blockedOn=null,g0||(g0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Px)))}var bc=null;function f2(e){bc!==e&&(bc=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){bc===e&&(bc=null);for(var n=0;n<e.length;n+=3){var r=e[n],l=e[n+1],f=e[n+2];if(typeof l!="function"){if(p0(l||r)===null)continue;break}var m=Ot(r);m!==null&&(e.splice(n,3),n-=3,md(m,{pending:!0,data:f,method:r.method,action:l},l,f))}}))}function ps(e){function n(O){return yc(O,e)}Xr!==null&&yc(Xr,e),Qr!==null&&yc(Qr,e),Jr!==null&&yc(Jr,e),xl.forEach(n),El.forEach(n);for(var r=0;r<Wr.length;r++){var l=Wr[r];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Wr.length&&(r=Wr[0],r.blockedOn===null);)u2(r),r.blockedOn===null&&Wr.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var f=r[l],m=r[l+1],x=f[je]||null;if(typeof m=="function")x||f2(r);else if(x){var A=null;if(m&&m.hasAttribute("formAction")){if(f=m,x=m[je]||null)A=x.formAction;else if(p0(f)!==null)continue}else A=x.action;typeof A=="function"?r[l+1]=A:(r.splice(l,3),l-=3),f2(r)}}}function h2(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(x){return f=x})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),l||setTimeout(r,20)}function r(){if(!l&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(r,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function y0(e){this._internalRoot=e}vc.prototype.render=y0.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var r=n.current,l=ia();r2(r,l,e,n,null,null)},vc.prototype.unmount=y0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;r2(e.current,2,null,e,null,null),Wo(),n[Te]=null}};function vc(e){this._internalRoot=e}vc.prototype.unstable_scheduleHydration=function(e){if(e){var n=ue();e={blockedOn:null,target:e,priority:n};for(var r=0;r<Wr.length&&n!==0&&n<Wr[r].priority;r++);Wr.splice(r,0,e),r===0&&u2(e)}};var m2=a.version;if(m2!=="19.2.5")throw Error(s(527,m2,"19.2.5"));Q.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(n),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Fx={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xc.isDisabled&&xc.supportsFiber)try{_n=xc.inject(Fx),en=xc}catch{}}return Al.createRoot=function(e,n){if(!o(e))throw Error(s(299));var r=!1,l="",f=Em,m=Sm,x=wm;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=n2(e,1,!1,null,null,r,l,null,f,m,x,h2),e[Te]=n.current,Jd(e),new y0(n)},Al.hydrateRoot=function(e,n,r){if(!o(e))throw Error(s(299));var l=!1,f="",m=Em,x=Sm,A=wm,O=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(m=r.onUncaughtError),r.onCaughtError!==void 0&&(x=r.onCaughtError),r.onRecoverableError!==void 0&&(A=r.onRecoverableError),r.formState!==void 0&&(O=r.formState)),n=n2(e,1,!0,n,r??null,l,f,O,m,x,A,h2),n.context=a2(null),r=n.current,l=ia(),l=k(l),f=zr(l),f.callback=null,Br(r,f,l),r=l,n.current.lanes=r,Et(n,r),Xa(n),e[Te]=n.current,Jd(e),new vc(n)},Al.version="19.2.5",Al}var A2;function e3(){if(A2)return x0.exports;A2=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),x0.exports=Wx(),x0.exports}var t3=e3();/**
|
|
50
|
+
* react-router v7.14.1
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var i4=t=>{throw TypeError(t)},n3=(t,a,i)=>a.has(t)||i4("Cannot "+i),A0=(t,a,i)=>(n3(t,a,"read from private field"),i?i.call(t):a.get(t)),a3=(t,a,i)=>a.has(t)?i4("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(t):a.set(t,i),M2="popstate";function T2(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function r3(t={}){function a(s,o){var p;let c=(p=o.state)==null?void 0:p.masked,{pathname:u,search:h,hash:g}=c||s.location;return $l("",{pathname:u,search:h,hash:g},o.state&&o.state.usr||null,o.state&&o.state.key||"default",c?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function i(s,o){return typeof o=="string"?o:nr(o)}return s3(a,i,null,t)}function ct(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}function gn(t,a){if(!t){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function i3(){return Math.random().toString(36).substring(2,10)}function C2(t,a){return{usr:t.state,key:t.key,idx:a,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function $l(t,a,i=null,s,o){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof a=="string"?rr(a):a,state:i,key:a&&a.key||s||i3(),unstable_mask:o}}function nr({pathname:t="/",search:a="",hash:i=""}){return a&&a!=="?"&&(t+=a.charAt(0)==="?"?a:"?"+a),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function rr(t){let a={};if(t){let i=t.indexOf("#");i>=0&&(a.hash=t.substring(i),t=t.substring(0,i));let s=t.indexOf("?");s>=0&&(a.search=t.substring(s),t=t.substring(0,s)),t&&(a.pathname=t)}return a}function s3(t,a,i,s={}){let{window:o=document.defaultView,v5Compat:c=!1}=s,u=o.history,h="POP",g=null,p=b();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function b(){return(u.state||{idx:null}).idx}function v(){h="POP";let M=b(),j=M==null?null:M-p;p=M,g&&g({action:h,location:T.location,delta:j})}function E(M,j){h="PUSH";let C=T2(M)?M:$l(T.location,M,j);p=b()+1;let D=C2(C,p),H=T.createHref(C.unstable_mask||C);try{u.pushState(D,"",H)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;o.location.assign(H)}c&&g&&g({action:h,location:T.location,delta:1})}function S(M,j){h="REPLACE";let C=T2(M)?M:$l(T.location,M,j);p=b();let D=C2(C,p),H=T.createHref(C.unstable_mask||C);u.replaceState(D,"",H),c&&g&&g({action:h,location:T.location,delta:0})}function w(M){return s4(M)}let T={get action(){return h},get location(){return t(o,u)},listen(M){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(M2,v),g=M,()=>{o.removeEventListener(M2,v),g=null}},createHref(M){return a(o,M)},createURL:w,encodeLocation(M){let j=w(M);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:E,replace:S,go(M){return u.go(M)}};return T}function s4(t,a=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),ct(i,"No window.location.(origin|href) available to create URL");let s=typeof t=="string"?t:nr(t);return s=s.replace(/ $/,"%20"),!a&&s.startsWith("//")&&(s=i+s),new URL(s,i)}var Hl,R2=class{constructor(t){if(a3(this,Hl,new Map),t)for(let[a,i]of t)this.set(a,i)}get(t){if(A0(this,Hl).has(t))return A0(this,Hl).get(t);if(t.defaultValue!==void 0)return t.defaultValue;throw new Error("No value found for context")}set(t,a){A0(this,Hl).set(t,a)}};Hl=new WeakMap;var l3=new Set(["lazy","caseSensitive","path","id","index","children"]);function o3(t){return l3.has(t)}var c3=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function u3(t){return c3.has(t)}function d3(t){return t.index===!0}function ql(t,a,i=[],s={},o=!1){return t.map((c,u)=>{let h=[...i,String(u)],g=typeof c.id=="string"?c.id:h.join("-");if(ct(c.index!==!0||!c.children,"Cannot specify children on an index route"),ct(o||!s[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),d3(c)){let p={...c,id:g};return s[g]=N2(p,a(p)),p}else{let p={...c,id:g,children:void 0};return s[g]=N2(p,a(p)),c.children&&(p.children=ql(c.children,a,h,s,o)),p}})}function N2(t,a){return Object.assign(t,{...a,...typeof a.lazy=="object"&&a.lazy!=null?{lazy:{...t.lazy,...a.lazy}}:{}})}function ii(t,a,i="/"){return zl(t,a,i,!1)}function zl(t,a,i,s){let o=typeof a=="string"?rr(a):a,c=Ra(o.pathname||"/",i);if(c==null)return null;let u=l4(t);h3(u);let h=null;for(let g=0;h==null&&g<u.length;++g){let p=A3(c);h=S3(u[g],p,s)}return h}function f3(t,a){let{route:i,pathname:s,params:o}=t;return{id:i.id,pathname:s,params:o,data:a[i.id],loaderData:a[i.id],handle:i.handle}}function l4(t,a=[],i=[],s="",o=!1){let c=(u,h,g=o,p)=>{let b={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:h,route:u};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(s)&&g)return;ct(b.relativePath.startsWith(s),`Absolute route path "${b.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(s.length)}let v=Ta([s,b.relativePath]),E=i.concat(b);u.children&&u.children.length>0&&(ct(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),l4(u.children,a,E,v,g)),!(u.path==null&&!u.index)&&a.push({path:v,score:x3(v,u.index),routesMeta:E})};return t.forEach((u,h)=>{var g;if(u.path===""||!((g=u.path)!=null&&g.includes("?")))c(u,h);else for(let p of o4(u.path))c(u,h,!0,p)}),a}function o4(t){let a=t.split("/");if(a.length===0)return[];let[i,...s]=a,o=i.endsWith("?"),c=i.replace(/\?$/,"");if(s.length===0)return o?[c,""]:[c];let u=o4(s.join("/")),h=[];return h.push(...u.map(g=>g===""?c:[c,g].join("/"))),o&&h.push(...u),h.map(g=>t.startsWith("/")&&g===""?"/":g)}function h3(t){t.sort((a,i)=>a.score!==i.score?i.score-a.score:E3(a.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var m3=/^:[\w-]+$/,p3=3,g3=2,y3=1,b3=10,v3=-2,j2=t=>t==="*";function x3(t,a){let i=t.split("/"),s=i.length;return i.some(j2)&&(s+=v3),a&&(s+=g3),i.filter(o=>!j2(o)).reduce((o,c)=>o+(m3.test(c)?p3:c===""?y3:b3),s)}function E3(t,a){return t.length===a.length&&t.slice(0,-1).every((s,o)=>s===a[o])?t[t.length-1]-a[a.length-1]:0}function S3(t,a,i=!1){let{routesMeta:s}=t,o={},c="/",u=[];for(let h=0;h<s.length;++h){let g=s[h],p=h===s.length-1,b=c==="/"?a:a.slice(c.length)||"/",v=Gc({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},b),E=g.route;if(!v&&p&&i&&!s[s.length-1].route.index&&(v=Gc({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},b)),!v)return null;Object.assign(o,v.params),u.push({params:o,pathname:Ta([c,v.pathname]),pathnameBase:C3(Ta([c,v.pathnameBase])),route:E}),v.pathnameBase!=="/"&&(c=Ta([c,v.pathnameBase]))}return u}function Gc(t,a){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[i,s]=w3(t.path,t.caseSensitive,t.end),o=a.match(i);if(!o)return null;let c=o[0],u=c.replace(/(.)\/+$/,"$1"),h=o.slice(1);return{params:s.reduce((p,{paramName:b,isOptional:v},E)=>{if(b==="*"){let w=h[E]||"";u=c.slice(0,c.length-w.length).replace(/(.)\/+$/,"$1")}const S=h[E];return v&&!S?p[b]=void 0:p[b]=(S||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:u,pattern:t}}function w3(t,a=!1,i=!0){gn(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let s=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,h,g,p,b)=>{if(s.push({paramName:h,isOptional:g!=null}),g){let v=b.charAt(p+u.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(s.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),s]}function A3(t){try{return t.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return gn(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),t}}function Ra(t,a){if(a==="/")return t;if(!t.toLowerCase().startsWith(a.toLowerCase()))return null;let i=a.endsWith("/")?a.length-1:a.length,s=t.charAt(i);return s&&s!=="/"?null:t.slice(i)||"/"}function M3({basename:t,pathname:a}){return a==="/"?t:Ta([t,a])}var c4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Uf=t=>c4.test(t);function T3(t,a="/"){let{pathname:i,search:s="",hash:o=""}=typeof t=="string"?rr(t):t,c;return i?(i=Pf(i),i.startsWith("/")?c=_2(i.substring(1),"/"):c=_2(i,a)):c=a,{pathname:c,search:R3(s),hash:N3(o)}}function _2(t,a){let i=$c(a).split("/");return t.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function M0(t,a,i,s){return`Cannot include a '${t}' character in a manually specified \`to.${a}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function u4(t){return t.filter((a,i)=>i===0||a.route.path&&a.route.path.length>0)}function Zf(t){let a=u4(t);return a.map((i,s)=>s===a.length-1?i.pathname:i.pathnameBase)}function ou(t,a,i,s=!1){let o;typeof t=="string"?o=rr(t):(o={...t},ct(!o.pathname||!o.pathname.includes("?"),M0("?","pathname","search",o)),ct(!o.pathname||!o.pathname.includes("#"),M0("#","pathname","hash",o)),ct(!o.search||!o.search.includes("#"),M0("#","search","hash",o)));let c=t===""||o.pathname==="",u=c?"/":o.pathname,h;if(u==null)h=i;else{let v=a.length-1;if(!s&&u.startsWith("..")){let E=u.split("/");for(;E[0]==="..";)E.shift(),v-=1;o.pathname=E.join("/")}h=v>=0?a[v]:"/"}let g=T3(o,h),p=u&&u!=="/"&&u.endsWith("/"),b=(c||u===".")&&i.endsWith("/");return!g.pathname.endsWith("/")&&(p||b)&&(g.pathname+="/"),g}var Pf=t=>t.replace(/\/\/+/g,"/"),Ta=t=>Pf(t.join("/")),$c=t=>t.replace(/\/+$/,""),C3=t=>$c(t).replace(/^\/*/,"/"),R3=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,N3=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,to=class{constructor(t,a,i,s=!1){this.status=t,this.statusText=a||"",this.internal=s,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function Kl(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function no(t){let a=t.map(i=>i.route.path).filter(Boolean);return Ta(a)||"/"}var d4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function f4(t,a){let i=t;if(typeof i!="string"||!c4.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let s=i,o=!1;if(d4)try{let c=new URL(window.location.href),u=i.startsWith("//")?new URL(c.protocol+i):new URL(i),h=Ra(u.pathname,a);u.origin===c.origin&&h!=null?i=h+u.search+u.hash:o=!0}catch{gn(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:o,to:i}}var li=Symbol("Uninstrumented");function j3(t,a){let i={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};t.forEach(o=>o({id:a.id,index:a.index,path:a.path,instrument(c){let u=Object.keys(i);for(let h of u)c[h]&&i[h].push(c[h])}}));let s={};if(typeof a.lazy=="function"&&i.lazy.length>0){let o=Es(i.lazy,a.lazy,()=>{});o&&(s.lazy=o)}if(typeof a.lazy=="object"){let o=a.lazy;["middleware","loader","action"].forEach(c=>{let u=o[c],h=i[`lazy.${c}`];if(typeof u=="function"&&h.length>0){let g=Es(h,u,()=>{});g&&(s.lazy=Object.assign(s.lazy||{},{[c]:g}))}})}return["loader","action"].forEach(o=>{let c=a[o];if(typeof c=="function"&&i[o].length>0){let u=c[li]??c,h=Es(i[o],u,(...g)=>D2(g[0]));h&&(o==="loader"&&u.hydrate===!0&&(h.hydrate=!0),h[li]=u,s[o]=h)}}),a.middleware&&a.middleware.length>0&&i.middleware.length>0&&(s.middleware=a.middleware.map(o=>{let c=o[li]??o,u=Es(i.middleware,c,(...h)=>D2(h[0]));return u?(u[li]=c,u):o})),s}function _3(t,a){let i={navigate:[],fetch:[]};if(a.forEach(s=>s({instrument(o){let c=Object.keys(o);for(let u of c)o[u]&&i[u].push(o[u])}})),i.navigate.length>0){let s=t.navigate[li]??t.navigate,o=Es(i.navigate,s,(...c)=>{let[u,h]=c;return{to:typeof u=="number"||typeof u=="string"?u:u?nr(u):".",...O2(t,h??{})}});o&&(o[li]=s,t.navigate=o)}if(i.fetch.length>0){let s=t.fetch[li]??t.fetch,o=Es(i.fetch,s,(...c)=>{let[u,,h,g]=c;return{href:h??".",fetcherKey:u,...O2(t,g??{})}});o&&(o[li]=s,t.fetch=o)}return t}function Es(t,a,i){return t.length===0?null:async(...s)=>{let o=await h4(t,i(...s),()=>a(...s),t.length-1);if(o.type==="error")throw o.value;return o.value}}async function h4(t,a,i,s){let o=t[s],c;if(o){let u,h=async()=>(u?console.error("You cannot call instrumented handlers more than once"):u=h4(t,a,i,s-1),c=await u,ct(c,"Expected a result"),c.type==="error"&&c.value instanceof Error?{status:"error",error:c.value}:{status:"success",error:void 0});try{await o(h,a)}catch(g){console.error("An instrumentation function threw an error:",g)}u||await h(),await u}else try{c={type:"success",value:await i()}}catch(u){c={type:"error",value:u}}return c||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function D2(t){let{request:a,context:i,params:s,unstable_pattern:o}=t;return{request:D3(a),params:{...s},unstable_pattern:o,context:O3(i)}}function O2(t,a){return{currentUrl:nr(t.state.location),..."formMethod"in a?{formMethod:a.formMethod}:{},..."formEncType"in a?{formEncType:a.formEncType}:{},..."formData"in a?{formData:a.formData}:{},..."body"in a?{body:a.body}:{}}}function D3(t){return{method:t.method,url:t.url,headers:{get:(...a)=>t.headers.get(...a)}}}function O3(t){if(k3(t)){let a={...t};return Object.freeze(a),a}else return{get:a=>t.get(a)}}var L3=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function k3(t){if(t===null||typeof t!="object")return!1;const a=Object.getPrototypeOf(t);return a===Object.prototype||a===null||Object.getOwnPropertyNames(a).sort().join("\0")===L3}var m4=["POST","PUT","PATCH","DELETE"],V3=new Set(m4),H3=["GET",...m4],z3=new Set(H3),p4=new Set([301,302,303,307,308]),B3=new Set([307,308]),T0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},U3={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ml={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Z3=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),g4="remix-router-transitions",y4=Symbol("ResetLoaderData");function P3(t){const a=t.window?t.window:typeof window<"u"?window:void 0,i=typeof a<"u"&&typeof a.document<"u"&&typeof a.document.createElement<"u";ct(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=t.hydrationRouteProperties||[],o=t.mapRouteProperties||Z3,c=o;if(t.unstable_instrumentations){let N=t.unstable_instrumentations;c=k=>({...o(k),...j3(N.map(P=>P.route).filter(Boolean),k)})}let u={},h=ql(t.routes,c,void 0,u),g,p=t.basename||"/";p.startsWith("/")||(p=`/${p}`);let b=t.dataStrategy||q3,v={unstable_passThroughRequests:!1,...t.future},E=null,S=new Set,w=null,T=null,M=null,j=t.hydrationData!=null,C=ii(h,t.history.location,p),D=!1,H=null,U,te;if(C==null&&!t.patchRoutesOnNavigation){let N=wa(404,{pathname:t.history.location.pathname}),{matches:k,route:P}=Ec(h);U=!0,te=!U,C=k,H={[P.id]:N}}else if(C&&!t.hydrationData&&St(C,h,t.history.location.pathname).active&&(C=null),C)if(C.some(N=>N.route.lazy))U=!1,te=!U;else if(!C.some(N=>Ff(N.route)))U=!0,te=!U;else{let N=t.hydrationData?t.hydrationData.loaderData:null,k=t.hydrationData?t.hydrationData.errors:null,P=C;if(k){let ue=C.findIndex(fe=>k[fe.route.id]!==void 0);P=P.slice(0,ue+1)}te=!1,U=!0,P.forEach(ue=>{let fe=b4(ue.route,N,k);te=te||fe.renderFallback,U=U&&!fe.shouldLoad})}else{U=!1,te=!U,C=[];let N=St(null,h,t.history.location.pathname);N.active&&N.matches&&(D=!0,C=N.matches)}let ne,_={historyAction:t.history.action,location:t.history.location,matches:C,initialized:U,renderFallback:te,navigation:T0,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||H,fetchers:new Map,blockers:new Map},ae="POP",ie=null,oe=!1,J,ge=!1,he=new Map,xe=null,V=!1,Q=!1,K=new Set,de=new Map,we=0,R=-1,q=new Map,ce=new Set,ye=new Map,Se=new Map,Re=new Set,$=new Map,Ze,Oe=null;function ot(){if(E=t.history.listen(({action:N,location:k,delta:P})=>{if(Ze){Ze(),Ze=void 0;return}gn($.size===0||P!=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 ue=fa({currentLocation:_.location,nextLocation:k,historyAction:N});if(ue&&P!=null){let fe=new Promise(Ce=>{Ze=Ce});t.history.go(P*-1),Vn(ue,{state:"blocked",location:k,proceed(){Vn(ue,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),fe.then(()=>t.history.go(P))},reset(){let Ce=new Map(_.blockers);Ce.set(ue,Ml),Le({blockers:Ce})}}),ie==null||ie.resolve(),ie=null;return}return Qt(N,k)}),i){d5(a,he);let N=()=>f5(a,he);a.addEventListener("pagehide",N),xe=()=>a.removeEventListener("pagehide",N)}return _.initialized||Qt("POP",_.location,{initialHydration:!0}),ne}function me(){E&&E(),xe&&xe(),S.clear(),J&&J.abort(),_.fetchers.forEach((N,k)=>_n(k)),_.blockers.forEach((N,k)=>da(k))}function bt(N){return S.add(N),()=>S.delete(N)}function Le(N,k={}){N.matches&&(N.matches=N.matches.map(fe=>{let Ce=u[fe.route.id],ve=fe.route;return ve.element!==Ce.element||ve.errorElement!==Ce.errorElement||ve.hydrateFallbackElement!==Ce.hydrateFallbackElement?{...fe,route:Ce}:fe})),_={..._,...N};let P=[],ue=[];_.fetchers.forEach((fe,Ce)=>{fe.state==="idle"&&(Re.has(Ce)?P.push(Ce):ue.push(Ce))}),Re.forEach(fe=>{!_.fetchers.has(fe)&&!de.has(fe)&&P.push(fe)}),[...S].forEach(fe=>fe(_,{deletedFetchers:P,newErrors:N.errors??null,viewTransitionOpts:k.viewTransitionOpts,flushSync:k.flushSync===!0})),P.forEach(fe=>_n(fe)),ue.forEach(fe=>_.fetchers.delete(fe))}function Xe(N,k,{flushSync:P}={}){var Pe,_e;let ue=_.actionData!=null&&_.navigation.formMethod!=null&&Ln(_.navigation.formMethod)&&_.navigation.state==="loading"&&((Pe=N.state)==null?void 0:Pe._isRedirect)!==!0,fe;k.actionData?Object.keys(k.actionData).length>0?fe=k.actionData:fe=null:ue?fe=_.actionData:fe=null;let Ce=k.loaderData?I2(_.loaderData,k.loaderData,k.matches||[],k.errors):_.loaderData,ve=_.blockers;ve.size>0&&(ve=new Map(ve),ve.forEach((Je,et)=>ve.set(et,Ml)));let je=V?!1:qe(N,k.matches||_.matches),Te=oe===!0||_.navigation.formMethod!=null&&Ln(_.navigation.formMethod)&&((_e=N.state)==null?void 0:_e._isRedirect)!==!0;g&&(h=g,g=void 0),V||ae==="POP"||(ae==="PUSH"?t.history.push(N,N.state):ae==="REPLACE"&&t.history.replace(N,N.state));let Ae;if(ae==="POP"){let Je=he.get(_.location.pathname);Je&&Je.has(N.pathname)?Ae={currentLocation:_.location,nextLocation:N}:he.has(N.pathname)&&(Ae={currentLocation:N,nextLocation:_.location})}else if(ge){let Je=he.get(_.location.pathname);Je?Je.add(N.pathname):(Je=new Set([N.pathname]),he.set(_.location.pathname,Je)),Ae={currentLocation:_.location,nextLocation:N}}Le({...k,actionData:fe,loaderData:Ce,historyAction:ae,location:N,initialized:!0,renderFallback:!1,navigation:T0,revalidation:"idle",restoreScrollPosition:je,preventScrollReset:Te,blockers:ve},{viewTransitionOpts:Ae,flushSync:P===!0}),ae="POP",oe=!1,ge=!1,V=!1,Q=!1,ie==null||ie.resolve(),ie=null,Oe==null||Oe.resolve(),Oe=null}async function qt(N,k){if(ie==null||ie.resolve(),ie=null,typeof N=="number"){ie||(ie=K2());let wt=ie.promise;return t.history.go(N),wt}let P=rf(_.location,_.matches,p,N,k==null?void 0:k.fromRouteId,k==null?void 0:k.relative),{path:ue,submission:fe,error:Ce}=L2(!1,P,k),ve;k!=null&&k.unstable_mask&&(ve={pathname:"",search:"",hash:"",...typeof k.unstable_mask=="string"?rr(k.unstable_mask):{..._.location.unstable_mask,...k.unstable_mask}});let je=_.location,Te=$l(je,ue,k&&k.state,void 0,ve);Te={...Te,...t.history.encodeLocation(Te)};let Ae=k&&k.replace!=null?k.replace:void 0,Pe="PUSH";Ae===!0?Pe="REPLACE":Ae===!1||fe!=null&&Ln(fe.formMethod)&&fe.formAction===_.location.pathname+_.location.search&&(Pe="REPLACE");let _e=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,Je=(k&&k.flushSync)===!0,et=fa({currentLocation:je,nextLocation:Te,historyAction:Pe});if(et){Vn(et,{state:"blocked",location:Te,proceed(){Vn(et,{state:"proceeding",proceed:void 0,reset:void 0,location:Te}),qt(N,k)},reset(){let wt=new Map(_.blockers);wt.set(et,Ml),Le({blockers:wt})}});return}await Qt(Pe,Te,{submission:fe,pendingError:Ce,preventScrollReset:_e,replace:k&&k.replace,enableViewTransition:k&&k.viewTransition,flushSync:Je,callSiteDefaultShouldRevalidate:k&&k.unstable_defaultShouldRevalidate})}function Nt(){Oe||(Oe=K2()),Fn(),Le({revalidation:"loading"});let N=Oe.promise;return _.navigation.state==="submitting"?N:_.navigation.state==="idle"?(Qt(_.historyAction,_.location,{startUninterruptedRevalidation:!0}),N):(Qt(ae||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:ge===!0}),N)}async function Qt(N,k,P){J&&J.abort(),J=null,ae=N,V=(P&&P.startUninterruptedRevalidation)===!0,Ee(_.location,_.matches),oe=(P&&P.preventScrollReset)===!0,ge=(P&&P.enableViewTransition)===!0;let ue=g||h,fe=P&&P.overrideNavigation,Ce=P!=null&&P.initialHydration&&_.matches&&_.matches.length>0&&!D?_.matches:ii(ue,k,p),ve=(P&&P.flushSync)===!0;if(Ce&&_.initialized&&!Q&&t5(_.location,k)&&!(P&&P.submission&&Ln(P.submission.formMethod))){Xe(k,{matches:Ce},{flushSync:ve});return}let je=St(Ce,ue,k.pathname);if(je.active&&je.matches&&(Ce=je.matches),!Ce){let{error:ut,notFoundMatches:Ot,route:st}=on(k.pathname);Xe(k,{matches:Ot,loaderData:{},errors:{[st.id]:ut}},{flushSync:ve});return}J=new AbortController;let Te=ys(t.history,k,J.signal,P&&P.submission),Ae=t.getContext?await t.getContext():new R2,Pe;if(P&&P.pendingError)Pe=[si(Ce).route.id,{type:"error",error:P.pendingError}];else if(P&&P.submission&&Ln(P.submission.formMethod)){let ut=await ua(Te,k,P.submission,Ce,Ae,je.active,P&&P.initialHydration===!0,{replace:P.replace,flushSync:ve});if(ut.shortCircuited)return;if(ut.pendingActionResult){let[Ot,st]=ut.pendingActionResult;if(la(st)&&Kl(st.error)&&st.error.status===404){J=null,Xe(k,{matches:ut.matches,loaderData:{},errors:{[Ot]:st.error}});return}}Ce=ut.matches||Ce,Pe=ut.pendingActionResult,fe=C0(k,P.submission),ve=!1,je.active=!1,Te=ys(t.history,Te.url,Te.signal)}let{shortCircuited:_e,matches:Je,loaderData:et,errors:wt}=await Za(Te,k,Ce,Ae,je.active,fe,P&&P.submission,P&&P.fetcherSubmission,P&&P.replace,P&&P.initialHydration===!0,ve,Pe,P&&P.callSiteDefaultShouldRevalidate);_e||(J=null,Xe(k,{matches:Je||Ce,...G2(Pe),loaderData:et,errors:wt}))}async function ua(N,k,P,ue,fe,Ce,ve,je={}){Fn();let Te=c5(k,P);if(Le({navigation:Te},{flushSync:je.flushSync===!0}),Ce){let _e=await Et(ue,k.pathname,N.signal);if(_e.type==="aborted")return{shortCircuited:!0};if(_e.type==="error"){if(_e.partialMatches.length===0){let{matches:et,route:wt}=Ec(h);return{matches:et,pendingActionResult:[wt.id,{type:"error",error:_e.error}]}}let Je=si(_e.partialMatches).route.id;return{matches:_e.partialMatches,pendingActionResult:[Je,{type:"error",error:_e.error}]}}else if(_e.matches)ue=_e.matches;else{let{notFoundMatches:Je,error:et,route:wt}=on(k.pathname);return{matches:Je,pendingActionResult:[wt.id,{type:"error",error:et}]}}}let Ae,Pe=Dc(ue,k);if(!Pe.route.action&&!Pe.route.lazy)Ae={type:"error",error:wa(405,{method:N.method,pathname:k.pathname,routeId:Pe.route.id})};else{let _e=Ms(c,u,N,k,ue,Pe,ve?[]:s,fe),Je=await Wt(N,k,_e,fe,null);if(Ae=Je[Pe.route.id],!Ae){for(let et of ue)if(Je[et.route.id]){Ae=Je[et.route.id];break}}if(N.signal.aborted)return{shortCircuited:!0}}if(Oi(Ae)){let _e;return je&&je.replace!=null?_e=je.replace:_e=Z2(Ae.response.headers.get("Location"),new URL(N.url),p,t.history)===_.location.pathname+_.location.search,await Jt(N,Ae,!0,{submission:P,replace:_e}),{shortCircuited:!0}}if(la(Ae)){let _e=si(ue,Pe.route.id);return(je&&je.replace)!==!0&&(ae="PUSH"),{matches:ue,pendingActionResult:[_e.route.id,Ae,Pe.route.id]}}return{matches:ue,pendingActionResult:[Pe.route.id,Ae]}}async function Za(N,k,P,ue,fe,Ce,ve,je,Te,Ae,Pe,_e,Je){let et=Ce||C0(k,ve),wt=ve||je||q2(et),ut=!V&&!Ae;if(fe){if(ut){let Ye=Pn(_e);Le({navigation:et,...Ye!==void 0?{actionData:Ye}:{}},{flushSync:Pe})}let Be=await Et(P,k.pathname,N.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){if(Be.partialMatches.length===0){let{matches:vt,route:Qe}=Ec(h);return{matches:vt,loaderData:{},errors:{[Qe.id]:Be.error}}}let Ye=si(Be.partialMatches).route.id;return{matches:Be.partialMatches,loaderData:{},errors:{[Ye]:Be.error}}}else if(Be.matches)P=Be.matches;else{let{error:Ye,notFoundMatches:vt,route:Qe}=on(k.pathname);return{matches:vt,loaderData:{},errors:{[Qe.id]:Ye}}}}let Ot=g||h,{dsMatches:st,revalidatingFetchers:Ut}=k2(N,ue,c,u,t.history,_,P,wt,k,Ae?[]:s,Ae===!0,Q,K,Re,ye,ce,Ot,p,t.patchRoutesOnNavigation!=null,_e,Je);if(R=++we,!t.dataStrategy&&!st.some(Be=>Be.shouldLoad)&&!st.some(Be=>Be.route.middleware&&Be.route.middleware.length>0)&&Ut.length===0){let Be=or();return Xe(k,{matches:P,loaderData:{},errors:_e&&la(_e[1])?{[_e[0]]:_e[1].error}:null,...G2(_e),...Be?{fetchers:new Map(_.fetchers)}:{}},{flushSync:Pe}),{shortCircuited:!0}}if(ut){let Be={};if(!fe){Be.navigation=et;let Ye=Pn(_e);Ye!==void 0&&(Be.actionData=Ye)}Ut.length>0&&(Be.fetchers=lr(Ut)),Le(Be,{flushSync:Pe})}Ut.forEach(Be=>{Kt(Be.key),Be.controller&&de.set(Be.key,Be.controller)});let Tt=()=>Ut.forEach(Be=>Kt(Be.key));J&&J.signal.addEventListener("abort",Tt);let{loaderResults:Jn,fetcherResults:B}=await Qn(st,Ut,N,k,ue);if(N.signal.aborted)return{shortCircuited:!0};J&&J.signal.removeEventListener("abort",Tt),Ut.forEach(Be=>de.delete(Be.key));let be=Sc(Jn);if(be)return await Jt(N,be.result,!0,{replace:Te}),{shortCircuited:!0};if(be=Sc(B),be)return ce.add(be.key),await Jt(N,be.result,!0,{replace:Te}),{shortCircuited:!0};let{loaderData:X,errors:se}=F2(_,P,Jn,_e,Ut,B);Ae&&_.errors&&(se={..._.errors,...se});let De=or(),ze=_a(R),Ie=De||ze||Ut.length>0;return{matches:P,loaderData:X,errors:se,...Ie?{fetchers:new Map(_.fetchers)}:{}}}function Pn(N){if(N&&!la(N[1]))return{[N[0]]:N[1].data};if(_.actionData)return Object.keys(_.actionData).length===0?null:_.actionData}function lr(N){return N.forEach(k=>{let P=_.fetchers.get(k.key),ue=Tl(void 0,P?P.data:void 0);_.fetchers.set(k.key,ue)}),new Map(_.fetchers)}async function yn(N,k,P,ue){Kt(N);let fe=(ue&&ue.flushSync)===!0,Ce=g||h,ve=rf(_.location,_.matches,p,P,k,ue==null?void 0:ue.relative),je=ii(Ce,ve,p),Te=St(je,Ce,ve);if(Te.active&&Te.matches&&(je=Te.matches),!je){ln(N,k,wa(404,{pathname:ve}),{flushSync:fe});return}let{path:Ae,submission:Pe,error:_e}=L2(!0,ve,ue);if(_e){ln(N,k,_e,{flushSync:fe});return}let Je=t.getContext?await t.getContext():new R2,et=(ue&&ue.preventScrollReset)===!0;if(Pe&&Ln(Pe.formMethod)){await ja(N,k,Ae,je,Je,Te.active,fe,et,Pe,ue&&ue.unstable_defaultShouldRevalidate);return}ye.set(N,{routeId:k,path:Ae}),await Dt(N,k,Ae,je,Je,Te.active,fe,et,Pe)}async function ja(N,k,P,ue,fe,Ce,ve,je,Te,Ae){Fn(),ye.delete(N);let Pe=_.fetchers.get(N);bn(N,u5(Te,Pe),{flushSync:ve});let _e=new AbortController,Je=ys(t.history,P,_e.signal,Te);if(Ce){let We=await Et(ue,new URL(Je.url).pathname,Je.signal,N);if(We.type==="aborted")return;if(We.type==="error"){ln(N,k,We.error,{flushSync:ve});return}else if(We.matches)ue=We.matches;else{ln(N,k,wa(404,{pathname:P}),{flushSync:ve});return}}let et=Dc(ue,P);if(!et.route.action&&!et.route.lazy){let We=wa(405,{method:Te.formMethod,pathname:P,routeId:k});ln(N,k,We,{flushSync:ve});return}de.set(N,_e);let wt=we,ut=Ms(c,u,Je,P,ue,et,s,fe),Ot=await Wt(Je,P,ut,fe,N),st=Ot[et.route.id];if(!st){for(let We of ut)if(Ot[We.route.id]){st=Ot[We.route.id];break}}if(Je.signal.aborted){de.get(N)===_e&&de.delete(N);return}if(Re.has(N)){if(Oi(st)||la(st)){bn(N,Cr(void 0));return}}else{if(Oi(st))if(de.delete(N),R>wt){bn(N,Cr(void 0));return}else return ce.add(N),bn(N,Tl(Te)),Jt(Je,st,!1,{fetcherSubmission:Te,preventScrollReset:je});if(la(st)){ln(N,k,st.error);return}}let Ut=_.navigation.location||_.location,Tt=ys(t.history,Ut,_e.signal),Jn=g||h,B=_.navigation.state!=="idle"?ii(Jn,_.navigation.location,p):_.matches;ct(B,"Didn't find any matches after fetcher action");let be=++we;q.set(N,be);let X=Tl(Te,st.data);_.fetchers.set(N,X);let{dsMatches:se,revalidatingFetchers:De}=k2(Tt,fe,c,u,t.history,_,B,Te,Ut,s,!1,Q,K,Re,ye,ce,Jn,p,t.patchRoutesOnNavigation!=null,[et.route.id,st],Ae);De.filter(We=>We.key!==N).forEach(We=>{let In=We.key,Gt=_.fetchers.get(In),tn=Tl(void 0,Gt?Gt.data:void 0);_.fetchers.set(In,tn),Kt(In),We.controller&&de.set(In,We.controller)}),Le({fetchers:new Map(_.fetchers)});let ze=()=>De.forEach(We=>Kt(We.key));_e.signal.addEventListener("abort",ze);let{loaderResults:Ie,fetcherResults:Be}=await Qn(se,De,Tt,Ut,fe);if(_e.signal.aborted)return;if(_e.signal.removeEventListener("abort",ze),q.delete(N),de.delete(N),De.forEach(We=>de.delete(We.key)),_.fetchers.has(N)){let We=Cr(st.data);_.fetchers.set(N,We)}let Ye=Sc(Ie);if(Ye)return Jt(Tt,Ye.result,!1,{preventScrollReset:je});if(Ye=Sc(Be),Ye)return ce.add(Ye.key),Jt(Tt,Ye.result,!1,{preventScrollReset:je});let{loaderData:vt,errors:Qe}=F2(_,B,Ie,void 0,De,Be);_a(be),_.navigation.state==="loading"&&be>R?(ct(ae,"Expected pending action"),J&&J.abort(),Xe(_.navigation.location,{matches:B,loaderData:vt,errors:Qe,fetchers:new Map(_.fetchers)})):(Le({errors:Qe,loaderData:I2(_.loaderData,vt,B,Qe),fetchers:new Map(_.fetchers)}),Q=!1)}async function Dt(N,k,P,ue,fe,Ce,ve,je,Te){let Ae=_.fetchers.get(N);bn(N,Tl(Te,Ae?Ae.data:void 0),{flushSync:ve});let Pe=new AbortController,_e=ys(t.history,P,Pe.signal);if(Ce){let st=await Et(ue,new URL(_e.url).pathname,_e.signal,N);if(st.type==="aborted")return;if(st.type==="error"){ln(N,k,st.error,{flushSync:ve});return}else if(st.matches)ue=st.matches;else{ln(N,k,wa(404,{pathname:P}),{flushSync:ve});return}}let Je=Dc(ue,P);de.set(N,Pe);let et=we,wt=Ms(c,u,_e,P,ue,Je,s,fe),Ot=(await Wt(_e,P,wt,fe,N))[Je.route.id];if(de.get(N)===Pe&&de.delete(N),!_e.signal.aborted){if(Re.has(N)){bn(N,Cr(void 0));return}if(Oi(Ot))if(R>et){bn(N,Cr(void 0));return}else{ce.add(N),await Jt(_e,Ot,!1,{preventScrollReset:je});return}if(la(Ot)){ln(N,k,Ot.error);return}bn(N,Cr(Ot.data))}}async function Jt(N,k,P,{submission:ue,fetcherSubmission:fe,preventScrollReset:Ce,replace:ve}={}){P||(ie==null||ie.resolve(),ie=null),k.response.headers.has("X-Remix-Revalidate")&&(Q=!0);let je=k.response.headers.get("Location");ct(je,"Expected a Location header on the redirect Response"),je=Z2(je,new URL(N.url),p,t.history);let Te=$l(_.location,je,{_isRedirect:!0});if(i){let wt=!1;if(k.response.headers.has("X-Remix-Reload-Document"))wt=!0;else if(Uf(je)){const ut=s4(je,!0);wt=ut.origin!==a.location.origin||Ra(ut.pathname,p)==null}if(wt){ve?a.location.replace(je):a.location.assign(je);return}}J=null;let Ae=ve===!0||k.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Pe,formAction:_e,formEncType:Je}=_.navigation;!ue&&!fe&&Pe&&_e&&Je&&(ue=q2(_.navigation));let et=ue||fe;if(B3.has(k.response.status)&&et&&Ln(et.formMethod))await Qt(Ae,Te,{submission:{...et,formAction:je},preventScrollReset:Ce||oe,enableViewTransition:P?ge:void 0});else{let wt=C0(Te,ue);await Qt(Ae,Te,{overrideNavigation:wt,fetcherSubmission:fe,preventScrollReset:Ce||oe,enableViewTransition:P?ge:void 0})}}async function Wt(N,k,P,ue,fe){var je;let Ce,ve={};try{Ce=await Y3(b,N,k,P,fe,ue,!1)}catch(Te){return P.filter(Ae=>Ae.shouldLoad).forEach(Ae=>{ve[Ae.route.id]={type:"error",error:Te}}),ve}if(N.signal.aborted)return ve;if(!Ln(N.method))for(let Te of P){if(((je=Ce[Te.route.id])==null?void 0:je.type)==="error")break;!Ce.hasOwnProperty(Te.route.id)&&!_.loaderData.hasOwnProperty(Te.route.id)&&(!_.errors||!_.errors.hasOwnProperty(Te.route.id))&&Te.shouldCallHandler()&&(Ce[Te.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Te.route.id}`)})}for(let[Te,Ae]of Object.entries(Ce))if(i5(Ae)){let Pe=Ae.result;ve[Te]={type:"redirect",response:W3(Pe,N,Te,P,p)}}else ve[Te]=await J3(Ae);return ve}async function Qn(N,k,P,ue,fe){let Ce=Wt(P,ue,N,fe,null),ve=Promise.all(k.map(async Ae=>{if(Ae.matches&&Ae.match&&Ae.request&&Ae.controller){let _e=(await Wt(Ae.request,Ae.path,Ae.matches,fe,Ae.key))[Ae.match.route.id];return{[Ae.key]:_e}}else return Promise.resolve({[Ae.key]:{type:"error",error:wa(404,{pathname:Ae.path})}})})),je=await Ce,Te=(await ve).reduce((Ae,Pe)=>Object.assign(Ae,Pe),{});return{loaderResults:je,fetcherResults:Te}}function Fn(){Q=!0,ye.forEach((N,k)=>{de.has(k)&&K.add(k),Kt(k)})}function bn(N,k,P={}){_.fetchers.set(N,k),Le({fetchers:new Map(_.fetchers)},{flushSync:(P&&P.flushSync)===!0})}function ln(N,k,P,ue={}){let fe=si(_.matches,k);_n(N),Le({errors:{[fe.route.id]:P},fetchers:new Map(_.fetchers)},{flushSync:(ue&&ue.flushSync)===!0})}function Pa(N){return Se.set(N,(Se.get(N)||0)+1),Re.has(N)&&Re.delete(N),_.fetchers.get(N)||U3}function jr(N,k){Kt(N,k==null?void 0:k.reason),bn(N,Cr(null))}function _n(N){let k=_.fetchers.get(N);de.has(N)&&!(k&&k.state==="loading"&&q.has(N))&&Kt(N),ye.delete(N),q.delete(N),ce.delete(N),Re.delete(N),K.delete(N),_.fetchers.delete(N)}function en(N){let k=(Se.get(N)||0)-1;k<=0?(Se.delete(N),Re.add(N)):Se.set(N,k),Le({fetchers:new Map(_.fetchers)})}function Kt(N,k){let P=de.get(N);P&&(P.abort(k),de.delete(N))}function Yt(N){for(let k of N){let P=Pa(k),ue=Cr(P.data);_.fetchers.set(k,ue)}}function or(){let N=[],k=!1;for(let P of ce){let ue=_.fetchers.get(P);ct(ue,`Expected fetcher: ${P}`),ue.state==="loading"&&(ce.delete(P),N.push(P),k=!0)}return Yt(N),k}function _a(N){let k=[];for(let[P,ue]of q)if(ue<N){let fe=_.fetchers.get(P);ct(fe,`Expected fetcher: ${P}`),fe.state==="loading"&&(Kt(P),q.delete(P),k.push(P))}return Yt(k),k.length>0}function Fa(N,k){let P=_.blockers.get(N)||Ml;return $.get(N)!==k&&$.set(N,k),P}function da(N){_.blockers.delete(N),$.delete(N)}function Vn(N,k){let P=_.blockers.get(N)||Ml;ct(P.state==="unblocked"&&k.state==="blocked"||P.state==="blocked"&&k.state==="blocked"||P.state==="blocked"&&k.state==="proceeding"||P.state==="blocked"&&k.state==="unblocked"||P.state==="proceeding"&&k.state==="unblocked",`Invalid blocker state transition: ${P.state} -> ${k.state}`);let ue=new Map(_.blockers);ue.set(N,k),Le({blockers:ue})}function fa({currentLocation:N,nextLocation:k,historyAction:P}){if($.size===0)return;$.size>1&&gn(!1,"A router only supports one blocker at a time");let ue=Array.from($.entries()),[fe,Ce]=ue[ue.length-1],ve=_.blockers.get(fe);if(!(ve&&ve.state==="proceeding")&&Ce({currentLocation:N,nextLocation:k,historyAction:P}))return fe}function on(N){let k=wa(404,{pathname:N}),P=g||h,{matches:ue,route:fe}=Ec(P);return{notFoundMatches:ue,route:fe,error:k}}function L(N,k,P){if(w=N,M=k,T=P||null,!j&&_.navigation===T0){j=!0;let ue=qe(_.location,_.matches);ue!=null&&Le({restoreScrollPosition:ue})}return()=>{w=null,M=null,T=null}}function W(N,k){return T&&T(N,k.map(ue=>f3(ue,_.loaderData)))||N.key}function Ee(N,k){if(w&&M){let P=W(N,k);w[P]=M()}}function qe(N,k){if(w){let P=W(N,k),ue=w[P];if(typeof ue=="number")return ue}return null}function St(N,k,P){if(t.patchRoutesOnNavigation)if(N){if(Object.keys(N[0].params).length>0)return{active:!0,matches:zl(k,P,p,!0)}}else return{active:!0,matches:zl(k,P,p,!0)||[]};return{active:!1,matches:null}}async function Et(N,k,P,ue){if(!t.patchRoutesOnNavigation)return{type:"success",matches:N};let fe=N;for(;;){let Ce=g==null,ve=g||h,je=u;try{await t.patchRoutesOnNavigation({signal:P,path:k,matches:fe,fetcherKey:ue,patch:(Pe,_e)=>{P.aborted||V2(Pe,_e,ve,je,c,!1)}})}catch(Pe){return{type:"error",error:Pe,partialMatches:fe}}finally{Ce&&!P.aborted&&(h=[...h])}if(P.aborted)return{type:"aborted"};let Te=ii(ve,k,p),Ae=null;if(Te){if(Object.keys(Te[0].params).length===0)return{type:"success",matches:Te};if(Ae=zl(ve,k,p,!0),!(Ae&&fe.length<Ae.length&&Ne(fe,Ae.slice(0,fe.length))))return{type:"success",matches:Te}}if(Ae||(Ae=zl(ve,k,p,!0)),!Ae||Ne(fe,Ae))return{type:"success",matches:null};fe=Ae}}function Ne(N,k){return N.length===k.length&&N.every((P,ue)=>P.route.id===k[ue].route.id)}function Me(N){u={},g=ql(N,c,void 0,u)}function Ge(N,k,P=!1){let ue=g==null;V2(N,k,g||h,u,c,P),ue&&(h=[...h],Le({}))}return ne={get basename(){return p},get future(){return v},get state(){return _},get routes(){return h},get window(){return a},initialize:ot,subscribe:bt,enableScrollRestoration:L,navigate:qt,fetch:yn,revalidate:Nt,createHref:N=>t.history.createHref(N),encodeLocation:N=>t.history.encodeLocation(N),getFetcher:Pa,resetFetcher:jr,deleteFetcher:en,dispose:me,getBlocker:Fa,deleteBlocker:da,patchRoutes:Ge,_internalFetchControllers:de,_internalSetRoutes:Me,_internalSetStateDoNotUseOrYouWillBreakYourApp(N){Le(N)}},t.unstable_instrumentations&&(ne=_3(ne,t.unstable_instrumentations.map(N=>N.router).filter(Boolean))),ne}function F3(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function rf(t,a,i,s,o,c){let u,h;if(o){u=[];for(let p of a)if(u.push(p),p.route.id===o){h=p;break}}else u=a,h=a[a.length-1];let g=ou(s||".",Zf(u),Ra(t.pathname,i)||t.pathname,c==="path");if(s==null&&(g.search=t.search,g.hash=t.hash),(s==null||s===""||s===".")&&h){let p=Gf(g.search);if(h.route.index&&!p)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&p){let b=new URLSearchParams(g.search),v=b.getAll("index");b.delete("index"),v.filter(S=>S).forEach(S=>b.append("index",S));let E=b.toString();g.search=E?`?${E}`:""}}return i!=="/"&&(g.pathname=M3({basename:i,pathname:g.pathname})),nr(g)}function L2(t,a,i){if(!i||!F3(i))return{path:a};if(i.formMethod&&!o5(i.formMethod))return{path:a,error:wa(405,{method:i.formMethod})};let s=()=>({path:a,error:wa(400,{type:"invalid-body"})}),c=(i.formMethod||"get").toUpperCase(),u=M4(a);if(i.body!==void 0){if(i.formEncType==="text/plain"){if(!Ln(c))return s();let v=typeof i.body=="string"?i.body:i.body instanceof FormData||i.body instanceof URLSearchParams?Array.from(i.body.entries()).reduce((E,[S,w])=>`${E}${S}=${w}
|
|
59
|
+
`,""):String(i.body);return{path:a,submission:{formMethod:c,formAction:u,formEncType:i.formEncType,formData:void 0,json:void 0,text:v}}}else if(i.formEncType==="application/json"){if(!Ln(c))return s();try{let v=typeof i.body=="string"?JSON.parse(i.body):i.body;return{path:a,submission:{formMethod:c,formAction:u,formEncType:i.formEncType,formData:void 0,json:v,text:void 0}}}catch{return s()}}}ct(typeof FormData=="function","FormData is not available in this environment");let h,g;if(i.formData)h=lf(i.formData),g=i.formData;else if(i.body instanceof FormData)h=lf(i.body),g=i.body;else if(i.body instanceof URLSearchParams)h=i.body,g=P2(h);else if(i.body==null)h=new URLSearchParams,g=new FormData;else try{h=new URLSearchParams(i.body),g=P2(h)}catch{return s()}let p={formMethod:c,formAction:u,formEncType:i&&i.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(Ln(p.formMethod))return{path:a,submission:p};let b=rr(a);return t&&b.search&&Gf(b.search)&&h.append("index",""),b.search=`?${h}`,{path:nr(b),submission:p}}function k2(t,a,i,s,o,c,u,h,g,p,b,v,E,S,w,T,M,j,C,D,H){var xe;let U=D?la(D[1])?D[1].error:D[1].data:void 0,te=o.createURL(c.location),ne=o.createURL(g),_;if(b&&c.errors){let V=Object.keys(c.errors)[0];_=u.findIndex(Q=>Q.route.id===V)}else if(D&&la(D[1])){let V=D[0];_=u.findIndex(Q=>Q.route.id===V)-1}let ae=D?D[1].statusCode:void 0,ie=ae&&ae>=400,oe={currentUrl:te,currentParams:((xe=c.matches[0])==null?void 0:xe.params)||{},nextUrl:ne,nextParams:u[0].params,...h,actionResult:U,actionStatus:ae},J=no(u),ge=u.map((V,Q)=>{let{route:K}=V,de=null;if(_!=null&&Q>_)de=!1;else if(K.lazy)de=!0;else if(!Ff(K))de=!1;else if(b){let{shouldLoad:ce}=b4(K,c.loaderData,c.errors);de=ce}else I3(c.loaderData,c.matches[Q],V)&&(de=!0);if(de!==null)return sf(i,s,t,g,J,V,p,a,de);let we=!1;typeof H=="boolean"?we=H:ie?we=!1:(v||te.pathname+te.search===ne.pathname+ne.search||te.search!==ne.search||G3(c.matches[Q],V))&&(we=!0);let R={...oe,defaultShouldRevalidate:we},q=Zl(V,R);return sf(i,s,t,g,J,V,p,a,q,R,H)}),he=[];return w.forEach((V,Q)=>{if(b||!u.some(Se=>Se.route.id===V.routeId)||S.has(Q))return;let K=c.fetchers.get(Q),de=K&&K.state!=="idle"&&K.data===void 0,we=ii(M,V.path,j);if(!we){if(C&&de)return;he.push({key:Q,routeId:V.routeId,path:V.path,matches:null,match:null,request:null,controller:null});return}if(T.has(Q))return;let R=Dc(we,V.path),q=new AbortController,ce=ys(o,V.path,q.signal),ye=null;if(E.has(Q))E.delete(Q),ye=Ms(i,s,ce,V.path,we,R,p,a);else if(de)v&&(ye=Ms(i,s,ce,V.path,we,R,p,a));else{let Se;typeof H=="boolean"?Se=H:ie?Se=!1:Se=v;let Re={...oe,defaultShouldRevalidate:Se};Zl(R,Re)&&(ye=Ms(i,s,ce,V.path,we,R,p,a,Re))}ye&&he.push({key:Q,routeId:V.routeId,path:V.path,matches:ye,match:R,request:ce,controller:q})}),{dsMatches:ge,revalidatingFetchers:he}}function Ff(t){return t.loader!=null||t.middleware!=null&&t.middleware.length>0}function b4(t,a,i){if(t.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Ff(t))return{shouldLoad:!1,renderFallback:!1};let s=a!=null&&t.id in a,o=i!=null&&i[t.id]!==void 0;if(!s&&o)return{shouldLoad:!1,renderFallback:!1};if(typeof t.loader=="function"&&t.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!s};let c=!s&&!o;return{shouldLoad:c,renderFallback:c}}function I3(t,a,i){let s=!a||i.route.id!==a.route.id,o=!t.hasOwnProperty(i.route.id);return s||o}function G3(t,a){let i=t.route.path;return t.pathname!==a.pathname||i!=null&&i.endsWith("*")&&t.params["*"]!==a.params["*"]}function Zl(t,a){if(t.route.shouldRevalidate){let i=t.route.shouldRevalidate(a);if(typeof i=="boolean")return i}return a.defaultShouldRevalidate}function V2(t,a,i,s,o,c){let u;if(t){let p=s[t];ct(p,`No route found to patch children into: routeId = ${t}`),p.children||(p.children=[]),u=p.children}else u=i;let h=[],g=[];if(a.forEach(p=>{let b=u.find(v=>v4(p,v));b?g.push({existingRoute:b,newRoute:p}):h.push(p)}),h.length>0){let p=ql(h,o,[t||"_","patch",String((u==null?void 0:u.length)||"0")],s);u.push(...p)}if(c&&g.length>0)for(let p=0;p<g.length;p++){let{existingRoute:b,newRoute:v}=g[p],E=b,[S]=ql([v],o,[],{},!0);Object.assign(E,{element:S.element?S.element:E.element,errorElement:S.errorElement?S.errorElement:E.errorElement,hydrateFallbackElement:S.hydrateFallbackElement?S.hydrateFallbackElement:E.hydrateFallbackElement})}}function v4(t,a){var i;return"id"in t&&"id"in a&&t.id===a.id?!0:t.index===a.index&&t.path===a.path&&t.caseSensitive===a.caseSensitive?(!t.children||t.children.length===0)&&(!a.children||a.children.length===0)?!0:((i=t.children)==null?void 0:i.every((s,o)=>{var c;return(c=a.children)==null?void 0:c.some(u=>v4(s,u))}))??!1:!1}var H2=new WeakMap,x4=({key:t,route:a,manifest:i,mapRouteProperties:s})=>{let o=i[a.id];if(ct(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let c=o.lazy[t];if(!c)return;let u=H2.get(o);u||(u={},H2.set(o,u));let h=u[t];if(h)return h;let g=(async()=>{let p=o3(t),v=o[t]!==void 0&&t!=="hasErrorBoundary";if(p)gn(!p,"Route property "+t+" is not a supported lazy route property. This property will be ignored."),u[t]=Promise.resolve();else if(v)gn(!1,`Route "${o.id}" has a static property "${t}" defined. The lazy property will be ignored.`);else{let E=await c();E!=null&&(Object.assign(o,{[t]:E}),Object.assign(o,s(o)))}typeof o.lazy=="object"&&(o.lazy[t]=void 0,Object.values(o.lazy).every(E=>E===void 0)&&(o.lazy=void 0))})();return u[t]=g,g},z2=new WeakMap;function $3(t,a,i,s,o){let c=i[t.id];if(ct(c,"No route found in manifest"),!t.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof t.lazy=="function"){let b=z2.get(c);if(b)return{lazyRoutePromise:b,lazyHandlerPromise:b};let v=(async()=>{ct(typeof t.lazy=="function","No lazy route function found");let E=await t.lazy(),S={};for(let w in E){let T=E[w];if(T===void 0)continue;let M=u3(w),C=c[w]!==void 0&&w!=="hasErrorBoundary";M?gn(!M,"Route property "+w+" is not a supported property to be returned from a lazy route function. This property will be ignored."):C?gn(!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]=T}Object.assign(c,S),Object.assign(c,{...s(c),lazy:void 0})})();return z2.set(c,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let u=Object.keys(t.lazy),h=[],g;for(let b of u){if(o&&o.includes(b))continue;let v=x4({key:b,route:t,manifest:i,mapRouteProperties:s});v&&(h.push(v),b===a&&(g=v))}let p=h.length>0?Promise.all(h).then(()=>{}):void 0;return p==null||p.catch(()=>{}),g==null||g.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:g}}async function B2(t){let a=t.matches.filter(o=>o.shouldLoad),i={};return(await Promise.all(a.map(o=>o.resolve()))).forEach((o,c)=>{i[a[c].route.id]=o}),i}async function q3(t){return t.matches.some(a=>a.route.middleware)?E4(t,()=>B2(t)):B2(t)}function E4(t,a){return K3(t,a,s=>{if(l5(s))throw s;return s},a5,i);function i(s,o,c){if(c)return Promise.resolve(Object.assign(c.value,{[o]:{type:"error",result:s}}));{let{matches:u}=t,h=Math.min(Math.max(u.findIndex(p=>p.route.id===o),0),Math.max(u.findIndex(p=>p.shouldCallHandler()),0)),g=si(u,u[h].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:s}})}}}async function K3(t,a,i,s,o){let{matches:c,...u}=t,h=c.flatMap(p=>p.route.middleware?p.route.middleware.map(b=>[p.route.id,b]):[]);return await S4(u,h,a,i,s,o)}async function S4(t,a,i,s,o,c,u=0){let{request:h}=t;if(h.signal.aborted)throw h.signal.reason??new Error(`Request aborted: ${h.method} ${h.url}`);let g=a[u];if(!g)return await i();let[p,b]=g,v,E=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");try{return v={value:await S4(t,a,i,s,o,c,u+1)},v.value}catch(S){return v={value:await c(S,p,v)},v.value}};try{let S=await b(t,E),w=S!=null?s(S):void 0;return o(w)?w:v?w??v.value:(v={value:await E()},v.value)}catch(S){return await c(S,p,v)}}function w4(t,a,i,s,o){let c=x4({key:"middleware",route:s.route,manifest:a,mapRouteProperties:t}),u=$3(s.route,Ln(i.method)?"action":"loader",a,t,o);return{middleware:c,route:u.lazyRoutePromise,handler:u.lazyHandlerPromise}}function sf(t,a,i,s,o,c,u,h,g,p=null,b){let v=!1,E=w4(t,a,i,c,u);return{...c,_lazyPromises:E,shouldLoad:g,shouldRevalidateArgs:p,shouldCallHandler(S){return v=!0,p?typeof b=="boolean"?Zl(c,{...p,defaultShouldRevalidate:b}):typeof S=="boolean"?Zl(c,{...p,defaultShouldRevalidate:S}):Zl(c,p):g},resolve(S){let{lazy:w,loader:T,middleware:M}=c.route,j=v||g||S&&!Ln(i.method)&&(w||T),C=M&&M.length>0&&!T&&!w;return j&&(Ln(i.method)||!C)?X3({request:i,path:s,unstable_pattern:o,match:c,lazyHandlerPromise:E==null?void 0:E.handler,lazyRoutePromise:E==null?void 0:E.route,handlerOverride:S,scopedContext:h}):Promise.resolve({type:"data",result:void 0})}}}function Ms(t,a,i,s,o,c,u,h,g=null){return o.map(p=>p.route.id!==c.route.id?{...p,shouldLoad:!1,shouldRevalidateArgs:g,shouldCallHandler:()=>!1,_lazyPromises:w4(t,a,i,p,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:sf(t,a,i,s,no(o),p,u,h,!0,g))}async function Y3(t,a,i,s,o,c,u){s.some(b=>{var v;return(v=b._lazyPromises)==null?void 0:v.middleware})&&await Promise.all(s.map(b=>{var v;return(v=b._lazyPromises)==null?void 0:v.middleware}));let h={request:a,unstable_url:A4(a,i),unstable_pattern:no(s),params:s[0].params,context:c,matches:s},p=await t({...h,fetcherKey:o,runClientMiddleware:b=>{let v=h;return E4(v,()=>b({...v,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(s.flatMap(b=>{var v,E;return[(v=b._lazyPromises)==null?void 0:v.handler,(E=b._lazyPromises)==null?void 0:E.route]}))}catch{}return p}async function X3({request:t,path:a,unstable_pattern:i,match:s,lazyHandlerPromise:o,lazyRoutePromise:c,handlerOverride:u,scopedContext:h}){let g,p,b=Ln(t.method),v=b?"action":"loader",E=S=>{let w,T=new Promise((C,D)=>w=D);p=()=>w(),t.signal.addEventListener("abort",p);let M=C=>typeof S!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${v}" [routeId: ${s.route.id}]`)):S({request:t,unstable_url:A4(t,a),unstable_pattern:i,params:s.params,context:h},...C!==void 0?[C]:[]),j=(async()=>{try{return{type:"data",result:await(u?u(D=>M(D)):M())}}catch(C){return{type:"error",result:C}}})();return Promise.race([j,T])};try{let S=b?s.route.action:s.route.loader;if(o||c)if(S){let w,[T]=await Promise.all([E(S).catch(M=>{w=M}),o,c]);if(w!==void 0)throw w;g=T}else{await o;let w=b?s.route.action:s.route.loader;if(w)[g]=await Promise.all([E(w),c]);else if(v==="action"){let T=new URL(t.url),M=T.pathname+T.search;throw wa(405,{method:t.method,pathname:M,routeId:s.route.id})}else return{type:"data",result:void 0}}else if(S)g=await E(S);else{let w=new URL(t.url),T=w.pathname+w.search;throw wa(404,{pathname:T})}}catch(S){return{type:"error",result:S}}finally{p&&t.signal.removeEventListener("abort",p)}return g}async function Q3(t){let a=t.headers.get("Content-Type");return a&&/\bapplication\/json\b/.test(a)?t.body==null?null:t.json():t.text()}async function J3(t){var s,o,c,u,h;let{result:a,type:i}=t;if(If(a)){let g;try{g=await Q3(a)}catch(p){return{type:"error",error:p}}return i==="error"?{type:"error",error:new to(a.status,a.statusText,g),statusCode:a.status,headers:a.headers}:{type:"data",data:g,statusCode:a.status,headers:a.headers}}return i==="error"?$2(a)?a.data instanceof Error?{type:"error",error:a.data,statusCode:(s=a.init)==null?void 0:s.status,headers:(o=a.init)!=null&&o.headers?new Headers(a.init.headers):void 0}:{type:"error",error:n5(a),statusCode:Kl(a)?a.status:void 0,headers:(c=a.init)!=null&&c.headers?new Headers(a.init.headers):void 0}:{type:"error",error:a,statusCode:Kl(a)?a.status:void 0}:$2(a)?{type:"data",data:a.data,statusCode:(u=a.init)==null?void 0:u.status,headers:(h=a.init)!=null&&h.headers?new Headers(a.init.headers):void 0}:{type:"data",data:a}}function W3(t,a,i,s,o){let c=t.headers.get("Location");if(ct(c,"Redirects returned/thrown from loaders/actions must have a Location header"),!Uf(c)){let u=s.slice(0,s.findIndex(h=>h.route.id===i)+1);c=rf(new URL(a.url),u,o,c),t.headers.set("Location",c)}return t}var U2=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Z2(t,a,i,s){if(Uf(t)){let o=t,c=o.startsWith("//")?new URL(a.protocol+o):new URL(o);if(U2.includes(c.protocol))throw new Error("Invalid redirect location");let u=Ra(c.pathname,i)!=null;if(c.origin===a.origin&&u)return Pf(c.pathname)+c.search+c.hash}try{let o=s.createURL(t);if(U2.includes(o.protocol))throw new Error("Invalid redirect location")}catch{}return t}function ys(t,a,i,s){let o=t.createURL(M4(a)).toString(),c={signal:i};if(s&&Ln(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=lf(s.formData):c.body=s.formData}return new Request(o,c)}function A4(t,a){let i=new URL(t.url),s=typeof a=="string"?rr(a):a;if(i.pathname=s.pathname||"/",s.search){let o=new URLSearchParams(s.search),c=o.getAll("index");o.delete("index");for(let u of c.filter(Boolean))o.append("index",u);i.search=o.size?`?${o.toString()}`:""}else i.search="";return i.hash=s.hash||"",i}function lf(t){let a=new URLSearchParams;for(let[i,s]of t.entries())a.append(i,typeof s=="string"?s:s.name);return a}function P2(t){let a=new FormData;for(let[i,s]of t.entries())a.append(i,s);return a}function e5(t,a,i,s=!1,o=!1){let c={},u=null,h,g=!1,p={},b=i&&la(i[1])?i[1].error:void 0;return t.forEach(v=>{if(!(v.route.id in a))return;let E=v.route.id,S=a[E];if(ct(!Oi(S),"Cannot handle redirect results in processLoaderData"),la(S)){let w=S.error;if(b!==void 0&&(w=b,b=void 0),u=u||{},o)u[E]=w;else{let T=si(t,E);u[T.route.id]==null&&(u[T.route.id]=w)}s||(c[E]=y4),g||(g=!0,h=Kl(S.error)?S.error.status:500),S.headers&&(p[E]=S.headers)}else c[E]=S.data,S.statusCode&&S.statusCode!==200&&!g&&(h=S.statusCode),S.headers&&(p[E]=S.headers)}),b!==void 0&&i&&(u={[i[0]]:b},i[2]&&(c[i[2]]=void 0)),{loaderData:c,errors:u,statusCode:h||200,loaderHeaders:p}}function F2(t,a,i,s,o,c){let{loaderData:u,errors:h}=e5(a,i,s);return o.filter(g=>!g.matches||g.matches.some(p=>p.shouldLoad)).forEach(g=>{let{key:p,match:b,controller:v}=g;if(v&&v.signal.aborted)return;let E=c[p];if(ct(E,"Did not find corresponding fetcher result"),la(E)){let S=si(t.matches,b==null?void 0:b.route.id);h&&h[S.route.id]||(h={...h,[S.route.id]:E.error}),t.fetchers.delete(p)}else if(Oi(E))ct(!1,"Unhandled fetcher revalidation redirect");else{let S=Cr(E.data);t.fetchers.set(p,S)}}),{loaderData:u,errors:h}}function I2(t,a,i,s){let o=Object.entries(a).filter(([,c])=>c!==y4).reduce((c,[u,h])=>(c[u]=h,c),{});for(let c of i){let u=c.route.id;if(!a.hasOwnProperty(u)&&t.hasOwnProperty(u)&&c.route.loader&&(o[u]=t[u]),s&&s.hasOwnProperty(u))break}return o}function G2(t){return t?la(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function si(t,a){return(a?t.slice(0,t.findIndex(s=>s.route.id===a)+1):[...t]).reverse().find(s=>s.route.hasErrorBoundary===!0)||t[0]}function Ec(t){let a=t.length===1?t[0]:t.find(i=>i.index||!i.path||i.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:a}],route:a}}function wa(t,{pathname:a,routeId:i,method:s,type:o,message:c}={}){let u="Unknown Server Error",h="Unknown @remix-run/router error";return t===400?(u="Bad Request",s&&a&&i?h=`You made a ${s} request to "${a}" but did not provide a \`loader\` for route "${i}", so there is no way to handle the request.`:o==="invalid-body"&&(h="Unable to encode submission body")):t===403?(u="Forbidden",h=`Route "${i}" does not match URL "${a}"`):t===404?(u="Not Found",h=`No route matches URL "${a}"`):t===405&&(u="Method Not Allowed",s&&a&&i?h=`You made a ${s.toUpperCase()} request to "${a}" but did not provide an \`action\` for route "${i}", so there is no way to handle the request.`:s&&(h=`Invalid request method "${s.toUpperCase()}"`)),new to(t||500,u,new Error(h),!0)}function Sc(t){let a=Object.entries(t);for(let i=a.length-1;i>=0;i--){let[s,o]=a[i];if(Oi(o))return{key:s,result:o}}}function M4(t){let a=typeof t=="string"?rr(t):t;return nr({...a,hash:""})}function t5(t,a){return t.pathname!==a.pathname||t.search!==a.search?!1:t.hash===""?a.hash!=="":t.hash===a.hash?!0:a.hash!==""}function n5(t){var a,i;return new to(((a=t.init)==null?void 0:a.status)??500,((i=t.init)==null?void 0:i.statusText)??"Internal Server Error",t.data)}function a5(t){return t!=null&&typeof t=="object"&&Object.entries(t).every(([a,i])=>typeof a=="string"&&r5(i))}function r5(t){return t!=null&&typeof t=="object"&&"type"in t&&"result"in t&&(t.type==="data"||t.type==="error")}function i5(t){return If(t.result)&&p4.has(t.result.status)}function la(t){return t.type==="error"}function Oi(t){return(t&&t.type)==="redirect"}function $2(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function If(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function s5(t){return p4.has(t)}function l5(t){return If(t)&&s5(t.status)&&t.headers.has("Location")}function o5(t){return z3.has(t.toUpperCase())}function Ln(t){return V3.has(t.toUpperCase())}function Gf(t){return new URLSearchParams(t).getAll("index").some(a=>a==="")}function Dc(t,a){let i=typeof a=="string"?rr(a).search:a.search;if(t[t.length-1].route.index&&Gf(i||""))return t[t.length-1];let s=u4(t);return s[s.length-1]}function q2(t){let{formMethod:a,formAction:i,formEncType:s,text:o,formData:c,json:u}=t;if(!(!a||!i||!s)){if(o!=null)return{formMethod:a,formAction:i,formEncType:s,formData:void 0,json:void 0,text:o};if(c!=null)return{formMethod:a,formAction:i,formEncType:s,formData:c,json:void 0,text:void 0};if(u!==void 0)return{formMethod:a,formAction:i,formEncType:s,formData:void 0,json:u,text:void 0}}}function C0(t,a){return a?{state:"loading",location:t,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function c5(t,a){return{state:"submitting",location:t,formMethod:a.formMethod,formAction:a.formAction,formEncType:a.formEncType,formData:a.formData,json:a.json,text:a.text}}function Tl(t,a){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:a}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:a}}function u5(t,a){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:a?a.data:void 0}}function Cr(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function d5(t,a){try{let i=t.sessionStorage.getItem(g4);if(i){let s=JSON.parse(i);for(let[o,c]of Object.entries(s||{}))c&&Array.isArray(c)&&a.set(o,new Set(c||[]))}}catch{}}function f5(t,a){if(a.size>0){let i={};for(let[s,o]of a)i[s]=[...o];try{t.sessionStorage.setItem(g4,JSON.stringify(i))}catch(s){gn(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function K2(){let t,a,i=new Promise((s,o)=>{t=async c=>{s(c);try{await i}catch{}},a=async c=>{o(c);try{await i}catch{}}});return{promise:i,resolve:t,reject:a}}var Ui=d.createContext(null);Ui.displayName="DataRouter";var ao=d.createContext(null);ao.displayName="DataRouterState";var T4=d.createContext(!1);function C4(){return d.useContext(T4)}var $f=d.createContext({isTransitioning:!1});$f.displayName="ViewTransition";var R4=d.createContext(new Map);R4.displayName="Fetchers";var h5=d.createContext(null);h5.displayName="Await";var Na=d.createContext(null);Na.displayName="Navigation";var cu=d.createContext(null);cu.displayName="Location";var Ba=d.createContext({outlet:null,matches:[],isDataRoute:!1});Ba.displayName="Route";var qf=d.createContext(null);qf.displayName="RouteError";var N4="REACT_ROUTER_ERROR",m5="REDIRECT",p5="ROUTE_ERROR_RESPONSE";function g5(t){if(t.startsWith(`${N4}:${m5}:{`))try{let a=JSON.parse(t.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function y5(t){if(t.startsWith(`${N4}:${p5}:{`))try{let a=JSON.parse(t.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new to(a.status,a.statusText,a.data)}catch{}}function b5(t,{relative:a}={}){ct(ro(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=d.useContext(Na),{hash:o,pathname:c,search:u}=so(t,{relative:a}),h=c;return i!=="/"&&(h=c==="/"?i:Ta([i,c])),s.createHref({pathname:h,search:u,hash:o})}function ro(){return d.useContext(cu)!=null}function Ua(){return ct(ro(),"useLocation() may be used only in the context of a <Router> component."),d.useContext(cu).location}var j4="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _4(t){d.useContext(Na).static||d.useLayoutEffect(t)}function io(){let{isDataRoute:t}=d.useContext(Ba);return t?O5():v5()}function v5(){ct(ro(),"useNavigate() may be used only in the context of a <Router> component.");let t=d.useContext(Ui),{basename:a,navigator:i}=d.useContext(Na),{matches:s}=d.useContext(Ba),{pathname:o}=Ua(),c=JSON.stringify(Zf(s)),u=d.useRef(!1);return _4(()=>{u.current=!0}),d.useCallback((g,p={})=>{if(gn(u.current,j4),!u.current)return;if(typeof g=="number"){i.go(g);return}let b=ou(g,JSON.parse(c),o,p.relative==="path");t==null&&a!=="/"&&(b.pathname=b.pathname==="/"?a:Ta([a,b.pathname])),(p.replace?i.replace:i.push)(b,p.state,p)},[a,i,c,o,t])}var x5=d.createContext(null);function E5(t){let a=d.useContext(Ba).outlet;return d.useMemo(()=>a&&d.createElement(x5.Provider,{value:t},a),[a,t])}function uu(){let{matches:t}=d.useContext(Ba),a=t[t.length-1];return a?a.params:{}}function so(t,{relative:a}={}){let{matches:i}=d.useContext(Ba),{pathname:s}=Ua(),o=JSON.stringify(Zf(i));return d.useMemo(()=>ou(t,JSON.parse(o),s,a==="path"),[t,o,s,a])}function S5(t,a,i){ct(ro(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=d.useContext(Na),{matches:o}=d.useContext(Ba),c=o[o.length-1],u=c?c.params:{},h=c?c.pathname:"/",g=c?c.pathnameBase:"/",p=c&&c.route;{let M=p&&p.path||"";O4(h,!p||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${M}">) 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.
|
|
60
|
+
|
|
61
|
+
Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let b=Ua(),v;v=b;let E=v.pathname||"/",S=E;if(g!=="/"){let M=g.replace(/^\//,"").split("/");S="/"+E.replace(/^\//,"").split("/").slice(M.length).join("/")}let w=ii(t,{pathname:S});return gn(p||w!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),gn(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 "${v.pathname}${v.search}${v.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.`),C5(w&&w.map(M=>Object.assign({},M,{params:Object.assign({},u,M.params),pathname:Ta([g,s.encodeLocation?s.encodeLocation(M.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?g:Ta([g,s.encodeLocation?s.encodeLocation(M.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),o,i)}function w5(){let t=D5(),a=Kl(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),i=t instanceof Error?t.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},u=null;return console.error("Error handled by React Router default ErrorBoundary:",t),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"}},a),i?d.createElement("pre",{style:o},i):null,u)}var A5=d.createElement(w5,null),D4=class extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,a){return a.location!==t.location||a.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:a.error,location:a.location,revalidation:t.revalidation||a.revalidation}}componentDidCatch(t,a){this.props.onError?this.props.onError(t,a):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const i=y5(t.digest);i&&(t=i)}let a=t!==void 0?d.createElement(Ba.Provider,{value:this.props.routeContext},d.createElement(qf.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?d.createElement(M5,{error:t},a):a}};D4.contextType=T4;var R0=new WeakMap;function M5({children:t,error:a}){let{basename:i}=d.useContext(Na);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let s=g5(a.digest);if(s){let o=R0.get(a);if(o)throw o;let c=f4(s.location,i);if(d4&&!R0.get(a))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 R0.set(a,u),u}return d.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return t}function T5({routeContext:t,match:a,children:i}){let s=d.useContext(Ui);return s&&s.static&&s.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=a.route.id),d.createElement(Ba.Provider,{value:t},i)}function C5(t,a=[],i){let s=i==null?void 0:i.state;if(t==null){if(!s)return null;if(s.errors)t=s.matches;else if(a.length===0&&!s.initialized&&s.matches.length>0)t=s.matches;else return null}let o=t,c=s==null?void 0:s.errors;if(c!=null){let b=o.findIndex(v=>v.route.id&&(c==null?void 0:c[v.route.id])!==void 0);ct(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let u=!1,h=-1;if(i&&s){u=s.renderFallback;for(let b=0;b<o.length;b++){let v=o[b];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=b),v.route.id){let{loaderData:E,errors:S}=s,w=v.route.loader&&!E.hasOwnProperty(v.route.id)&&(!S||S[v.route.id]===void 0);if(v.route.lazy||w){i.isStatic&&(u=!0),h>=0?o=o.slice(0,h+1):o=[o[0]];break}}}}let g=i==null?void 0:i.onError,p=s&&g?(b,v)=>{var E,S;g(b,{location:s.location,params:((S=(E=s.matches)==null?void 0:E[0])==null?void 0:S.params)??{},unstable_pattern:no(s.matches),errorInfo:v})}:void 0;return o.reduceRight((b,v,E)=>{let S,w=!1,T=null,M=null;s&&(S=c&&v.route.id?c[v.route.id]:void 0,T=v.route.errorElement||A5,u&&(h<0&&E===0?(O4("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,M=null):h===E&&(w=!0,M=v.route.hydrateFallbackElement||null)));let j=a.concat(o.slice(0,E+1)),C=()=>{let D;return S?D=T:w?D=M:v.route.Component?D=d.createElement(v.route.Component,null):v.route.element?D=v.route.element:D=b,d.createElement(T5,{match:v,routeContext:{outlet:b,matches:j,isDataRoute:s!=null},children:D})};return s&&(v.route.ErrorBoundary||v.route.errorElement||E===0)?d.createElement(D4,{location:s.location,revalidation:s.revalidation,component:T,error:S,children:C(),routeContext:{outlet:null,matches:j,isDataRoute:!0},onError:p}):C()},null)}function Kf(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function R5(t){let a=d.useContext(Ui);return ct(a,Kf(t)),a}function N5(t){let a=d.useContext(ao);return ct(a,Kf(t)),a}function j5(t){let a=d.useContext(Ba);return ct(a,Kf(t)),a}function Yf(t){let a=j5(t),i=a.matches[a.matches.length-1];return ct(i.route.id,`${t} can only be used on routes that contain a unique "id"`),i.route.id}function _5(){return Yf("useRouteId")}function D5(){var s;let t=d.useContext(qf),a=N5("useRouteError"),i=Yf("useRouteError");return t!==void 0?t:(s=a.errors)==null?void 0:s[i]}function O5(){let{router:t}=R5("useNavigate"),a=Yf("useNavigate"),i=d.useRef(!1);return _4(()=>{i.current=!0}),d.useCallback(async(o,c={})=>{gn(i.current,j4),i.current&&(typeof o=="number"?await t.navigate(o):await t.navigate(o,{fromRouteId:a,...c}))},[t,a])}var Y2={};function O4(t,a,i){!a&&!Y2[t]&&(Y2[t]=!0,gn(!1,i))}var X2={};function Q2(t,a){!t&&!X2[a]&&(X2[a]=!0,console.warn(a))}var L5="useOptimistic",J2=Yx[L5],k5=()=>{};function V5(t){return J2?J2(t):[t,k5]}function H5(t){let a={hasErrorBoundary:t.hasErrorBoundary||t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&(t.element&&gn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(a,{element:d.createElement(t.Component),Component:void 0})),t.HydrateFallback&&(t.hydrateFallbackElement&&gn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(a,{hydrateFallbackElement:d.createElement(t.HydrateFallback),HydrateFallback:void 0})),t.ErrorBoundary&&(t.errorElement&&gn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(a,{errorElement:d.createElement(t.ErrorBoundary),ErrorBoundary:void 0})),a}var z5=["HydrateFallback","hydrateFallbackElement"],B5=class{constructor(){this.status="pending",this.promise=new Promise((t,a)=>{this.resolve=i=>{this.status==="pending"&&(this.status="resolved",t(i))},this.reject=i=>{this.status==="pending"&&(this.status="rejected",a(i))}})}};function U5({router:t,flushSync:a,onError:i,unstable_useTransitions:s}){s=C4()||s;let[c,u]=d.useState(t.state),[h,g]=V5(c),[p,b]=d.useState(),[v,E]=d.useState({isTransitioning:!1}),[S,w]=d.useState(),[T,M]=d.useState(),[j,C]=d.useState(),D=d.useRef(new Map),H=d.useCallback((ae,{deletedFetchers:ie,newErrors:oe,flushSync:J,viewTransitionOpts:ge})=>{oe&&i&&Object.values(oe).forEach(xe=>{var V;return i(xe,{location:ae.location,params:((V=ae.matches[0])==null?void 0:V.params)??{},unstable_pattern:no(ae.matches)})}),ae.fetchers.forEach((xe,V)=>{xe.data!==void 0&&D.current.set(V,xe.data)}),ie.forEach(xe=>D.current.delete(xe)),Q2(J===!1||a!=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 he=t.window!=null&&t.window.document!=null&&typeof t.window.document.startViewTransition=="function";if(Q2(ge==null||he,"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."),!ge||!he){a&&J?a(()=>u(ae)):s===!1?u(ae):d.startTransition(()=>{s===!0&&g(xe=>W2(xe,ae)),u(ae)});return}if(a&&J){a(()=>{T&&(S==null||S.resolve(),T.skipTransition()),E({isTransitioning:!0,flushSync:!0,currentLocation:ge.currentLocation,nextLocation:ge.nextLocation})});let xe=t.window.document.startViewTransition(()=>{a(()=>u(ae))});xe.finished.finally(()=>{a(()=>{w(void 0),M(void 0),b(void 0),E({isTransitioning:!1})})}),a(()=>M(xe));return}T?(S==null||S.resolve(),T.skipTransition(),C({state:ae,currentLocation:ge.currentLocation,nextLocation:ge.nextLocation})):(b(ae),E({isTransitioning:!0,flushSync:!1,currentLocation:ge.currentLocation,nextLocation:ge.nextLocation}))},[t.window,a,T,S,s,g,i]);d.useLayoutEffect(()=>t.subscribe(H),[t,H]);let U=h.initialized;d.useLayoutEffect(()=>{!U&&t.state.initialized&&H(t.state,{deletedFetchers:[],flushSync:!1,newErrors:null})},[U,H,t.state]),d.useEffect(()=>{v.isTransitioning&&!v.flushSync&&w(new B5)},[v]),d.useEffect(()=>{if(S&&p&&t.window){let ae=p,ie=S.promise,oe=t.window.document.startViewTransition(async()=>{s===!1?u(ae):d.startTransition(()=>{s===!0&&g(J=>W2(J,ae)),u(ae)}),await ie});oe.finished.finally(()=>{w(void 0),M(void 0),b(void 0),E({isTransitioning:!1})}),M(oe)}},[p,S,t.window,s,g]),d.useEffect(()=>{S&&p&&h.location.key===p.location.key&&S.resolve()},[S,T,h.location,p]),d.useEffect(()=>{!v.isTransitioning&&j&&(b(j.state),E({isTransitioning:!0,flushSync:!1,currentLocation:j.currentLocation,nextLocation:j.nextLocation}),C(void 0))},[v.isTransitioning,j]);let te=d.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:ae=>t.navigate(ae),push:(ae,ie,oe)=>t.navigate(ae,{state:ie,preventScrollReset:oe==null?void 0:oe.preventScrollReset}),replace:(ae,ie,oe)=>t.navigate(ae,{replace:!0,state:ie,preventScrollReset:oe==null?void 0:oe.preventScrollReset})}),[t]),ne=t.basename||"/",_=d.useMemo(()=>({router:t,navigator:te,static:!1,basename:ne,onError:i}),[t,te,ne,i]);return d.createElement(d.Fragment,null,d.createElement(Ui.Provider,{value:_},d.createElement(ao.Provider,{value:h},d.createElement(R4.Provider,{value:D.current},d.createElement($f.Provider,{value:v},d.createElement(I5,{basename:ne,location:h.location,navigationType:h.historyAction,navigator:te,unstable_useTransitions:s},d.createElement(Z5,{routes:t.routes,future:t.future,state:h,isStatic:!1,onError:i})))))),null)}function W2(t,a){return{...t,navigation:a.navigation.state!=="idle"?a.navigation:t.navigation,revalidation:a.revalidation!=="idle"?a.revalidation:t.revalidation,actionData:a.navigation.state!=="submitting"?a.actionData:t.actionData,fetchers:a.fetchers}}var Z5=d.memo(P5);function P5({routes:t,future:a,state:i,isStatic:s,onError:o}){return S5(t,void 0,{state:i,isStatic:s,onError:o})}function F5(t){return E5(t.context)}function I5({basename:t="/",children:a=null,location:i,navigationType:s="POP",navigator:o,static:c=!1,unstable_useTransitions:u}){ct(!ro(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=t.replace(/^\/*/,"/"),g=d.useMemo(()=>({basename:h,navigator:o,static:c,unstable_useTransitions:u,future:{}}),[h,o,c,u]);typeof i=="string"&&(i=rr(i));let{pathname:p="/",search:b="",hash:v="",state:E=null,key:S="default",unstable_mask:w}=i,T=d.useMemo(()=>{let M=Ra(p,h);return M==null?null:{location:{pathname:M,search:b,hash:v,state:E,key:S,unstable_mask:w},navigationType:s}},[h,p,b,v,E,S,s,w]);return gn(T!=null,`<Router basename="${h}"> is not able to match the URL "${p}${b}${v}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:d.createElement(Na.Provider,{value:g},d.createElement(cu.Provider,{children:a,value:T}))}var Oc="get",Lc="application/x-www-form-urlencoded";function du(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function G5(t){return du(t)&&t.tagName.toLowerCase()==="button"}function $5(t){return du(t)&&t.tagName.toLowerCase()==="form"}function q5(t){return du(t)&&t.tagName.toLowerCase()==="input"}function K5(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Y5(t,a){return t.button===0&&(!a||a==="_self")&&!K5(t)}var wc=null;function X5(){if(wc===null)try{new FormData(document.createElement("form"),0),wc=!1}catch{wc=!0}return wc}var Q5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function N0(t){return t!=null&&!Q5.has(t)?(gn(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Lc}"`),null):t}function J5(t,a){let i,s,o,c,u;if($5(t)){let h=t.getAttribute("action");s=h?Ra(h,a):null,i=t.getAttribute("method")||Oc,o=N0(t.getAttribute("enctype"))||Lc,c=new FormData(t)}else if(G5(t)||q5(t)&&(t.type==="submit"||t.type==="image")){let h=t.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=t.getAttribute("formaction")||h.getAttribute("action");if(s=g?Ra(g,a):null,i=t.getAttribute("formmethod")||h.getAttribute("method")||Oc,o=N0(t.getAttribute("formenctype"))||N0(h.getAttribute("enctype"))||Lc,c=new FormData(h,t),!X5()){let{name:p,type:b,value:v}=t;if(b==="image"){let E=p?`${p}.`:"";c.append(`${E}x`,"0"),c.append(`${E}y`,"0")}else p&&c.append(p,v)}}else{if(du(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Oc,s=null,o=Lc,u=t}return c&&o==="text/plain"&&(u=c,c=void 0),{action:s,method:i.toLowerCase(),encType:o,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Xf(t,a){if(t===!1||t===null||typeof t>"u")throw new Error(a)}function L4(t,a,i,s){let o=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return i?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${s}`:o.pathname=`${o.pathname}.${s}`:o.pathname==="/"?o.pathname=`_root.${s}`:a&&Ra(o.pathname,a)==="/"?o.pathname=`${$c(a)}/_root.${s}`:o.pathname=`${$c(o.pathname)}.${s}`,o}async function W5(t,a){if(t.id in a)return a[t.id];try{let i=await import(t.module);return a[t.id]=i,i}catch(i){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function eE(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function tE(t,a,i){let s=await Promise.all(t.map(async o=>{let c=a.routes[o.route.id];if(c){let u=await W5(c,i);return u.links?u.links():[]}return[]}));return iE(s.flat(1).filter(eE).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function eg(t,a,i,s,o,c){let u=(g,p)=>i[p]?g.route.id!==i[p].route.id:!0,h=(g,p)=>{var b;return i[p].pathname!==g.pathname||((b=i[p].route.path)==null?void 0:b.endsWith("*"))&&i[p].params["*"]!==g.params["*"]};return c==="assets"?a.filter((g,p)=>u(g,p)||h(g,p)):c==="data"?a.filter((g,p)=>{var v;let b=s.routes[g.route.id];if(!b||!b.hasLoader)return!1;if(u(g,p)||h(g,p))return!0;if(g.route.shouldRevalidate){let E=g.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=i[0])==null?void 0:v.params)||{},nextUrl:new URL(t,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function nE(t,a,{includeHydrateFallback:i}={}){return aE(t.map(s=>{let o=a.routes[s.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function aE(t){return[...new Set(t)]}function rE(t){let a={},i=Object.keys(t).sort();for(let s of i)a[s]=t[s];return a}function iE(t,a){let i=new Set;return new Set(a),t.reduce((s,o)=>{let c=JSON.stringify(rE(o));return i.has(c)||(i.add(c),s.push({key:c,link:o})),s},[])}function Qf(){let t=d.useContext(Ui);return Xf(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function sE(){let t=d.useContext(ao);return Xf(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Jf=d.createContext(void 0);Jf.displayName="FrameworkContext";function Wf(){let t=d.useContext(Jf);return Xf(t,"You must render this element inside a <HydratedRouter> element"),t}function lE(t,a){let i=d.useContext(Jf),[s,o]=d.useState(!1),[c,u]=d.useState(!1),{onFocus:h,onBlur:g,onMouseEnter:p,onMouseLeave:b,onTouchStart:v}=a,E=d.useRef(null);d.useEffect(()=>{if(t==="render"&&u(!0),t==="viewport"){let T=j=>{j.forEach(C=>{u(C.isIntersecting)})},M=new IntersectionObserver(T,{threshold:.5});return E.current&&M.observe(E.current),()=>{M.disconnect()}}},[t]),d.useEffect(()=>{if(s){let T=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(T)}}},[s]);let S=()=>{o(!0)},w=()=>{o(!1),u(!1)};return i?t!=="intent"?[c,E,{}]:[c,E,{onFocus:Cl(h,S),onBlur:Cl(g,w),onMouseEnter:Cl(p,S),onMouseLeave:Cl(b,w),onTouchStart:Cl(v,S)}]:[!1,E,{}]}function Cl(t,a){return i=>{t&&t(i),i.defaultPrevented||a(i)}}function oE({page:t,...a}){let i=C4(),{router:s}=Qf(),o=d.useMemo(()=>ii(s.routes,t,s.basename),[s.routes,t,s.basename]);return o?i?d.createElement(uE,{page:t,matches:o,...a}):d.createElement(dE,{page:t,matches:o,...a}):null}function cE(t){let{manifest:a,routeModules:i}=Wf(),[s,o]=d.useState([]);return d.useEffect(()=>{let c=!1;return tE(t,a,i).then(u=>{c||o(u)}),()=>{c=!0}},[t,a,i]),s}function uE({page:t,matches:a,...i}){let s=Ua(),{future:o}=Wf(),{basename:c}=Qf(),u=d.useMemo(()=>{if(t===s.pathname+s.search+s.hash)return[];let h=L4(t,c,o.unstable_trailingSlashAwareDataRequests,"rsc"),g=!1,p=[];for(let b of a)typeof b.route.shouldRevalidate=="function"?g=!0:p.push(b.route.id);return g&&p.length>0&&h.searchParams.set("_routes",p.join(",")),[h.pathname+h.search]},[c,o.unstable_trailingSlashAwareDataRequests,t,s,a]);return d.createElement(d.Fragment,null,u.map(h=>d.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...i})))}function dE({page:t,matches:a,...i}){let s=Ua(),{future:o,manifest:c,routeModules:u}=Wf(),{basename:h}=Qf(),{loaderData:g,matches:p}=sE(),b=d.useMemo(()=>eg(t,a,p,c,s,"data"),[t,a,p,c,s]),v=d.useMemo(()=>eg(t,a,p,c,s,"assets"),[t,a,p,c,s]),E=d.useMemo(()=>{if(t===s.pathname+s.search+s.hash)return[];let T=new Set,M=!1;if(a.forEach(C=>{var H;let D=c.routes[C.route.id];!D||!D.hasLoader||(!b.some(U=>U.route.id===C.route.id)&&C.route.id in g&&((H=u[C.route.id])!=null&&H.shouldRevalidate)||D.hasClientLoader?M=!0:T.add(C.route.id))}),T.size===0)return[];let j=L4(t,h,o.unstable_trailingSlashAwareDataRequests,"data");return M&&T.size>0&&j.searchParams.set("_routes",a.filter(C=>T.has(C.route.id)).map(C=>C.route.id).join(",")),[j.pathname+j.search]},[h,o.unstable_trailingSlashAwareDataRequests,g,s,c,b,a,t,u]),S=d.useMemo(()=>nE(v,c),[v,c]),w=cE(v);return d.createElement(d.Fragment,null,E.map(T=>d.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...i})),S.map(T=>d.createElement("link",{key:T,rel:"modulepreload",href:T,...i})),w.map(({key:T,link:M})=>d.createElement("link",{key:T,nonce:i.nonce,...M,crossOrigin:M.crossOrigin??i.crossOrigin})))}function fE(...t){return a=>{t.forEach(i=>{typeof i=="function"?i(a):i!=null&&(i.current=a)})}}var hE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{hE&&(window.__reactRouterVersion="7.14.1")}catch{}function mE(t,a){return P3({basename:a==null?void 0:a.basename,getContext:a==null?void 0:a.getContext,future:a==null?void 0:a.future,history:r3({window:a==null?void 0:a.window}),hydrationData:pE(),routes:t,mapRouteProperties:H5,hydrationRouteProperties:z5,dataStrategy:a==null?void 0:a.dataStrategy,patchRoutesOnNavigation:a==null?void 0:a.patchRoutesOnNavigation,window:a==null?void 0:a.window,unstable_instrumentations:a==null?void 0:a.unstable_instrumentations}).initialize()}function pE(){let t=window==null?void 0:window.__staticRouterHydrationData;return t&&t.errors&&(t={...t,errors:gE(t.errors)}),t}function gE(t){if(!t)return null;let a=Object.entries(t),i={};for(let[s,o]of a)if(o&&o.__type==="RouteErrorResponse")i[s]=new to(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let c=window[o.__subType];if(typeof c=="function")try{let u=new c(o.message);u.stack="",i[s]=u}catch{}}if(i[s]==null){let c=new Error(o.message);c.stack="",i[s]=c}}else i[s]=o;return i}var k4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,e1=d.forwardRef(function({onClick:a,discover:i="render",prefetch:s="none",relative:o,reloadDocument:c,replace:u,unstable_mask:h,state:g,target:p,to:b,preventScrollReset:v,viewTransition:E,unstable_defaultShouldRevalidate:S,...w},T){let{basename:M,navigator:j,unstable_useTransitions:C}=d.useContext(Na),D=typeof b=="string"&&k4.test(b),H=f4(b,M);b=H.to;let U=b5(b,{relative:o}),te=Ua(),ne=null;if(h){let xe=ou(h,[],te.unstable_mask?te.unstable_mask.pathname:"/",!0);M!=="/"&&(xe.pathname=xe.pathname==="/"?M:Ta([M,xe.pathname])),ne=j.createHref(xe)}let[_,ae,ie]=lE(s,w),oe=xE(b,{replace:u,unstable_mask:h,state:g,target:p,preventScrollReset:v,relative:o,viewTransition:E,unstable_defaultShouldRevalidate:S,unstable_useTransitions:C});function J(xe){a&&a(xe),xe.defaultPrevented||oe(xe)}let ge=!(H.isExternal||c),he=d.createElement("a",{...w,...ie,href:(ge?ne:void 0)||H.absoluteURL||U,onClick:ge?J:a,ref:fE(T,ae),target:p,"data-discover":!D&&i==="render"?"true":void 0});return _&&!D?d.createElement(d.Fragment,null,he,d.createElement(oE,{page:U})):he});e1.displayName="Link";var yE=d.forwardRef(function({"aria-current":a="page",caseSensitive:i=!1,className:s="",end:o=!1,style:c,to:u,viewTransition:h,children:g,...p},b){let v=so(u,{relative:p.relative}),E=Ua(),S=d.useContext(ao),{navigator:w,basename:T}=d.useContext(Na),M=S!=null&&ME(v)&&h===!0,j=w.encodeLocation?w.encodeLocation(v).pathname:v.pathname,C=E.pathname,D=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(C=C.toLowerCase(),D=D?D.toLowerCase():null,j=j.toLowerCase()),D&&T&&(D=Ra(D,T)||D);const H=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let U=C===j||!o&&C.startsWith(j)&&C.charAt(H)==="/",te=D!=null&&(D===j||!o&&D.startsWith(j)&&D.charAt(j.length)==="/"),ne={isActive:U,isPending:te,isTransitioning:M},_=U?a:void 0,ae;typeof s=="function"?ae=s(ne):ae=[s,U?"active":null,te?"pending":null,M?"transitioning":null].filter(Boolean).join(" ");let ie=typeof c=="function"?c(ne):c;return d.createElement(e1,{...p,"aria-current":_,className:ae,ref:b,style:ie,to:u,viewTransition:h},typeof g=="function"?g(ne):g)});yE.displayName="NavLink";var bE=d.forwardRef(({discover:t="render",fetcherKey:a,navigate:i,reloadDocument:s,replace:o,state:c,method:u=Oc,action:h,onSubmit:g,relative:p,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:E,...S},w)=>{let{unstable_useTransitions:T}=d.useContext(Na),M=wE(),j=AE(h,{relative:p}),C=u.toLowerCase()==="get"?"get":"post",D=typeof h=="string"&&k4.test(h),H=U=>{if(g&&g(U),U.defaultPrevented)return;U.preventDefault();let te=U.nativeEvent.submitter,ne=(te==null?void 0:te.getAttribute("formmethod"))||u,_=()=>M(te||U.currentTarget,{fetcherKey:a,method:ne,navigate:i,replace:o,state:c,relative:p,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:E});T&&i!==!1?d.startTransition(()=>_()):_()};return d.createElement("form",{ref:w,method:C,action:j,onSubmit:s?g:H,...S,"data-discover":!D&&t==="render"?"true":void 0})});bE.displayName="Form";function vE(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function V4(t){let a=d.useContext(Ui);return ct(a,vE(t)),a}function xE(t,{target:a,replace:i,unstable_mask:s,state:o,preventScrollReset:c,relative:u,viewTransition:h,unstable_defaultShouldRevalidate:g,unstable_useTransitions:p}={}){let b=io(),v=Ua(),E=so(t,{relative:u});return d.useCallback(S=>{if(Y5(S,a)){S.preventDefault();let w=i!==void 0?i:nr(v)===nr(E),T=()=>b(t,{replace:w,unstable_mask:s,state:o,preventScrollReset:c,relative:u,viewTransition:h,unstable_defaultShouldRevalidate:g});p?d.startTransition(()=>T()):T()}},[v,b,E,i,s,o,a,t,c,u,h,g,p])}var EE=0,SE=()=>`__${String(++EE)}__`;function wE(){let{router:t}=V4("useSubmit"),{basename:a}=d.useContext(Na),i=_5(),s=t.fetch,o=t.navigate;return d.useCallback(async(c,u={})=>{let{action:h,method:g,encType:p,formData:b,body:v}=J5(c,a);if(u.navigate===!1){let E=u.fetcherKey||SE();await s(E,i,u.action||h,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:b,body:v,formMethod:u.method||g,formEncType:u.encType||p,flushSync:u.flushSync})}else await o(u.action||h,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:b,body:v,formMethod:u.method||g,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:i,flushSync:u.flushSync,viewTransition:u.viewTransition})},[s,o,a,i])}function AE(t,{relative:a}={}){let{basename:i}=d.useContext(Na),s=d.useContext(Ba);ct(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),c={...so(t||".",{relative:a})},u=Ua();if(t==null){c.search=u.search;let h=new URLSearchParams(c.search),g=h.getAll("index");if(g.some(b=>b==="")){h.delete("index"),g.filter(v=>v).forEach(v=>h.append("index",v));let b=h.toString();c.search=b?`?${b}`:""}}return(!t||t===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:Ta([i,c.pathname])),nr(c)}function ME(t,{relative:a}={}){let i=d.useContext($f);ct(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=V4("useViewTransitionState"),o=so(t,{relative:a});if(!i.isTransitioning)return!1;let c=Ra(i.currentLocation.pathname,s)||i.currentLocation.pathname,u=Ra(i.nextLocation.pathname,s)||i.nextLocation.pathname;return Gc(o.pathname,u)!=null||Gc(o.pathname,c)!=null}var TE=r4();function CE(t){return d.createElement(U5,{flushSync:TE.flushSync,...t})}const RE=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"}))]]),NE=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"}))]]),jE=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"}))]]),_E=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"}))]]),DE=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"}))]]),OE=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"}))]]),LE=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"}))]]),kE=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"}))]]),VE=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"}))]]),HE=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"}))]]),zE=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"}))]]),BE=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"}))]]),UE=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"}))]]),ZE=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"}))]]),PE=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"}))]]),FE=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"}))]]),IE=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"}))]]),GE=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"}))]]),$E=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"}))]]),qE=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"}))]]),KE=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"}))]]),YE=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"}))]]),XE=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"}))]]),QE=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"}))]]),JE=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"}))]]),WE=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"}))]]),e9=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"}))]]),t9=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"}))]]),n9=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"}))]]),a9=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"}))]]),r9=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"}))]]),i9=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"}))]]),s9=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"}))]]),l9=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"}))]]),o9=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"}))]]),c9=d.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),yt=d.forwardRef((t,a)=>{const{alt:i,color:s,size:o,weight:c,mirrored:u,children:h,weights:g,...p}=t,{color:b="currentColor",size:v,weight:E="regular",mirrored:S=!1,...w}=d.useContext(c9);return d.createElement("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:o??v,height:o??v,fill:s??b,viewBox:"0 0 256 256",transform:u||S?"scale(-1, 1)":void 0,...w,...p},!!i&&d.createElement("title",null,i),h,g.get(c??E))});yt.displayName="IconBase";const H4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:RE}));H4.displayName="ArrowClockwiseIcon";const u9=H4,z4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:NE}));z4.displayName="ArrowLeftIcon";const B4=z4,U4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:jE}));U4.displayName="ArrowRightIcon";const d9=U4,Z4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:_E}));Z4.displayName="ArrowSquareOutIcon";const f9=Z4,P4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:DE}));P4.displayName="ArrowUpIcon";const F4=P4,I4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:OE}));I4.displayName="AtomIcon";const h9=I4,G4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:LE}));G4.displayName="CaretDownIcon";const $4=G4,q4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:kE}));q4.displayName="CaretUpIcon";const m9=q4,K4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:VE}));K4.displayName="ChartLineIcon";const p9=K4,Y4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:HE}));Y4.displayName="CheckIcon";const g9=Y4,X4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:zE}));X4.displayName="CheckCircleIcon";const Bi=X4,Q4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:BE}));Q4.displayName="CircleNotchIcon";const Cs=Q4,J4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:UE}));J4.displayName="ClipboardTextIcon";const kc=J4,W4=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:ZE}));W4.displayName="CompassIcon";const y9=W4,ey=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:PE}));ey.displayName="DatabaseIcon";const qc=ey,ty=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:FE}));ty.displayName="DownloadSimpleIcon";const tg=ty,ny=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:IE}));ny.displayName="EyeIcon";const b9=ny,ay=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:GE}));ay.displayName="FileIcon";const v9=ay,ry=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:$E}));ry.displayName="FileCodeIcon";const x9=ry,iy=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:qE}));iy.displayName="FileTextIcon";const sy=iy,ly=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:KE}));ly.displayName="FolderIcon";const ng=ly,oy=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:YE}));oy.displayName="GithubLogoIcon";const E9=oy,cy=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:XE}));cy.displayName="InfoIcon";const S9=cy,uy=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:QE}));uy.displayName="KeyIcon";const w9=uy,dy=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:JE}));dy.displayName="LightningIcon";const A9=dy,fy=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:WE}));fy.displayName="PathIcon";const M9=fy,hy=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:e9}));hy.displayName="PencilLineIcon";const T9=hy,my=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:t9}));my.displayName="PlayIcon";const C9=my,py=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:n9}));py.displayName="SparkleIcon";const of=py,gy=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:a9}));gy.displayName="TrashIcon";const R9=gy,yy=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:r9}));yy.displayName="TreeStructureIcon";const N9=yy,by=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:i9}));by.displayName="UploadSimpleIcon";const j9=by,vy=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:s9}));vy.displayName="UserCircleIcon";const _9=vy,xy=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:l9}));xy.displayName="WarningIcon";const D9=xy,Ey=d.forwardRef((t,a)=>d.createElement(yt,{ref:a,...t,weights:o9}));Ey.displayName="XIcon";const t1=Ey,ag=t=>{let a;const i=new Set,s=(p,b)=>{const v=typeof p=="function"?p(a):p;if(!Object.is(v,a)){const E=a;a=b??(typeof v!="object"||v===null)?v:Object.assign({},a,v),i.forEach(S=>S(a,E))}},o=()=>a,h={setState:s,getState:o,getInitialState:()=>g,subscribe:p=>(i.add(p),()=>i.delete(p))},g=a=t(s,o,h);return h},O9=(t=>t?ag(t):ag),L9=t=>t;function k9(t,a=L9){const i=xs.useSyncExternalStore(t.subscribe,xs.useCallback(()=>a(t.getState()),[t,a]),xs.useCallback(()=>a(t.getInitialState()),[t,a]));return xs.useDebugValue(i),i}const rg=t=>{const a=O9(t),i=s=>k9(a,s);return Object.assign(i,a),i},ir=(t=>t?rg(t):rg);async function sr(t,a){const i=await fetch(t,{headers:{"Content-Type":"application/json"},...a});if(!i.ok)throw new Error(`[persistence] ${(a==null?void 0:a.method)??"GET"} ${t} → ${i.status}`);return i.json()}async function V9(){try{return await sr("/api/data/projects")}catch{return[]}}function Sy(t){sr(`/api/data/projects/${t.slug}`,{method:"PUT",body:JSON.stringify(t)}).catch(()=>{})}function H9(t){sr("/api/data/projects",{method:"POST",body:JSON.stringify(t)}).catch(()=>{})}function wy(t){sr(`/api/data/projects/${t}`,{method:"DELETE"}).catch(()=>{})}function z9(t,a){sr(`/api/data/projects/${t}/conversation`,{method:"PUT",body:JSON.stringify(a)}).catch(()=>{})}function ig(t,a){sr(`/api/data/projects/${t}/artifacts`,{method:"PUT",body:JSON.stringify(a)}).catch(()=>{})}function B9(t,a){sr(`/api/data/projects/${t}/session`,{method:"PUT",body:JSON.stringify(a)}).catch(()=>{})}async function U9(t,a){const i=new FormData;for(const c of a)i.append("files",c);const s=await fetch(`/api/data/projects/${t}/uploads`,{method:"POST",body:i});if(!s.ok)throw new Error(`Upload failed: ${s.status}`);return(await s.json()).uploaded}async function Z9(t,a){const i=await fetch(`/api/data/projects/${t}/export`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({files:a})});if(!i.ok)throw new Error(`Export failed: ${i.status}`);return await i.json()}async function P9(t){try{return(await sr(`/api/kb/${t}/context`)).entries??[]}catch{return[]}}async function F9(){try{const a=await sr("/api/auth");return!a||Object.keys(a).length===0?null:a}catch{return null}}function I9(t){fetch("/api/auth",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).catch(()=>{})}function G9(){fetch("/api/auth",{method:"DELETE"}).catch(()=>{})}async function $9(){try{const t=await sr("/api/data/token-stats");return t||null}catch{return null}}function q9(t){fetch("/api/data/token-stats",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).catch(()=>{})}const Ay="enigma_projects";function K9(){try{const t=localStorage.getItem(Ay);if(!t)return[];const a=JSON.parse(t);return Array.isArray(a)?a:[]}catch{return[]}}function j0(t){try{localStorage.setItem(Ay,JSON.stringify(t))}catch{console.error("Failed to save projects")}}function Y9(t,a){for(const i of a){const s=t.find(o=>o.slug===i.slug);s?JSON.stringify(i)!==JSON.stringify(s)&&Sy(i):H9(i)}for(const i of t)a.find(s=>s.slug===i.slug)||wy(i.slug)}const Bt=ir(t=>({projects:K9(),selectedSlug:null,sidebarCollapsed:!1,contextPanelOpen:!1,contextPanelContent:null,setProjects:a=>{const i=Bt.getState().projects;j0(a),Y9(i,a),t({projects:a})},selectProject:a=>{try{localStorage.setItem("enigma_selected_project",a)}catch{console.error("Failed to save selected project")}t({selectedSlug:a})},clearProject:()=>{try{localStorage.removeItem("enigma_selected_project")}catch{console.error("Failed to clear selected project")}t({selectedSlug:null})},removeProject:a=>t(i=>{const s=i.projects.filter(o=>o.slug!==a);j0(s),wy(a);try{localStorage.getItem("enigma_selected_project")===a&&localStorage.removeItem("enigma_selected_project")}catch{console.error("Failed to clear removed selected project")}return{projects:s,selectedSlug:i.selectedSlug===a?null:i.selectedSlug}}),restoreLastProject:()=>{try{const a=localStorage.getItem("enigma_selected_project");if(a)return t({selectedSlug:a}),a}catch{console.error("Failed to restore selected project")}return null},updateProject:(a,i)=>t(s=>{const o=s.projects.map(u=>u.slug===a?{...u,...i,last_active_at:new Date().toISOString()}:u);j0(o);const c=o.find(u=>u.slug===a);return c&&Sy(c),{projects:o}}),toggleSidebar:()=>t(a=>({sidebarCollapsed:!a.sidebarCollapsed})),openContextPanel:a=>t({contextPanelOpen:!0,contextPanelContent:a}),closeContextPanel:()=>t({contextPanelOpen:!1,contextPanelContent:null})}));function X9(t,a){let i;try{i=t()}catch{return}return{getItem:o=>{var c;const u=g=>g===null?null:JSON.parse(g,void 0),h=(c=i.getItem(o))!=null?c:null;return h instanceof Promise?h.then(u):u(h)},setItem:(o,c)=>i.setItem(o,JSON.stringify(c,void 0)),removeItem:o=>i.removeItem(o)}}const cf=t=>a=>{try{const i=t(a);return i instanceof Promise?i:{then(s){return cf(s)(i)},catch(s){return this}}}catch(i){return{then(s){return this},catch(s){return cf(s)(i)}}}},Q9=(t,a)=>(i,s,o)=>{let c={storage:X9(()=>window.localStorage),partialize:M=>M,version:0,merge:(M,j)=>({...j,...M}),...a},u=!1,h=0;const g=new Set,p=new Set;let b=c.storage;if(!b)return t((...M)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),i(...M)},s,o);const v=()=>{const M=c.partialize({...s()});return b.setItem(c.name,{state:M,version:c.version})},E=o.setState;o.setState=(M,j)=>(E(M,j),v());const S=t((...M)=>(i(...M),v()),s,o);o.getInitialState=()=>S;let w;const T=()=>{var M,j;if(!b)return;const C=++h;u=!1,g.forEach(H=>{var U;return H((U=s())!=null?U:S)});const D=((j=c.onRehydrateStorage)==null?void 0:j.call(c,(M=s())!=null?M:S))||void 0;return cf(b.getItem.bind(b))(c.name).then(H=>{if(H)if(typeof H.version=="number"&&H.version!==c.version){if(c.migrate){const U=c.migrate(H.state,H.version);return U instanceof Promise?U.then(te=>[!0,te]):[!0,U]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,H.state];return[!1,void 0]}).then(H=>{var U;if(C!==h)return;const[te,ne]=H;if(w=c.merge(ne,(U=s())!=null?U:S),i(w,!0),te)return v()}).then(()=>{C===h&&(D==null||D(s(),void 0),w=s(),u=!0,p.forEach(H=>H(w)))}).catch(H=>{C===h&&(D==null||D(void 0,H))})};return o.persist={setOptions:M=>{c={...c,...M},M.storage&&(b=M.storage)},clearStorage:()=>{b==null||b.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>T(),hasHydrated:()=>u,onHydrate:M=>(g.add(M),()=>{g.delete(M)}),onFinishHydration:M=>(p.add(M),()=>{p.delete(M)})},c.skipHydration||T(),w||S},n1=Q9,_0={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_GITHUB_CLIENT_ID:"01ab8ac9400c4e429b23"};function a1(t){var c,u,h,g;const a=typeof import.meta<"u"&&typeof _0=="object"&&_0?_0:void 0,i=(a==null?void 0:a[t])??(a==null?void 0:a[`VITE_${t}`]);if(typeof i=="string"&&i.trim().length>0)return i.trim();const s=globalThis,o=((u=(c=s.process)==null?void 0:c.env)==null?void 0:u[t])??((g=(h=s.process)==null?void 0:h.env)==null?void 0:g[`VITE_${t}`]);return typeof o=="string"?o.trim():""}const J9="vscode/1.99.0",W9="copilot-chat/0.28.0",eS="copilot/1.280.0",tS=a1("COPILOT_EDITOR_VERSION")||J9,nS=a1("COPILOT_CHAT_PLUGIN_VERSION")||W9,sg=a1("COPILOT_AUTH_PLUGIN_VERSION")||eS,aS="vscode-chat",rS="conversation-panel",iS="DesignX/0.1";function uf(t,a={}){const{pluginVersion:i=nS,includeIntegrationId:s=!0,includeOpenAIIntent:o=!0}=a,c={Authorization:t,"User-Agent":iS};return c["Editor-Version"]=tS,i&&(c["Editor-Plugin-Version"]=i),o&&(c["OpenAI-Intent"]=rS),s&&(c["Copilot-Integration-Id"]=aS),c}const sS="read:user user:email",lg="2025-04-01",D0=2;function og(t){return new Promise(a=>window.setTimeout(a,t))}function lS(t){if(!t)return null;const a=Number(t);if(Number.isFinite(a)&&a>0)return Math.round(a*1e3);const i=Date.parse(t);if(Number.isNaN(i))return null;const s=i-Date.now();return s>0?s:null}function oS(t,a,i){let s=null;try{s=i.length>0?JSON.parse(i):null}catch{s=null}const c=(s&&typeof s.message=="string"?s.message:null)??(i.trim()||`HTTP ${t}`),u=s&&typeof s.documentation_url=="string"?s.documentation_url:null;return t===404?{status:t,classification:"endpoint_not_found_or_no_entitlement",requestId:a,docsUrl:u,message:c}:t===401?{status:t,classification:"invalid_or_expired_github_token",requestId:a,docsUrl:u,message:c}:t===403?{status:t,classification:"forbidden_by_policy_or_entitlement",requestId:a,docsUrl:u,message:c}:t===429?{status:t,classification:"rate_limited",requestId:a,docsUrl:u,message:c}:t>=500||t===0?{status:t,classification:"server_or_network_error",requestId:a,docsUrl:u,message:c}:{status:t,classification:"unknown_failure",requestId:a,docsUrl:u,message:c}}function cg(t){const a=t.requestId?` requestId=${t.requestId}`:"",i=t.docsUrl?` docs=${t.docsUrl}`:"";return new Error(`Copilot token exchange failed (${t.status}). ${t.classification}. ${t.message}${a}${i}`)}async function cS(t){const a=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:t,scope:sS})});if(!a.ok)throw new Error(`Device flow init failed: ${a.status}`);return a.json()}function uS(t,a,i){let s=i;return new Promise((o,c)=>{const u=async()=>{const g=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:t,device_code:a,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})})).json();if(g.access_token){o(g.access_token);return}switch(g.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 My(t){const a=crypto.randomUUID(),i=[{auth:`token ${t}`,headers:{...uf(`token ${t}`,{pluginVersion:sg,includeOpenAIIntent:!1}),Accept:"application/json","X-GitHub-Api-Version":lg,"X-Request-Id":a}},{auth:`Bearer ${t}`,headers:{...uf(`Bearer ${t}`,{pluginVersion:sg,includeOpenAIIntent:!1}),Accept:"application/json","X-GitHub-Api-Version":lg,"X-Request-Id":a}}],s=new Set;let o={status:0,classification:"unknown_failure",requestId:null,docsUrl:null,message:"No response received."};for(const c of i){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<=D0;h+=1){let g;try{g=await fetch("/api/github-api/copilot_internal/v2/token",{headers:c.headers})}catch(E){if(o={status:0,classification:"server_or_network_error",requestId:null,docsUrl:null,message:E instanceof Error?E.message:"Network error"},h<D0){await og(700*(h+1));continue}break}if(g.ok)return g.json();const p=await g.text(),b=oS(g.status,g.headers.get("x-github-request-id"),p);if(o=b,(g.status===429||g.status>=500)&&h<D0){const E=lS(g.headers.get("retry-after"));await og(E??700*(h+1));continue}if(g.status!==404)throw cg(b);break}}}throw cg(o)}async function dS(t){const a=await fetch("/api/github-api/user",{headers:{Authorization:`token ${t}`}});if(!a.ok)throw new Error(`GitHub user fetch failed: ${a.status}`);const i=await a.json();return{login:i.login,name:i.name??null,avatar_url:i.avatar_url}}const Ha=ir()(n1((t,a)=>({githubToken:null,copilotToken:null,copilotTokenExpiresAt:null,user:null,setAuth:(i,s,o,c)=>{t({githubToken:i,copilotToken:s,copilotTokenExpiresAt:o,user:c}),I9({githubToken:i,copilotToken:s,copilotTokenExpiresAt:o,user:c})},ensureFreshCopilotToken:async(i=!1)=>{const{githubToken:s,copilotToken:o,copilotTokenExpiresAt:c}=a();if(!s)throw new Error("Not authenticated");const u=Date.now(),h=!!o&&o!==s&&!!c&&c>u+6e4;if(!i&&h)return o;try{const g=await My(s),p=new Date(g.expires_at).getTime();return t({copilotToken:g.token,copilotTokenExpiresAt:p}),g.token}catch{if(o&&o!==s)return o;throw t({copilotToken:null,copilotTokenExpiresAt:null}),new Error("Copilot session token refresh failed. Reconnect Copilot.")}},disconnect:()=>{t({githubToken:null,copilotToken:null,copilotTokenExpiresAt:null,user:null}),G9()}}),{name:"dx-auth"}));async function ug(t=!1){return Ha.getState().ensureFreshCopilotToken(t)}function Ty(t){var a,i,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(a=0;a<o;a++)t[a]&&(i=Ty(t[a]))&&(s&&(s+=" "),s+=i)}else for(i in t)t[i]&&(s&&(s+=" "),s+=i);return s}function fS(){for(var t,a,i=0,s="",o=arguments.length;i<o;i++)(t=arguments[i])&&(a=Ty(t))&&(s&&(s+=" "),s+=a);return s}const r1="-",hS=t=>{const a=pS(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:u=>{const h=u.split(r1);return h[0]===""&&h.length!==1&&h.shift(),Cy(h,a)||mS(u)},getConflictingClassGroupIds:(u,h)=>{const g=i[u]||[];return h&&s[u]?[...g,...s[u]]:g}}},Cy=(t,a)=>{var u;if(t.length===0)return a.classGroupId;const i=t[0],s=a.nextPart.get(i),o=s?Cy(t.slice(1),s):void 0;if(o)return o;if(a.validators.length===0)return;const c=t.join(r1);return(u=a.validators.find(({validator:h})=>h(c)))==null?void 0:u.classGroupId},dg=/^\[(.+)\]$/,mS=t=>{if(dg.test(t)){const a=dg.exec(t)[1],i=a==null?void 0:a.substring(0,a.indexOf(":"));if(i)return"arbitrary.."+i}},pS=t=>{const{theme:a,prefix:i}=t,s={nextPart:new Map,validators:[]};return yS(Object.entries(t.classGroups),i).forEach(([c,u])=>{df(u,s,c,a)}),s},df=(t,a,i,s)=>{t.forEach(o=>{if(typeof o=="string"){const c=o===""?a:fg(a,o);c.classGroupId=i;return}if(typeof o=="function"){if(gS(o)){df(o(s),a,i,s);return}a.validators.push({validator:o,classGroupId:i});return}Object.entries(o).forEach(([c,u])=>{df(u,fg(a,c),i,s)})})},fg=(t,a)=>{let i=t;return a.split(r1).forEach(s=>{i.nextPart.has(s)||i.nextPart.set(s,{nextPart:new Map,validators:[]}),i=i.nextPart.get(s)}),i},gS=t=>t.isThemeGetter,yS=(t,a)=>a?t.map(([i,s])=>{const o=s.map(c=>typeof c=="string"?a+c:typeof c=="object"?Object.fromEntries(Object.entries(c).map(([u,h])=>[a+u,h])):c);return[i,o]}):t,bS=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,i=new Map,s=new Map;const o=(c,u)=>{i.set(c,u),a++,a>t&&(a=0,s=i,i=new Map)};return{get(c){let u=i.get(c);if(u!==void 0)return u;if((u=s.get(c))!==void 0)return o(c,u),u},set(c,u){i.has(c)?i.set(c,u):o(c,u)}}},Ry="!",vS=t=>{const{separator:a,experimentalParseClassName:i}=t,s=a.length===1,o=a[0],c=a.length,u=h=>{const g=[];let p=0,b=0,v;for(let M=0;M<h.length;M++){let j=h[M];if(p===0){if(j===o&&(s||h.slice(M,M+c)===a)){g.push(h.slice(b,M)),b=M+c;continue}if(j==="/"){v=M;continue}}j==="["?p++:j==="]"&&p--}const E=g.length===0?h:h.substring(b),S=E.startsWith(Ry),w=S?E.substring(1):E,T=v&&v>b?v-b:void 0;return{modifiers:g,hasImportantModifier:S,baseClassName:w,maybePostfixModifierPosition:T}};return i?h=>i({className:h,parseClassName:u}):u},xS=t=>{if(t.length<=1)return t;const a=[];let i=[];return t.forEach(s=>{s[0]==="["?(a.push(...i.sort(),s),i=[]):i.push(s)}),a.push(...i.sort()),a},ES=t=>({cache:bS(t.cacheSize),parseClassName:vS(t),...hS(t)}),SS=/\s+/,wS=(t,a)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:o}=a,c=[],u=t.trim().split(SS);let h="";for(let g=u.length-1;g>=0;g-=1){const p=u[g],{modifiers:b,hasImportantModifier:v,baseClassName:E,maybePostfixModifierPosition:S}=i(p);let w=!!S,T=s(w?E.substring(0,S):E);if(!T){if(!w){h=p+(h.length>0?" "+h:h);continue}if(T=s(E),!T){h=p+(h.length>0?" "+h:h);continue}w=!1}const M=xS(b).join(":"),j=v?M+Ry:M,C=j+T;if(c.includes(C))continue;c.push(C);const D=o(T,w);for(let H=0;H<D.length;++H){const U=D[H];c.push(j+U)}h=p+(h.length>0?" "+h:h)}return h};function AS(){let t=0,a,i,s="";for(;t<arguments.length;)(a=arguments[t++])&&(i=Ny(a))&&(s&&(s+=" "),s+=i);return s}const Ny=t=>{if(typeof t=="string")return t;let a,i="";for(let s=0;s<t.length;s++)t[s]&&(a=Ny(t[s]))&&(i&&(i+=" "),i+=a);return i};function hg(t,...a){let i,s,o,c=u;function u(g){const p=a.reduce((b,v)=>v(b),t());return i=ES(p),s=i.cache.get,o=i.cache.set,c=h,h(g)}function h(g){const p=s(g);if(p)return p;const b=wS(g,i);return o(g,b),b}return function(){return c(AS.apply(null,arguments))}}const Ft=t=>{const a=i=>i[t]||[];return a.isThemeGetter=!0,a},jy=/^\[(?:([a-z-]+):)?(.+)\]$/i,MS=/^\d+\/\d+$/,TS=new Set(["px","full","screen"]),CS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,RS=/\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$/,NS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_S=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tr=t=>Ts(t)||TS.has(t)||MS.test(t),ti=t=>_s(t,"length",BS),Ts=t=>!!t&&!Number.isNaN(Number(t)),O0=t=>_s(t,"number",Ts),Rl=t=>!!t&&Number.isInteger(Number(t)),DS=t=>t.endsWith("%")&&Ts(t.slice(0,-1)),it=t=>jy.test(t),ni=t=>CS.test(t),OS=new Set(["length","size","percentage"]),LS=t=>_s(t,OS,_y),kS=t=>_s(t,"position",_y),VS=new Set(["image","url"]),HS=t=>_s(t,VS,ZS),zS=t=>_s(t,"",US),Nl=()=>!0,_s=(t,a,i)=>{const s=jy.exec(t);return s?s[1]?typeof a=="string"?s[1]===a:a.has(s[1]):i(s[2]):!1},BS=t=>RS.test(t)&&!NS.test(t),_y=()=>!1,US=t=>jS.test(t),ZS=t=>_S.test(t),mg=()=>{const t=Ft("colors"),a=Ft("spacing"),i=Ft("blur"),s=Ft("brightness"),o=Ft("borderColor"),c=Ft("borderRadius"),u=Ft("borderSpacing"),h=Ft("borderWidth"),g=Ft("contrast"),p=Ft("grayscale"),b=Ft("hueRotate"),v=Ft("invert"),E=Ft("gap"),S=Ft("gradientColorStops"),w=Ft("gradientColorStopPositions"),T=Ft("inset"),M=Ft("margin"),j=Ft("opacity"),C=Ft("padding"),D=Ft("saturate"),H=Ft("scale"),U=Ft("sepia"),te=Ft("skew"),ne=Ft("space"),_=Ft("translate"),ae=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto",it,a],J=()=>[it,a],ge=()=>["",Tr,ti],he=()=>["auto",Ts,it],xe=()=>["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"],K=()=>["start","end","center","between","around","evenly","stretch"],de=()=>["","0",it],we=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[Ts,it];return{cacheSize:500,separator:":",theme:{colors:[Nl],spacing:[Tr,ti],blur:["none","",ni,it],brightness:R(),borderColor:[t],borderRadius:["none","","full",ni,it],borderSpacing:J(),borderWidth:ge(),contrast:R(),grayscale:de(),hueRotate:R(),invert:de(),gap:J(),gradientColorStops:[t],gradientColorStopPositions:[DS,ti],inset:oe(),margin:oe(),opacity:R(),padding:J(),saturate:R(),scale:R(),sepia:de(),skew:R(),space:J(),translate:J()},classGroups:{aspect:[{aspect:["auto","square","video",it]}],container:["container"],columns:[{columns:[ni]}],"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:[...xe(),it]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:ae()}],"overscroll-x":[{"overscroll-x":ae()}],"overscroll-y":[{"overscroll-y":ae()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rl,it]}],basis:[{basis:oe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",it]}],grow:[{grow:de()}],shrink:[{shrink:de()}],order:[{order:["first","last","none",Rl,it]}],"grid-cols":[{"grid-cols":[Nl]}],"col-start-end":[{col:["auto",{span:["full",Rl,it]},it]}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":[Nl]}],"row-start-end":[{row:["auto",{span:[Rl,it]},it]}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",it]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",it]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"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:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],me:[{me:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-x":[{"space-x":[ne]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",it,a]}],"min-w":[{"min-w":[it,a,"min","max","fit"]}],"max-w":[{"max-w":[it,a,"none","full","min","max","fit","prose",{screen:[ni]},ni]}],h:[{h:[it,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[it,a,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[it,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[it,a,"auto","min","max","fit"]}],"font-size":[{text:["base",ni,ti]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O0]}],"font-family":[{font:[Nl]}],"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",it]}],"line-clamp":[{"line-clamp":["none",Ts,O0]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tr,it]}],"list-image":[{"list-image":["none",it]}],"list-style-type":[{list:["none","disc","decimal",it]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"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",Tr,ti]}],"underline-offset":[{"underline-offset":["auto",Tr,it]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:J()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",it]}],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",it]}],"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:[...xe(),kS]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",LS]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},HS]}],"bg-color":[{bg:[t]}],"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:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...V()]}],"outline-offset":[{"outline-offset":[Tr,it]}],"outline-w":[{outline:[Tr,ti]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[Tr,ti]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ni,zS]}],"shadow-color":[{shadow:[Nl]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[s]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",ni,it]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[v]}],saturate:[{saturate:[D]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"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",it]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",it]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",it]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[H]}],"scale-x":[{"scale-x":[H]}],"scale-y":[{"scale-y":[H]}],rotate:[{rotate:[Rl,it]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",it]}],accent:[{accent:["auto",t]}],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",it]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":J()}],"scroll-mx":[{"scroll-mx":J()}],"scroll-my":[{"scroll-my":J()}],"scroll-ms":[{"scroll-ms":J()}],"scroll-me":[{"scroll-me":J()}],"scroll-mt":[{"scroll-mt":J()}],"scroll-mr":[{"scroll-mr":J()}],"scroll-mb":[{"scroll-mb":J()}],"scroll-ml":[{"scroll-ml":J()}],"scroll-p":[{"scroll-p":J()}],"scroll-px":[{"scroll-px":J()}],"scroll-py":[{"scroll-py":J()}],"scroll-ps":[{"scroll-ps":J()}],"scroll-pe":[{"scroll-pe":J()}],"scroll-pt":[{"scroll-pt":J()}],"scroll-pr":[{"scroll-pr":J()}],"scroll-pb":[{"scroll-pb":J()}],"scroll-pl":[{"scroll-pl":J()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",it]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Tr,ti,O0]}],stroke:[{stroke:[t,"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"]}}},PS=(t,{cacheSize:a,prefix:i,separator:s,experimentalParseClassName:o,extend:c={},override:u={}})=>{Bl(t,"cacheSize",a),Bl(t,"prefix",i),Bl(t,"separator",s),Bl(t,"experimentalParseClassName",o);for(const h in u)FS(t[h],u[h]);for(const h in c)IS(t[h],c[h]);return t},Bl=(t,a,i)=>{i!==void 0&&(t[a]=i)},FS=(t,a)=>{if(a)for(const i in a)Bl(t,i,a[i])},IS=(t,a)=>{if(a)for(const i in a){const s=a[i];s!==void 0&&(t[i]=(t[i]||[]).concat(s))}},GS=(t,...a)=>typeof t=="function"?hg(mg,t,...a):hg(()=>PS(mg(),t),...a),$S=GS({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 er(...t){return $S(fS(t))}const Dy="enigma_artifacts_v1";function qS(){try{const t=localStorage.getItem(Dy);if(!t)return{};const a=JSON.parse(t);return typeof a=="object"&&a!==null?a:{}}catch{return{}}}function L0(t){try{localStorage.setItem(Dy,JSON.stringify(t))}catch{}}const Yl=ir(t=>({byProject:qS(),upsertArtifacts:(a,i)=>{t(s=>{const c=[...s.byProject[a]??[]];for(const h of i){const g=c.findIndex(p=>p.id===h.id);g>=0?c[g]=h:c.push(h)}const u={...s.byProject,[a]:c};return L0(u),ig(a,c),{byProject:u}})},finalizeProjectArtifacts:a=>{t(i=>{const s=i.byProject[a];if(!s)return i;const o={...i.byProject,[a]:s.map(c=>({...c,isStreaming:!1}))};return L0(o),ig(a,o[a]),{byProject:o}})},clearProjectArtifacts:a=>{t(i=>{const{[a]:s,...o}=i.byProject;return L0(o),{byProject:o}})}}));async function KS(t,a,i){const s=await fetch("/api/kb/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectSlug:t,source:i,files:a.map(o=>({id:o.id,name:o.name,size:o.size,type:o.type}))})});if(!s.ok)throw new Error("Failed to start KB processing.");return await s.json()}async function Oy(t){const a=await fetch(`/api/kb/jobs/${t}`);if(!a.ok)throw new Error("Failed to load KB processing status.");return await a.json()}async function k0(t,a){const i=await fetch(`/api/kb/jobs/${t}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!i.ok)throw new Error("Failed to update KB processing status.");return await i.json()}const Ly="enigma_kb_jobs",ff=new Map;function YS(){try{const t=localStorage.getItem(Ly);if(!t)return{};const a=JSON.parse(t);return typeof a=="object"&&a?a:{}}catch{return{}}}function XS(t){try{localStorage.setItem(Ly,JSON.stringify(t))}catch{console.error("Failed to save KB jobs")}}function Kc(t){const a=ff.get(t);a!==void 0&&(window.clearTimeout(a),ff.delete(t))}function Qa(t){return XS(t),t}function hf(t,a){return{projectSlug:t.projectSlug,jobId:t.id,source:t.source,status:t.status,progress:t.progress,stageLabel:t.stageLabel,filesCount:t.fileCount,createdAt:t.createdAt,updatedAt:t.updatedAt,contextRefreshPending:t.status==="applied"?!1:(a==null?void 0:a.contextRefreshPending)??t.status==="ready",autoApplyToContext:(a==null?void 0:a.autoApplyToContext)??!0,error:t.error??(a==null?void 0:a.error)??null}}function mf(t,a=900){Kc(t);const i=window.setTimeout(async()=>{const s=kn.getState().jobsByProject[t];if(s!=null&&s.jobId){try{const o=await Oy(s.jobId);kn.setState(u=>{const h=u.jobsByProject[t];if(!h)return u;const g=hf(o,h);return{jobsByProject:Qa({...u.jobsByProject,[t]:g})}});const c=kn.getState().jobsByProject[t];if(c&&(c.status==="queued"||c.status==="processing")){mf(t);return}}catch{kn.getState().markContextRefreshDeferred(t,"KB status channel was interrupted. Re-run extraction to try again.")}Kc(t)}},a);ff.set(t,i)}const kn=ir((t,a)=>({jobsByProject:YS(),queueKbJob:async(i,s,o,c=!0)=>{if(Kc(i),s.length===0){t(u=>{const h={...u.jobsByProject};return delete h[i],{jobsByProject:Qa(h)}});return}t(u=>{const h=u.jobsByProject[i];return{jobsByProject:Qa({...u.jobsByProject,[i]:{projectSlug:i,jobId:(h==null?void 0:h.jobId)??null,source:o,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 KS(i,s,o);t(h=>({jobsByProject:Qa({...h.jobsByProject,[i]:{...hf(u,h.jobsByProject[i]),autoApplyToContext:c,contextRefreshPending:!0}})})),mf(i)}catch(u){t(h=>({jobsByProject:Qa({...h.jobsByProject,[i]:{projectSlug:i,jobId:null,source:o,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 i=>{const s=a().jobsByProject[i];if(s!=null&&s.jobId&&!(s.status!=="queued"&&s.status!=="processing"))try{const o=await Oy(s.jobId);t(u=>({jobsByProject:Qa({...u.jobsByProject,[i]:hf(o,u.jobsByProject[i])})}));const c=a().jobsByProject[i];c&&(c.status==="queued"||c.status==="processing")&&mf(i)}catch{a().markContextRefreshDeferred(i,"KB status channel was interrupted. Re-run extraction to try again.")}},markContextRefreshStarted:i=>{t(o=>{const c=o.jobsByProject[i];return c?{jobsByProject:Qa({...o.jobsByProject,[i]:{...c,status:"refreshing-context",progress:100,stageLabel:"Applying the prepared KB package to the active project context.",updatedAt:new Date().toISOString(),error:null}})}:o});const s=a().jobsByProject[i];s!=null&&s.jobId&&k0(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:i=>{t(o=>{const c=o.jobsByProject[i];return c?{jobsByProject:Qa({...o.jobsByProject,[i]:{...c,status:"applied",progress:100,stageLabel:"Project context refreshed from the latest KB package.",updatedAt:new Date().toISOString(),contextRefreshPending:!1,error:null}})}:o});const s=a().jobsByProject[i];s!=null&&s.jobId&&k0(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:(i,s)=>{t(c=>{const u=c.jobsByProject[i];return u?{jobsByProject:Qa({...c.jobsByProject,[i]:{...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 o=a().jobsByProject[i];o!=null&&o.jobId&&k0(o.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:i=>{Kc(i),t(s=>{const o={...s.jobsByProject};return delete o[i],{jobsByProject:Qa(o)}})}})),ky="enigma_project_sessions",pg="enigma_current_project";function QS(){try{const t=localStorage.getItem(ky);if(!t)return new Map;const a=JSON.parse(t);return new Map(Object.entries(a))}catch{return new Map}}function gg(t){try{const a=Object.fromEntries(t);localStorage.setItem(ky,JSON.stringify(a))}catch{console.error("Failed to save project sessions to localStorage")}}const Yc=ir((t,a)=>({sessions:QS(),saveProjectSession:(i,s)=>t(o=>{const c=new Map(o.sessions),h={...c.get(i)||{slug:i,lastActiveAt:new Date().toISOString(),currentPhaseNumber:0,messages:[],isStreaming:!1,activeGateKey:null,inputDraft:""},...s,slug:i,lastActiveAt:new Date().toISOString()};return c.set(i,h),gg(c),B9(i,h),{sessions:c}}),getProjectSession:i=>a().sessions.get(i)||null,clearProjectSession:i=>t(s=>{const o=new Map(s.sessions);return o.delete(i),gg(o),{sessions:o}}),setCurrentProject:i=>{try{localStorage.setItem(pg,i)}catch{console.error("Failed to save current project")}},getCurrentProject:()=>{try{return localStorage.getItem(pg)}catch{return null}}})),fu=new Map;function JS(t,a){fu.set(t,a)}function WS(t){return fu.get(t)??null}function e7(t){fu.delete(t)}function t7(t){for(const a of t)fu.delete(a)}const n7={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"},a7={1:"Onboarding",2:"Discover",3:"Ideate",4:"Design",5:"Plan",6:"Deliver",7:"Measure"};function r7({project:t,isActive:a}){const i=io(),s=Bt(S=>S.removeProject),o=Bt(S=>S.clearProject),c=Yl(S=>S.clearProjectArtifacts),u=kn(S=>S.clearProjectJob),h=Yc(S=>S.clearProjectSession),g=n7[t.current_phase]??"bg-border",p=a7[t.current_phase]??`Phase ${t.current_phase}`,b=t.status==="onboarding";function v(){i(b?`/setup/${t.slug}`:`/project/${t.slug}`)}function E(S){if(S.stopPropagation(),S.preventDefault(),!!window.confirm(`Delete "${t.name}"?`)){try{localStorage.removeItem(`enigma_stream_${t.slug}`)}catch{}t7(t.kb_files.map(w=>w.id)),c(t.slug),u(t.slug),h(t.slug),s(t.slug),a&&(o(),i("/"))}}return y.jsxs("div",{className:"group relative",children:[y.jsxs("button",{onClick:v,"aria-current":a?"page":void 0,"aria-label":`${t.name}, ${p} phase${t.status==="gate-pending"?", gate review pending":""}`,className:er("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",a?"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:[y.jsx("span",{className:er("w-2 h-2 rounded-full flex-shrink-0",g),"aria-hidden":"true"}),y.jsxs("span",{className:"flex-1 min-w-0",children:[y.jsx("span",{className:"block text-button-small font-medium truncate",children:t.name}),y.jsx("span",{className:"block text-small text-text-tertiary truncate",children:p})]}),t.status==="gate-pending"&&y.jsx("span",{className:"flex-shrink-0 w-1.5 h-1.5 rounded-full bg-lemon-500","aria-hidden":"true",title:"Gate review pending"})]}),y.jsx("button",{type:"button",onClick:E,"aria-label":`Delete ${t.name}`,className:er("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:y.jsx(R9,{size:13,"aria-hidden":"true"})})]})}function i7(){const t=Bt(g=>g.projects),a=Bt(g=>g.clearProject),{pathname:i}=Ua(),s=io(),o=Ha(g=>g.user),c=Ha(g=>g.disconnect),u=i.startsWith("/project/")||i.startsWith("/setup/")?i.split("/")[2]??null:null;function h(){sessionStorage.setItem("enigma_skip_restore_once","true"),a(),s("/setup")}return y.jsxs("nav",{"aria-label":"Projects navigation",className:"w-[260px] flex-shrink-0 flex flex-col h-full border-r border-border bg-canvas",children:[y.jsx("div",{className:"h-14 flex items-center px-4 border-b border-border",children:y.jsx(e1,{to:"/",className:`text-feature-title font-features-display text-text-primary font-semibold
|
|
62
|
+
tracking-tight hover:opacity-80 transition-opacity focus-visible:outline-none
|
|
63
|
+
focus-visible:ring-2 focus-visible:ring-text-primary rounded-sharp`,"aria-label":"DesignX — go to home",children:"DesignX"})}),y.jsx("div",{className:"px-3 pt-3",children:y.jsxs("button",{type:"button",onClick:h,className:`flex items-center gap-2 w-full px-3 py-2.5 rounded-card
|
|
64
|
+
bg-card border border-border shadow-clay
|
|
65
|
+
text-button-small font-medium text-text-primary
|
|
66
|
+
hover:-translate-y-0.5 hover:shadow-hover-subtle
|
|
67
|
+
transition-all duration-100
|
|
68
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary`,"aria-label":"Start a new project",children:[y.jsx(T9,{size:14,weight:"bold","aria-hidden":"true"}),"New Project"]})}),y.jsx("hr",{className:"mx-3 mt-3 border-border","aria-hidden":"true"}),y.jsx("div",{className:"flex-1 overflow-y-auto py-2 px-2",children:t.length===0?y.jsx("p",{className:"px-3 py-2 text-small text-text-tertiary",role:"status",children:"No projects yet"}):y.jsx("ul",{role:"list",className:"space-y-0.5",children:t.map(g=>y.jsx("li",{role:"listitem",children:y.jsx(r7,{project:g,isActive:g.slug===u})},g.id))})}),o&&y.jsx("div",{className:"p-3",children:y.jsxs("div",{className:"flex items-center gap-2.5 px-2 py-1.5 rounded-card",children:[y.jsx("img",{src:o.avatar_url,alt:`${o.login}'s avatar`,className:"w-5 h-5 rounded-full flex-shrink-0"}),y.jsxs("span",{className:"text-caption text-text-secondary truncate flex-1",children:["@",o.login]}),y.jsx("button",{onClick:c,"aria-label":"Disconnect GitHub Copilot",className:`text-small text-text-tertiary hover:text-pomegranate-400 transition-colors
|
|
69
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary rounded-sharp`,children:"Disconnect"})]})})]})}const s7="modulepreload",l7=function(t){return"/"+t},yg={},Xc=function(a,i,s){let o=Promise.resolve();if(i&&i.length>0){let u=function(p){return Promise.all(p.map(b=>Promise.resolve(b).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),g=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));o=u(i.map(p=>{if(p=l7(p),p in yg)return;yg[p]=!0;const b=p.endsWith(".css"),v=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const E=document.createElement("link");if(E.rel=b?"stylesheet":s7,b||(E.as="script"),E.crossOrigin="",E.href=p,g&&E.setAttribute("nonce",g),document.head.appendChild(E),b)return new Promise((S,w)=>{E.addEventListener("load",S),E.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(u){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=u,window.dispatchEvent(h),!h.defaultPrevented)throw u}return o.then(u=>{for(const h of u||[])h.status==="rejected"&&c(h.reason);return a().catch(c)})},i1=d.createContext({});function s1(t){const a=d.useRef(null);return a.current===null&&(a.current=t()),a.current}const o7=typeof window<"u",Vy=o7?d.useLayoutEffect:d.useEffect,hu=d.createContext(null);function l1(t,a){t.indexOf(a)===-1&&t.push(a)}function Qc(t,a){const i=t.indexOf(a);i>-1&&t.splice(i,1)}const ar=(t,a,i)=>i>a?a:i<t?t:i;let o1=()=>{};const ci={},Hy=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function zy(t){return typeof t=="object"&&t!==null}const By=t=>/^0[^.\s]+$/u.test(t);function Uy(t){let a;return()=>(a===void 0&&(a=t()),a)}const Ca=t=>t,c7=(t,a)=>i=>a(t(i)),lo=(...t)=>t.reduce(c7),Xl=(t,a,i)=>{const s=a-t;return s===0?1:(i-t)/s};class c1{constructor(){this.subscriptions=[]}add(a){return l1(this.subscriptions,a),()=>Qc(this.subscriptions,a)}notify(a,i,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](a,i,s);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(a,i,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ca=t=>t*1e3,Ma=t=>t/1e3;function Zy(t,a){return a?t*(1e3/a):0}const Py=(t,a,i)=>(((1-3*i+3*a)*t+(3*i-6*a))*t+3*a)*t,u7=1e-7,d7=12;function f7(t,a,i,s,o){let c,u,h=0;do u=a+(i-a)/2,c=Py(u,s,o)-t,c>0?i=u:a=u;while(Math.abs(c)>u7&&++h<d7);return u}function oo(t,a,i,s){if(t===a&&i===s)return Ca;const o=c=>f7(c,0,1,t,i);return c=>c===0||c===1?c:Py(o(c),a,s)}const Fy=t=>a=>a<=.5?t(2*a)/2:(2-t(2*(1-a)))/2,Iy=t=>a=>1-t(1-a),Gy=oo(.33,1.53,.69,.99),u1=Iy(Gy),$y=Fy(u1),qy=t=>t>=1?1:(t*=2)<1?.5*u1(t):.5*(2-Math.pow(2,-10*(t-1))),d1=t=>1-Math.sin(Math.acos(t)),Ky=Iy(d1),Yy=Fy(d1),h7=oo(.42,0,1,1),m7=oo(0,0,.58,1),Xy=oo(.42,0,.58,1),p7=t=>Array.isArray(t)&&typeof t[0]!="number",Qy=t=>Array.isArray(t)&&typeof t[0]=="number",g7={linear:Ca,easeIn:h7,easeInOut:Xy,easeOut:m7,circIn:d1,circInOut:Yy,circOut:Ky,backIn:u1,backInOut:$y,backOut:Gy,anticipate:qy},y7=t=>typeof t=="string",bg=t=>{if(Qy(t)){o1(t.length===4);const[a,i,s,o]=t;return oo(a,i,s,o)}else if(y7(t))return g7[t];return t},Ac=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function b7(t,a){let i=new Set,s=new Set,o=!1,c=!1;const u=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function g(b){u.has(b)&&(p.schedule(b),t()),b(h)}const p={schedule:(b,v=!1,E=!1)=>{const w=E&&o?i:s;return v&&u.add(b),w.add(b),b},cancel:b=>{s.delete(b),u.delete(b)},process:b=>{if(h=b,o){c=!0;return}o=!0;const v=i;i=s,s=v,i.forEach(g),i.clear(),o=!1,c&&(c=!1,p.process(b))}};return p}const v7=40;function Jy(t,a){let i=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>i=!0,u=Ac.reduce((D,H)=>(D[H]=b7(c),D),{}),{setup:h,read:g,resolveKeyframes:p,preUpdate:b,update:v,preRender:E,render:S,postRender:w}=u,T=()=>{const D=ci.useManualTiming,H=D?o.timestamp:performance.now();i=!1,D||(o.delta=s?1e3/60:Math.max(Math.min(H-o.timestamp,v7),1)),o.timestamp=H,o.isProcessing=!0,h.process(o),g.process(o),p.process(o),b.process(o),v.process(o),E.process(o),S.process(o),w.process(o),o.isProcessing=!1,i&&a&&(s=!1,t(T))},M=()=>{i=!0,s=!0,o.isProcessing||t(T)};return{schedule:Ac.reduce((D,H)=>{const U=u[H];return D[H]=(te,ne=!1,_=!1)=>(i||M(),U.schedule(te,ne,_)),D},{}),cancel:D=>{for(let H=0;H<Ac.length;H++)u[Ac[H]].cancel(D)},state:o,steps:u}}const{schedule:zt,cancel:ui,state:Rn,steps:V0}=Jy(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ca,!0);let Vc;function x7(){Vc=void 0}const Un={now:()=>(Vc===void 0&&Un.set(Rn.isProcessing||ci.useManualTiming?Rn.timestamp:performance.now()),Vc),set:t=>{Vc=t,queueMicrotask(x7)}},Wy=t=>a=>typeof a=="string"&&a.startsWith(t),e6=Wy("--"),E7=Wy("var(--"),f1=t=>E7(t)?S7.test(t.split("/*")[0].trim()):!1,S7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function vg(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Ds={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ql={...Ds,transform:t=>ar(0,1,t)},Mc={...Ds,default:1},Pl=t=>Math.round(t*1e5)/1e5,h1=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function w7(t){return t==null}const A7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,m1=(t,a)=>i=>!!(typeof i=="string"&&A7.test(i)&&i.startsWith(t)||a&&!w7(i)&&Object.prototype.hasOwnProperty.call(i,a)),t6=(t,a,i)=>s=>{if(typeof s!="string")return s;const[o,c,u,h]=s.match(h1);return{[t]:parseFloat(o),[a]:parseFloat(c),[i]:parseFloat(u),alpha:h!==void 0?parseFloat(h):1}},M7=t=>ar(0,255,t),H0={...Ds,transform:t=>Math.round(M7(t))},Li={test:m1("rgb","red"),parse:t6("red","green","blue"),transform:({red:t,green:a,blue:i,alpha:s=1})=>"rgba("+H0.transform(t)+", "+H0.transform(a)+", "+H0.transform(i)+", "+Pl(Ql.transform(s))+")"};function T7(t){let a="",i="",s="",o="";return t.length>5?(a=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),o=t.substring(7,9)):(a=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),o=t.substring(4,5),a+=a,i+=i,s+=s,o+=o),{red:parseInt(a,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const pf={test:m1("#"),parse:T7,transform:Li.transform},co=t=>({test:a=>typeof a=="string"&&a.endsWith(t)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${t}`}),ai=co("deg"),tr=co("%"),He=co("px"),C7=co("vh"),R7=co("vw"),xg={...tr,parse:t=>tr.parse(t)/100,transform:t=>tr.transform(t*100)},Ss={test:m1("hsl","hue"),parse:t6("hue","saturation","lightness"),transform:({hue:t,saturation:a,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+tr.transform(Pl(a))+", "+tr.transform(Pl(i))+", "+Pl(Ql.transform(s))+")"},pn={test:t=>Li.test(t)||pf.test(t)||Ss.test(t),parse:t=>Li.test(t)?Li.parse(t):Ss.test(t)?Ss.parse(t):pf.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Li.transform(t):Ss.transform(t),getAnimatableNone:t=>{const a=pn.parse(t);return a.alpha=0,pn.transform(a)}},N7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function j7(t){var a,i;return isNaN(t)&&typeof t=="string"&&(((a=t.match(h1))==null?void 0:a.length)||0)+(((i=t.match(N7))==null?void 0:i.length)||0)>0}const n6="number",a6="color",_7="var",D7="var(",Eg="${}",O7=/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 Rs(t){const a=t.toString(),i=[],s={color:[],number:[],var:[]},o=[];let c=0;const h=a.replace(O7,g=>(pn.test(g)?(s.color.push(c),o.push(a6),i.push(pn.parse(g))):g.startsWith(D7)?(s.var.push(c),o.push(_7),i.push(g)):(s.number.push(c),o.push(n6),i.push(parseFloat(g))),++c,Eg)).split(Eg);return{values:i,split:h,indexes:s,types:o}}function L7(t){return Rs(t).values}function r6({split:t,types:a}){const i=t.length;return s=>{let o="";for(let c=0;c<i;c++)if(o+=t[c],s[c]!==void 0){const u=a[c];u===n6?o+=Pl(s[c]):u===a6?o+=pn.transform(s[c]):o+=s[c]}return o}}function k7(t){return r6(Rs(t))}const V7=t=>typeof t=="number"?0:pn.test(t)?pn.getAnimatableNone(t):t,H7=(t,a)=>typeof t=="number"?a!=null&&a.trim().endsWith("/")?t:0:V7(t);function z7(t){const a=Rs(t);return r6(a)(a.values.map((s,o)=>H7(s,a.split[o])))}const za={test:j7,parse:L7,createTransformer:k7,getAnimatableNone:z7};function z0(t,a,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(a-t)*6*i:i<1/2?a:i<2/3?t+(a-t)*(2/3-i)*6:t}function B7({hue:t,saturation:a,lightness:i,alpha:s}){t/=360,a/=100,i/=100;let o=0,c=0,u=0;if(!a)o=c=u=i;else{const h=i<.5?i*(1+a):i+a-i*a,g=2*i-h;o=z0(g,h,t+1/3),c=z0(g,h,t),u=z0(g,h,t-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:s}}function Jc(t,a){return i=>i>0?a:t}const It=(t,a,i)=>t+(a-t)*i,B0=(t,a,i)=>{const s=t*t,o=i*(a*a-s)+s;return o<0?0:Math.sqrt(o)},U7=[pf,Li,Ss],Z7=t=>U7.find(a=>a.test(t));function Sg(t){const a=Z7(t);if(!a)return!1;let i=a.parse(t);return a===Ss&&(i=B7(i)),i}const wg=(t,a)=>{const i=Sg(t),s=Sg(a);if(!i||!s)return Jc(t,a);const o={...i};return c=>(o.red=B0(i.red,s.red,c),o.green=B0(i.green,s.green,c),o.blue=B0(i.blue,s.blue,c),o.alpha=It(i.alpha,s.alpha,c),Li.transform(o))},gf=new Set(["none","hidden"]);function P7(t,a){return gf.has(t)?i=>i<=0?t:a:i=>i>=1?a:t}function F7(t,a){return i=>It(t,a,i)}function p1(t){return typeof t=="number"?F7:typeof t=="string"?f1(t)?Jc:pn.test(t)?wg:$7:Array.isArray(t)?i6:typeof t=="object"?pn.test(t)?wg:I7:Jc}function i6(t,a){const i=[...t],s=i.length,o=t.map((c,u)=>p1(c)(c,a[u]));return c=>{for(let u=0;u<s;u++)i[u]=o[u](c);return i}}function I7(t,a){const i={...t,...a},s={};for(const o in i)t[o]!==void 0&&a[o]!==void 0&&(s[o]=p1(t[o])(t[o],a[o]));return o=>{for(const c in s)i[c]=s[c](o);return i}}function G7(t,a){const i=[],s={color:0,var:0,number:0};for(let o=0;o<a.values.length;o++){const c=a.types[o],u=t.indexes[c][s[c]],h=t.values[u]??0;i[o]=h,s[c]++}return i}const $7=(t,a)=>{const i=za.createTransformer(a),s=Rs(t),o=Rs(a);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?gf.has(t)&&!o.values.length||gf.has(a)&&!s.values.length?P7(t,a):lo(i6(G7(s,o),o.values),i):Jc(t,a)};function s6(t,a,i){return typeof t=="number"&&typeof a=="number"&&typeof i=="number"?It(t,a,i):p1(t)(t,a)}const q7=t=>{const a=({timestamp:i})=>t(i);return{start:(i=!0)=>zt.update(a,i),stop:()=>ui(a),now:()=>Rn.isProcessing?Rn.timestamp:Un.now()}},l6=(t,a,i=10)=>{let s="";const o=Math.max(Math.round(a/i),2);for(let c=0;c<o;c++)s+=Math.round(t(c/(o-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Wc=2e4;function g1(t){let a=0;const i=50;let s=t.next(a);for(;!s.done&&a<Wc;)a+=i,s=t.next(a);return a>=Wc?1/0:a}function K7(t,a=100,i){const s=i({...t,keyframes:[0,a]}),o=Math.min(g1(s),Wc);return{type:"keyframes",ease:c=>s.next(o*c).value/a,duration:Ma(o)}}const sn={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 yf(t,a){return t*Math.sqrt(1-a*a)}const Y7=12;function X7(t,a,i){let s=i;for(let o=1;o<Y7;o++)s=s-t(s)/a(s);return s}const U0=.001;function Q7({duration:t=sn.duration,bounce:a=sn.bounce,velocity:i=sn.velocity,mass:s=sn.mass}){let o,c,u=1-a;u=ar(sn.minDamping,sn.maxDamping,u),t=ar(sn.minDuration,sn.maxDuration,Ma(t)),u<1?(o=p=>{const b=p*u,v=b*t,E=b-i,S=yf(p,u),w=Math.exp(-v);return U0-E/S*w},c=p=>{const v=p*u*t,E=v*i+i,S=Math.pow(u,2)*Math.pow(p,2)*t,w=Math.exp(-v),T=yf(Math.pow(p,2),u);return(-o(p)+U0>0?-1:1)*((E-S)*w)/T}):(o=p=>{const b=Math.exp(-p*t),v=(p-i)*t+1;return-U0+b*v},c=p=>{const b=Math.exp(-p*t),v=(i-p)*(t*t);return b*v});const h=5/t,g=X7(o,c,h);if(t=ca(t),isNaN(g))return{stiffness:sn.stiffness,damping:sn.damping,duration:t};{const p=Math.pow(g,2)*s;return{stiffness:p,damping:u*2*Math.sqrt(s*p),duration:t}}}const J7=["duration","bounce"],W7=["stiffness","damping","mass"];function Ag(t,a){return a.some(i=>t[i]!==void 0)}function ew(t){let a={velocity:sn.velocity,stiffness:sn.stiffness,damping:sn.damping,mass:sn.mass,isResolvedFromDuration:!1,...t};if(!Ag(t,W7)&&Ag(t,J7))if(a.velocity=0,t.visualDuration){const i=t.visualDuration,s=2*Math.PI/(i*1.2),o=s*s,c=2*ar(.05,1,1-(t.bounce||0))*Math.sqrt(o);a={...a,mass:sn.mass,stiffness:o,damping:c}}else{const i=Q7({...t,velocity:0});a={...a,...i,mass:sn.mass},a.isResolvedFromDuration=!0}return a}function eu(t=sn.visualDuration,a=sn.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:a}:t;let{restSpeed:s,restDelta:o}=i;const c=i.keyframes[0],u=i.keyframes[i.keyframes.length-1],h={done:!1,value:c},{stiffness:g,damping:p,mass:b,duration:v,velocity:E,isResolvedFromDuration:S}=ew({...i,velocity:-Ma(i.velocity||0)}),w=E||0,T=p/(2*Math.sqrt(g*b)),M=u-c,j=Ma(Math.sqrt(g/b)),C=Math.abs(M)<5;s||(s=C?sn.restSpeed.granular:sn.restSpeed.default),o||(o=C?sn.restDelta.granular:sn.restDelta.default);let D,H,U,te,ne,_;if(T<1)U=yf(j,T),te=(w+T*j*M)/U,D=ie=>{const oe=Math.exp(-T*j*ie);return u-oe*(te*Math.sin(U*ie)+M*Math.cos(U*ie))},ne=T*j*te+M*U,_=T*j*M-te*U,H=ie=>Math.exp(-T*j*ie)*(ne*Math.sin(U*ie)+_*Math.cos(U*ie));else if(T===1){D=oe=>u-Math.exp(-j*oe)*(M+(w+j*M)*oe);const ie=w+j*M;H=oe=>Math.exp(-j*oe)*(j*ie*oe-w)}else{const ie=j*Math.sqrt(T*T-1);D=he=>{const xe=Math.exp(-T*j*he),V=Math.min(ie*he,300);return u-xe*((w+T*j*M)*Math.sinh(V)+ie*M*Math.cosh(V))/ie};const oe=(w+T*j*M)/ie,J=T*j*oe-M*ie,ge=T*j*M-oe*ie;H=he=>{const xe=Math.exp(-T*j*he),V=Math.min(ie*he,300);return xe*(J*Math.sinh(V)+ge*Math.cosh(V))}}const ae={calculatedDuration:S&&v||null,velocity:ie=>ca(H(ie)),next:ie=>{if(!S&&T<1){const J=Math.exp(-T*j*ie),ge=Math.sin(U*ie),he=Math.cos(U*ie),xe=u-J*(te*ge+M*he),V=ca(J*(ne*ge+_*he));return h.done=Math.abs(V)<=s&&Math.abs(u-xe)<=o,h.value=h.done?u:xe,h}const oe=D(ie);if(S)h.done=ie>=v;else{const J=ca(H(ie));h.done=Math.abs(J)<=s&&Math.abs(u-oe)<=o}return h.value=h.done?u:oe,h},toString:()=>{const ie=Math.min(g1(ae),Wc),oe=l6(J=>ae.next(ie*J).value,ie,30);return ie+"ms "+oe},toTransition:()=>{}};return ae}eu.applyToOptions=t=>{const a=K7(t,100,eu);return t.ease=a.ease,t.duration=ca(a.duration),t.type="keyframes",t};const tw=5;function o6(t,a,i){const s=Math.max(a-tw,0);return Zy(i-t(s),a-s)}function bf({keyframes:t,velocity:a=0,power:i=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:u,min:h,max:g,restDelta:p=.5,restSpeed:b}){const v=t[0],E={done:!1,value:v},S=_=>h!==void 0&&_<h||g!==void 0&&_>g,w=_=>h===void 0?g:g===void 0||Math.abs(h-_)<Math.abs(g-_)?h:g;let T=i*a;const M=v+T,j=u===void 0?M:u(M);j!==M&&(T=j-v);const C=_=>-T*Math.exp(-_/s),D=_=>j+C(_),H=_=>{const ae=C(_),ie=D(_);E.done=Math.abs(ae)<=p,E.value=E.done?j:ie};let U,te;const ne=_=>{S(E.value)&&(U=_,te=eu({keyframes:[E.value,w(E.value)],velocity:o6(D,_,E.value),damping:o,stiffness:c,restDelta:p,restSpeed:b}))};return ne(0),{calculatedDuration:null,next:_=>{let ae=!1;return!te&&U===void 0&&(ae=!0,H(_),ne(_)),U!==void 0&&_>=U?te.next(_-U):(!ae&&H(_),E)}}}function nw(t,a,i){const s=[],o=i||ci.mix||s6,c=t.length-1;for(let u=0;u<c;u++){let h=o(t[u],t[u+1]);if(a){const g=Array.isArray(a)?a[u]||Ca:a;h=lo(g,h)}s.push(h)}return s}function aw(t,a,{clamp:i=!0,ease:s,mixer:o}={}){const c=t.length;if(o1(c===a.length),c===1)return()=>a[0];if(c===2&&a[0]===a[1])return()=>a[1];const u=t[0]===t[1];t[0]>t[c-1]&&(t=[...t].reverse(),a=[...a].reverse());const h=nw(a,s,o),g=h.length,p=b=>{if(u&&b<t[0])return a[0];let v=0;if(g>1)for(;v<t.length-2&&!(b<t[v+1]);v++);const E=Xl(t[v],t[v+1],b);return h[v](E)};return i?b=>p(ar(t[0],t[c-1],b)):p}function rw(t,a){const i=t[t.length-1];for(let s=1;s<=a;s++){const o=Xl(0,a,s);t.push(It(i,1,o))}}function iw(t){const a=[0];return rw(a,t.length-1),a}function sw(t,a){return t.map(i=>i*a)}function lw(t,a){return t.map(()=>a||Xy).splice(0,t.length-1)}function Fl({duration:t=300,keyframes:a,times:i,ease:s="easeInOut"}){const o=p7(s)?s.map(bg):bg(s),c={done:!1,value:a[0]},u=sw(i&&i.length===a.length?i:iw(a),t),h=aw(u,a,{ease:Array.isArray(o)?o:lw(a,o)});return{calculatedDuration:t,next:g=>(c.value=h(g),c.done=g>=t,c)}}const ow=t=>t!==null;function mu(t,{repeat:a,repeatType:i="loop"},s,o=1){const c=t.filter(ow),h=o<0||a&&i!=="loop"&&a%2===1?0:c.length-1;return!h||s===void 0?c[h]:s}const cw={decay:bf,inertia:bf,tween:Fl,keyframes:Fl,spring:eu};function c6(t){typeof t.type=="string"&&(t.type=cw[t.type])}class y1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,i){return this.finished.then(a,i)}}const uw=t=>t/100;class tu extends y1{constructor(a){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,o;const{motionValue:i}=this.options;i&&i.updatedAt!==Un.now()&&this.tick(Un.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(s=this.options).onStop)==null||o.call(s))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;c6(a);const{type:i=Fl,repeat:s=0,repeatDelay:o=0,repeatType:c,velocity:u=0}=a;let{keyframes:h}=a;const g=i||Fl;g!==Fl&&typeof h[0]!="number"&&(this.mixKeyframes=lo(uw,s6(h[0],h[1])),h=[0,100]);const p=g({...a,keyframes:h});c==="mirror"&&(this.mirroredGenerator=g({...a,keyframes:[...h].reverse(),velocity:-u})),p.calculatedDuration===null&&(p.calculatedDuration=g1(p));const{calculatedDuration:b}=p;this.calculatedDuration=b,this.resolvedDuration=b+o,this.totalDuration=this.resolvedDuration*(s+1)-o,this.generator=p}updateTime(a){const i=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(a,i=!1){const{generator:s,totalDuration:o,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:h,calculatedDuration:g}=this;if(this.startTime===null)return s.next(0);const{delay:p=0,keyframes:b,repeat:v,repeatType:E,repeatDelay:S,type:w,onUpdate:T,finalKeyframe:M}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-o/this.speed,this.startTime)),i?this.currentTime=a:this.updateTime(a);const j=this.currentTime-p*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?j<0:j>o;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let D=this.currentTime,H=s;if(v){const _=Math.min(this.currentTime,o)/h;let ae=Math.floor(_),ie=_%1;!ie&&_>=1&&(ie=1),ie===1&&ae--,ae=Math.min(ae,v+1),!!(ae%2)&&(E==="reverse"?(ie=1-ie,S&&(ie-=S/h)):E==="mirror"&&(H=u)),D=ar(0,1,ie)*h}let U;C?(this.delayState.value=b[0],U=this.delayState):U=H.next(D),c&&!C&&(U.value=c(U.value));let{done:te}=U;!C&&g!==null&&(te=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const ne=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&te);return ne&&w!==bf&&(U.value=mu(b,this.options,M,this.speed)),T&&T(U.value),ne&&this.finish(),U}then(a,i){return this.finished.then(a,i)}get duration(){return Ma(this.calculatedDuration)}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ma(a)}get time(){return Ma(this.currentTime)}set time(a){a=ca(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=a,this.tick(a))}getGeneratorVelocity(){const a=this.currentTime;if(a<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(a);const i=this.generator.next(a).value;return o6(s=>this.generator.next(s).value,a,i)}get speed(){return this.playbackSpeed}set speed(a){const i=this.playbackSpeed!==a;i&&this.driver&&this.updateTime(Un.now()),this.playbackSpeed=a,i&&this.driver&&(this.time=Ma(this.currentTime))}play(){var o,c;if(this.isStopped)return;const{driver:a=q7,startTime:i}=this.options;this.driver||(this.driver=a(u=>this.tick(u))),(c=(o=this.options).onPlay)==null||c.call(o);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=i??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(Un.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(a=this.options).onComplete)==null||i.call(a)}cancel(){var a,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(a=this.options).onCancel)==null||i.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),a.observe(this)}}function dw(t){for(let a=1;a<t.length;a++)t[a]??(t[a]=t[a-1])}const ki=t=>t*180/Math.PI,vf=t=>{const a=ki(Math.atan2(t[1],t[0]));return xf(a)},fw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:vf,rotateZ:vf,skewX:t=>ki(Math.atan(t[1])),skewY:t=>ki(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},xf=t=>(t=t%360,t<0&&(t+=360),t),Mg=vf,Tg=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Cg=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),hw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Tg,scaleY:Cg,scale:t=>(Tg(t)+Cg(t))/2,rotateX:t=>xf(ki(Math.atan2(t[6],t[5]))),rotateY:t=>xf(ki(Math.atan2(-t[2],t[0]))),rotateZ:Mg,rotate:Mg,skewX:t=>ki(Math.atan(t[4])),skewY:t=>ki(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ef(t){return t.includes("scale")?1:0}function Sf(t,a){if(!t||t==="none")return Ef(a);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,o;if(i)s=hw,o=i;else{const h=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=fw,o=h}if(!o)return Ef(a);const c=s[a],u=o[1].split(",").map(pw);return typeof c=="function"?c(u):u[c]}const mw=(t,a)=>{const{transform:i="none"}=getComputedStyle(t);return Sf(i,a)};function pw(t){return parseFloat(t.trim())}const Os=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ls=new Set(Os),Rg=t=>t===Ds||t===He,gw=new Set(["x","y","z"]),yw=Os.filter(t=>!gw.has(t));function bw(t){const a=[];return yw.forEach(i=>{const s=t.getValue(i);s!==void 0&&(a.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),a}const oi={width:({x:t},{paddingLeft:a="0",paddingRight:i="0",boxSizing:s})=>{const o=t.max-t.min;return s==="border-box"?o:o-parseFloat(a)-parseFloat(i)},height:({y:t},{paddingTop:a="0",paddingBottom:i="0",boxSizing:s})=>{const o=t.max-t.min;return s==="border-box"?o:o-parseFloat(a)-parseFloat(i)},top:(t,{top:a})=>parseFloat(a),left:(t,{left:a})=>parseFloat(a),bottom:({y:t},{top:a})=>parseFloat(a)+(t.max-t.min),right:({x:t},{left:a})=>parseFloat(a)+(t.max-t.min),x:(t,{transform:a})=>Sf(a,"x"),y:(t,{transform:a})=>Sf(a,"y")};oi.translateX=oi.x;oi.translateY=oi.y;const Hi=new Set;let wf=!1,Af=!1,Mf=!1;function u6(){if(Af){const t=Array.from(Hi).filter(s=>s.needsMeasurement),a=new Set(t.map(s=>s.element)),i=new Map;a.forEach(s=>{const o=bw(s);o.length&&(i.set(s,o),s.render())}),t.forEach(s=>s.measureInitialState()),a.forEach(s=>{s.render();const o=i.get(s);o&&o.forEach(([c,u])=>{var h;(h=s.getValue(c))==null||h.set(u)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Af=!1,wf=!1,Hi.forEach(t=>t.complete(Mf)),Hi.clear()}function d6(){Hi.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Af=!0)})}function vw(){Mf=!0,d6(),u6(),Mf=!1}class b1{constructor(a,i,s,o,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=i,this.name=s,this.motionValue=o,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Hi.add(this),wf||(wf=!0,zt.read(d6),zt.resolveKeyframes(u6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:i,element:s,motionValue:o}=this;if(a[0]===null){const c=o==null?void 0:o.get(),u=a[a.length-1];if(c!==void 0)a[0]=c;else if(s&&i){const h=s.readValue(i,u);h!=null&&(a[0]=h)}a[0]===void 0&&(a[0]=u),o&&c===void 0&&o.set(a[0])}dw(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),Hi.delete(this)}cancel(){this.state==="scheduled"&&(Hi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const xw=t=>t.startsWith("--");function f6(t,a,i){xw(a)?t.style.setProperty(a,i):t.style[a]=i}const Ew={};function h6(t,a){const i=Uy(t);return()=>Ew[a]??i()}const Sw=h6(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),m6=h6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ul=([t,a,i,s])=>`cubic-bezier(${t}, ${a}, ${i}, ${s})`,Ng={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ul([0,.65,.55,1]),circOut:Ul([.55,0,1,.45]),backIn:Ul([.31,.01,.66,-.59]),backOut:Ul([.33,1.53,.69,.99])};function p6(t,a){if(t)return typeof t=="function"?m6()?l6(t,a):"ease-out":Qy(t)?Ul(t):Array.isArray(t)?t.map(i=>p6(i,a)||Ng.easeOut):Ng[t]}function ww(t,a,i,{delay:s=0,duration:o=300,repeat:c=0,repeatType:u="loop",ease:h="easeOut",times:g}={},p=void 0){const b={[a]:i};g&&(b.offset=g);const v=p6(h,o);Array.isArray(v)&&(b.easing=v);const E={delay:s,duration:o,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return p&&(E.pseudoElement=p),t.animate(b,E)}function g6(t){return typeof t=="function"&&"applyToOptions"in t}function Aw({type:t,...a}){return g6(t)&&m6()?t.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}class y6 extends y1{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!a)return;const{element:i,name:s,keyframes:o,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:h,onComplete:g}=a;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=a,o1(typeof a.type!="string");const p=Aw(a);this.animation=ww(i,s,o,p,c),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const b=mu(o,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(b),f6(i,s,b),this.animation.cancel()}g==null||g(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,i;(i=(a=this.animation).finish)==null||i.call(a)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var i,s,o;const a=(i=this.options)==null?void 0:i.element;!this.isPseudoElement&&(a!=null&&a.isConnected)&&((o=(s=this.animation).commitStyles)==null||o.call(s))}get duration(){var i,s;const a=((s=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:s.call(i).duration)||0;return Ma(Number(a))}get iterationDuration(){const{delay:a=0}=this.options||{};return this.duration+Ma(a)}get time(){return Ma(Number(this.animation.currentTime)||0)}set time(a){const i=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ca(a),i&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(a){this.manualStartTime=this.animation.startTime=a}attachTimeline({timeline:a,rangeStart:i,rangeEnd:s,observe:o}){var c;return this.allowFlatten&&((c=this.animation.effect)==null||c.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&Sw()?(this.animation.timeline=a,i&&(this.animation.rangeStart=i),s&&(this.animation.rangeEnd=s),Ca):o(this)}}const b6={anticipate:qy,backInOut:$y,circInOut:Yy};function Mw(t){return t in b6}function Tw(t){typeof t.ease=="string"&&Mw(t.ease)&&(t.ease=b6[t.ease])}const Z0=10;class Cw extends y6{constructor(a){Tw(a),c6(a),super(a),a.startTime!==void 0&&a.autoplay!==!1&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){const{motionValue:i,onUpdate:s,onComplete:o,element:c,...u}=this.options;if(!i)return;if(a!==void 0){i.set(a);return}const h=new tu({...u,autoplay:!1}),g=Math.max(Z0,Un.now()-this.startTime),p=ar(0,Z0,g-Z0),b=h.sample(g).value,{name:v}=this.options;c&&v&&f6(c,v,b),i.setWithVelocity(h.sample(Math.max(0,g-p)).value,b,p),h.stop()}}const jg=(t,a)=>a==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(za.test(t)||t==="0")&&!t.startsWith("url("));function Rw(t){const a=t[0];if(t.length===1)return!0;for(let i=0;i<t.length;i++)if(t[i]!==a)return!0}function Nw(t,a,i,s){const o=t[0];if(o===null)return!1;if(a==="display"||a==="visibility")return!0;const c=t[t.length-1],u=jg(o,a),h=jg(c,a);return!u||!h?!1:Rw(t)||(i==="spring"||g6(i))&&s}function Tf(t){t.duration=0,t.type="keyframes"}const v6=new Set(["opacity","clipPath","filter","transform"]),jw=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function _w(t){for(let a=0;a<t.length;a++)if(typeof t[a]=="string"&&jw.test(t[a]))return!0;return!1}const Dw=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ow=Uy(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Lw(t){var v;const{motionValue:a,name:i,repeatDelay:s,repeatType:o,damping:c,type:u,keyframes:h}=t;if(!(((v=a==null?void 0:a.owner)==null?void 0:v.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:b}=a.owner.getProps();return Ow()&&i&&(v6.has(i)||Dw.has(i)&&_w(h))&&(i!=="transform"||!b)&&!p&&!s&&o!=="mirror"&&c!==0&&u!=="inertia"}const kw=40;class Vw extends y1{constructor({autoplay:a=!0,delay:i=0,type:s="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:u="loop",keyframes:h,name:g,motionValue:p,element:b,...v}){var w;super(),this.stop=()=>{var T,M;this._animation&&(this._animation.stop(),(T=this.stopTimeline)==null||T.call(this)),(M=this.keyframeResolver)==null||M.cancel()},this.createdAt=Un.now();const E={autoplay:a,delay:i,type:s,repeat:o,repeatDelay:c,repeatType:u,name:g,motionValue:p,element:b,...v},S=(b==null?void 0:b.KeyframeResolver)||b1;this.keyframeResolver=new S(h,(T,M,j)=>this.onKeyframesResolved(T,M,E,!j),g,p,b),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(a,i,s,o){var j,C;this.keyframeResolver=void 0;const{name:c,type:u,velocity:h,delay:g,isHandoff:p,onUpdate:b}=s;this.resolvedAt=Un.now();let v=!0;Nw(a,c,u,h)||(v=!1,(ci.instantAnimations||!g)&&(b==null||b(mu(a,s,i))),a[0]=a[a.length-1],Tf(s),s.repeat=0);const S={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>kw?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:a},w=v&&!p&&Lw(S),T=(C=(j=S.motionValue)==null?void 0:j.owner)==null?void 0:C.current;let M;if(w)try{M=new Cw({...S,element:T})}catch{M=new tu(S)}else M=new tu(S);M.finished.then(()=>{this.notifyFinished()}).catch(Ca),this.pendingTimeline&&(this.stopTimeline=M.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=M}get finished(){return this._animation?this.animation.finished:this._finished}then(a,i){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),vw()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}function x6(t,a,i,s=0,o=1){const c=Array.from(t).sort((p,b)=>p.sortNodePosition(b)).indexOf(a),u=t.size,h=(u-1)*s;return typeof i=="function"?i(c,u):o===1?c*s:h-c*s}const Hw=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zw(t){const a=Hw.exec(t);if(!a)return[,];const[,i,s,o]=a;return[`--${i??s}`,o]}function E6(t,a,i=1){const[s,o]=zw(t);if(!s)return;const c=window.getComputedStyle(a).getPropertyValue(s);if(c){const u=c.trim();return Hy(u)?parseFloat(u):u}return f1(o)?E6(o,a,i+1):o}const Bw={type:"spring",stiffness:500,damping:25,restSpeed:10},Uw=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Zw={type:"keyframes",duration:.8},Pw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fw=(t,{keyframes:a})=>a.length>2?Zw:Ls.has(t)?t.startsWith("scale")?Uw(a[1]):Bw:Pw;function S6(t,a){if(t!=null&&t.inherit&&a){const{inherit:i,...s}=t;return{...a,...s}}return t}function v1(t,a){const i=(t==null?void 0:t[a])??(t==null?void 0:t.default)??t;return i!==t?S6(i,t):i}const Iw=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Gw(t){for(const a in t)if(!Iw.has(a))return!0;return!1}const x1=(t,a,i,s={},o,c)=>u=>{const h=v1(s,t)||{},g=h.delay||s.delay||0;let{elapsed:p=0}=s;p=p-ca(g);const b={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:a.getVelocity(),...h,delay:-p,onUpdate:E=>{a.set(E),h.onUpdate&&h.onUpdate(E)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:t,motionValue:a,element:c?void 0:o};Gw(h)||Object.assign(b,Fw(t,b)),b.duration&&(b.duration=ca(b.duration)),b.repeatDelay&&(b.repeatDelay=ca(b.repeatDelay)),b.from!==void 0&&(b.keyframes[0]=b.from);let v=!1;if((b.type===!1||b.duration===0&&!b.repeatDelay)&&(Tf(b),b.delay===0&&(v=!0)),(ci.instantAnimations||ci.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(v=!0,Tf(b),b.delay=0),b.allowFlatten=!h.type&&!h.ease,v&&!c&&a.get()!==void 0){const E=mu(b.keyframes,h);if(E!==void 0){zt.update(()=>{b.onUpdate(E),b.onComplete()});return}}return h.isSync?new tu(b):new Vw(b)};function _g(t){const a=[{},{}];return t==null||t.values.forEach((i,s)=>{a[0][s]=i.get(),a[1][s]=i.getVelocity()}),a}function E1(t,a,i,s){if(typeof a=="function"){const[o,c]=_g(s);a=a(i!==void 0?i:t.custom,o,c)}if(typeof a=="string"&&(a=t.variants&&t.variants[a]),typeof a=="function"){const[o,c]=_g(s);a=a(i!==void 0?i:t.custom,o,c)}return a}function zi(t,a,i){const s=t.getProps();return E1(s,a,i!==void 0?i:s.custom,t)}const w6=new Set(["width","height","top","left","right","bottom",...Os]),Dg=30,$w=t=>!isNaN(parseFloat(t));class qw{constructor(a,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var c;const o=Un.now();if(this.updatedAt!==o&&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(a),this.owner=i.owner}setCurrent(a){this.current=a,this.updatedAt=Un.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=$w(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,i){this.events[a]||(this.events[a]=new c1);const s=this.events[a].add(i);return a==="change"?()=>{s(),zt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,i){this.passiveEffect=a,this.stopPassiveEffect=i}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,i,s){this.set(i),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-s}jump(a,i=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;(a=this.events.change)==null||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=Un.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>Dg)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,Dg);return Zy(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(a){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=a(i),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 a,i;(a=this.dependents)==null||a.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ns(t,a){return new qw(t,a)}const Cf=t=>Array.isArray(t);function Kw(t,a,i){t.hasValue(a)?t.getValue(a).set(i):t.addValue(a,Ns(i))}function Yw(t){return Cf(t)?t[t.length-1]||0:t}function Xw(t,a){const i=zi(t,a);let{transitionEnd:s={},transition:o={},...c}=i||{};c={...c,...s};for(const u in c){const h=Yw(c[u]);Kw(t,u,h)}}const Nn=t=>!!(t&&t.getVelocity);function Qw(t){return!!(Nn(t)&&t.add)}function Rf(t,a){const i=t.getValue("willChange");if(Qw(i))return i.add(a);if(!i&&ci.WillChange){const s=new ci.WillChange("auto");t.addValue("willChange",s),s.add(a)}}function S1(t){return t.replace(/([A-Z])/g,a=>`-${a.toLowerCase()}`)}const Jw="framerAppearId",A6="data-"+S1(Jw);function M6(t){return t.props[A6]}function Ww({protectedKeys:t,needsAnimating:a},i){const s=t.hasOwnProperty(i)&&a[i]!==!0;return a[i]=!1,s}function T6(t,a,{delay:i=0,transitionOverride:s,type:o}={}){let{transition:c,transitionEnd:u,...h}=a;const g=t.getDefaultTransition();c=c?S6(c,g):g;const p=c==null?void 0:c.reduceMotion;s&&(c=s);const b=[],v=o&&t.animationState&&t.animationState.getState()[o];for(const E in h){const S=t.getValue(E,t.latestValues[E]??null),w=h[E];if(w===void 0||v&&Ww(v,E))continue;const T={delay:i,...v1(c||{},E)},M=S.get();if(M!==void 0&&!S.isAnimating()&&!Array.isArray(w)&&w===M&&!T.velocity){zt.update(()=>S.set(w));continue}let j=!1;if(window.MotionHandoffAnimation){const H=M6(t);if(H){const U=window.MotionHandoffAnimation(H,E,zt);U!==null&&(T.startTime=U,j=!0)}}Rf(t,E);const C=p??t.shouldReduceMotion;S.start(x1(E,S,w,C&&w6.has(E)?{type:!1}:T,t,j));const D=S.animation;D&&b.push(D)}if(u){const E=()=>zt.update(()=>{u&&Xw(t,u)});b.length?Promise.all(b).then(E):E()}return b}function Nf(t,a,i={}){var g;const s=zi(t,a,i.type==="exit"?(g=t.presenceContext)==null?void 0:g.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(o=i.transitionOverride);const c=s?()=>Promise.all(T6(t,s,i)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:b=0,staggerChildren:v,staggerDirection:E}=o;return eA(t,a,p,b,v,E,i)}:()=>Promise.resolve(),{when:h}=o;if(h){const[p,b]=h==="beforeChildren"?[c,u]:[u,c];return p().then(()=>b())}else return Promise.all([c(),u(i.delay)])}function eA(t,a,i=0,s=0,o=0,c=1,u){const h=[];for(const g of t.variantChildren)g.notify("AnimationStart",a),h.push(Nf(g,a,{...u,delay:i+(typeof s=="function"?0:s)+x6(t.variantChildren,g,s,o,c)}).then(()=>g.notify("AnimationComplete",a)));return Promise.all(h)}function tA(t,a,i={}){t.notify("AnimationStart",a);let s;if(Array.isArray(a)){const o=a.map(c=>Nf(t,c,i));s=Promise.all(o)}else if(typeof a=="string")s=Nf(t,a,i);else{const o=typeof a=="function"?zi(t,a,i.custom):a;s=Promise.all(T6(t,o,i))}return s.then(()=>{t.notify("AnimationComplete",a)})}const nA={test:t=>t==="auto",parse:t=>t},C6=t=>a=>a.test(t),R6=[Ds,He,tr,ai,R7,C7,nA],Og=t=>R6.find(C6(t));function aA(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||By(t):!0}const rA=new Set(["brightness","contrast","saturate","opacity"]);function iA(t){const[a,i]=t.slice(0,-1).split("(");if(a==="drop-shadow")return t;const[s]=i.match(h1)||[];if(!s)return t;const o=i.replace(s,"");let c=rA.has(a)?1:0;return s!==i&&(c*=100),a+"("+c+o+")"}const sA=/\b([a-z-]*)\(.*?\)/gu,jf={...za,getAnimatableNone:t=>{const a=t.match(sA);return a?a.map(iA).join(" "):t}},_f={...za,getAnimatableNone:t=>{const a=za.parse(t);return za.createTransformer(t)(a.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Lg={...Ds,transform:Math.round},lA={rotate:ai,rotateX:ai,rotateY:ai,rotateZ:ai,scale:Mc,scaleX:Mc,scaleY:Mc,scaleZ:Mc,skew:ai,skewX:ai,skewY:ai,distance:He,translateX:He,translateY:He,translateZ:He,x:He,y:He,z:He,perspective:He,transformPerspective:He,opacity:Ql,originX:xg,originY:xg,originZ:He},w1={borderWidth:He,borderTopWidth:He,borderRightWidth:He,borderBottomWidth:He,borderLeftWidth:He,borderRadius:He,borderTopLeftRadius:He,borderTopRightRadius:He,borderBottomRightRadius:He,borderBottomLeftRadius:He,width:He,maxWidth:He,height:He,maxHeight:He,top:He,right:He,bottom:He,left:He,inset:He,insetBlock:He,insetBlockStart:He,insetBlockEnd:He,insetInline:He,insetInlineStart:He,insetInlineEnd:He,padding:He,paddingTop:He,paddingRight:He,paddingBottom:He,paddingLeft:He,paddingBlock:He,paddingBlockStart:He,paddingBlockEnd:He,paddingInline:He,paddingInlineStart:He,paddingInlineEnd:He,margin:He,marginTop:He,marginRight:He,marginBottom:He,marginLeft:He,marginBlock:He,marginBlockStart:He,marginBlockEnd:He,marginInline:He,marginInlineStart:He,marginInlineEnd:He,fontSize:He,backgroundPositionX:He,backgroundPositionY:He,...lA,zIndex:Lg,fillOpacity:Ql,strokeOpacity:Ql,numOctaves:Lg},oA={...w1,color:pn,backgroundColor:pn,outlineColor:pn,fill:pn,stroke:pn,borderColor:pn,borderTopColor:pn,borderRightColor:pn,borderBottomColor:pn,borderLeftColor:pn,filter:jf,WebkitFilter:jf,mask:_f,WebkitMask:_f},N6=t=>oA[t],cA=new Set([jf,_f]);function j6(t,a){let i=N6(t);return cA.has(i)||(i=za),i.getAnimatableNone?i.getAnimatableNone(a):void 0}const uA=new Set(["auto","none","0"]);function dA(t,a,i){let s=0,o;for(;s<t.length&&!o;){const c=t[s];typeof c=="string"&&!uA.has(c)&&Rs(c).values.length&&(o=t[s]),s++}if(o&&i)for(const c of a)t[c]=j6(i,o)}class fA extends b1{constructor(a,i,s,o,c){super(a,i,s,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:i,name:s}=this;if(!i||!i.current)return;super.readKeyframes();for(let b=0;b<a.length;b++){let v=a[b];if(typeof v=="string"&&(v=v.trim(),f1(v))){const E=E6(v,i.current);E!==void 0&&(a[b]=E),b===a.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!w6.has(s)||a.length!==2)return;const[o,c]=a,u=Og(o),h=Og(c),g=vg(o),p=vg(c);if(g!==p&&oi[s]){this.needsMeasurement=!0;return}if(u!==h)if(Rg(u)&&Rg(h))for(let b=0;b<a.length;b++){const v=a[b];typeof v=="string"&&(a[b]=parseFloat(v))}else oi[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:i}=this,s=[];for(let o=0;o<a.length;o++)(a[o]===null||aA(a[o]))&&s.push(o);s.length&&dA(a,s,i)}measureInitialState(){const{element:a,unresolvedKeyframes:i,name:s}=this;if(!a||!a.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=oi[s](a.measureViewportBox(),window.getComputedStyle(a.current)),i[0]=this.measuredOrigin;const o=i[i.length-1];o!==void 0&&a.getValue(s,o).jump(o,!1)}measureEndState(){var h;const{element:a,name:i,unresolvedKeyframes:s}=this;if(!a||!a.current)return;const o=a.getValue(i);o&&o.jump(this.measuredOrigin,!1);const c=s.length-1,u=s[c];s[c]=oi[i](a.measureViewportBox(),window.getComputedStyle(a.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([g,p])=>{a.getValue(g).set(p)}),this.resolveNoneKeyframes()}}function _6(t,a,i){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const o=(i==null?void 0:i[t])??s.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t).filter(s=>s!=null)}const D6=(t,a)=>a&&typeof t=="number"?a.transform(t):t;function Hc(t){return zy(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:A1}=Jy(queueMicrotask,!1),Va={x:!1,y:!1};function O6(){return Va.x||Va.y}function hA(t){return t==="x"||t==="y"?Va[t]?null:(Va[t]=!0,()=>{Va[t]=!1}):Va.x||Va.y?null:(Va.x=Va.y=!0,()=>{Va.x=Va.y=!1})}function L6(t,a){const i=_6(t),s=new AbortController,o={passive:!0,...a,signal:s.signal};return[i,o,()=>s.abort()]}function mA(t){return!(t.pointerType==="touch"||O6())}function pA(t,a,i={}){const[s,o,c]=L6(t,i);return s.forEach(u=>{let h=!1,g=!1,p;const b=()=>{u.removeEventListener("pointerleave",w)},v=M=>{p&&(p(M),p=void 0),b()},E=M=>{h=!1,window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",E),g&&(g=!1,v(M))},S=()=>{h=!0,window.addEventListener("pointerup",E,o),window.addEventListener("pointercancel",E,o)},w=M=>{if(M.pointerType!=="touch"){if(h){g=!0;return}v(M)}},T=M=>{if(!mA(M))return;g=!1;const j=a(u,M);typeof j=="function"&&(p=j,u.addEventListener("pointerleave",w,o))};u.addEventListener("pointerenter",T,o),u.addEventListener("pointerdown",S,o)}),c}const k6=(t,a)=>a?t===a?!0:k6(t,a.parentElement):!1,M1=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,gA=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yA(t){return gA.has(t.tagName)||t.isContentEditable===!0}const bA=new Set(["INPUT","SELECT","TEXTAREA"]);function vA(t){return bA.has(t.tagName)||t.isContentEditable===!0}const zc=new WeakSet;function kg(t){return a=>{a.key==="Enter"&&t(a)}}function P0(t,a){t.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const xA=(t,a)=>{const i=t.currentTarget;if(!i)return;const s=kg(()=>{if(zc.has(i))return;P0(i,"down");const o=kg(()=>{P0(i,"up")}),c=()=>P0(i,"cancel");i.addEventListener("keyup",o,a),i.addEventListener("blur",c,a)});i.addEventListener("keydown",s,a),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),a)};function Vg(t){return M1(t)&&!O6()}const Hg=new WeakSet;function EA(t,a,i={}){const[s,o,c]=L6(t,i),u=h=>{const g=h.currentTarget;if(!Vg(h)||Hg.has(h))return;zc.add(g),i.stopPropagation&&Hg.add(h);const p=a(g,h),b=(S,w)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",E),zc.has(g)&&zc.delete(g),Vg(S)&&typeof p=="function"&&p(S,{success:w})},v=S=>{b(S,g===window||g===document||i.useGlobalTarget||k6(g,S.target))},E=S=>{b(S,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",E,o)};return s.forEach(h=>{(i.useGlobalTarget?window:h).addEventListener("pointerdown",u,o),Hc(h)&&(h.addEventListener("focus",p=>xA(p,o)),!yA(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),c}function T1(t){return zy(t)&&"ownerSVGElement"in t}const Bc=new WeakMap;let ri;const V6=(t,a,i)=>(s,o)=>o&&o[0]?o[0][t+"Size"]:T1(s)&&"getBBox"in s?s.getBBox()[a]:s[i],SA=V6("inline","width","offsetWidth"),wA=V6("block","height","offsetHeight");function AA({target:t,borderBoxSize:a}){var i;(i=Bc.get(t))==null||i.forEach(s=>{s(t,{get width(){return SA(t,a)},get height(){return wA(t,a)}})})}function MA(t){t.forEach(AA)}function TA(){typeof ResizeObserver>"u"||(ri=new ResizeObserver(MA))}function CA(t,a){ri||TA();const i=_6(t);return i.forEach(s=>{let o=Bc.get(s);o||(o=new Set,Bc.set(s,o)),o.add(a),ri==null||ri.observe(s)}),()=>{i.forEach(s=>{const o=Bc.get(s);o==null||o.delete(a),o!=null&&o.size||ri==null||ri.unobserve(s)})}}const Uc=new Set;let ws;function RA(){ws=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Uc.forEach(a=>a(t))},window.addEventListener("resize",ws)}function NA(t){return Uc.add(t),ws||RA(),()=>{Uc.delete(t),!Uc.size&&typeof ws=="function"&&(window.removeEventListener("resize",ws),ws=void 0)}}function zg(t,a){return typeof t=="function"?NA(t):CA(t,a)}function jA(t){return T1(t)&&t.tagName==="svg"}const _A=[...R6,pn,za],DA=t=>_A.find(C6(t)),Bg=()=>({translate:0,scale:1,origin:0,originPoint:0}),As=()=>({x:Bg(),y:Bg()}),Ug=()=>({min:0,max:0}),xn=()=>({x:Ug(),y:Ug()}),OA=new WeakMap;function pu(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Jl(t){return typeof t=="string"||Array.isArray(t)}const C1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],R1=["initial",...C1];function gu(t){return pu(t.animate)||R1.some(a=>Jl(t[a]))}function H6(t){return!!(gu(t)||t.variants)}function LA(t,a,i){for(const s in a){const o=a[s],c=i[s];if(Nn(o))t.addValue(s,o);else if(Nn(c))t.addValue(s,Ns(o,{owner:t}));else if(c!==o)if(t.hasValue(s)){const u=t.getValue(s);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=t.getStaticValue(s);t.addValue(s,Ns(u!==void 0?u:o,{owner:t}))}}for(const s in i)a[s]===void 0&&t.removeValue(s);return a}const Df={current:null},z6={current:!1},kA=typeof window<"u";function VA(){if(z6.current=!0,!!kA)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),a=()=>Df.current=t.matches;t.addEventListener("change",a),a()}else Df.current=!1}const Zg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let nu={};function B6(t){nu=t}function HA(){return nu}class zA{scrapeMotionValuesFromProps(a,i,s){return{}}constructor({parent:a,props:i,presenceContext:s,reducedMotionConfig:o,skipAnimations:c,blockInitialAnimation:u,visualState:h},g={}){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=b1,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=Un.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,zt.render(this.render,!1,!0))};const{latestValues:p,renderState:b}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=i.initial?{...p}:{},this.renderState=b,this.parent=a,this.props=i,this.presenceContext=s,this.depth=a?a.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=c,this.options=g,this.blockInitialAnimation=!!u,this.isControllingVariants=gu(i),this.isVariantNode=H6(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const{willChange:v,...E}=this.scrapeMotionValuesFromProps(i,{},this);for(const S in E){const w=E[S];p[S]!==void 0&&Nn(w)&&w.set(p[S])}}mount(a){var i,s;if(this.hasBeenMounted)for(const o in this.initialValues)(i=this.values.get(o))==null||i.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=a,OA.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,c)=>this.bindToMotionValue(c,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(z6.current||VA(),this.shouldReduceMotion=Df.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var a;this.projection&&this.projection.unmount(),ui(this.notifyUpdate),ui(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const s=this.features[i];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(a){this.children.add(a),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,i){if(this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)(),i.accelerate&&v6.has(a)&&this.current instanceof HTMLElement){const{factory:u,keyframes:h,times:g,ease:p,duration:b}=i.accelerate,v=new y6({element:this.current,name:a,keyframes:h,times:g,ease:p,duration:ca(b)}),E=u(v);this.valueSubscriptions.set(a,()=>{E(),v.cancel()});return}const s=Ls.has(a);s&&this.onBindTransform&&this.onBindTransform();const o=i.on("change",u=>{this.latestValues[a]=u,this.props.onUpdate&&zt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;typeof window<"u"&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,a,i)),this.valueSubscriptions.set(a,()=>{o(),c&&c(),i.owner&&i.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in nu){const i=nu[a];if(!i)continue;const{isEnabled:s,Feature:o}=i;if(!this.features[a]&&o&&s(this.props)&&(this.features[a]=new o(this)),this.features[a]){const c=this.features[a];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):xn()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,i){this.latestValues[a]=i}update(a,i){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<Zg.length;s++){const o=Zg[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,u=a[c];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=LA(this,this.scrapeMotionValuesFromProps(a,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(a),()=>i.variantChildren.delete(a)}addValue(a,i){const s=this.values.get(a);i!==s&&(s&&this.removeValue(a),this.bindToMotionValue(a,i),this.values.set(a,i),this.latestValues[a]=i.get())}removeValue(a){this.values.delete(a);const i=this.valueSubscriptions.get(a);i&&(i(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,i){if(this.props.values&&this.props.values[a])return this.props.values[a];let s=this.values.get(a);return s===void 0&&i!==void 0&&(s=Ns(i===null?void 0:i,{owner:this}),this.addValue(a,s)),s}readValue(a,i){let s=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return s!=null&&(typeof s=="string"&&(Hy(s)||By(s))?s=parseFloat(s):!DA(s)&&za.test(i)&&(s=j6(a,i)),this.setBaseTarget(a,Nn(s)?s.get():s)),Nn(s)?s.get():s}setBaseTarget(a,i){this.baseTarget[a]=i}getBaseTarget(a){var c;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const u=E1(this.props,i,(c=this.presenceContext)==null?void 0:c.custom);u&&(s=u[a])}if(i&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,a);return o!==void 0&&!Nn(o)?o:this.initialValues[a]!==void 0&&s===void 0?void 0:this.baseTarget[a]}on(a,i){return this.events[a]||(this.events[a]=new c1),this.events[a].add(i)}notify(a,...i){this.events[a]&&this.events[a].notify(...i)}scheduleRenderMicrotask(){A1.render(this.render)}}class U6 extends zA{constructor(){super(...arguments),this.KeyframeResolver=fA}sortInstanceNodePosition(a,i){return a.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(a,i){const s=a.style;return s?s[i]:void 0}removeValueFromRenderState(a,{vars:i,style:s}){delete i[a],delete s[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;Nn(a)&&(this.childSubscription=a.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}class di{constructor(a){this.isMounted=!1,this.node=a}update(){}}function Z6({top:t,left:a,right:i,bottom:s}){return{x:{min:a,max:i},y:{min:t,max:s}}}function BA({x:t,y:a}){return{top:a.min,right:t.max,bottom:a.max,left:t.min}}function UA(t,a){if(!a)return t;const i=a({x:t.left,y:t.top}),s=a({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function F0(t){return t===void 0||t===1}function Of({scale:t,scaleX:a,scaleY:i}){return!F0(t)||!F0(a)||!F0(i)}function Di(t){return Of(t)||P6(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function P6(t){return Pg(t.x)||Pg(t.y)}function Pg(t){return t&&t!=="0%"}function au(t,a,i){const s=t-i,o=a*s;return i+o}function Fg(t,a,i,s,o){return o!==void 0&&(t=au(t,o,s)),au(t,i,s)+a}function Lf(t,a=0,i=1,s,o){t.min=Fg(t.min,a,i,s,o),t.max=Fg(t.max,a,i,s,o)}function F6(t,{x:a,y:i}){Lf(t.x,a.translate,a.scale,a.originPoint),Lf(t.y,i.translate,i.scale,i.originPoint)}const Ig=.999999999999,Gg=1.0000000000001;function ZA(t,a,i,s=!1){var h;const o=i.length;if(!o)return;a.x=a.y=1;let c,u;for(let g=0;g<o;g++){c=i[g],u=c.projectionDelta;const{visualElement:p}=c.options;p&&p.props.style&&p.props.style.display==="contents"||(s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&(Wa(t.x,-c.scroll.offset.x),Wa(t.y,-c.scroll.offset.y)),u&&(a.x*=u.x.scale,a.y*=u.y.scale,F6(t,u)),s&&Di(c.latestValues)&&Zc(t,c.latestValues,(h=c.layout)==null?void 0:h.layoutBox))}a.x<Gg&&a.x>Ig&&(a.x=1),a.y<Gg&&a.y>Ig&&(a.y=1)}function Wa(t,a){t.min+=a,t.max+=a}function $g(t,a,i,s,o=.5){const c=It(t.min,t.max,o);Lf(t,a,i,c,s)}function qg(t,a){return typeof t=="string"?parseFloat(t)/100*(a.max-a.min):t}function Zc(t,a,i){const s=i??t;$g(t.x,qg(a.x,s.x),a.scaleX,a.scale,a.originX),$g(t.y,qg(a.y,s.y),a.scaleY,a.scale,a.originY)}function I6(t,a){return Z6(UA(t.getBoundingClientRect(),a))}function PA(t,a,i){const s=I6(t,i),{scroll:o}=a;return o&&(Wa(s.x,o.offset.x),Wa(s.y,o.offset.y)),s}const FA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IA=Os.length;function GA(t,a,i){let s="",o=!0;for(let c=0;c<IA;c++){const u=Os[c],h=t[u];if(h===void 0)continue;let g=!0;if(typeof h=="number")g=h===(u.startsWith("scale")?1:0);else{const p=parseFloat(h);g=u.startsWith("scale")?p===1:p===0}if(!g||i){const p=D6(h,w1[u]);if(!g){o=!1;const b=FA[u]||u;s+=`${b}(${p}) `}i&&(a[u]=p)}}return s=s.trim(),i?s=i(a,o?"":s):o&&(s="none"),s}function N1(t,a,i){const{style:s,vars:o,transformOrigin:c}=t;let u=!1,h=!1;for(const g in a){const p=a[g];if(Ls.has(g)){u=!0;continue}else if(e6(g)){o[g]=p;continue}else{const b=D6(p,w1[g]);g.startsWith("origin")?(h=!0,c[g]=b):s[g]=b}}if(a.transform||(u||i?s.transform=GA(a,t.transform,i):s.transform&&(s.transform="none")),h){const{originX:g="50%",originY:p="50%",originZ:b=0}=c;s.transformOrigin=`${g} ${p} ${b}`}}function G6(t,{style:a,vars:i},s,o){const c=t.style;let u;for(u in a)c[u]=a[u];o==null||o.applyProjectionStyles(c,s);for(u in i)c.setProperty(u,i[u])}function Kg(t,a){return a.max===a.min?0:t/(a.max-a.min)*100}const jl={correct:(t,a)=>{if(!a.target)return t;if(typeof t=="string")if(He.test(t))t=parseFloat(t);else return t;const i=Kg(t,a.target.x),s=Kg(t,a.target.y);return`${i}% ${s}%`}},$A={correct:(t,{treeScale:a,projectionDelta:i})=>{const s=t,o=za.parse(t);if(o.length>5)return s;const c=za.createTransformer(t),u=typeof o[0]!="number"?1:0,h=i.x.scale*a.x,g=i.y.scale*a.y;o[0+u]/=h,o[1+u]/=g;const p=It(h,g,.5);return typeof o[2+u]=="number"&&(o[2+u]/=p),typeof o[3+u]=="number"&&(o[3+u]/=p),c(o)}},kf={borderRadius:{...jl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jl,borderTopRightRadius:jl,borderBottomLeftRadius:jl,borderBottomRightRadius:jl,boxShadow:$A};function $6(t,{layout:a,layoutId:i}){return Ls.has(t)||t.startsWith("origin")||(a||i!==void 0)&&(!!kf[t]||t==="opacity")}function j1(t,a,i){var u;const s=t.style,o=a==null?void 0:a.style,c={};if(!s)return c;for(const h in s)(Nn(s[h])||o&&Nn(o[h])||$6(h,t)||((u=i==null?void 0:i.getValue(h))==null?void 0:u.liveStyle)!==void 0)&&(c[h]=s[h]);return c}function qA(t){return window.getComputedStyle(t)}class KA extends U6{constructor(){super(...arguments),this.type="html",this.renderInstance=G6}readValueFromInstance(a,i){var s;if(Ls.has(i))return(s=this.projection)!=null&&s.isProjecting?Ef(i):mw(a,i);{const o=qA(a),c=(e6(i)?o.getPropertyValue(i):o[i])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(a,{transformPagePoint:i}){return I6(a,i)}build(a,i,s){N1(a,i,s.transformTemplate)}scrapeMotionValuesFromProps(a,i,s){return j1(a,i,s)}}const YA={offset:"stroke-dashoffset",array:"stroke-dasharray"},XA={offset:"strokeDashoffset",array:"strokeDasharray"};function QA(t,a,i=1,s=0,o=!0){t.pathLength=1;const c=o?YA:XA;t[c.offset]=`${-s}`,t[c.array]=`${a} ${i}`}const JA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function q6(t,{attrX:a,attrY:i,attrScale:s,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...h},g,p,b){if(N1(t,h,p),g){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:v,style:E}=t;v.transform&&(E.transform=v.transform,delete v.transform),(E.transform||v.transformOrigin)&&(E.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),E.transform&&(E.transformBox=(b==null?void 0:b.transformBox)??"fill-box",delete v.transformBox);for(const S of JA)v[S]!==void 0&&(E[S]=v[S],delete v[S]);a!==void 0&&(v.x=a),i!==void 0&&(v.y=i),s!==void 0&&(v.scale=s),o!==void 0&&QA(v,o,c,u,!1)}const K6=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"]),Y6=t=>typeof t=="string"&&t.toLowerCase()==="svg";function WA(t,a,i,s){G6(t,a,void 0,s);for(const o in a.attrs)t.setAttribute(K6.has(o)?o:S1(o),a.attrs[o])}function X6(t,a,i){const s=j1(t,a,i);for(const o in t)if(Nn(t[o])||Nn(a[o])){const c=Os.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[c]=t[o]}return s}class eM extends U6{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xn}getBaseTargetFromProps(a,i){return a[i]}readValueFromInstance(a,i){if(Ls.has(i)){const s=N6(i);return s&&s.default||0}return i=K6.has(i)?i:S1(i),a.getAttribute(i)}scrapeMotionValuesFromProps(a,i,s){return X6(a,i,s)}build(a,i,s){q6(a,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(a,i,s,o){WA(a,i,s,o)}mount(a){this.isSVGTag=Y6(a.tagName),super.mount(a)}}const tM=R1.length;function Q6(t){if(!t)return;if(!t.isControllingVariants){const i=t.parent?Q6(t.parent)||{}:{};return t.props.initial!==void 0&&(i.initial=t.props.initial),i}const a={};for(let i=0;i<tM;i++){const s=R1[i],o=t.props[s];(Jl(o)||o===!1)&&(a[s]=o)}return a}function J6(t,a){if(!Array.isArray(a))return!1;const i=a.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(a[s]!==t[s])return!1;return!0}const nM=[...C1].reverse(),aM=C1.length;function rM(t){return a=>Promise.all(a.map(({animation:i,options:s})=>tA(t,i,s)))}function iM(t){let a=rM(t),i=Yg(),s=!0,o=!1;const c=p=>(b,v)=>{var S;const E=zi(t,v,p==="exit"?(S=t.presenceContext)==null?void 0:S.custom:void 0);if(E){const{transition:w,transitionEnd:T,...M}=E;b={...b,...M,...T}}return b};function u(p){a=p(t)}function h(p){const{props:b}=t,v=Q6(t.parent)||{},E=[],S=new Set;let w={},T=1/0;for(let j=0;j<aM;j++){const C=nM[j],D=i[C],H=b[C]!==void 0?b[C]:v[C],U=Jl(H),te=C===p?D.isActive:null;te===!1&&(T=j);let ne=H===v[C]&&H!==b[C]&&U;if(ne&&(s||o)&&t.manuallyAnimateOnMount&&(ne=!1),D.protectedKeys={...w},!D.isActive&&te===null||!H&&!D.prevProp||pu(H)||typeof H=="boolean")continue;if(C==="exit"&&D.isActive&&te!==!0){D.prevResolvedValues&&(w={...w,...D.prevResolvedValues});continue}const _=sM(D.prevProp,H);let ae=_||C===p&&D.isActive&&!ne&&U||j>T&&U,ie=!1;const oe=Array.isArray(H)?H:[H];let J=oe.reduce(c(C),{});te===!1&&(J={});const{prevResolvedValues:ge={}}=D,he={...ge,...J},xe=K=>{ae=!0,S.has(K)&&(ie=!0,S.delete(K)),D.needsAnimating[K]=!0;const de=t.getValue(K);de&&(de.liveStyle=!1)};for(const K in he){const de=J[K],we=ge[K];if(w.hasOwnProperty(K))continue;let R=!1;Cf(de)&&Cf(we)?R=!J6(de,we):R=de!==we,R?de!=null?xe(K):S.add(K):de!==void 0&&S.has(K)?xe(K):D.protectedKeys[K]=!0}D.prevProp=H,D.prevResolvedValues=J,D.isActive&&(w={...w,...J}),(s||o)&&t.blockInitialAnimation&&(ae=!1);const V=ne&&_;ae&&(!V||ie)&&E.push(...oe.map(K=>{const de={type:C};if(typeof K=="string"&&(s||o)&&!V&&t.manuallyAnimateOnMount&&t.parent){const{parent:we}=t,R=zi(we,K);if(we.enteringChildren&&R){const{delayChildren:q}=R.transition||{};de.delay=x6(we.enteringChildren,t,q)}}return{animation:K,options:de}}))}if(S.size){const j={};if(typeof b.initial!="boolean"){const C=zi(t,Array.isArray(b.initial)?b.initial[0]:b.initial);C&&C.transition&&(j.transition=C.transition)}S.forEach(C=>{const D=t.getBaseTarget(C),H=t.getValue(C);H&&(H.liveStyle=!0),j[C]=D??null}),E.push({animation:j})}let M=!!E.length;return s&&(b.initial===!1||b.initial===b.animate)&&!t.manuallyAnimateOnMount&&(M=!1),s=!1,o=!1,M?a(E):Promise.resolve()}function g(p,b){var E;if(i[p].isActive===b)return Promise.resolve();(E=t.variantChildren)==null||E.forEach(S=>{var w;return(w=S.animationState)==null?void 0:w.setActive(p,b)}),i[p].isActive=b;const v=h(p);for(const S in i)i[S].protectedKeys={};return v}return{animateChanges:h,setActive:g,setAnimateFunction:u,getState:()=>i,reset:()=>{i=Yg(),o=!0}}}function sM(t,a){return typeof a=="string"?a!==t:Array.isArray(a)?!J6(a,t):!1}function ji(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yg(){return{animate:ji(!0),whileInView:ji(),whileHover:ji(),whileTap:ji(),whileDrag:ji(),whileFocus:ji(),exit:ji()}}function Vf(t,a){t.min=a.min,t.max=a.max}function ka(t,a){Vf(t.x,a.x),Vf(t.y,a.y)}function Xg(t,a){t.translate=a.translate,t.scale=a.scale,t.originPoint=a.originPoint,t.origin=a.origin}const W6=1e-4,lM=1-W6,oM=1+W6,eb=.01,cM=0-eb,uM=0+eb;function Zn(t){return t.max-t.min}function dM(t,a,i){return Math.abs(t-a)<=i}function Qg(t,a,i,s=.5){t.origin=s,t.originPoint=It(a.min,a.max,t.origin),t.scale=Zn(i)/Zn(a),t.translate=It(i.min,i.max,t.origin)-t.originPoint,(t.scale>=lM&&t.scale<=oM||isNaN(t.scale))&&(t.scale=1),(t.translate>=cM&&t.translate<=uM||isNaN(t.translate))&&(t.translate=0)}function Il(t,a,i,s){Qg(t.x,a.x,i.x,s?s.originX:void 0),Qg(t.y,a.y,i.y,s?s.originY:void 0)}function Jg(t,a,i,s=0){const o=s?It(i.min,i.max,s):i.min;t.min=o+a.min,t.max=t.min+Zn(a)}function fM(t,a,i,s){Jg(t.x,a.x,i.x,s==null?void 0:s.x),Jg(t.y,a.y,i.y,s==null?void 0:s.y)}function Wg(t,a,i,s=0){const o=s?It(i.min,i.max,s):i.min;t.min=a.min-o,t.max=t.min+Zn(a)}function ru(t,a,i,s){Wg(t.x,a.x,i.x,s==null?void 0:s.x),Wg(t.y,a.y,i.y,s==null?void 0:s.y)}function e8(t,a,i,s,o){return t-=a,t=au(t,1/i,s),o!==void 0&&(t=au(t,1/o,s)),t}function hM(t,a=0,i=1,s=.5,o,c=t,u=t){if(tr.test(a)&&(a=parseFloat(a),a=It(u.min,u.max,a/100)-u.min),typeof a!="number")return;let h=It(c.min,c.max,s);t===c&&(h-=a),t.min=e8(t.min,a,i,h,o),t.max=e8(t.max,a,i,h,o)}function t8(t,a,[i,s,o],c,u){hM(t,a[i],a[s],a[o],a.scale,c,u)}const mM=["x","scaleX","originX"],pM=["y","scaleY","originY"];function n8(t,a,i,s){t8(t.x,a,mM,i?i.x:void 0,s?s.x:void 0),t8(t.y,a,pM,i?i.y:void 0,s?s.y:void 0)}function a8(t){return t.translate===0&&t.scale===1}function tb(t){return a8(t.x)&&a8(t.y)}function r8(t,a){return t.min===a.min&&t.max===a.max}function gM(t,a){return r8(t.x,a.x)&&r8(t.y,a.y)}function i8(t,a){return Math.round(t.min)===Math.round(a.min)&&Math.round(t.max)===Math.round(a.max)}function nb(t,a){return i8(t.x,a.x)&&i8(t.y,a.y)}function s8(t){return Zn(t.x)/Zn(t.y)}function l8(t,a){return t.translate===a.translate&&t.scale===a.scale&&t.originPoint===a.originPoint}function Ja(t){return[t("x"),t("y")]}function yM(t,a,i){let s="";const o=t.x.translate/a.x,c=t.y.translate/a.y,u=(i==null?void 0:i.z)||0;if((o||c||u)&&(s=`translate3d(${o}px, ${c}px, ${u}px) `),(a.x!==1||a.y!==1)&&(s+=`scale(${1/a.x}, ${1/a.y}) `),i){const{transformPerspective:p,rotate:b,rotateX:v,rotateY:E,skewX:S,skewY:w}=i;p&&(s=`perspective(${p}px) ${s}`),b&&(s+=`rotate(${b}deg) `),v&&(s+=`rotateX(${v}deg) `),E&&(s+=`rotateY(${E}deg) `),S&&(s+=`skewX(${S}deg) `),w&&(s+=`skewY(${w}deg) `)}const h=t.x.scale*a.x,g=t.y.scale*a.y;return(h!==1||g!==1)&&(s+=`scale(${h}, ${g})`),s||"none"}const ab=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],bM=ab.length,o8=t=>typeof t=="string"?parseFloat(t):t,c8=t=>typeof t=="number"||He.test(t);function vM(t,a,i,s,o,c){o?(t.opacity=It(0,i.opacity??1,xM(s)),t.opacityExit=It(a.opacity??1,0,EM(s))):c&&(t.opacity=It(a.opacity??1,i.opacity??1,s));for(let u=0;u<bM;u++){const h=ab[u];let g=u8(a,h),p=u8(i,h);if(g===void 0&&p===void 0)continue;g||(g=0),p||(p=0),g===0||p===0||c8(g)===c8(p)?(t[h]=Math.max(It(o8(g),o8(p),s),0),(tr.test(p)||tr.test(g))&&(t[h]+="%")):t[h]=p}(a.rotate||i.rotate)&&(t.rotate=It(a.rotate||0,i.rotate||0,s))}function u8(t,a){return t[a]!==void 0?t[a]:t.borderRadius}const xM=rb(0,.5,Ky),EM=rb(.5,.95,Ca);function rb(t,a,i){return s=>s<t?0:s>a?1:i(Xl(t,a,s))}function SM(t,a,i){const s=Nn(t)?t:Ns(t);return s.start(x1("",s,a,i)),s.animation}function Wl(t,a,i,s={passive:!0}){return t.addEventListener(a,i,s),()=>t.removeEventListener(a,i)}const wM=(t,a)=>t.depth-a.depth;class AM{constructor(){this.children=[],this.isDirty=!1}add(a){l1(this.children,a),this.isDirty=!0}remove(a){Qc(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(wM),this.isDirty=!1,this.children.forEach(a)}}function MM(t,a){const i=Un.now(),s=({timestamp:o})=>{const c=o-i;c>=a&&(ui(s),t(c-a))};return zt.setup(s,!0),()=>ui(s)}function Pc(t){return Nn(t)?t.get():t}class TM{constructor(){this.members=[]}add(a){l1(this.members,a);for(let i=this.members.length-1;i>=0;i--){const s=this.members[i];if(s===a||s===this.lead||s===this.prevLead)continue;const o=s.instance;(!o||o.isConnected===!1)&&!s.snapshot&&(Qc(this.members,s),s.unmount())}a.scheduleRender()}remove(a){if(Qc(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(a){var i;for(let s=this.members.indexOf(a)-1;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1&&((i=o.instance)==null?void 0:i.isConnected)!==!1)return this.promote(o),!0}return!1}promote(a,i){var o;const s=this.lead;if(a!==s&&(this.prevLead=s,this.lead=a,a.show(),s)){s.updateSnapshot(),a.scheduleRender();const{layoutDependency:c}=s.options,{layoutDependency:u}=a.options;(c===void 0||c!==u)&&(a.resumeFrom=s,i&&(s.preserveOpacity=!0),s.snapshot&&(a.snapshot=s.snapshot,a.snapshot.latestValues=s.animationValues||s.latestValues),(o=a.root)!=null&&o.isUpdating&&(a.isLayoutDirty=!0)),a.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(a=>{var i,s,o,c,u;(s=(i=a.options).onExitComplete)==null||s.call(i),(u=(o=a.resumingFrom)==null?void 0:(c=o.options).onExitComplete)==null||u.call(c)})}scheduleRender(){this.members.forEach(a=>a.instance&&a.scheduleRender(!1))}removeLeadSnapshot(){var a;(a=this.lead)!=null&&a.snapshot&&(this.lead.snapshot=void 0)}}const Fc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},I0=["","X","Y","Z"],CM=1e3;let RM=0;function G0(t,a,i,s){const{latestValues:o}=a;o[t]&&(i[t]=o[t],a.setStaticValue(t,0),s&&(s[t]=0))}function ib(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:a}=t.options;if(!a)return;const i=M6(a);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:o,layoutId:c}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",zt,!(o||c))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&ib(s)}function sb({attachResizeListener:t,defaultParent:a,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(u={},h=a==null?void 0:a()){this.id=RM++,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(_M),this.nodes.forEach(HM),this.nodes.forEach(zM),this.nodes.forEach(DM)},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 g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new AM)}addEventListener(u,h){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new c1),this.eventHandlers.get(u).add(h)}notifyListeners(u,...h){const g=this.eventHandlers.get(u);g&&g.notify(...h)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=T1(u)&&!jA(u),this.instance=u;const{layoutId:h,layout:g,visualElement:p}=this.options;if(p&&!p.current&&p.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||h)&&(this.isLayoutDirty=!0),t){let b,v=0;const E=()=>this.root.updateBlockedByResize=!1;zt.read(()=>{v=window.innerWidth}),t(u,()=>{const S=window.innerWidth;S!==v&&(v=S,this.root.updateBlockedByResize=!0,b&&b(),b=MM(E,250),Fc.hasAnimatedSinceResize&&(Fc.hasAnimatedSinceResize=!1,this.nodes.forEach(h8)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||g)&&this.addEventListener("didUpdate",({delta:b,hasLayoutChanged:v,hasRelativeLayoutChanged:E,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||p.getDefaultTransition()||FM,{onLayoutAnimationStart:T,onLayoutAnimationComplete:M}=p.getProps(),j=!this.targetLayout||!nb(this.targetLayout,S),C=!v&&E;if(this.options.layoutRoot||this.resumeFrom||C||v&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const D={...v1(w,"layout"),onPlay:T,onComplete:M};(p.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D),this.setAnimationOrigin(b,C)}else v||h8(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(),ui(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(BM),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&&ib(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){const v=this.path[b];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:h,layout:g}=this.options;if(h===void 0&&!g)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const g=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),g&&this.nodes.forEach(LM),this.nodes.forEach(d8);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(f8);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(kM),this.nodes.forEach(VM),this.nodes.forEach(NM),this.nodes.forEach(jM)):this.nodes.forEach(f8),this.clearAllSnapshots();const h=Un.now();Rn.delta=ar(0,1e3/60,h-Rn.timestamp),Rn.timestamp=h,Rn.isProcessing=!0,V0.update.process(Rn),V0.preRender.process(Rn),V0.render.process(Rn),Rn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,A1.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(OM),this.sharedNodes.forEach(UM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Zn(this.snapshot.measuredBox.x)&&!Zn(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 g=0;g<this.path.length;g++)this.path[g].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=xn()),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 g=s(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:g,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!tb(this.projectionDelta),g=this.getTransformTemplate(),p=g?g(this.latestValues,""):void 0,b=p!==this.prevTransformTemplateValue;u&&this.instance&&(h||Di(this.latestValues)||b)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const h=this.measurePageBox();let g=this.removeElementScroll(h);return u&&(g=this.removeTransform(g)),IM(g),{animationId:this.root.animationId,measuredBox:h,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:u}=this.options;if(!u)return xn();const h=u.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(GM))){const{scroll:b}=this.root;b&&(Wa(h.x,b.offset.x),Wa(h.y,b.offset.y))}return h}removeElementScroll(u){var g;const h=xn();if(ka(h,u),(g=this.scroll)!=null&&g.wasRoot)return h;for(let p=0;p<this.path.length;p++){const b=this.path[p],{scroll:v,options:E}=b;b!==this.root&&v&&E.layoutScroll&&(v.wasRoot&&ka(h,u),Wa(h.x,v.offset.x),Wa(h.y,v.offset.y))}return h}applyTransform(u,h=!1,g){var b,v;const p=g||xn();ka(p,u);for(let E=0;E<this.path.length;E++){const S=this.path[E];!h&&S.options.layoutScroll&&S.scroll&&S!==S.root&&(Wa(p.x,-S.scroll.offset.x),Wa(p.y,-S.scroll.offset.y)),Di(S.latestValues)&&Zc(p,S.latestValues,(b=S.layout)==null?void 0:b.layoutBox)}return Di(this.latestValues)&&Zc(p,this.latestValues,(v=this.layout)==null?void 0:v.layoutBox),p}removeTransform(u){var g;const h=xn();ka(h,u);for(let p=0;p<this.path.length;p++){const b=this.path[p];if(!Di(b.latestValues))continue;let v;b.instance&&(Of(b.latestValues)&&b.updateSnapshot(),v=xn(),ka(v,b.measurePageBox())),n8(h,b.latestValues,(g=b.snapshot)==null?void 0:g.layoutBox,v)}return Di(this.latestValues)&&n8(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!==Rn.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 g=!!this.resumingFrom||this!==h;if(!(u||g&&this.isSharedProjectionDirty||this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:b,layoutId:v}=this.options;if(!this.layout||!(b||v))return;this.resolvedRelativeTargetAt=Rn.timestamp;const E=this.getClosestProjectingParent();E&&this.linkedParentVersion!==E.layoutVersion&&!E.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&E&&E.layout?this.createRelativeTarget(E,this.layout.layoutBox,E.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=xn(),this.targetWithTransforms=xn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),fM(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ka(this.target,this.layout.layoutBox),F6(this.target,this.targetDelta)):ka(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?this.createRelativeTarget(E,this.target,E.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Of(this.parent.latestValues)||P6(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,g){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xn(),this.relativeTargetOrigin=xn(),ru(this.relativeTargetOrigin,h,g,this.options.layoutAnchor||void 0),ka(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const u=this.getLead(),h=!!this.resumingFrom||this!==u;let g=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(g=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===Rn.timestamp&&(g=!1),g)return;const{layout:p,layoutId:b}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||b))return;ka(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,E=this.treeScale.y;ZA(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=xn());const{target:S}=u;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Xg(this.prevProjectionDelta.x,this.projectionDelta.x),Xg(this.prevProjectionDelta.y,this.projectionDelta.y)),Il(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==E||!l8(this.projectionDelta.x,this.prevProjectionDelta.x)||!l8(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 g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=As(),this.projectionDelta=As(),this.projectionDeltaWithTransform=As()}setAnimationOrigin(u,h=!1){const g=this.snapshot,p=g?g.latestValues:{},b={...this.latestValues},v=As();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const E=xn(),S=g?g.source:void 0,w=this.layout?this.layout.source:void 0,T=S!==w,M=this.getStack(),j=!M||M.members.length<=1,C=!!(T&&!j&&this.options.crossfade===!0&&!this.path.some(PM));this.animationProgress=0;let D;this.mixTargetDelta=H=>{const U=H/1e3;m8(v.x,u.x,U),m8(v.y,u.y,U),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ru(E,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),ZM(this.relativeTarget,this.relativeTargetOrigin,E,U),D&&gM(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=xn()),ka(D,this.relativeTarget)),T&&(this.animationValues=b,vM(b,p,this.latestValues,U,C,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var h,g,p;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(p=(g=this.resumingFrom)==null?void 0:g.currentAnimation)==null||p.stop(),this.pendingAnimation&&(ui(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zt.update(()=>{Fc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ns(0)),this.motionValue.jump(0,!1),this.currentAnimation=SM(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:b=>{this.mixTargetDelta(b),u.onUpdate&&u.onUpdate(b)},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(CM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:h,target:g,layout:p,latestValues:b}=u;if(!(!h||!g||!p)){if(this!==u&&this.layout&&p&&lb(this.options.animationType,this.layout.layoutBox,p.layoutBox)){g=this.target||xn();const v=Zn(this.layout.layoutBox.x);g.x.min=u.target.x.min,g.x.max=g.x.min+v;const E=Zn(this.layout.layoutBox.y);g.y.min=u.target.y.min,g.y.max=g.y.min+E}ka(h,g),Zc(h,b),Il(this.projectionDeltaWithTransform,this.layoutCorrected,h,b)}}registerSharedNode(u,h){this.sharedNodes.has(u)||this.sharedNodes.set(u,new TM),this.sharedNodes.get(u).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.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:g}={}){const p=this.getStack();p&&p.promote(this,g),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:g}=u;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(h=!0),!h)return;const p={};g.z&&G0("z",u,p,this.animationValues);for(let b=0;b<I0.length;b++)G0(`rotate${I0[b]}`,u,p,this.animationValues),G0(`skew${I0[b]}`,u,p,this.animationValues);u.render();for(const b in p)u.setStaticValue(b,p[b]),this.animationValues&&(this.animationValues[b]=p[b]);u.scheduleRender()}applyProjectionStyles(u,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=Pc(h==null?void 0:h.pointerEvents)||"",u.transform=g?g(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=Pc(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Di(this.latestValues)&&(u.transform=g?g({},""):"none",this.hasProjected=!1);return}u.visibility="";const b=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=yM(this.projectionDeltaWithTransform,this.treeScale,b);g&&(v=g(b,v)),u.transform=v;const{x:E,y:S}=this.projectionDelta;u.transformOrigin=`${E.origin*100}% ${S.origin*100}% 0`,p.animationValues?u.opacity=p===this?b.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:u.opacity=p===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const w in kf){if(b[w]===void 0)continue;const{correct:T,applyTo:M,isCSSVariable:j}=kf[w],C=v==="none"?b[w]:T(b[w],p);if(M){const D=M.length;for(let H=0;H<D;H++)u[M[H]]=C}else j?this.options.visualElement.renderState.vars[w]=C:u[w]=C}this.options.layoutId&&(u.pointerEvents=p===this?Pc(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(d8),this.root.sharedNodes.clear()}}}function NM(t){t.updateLayout()}function jM(t){var i;const a=((i=t.resumeFrom)==null?void 0:i.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&a&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=t.layout,{animationType:c}=t.options,u=a.source!==t.layout.source;if(c==="size")Ja(v=>{const E=u?a.measuredBox[v]:a.layoutBox[v],S=Zn(E);E.min=s[v].min,E.max=E.min+S});else if(c==="x"||c==="y"){const v=c==="x"?"y":"x";Vf(u?a.measuredBox[v]:a.layoutBox[v],s[v])}else lb(c,a.layoutBox,s)&&Ja(v=>{const E=u?a.measuredBox[v]:a.layoutBox[v],S=Zn(s[v]);E.max=E.min+S,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[v].max=t.relativeTarget[v].min+S)});const h=As();Il(h,s,a.layoutBox);const g=As();u?Il(g,t.applyTransform(o,!0),a.measuredBox):Il(g,s,a.layoutBox);const p=!tb(h);let b=!1;if(!t.resumeFrom){const v=t.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:E,layout:S}=v;if(E&&S){const w=t.options.layoutAnchor||void 0,T=xn();ru(T,a.layoutBox,E.layoutBox,w);const M=xn();ru(M,s,S.layoutBox,w),nb(T,M)||(b=!0),v.options.layoutRoot&&(t.relativeTarget=M,t.relativeTargetOrigin=T,t.relativeParent=v)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:g,layoutDelta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:b})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function _M(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function DM(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function OM(t){t.clearSnapshot()}function d8(t){t.clearMeasurements()}function LM(t){t.isLayoutDirty=!0,t.updateLayout()}function f8(t){t.isLayoutDirty=!1}function kM(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function VM(t){const{visualElement:a}=t.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),t.resetTransform()}function h8(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function HM(t){t.resolveTargetDelta()}function zM(t){t.calcProjection()}function BM(t){t.resetSkewAndRotation()}function UM(t){t.removeLeadSnapshot()}function m8(t,a,i){t.translate=It(a.translate,0,i),t.scale=It(a.scale,1,i),t.origin=a.origin,t.originPoint=a.originPoint}function p8(t,a,i,s){t.min=It(a.min,i.min,s),t.max=It(a.max,i.max,s)}function ZM(t,a,i,s){p8(t.x,a.x,i.x,s),p8(t.y,a.y,i.y,s)}function PM(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const FM={duration:.45,ease:[.4,0,.1,1]},g8=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),y8=g8("applewebkit/")&&!g8("chrome/")?Math.round:Ca;function b8(t){t.min=y8(t.min),t.max=y8(t.max)}function IM(t){b8(t.x),b8(t.y)}function lb(t,a,i){return t==="position"||t==="preserve-aspect"&&!dM(s8(a),s8(i),.2)}function GM(t){var a;return t!==t.root&&((a=t.scroll)==null?void 0:a.wasRoot)}const $M=sb({attachResizeListener:(t,a)=>Wl(t,"resize",a),measureScroll:()=>{var t,a;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((a=document.body)==null?void 0:a.scrollTop)||0}},checkIsScrollRoot:()=>!0}),$0={current:void 0},ob=sb({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!$0.current){const t=new $M({});t.mount(window),t.setOptions({layoutScroll:!0}),$0.current=t}return $0.current},resetTransform:(t,a)=>{t.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),_1=d.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function v8(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function qM(...t){return a=>{let i=!1;const s=t.map(o=>{const c=v8(o,a);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let o=0;o<s.length;o++){const c=s[o];typeof c=="function"?c():v8(t[o],null)}}}}function KM(...t){return d.useCallback(qM(...t),t)}class YM extends d.Component{getSnapshotBeforeUpdate(a){const i=this.props.childRef.current;if(Hc(i)&&a.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=i.offsetParent,o=Hc(s)&&s.offsetWidth||0,c=Hc(s)&&s.offsetHeight||0,u=getComputedStyle(i),h=this.props.sizeRef.current;h.height=parseFloat(u.height),h.width=parseFloat(u.width),h.top=i.offsetTop,h.left=i.offsetLeft,h.right=o-h.width-h.left,h.bottom=c-h.height-h.top}return null}componentDidUpdate(){}render(){return this.props.children}}function XM({children:t,isPresent:a,anchorX:i,anchorY:s,root:o,pop:c}){var E;const u=d.useId(),h=d.useRef(null),g=d.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=d.useContext(_1),b=((E=t.props)==null?void 0:E.ref)??(t==null?void 0:t.ref),v=KM(h,b);return d.useInsertionEffect(()=>{const{width:S,height:w,top:T,left:M,right:j,bottom:C}=g.current;if(a||c===!1||!h.current||!S||!w)return;const D=i==="left"?`left: ${M}`:`right: ${j}`,H=s==="bottom"?`bottom: ${C}`:`top: ${T}`;h.current.dataset.motionPopId=u;const U=document.createElement("style");p&&(U.nonce=p);const te=o??document.head;return te.appendChild(U),U.sheet&&U.sheet.insertRule(`
|
|
70
|
+
[data-motion-pop-id="${u}"] {
|
|
71
|
+
position: absolute !important;
|
|
72
|
+
width: ${S}px !important;
|
|
73
|
+
height: ${w}px !important;
|
|
74
|
+
${D}px !important;
|
|
75
|
+
${H}px !important;
|
|
76
|
+
}
|
|
77
|
+
`),()=>{var ne;(ne=h.current)==null||ne.removeAttribute("data-motion-pop-id"),te.contains(U)&&te.removeChild(U)}},[a]),y.jsx(YM,{isPresent:a,childRef:h,sizeRef:g,pop:c,children:c===!1?t:d.cloneElement(t,{ref:v})})}const QM=({children:t,initial:a,isPresent:i,onExitComplete:s,custom:o,presenceAffectsLayout:c,mode:u,anchorX:h,anchorY:g,root:p})=>{const b=s1(JM),v=d.useId();let E=!0,S=d.useMemo(()=>(E=!1,{id:v,initial:a,isPresent:i,custom:o,onExitComplete:w=>{b.set(w,!0);for(const T of b.values())if(!T)return;s&&s()},register:w=>(b.set(w,!1),()=>b.delete(w))}),[i,b,s]);return c&&E&&(S={...S}),d.useMemo(()=>{b.forEach((w,T)=>b.set(T,!1))},[i]),d.useEffect(()=>{!i&&!b.size&&s&&s()},[i]),t=y.jsx(XM,{pop:u==="popLayout",isPresent:i,anchorX:h,anchorY:g,root:p,children:t}),y.jsx(hu.Provider,{value:S,children:t})};function JM(){return new Map}function cb(t=!0){const a=d.useContext(hu);if(a===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:o}=a,c=d.useId();d.useEffect(()=>{if(t)return o(c)},[t]);const u=d.useCallback(()=>t&&s&&s(c),[c,s,t]);return!i&&s?[!1,u]:[!0]}const Tc=t=>t.key||"";function x8(t){const a=[];return d.Children.forEach(t,i=>{d.isValidElement(i)&&a.push(i)}),a}const WM=({children:t,custom:a,initial:i=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:c="sync",propagate:u=!1,anchorX:h="left",anchorY:g="top",root:p})=>{const[b,v]=cb(u),E=d.useMemo(()=>x8(t),[t]),S=u&&!b?[]:E.map(Tc),w=d.useRef(!0),T=d.useRef(E),M=s1(()=>new Map),j=d.useRef(new Set),[C,D]=d.useState(E),[H,U]=d.useState(E);Vy(()=>{w.current=!1,T.current=E;for(let _=0;_<H.length;_++){const ae=Tc(H[_]);S.includes(ae)?(M.delete(ae),j.current.delete(ae)):M.get(ae)!==!0&&M.set(ae,!1)}},[H,S.length,S.join("-")]);const te=[];if(E!==C){let _=[...E];for(let ae=0;ae<H.length;ae++){const ie=H[ae],oe=Tc(ie);S.includes(oe)||(_.splice(ae,0,ie),te.push(ie))}return c==="wait"&&te.length&&(_=te),U(x8(_)),D(E),null}const{forceRender:ne}=d.useContext(i1);return y.jsx(y.Fragment,{children:H.map(_=>{const ae=Tc(_),ie=u&&!b?!1:E===H||S.includes(ae),oe=()=>{if(j.current.has(ae))return;if(M.has(ae))j.current.add(ae),M.set(ae,!0);else return;let J=!0;M.forEach(ge=>{ge||(J=!1)}),J&&(ne==null||ne(),U(T.current),u&&(v==null||v()),s&&s())};return y.jsx(QM,{isPresent:ie,initial:!w.current||i?void 0:!1,custom:a,presenceAffectsLayout:o,mode:c,root:p,onExitComplete:ie?void 0:oe,anchorX:h,anchorY:g,children:_},ae)})})},ub=d.createContext({strict:!1}),E8={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 S8=!1;function eT(){if(S8)return;const t={};for(const a in E8)t[a]={isEnabled:i=>E8[a].some(s=>!!i[s])};B6(t),S8=!0}function db(){return eT(),HA()}function tT(t){const a=db();for(const i in t)a[i]={...a[i],...t[i]};B6(a)}const nT=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 iu(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nT.has(t)}let fb=t=>!iu(t);function aT(t){typeof t=="function"&&(fb=a=>a.startsWith("on")?!iu(a):t(a))}try{aT(require("@emotion/is-prop-valid").default)}catch{}function rT(t,a,i){const s={};for(const o in t)o==="values"&&typeof t.values=="object"||Nn(t[o])||(fb(o)||i===!0&&iu(o)||!a&&!iu(o)||t.draggable&&o.startsWith("onDrag"))&&(s[o]=t[o]);return s}const yu=d.createContext({});function iT(t,a){if(gu(t)){const{initial:i,animate:s}=t;return{initial:i===!1||Jl(i)?i:void 0,animate:Jl(s)?s:void 0}}return t.inherit!==!1?a:{}}function sT(t){const{initial:a,animate:i}=iT(t,d.useContext(yu));return d.useMemo(()=>({initial:a,animate:i}),[w8(a),w8(i)])}function w8(t){return Array.isArray(t)?t.join(" "):t}const D1=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function hb(t,a,i){for(const s in a)!Nn(a[s])&&!$6(s,i)&&(t[s]=a[s])}function lT({transformTemplate:t},a){return d.useMemo(()=>{const i=D1();return N1(i,a,t),Object.assign({},i.vars,i.style)},[a])}function oT(t,a){const i=t.style||{},s={};return hb(s,i,t),Object.assign(s,lT(t,a)),s}function cT(t,a){const i={},s=oT(t,a);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i}const mb=()=>({...D1(),attrs:{}});function uT(t,a,i,s){const o=d.useMemo(()=>{const c=mb();return q6(c,a,Y6(s),t.transformTemplate,t.style),{...c.attrs,style:{...c.style}}},[a]);if(t.style){const c={};hb(c,t.style,t),o.style={...c,...o.style}}return o}const dT=["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 O1(t){return typeof t!="string"||t.includes("-")?!1:!!(dT.indexOf(t)>-1||/[A-Z]/u.test(t))}function fT(t,a,i,{latestValues:s},o,c=!1,u){const g=(u??O1(t)?uT:cT)(a,s,o,t),p=rT(a,typeof t=="string",c),b=t!==d.Fragment?{...p,...g,ref:i}:{},{children:v}=a,E=d.useMemo(()=>Nn(v)?v.get():v,[v]);return d.createElement(t,{...b,children:E})}function hT({scrapeMotionValuesFromProps:t,createRenderState:a},i,s,o){return{latestValues:mT(i,s,o,t),renderState:a()}}function mT(t,a,i,s){const o={},c=s(t,{});for(const E in c)o[E]=Pc(c[E]);let{initial:u,animate:h}=t;const g=gu(t),p=H6(t);a&&p&&!g&&t.inherit!==!1&&(u===void 0&&(u=a.initial),h===void 0&&(h=a.animate));let b=i?i.initial===!1:!1;b=b||u===!1;const v=b?h:u;if(v&&typeof v!="boolean"&&!pu(v)){const E=Array.isArray(v)?v:[v];for(let S=0;S<E.length;S++){const w=E1(t,E[S]);if(w){const{transitionEnd:T,transition:M,...j}=w;for(const C in j){let D=j[C];if(Array.isArray(D)){const H=b?D.length-1:0;D=D[H]}D!==null&&(o[C]=D)}for(const C in T)o[C]=T[C]}}}return o}const pb=t=>(a,i)=>{const s=d.useContext(yu),o=d.useContext(hu),c=()=>hT(t,a,s,o);return i?c():s1(c)},pT=pb({scrapeMotionValuesFromProps:j1,createRenderState:D1}),gT=pb({scrapeMotionValuesFromProps:X6,createRenderState:mb}),yT=Symbol.for("motionComponentSymbol");function bT(t,a,i){const s=d.useRef(i);d.useInsertionEffect(()=>{s.current=i});const o=d.useRef(null);return d.useCallback(c=>{var h;c&&((h=t.onMount)==null||h.call(t,c));const u=s.current;if(typeof u=="function")if(c){const g=u(c);typeof g=="function"&&(o.current=g)}else o.current?(o.current(),o.current=null):u(c);else u&&(u.current=c);a&&(c?a.mount(c):a.unmount())},[a])}const gb=d.createContext({});function bs(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function vT(t,a,i,s,o,c){var D,H;const{visualElement:u}=d.useContext(yu),h=d.useContext(ub),g=d.useContext(hu),p=d.useContext(_1),b=p.reducedMotion,v=p.skipAnimations,E=d.useRef(null),S=d.useRef(!1);s=s||h.renderer,!E.current&&s&&(E.current=s(t,{visualState:a,parent:u,props:i,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:b,skipAnimations:v,isSVG:c}),S.current&&E.current&&(E.current.manuallyAnimateOnMount=!0));const w=E.current,T=d.useContext(gb);w&&!w.projection&&o&&(w.type==="html"||w.type==="svg")&&xT(E.current,i,o,T);const M=d.useRef(!1);d.useInsertionEffect(()=>{w&&M.current&&w.update(i,g)});const j=i[A6],C=d.useRef(!!j&&typeof window<"u"&&!((D=window.MotionHandoffIsComplete)!=null&&D.call(window,j))&&((H=window.MotionHasOptimisedAnimation)==null?void 0:H.call(window,j)));return Vy(()=>{S.current=!0,w&&(M.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 U;(U=window.MotionHandoffMarkAsComplete)==null||U.call(window,j)}),C.current=!1),w.enteringChildren=void 0)}),w}function xT(t,a,i,s){const{layoutId:o,layout:c,drag:u,dragConstraints:h,layoutScroll:g,layoutRoot:p,layoutAnchor:b,layoutCrossfade:v}=a;t.projection=new i(t.latestValues,a["data-framer-portal-id"]?void 0:yb(t.parent)),t.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!u||h&&bs(h),visualElement:t,animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,crossfade:v,layoutScroll:g,layoutRoot:p,layoutAnchor:b})}function yb(t){if(t)return t.options.allowProjection!==!1?t.projection:yb(t.parent)}function q0(t,{forwardMotionProps:a=!1,type:i}={},s,o){s&&tT(s);const c=i?i==="svg":O1(t),u=c?gT:pT;function h(p,b){let v;const E={...d.useContext(_1),...p,layoutId:ET(p)},{isStatic:S}=E,w=sT(p),T=u(p,S);if(!S&&typeof window<"u"){ST();const M=wT(E);v=M.MeasureLayout,w.visualElement=vT(t,T,E,o,M.ProjectionNode,c)}return y.jsxs(yu.Provider,{value:w,children:[v&&w.visualElement?y.jsx(v,{visualElement:w.visualElement,...E}):null,fT(t,p,bT(T,w.visualElement,b),T,S,a,c)]})}h.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const g=d.forwardRef(h);return g[yT]=t,g}function ET({layoutId:t}){const a=d.useContext(i1).id;return a&&t!==void 0?a+"-"+t:t}function ST(t,a){d.useContext(ub).strict}function wT(t){const a=db(),{drag:i,layout:s}=a;if(!i&&!s)return{};const o={...i,...s};return{MeasureLayout:i!=null&&i.isEnabled(t)||s!=null&&s.isEnabled(t)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function AT(t,a){if(typeof Proxy>"u")return q0;const i=new Map,s=(c,u)=>q0(c,u,t,a),o=(c,u)=>s(c,u);return new Proxy(o,{get:(c,u)=>u==="create"?s:(i.has(u)||i.set(u,q0(u,void 0,t,a)),i.get(u))})}const MT=(t,a)=>a.isSVG??O1(t)?new eM(a):new KA(a,{allowProjection:t!==d.Fragment});class TT extends di{constructor(a){super(a),a.animationState||(a.animationState=iM(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();pu(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:i}=this.node.prevProps||{};a!==i&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let CT=0;class RT extends di{constructor(){super(...arguments),this.id=CT++,this.isExitComplete=!1}update(){var c;if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===s)return;if(a&&s===!1){if(this.isExitComplete){const{initial:u,custom:h}=this.node.getProps();if(typeof u=="string"){const g=zi(this.node,u,h);if(g){const{transition:p,transitionEnd:b,...v}=g;for(const E in v)(c=this.node.getValue(E))==null||c.jump(v[E])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const o=this.node.animationState.setActive("exit",!a);i&&!a&&o.then(()=>{this.isExitComplete=!0,i(this.id)})}mount(){const{register:a,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const NT={animation:{Feature:TT},exit:{Feature:RT}};function uo(t){return{point:{x:t.pageX,y:t.pageY}}}const jT=t=>a=>M1(a)&&t(a,uo(a));function Gl(t,a,i,s){return Wl(t,a,jT(i),s)}const bb=({current:t})=>t?t.ownerDocument.defaultView:null,A8=(t,a)=>Math.abs(t-a);function _T(t,a){const i=A8(t.x,a.x),s=A8(t.y,a.y);return Math.sqrt(i**2+s**2)}const M8=new Set(["auto","scroll"]);class vb{constructor(a,i,{transformPagePoint:s,contextWindow:o=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=Cc(this.lastRawMoveEventInfo,this.transformPagePoint));const S=K0(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,T=_T(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!T)return;const{point:M}=S,{timestamp:j}=Rn;this.history.push({...M,timestamp:j});const{onStart:C,onMove:D}=this.handlers;w||(C&&C(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),D&&D(this.lastMoveEvent,S)},this.handlePointerMove=(S,w)=>{this.lastMoveEvent=S,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Cc(w,this.transformPagePoint),zt.update(this.updatePoint,!0)},this.handlePointerUp=(S,w)=>{this.end();const{onEnd:T,onSessionEnd:M,resumeAnimation:j}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&j&&j(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=K0(S.type==="pointercancel"?this.lastMoveEventInfo:Cc(w,this.transformPagePoint),this.history);this.startEvent&&T&&T(S,C),M&&M(S,C)},!M1(a))return;this.dragSnapToOrigin=c,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=u,this.contextWindow=o||window;const g=uo(a),p=Cc(g,this.transformPagePoint),{point:b}=p,{timestamp:v}=Rn;this.history=[{...b,timestamp:v}];const{onSessionStart:E}=i;E&&E(a,K0(p,this.history)),this.removeListeners=lo(Gl(this.contextWindow,"pointermove",this.handlePointerMove),Gl(this.contextWindow,"pointerup",this.handlePointerUp),Gl(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(a){let i=a.parentElement;for(;i;){const s=getComputedStyle(i);(M8.has(s.overflowX)||M8.has(s.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.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(a){const i=this.scrollPositions.get(a);if(!i)return;const s=a===window,o=s?{x:window.scrollX,y:window.scrollY}:{x:a.scrollLeft,y:a.scrollTop},c={x:o.x-i.x,y:o.y-i.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(a,o),zt.update(this.updatePoint,!0))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ui(this.updatePoint)}}function Cc(t,a){return a?{point:a(t.point)}:t}function T8(t,a){return{x:t.x-a.x,y:t.y-a.y}}function K0({point:t},a){return{point:t,delta:T8(t,xb(a)),offset:T8(t,DT(a)),velocity:OT(a,.1)}}function DT(t){return t[0]}function xb(t){return t[t.length-1]}function OT(t,a){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null;const o=xb(t);for(;i>=0&&(s=t[i],!(o.timestamp-s.timestamp>ca(a)));)i--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&o.timestamp-s.timestamp>ca(a)*2&&(s=t[1]);const c=Ma(o.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const u={x:(o.x-s.x)/c,y:(o.y-s.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function LT(t,{min:a,max:i},s){return a!==void 0&&t<a?t=s?It(a,t,s.min):Math.max(t,a):i!==void 0&&t>i&&(t=s?It(i,t,s.max):Math.min(t,i)),t}function C8(t,a,i){return{min:a!==void 0?t.min+a:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function kT(t,{top:a,left:i,bottom:s,right:o}){return{x:C8(t.x,i,o),y:C8(t.y,a,s)}}function R8(t,a){let i=a.min-t.min,s=a.max-t.max;return a.max-a.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function VT(t,a){return{x:R8(t.x,a.x),y:R8(t.y,a.y)}}function HT(t,a){let i=.5;const s=Zn(t),o=Zn(a);return o>s?i=Xl(a.min,a.max-s,t.min):s>o&&(i=Xl(t.min,t.max-o,a.min)),ar(0,1,i)}function zT(t,a){const i={};return a.min!==void 0&&(i.min=a.min-t.min),a.max!==void 0&&(i.max=a.max-t.min),i}const Hf=.35;function BT(t=Hf){return t===!1?t=0:t===!0&&(t=Hf),{x:N8(t,"left","right"),y:N8(t,"top","bottom")}}function N8(t,a,i){return{min:j8(t,a),max:j8(t,i)}}function j8(t,a){return typeof t=="number"?t:t[a]||0}const UT=new WeakMap;class ZT{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=v=>{i&&this.snapToCursor(uo(v).point),this.stopAnimation()},u=(v,E)=>{const{drag:S,dragPropagation:w,onDragStart:T}=this.getProps();if(S&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hA(S),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=E,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ja(j=>{let C=this.getAxisMotionValue(j).get()||0;if(tr.test(C)){const{projection:D}=this.visualElement;if(D&&D.layout){const H=D.layout.layoutBox[j];H&&(C=Zn(H)*(parseFloat(C)/100))}}this.originPoint[j]=C}),T&&zt.update(()=>T(v,E),!1,!0),Rf(this.visualElement,"transform");const{animationState:M}=this.visualElement;M&&M.setActive("whileDrag",!0)},h=(v,E)=>{this.latestPointerEvent=v,this.latestPanInfo=E;const{dragPropagation:S,dragDirectionLock:w,onDirectionLock:T,onDrag:M}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:j}=E;if(w&&this.currentDirection===null){this.currentDirection=FT(j),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",E.point,j),this.updateAxis("y",E.point,j),this.visualElement.render(),M&&zt.update(()=>M(v,E),!1,!0)},g=(v,E)=>{this.latestPointerEvent=v,this.latestPanInfo=E,this.stop(v,E),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:b}=this.getProps();this.panSession=new vb(a,{onSessionStart:c,onStart:u,onMove:h,onSessionEnd:g,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,distanceThreshold:s,contextWindow:bb(this.visualElement),element:this.visualElement.current})}stop(a,i){const s=a||this.latestPointerEvent,o=i||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!s)return;const{velocity:u}=o;this.startAnimation(u);const{onDragEnd:h}=this.getProps();h&&zt.postRender(()=>h(s,o))}cancel(){this.isDragging=!1;const{projection:a,animationState:i}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(a,i,s){const{drag:o}=this.getProps();if(!s||!Rc(a,o,this.currentDirection))return;const c=this.getAxisMotionValue(a);let u=this.originPoint[a]+s[a];this.constraints&&this.constraints[a]&&(u=LT(u,this.constraints[a],this.elastic[a])),c.set(u)}resolveConstraints(){var c;const{dragConstraints:a,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,o=this.constraints;a&&bs(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&s?this.constraints=kT(s.layoutBox,a):this.constraints=!1,this.elastic=BT(i),o!==this.constraints&&!bs(a)&&s&&this.constraints&&!this.hasMutatedConstraints&&Ja(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=zT(s.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:i}=this.getProps();if(!a||!bs(a))return!1;const s=a.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=PA(s,o.root,this.visualElement.getTransformPagePoint());let u=VT(o.layout.layoutBox,c);if(i){const h=i(BA(u));this.hasMutatedConstraints=!!h,h&&(u=Z6(h))}return u}startAnimation(a){const{drag:i,dragMomentum:s,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:h}=this.getProps(),g=this.constraints||{},p=Ja(b=>{if(!Rc(b,i,this.currentDirection))return;let v=g&&g[b]||{};(u===!0||u===b)&&(v={min:0,max:0});const E=o?200:1e6,S=o?40:1e7,w={type:"inertia",velocity:s?a[b]:0,bounceStiffness:E,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...c,...v};return this.startAxisValueAnimation(b,w)});return Promise.all(p).then(h)}startAxisValueAnimation(a,i){const s=this.getAxisMotionValue(a);return Rf(this.visualElement,a),s.start(x1(a,s,0,i,this.visualElement,!1))}stopAnimation(){Ja(a=>this.getAxisMotionValue(a).stop())}getAxisMotionValue(a){const i=`_drag${a.toUpperCase()}`,s=this.visualElement.getProps(),o=s[i];return o||this.visualElement.getValue(a,(s.initial?s.initial[a]:void 0)||0)}snapToCursor(a){Ja(i=>{const{drag:s}=this.getProps();if(!Rc(i,s,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(i);if(o&&o.layout){const{min:u,max:h}=o.layout.layoutBox[i],g=c.get()||0;c.set(a[i]-It(u,h,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!bs(i)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ja(u=>{const h=this.getAxisMotionValue(u);if(h&&this.constraints!==!1){const g=h.get();o[u]=HT({min:g,max:g},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(),Ja(u=>{if(!Rc(u,a,null))return;const h=this.getAxisMotionValue(u),{min:g,max:p}=this.constraints[u];h.set(It(g,p,o[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;UT.set(this.visualElement,this);const a=this.visualElement.current,i=Gl(a,"pointerdown",p=>{const{drag:b,dragListener:v=!0}=this.getProps(),E=p.target,S=E!==a&&vA(E);b&&v&&!S&&this.start(p)});let s;const o=()=>{const{dragConstraints:p}=this.getProps();bs(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),s||(s=PT(a,p.current,()=>this.scalePositionWithinConstraints())))},{projection:c}=this.visualElement,u=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),zt.read(o);const h=Wl(window,"resize",()=>this.scalePositionWithinConstraints()),g=c.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:b})=>{this.isDragging&&b&&(Ja(v=>{const E=this.getAxisMotionValue(v);E&&(this.originPoint[v]+=p[v].translate,E.set(E.get()+p[v].translate))}),this.visualElement.render())}));return()=>{h(),i(),u(),g&&g(),s&&s()}}getProps(){const a=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=Hf,dragMomentum:h=!0}=a;return{...a,drag:i,dragDirectionLock:s,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:h}}}function _8(t){let a=!0;return()=>{if(a){a=!1;return}t()}}function PT(t,a,i){const s=zg(t,_8(i)),o=zg(a,_8(i));return()=>{s(),o()}}function Rc(t,a,i){return(a===!0||a===t)&&(i===null||i===t)}function FT(t,a=10){let i=null;return Math.abs(t.y)>a?i="y":Math.abs(t.x)>a&&(i="x"),i}class IT extends di{constructor(a){super(a),this.removeGroupControls=Ca,this.removeListeners=Ca,this.controls=new ZT(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ca}update(){const{dragControls:a}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};a!==i&&(this.removeGroupControls(),a&&(this.removeGroupControls=a.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Y0=t=>(a,i)=>{t&&zt.update(()=>t(a,i),!1,!0)};class GT extends di{constructor(){super(...arguments),this.removePointerDownListener=Ca}onPointerDown(a){this.session=new vb(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bb(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:i,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:Y0(a),onStart:Y0(i),onMove:Y0(s),onEnd:(c,u)=>{delete this.session,o&&zt.postRender(()=>o(c,u))}}}mount(){this.removePointerDownListener=Gl(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let X0=!1;class $T extends d.Component{componentDidMount(){const{visualElement:a,layoutGroup:i,switchLayoutGroup:s,layoutId:o}=this.props,{projection:c}=a;c&&(i.group&&i.group.add(c),s&&s.register&&o&&s.register(c),X0&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Fc.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:i,visualElement:s,drag:o,isPresent:c}=this.props,{projection:u}=s;return u&&(u.isPresent=c,a.layoutDependency!==i&&u.setOptions({...u.options,layoutDependency:i}),X0=!0,o||a.layoutDependency!==i||i===void 0||a.isPresent!==c?u.willUpdate():this.safeToRemove(),a.isPresent!==c&&(c?u.promote():u.relegate()||zt.postRender(()=>{const h=u.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:a,layoutAnchor:i}=this.props,{projection:s}=a;s&&(s.options.layoutAnchor=i,s.root.didUpdate(),A1.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:o}=a;X0=!0,o&&(o.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function Eb(t){const[a,i]=cb(),s=d.useContext(i1);return y.jsx($T,{...t,layoutGroup:s,switchLayoutGroup:d.useContext(gb),isPresent:a,safeToRemove:i})}const qT={pan:{Feature:GT},drag:{Feature:IT,ProjectionNode:ob,MeasureLayout:Eb}};function D8(t,a,i){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",i==="Start");const o="onHover"+i,c=s[o];c&&zt.postRender(()=>c(a,uo(a)))}class KT extends di{mount(){const{current:a}=this.node;a&&(this.unmount=pA(a,(i,s)=>(D8(this.node,s,"Start"),o=>D8(this.node,o,"End"))))}unmount(){}}class YT extends di{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!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=lo(Wl(this.node.current,"focus",()=>this.onFocus()),Wl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function O8(t,a,i){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",i==="Start");const o="onTap"+(i==="End"?"":i),c=s[o];c&&zt.postRender(()=>c(a,uo(a)))}class XT extends di{mount(){const{current:a}=this.node;if(!a)return;const{globalTapTarget:i,propagate:s}=this.node.props;this.unmount=EA(a,(o,c)=>(O8(this.node,c,"Start"),(u,{success:h})=>O8(this.node,u,h?"End":"Cancel")),{useGlobalTarget:i,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const zf=new WeakMap,Q0=new WeakMap,QT=t=>{const a=zf.get(t.target);a&&a(t)},JT=t=>{t.forEach(QT)};function WT({root:t,...a}){const i=t||document;Q0.has(i)||Q0.set(i,{});const s=Q0.get(i),o=JSON.stringify(a);return s[o]||(s[o]=new IntersectionObserver(JT,{root:t,...a})),s[o]}function eC(t,a,i){const s=WT(a);return zf.set(t,i),s.observe(t),()=>{zf.delete(t),s.unobserve(t)}}const tC={some:0,all:1};class nC extends di{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var g;(g=this.stopObserver)==null||g.call(this);const{viewport:a={}}=this.node.getProps(),{root:i,margin:s,amount:o="some",once:c}=a,u={root:i?i.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:tC[o]},h=p=>{const{isIntersecting:b}=p;if(this.isInView===b||(this.isInView=b,c&&!b&&this.hasEnteredView))return;b&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",b);const{onViewportEnter:v,onViewportLeave:E}=this.node.getProps(),S=b?v:E;S&&S(p)};this.stopObserver=eC(this.node.current,u,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:a,prevProps:i}=this.node;["amount","margin","root"].some(aC(a,i))&&this.startObserver()}unmount(){var a;(a=this.stopObserver)==null||a.call(this),this.hasEnteredView=!1,this.isInView=!1}}function aC({viewport:t={}},{viewport:a={}}={}){return i=>t[i]!==a[i]}const rC={inView:{Feature:nC},tap:{Feature:XT},focus:{Feature:YT},hover:{Feature:KT}},iC={layout:{ProjectionNode:ob,MeasureLayout:Eb}},sC={...NT,...rC,...qT,...iC},lC=AT(sC,MT),sa=ir((t,a)=>({runs:new Map,activeRunId:null,isModalOpen:!1,startRun:(i,s,o,c)=>{t(u=>{const h=new Map(u.runs);return h.set(i,{runId:i,agentId:s,agentName:o,projectSlug:c,status:"queued",messages:[],startedAt:Date.now()}),{runs:h,activeRunId:i,isModalOpen:!0}})},appendMessage:(i,s)=>{t(o=>{const c=new Map(o.runs),u=c.get(i);return u&&(u.messages.push(s),u.status==="queued"&&(u.status="running"),c.set(i,u)),{runs:c}})},completeRun:(i,s)=>{t(o=>{const c=new Map(o.runs),u=c.get(i);return u&&(u.status="completed",u.completedAt=Date.now(),s&&(u.artefactSummary=s),c.set(i,u)),{runs:c}})},failRun:(i,s)=>{t(o=>{const c=new Map(o.runs),u=c.get(i);return u&&(u.status="failed",u.error=s,u.completedAt=Date.now(),c.set(i,u)),{runs:c}})},syncRun:(i,s)=>{t(o=>{const c=new Map(o.runs),u=c.get(i);return u?(c.set(i,{...u,...s}),{runs:c}):{runs:c}})},discardRun:i=>{t(s=>{const o=new Map(s.runs);return o.delete(i),{runs:o,activeRunId:s.activeRunId===i?null:s.activeRunId,isModalOpen:s.activeRunId===i?!1:s.isModalOpen}})},setActiveRunId:i=>t({activeRunId:i}),setModalOpen:i=>t({isModalOpen:i}),getRun:i=>a().runs.get(i),getAllRuns:()=>Array.from(a().runs.values()).sort((i,s)=>s.startedAt-i.startedAt)})),L8=[".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"],k8=50,oC=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 cC(t){const a=t.lastIndexOf(".");return a>=0?t.slice(a).toLowerCase():""}function V8(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(0)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}function Sb({files:t,onChange:a,showFileList:i=!0,projectSlug:s}){const o=d.useRef(null),[c,u]=d.useState(!1),[h,g]=d.useState(!1),[p,b]=d.useState(null),[v,E]=d.useState("none"),[S,w]=d.useState(!1),[T,M]=d.useState(null),[j,C]=d.useState(""),[D,H]=d.useState(""),[U,te]=d.useState(null);d.useEffect(()=>()=>{U&&URL.revokeObjectURL(U)},[U]);function ne(oe){var ge;if(!oe)return;const J=[];for(const he of Array.from(oe)){if(he.size>k8*1024*1024)continue;const xe="."+((ge=he.name.split(".").pop())==null?void 0:ge.toLowerCase());if(!L8.includes(xe)||t.some(Q=>Q.name===he.name))continue;const V=crypto.randomUUID();J.push({id:V,name:he.name,size:he.size,type:he.type}),JS(V,he)}if(J.length&&(a([...t,...J]),s)){const xe=Array.from(oe).filter(V=>J.some(Q=>Q.name===V.name));xe.length&&U9(s,xe).catch(()=>{})}}function _(oe){e7(oe),a(t.filter(J=>J.id!==oe))}async function ae(oe){const J=WS(oe.id);if(g(!0),b(oe),E("none"),M(null),C(""),H(""),U&&(URL.revokeObjectURL(U),te(null)),!J){M("Preview unavailable for this file in the current session. Re-attach the file to preview it.");return}w(!0);const ge=cC(oe.name);try{if(J.type.startsWith("image/")){const he=URL.createObjectURL(J);te(he),E("image");return}if(J.type.startsWith("audio/")){const he=URL.createObjectURL(J);te(he),E("audio");return}if(J.type.startsWith("video/")){const he=URL.createObjectURL(J);te(he),E("video");return}if(ge===".pdf"){const he=URL.createObjectURL(J);te(he),E("pdf");return}if(ge===".docx"){const xe=await(await Xc(()=>import("./index-BSj8C6Y3.js").then(V=>V.i),[])).convertToHtml({arrayBuffer:await J.arrayBuffer()});H(`<!doctype html><html><body style="font-family:ui-sans-serif,system-ui;padding:16px;line-height:1.5">${xe.value}</body></html>`),E("srcdoc");return}if(ge===".xlsx"||ge===".xls"){const he=await Xc(()=>import("./xlsx-CkFp8p6R.js"),[]),xe=he.read(await J.arrayBuffer(),{type:"array"}),V=xe.SheetNames[0],Q=xe.Sheets[V],K=he.utils.sheet_to_html(Q);H(`<!doctype html><html><body style="font-family:ui-sans-serif,system-ui;padding:12px">${K}</body></html>`),E("srcdoc");return}if(oC.has(ge)||J.type.startsWith("text/")){const he=await J.text(),xe=ge===".json"?JSON.stringify(JSON.parse(he),null,2):he;C(xe.slice(0,25e4)),E("text");return}M("This file type is attached successfully, but in-app preview is not available yet for this format.")}catch(he){const xe=he instanceof Error?he.message:"Unable to preview this file.";M(xe)}finally{w(!1)}}function ie(){g(!1),b(null),E("none"),M(null),C(""),H(""),U&&(URL.revokeObjectURL(U),te(null))}return y.jsxs("div",{className:"space-y-3 mt-4",children:[y.jsxs("div",{role:"button",tabIndex:0,"aria-label":"Upload knowledge base files — click or drag and drop",onClick:()=>{var oe;return(oe=o.current)==null?void 0:oe.click()},onKeyDown:oe=>{var J;(oe.key==="Enter"||oe.key===" ")&&((J=o.current)==null||J.click())},onDragOver:oe=>{oe.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:oe=>{oe.preventDefault(),u(!1),ne(oe.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:[y.jsx(j9,{size:24,className:c?"text-text-primary":"text-text-tertiary","aria-hidden":"true"}),y.jsxs("p",{className:"text-caption text-text-secondary text-center",children:["Drop files here or ",y.jsx("span",{className:"text-text-primary font-medium",children:"click to browse"})]}),y.jsxs("p",{className:"text-small text-text-tertiary",children:["Office, text, data, markup, code, and config files · max ",k8," MB"]})]}),y.jsx("input",{ref:o,type:"file",multiple:!0,accept:L8.join(","),className:"sr-only",tabIndex:-1,"aria-hidden":"true",onChange:oe=>ne(oe.target.files)}),i&&t.length>0&&y.jsx("ul",{role:"list","aria-label":"Knowledge base files",className:"space-y-1.5",children:t.map(oe=>y.jsxs("li",{className:`flex items-center gap-2.5 px-3 py-2 rounded-card border border-border
|
|
78
|
+
bg-card shadow-clay`,children:[y.jsx(v9,{size:14,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),y.jsx("span",{className:"flex-1 text-caption text-text-primary font-mono truncate",children:oe.name}),y.jsx("span",{className:"text-small text-text-tertiary flex-shrink-0",children:V8(oe.size)}),y.jsx("button",{onClick:J=>{J.stopPropagation(),ae(oe)},"aria-label":`Preview ${oe.name}`,className:`flex-shrink-0 text-text-tertiary hover:text-text-primary
|
|
79
|
+
transition-colors focus-visible:outline-none focus-visible:ring-2
|
|
80
|
+
focus-visible:ring-text-primary rounded`,children:y.jsx(b9,{size:12,weight:"bold","aria-hidden":"true"})}),y.jsx("button",{onClick:J=>{J.stopPropagation(),_(oe.id)},"aria-label":`Remove ${oe.name}`,className:`flex-shrink-0 text-text-tertiary hover:text-text-primary
|
|
81
|
+
transition-colors focus-visible:outline-none focus-visible:ring-2
|
|
82
|
+
focus-visible:ring-text-primary rounded`,children:y.jsx(t1,{size:12,weight:"bold","aria-hidden":"true"})})]},oe.id))}),h&&y.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":p?`Preview ${p.name}`:"File preview",children:y.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:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border",children:[y.jsxs("div",{className:"min-w-0",children:[y.jsx("p",{className:"text-body-standard font-medium text-text-primary truncate",children:p==null?void 0:p.name}),y.jsx("p",{className:"text-small text-text-tertiary",children:p?V8(p.size):""})]}),y.jsx("button",{type:"button",onClick:ie,className:"rounded-card border border-border px-3 py-1.5 text-small text-text-secondary hover:text-text-primary",children:"Close"})]}),y.jsxs("div",{className:"flex-1 overflow-auto p-4",children:[S&&y.jsx("p",{className:"text-small text-text-secondary",children:"Loading preview…"}),!S&&T&&y.jsx("p",{className:"text-small text-text-secondary",children:T}),!S&&!T&&v==="text"&&y.jsx("pre",{className:"whitespace-pre-wrap break-words text-small text-text-primary font-mono",children:j}),!S&&!T&&v==="srcdoc"&&y.jsx("iframe",{title:"Document preview",srcDoc:D,className:"w-full h-full min-h-[56vh] border border-border rounded-card",sandbox:""}),!S&&!T&&v==="pdf"&&U&&y.jsx("iframe",{title:"PDF preview",src:U,className:"w-full h-full min-h-[56vh] border border-border rounded-card"}),!S&&!T&&v==="image"&&U&&y.jsx("img",{src:U,alt:(p==null?void 0:p.name)??"Image preview",className:"max-w-full h-auto rounded-card border border-border"}),!S&&!T&&v==="audio"&&U&&y.jsx("audio",{controls:!0,src:U,className:"w-full"}),!S&&!T&&v==="video"&&U&&y.jsx("video",{controls:!0,src:U,className:"max-w-full h-auto rounded-card border border-border"})]})]})})]})}const uC=[[/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 dC(t){for(const[a,i]of uC)if(a.test(t))return i;return"ts"}function fC(t){const a=t.replace(/\s*[\-—]\s*[\w/ ]+$/,"").replace(/[^a-zA-Z0-9 ]/g,"").trim().split(/\s+/).map((s,o)=>o===0?s.toLowerCase():s.charAt(0).toUpperCase()+s.slice(1).toLowerCase()).join(""),i=dC(t);return/component|button|card|modal|drawer|header|footer|layout|page|screen|view/i.test(t)?`src/components/${a}.${i}`:/store|zustand/i.test(t)?`src/stores/${a}.${i}`:/hook|use[A-Z]/i.test(t)?`src/hooks/${a}.${i}`:/service|api|client|fetch/i.test(t)?`src/lib/${a}.${i}`:/type|interface|model|schema/i.test(t)?`src/types/${a}.${i}`:/route|router|navigation/i.test(t)?`src/router/${a}.${i}`:`src/${a}.${i}`}function hC(t){const a=[],i=/```(\w*)\n([\s\S]*?)```/g;let s;for(;(s=i.exec(t))!==null;){const o=s[1]||"text",c=s[2],u=c.split(`
|
|
83
|
+
`).find(h=>h.trim())??"";a.push({lang:o,code:c,firstLine:u})}return a}function mC(t){return/tsx?|jsx?|ts|js|css|scss|json|html|sh|bash|yaml|yml/i.test(t)}const pC=/(?:\*\*file(?:name)?:\*\*\s*`([^`]+)`|^\/\/\s*(src\/[^\s]+))/im;function gC(t){const a=pC.exec(t);return a?a[1]??a[2]??null:null}function H8(t){const a=/^(?:\/\/|#)\s*(src\/[^\s]+\.[a-z]+)/i.exec(t);return a?a[1]:null}function yC(t,a="Generated App"){const i={};for(const s of t){if(s.phase!==6)continue;const o=hC(s.content);if(o.length===0)continue;const c=gC(s.content)??H8(o[0].firstLine),u=c??fC(s.title),h=o.find(p=>mC(p.lang))??o[0];let g=h.code;!c&&H8(h.firstLine)&&(g=g.replace(/^[^\n]+\n/,"")),i[u]=g.trimEnd()}return i["package.json"]||(i["package.json"]=JSON.stringify({name:a.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)),i["vite.config.ts"]||(i["vite.config.ts"]=`import { defineConfig } from 'vite'
|
|
84
|
+
import react from '@vitejs/plugin-react'
|
|
85
|
+
|
|
86
|
+
export default defineConfig({
|
|
87
|
+
plugins: [react()],
|
|
88
|
+
})
|
|
89
|
+
`),i["index.html"]||(i["index.html"]=`<!doctype html>
|
|
90
|
+
<html lang="en">
|
|
91
|
+
<head>
|
|
92
|
+
<meta charset="UTF-8" />
|
|
93
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
94
|
+
<title>${a}</title>
|
|
95
|
+
</head>
|
|
96
|
+
<body>
|
|
97
|
+
<div id="root"></div>
|
|
98
|
+
<script type="module" src="/src/main.tsx"><\/script>
|
|
99
|
+
</body>
|
|
100
|
+
</html>
|
|
101
|
+
`),i["src/main.tsx"]||(i["src/main.tsx"]=`import { StrictMode } from 'react'
|
|
102
|
+
import { createRoot } from 'react-dom/client'
|
|
103
|
+
import App from './App'
|
|
104
|
+
|
|
105
|
+
createRoot(document.getElementById('root')!).render(
|
|
106
|
+
<StrictMode>
|
|
107
|
+
<App />
|
|
108
|
+
</StrictMode>,
|
|
109
|
+
)
|
|
110
|
+
`),i["tsconfig.json"]||(i["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)),i}const bC=d.lazy(()=>Xc(()=>import("./AppPreviewPanel-BHaogGvG.js"),[])),vC=[];function z8(t){switch(t){case"persona":return _9;case"journey-map":return M9;case"feature-tree":return N9;case"data-model":return x9;case"brief":return S9;case"extraction-ledger":return qc;case"competitive-analysis":return p9;case"insights":return of;case"flow":return y9;default:return sy}}function B8(t){switch(t){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 wb(t,a){const i=URL.createObjectURL(t),s=document.createElement("a");s.href=i,s.download=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)}function vs(t){return t.replace(/\\/g,"\\\\").replace(/{/g,"\\{").replace(/}/g,"\\}")}function J0(t){return vs(t).replace(/\*\*([^*]+)\*\*/g,"{\\b $1}").replace(/\*([^*]+)\*/g,"{\\i $1}")}function xC(t,a){const i=a.split(`
|
|
111
|
+
`);let s=`{\\pard\\sb240\\sa120\\b\\fs36 ${vs(t)}\\b0\\par
|
|
112
|
+
\\pard\\par
|
|
113
|
+
`;for(const o of i)o.startsWith("## ")?s+=`\\pard\\sb240\\sa100\\b\\fs28 ${vs(o.slice(3))}\\b0\\par
|
|
114
|
+
`:o.startsWith("### ")?s+=`\\pard\\sb160\\sa80\\b\\fs24 ${vs(o.slice(4))}\\b0\\par
|
|
115
|
+
`:o.startsWith("#### ")?s+=`\\pard\\sb120\\sa60\\b\\fs22 ${vs(o.slice(5))}\\b0\\par
|
|
116
|
+
`:o.startsWith("- ")||o.startsWith("* ")?s+=`\\pard\\li360\\fi-180\\sa60\\bullet\\tx360 ${J0(o.slice(2))}\\par
|
|
117
|
+
`:/^\d+\. /.test(o)?s+=`\\pard\\li360\\sa60 ${J0(o.replace(/^\d+\. /,""))}\\par
|
|
118
|
+
`:o.startsWith("> ")?s+=`\\pard\\li360\\sa100\\i ${vs(o.slice(2))}\\i0\\par
|
|
119
|
+
`:o.trim()?s+=`\\pard\\sa100 ${J0(o)}\\par
|
|
120
|
+
`:s+=`\\pard\\par
|
|
121
|
+
`;return`{\\rtf1\\ansi\\ansicpg1252\\deff0{\\fonttbl{\\f0\\froman\\fcharset0 Times New Roman;}{\\f1\\fswiss\\fcharset0 Arial;}}\\widowctrl\\hyphauto\\f0\\fs24
|
|
122
|
+
${s}}`}function EC(t){const a=xC(t.title,t.content);wb(new Blob([a],{type:"application/rtf"}),`${t.title}.rtf`)}async function SC(t){const{Document:a,Packer:i,Paragraph:s,TextRun:o,HeadingLevel:c,AlignmentType:u,LevelFormat:h,NumberFormat:g}=await Xc(async()=>{const{Document:S,Packer:w,Paragraph:T,TextRun:M,HeadingLevel:j,AlignmentType:C,LevelFormat:D,NumberFormat:H}=await import("./index-Bym9SmTQ.js");return{Document:S,Packer:w,Paragraph:T,TextRun:M,HeadingLevel:j,AlignmentType:C,LevelFormat:D,NumberFormat:H}},[]),p=[];p.push(new s({text:t.title,heading:c.TITLE,spacing:{after:240}}));const b=t.content.split(`
|
|
123
|
+
`);for(const S of b)if(S.startsWith("## "))p.push(new s({text:S.slice(3).trim(),heading:c.HEADING_2}));else if(S.startsWith("### "))p.push(new s({text:S.slice(4).trim(),heading:c.HEADING_3}));else if(S.startsWith("#### "))p.push(new s({text:S.slice(5).trim(),heading:c.HEADING_4}));else if(S.startsWith("- ")||S.startsWith("* "))p.push(new s({text:S.slice(2).trim(),bullet:{level:0}}));else if(/^\d+\. /.test(S))p.push(new s({text:S.replace(/^\d+\. /,"").trim(),numbering:{reference:"default-numbering",level:0}}));else if(S.startsWith("> "))p.push(new s({children:[new o({text:S.slice(2).trim(),italics:!0,color:"666666"})],indent:{left:720}}));else if(S.trim()){const w=[],T=S.split(/(\*\*[^*]+\*\*)/g);for(const M of T)M.startsWith("**")&&M.endsWith("**")?w.push(new o({text:M.slice(2,-2),bold:!0})):M&&w.push(new o({text:M}));p.push(new s({children:w}))}else p.push(new s({text:""}));const v=new a({numbering:{config:[{reference:"default-numbering",levels:[{level:0,format:h.DECIMAL,text:"%1.",alignment:u.LEFT}]}]},sections:[{children:p}]}),E=await i.toBlob(v);wb(E,`${t.title}.docx`)}function _l(t){return t.split(/(\*\*[^*]+\*\*|`[^`]+`|\*[^*]+\*)/g).map((i,s)=>i.startsWith("**")&&i.endsWith("**")?y.jsx("strong",{className:"font-semibold",children:i.slice(2,-2)},s):i.startsWith("`")&&i.endsWith("`")?y.jsx("code",{className:"font-mono text-[0.8em] bg-border-secondary px-1 rounded",children:i.slice(1,-1)},s):i.startsWith("*")&&i.endsWith("*")&&i.length>2?y.jsx("em",{children:i.slice(1,-1)},s):i)}function wC(t){const a=t.split(`
|
|
124
|
+
`),i=[];let s=0,o=[];function c(){o.length>0&&(i.push(y.jsx("ul",{className:"list-disc pl-4 mb-2 space-y-0.5",children:o.map((u,h)=>y.jsx("li",{className:"text-small text-text-primary leading-snug",children:_l(u)},h))},`ul-${s}`)),o=[])}for(;s<a.length;){const u=a[s],h=u.trim();if(u.startsWith("### ")||u.startsWith("#### ")){c();const g=u.startsWith("#### ")?5:4,p=u.startsWith("#### ")?u.slice(5):u.slice(4);i.push(y.jsx("h4",{className:`font-semibold mt-3 mb-1 text-text-primary text-[${g===4?"0.85":"0.8"}rem]`,children:_l(p)},s))}else u.startsWith("## ")?(c(),i.push(y.jsx("h3",{className:"font-semibold text-[0.9rem] mt-4 mb-1.5 text-text-primary",children:_l(u.slice(3))},s))):u.startsWith("- ")||u.startsWith("* ")?o.push(u.slice(2)):u.startsWith("> ")?(c(),i.push(y.jsx("blockquote",{className:"border-l-2 border-border pl-3 text-text-secondary italic text-small my-2",children:_l(u.slice(2))},s))):h==="---"?(c(),i.push(y.jsx("hr",{className:"my-2 border-border"},s))):h===""?c():(c(),i.push(y.jsx("p",{className:"text-small text-text-primary mb-1.5 leading-relaxed",children:_l(u)},s)));s++}return c(),i}function AC(){const t=Bt(me=>me.contextPanelOpen),a=Bt(me=>me.contextPanelContent),i=Bt(me=>me.closeContextPanel),s=Bt(me=>me.selectedSlug),o=Bt(me=>me.projects.find(bt=>bt.slug===s)),c=Bt(me=>me.updateProject),u=kn(me=>s?me.jobsByProject[s]??null:null),h=sa(me=>me.runs),g=sa(me=>me.setActiveRunId),p=sa(me=>me.setModalOpen),b=sa(me=>me.discardRun),v=kn(me=>me.queueKbJob),E=kn(me=>me.resumeProjectJob),S=kn(me=>me.clearProjectJob),w=Ha(me=>!!me.copilotToken),T=Yl(me=>me.byProject),M=(s?T[s]:void 0)??vC,[j,C]=d.useState("kb"),[D,H]=d.useState(null),[U,te]=d.useState(!1),[ne,_]=d.useState(!1),[ae,ie]=d.useState(new Set),[oe,J]=d.useState(new Set),ge=d.useRef(new Set),he=d.useRef(null),xe=d.useMemo(()=>Array.from(h.values()).sort((me,bt)=>bt.startedAt-me.startedAt),[h]),V=s?xe.filter(me=>me.projectSlug===s):[],Q=D?M.find(me=>me.id===D)??null:null;d.useEffect(()=>{a==="kb"?C("kb"):a==="artefacts"&&C("artifacts")},[a]),d.useEffect(()=>{t||H(null)},[t]),d.useEffect(()=>{var me;t&&((me=he.current)==null||me.focus())},[t]),d.useEffect(()=>{s&&E(s)},[E,s]),d.useEffect(()=>{function me(bt){if(bt.key==="Escape"&&t){if(D){H(null);return}i()}}return document.addEventListener("keydown",me),()=>document.removeEventListener("keydown",me)},[t,i,D]);async function K(me){if(o){if(c(o.slug,{kb_files:me}),me.length===0){S(o.slug);return}await v(o.slug,me,"upload",!0)}}const de=d.useCallback(async me=>{_(!0);try{await SC(me)}finally{_(!1)}},[]),we=!!u&&u.status!=="idle",R=M.filter(me=>me.isStreaming).length,q=M.some(me=>me.phase===6),[ce,ye]=d.useState(!1),[Se,Re]=d.useState(null);d.useEffect(()=>{const me=new Set(M.map(Le=>Le.id)),bt=[];for(const Le of me)ge.current.has(Le)||bt.push(Le);ge.current=me,bt.length!==0&&(J(Le=>new Set([...Le,...bt])),bt.forEach(Le=>{window.setTimeout(()=>{J(Xe=>{const qt=new Set(Xe);return qt.delete(Le),qt})},1600)}))},[M]);function $({id:me,label:bt,count:Le,icon:Xe}){const qt=j===me&&!D;return y.jsxs("button",{type:"button",onClick:()=>{C(me),H(null)},className:["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-card text-small font-medium transition-colors",qt?"bg-border-secondary text-text-primary":"text-text-tertiary hover:text-text-secondary hover:bg-border-secondary/50"].join(" "),children:[y.jsx(Xe,{size:13,"aria-hidden":"true"}),bt,Le!==void 0&&Le>0&&y.jsx("span",{className:["ml-0.5 min-w-[18px] h-[18px] rounded-full text-caption flex items-center justify-center px-1",qt?"bg-text-primary text-white":"bg-border-secondary text-text-secondary"].join(" "),children:Le})]},me)}function Ze(){if(M.length===0&&V.length===0)return y.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center py-16",children:[y.jsx(ng,{size:32,className:"text-text-tertiary mb-3","aria-hidden":"true"}),y.jsx("p",{className:"text-body-standard text-text-secondary",children:"No artefacts yet"}),y.jsx("p",{className:"text-caption text-text-tertiary mt-1",children:"Artefacts appear as the pipeline generates them"})]});const me=M.reduce((Le,Xe)=>(Le.has(Xe.phase)||Le.set(Xe.phase,{name:Xe.phaseName,color:Xe.phaseColor,items:[]}),Le.get(Xe.phase).items.push(Xe),Le),new Map),bt=Array.from(me.entries()).sort(([Le],[Xe])=>Le-Xe);return y.jsxs("div",{className:"space-y-4 p-4",children:[R>0&&y.jsxs("div",{className:"flex items-center gap-2 text-small text-text-tertiary",children:[y.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-lemon-500 animate-pulse flex-shrink-0"}),"Generating ",R," artefact",R>1?"s":"","…"]}),q&&R===0&&y.jsxs("button",{type:"button",onClick:()=>te(!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:[y.jsx(C9,{size:14,className:"text-text-tertiary group-hover:text-text-primary transition-colors flex-shrink-0","aria-hidden":"true"}),y.jsxs("div",{className:"flex-1 text-left min-w-0",children:[y.jsx("p",{className:"text-small font-medium text-text-primary",children:"Preview app"}),y.jsx("p",{className:"text-caption text-text-tertiary",children:"Open generated code in StackBlitz"})]})]}),q&&R===0&&o&&y.jsxs("button",{type:"button",disabled:ce,onClick:async()=>{ye(!0),Re(null);try{const Le=M.filter(Nt=>Nt.phase===6),Xe=yC(Le),qt=await Z9(o.slug,Xe);Re({dir:qt.exportDir})}catch{}finally{ye(!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:[y.jsx(tg,{size:14,className:"text-text-tertiary group-hover:text-text-primary transition-colors flex-shrink-0","aria-hidden":"true"}),y.jsxs("div",{className:"flex-1 text-left min-w-0",children:[y.jsx("p",{className:"text-small font-medium text-text-primary",children:ce?"Exporting…":Se?"Exported":"Export to disk"}),y.jsx("p",{className:"text-caption text-text-tertiary truncate",children:Se?Se.dir:"Save code to ~/DesignX/projects/"})]})]}),V.length>0&&y.jsxs("div",{children:[y.jsxs("p",{className:"text-caption font-medium text-text-tertiary uppercase tracking-wider px-1 mb-2",children:["Agent Runs (",V.length,")"]}),y.jsx("ul",{role:"list",className:"space-y-1.5",children:V.map(Le=>y.jsxs("li",{className:"flex items-center gap-2.5 px-3 py-2.5 rounded-card border border-border bg-card",children:[y.jsx(of,{size:14,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("p",{className:"text-caption text-text-primary truncate",children:Le.agentName}),y.jsx("p",{className:"text-caption text-text-tertiary truncate",children:Le.status})]}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx("button",{type:"button",onClick:()=>{g(Le.runId),p(!0)},className:"rounded-card border border-border px-2 py-1 text-caption text-text-secondary hover:text-text-primary",children:"View"}),y.jsx("button",{type:"button",onClick:()=>b(Le.runId),className:"rounded-card border border-border px-2 py-1 text-caption text-text-secondary hover:text-text-primary",children:"Discard"})]})]},Le.runId))})]}),bt.map(([Le,Xe])=>{const qt=ae.has(Le);return y.jsxs("div",{children:[y.jsxs("button",{type:"button",onClick:()=>ie(Nt=>{const Qt=new Set(Nt);return Qt.has(Le)?Qt.delete(Le):Qt.add(Le),Qt}),className:"w-full flex items-center gap-2 px-1 mb-2 group",children:[y.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{backgroundColor:Xe.color}}),y.jsx("p",{className:"text-caption font-medium text-text-tertiary uppercase tracking-wider flex-1 text-left",children:Xe.name}),y.jsx("span",{className:"text-caption text-text-tertiary",children:Xe.items.length}),y.jsx("span",{className:"text-caption text-text-tertiary ml-1",children:qt?"›":"⌄"})]}),!qt&&y.jsx("ul",{role:"list",className:"space-y-1.5",children:Xe.items.map(Nt=>{const Qt=z8(Nt.type),ua=oe.has(Nt.id);return y.jsx("li",{children:y.jsxs("button",{type:"button",onClick:()=>H(Nt.id),style:ua?{"--spotlight-color":Nt.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",ua?"artifact-spotlight":""].join(" "),children:[y.jsx(Qt,{size:14,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsxs("p",{className:"text-small text-text-primary truncate leading-snug group-hover:text-text-primary",children:[Nt.title,Nt.isStreaming&&y.jsx("span",{className:"ml-1.5 inline-block w-1 h-3 bg-lemon-500 animate-pulse align-middle"})]}),y.jsx("p",{className:"text-caption text-text-tertiary",children:B8(Nt.type)})]})]})},Nt.id)})})]},Le)})]})}function Oe(me){const bt=z8(me.type);return y.jsxs("div",{className:"flex flex-col h-full",children:[y.jsxs("div",{className:"flex items-center gap-2 px-4 pt-4 pb-3 border-b border-border flex-shrink-0",children:[y.jsx("div",{className:"w-7 h-7 rounded-card border border-border flex items-center justify-center text-text-secondary",children:y.jsx(bt,{size:14,"aria-hidden":"true"})}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("p",{className:"text-small font-medium text-text-primary leading-tight truncate",children:me.title}),y.jsxs("p",{className:"text-caption text-text-tertiary",children:[B8(me.type)," · ",me.phaseName,me.isStreaming&&y.jsx("span",{className:"ml-1.5 text-lemon-500",children:"● live"})]})]})]}),y.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b border-border flex-shrink-0",children:[y.jsx(tg,{size:13,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),y.jsx("span",{className:"text-caption text-text-tertiary mr-1",children:"Export"}),y.jsx("button",{type:"button",onClick:()=>EC(me),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"}),y.jsx("button",{type:"button",onClick:()=>void de(me),disabled:ne,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:ne?"Exporting…":"DOCX"})]}),y.jsx("div",{className:"flex-1 overflow-y-auto px-4 py-4 prose-sm max-w-none",children:wC(me.content)})]})}function ot(){return y.jsx("div",{className:"space-y-4 p-4",children:y.jsxs("div",{className:"rounded-card border border-border bg-card px-4 py-4 shadow-clay",children:[y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-card bg-border-secondary text-text-primary flex-shrink-0",children:y.jsx(qc,{size:18,"aria-hidden":"true"})}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("p",{className:"text-body-medium font-medium text-text-primary",children:"Project KB"}),y.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."})]})]}),y.jsx("div",{className:"mt-4 rounded-card border border-border bg-canvas px-3 py-3",children:y.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y.jsxs("div",{children:[y.jsxs("p",{className:"text-small font-medium text-text-primary",children:[(o==null?void 0:o.kb_files.length)??0," file",(o==null?void 0:o.kb_files.length)===1?"":"s"," attached"]}),y.jsx("p",{className:"mt-0.5 text-small text-text-tertiary",children:"Changes persist with the project and feed the next context refresh."})]}),y.jsxs("button",{type:"button",onClick:()=>o&&void v(o.slug,o.kb_files,"manual",!0),disabled:!o||o.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:[y.jsx(of,{size:14,"aria-hidden":"true"}),"Re-run extraction"]})]})}),we&&y.jsxs("div",{className:"mt-4 rounded-card border border-border bg-canvas px-3 py-3",children:[y.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y.jsxs("div",{children:[y.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"}),y.jsx("p",{className:"mt-0.5 text-small text-text-tertiary",children:(u==null?void 0:u.error)??(u==null?void 0:u.stageLabel)})]}),y.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))),"%"]})]}),y.jsx("div",{className:"mt-3 h-2 overflow-hidden rounded-full bg-border-secondary",children:y.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))}%`}})})]}),y.jsx(Sb,{files:(o==null?void 0:o.kb_files)??[],onChange:K,projectSlug:o==null?void 0:o.slug}),!w&&(u==null?void 0:u.status)==="ready"&&y.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 y.jsx(WM,{children:t&&y.jsxs(lC.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":Q?Q.title:j==="kb"?"Knowledge Base":"Artefacts",children:[y.jsxs("div",{className:"h-12 flex items-center justify-between px-3 border-b border-border flex-shrink-0",children:[Q?y.jsxs("div",{className:"flex items-center gap-1 w-full min-w-0",children:[y.jsxs("button",{type:"button",onClick:()=>H(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:[y.jsx(B4,{size:14,"aria-hidden":"true"}),"Back"]}),y.jsx("span",{className:"text-small text-text-secondary truncate flex-1 ml-1",children:Q.title})]}):y.jsxs("div",{className:"flex items-center gap-1",children:[$({id:"kb",label:"Knowledge Base",icon:qc}),$({id:"artifacts",label:"Artefacts",count:M.length,icon:ng})]}),y.jsx("button",{ref:he,onClick:i,"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:y.jsx(t1,{size:15,"aria-hidden":"true"})})]}),y.jsx("div",{className:"flex-1 overflow-hidden flex flex-col",children:Q?Oe(Q):j==="kb"?y.jsx("div",{className:"flex-1 overflow-y-auto",children:ot()}):y.jsx("div",{className:"flex-1 overflow-y-auto",children:Ze()})}),U&&s&&y.jsx(d.Suspense,{fallback:null,children:y.jsx("div",{className:"absolute inset-0 z-20",children:y.jsx(bC,{artifacts:M,projectName:(o==null?void 0:o.name)??s,onClose:()=>te(!1)})})})]})})}function MC({children:t}){return y.jsxs("div",{className:"flex h-dvh overflow-hidden bg-canvas",children:[y.jsx(i7,{}),y.jsx("main",{className:"flex-1 min-w-0 flex flex-col overflow-hidden",id:"main-content",children:t}),y.jsx(AC,{})]})}const Ic=[{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"}]}],U8=5,TC=Ic.length+1,eo="enigma_setup_drafts";function CC(t){try{const a=localStorage.getItem(eo);return a?JSON.parse(a)[t]??null:null}catch{return null}}function Z8(t,a){try{const i=localStorage.getItem(eo),s=i?JSON.parse(i):{};s[t]=a,localStorage.setItem(eo,JSON.stringify(s))}catch{console.error(`Failed to save setup draft for ${t}`)}}function RC(t){try{const a=localStorage.getItem(eo);if(!a)return;const i=JSON.parse(a);delete i[t],localStorage.setItem(eo,JSON.stringify(i))}catch{console.error(`Failed to clear setup draft for ${t}`)}}function NC(t){const a=Date.now(),i=[{id:crypto.randomUUID(),type:"agent",timestamp:a,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 t.forEach((s,o)=>{const c=a+(o+1)*2;i.push({id:crypto.randomUUID(),type:"agent",timestamp:c,content:s.question}),i.push({id:crypto.randomUUID(),type:"user",timestamp:c+1,content:s.displayValue})}),i.push({id:crypto.randomUUID(),type:"system",timestamp:a+(t.length+1)*2,content:"Onboarding completed. Project moved to Discover."}),i}function jC(t,a){try{localStorage.setItem(`enigma_stream_${t}`,JSON.stringify({messages:NC(a),activeGateKey:null,inputDraft:""}))}catch{console.error(`Failed to save onboarding transcript for ${t}`)}}function Dl({children:t}){return y.jsxs("div",{className:"flex gap-3",children:[y.jsx("div",{className:`flex-shrink-0 w-7 h-7 rounded-card bg-lemon-500 flex items-center
|
|
125
|
+
justify-center text-small font-semibold text-lemon-800`,"aria-hidden":"true",children:"DX"}),y.jsx("div",{className:"flex-1 min-w-0 pt-0.5",children:t})]})}function _C({text:t}){return y.jsx("div",{className:"flex justify-end",children:y.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:t})})}function Ab(){const{slug:t}=uu(),{pathname:a}=Ua(),[i,s]=d.useState(0),[o,c]=d.useState([]),[u,h]=d.useState({}),[g,p]=d.useState([]),[b,v]=d.useState(""),[E,S]=d.useState(!1),[w,T]=d.useState(null),M=d.useRef(null),j=d.useRef(null),C=io(),D=Bt($=>$.setProjects),H=Bt($=>$.projects),U=Bt($=>$.selectProject),te=Bt($=>$.clearProject),ne=Bt($=>$.updateProject),_=Bt($=>$.openContextPanel),ae=kn($=>$.queueKbJob),ie=kn($=>$.clearProjectJob),oe=Yl($=>$.clearProjectArtifacts),J=Yc($=>$.clearProjectSession),ge=t?H.find($=>$.slug===t):null,he=!!ge&&ge.status==="onboarding";function xe(){s(0),c([]),h({}),p([]),v(""),S(!1),T(null)}const V=i===U8,Q=i>=TC,K=(()=>{if(!(V||Q))return i<U8?Ic[i]:Ic[i-1]})();d.useEffect(()=>{var $;($=M.current)==null||$.scrollIntoView({behavior:"smooth",block:"end"})},[i,E]),d.useEffect(()=>{var $;(K==null?void 0:K.inputType)==="text"&&(($=j.current)==null||$.focus())},[i]),d.useEffect(()=>{if(!ge||ge.status!=="onboarding")return;const $=CC(ge.slug);if($){s($.currentStepIndex),c($.completedSteps),h($.answers),p($.kbFiles),T(ge.slug),U(ge.slug);return}const Ze={name:ge.name},Oe=[{stepId:"name",question:Ic[0].question,displayValue:ge.name}];h(Ze),c(Oe),s(1),p(ge.kb_files??[]),T(ge.slug),U(ge.slug)},[ge,U]),d.useEffect(()=>{if(a.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&&H.length>0&&H.some(ot=>ot.slug===Ze)){const ot=setTimeout(()=>{U(Ze),C(`/project/${Ze}`)},300);return()=>clearTimeout(ot)}}catch{}}},[a,H,C,t,U]),d.useEffect(()=>{if(a.startsWith("/setup")){if(!t){xe();return}if(!ge){xe(),te(),C("/setup",{replace:!0});return}ge.status!=="onboarding"&&C(`/project/${ge.slug}`,{replace:!0})}},[a,t,ge,te,C]);function de($){return $.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function we($){const Ze=$||"new-project";let Oe=Ze,ot=2;for(;H.some(me=>me.slug===Oe);)Oe=`${Ze}-${ot}`,ot+=1;return Oe}function R($){const Ze=de($),Oe=we(Ze);oe(Oe),ie(Oe),J(Oe);try{localStorage.removeItem(`enigma_stream_${Oe}`)}catch{}const ot=new Date().toISOString(),me={id:crypto.randomUUID(),slug:Oe,name:$,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:ot,last_active_at:ot,tech_framework:null,tech_language:null,kb_files:[]};return D([me,...H]),U(Oe),T(Oe),Oe}function q($,Ze,Oe){const ot={...u,[$.id]:Ze},me=[...o,{stepId:$.id,question:$.question,displayValue:Oe}],bt=i+1;h(ot),c(me);let Le=w;if($.id==="name")w?ne(w,{name:Ze}):Le=R(Ze);else if(Le){const Xe={};$.id==="domain"&&(Xe.domain=Ze),$.id==="nature"&&(Xe.nature=Ze),$.id==="application_type"&&(Xe.application_type=Ze),$.id==="preset"&&(Xe.preset=Ze),$.id==="control_mode"&&(Xe.control_mode=Ze),Object.keys(Xe).length>0&&ne(Le,Xe)}Le&&Z8(Le,{currentStepIndex:bt,completedSteps:me,answers:ot,kbFiles:g}),v(""),s(bt)}function ce(){if(!K||K.inputType!=="text")return;const $=b.trim();$&&q(K,$,$)}function ye($){!K||K.inputType!=="select"||q(K,$.value,$.label)}function Se(){const $=g.length>0?`${g.length} file${g.length>1?"s":""} added`:"Skipped",Ze=[...o,{stepId:"kb",question:"Do you have a knowledge base to attach?",displayValue:$}],Oe=i+1;c(Ze),w&&(ne(w,{kb_files:g}),Z8(w,{currentStepIndex:Oe,completedSteps:Ze,answers:u,kbFiles:g})),s(Oe)}async function Re($){if(p($),!!w){if(ne(w,{kb_files:$}),$.length===0){ie(w);return}U(w),_("kb"),await ae(w,$,"upload",!0)}}return d.useEffect(()=>{if(!Q||E)return;S(!0);const $=w??R(u.name??"New Project"),Ze=async()=>{try{const Oe=await fetch("/api/projects/scaffold",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectSlug:$,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(!Oe.ok){const ot=await Oe.json();console.error("Failed to scaffold project:",ot)}}catch(Oe){console.error("Error scaffolding project:",Oe)}jC($,o),ne($,{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:g,current_phase:2,status:"active"}),RC($),U($),C(`/project/${$}`)};setTimeout(()=>{Ze()},900)},[Q,E,w,u,g,C,U,ne]),y.jsxs("div",{className:"flex flex-col h-full",role:"main","aria-label":"New project setup",children:[y.jsx("div",{className:"flex-1 overflow-y-auto","aria-live":"polite","aria-atomic":"false",children:y.jsxs("div",{className:"mx-auto max-w-[640px] px-6 py-10 space-y-5 pb-36",children:[y.jsx(Dl,{children:y.jsx("p",{className:"text-body text-text-primary leading-relaxed",children:he?"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."})}),o.map($=>y.jsxs("div",{className:"space-y-2",children:[y.jsx(Dl,{children:y.jsx("p",{className:"text-body-standard text-text-tertiary",children:$.question})}),y.jsx(_C,{text:$.displayValue})]},$.stepId)),K&&!V&&!Q&&y.jsx("div",{className:"space-y-4",children:y.jsxs(Dl,{children:[y.jsx("p",{className:"text-body text-text-primary leading-relaxed",children:K.question}),K.hint&&y.jsx("p",{className:"mt-1 text-caption text-text-secondary",children:K.hint}),K.inputType==="select"&&K.options&&y.jsx("div",{className:"mt-4 flex flex-col gap-2",role:"group","aria-label":`Options for: ${K.question}`,children:K.options.map($=>y.jsxs("button",{onClick:()=>ye($),className:`w-full text-left px-4 py-3 rounded-card border border-border bg-card
|
|
126
|
+
shadow-clay hover:-translate-y-0.5 hover:shadow-hover-subtle
|
|
127
|
+
transition-all duration-100
|
|
128
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary`,"aria-label":$.description?`${$.label} — ${$.description}`:$.label,children:[y.jsx("span",{className:"block text-button-small font-medium text-text-primary",children:$.label}),$.description&&y.jsx("span",{className:"block text-small text-text-secondary mt-0.5",children:$.description})]},$.value))})]})}),V&&!Q&&y.jsx("div",{className:"space-y-4",children:y.jsxs(Dl,{children:[y.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?"}),y.jsx("p",{className:"mt-1 text-caption text-text-secondary",children:"Accepted: .md, .pdf, .docx, .xlsx, .csv, .txt · Optional"}),y.jsx(Sb,{files:g,onChange:Re,showFileList:!1}),y.jsx("p",{className:"mt-3 text-small text-text-secondary",children:g.length>0?`${g.length} document${g.length===1?"":"s"} uploaded`:"No documents uploaded yet"}),y.jsx("div",{className:"mt-4",children:y.jsx("button",{onClick:Se,className:`px-4 py-2 rounded-card bg-text-primary text-text-inverse
|
|
129
|
+
text-button-small font-medium shadow-clay
|
|
130
|
+
hover:-translate-y-0.5 hover:shadow-hover-subtle transition-all duration-100
|
|
131
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary`,children:g.length>0?`Continue with ${g.length} file${g.length>1?"s":""}`:"Skip for now"})})]})}),E&&y.jsx(Dl,{children:y.jsxs("p",{className:"text-body text-text-primary leading-relaxed flex items-center gap-2",children:[y.jsx(Bi,{size:16,className:"text-matcha-600 flex-shrink-0",weight:"fill","aria-hidden":"true"}),"Creating your project…"]})}),y.jsx("div",{ref:M,"aria-hidden":"true"})]})}),(K==null?void 0:K.inputType)==="text"&&!Q&&y.jsx("div",{className:"sticky bottom-0 bg-canvas",children:y.jsx("div",{className:"mx-auto max-w-[640px] px-6 py-4",children:y.jsxs("div",{className:`flex items-end gap-2 rounded-feature border border-border
|
|
132
|
+
bg-card shadow-clay px-4 py-3
|
|
133
|
+
focus-within:border-text-primary transition-colors`,children:[y.jsx("input",{ref:j,value:b,onChange:$=>v($.target.value),onKeyDown:$=>{$.key==="Enter"&&ce()},placeholder:K.placeholder,"aria-label":K.question,className:`flex-1 bg-transparent text-body-standard text-text-primary
|
|
134
|
+
placeholder:text-text-secondary font-primary outline-none
|
|
135
|
+
min-h-[24px] leading-relaxed`}),y.jsx("button",{onClick:ce,disabled:!b.trim(),"aria-label":"Submit answer","aria-disabled":!b.trim(),className:`flex-shrink-0 w-8 h-8 rounded-standard flex items-center justify-center
|
|
136
|
+
bg-text-primary text-text-inverse
|
|
137
|
+
disabled:opacity-30 disabled:cursor-not-allowed
|
|
138
|
+
enabled:hover:-rotate-6 enabled:hover:-translate-y-1
|
|
139
|
+
enabled:hover:shadow-hover-hard
|
|
140
|
+
transition-all duration-100
|
|
141
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-inverse`,children:y.jsx(F4,{size:14,weight:"bold","aria-hidden":"true"})})]})})})]})}function DC(){return y.jsx(Ab,{})}function P8(){return y.jsx(Ab,{})}const Rt=ir((t,a)=>({messages:[],isStreaming:!1,activeGateKey:null,inputDraft:"",onGateResolved:null,currentProjectSlug:null,setCurrentProjectSlug:i=>t({currentProjectSlug:i}),saveStreamToStorage:i=>{try{const s=a(),o={messages:s.messages,activeGateKey:s.activeGateKey,inputDraft:s.inputDraft},c=`enigma_stream_${i}`;localStorage.setItem(c,JSON.stringify(o)),z9(i,o)}catch{console.error(`Failed to save stream for project ${i}`)}},loadStreamFromStorage:i=>{try{const s=`enigma_stream_${i}`,o=localStorage.getItem(s);if(o){const c=JSON.parse(o);return t({messages:c.messages||[],activeGateKey:c.activeGateKey||null,inputDraft:c.inputDraft||""}),!0}}catch{console.error(`Failed to load stream for project ${i}`)}return!1},appendMessage:i=>t(s=>({messages:[...s.messages,i],activeGateKey:i.type==="gate"&&i.gateStatus==="pending"?i.gateKey??null:s.activeGateKey})),updateLastAgent:i=>t(s=>{const o=[...s.messages];for(let c=o.length-1;c>=0;c--)if(o[c].type==="agent")return o[c]={...o[c],content:i},{messages:o};return{}}),updateArtifactProgress:(i,s,o)=>t(c=>({messages:c.messages.map(u=>u.id===i?{...u,artifactProgress:s,...o!==void 0?{agentNote:o}:{}}:u)})),resolveGate:(i,s,o)=>{var c,u;t(h=>({messages:h.messages.map(g=>g.type==="gate"&&g.gateKey===i?{...g,gateStatus:s}:g),activeGateKey:null})),(u=(c=a()).onGateResolved)==null||u.call(c,i,s,o)},setOnGateResolved:i=>t({onGateResolved:i}),setInputDraft:i=>t({inputDraft:i}),setStreaming:i=>t({isStreaming:i}),clearStream:()=>t({messages:[],isStreaming:!1,activeGateKey:null})}));function OC({content:t}){return y.jsx("div",{className:"flex justify-end",children:y.jsx("div",{className:`max-w-[75%] rounded-feature rounded-br-sharp bg-text-primary text-text-inverse
|
|
142
|
+
px-4 py-3 text-body-standard shadow-clay whitespace-pre-wrap`,children:t})})}var W0,F8;function LC(){if(F8)return W0;F8=1;function t(L){return L instanceof Map?L.clear=L.delete=L.set=function(){throw new Error("map is read-only")}:L instanceof Set&&(L.add=L.clear=L.delete=function(){throw new Error("set is read-only")}),Object.freeze(L),Object.getOwnPropertyNames(L).forEach(W=>{const Ee=L[W],qe=typeof Ee;(qe==="object"||qe==="function")&&!Object.isFrozen(Ee)&&t(Ee)}),L}class a{constructor(W){W.data===void 0&&(W.data={}),this.data=W.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(L){return L.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(L,...W){const Ee=Object.create(null);for(const qe in L)Ee[qe]=L[qe];return W.forEach(function(qe){for(const St in qe)Ee[St]=qe[St]}),Ee}const o="</span>",c=L=>!!L.scope,u=(L,{prefix:W})=>{if(L.startsWith("language:"))return L.replace("language:","language-");if(L.includes(".")){const Ee=L.split(".");return[`${W}${Ee.shift()}`,...Ee.map((qe,St)=>`${qe}${"_".repeat(St+1)}`)].join(" ")}return`${W}${L}`};class h{constructor(W,Ee){this.buffer="",this.classPrefix=Ee.classPrefix,W.walk(this)}addText(W){this.buffer+=i(W)}openNode(W){if(!c(W))return;const Ee=u(W.scope,{prefix:this.classPrefix});this.span(Ee)}closeNode(W){c(W)&&(this.buffer+=o)}value(){return this.buffer}span(W){this.buffer+=`<span class="${W}">`}}const g=(L={})=>{const W={children:[]};return Object.assign(W,L),W};class p{constructor(){this.rootNode=g(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(W){this.top.children.push(W)}openNode(W){const Ee=g({scope:W});this.add(Ee),this.stack.push(Ee)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(W){return this.constructor._walk(W,this.rootNode)}static _walk(W,Ee){return typeof Ee=="string"?W.addText(Ee):Ee.children&&(W.openNode(Ee),Ee.children.forEach(qe=>this._walk(W,qe)),W.closeNode(Ee)),W}static _collapse(W){typeof W!="string"&&W.children&&(W.children.every(Ee=>typeof Ee=="string")?W.children=[W.children.join("")]:W.children.forEach(Ee=>{p._collapse(Ee)}))}}class b extends p{constructor(W){super(),this.options=W}addText(W){W!==""&&this.add(W)}startScope(W){this.openNode(W)}endScope(){this.closeNode()}__addSublanguage(W,Ee){const qe=W.root;Ee&&(qe.scope=`language:${Ee}`),this.add(qe)}toHTML(){return new h(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function v(L){return L?typeof L=="string"?L:L.source:null}function E(L){return T("(?=",L,")")}function S(L){return T("(?:",L,")*")}function w(L){return T("(?:",L,")?")}function T(...L){return L.map(Ee=>v(Ee)).join("")}function M(L){const W=L[L.length-1];return typeof W=="object"&&W.constructor===Object?(L.splice(L.length-1,1),W):{}}function j(...L){return"("+(M(L).capture?"":"?:")+L.map(qe=>v(qe)).join("|")+")"}function C(L){return new RegExp(L.toString()+"|").exec("").length-1}function D(L,W){const Ee=L&&L.exec(W);return Ee&&Ee.index===0}const H=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function U(L,{joinWith:W}){let Ee=0;return L.map(qe=>{Ee+=1;const St=Ee;let Et=v(qe),Ne="";for(;Et.length>0;){const Me=H.exec(Et);if(!Me){Ne+=Et;break}Ne+=Et.substring(0,Me.index),Et=Et.substring(Me.index+Me[0].length),Me[0][0]==="\\"&&Me[1]?Ne+="\\"+String(Number(Me[1])+St):(Ne+=Me[0],Me[0]==="("&&Ee++)}return Ne}).map(qe=>`(${qe})`).join(W)}const te=/\b\B/,ne="[a-zA-Z]\\w*",_="[a-zA-Z_]\\w*",ae="\\b\\d+(\\.\\d+)?",ie="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",oe="\\b(0b[01]+)",J="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ge=(L={})=>{const W=/^#![ ]*\//;return L.binary&&(L.begin=T(W,/.*\b/,L.binary,/\b.*/)),s({scope:"meta",begin:W,end:/$/,relevance:0,"on:begin":(Ee,qe)=>{Ee.index!==0&&qe.ignoreMatch()}},L)},he={begin:"\\\\[\\s\\S]",relevance:0},xe={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},V={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},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/},K=function(L,W,Ee={}){const qe=s({scope:"comment",begin:L,end:W,contains:[]},Ee);qe.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 St=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 qe.contains.push({begin:T(/[ ]+/,"(",St,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),qe},de=K("//","$"),we=K("/\\*","\\*/"),R=K("#","$"),q={scope:"number",begin:ae,relevance:0},ce={scope:"number",begin:ie,relevance:0},ye={scope:"number",begin:oe,relevance:0},Se={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},Re={scope:"title",begin:ne,relevance:0},$={scope:"title",begin:_,relevance:0},Ze={begin:"\\.\\s*"+_,relevance:0};var ot=Object.freeze({__proto__:null,APOS_STRING_MODE:xe,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:ye,BINARY_NUMBER_RE:oe,COMMENT:K,C_BLOCK_COMMENT_MODE:we,C_LINE_COMMENT_MODE:de,C_NUMBER_MODE:ce,C_NUMBER_RE:ie,END_SAME_AS_BEGIN:function(L){return Object.assign(L,{"on:begin":(W,Ee)=>{Ee.data._beginMatch=W[1]},"on:end":(W,Ee)=>{Ee.data._beginMatch!==W[1]&&Ee.ignoreMatch()}})},HASH_COMMENT_MODE:R,IDENT_RE:ne,MATCH_NOTHING_RE:te,METHOD_GUARD:Ze,NUMBER_MODE:q,NUMBER_RE:ae,PHRASAL_WORDS_MODE:Q,QUOTE_STRING_MODE:V,REGEXP_MODE:Se,RE_STARTERS_RE:J,SHEBANG:ge,TITLE_MODE:Re,UNDERSCORE_IDENT_RE:_,UNDERSCORE_TITLE_MODE:$});function me(L,W){L.input[L.index-1]==="."&&W.ignoreMatch()}function bt(L,W){L.className!==void 0&&(L.scope=L.className,delete L.className)}function Le(L,W){W&&L.beginKeywords&&(L.begin="\\b("+L.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",L.__beforeBegin=me,L.keywords=L.keywords||L.beginKeywords,delete L.beginKeywords,L.relevance===void 0&&(L.relevance=0))}function Xe(L,W){Array.isArray(L.illegal)&&(L.illegal=j(...L.illegal))}function qt(L,W){if(L.match){if(L.begin||L.end)throw new Error("begin & end are not supported with match");L.begin=L.match,delete L.match}}function Nt(L,W){L.relevance===void 0&&(L.relevance=1)}const Qt=(L,W)=>{if(!L.beforeMatch)return;if(L.starts)throw new Error("beforeMatch cannot be used with starts");const Ee=Object.assign({},L);Object.keys(L).forEach(qe=>{delete L[qe]}),L.keywords=Ee.keywords,L.begin=T(Ee.beforeMatch,E(Ee.begin)),L.starts={relevance:0,contains:[Object.assign(Ee,{endsParent:!0})]},L.relevance=0,delete Ee.beforeMatch},ua=["of","and","for","in","not","or","if","then","parent","list","value"],Za="keyword";function Pn(L,W,Ee=Za){const qe=Object.create(null);return typeof L=="string"?St(Ee,L.split(" ")):Array.isArray(L)?St(Ee,L):Object.keys(L).forEach(function(Et){Object.assign(qe,Pn(L[Et],W,Et))}),qe;function St(Et,Ne){W&&(Ne=Ne.map(Me=>Me.toLowerCase())),Ne.forEach(function(Me){const Ge=Me.split("|");qe[Ge[0]]=[Et,lr(Ge[0],Ge[1])]})}}function lr(L,W){return W?Number(W):yn(L)?0:1}function yn(L){return ua.includes(L.toLowerCase())}const ja={},Dt=L=>{console.error(L)},Jt=(L,...W)=>{console.log(`WARN: ${L}`,...W)},Wt=(L,W)=>{ja[`${L}/${W}`]||(console.log(`Deprecated as of ${L}. ${W}`),ja[`${L}/${W}`]=!0)},Qn=new Error;function Fn(L,W,{key:Ee}){let qe=0;const St=L[Ee],Et={},Ne={};for(let Me=1;Me<=W.length;Me++)Ne[Me+qe]=St[Me],Et[Me+qe]=!0,qe+=C(W[Me-1]);L[Ee]=Ne,L[Ee]._emit=Et,L[Ee]._multi=!0}function bn(L){if(Array.isArray(L.begin)){if(L.skip||L.excludeBegin||L.returnBegin)throw Dt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Qn;if(typeof L.beginScope!="object"||L.beginScope===null)throw Dt("beginScope must be object"),Qn;Fn(L,L.begin,{key:"beginScope"}),L.begin=U(L.begin,{joinWith:""})}}function ln(L){if(Array.isArray(L.end)){if(L.skip||L.excludeEnd||L.returnEnd)throw Dt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Qn;if(typeof L.endScope!="object"||L.endScope===null)throw Dt("endScope must be object"),Qn;Fn(L,L.end,{key:"endScope"}),L.end=U(L.end,{joinWith:""})}}function Pa(L){L.scope&&typeof L.scope=="object"&&L.scope!==null&&(L.beginScope=L.scope,delete L.scope)}function jr(L){Pa(L),typeof L.beginScope=="string"&&(L.beginScope={_wrap:L.beginScope}),typeof L.endScope=="string"&&(L.endScope={_wrap:L.endScope}),bn(L),ln(L)}function _n(L){function W(Ne,Me){return new RegExp(v(Ne),"m"+(L.case_insensitive?"i":"")+(L.unicodeRegex?"u":"")+(Me?"g":""))}class Ee{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Me,Ge){Ge.position=this.position++,this.matchIndexes[this.matchAt]=Ge,this.regexes.push([Ge,Me]),this.matchAt+=C(Me)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Me=this.regexes.map(Ge=>Ge[1]);this.matcherRe=W(U(Me,{joinWith:"|"}),!0),this.lastIndex=0}exec(Me){this.matcherRe.lastIndex=this.lastIndex;const Ge=this.matcherRe.exec(Me);if(!Ge)return null;const N=Ge.findIndex((P,ue)=>ue>0&&P!==void 0),k=this.matchIndexes[N];return Ge.splice(0,N),Object.assign(Ge,k)}}class qe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Me){if(this.multiRegexes[Me])return this.multiRegexes[Me];const Ge=new Ee;return this.rules.slice(Me).forEach(([N,k])=>Ge.addRule(N,k)),Ge.compile(),this.multiRegexes[Me]=Ge,Ge}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Me,Ge){this.rules.push([Me,Ge]),Ge.type==="begin"&&this.count++}exec(Me){const Ge=this.getMatcher(this.regexIndex);Ge.lastIndex=this.lastIndex;let N=Ge.exec(Me);if(this.resumingScanAtSamePosition()&&!(N&&N.index===this.lastIndex)){const k=this.getMatcher(0);k.lastIndex=this.lastIndex+1,N=k.exec(Me)}return N&&(this.regexIndex+=N.position+1,this.regexIndex===this.count&&this.considerAll()),N}}function St(Ne){const Me=new qe;return Ne.contains.forEach(Ge=>Me.addRule(Ge.begin,{rule:Ge,type:"begin"})),Ne.terminatorEnd&&Me.addRule(Ne.terminatorEnd,{type:"end"}),Ne.illegal&&Me.addRule(Ne.illegal,{type:"illegal"}),Me}function Et(Ne,Me){const Ge=Ne;if(Ne.isCompiled)return Ge;[bt,qt,jr,Qt].forEach(k=>k(Ne,Me)),L.compilerExtensions.forEach(k=>k(Ne,Me)),Ne.__beforeBegin=null,[Le,Xe,Nt].forEach(k=>k(Ne,Me)),Ne.isCompiled=!0;let N=null;return typeof Ne.keywords=="object"&&Ne.keywords.$pattern&&(Ne.keywords=Object.assign({},Ne.keywords),N=Ne.keywords.$pattern,delete Ne.keywords.$pattern),N=N||/\w+/,Ne.keywords&&(Ne.keywords=Pn(Ne.keywords,L.case_insensitive)),Ge.keywordPatternRe=W(N,!0),Me&&(Ne.begin||(Ne.begin=/\B|\b/),Ge.beginRe=W(Ge.begin),!Ne.end&&!Ne.endsWithParent&&(Ne.end=/\B|\b/),Ne.end&&(Ge.endRe=W(Ge.end)),Ge.terminatorEnd=v(Ge.end)||"",Ne.endsWithParent&&Me.terminatorEnd&&(Ge.terminatorEnd+=(Ne.end?"|":"")+Me.terminatorEnd)),Ne.illegal&&(Ge.illegalRe=W(Ne.illegal)),Ne.contains||(Ne.contains=[]),Ne.contains=[].concat(...Ne.contains.map(function(k){return Kt(k==="self"?Ne:k)})),Ne.contains.forEach(function(k){Et(k,Ge)}),Ne.starts&&Et(Ne.starts,Me),Ge.matcher=St(Ge),Ge}if(L.compilerExtensions||(L.compilerExtensions=[]),L.contains&&L.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return L.classNameAliases=s(L.classNameAliases||{}),Et(L)}function en(L){return L?L.endsWithParent||en(L.starts):!1}function Kt(L){return L.variants&&!L.cachedVariants&&(L.cachedVariants=L.variants.map(function(W){return s(L,{variants:null},W)})),L.cachedVariants?L.cachedVariants:en(L)?s(L,{starts:L.starts?s(L.starts):null}):Object.isFrozen(L)?s(L):L}var Yt="11.11.1";class or extends Error{constructor(W,Ee){super(W),this.name="HTMLInjectionError",this.html=Ee}}const _a=i,Fa=s,da=Symbol("nomatch"),Vn=7,fa=function(L){const W=Object.create(null),Ee=Object.create(null),qe=[];let St=!0;const Et="Could not find the language '{}', did you forget to load/include a language module?",Ne={disableAutodetect:!0,name:"Plain text",contains:[]};let Me={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function Ge(X){return Me.noHighlightRe.test(X)}function N(X){let se=X.className+" ";se+=X.parentNode?X.parentNode.className:"";const De=Me.languageDetectRe.exec(se);if(De){const ze=ut(De[1]);return ze||(Jt(Et.replace("{}",De[1])),Jt("Falling back to no-highlight mode for this block.",X)),ze?De[1]:"no-highlight"}return se.split(/\s+/).find(ze=>Ge(ze)||ut(ze))}function k(X,se,De){let ze="",Ie="";typeof se=="object"?(ze=X,De=se.ignoreIllegals,Ie=se.language):(Wt("10.7.0","highlight(lang, code, ...args) has been deprecated."),Wt("10.7.0",`Please use highlight(code, options) instead.
|
|
143
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Ie=X,ze=se),De===void 0&&(De=!0);const Be={code:ze,language:Ie};B("before:highlight",Be);const Ye=Be.result?Be.result:P(Be.language,Be.code,De);return Ye.code=Be.code,B("after:highlight",Ye),Ye}function P(X,se,De,ze){const Ie=Object.create(null);function Be(pe,ke){return pe.keywords[ke]}function Ye(){if(!$e.keywords){lt.addText(ht);return}let pe=0;$e.keywordPatternRe.lastIndex=0;let ke=$e.keywordPatternRe.exec(ht),nt="";for(;ke;){nt+=ht.substring(pe,ke.index);const mt=nn.case_insensitive?ke[0].toLowerCase():ke[0],Xt=Be($e,mt);if(Xt){const[ma,ks]=Xt;if(lt.addText(nt),nt="",Ie[mt]=(Ie[mt]||0)+1,Ie[mt]<=Vn&&(Dn+=ks),ma.startsWith("_"))nt+=ke[0];else{const fo=nn.classNameAliases[ma]||ma;We(ke[0],fo)}}else nt+=ke[0];pe=$e.keywordPatternRe.lastIndex,ke=$e.keywordPatternRe.exec(ht)}nt+=ht.substring(pe),lt.addText(nt)}function vt(){if(ht==="")return;let pe=null;if(typeof $e.subLanguage=="string"){if(!W[$e.subLanguage]){lt.addText(ht);return}pe=P($e.subLanguage,ht,!0,hi[$e.subLanguage]),hi[$e.subLanguage]=pe._top}else pe=fe(ht,$e.subLanguage.length?$e.subLanguage:null);$e.relevance>0&&(Dn+=pe.relevance),lt.__addSublanguage(pe._emitter,pe.language)}function Qe(){$e.subLanguage!=null?vt():Ye(),ht=""}function We(pe,ke){pe!==""&&(lt.startScope(ke),lt.addText(pe),lt.endScope())}function In(pe,ke){let nt=1;const mt=ke.length-1;for(;nt<=mt;){if(!pe._emit[nt]){nt++;continue}const Xt=nn.classNameAliases[pe[nt]]||pe[nt],ma=ke[nt];Xt?We(ma,Xt):(ht=ma,Ye(),ht=""),nt++}}function Gt(pe,ke){return pe.scope&&typeof pe.scope=="string"&<.openNode(nn.classNameAliases[pe.scope]||pe.scope),pe.beginScope&&(pe.beginScope._wrap?(We(ht,nn.classNameAliases[pe.beginScope._wrap]||pe.beginScope._wrap),ht=""):pe.beginScope._multi&&(In(pe.beginScope,ke),ht="")),$e=Object.create(pe,{parent:{value:$e}}),$e}function tn(pe,ke,nt){let mt=D(pe.endRe,nt);if(mt){if(pe["on:end"]){const Xt=new a(pe);pe["on:end"](ke,Xt),Xt.isMatchIgnored&&(mt=!1)}if(mt){for(;pe.endsParent&&pe.parent;)pe=pe.parent;return pe}}if(pe.endsWithParent)return tn(pe.parent,ke,nt)}function Sn(pe){return $e.matcher.regexIndex===0?(ht+=pe[0],1):($a=!0,0)}function ha(pe){const ke=pe[0],nt=pe.rule,mt=new a(nt),Xt=[nt.__beforeBegin,nt["on:begin"]];for(const ma of Xt)if(ma&&(ma(pe,mt),mt.isMatchIgnored))return Sn(ke);return nt.skip?ht+=ke:(nt.excludeBegin&&(ht+=ke),Qe(),!nt.returnBegin&&!nt.excludeBegin&&(ht=ke)),Gt(nt,pe),nt.returnBegin?0:ke.length}function wn(pe){const ke=pe[0],nt=se.substring(pe.index),mt=tn($e,pe,nt);if(!mt)return da;const Xt=$e;$e.endScope&&$e.endScope._wrap?(Qe(),We(ke,$e.endScope._wrap)):$e.endScope&&$e.endScope._multi?(Qe(),In($e.endScope,pe)):Xt.skip?ht+=ke:(Xt.returnEnd||Xt.excludeEnd||(ht+=ke),Qe(),Xt.excludeEnd&&(ht=ke));do $e.scope&<.closeNode(),!$e.skip&&!$e.subLanguage&&(Dn+=$e.relevance),$e=$e.parent;while($e!==mt.parent);return mt.starts&&Gt(mt.starts,pe),Xt.returnEnd?0:ke.length}function _r(){const pe=[];for(let ke=$e;ke!==nn;ke=ke.parent)ke.scope&&pe.unshift(ke.scope);pe.forEach(ke=>lt.openNode(ke))}let Ia={};function Ga(pe,ke){const nt=ke&&ke[0];if(ht+=pe,nt==null)return Qe(),0;if(Ia.type==="begin"&&ke.type==="end"&&Ia.index===ke.index&&nt===""){if(ht+=se.slice(ke.index,ke.index+1),!St){const mt=new Error(`0 width match regex (${X})`);throw mt.languageName=X,mt.badRule=Ia.rule,mt}return 1}if(Ia=ke,ke.type==="begin")return ha(ke);if(ke.type==="illegal"&&!De){const mt=new Error('Illegal lexeme "'+nt+'" for mode "'+($e.scope||"<unnamed>")+'"');throw mt.mode=$e,mt}else if(ke.type==="end"){const mt=wn(ke);if(mt!==da)return mt}if(ke.type==="illegal"&&nt==="")return ht+=`
|
|
144
|
+
`,1;if(zn>1e5&&zn>ke.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ht+=nt,nt.length}const nn=ut(X);if(!nn)throw Dt(Et.replace("{}",X)),new Error('Unknown language: "'+X+'"');const fi=_n(nn);let cr="",$e=ze||fi;const hi={},lt=new Me.__emitter(Me);_r();let ht="",Dn=0,Hn=0,zn=0,$a=!1;try{if(nn.__emitTokens)nn.__emitTokens(se,lt);else{for($e.matcher.considerAll();;){zn++,$a?$a=!1:$e.matcher.considerAll(),$e.matcher.lastIndex=Hn;const pe=$e.matcher.exec(se);if(!pe)break;const ke=se.substring(Hn,pe.index),nt=Ga(ke,pe);Hn=pe.index+nt}Ga(se.substring(Hn))}return lt.finalize(),cr=lt.toHTML(),{language:X,value:cr,relevance:Dn,illegal:!1,_emitter:lt,_top:$e}}catch(pe){if(pe.message&&pe.message.includes("Illegal"))return{language:X,value:_a(se),illegal:!0,relevance:0,_illegalBy:{message:pe.message,index:Hn,context:se.slice(Hn-100,Hn+100),mode:pe.mode,resultSoFar:cr},_emitter:lt};if(St)return{language:X,value:_a(se),illegal:!1,relevance:0,errorRaised:pe,_emitter:lt,_top:$e};throw pe}}function ue(X){const se={value:_a(X),illegal:!1,relevance:0,_top:Ne,_emitter:new Me.__emitter(Me)};return se._emitter.addText(X),se}function fe(X,se){se=se||Me.languages||Object.keys(W);const De=ue(X),ze=se.filter(ut).filter(st).map(Qe=>P(Qe,X,!1));ze.unshift(De);const Ie=ze.sort((Qe,We)=>{if(Qe.relevance!==We.relevance)return We.relevance-Qe.relevance;if(Qe.language&&We.language){if(ut(Qe.language).supersetOf===We.language)return 1;if(ut(We.language).supersetOf===Qe.language)return-1}return 0}),[Be,Ye]=Ie,vt=Be;return vt.secondBest=Ye,vt}function Ce(X,se,De){const ze=se&&Ee[se]||De;X.classList.add("hljs"),X.classList.add(`language-${ze}`)}function ve(X){let se=null;const De=N(X);if(Ge(De))return;if(B("before:highlightElement",{el:X,language:De}),X.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",X);return}if(X.children.length>0&&(Me.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(X)),Me.throwUnescapedHTML))throw new or("One of your code blocks includes unescaped HTML.",X.innerHTML);se=X;const ze=se.textContent,Ie=De?k(ze,{language:De,ignoreIllegals:!0}):fe(ze);X.innerHTML=Ie.value,X.dataset.highlighted="yes",Ce(X,De,Ie.language),X.result={language:Ie.language,re:Ie.relevance,relevance:Ie.relevance},Ie.secondBest&&(X.secondBest={language:Ie.secondBest.language,relevance:Ie.secondBest.relevance}),B("after:highlightElement",{el:X,result:Ie,text:ze})}function je(X){Me=Fa(Me,X)}const Te=()=>{_e(),Wt("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ae(){_e(),Wt("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Pe=!1;function _e(){function X(){_e()}if(document.readyState==="loading"){Pe||window.addEventListener("DOMContentLoaded",X,!1),Pe=!0;return}document.querySelectorAll(Me.cssSelector).forEach(ve)}function Je(X,se){let De=null;try{De=se(L)}catch(ze){if(Dt("Language definition for '{}' could not be registered.".replace("{}",X)),St)Dt(ze);else throw ze;De=Ne}De.name||(De.name=X),W[X]=De,De.rawDefinition=se.bind(null,L),De.aliases&&Ot(De.aliases,{languageName:X})}function et(X){delete W[X];for(const se of Object.keys(Ee))Ee[se]===X&&delete Ee[se]}function wt(){return Object.keys(W)}function ut(X){return X=(X||"").toLowerCase(),W[X]||W[Ee[X]]}function Ot(X,{languageName:se}){typeof X=="string"&&(X=[X]),X.forEach(De=>{Ee[De.toLowerCase()]=se})}function st(X){const se=ut(X);return se&&!se.disableAutodetect}function Ut(X){X["before:highlightBlock"]&&!X["before:highlightElement"]&&(X["before:highlightElement"]=se=>{X["before:highlightBlock"](Object.assign({block:se.el},se))}),X["after:highlightBlock"]&&!X["after:highlightElement"]&&(X["after:highlightElement"]=se=>{X["after:highlightBlock"](Object.assign({block:se.el},se))})}function Tt(X){Ut(X),qe.push(X)}function Jn(X){const se=qe.indexOf(X);se!==-1&&qe.splice(se,1)}function B(X,se){const De=X;qe.forEach(function(ze){ze[De]&&ze[De](se)})}function be(X){return Wt("10.7.0","highlightBlock will be removed entirely in v12.0"),Wt("10.7.0","Please use highlightElement now."),ve(X)}Object.assign(L,{highlight:k,highlightAuto:fe,highlightAll:_e,highlightElement:ve,highlightBlock:be,configure:je,initHighlighting:Te,initHighlightingOnLoad:Ae,registerLanguage:Je,unregisterLanguage:et,listLanguages:wt,getLanguage:ut,registerAliases:Ot,autoDetection:st,inherit:Fa,addPlugin:Tt,removePlugin:Jn}),L.debugMode=function(){St=!1},L.safeMode=function(){St=!0},L.versionString=Yt,L.regex={concat:T,lookahead:E,either:j,optional:w,anyNumberOfTimes:S};for(const X in ot)typeof ot[X]=="object"&&t(ot[X]);return Object.assign(L,ot),L},on=fa({});return on.newInstance=()=>fa({}),W0=on,on.HighlightJS=on,on.default=on,W0}var kC=LC();const jn=a4(kC),I8="[A-Za-z$_][0-9A-Za-z$_]*",VC=["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"],HC=["true","false","null","undefined","NaN","Infinity"],Mb=["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"],Tb=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Cb=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],zC=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],BC=[].concat(Cb,Mb,Tb);function L1(t){const a=t.regex,i=(K,{after:de})=>{const we="</"+K[0].slice(1);return K.input.indexOf(we,de)!==-1},s=I8,o={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(K,de)=>{const we=K[0].length+K.index,R=K.input[we];if(R==="<"||R===","){de.ignoreMatch();return}R===">"&&(i(K,{after:we})||de.ignoreMatch());let q;const ce=K.input.substring(we);if(q=ce.match(/^\s*=/)){de.ignoreMatch();return}if((q=ce.match(/^\s+extends\s+/))&&q.index===0){de.ignoreMatch();return}}},h={$pattern:I8,keyword:VC,literal:HC,built_in:BC,"variable.language":zC},g="[0-9](_?[0-9])*",p=`\\.(${g})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",v={className:"number",variants:[{begin:`(\\b(${b})((${p})|\\.)?|(${p}))[eE][+-]?(${g})\\b`},{begin:`\\b(${b})\\b((${p})\\b|\\.)?|(${p})\\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},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:h,contains:[]},S={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"css"}},T={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,E]},C={className:"comment",variants:[t.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}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},D=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,S,w,T,M,{match:/\$\d+/},v];E.contains=D.concat({begin:/\{/,end:/\}/,keywords:h,contains:["self"].concat(D)});const H=[].concat(C,E.contains),U=H.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:["self"].concat(H)}]),te={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:U},ne={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,a.concat(s,"(",a.concat(/\./,s),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,s],scope:{1:"keyword",3:"title.class"}}]},_={relevance:0,match:a.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:{_:[...Mb,...Tb]}},ae={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ie={variants:[{match:[/function/,/\s+/,s,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[te],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(K){return a.concat("(?!",K.join("|"),")")}const ge={match:a.concat(/\b/,J([...Cb,"super","import"].map(K=>`${K}\\s*\\(`)),s,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},he={begin:a.concat(/\./,a.lookahead(a.concat(s,/(?![0-9A-Za-z$_(])/))),end:s,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},xe={match:[/get|set/,/\s+/,s,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},te]},V="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,s,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(V)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[te]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:h,exports:{PARAMS_CONTAINS:U,CLASS_REFERENCE:_},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),ae,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,S,w,T,M,C,{match:/\$\d+/},v,_,{scope:"attr",match:s+a.lookahead(":"),relevance:0},Q,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,t.REGEXP_MODE,{className:"function",begin:V,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:U}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.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"]}]}]},ie,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[te,t.inherit(t.TITLE_MODE,{begin:s,className:"title.function"})]},{match:/\.\.\./,relevance:0},he,{match:"\\$"+s,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[te]},ge,oe,ne,xe,{match:/\$[(.]/}]}}const su="[A-Za-z$_][0-9A-Za-z$_]*",Rb=["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"],Nb=["true","false","null","undefined","NaN","Infinity"],jb=["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"],_b=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Db=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ob=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Lb=[].concat(Db,jb,_b);function UC(t){const a=t.regex,i=(K,{after:de})=>{const we="</"+K[0].slice(1);return K.input.indexOf(we,de)!==-1},s=su,o={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(K,de)=>{const we=K[0].length+K.index,R=K.input[we];if(R==="<"||R===","){de.ignoreMatch();return}R===">"&&(i(K,{after:we})||de.ignoreMatch());let q;const ce=K.input.substring(we);if(q=ce.match(/^\s*=/)){de.ignoreMatch();return}if((q=ce.match(/^\s+extends\s+/))&&q.index===0){de.ignoreMatch();return}}},h={$pattern:su,keyword:Rb,literal:Nb,built_in:Lb,"variable.language":Ob},g="[0-9](_?[0-9])*",p=`\\.(${g})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",v={className:"number",variants:[{begin:`(\\b(${b})((${p})|\\.)?|(${p}))[eE][+-]?(${g})\\b`},{begin:`\\b(${b})\\b((${p})\\b|\\.)?|(${p})\\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},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:h,contains:[]},S={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},w={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"css"}},T={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},M={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,E]},C={className:"comment",variants:[t.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}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},D=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,S,w,T,M,{match:/\$\d+/},v];E.contains=D.concat({begin:/\{/,end:/\}/,keywords:h,contains:["self"].concat(D)});const H=[].concat(C,E.contains),U=H.concat([{begin:/(\s*)\(/,end:/\)/,keywords:h,contains:["self"].concat(H)}]),te={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:U},ne={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,a.concat(s,"(",a.concat(/\./,s),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,s],scope:{1:"keyword",3:"title.class"}}]},_={relevance:0,match:a.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:{_:[...jb,..._b]}},ae={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ie={variants:[{match:[/function/,/\s+/,s,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[te],illegal:/%/},oe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(K){return a.concat("(?!",K.join("|"),")")}const ge={match:a.concat(/\b/,J([...Db,"super","import"].map(K=>`${K}\\s*\\(`)),s,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},he={begin:a.concat(/\./,a.lookahead(a.concat(s,/(?![0-9A-Za-z$_(])/))),end:s,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},xe={match:[/get|set/,/\s+/,s,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},te]},V="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",Q={match:[/const|var|let/,/\s+/,s,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(V)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[te]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:h,exports:{PARAMS_CONTAINS:U,CLASS_REFERENCE:_},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),ae,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,S,w,T,M,C,{match:/\$\d+/},v,_,{scope:"attr",match:s+a.lookahead(":"),relevance:0},Q,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,t.REGEXP_MODE,{className:"function",begin:V,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:h,contains:U}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.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"]}]}]},ie,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[te,t.inherit(t.TITLE_MODE,{begin:s,className:"title.function"})]},{match:/\.\.\./,relevance:0},he,{match:"\\$"+s,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[te]},ge,oe,ne,xe,{match:/\$[(.]/}]}}function k1(t){const a=t.regex,i=UC(t),s=su,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},u={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},contains:[i.exports.CLASS_REFERENCE]},h={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},g=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],p={$pattern:su,keyword:Rb.concat(g),literal:Nb,built_in:Lb.concat(o),"variable.language":Ob},b={className:"meta",begin:"@"+s},v=(T,M,j)=>{const C=T.contains.findIndex(D=>D.label===M);if(C===-1)throw new Error("can not find mode to replace");T.contains.splice(C,1,j)};Object.assign(i.keywords,p),i.exports.PARAMS_CONTAINS.push(b);const E=i.contains.find(T=>T.scope==="attr"),S=Object.assign({},E,{match:a.concat(s,a.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,E,S]),i.contains=i.contains.concat([b,c,u,S]),v(i,"shebang",t.SHEBANG()),v(i,"use_strict",h);const w=i.contains.find(T=>T.label==="func.def");return w.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function kb(t){const a=t.regex,i=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"]},g={className:"meta",begin:/^(>>>|\.\.\.) /},p={className:"subst",begin:/\{/,end:/\}/,keywords:h,illegal:/#/},b={begin:/\{\{/,relevance:0},v={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,g],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,g],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,g,b,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,g,b,p]},{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:[t.BACKSLASH_ESCAPE,b,p]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,b,p]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},E="[0-9](_?[0-9])*",S=`(\\b(${E}))?\\.(${E})|\\b(${E})\\.`,w=`\\b|${s.join("|")}`,T={className:"number",relevance:0,variants:[{begin:`(\\b(${E})|(${S}))[eE][+-]?(${E})[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(${E})[jJ](?=${w})`}]},M={className:"comment",begin:a.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",g,T,v,t.HASH_COMMENT_MODE]}]};return p.contains=[v,T,g],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:h,illegal:/(<\/|\?)|=>/,contains:[g,T,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},v,M,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[j]},{variants:[{match:[/\bclass/,/\s+/,i,/\s*/,/\(\s*/,i,/\s*\)/]},{match:[/\bclass/,/\s+/,i]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[T,j,v]}]}}const ZC=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.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:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.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_-]*/}}),PC=["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"],FC=["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"],IC=[...PC,...FC],GC=["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(),$C=["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(),qC=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),KC=["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 Vb(t){const a=t.regex,i=ZC(t),s={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},o="and or not only",c=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",h=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,s,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+$C.join("|")+")"},{begin:":(:)?("+qC.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+KC.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.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}]},i.FUNCTION_DISPATCH]},{begin:a.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:GC.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...h,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+IC.join("|")+")\\b"}]}}function V1(t){const a=t.regex,i={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:a.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const o={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},c=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),u={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},h={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,i,o]};o.contains.push(h);const g={match:/\\"/},p={className:"string",begin:/'/,end:/'/},b={match:/\\'/},v={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,i]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],S=t.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),w={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},T=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],M=["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"],D=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],H=["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"],U=["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:T,literal:M,built_in:[...C,...D,"set","shopt",...H,...U]},contains:[S,t.SHEBANG(),w,v,c,u,j,h,g,p,b,i]}}function YC(t){const a={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},i={match:/[{}[\],:]/,className:"punctuation",relevance:0},s=["true","false","null"],o={scope:"literal",beginKeywords:s.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:s},contains:[a,i,t.QUOTE_STRING_MODE,o,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function Hb(t){const a=t.regex,i=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,o={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=t.inherit(c,{begin:/\(/,end:/\)/}),h=t.inherit(t.APOS_STRING_MODE,{className:"string"}),g=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),p={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:[o]},{begin:/'/,end:/'/,contains:[o]},{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,g,h,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,u,g,h]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[g]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[p],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a.concat(/</,a.lookahead(a.concat(i,a.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:p}]},{className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}jn.registerLanguage("javascript",L1);jn.registerLanguage("js",L1);jn.registerLanguage("jsx",L1);jn.registerLanguage("typescript",k1);jn.registerLanguage("ts",k1);jn.registerLanguage("tsx",k1);jn.registerLanguage("python",kb);jn.registerLanguage("py",kb);jn.registerLanguage("css",Vb);jn.registerLanguage("scss",Vb);jn.registerLanguage("bash",V1);jn.registerLanguage("sh",V1);jn.registerLanguage("shell",V1);jn.registerLanguage("json",YC);jn.registerLanguage("xml",Hb);jn.registerLanguage("html",Hb);function XC(t){const a=[],i=/```([a-z:_-]*)\n([\s\S]*?)```/g;let s=0,o;for(;(o=i.exec(t))!==null;){const u=t.slice(s,o.index);u.trim()&&a.push({kind:"markdown",content:u});const h=o[1],g=o[2];if(h==="json:persona")try{a.push({kind:"persona",data:JSON.parse(g)})}catch{a.push({kind:"code",lang:"json",content:g})}else if(h==="json:journey-map")try{a.push({kind:"journey-map",data:JSON.parse(g)})}catch{a.push({kind:"code",lang:"json",content:g})}else if(h==="json:feature-tree")try{a.push({kind:"feature-tree",data:JSON.parse(g)})}catch{a.push({kind:"code",lang:"json",content:g})}else a.push({kind:"code",lang:h||"text",content:g});s=o.index+o[0].length}const c=t.slice(s);return c.trim()&&a.push({kind:"markdown",content:c}),a}function _i(t){return t.split(/(\*\*[^*]+\*\*|`[^`]+`|\*[^*]+\*)/g).map((i,s)=>i.startsWith("**")&&i.endsWith("**")?y.jsx("strong",{className:"font-semibold",children:i.slice(2,-2)},s):i.startsWith("`")&&i.endsWith("`")?y.jsx("code",{className:"font-mono text-[0.82em] bg-border-secondary px-1 rounded",children:i.slice(1,-1)},s):i.startsWith("*")&&i.endsWith("*")&&i.length>2?y.jsx("em",{children:i.slice(1,-1)},s):i)}function G8(t){const a=t.split(`
|
|
145
|
+
`),i=[];let s=0,o=[],c=[];function u(){o.length>0&&(i.push(y.jsx("ul",{className:"list-disc pl-5 mb-3 space-y-0.5",children:o.map((h,g)=>y.jsx("li",{className:"text-body text-text-primary",children:_i(h)},g))},`ul-${s}`)),o=[]),c.length>0&&(i.push(y.jsx("ol",{className:"list-decimal pl-5 mb-3 space-y-0.5",children:c.map((h,g)=>y.jsx("li",{className:"text-body text-text-primary",children:_i(h)},g))},`ol-${s}`)),c=[])}for(;s<a.length;){const h=a[s],g=h.trim();h.startsWith("#### ")?(u(),i.push(y.jsx("h4",{className:"text-small font-semibold mt-3 mb-1 text-text-primary",children:_i(h.slice(5))},s))):h.startsWith("### ")?(u(),i.push(y.jsx("h3",{className:"text-sub-heading font-medium mt-4 mb-1.5 text-text-primary",children:_i(h.slice(4))},s))):h.startsWith("## ")?(u(),i.push(y.jsx("h2",{className:"text-feature-title font-semibold font-features-display mt-5 mb-2 text-text-primary",children:_i(h.slice(3))},s))):h.startsWith("> ")?(u(),i.push(y.jsx("blockquote",{className:"border-l-2 border-border pl-4 text-text-secondary italic text-body my-2",children:_i(h.slice(2))},s))):h.startsWith("- ")||h.startsWith("* ")?(c.length>0&&u(),o.push(h.slice(2))):/^\d+\. /.test(h)?(o.length>0&&u(),c.push(h.replace(/^\d+\. /,""))):g==="---"||g==="***"?(u(),i.push(y.jsx("hr",{className:"my-3 border-border"},s))):g===""?u():(u(),i.push(y.jsx("p",{className:"text-body text-text-primary mb-2 leading-relaxed",children:_i(h)},s))),s++}return u(),i}const QC={curious:"🤔",positive:"😊",happy:"😊",excited:"🤩",neutral:"😐",negative:"😞",frustrated:"😤",confused:"😕",anxious:"😰"};function JC(t){return QC[t.toLowerCase()]??"😐"}function WC({data:t}){const a=t.name.split(" ").map(i=>i[0]).join("").slice(0,2).toUpperCase();return y.jsxs("div",{className:"rounded-feature border border-border bg-card shadow-clay overflow-hidden my-3 w-full",children:[y.jsxs("div",{className:"px-4 py-3 border-b border-border bg-canvas flex items-center gap-3",children:[y.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:a}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsxs("p",{className:"font-semibold text-text-primary text-body leading-tight",children:[t.name,t.age?`, ${t.age}`:""]}),y.jsx("p",{className:"text-small text-text-secondary truncate",children:t.role})]}),t.sourced&&y.jsx("span",{className:"flex-shrink-0 text-caption px-2 py-0.5 rounded-full border border-border text-text-tertiary",children:"SOURCED"})]}),y.jsxs("div",{className:"grid grid-cols-2 divide-x divide-border border-b border-border",children:[y.jsxs("div",{className:"p-3",children:[y.jsx("p",{className:"text-caption font-medium text-text-tertiary uppercase tracking-wider mb-2",children:"Goals"}),y.jsx("ul",{className:"space-y-1.5",children:(t.goals??[]).map((i,s)=>y.jsxs("li",{className:"flex gap-1.5 text-small text-text-primary",children:[y.jsx("span",{className:"text-green-500 flex-shrink-0 mt-0.5",children:"✓"}),y.jsx("span",{children:i})]},s))})]}),y.jsxs("div",{className:"p-3",children:[y.jsx("p",{className:"text-caption font-medium text-text-tertiary uppercase tracking-wider mb-2",children:"Pain Points"}),y.jsx("ul",{className:"space-y-1.5",children:(t.pains??[]).map((i,s)=>y.jsxs("li",{className:"flex gap-1.5 text-small text-text-primary",children:[y.jsx("span",{className:"text-pomegranate-400 flex-shrink-0 mt-0.5",children:"✗"}),y.jsx("span",{children:i})]},s))})]})]}),t.behaviors&&t.behaviors.length>0&&y.jsxs("div",{className:"px-4 py-3 border-b border-border",children:[y.jsx("p",{className:"text-caption font-medium text-text-tertiary uppercase tracking-wider mb-2",children:"Behaviours"}),y.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.behaviors.map((i,s)=>y.jsx("span",{className:"px-2 py-0.5 rounded-full bg-border-secondary text-small text-text-secondary",children:i},s))})]}),t.quote&&y.jsx("div",{className:"px-4 py-3",children:y.jsxs("p",{className:"text-body italic text-text-secondary leading-relaxed",children:["“",t.quote,"”"]})})]})}function eR({data:t}){return y.jsxs("div",{className:"rounded-feature border border-border bg-card shadow-clay overflow-hidden my-3 w-full",children:[y.jsx("div",{className:"px-4 py-2.5 border-b border-border bg-canvas",children:y.jsxs("p",{className:"text-small font-medium text-text-primary",children:["Journey Map — ",y.jsx("span",{className:"text-text-secondary",children:t.persona})]})}),y.jsx("div",{className:"overflow-x-auto",children:y.jsx("div",{className:"inline-flex min-w-full",children:(t.stages??[]).map((a,i)=>y.jsxs("div",{className:"min-w-[140px] flex-1 border-r border-border last:border-r-0 flex flex-col",children:[y.jsx("div",{className:"px-3 py-2 border-b border-border bg-border-secondary",children:y.jsx("p",{className:"text-caption font-medium text-text-primary text-center leading-tight",children:a.name})}),y.jsx("div",{className:"px-3 py-2 text-center text-base border-b border-border",children:JC(a.emotion)}),y.jsxs("div",{className:"px-3 py-2 border-b border-border flex-1",children:[y.jsx("p",{className:"text-caption text-text-tertiary mb-1 font-medium",children:"Touchpoints"}),(a.touchpoints??[]).map((s,o)=>y.jsxs("p",{className:"text-caption text-text-primary leading-snug",children:["· ",s]},o))]}),a.pains&&a.pains.length>0&&y.jsxs("div",{className:"px-3 py-2",children:[y.jsx("p",{className:"text-caption text-text-tertiary mb-1 font-medium",children:"Pains"}),a.pains.map((s,o)=>y.jsxs("p",{className:"text-caption text-pomegranate-400 leading-snug",children:["· ",s]},o))]})]},i))})})]})}function tR({data:t}){const a=[{label:"MVP",items:t.mvp??[],color:"text-green-600"},{label:"Phase 2",items:t.phase2??[],color:"text-blue-500"},{label:"Backlog",items:t.backlog??[],color:"text-text-tertiary"}];return y.jsxs("div",{className:"rounded-feature border border-border bg-card shadow-clay overflow-hidden my-3 w-full",children:[y.jsx("div",{className:"px-4 py-2.5 border-b border-border bg-canvas",children:y.jsx("p",{className:"text-small font-medium text-text-primary",children:"Feature Tree"})}),y.jsx("div",{className:"grid grid-cols-3 divide-x divide-border",children:a.map(({label:i,items:s,color:o})=>y.jsxs("div",{className:"p-3",children:[y.jsx("p",{className:`text-caption font-medium uppercase tracking-wider mb-2 ${o}`,children:i}),y.jsxs("ul",{className:"space-y-1.5",children:[s.map((c,u)=>y.jsx("li",{className:"text-caption text-text-primary leading-snug",children:c},u)),s.length===0&&y.jsx("li",{className:"text-caption text-text-tertiary italic",children:"None yet"})]})]},i))})]})}function nR({lang:t,content:a}){const[i,s]=d.useState(!1),o=d.useMemo(()=>{if(!t||t==="text")return null;try{return jn.highlight(a,{language:t,ignoreIllegals:!0}).value}catch{return null}},[t,a]);function c(){navigator.clipboard.writeText(a).then(()=>{s(!0),window.setTimeout(()=>s(!1),1500)})}const u=t&&t!=="text";return y.jsxs("div",{className:"my-3 relative",children:[u&&y.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:[y.jsx("span",{className:"text-caption text-text-tertiary font-mono",children:t}),y.jsx("button",{type:"button",onClick:c,className:"text-caption text-text-tertiary hover:text-text-primary transition-colors",children:i?"Copied!":"Copy"})]}),y.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:o?y.jsx("code",{className:"hljs",dangerouslySetInnerHTML:{__html:o}}):y.jsx("code",{children:a})})]})}function aR({content:t,agentName:a,isStreaming:i}){const s=d.useMemo(()=>i?null:XC(t),[t,i]),o=d.useMemo(()=>G8(t),[t]);return y.jsxs("article",{className:"flex gap-3",children:[y.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"}),y.jsxs("div",{className:"flex-1 min-w-0",children:[a&&y.jsx("p",{className:"text-uppercase-label text-text-tertiary mb-2",children:a}),y.jsx("div",{className:"text-body text-text-primary leading-relaxed",children:i||!s?o:s.map((c,u)=>c.kind==="markdown"?y.jsx(xs.Fragment,{children:G8(c.content)},u):c.kind==="persona"?y.jsx(WC,{data:c.data},u):c.kind==="journey-map"?y.jsx(eR,{data:c.data},u):c.kind==="feature-tree"?y.jsx(tR,{data:c.data},u):c.kind==="code"?y.jsx(nR,{lang:c.lang,content:c.content},u):null)}),i&&y.jsx("span",{className:"inline-block w-1.5 h-4 bg-text-primary animate-pulse ml-1 align-middle"})]})]})}function rR({phaseName:t,phaseColor:a,items:i,agentNote:s,isStreaming:o}){const[c,u]=d.useState(!1),h=i.filter(v=>v.status==="done").length,g=i.length,p=o&&g===0?"Working…":o?`Generating ${g} artifact${g!==1?"s":""}…`:`Generated ${g} artifact${g!==1?"s":""}`,b=a??"#3bd3fd";return y.jsxs("article",{className:"flex gap-3",children:[y.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"}),y.jsxs("div",{className:"flex-1 min-w-0",children:[t&&y.jsx("p",{className:"text-uppercase-label text-text-tertiary mb-2",children:t}),y.jsxs("div",{className:"rounded-feature border border-border bg-card overflow-hidden shadow-clay",children:[y.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border",children:[y.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{backgroundColor:b}}),y.jsx("p",{className:"text-small font-medium text-text-primary flex-1 leading-snug",children:p}),o&&h<g&&y.jsx(Cs,{size:14,className:"text-text-tertiary animate-spin flex-shrink-0","aria-label":"Generating"}),!o&&g>0&&y.jsx(Bi,{size:14,weight:"fill",className:"text-status-success flex-shrink-0","aria-label":"Complete"})]}),g>0&&y.jsx("div",{className:"divide-y divide-border max-h-[256px] overflow-y-auto",children:i.map(v=>y.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-2.5",children:[v.status==="done"?y.jsx(Bi,{size:13,weight:"fill",className:"text-status-success flex-shrink-0"}):y.jsx(Cs,{size:13,className:"text-text-tertiary animate-spin flex-shrink-0"}),y.jsx("p",{className:"text-small text-text-primary truncate",children:v.title})]},v.id))}),s&&s.length>0&&y.jsxs("div",{className:"border-t border-border",children:[y.jsxs("button",{type:"button",onClick:()=>u(v=>!v),className:"w-full flex items-center gap-2 px-4 py-2.5 text-left hover:bg-border-secondary/30 transition-colors",children:[c?y.jsx(m9,{size:11,className:"text-text-tertiary flex-shrink-0"}):y.jsx($4,{size:11,className:"text-text-tertiary flex-shrink-0"}),y.jsx("span",{className:"text-caption text-text-tertiary",children:"Agent note"})]}),c&&y.jsx("div",{className:"px-4 pb-3 text-caption text-text-secondary leading-relaxed whitespace-pre-wrap",children:s})]})]})]})]})}const iR={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 sR({phaseNumber:t,phaseName:a,size:i="sm"}){const s=iR[t]??{bg:"#f4f4f5",text:"#71717a"};return y.jsxs("span",{className:`inline-flex items-center gap-1.5 rounded-pill font-medium ${i==="sm"?"text-small px-2 py-0.5":"text-caption px-2.5 py-1"}`,style:{backgroundColor:s.bg,color:s.text},children:[y.jsx("span",{className:"font-semibold",children:t}),a]})}function lR({phaseNumber:t,phaseName:a,direction:i}){return y.jsxs("div",{className:"flex items-center gap-3 py-2",children:[y.jsx("div",{className:"flex-1 h-px bg-border"}),y.jsx(sR,{phaseNumber:t,phaseName:a}),y.jsx("span",{className:"text-caption text-text-tertiary",children:i==="entering"?"started":"complete"}),y.jsx("div",{className:"flex-1 h-px bg-border"})]})}const oR={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"},cR={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 oa({variant:t="primary",size:a="md",className:i,children:s,disabled:o,...c}){return y.jsx("button",{disabled:o,"aria-disabled":o,className:er("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",oR[t],cR[a],i),...c,children:s})}function uR({gateKey:t,phaseName:a,phaseNumber:i,gateSummary:s,gateStatus:o,summaryArtefacts:c=[],gateVariant:u="standard",gateNextStep:h}){const g=Rt(w=>w.resolveGate),[p,b]=d.useState(!1),[v,E]=d.useState("");if(o==="approved"){const w=u==="type-selection"?`${a} — path chosen`:`${a} — approved`;return y.jsxs("div",{role:"status","aria-label":`Gate ${t} approved`,className:`rounded-feature border border-matcha-300 bg-card shadow-clay px-5 py-3
|
|
146
|
+
flex items-center gap-3 opacity-80`,children:[y.jsx(Bi,{size:16,className:"text-matcha-600 flex-shrink-0",weight:"fill","aria-hidden":"true"}),y.jsx("span",{className:"text-body-standard text-matcha-600 font-medium",children:w}),y.jsxs("span",{className:"text-caption text-text-tertiary ml-auto",children:["Gate ",t]})]})}if(o==="rejected")return y.jsxs("div",{role:"status","aria-label":`Gate ${t} — revisions requested`,className:`rounded-feature border border-border-secondary bg-canvas shadow-clay px-5 py-3
|
|
147
|
+
flex items-center gap-3 opacity-70`,children:[y.jsx(kc,{size:16,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),y.jsxs("span",{className:"text-body-standard text-text-secondary font-medium",children:[a," — revisions requested"]}),y.jsxs("span",{className:"text-caption text-text-tertiary ml-auto",children:["Gate ",t]})]});if(u==="type-selection")return y.jsxs("section",{"aria-label":"Choose your ideation path",className:"rounded-feature border-2 border-ube-300 bg-card shadow-clay overflow-hidden",children:[y.jsxs("div",{className:"bg-ube-300 px-5 py-3 flex items-center gap-3",children:[y.jsx(kc,{size:18,className:"text-text-primary flex-shrink-0",weight:"duotone","aria-hidden":"true"}),y.jsxs("div",{children:[y.jsx("p",{className:"text-body-medium text-text-primary font-semibold",children:"Choose Your Path"}),y.jsxs("p",{className:"text-caption text-text-primary opacity-60",children:["Gate ",t," · ",a]})]})]}),y.jsxs("div",{className:"px-5 py-5 space-y-3",children:[s&&y.jsx("p",{className:"text-body text-text-primary",children:s}),y.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[y.jsxs("button",{onClick:()=>g(t,"approved","fast-track"),className:`text-left px-4 py-4 rounded-card border-2 border-lemon-500 bg-card
|
|
148
|
+
shadow-clay hover:-translate-y-0.5 hover:shadow-hover-subtle
|
|
149
|
+
transition-all duration-100
|
|
150
|
+
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:[y.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[y.jsx(A9,{size:16,className:"text-lemon-700",weight:"fill","aria-hidden":"true"}),y.jsx("span",{className:"text-button-small font-semibold text-text-primary",children:"Fast Track"}),y.jsx("span",{className:"text-caption text-text-tertiary ml-auto",children:"Type 1"})]}),y.jsx("p",{className:"text-small text-text-secondary",children:"2–3 focused concepts → north star convergence. Best for tight timelines."})]}),y.jsxs("button",{onClick:()=>g(t,"approved","experimental"),className:`text-left px-4 py-4 rounded-card border-2 border-ube-300 bg-card
|
|
151
|
+
shadow-clay hover:-translate-y-0.5 hover:shadow-hover-subtle
|
|
152
|
+
transition-all duration-100
|
|
153
|
+
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:[y.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[y.jsx(h9,{size:16,className:"text-ube-800",weight:"fill","aria-hidden":"true"}),y.jsx("span",{className:"text-button-small font-semibold text-text-primary",children:"Experimental"}),y.jsx("span",{className:"text-caption text-text-tertiary ml-auto",children:"Type 2"})]}),y.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"?`${a} — ready for sign-off`:`${a} — ready for review`;return y.jsxs("section",{"aria-label":`Gate ${t}: ${a} ready for review`,className:"rounded-feature border-2 border-lemon-500 bg-card shadow-clay overflow-hidden",children:[y.jsxs("div",{className:"bg-lemon-500 px-5 py-3 flex items-center gap-3",children:[y.jsx(kc,{size:18,className:"text-text-primary flex-shrink-0",weight:"duotone","aria-hidden":"true"}),y.jsxs("div",{children:[y.jsx("p",{className:"text-body-medium text-text-primary font-semibold",children:S}),y.jsxs("p",{className:"text-caption text-text-primary opacity-60",children:["Gate ",t]})]})]}),y.jsxs("div",{className:"px-5 py-4 space-y-4",children:[s&&y.jsx("p",{className:"text-body text-text-primary",children:s}),c.length>0&&y.jsx("ul",{role:"list","aria-label":"Produced artefacts",className:"space-y-1.5",children:c.map(w=>y.jsxs("li",{className:"flex items-center gap-2",children:[y.jsx(sy,{size:13,className:"text-text-tertiary flex-shrink-0","aria-hidden":"true"}),y.jsx("span",{className:"text-caption text-text-secondary font-mono truncate",children:w})]},w))}),h&&!p&&y.jsxs("div",{className:"flex items-start gap-2 pt-1 border-t border-border-secondary",children:[y.jsx(d9,{size:13,className:"text-text-tertiary flex-shrink-0 mt-0.5","aria-hidden":"true"}),y.jsxs("p",{className:"text-caption text-text-tertiary",children:[y.jsx("span",{className:"font-medium text-text-secondary",children:"Next:"})," ",h]})]}),p?y.jsxs("div",{className:"space-y-2",role:"form","aria-label":"Submit revisions",children:[y.jsx("label",{htmlFor:`feedback-${t}`,className:"sr-only",children:"Describe the revisions you need"}),y.jsx("textarea",{id:`feedback-${t}`,value:v,onChange:w=>E(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
|
|
154
|
+
text-body-standard text-text-primary resize-none
|
|
155
|
+
focus:outline-none focus:border-text-primary transition-colors
|
|
156
|
+
placeholder:text-text-secondary`}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx(oa,{variant:"primary",size:"sm",onClick:()=>{v.trim()&&(g(t,"rejected"),b(!1),E(""))},children:"Send revisions"}),y.jsx(oa,{variant:"ghost",size:"sm",onClick:()=>b(!1),children:"Cancel"})]})]}):y.jsxs("div",{className:"flex items-center gap-3 flex-wrap pt-1",children:[y.jsxs(oa,{variant:"primary",size:"md",onClick:()=>g(t,"approved"),children:[y.jsx(Bi,{size:15,weight:"bold","aria-hidden":"true"}),"Approve & Continue"]}),y.jsx(oa,{variant:"ghost",size:"md",onClick:()=>b(!0),children:"Request Revisions"})]})]})]})}function dR({phaseNumber:t,phaseName:a,phaseColor:i="#dad4c8",summaryArtefacts:s=[]}){const o=Bt(c=>c.openContextPanel);return y.jsxs("div",{className:"rounded-feature border border-border bg-card shadow-clay overflow-hidden",children:[y.jsx("div",{className:"h-1.5",style:{backgroundColor:i}}),y.jsxs("div",{className:"px-5 py-4",children:[y.jsxs("p",{className:"text-feature-title font-features-display text-text-primary font-semibold",children:[a," complete"]}),y.jsxs("p",{className:"text-caption text-text-secondary mt-1",children:["Phase ",t," · ",s.length," artefact",s.length!==1?"s":""," produced"]}),s.length>0&&y.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:s.map(c=>y.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))}),y.jsx("button",{className:`mt-3 text-caption text-text-tertiary hover:text-text-primary
|
|
157
|
+
flex items-center gap-1 transition-colors`,onClick:()=>o("artefacts"),children:"View all artefacts →"})]})]})}function fR({thinkingText:t,thinkingProgress:a=0}){return y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx("div",{className:`flex-shrink-0 w-7 h-7 rounded-card bg-lemon-500 flex items-center
|
|
158
|
+
justify-center text-small font-semibold text-lemon-800`,children:"DX"}),y.jsxs("div",{className:"flex-1 space-y-2 pt-1",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Cs,{size:14,className:"text-text-secondary animate-spin"}),y.jsx("span",{className:"text-caption text-text-secondary",children:t??"Working…"})]}),a>0&&y.jsx("div",{className:"h-0.5 rounded-pill bg-border overflow-hidden w-48",children:y.jsx("div",{className:"h-full bg-text-primary rounded-pill transition-all duration-300",style:{width:`${a}%`}})})]})]})}function zb({message:t,isCurrentlyStreaming:a}){switch(t.type){case"user":return y.jsx(OC,{content:t.content??""});case"agent":return y.jsx(aR,{content:t.content??"",agentName:t.agentName,isStreaming:a??!1});case"artifact-progress":return y.jsx(rR,{phaseName:t.phaseName,phaseColor:t.phaseColor,items:t.artifactProgress??[],agentNote:t.agentNote,isStreaming:a??!1});case"phase-transition":return y.jsx(lR,{phaseNumber:t.phaseNumber??1,phaseName:t.phaseName??"",direction:t.direction??"entering"});case"gate":return y.jsx(uR,{gateKey:t.gateKey??"",phaseName:t.phaseName??"",phaseNumber:t.phaseNumber??1,gateSummary:t.gateSummary,gateStatus:t.gateStatus??"pending",summaryArtefacts:t.summaryArtefacts,gateVariant:t.gateVariant,gateNextStep:t.gateNextStep});case"phase-summary":return y.jsx(dR,{phaseNumber:t.phaseNumber??1,phaseName:t.phaseName??"",phaseColor:t.phaseColor,summaryArtefacts:t.summaryArtefacts});case"thinking":return y.jsx(fR,{thinkingText:t.thinkingText,thinkingProgress:t.thinkingProgress});case"system":return y.jsx("div",{className:"text-center",children:y.jsx("span",{className:"text-caption text-text-tertiary",children:t.content})});default:return null}}function hR({messages:t}){const a=d.useRef(null),s=Rt(o=>o.isStreaming)?t.reduceRight((o,c)=>o??(c.type==="agent"||c.type==="artifact-progress"?c.id:null),null):null;return d.useEffect(()=>{var o;(o=a.current)==null||o.scrollIntoView({behavior:"smooth"})},[t.length]),y.jsx("div",{className:"flex-1 overflow-y-auto",role:"log","aria-label":"Project stream","aria-live":"polite","aria-atomic":"false",children:y.jsxs("div",{className:"mx-auto max-w-[720px] px-4 py-6 space-y-4 pb-32",children:[t.length===0&&y.jsx("p",{className:"text-body-standard text-text-tertiary text-center py-12",role:"status",children:"No messages yet."}),t.map(o=>y.jsx(zb,{message:o,isCurrentlyStreaming:(o.type==="agent"||o.type==="artifact-progress")&&o.id===s},o.id)),y.jsx("div",{ref:a,"aria-hidden":"true"})]})})}function mR({onSubmit:t,disabled:a=!1,placeholder:i="Type a command or ask anything…",label:s="Send a message"}){const[o,c]=d.useState(""),u=d.useRef(null);function h(b){c(b.target.value);const v=b.target;v.style.height="auto",v.style.height=Math.min(v.scrollHeight,160)+"px"}function g(b){b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),p())}function p(){const b=o.trim();!b||a||(t(b),c(""),u.current&&(u.current.style.height="auto"))}return y.jsx("div",{className:"sticky bottom-0 bg-canvas",role:"form","aria-label":s,children:y.jsxs("div",{className:"mx-auto max-w-[720px] px-4 py-3",children:[y.jsxs("div",{className:`flex items-end gap-2 rounded-feature border border-border
|
|
159
|
+
bg-card shadow-clay px-4 py-3
|
|
160
|
+
focus-within:border-text-primary transition-colors`,children:[y.jsx("textarea",{ref:u,value:o,onChange:h,onKeyDown:g,disabled:a,placeholder:i,"aria-label":i,rows:1,className:`flex-1 resize-none bg-transparent text-body-standard text-text-primary
|
|
161
|
+
placeholder:text-text-secondary font-primary outline-none leading-relaxed
|
|
162
|
+
min-h-[24px] max-h-[160px] disabled:opacity-40`}),y.jsx("button",{onClick:p,disabled:!o.trim()||a,"aria-label":"Send message","aria-disabled":!o.trim()||a,className:`flex-shrink-0 w-8 h-8 rounded-standard flex items-center justify-center
|
|
163
|
+
bg-text-primary text-text-inverse
|
|
164
|
+
disabled:opacity-30 disabled:cursor-not-allowed
|
|
165
|
+
enabled:hover:-rotate-6 enabled:hover:-translate-y-1
|
|
166
|
+
enabled:hover:shadow-hover-hard
|
|
167
|
+
transition-all duration-100
|
|
168
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-inverse`,children:y.jsx(F4,{size:14,weight:"bold","aria-hidden":"true"})})]}),y.jsx("p",{className:"sr-only",children:"Press Enter to send. Shift+Enter for a new line."})]})})}const pR="01ab8ac9400c4e429b23",$8="01ab8ac9400c4e429b23".trim()||pR;function gR(){const t=Ha(H=>H.setAuth),[a,i]=d.useState("idle"),[s,o]=d.useState(""),[c,u]=d.useState("https://github.com/login/device"),[h,g]=d.useState(0),[p,b]=d.useState(""),[v,E]=d.useState(!1),S=d.useRef(!1);d.useEffect(()=>{if(a!=="awaiting"||h<=0)return;const H=setInterval(()=>g(U=>U-1),1e3);return()=>clearInterval(H)},[a,h]);async function w(){i("awaiting"),b(""),S.current=!1;try{const H=await cS($8);o(H.user_code),u(H.verification_uri),g(H.expires_in);const U=await uS($8,H.device_code,H.interval);if(S.current)return;i("connecting");const te=await dS(U),ne=await My(U),_=ne.token,ae=new Date(ne.expires_at).getTime();t(U,_,ae,te)}catch(H){if(S.current)return;const U=H instanceof Error?H.message:String(H);b(U==="expired_token"?"Code expired. Try again.":U==="access_denied"?"Access denied on GitHub.":U),i("error")}}function T(){S.current=!0,i("idle"),o(""),b("")}async function M(){await navigator.clipboard.writeText(s),E(!0),setTimeout(()=>E(!1),2e3)}const j=Math.floor(h/60),C=h%60,D=`${j}:${C.toString().padStart(2,"0")}`;return a==="connecting"?y.jsx("div",{className:"sticky bottom-0 bg-canvas border-t border-border","aria-live":"polite","aria-label":"Authorising with GitHub",children:y.jsxs("div",{className:"mx-auto max-w-[640px] px-6 py-4 flex items-center gap-3",children:[y.jsx(Cs,{size:18,className:"text-text-tertiary animate-spin flex-shrink-0","aria-hidden":"true"}),y.jsx("p",{className:"text-body-standard text-text-secondary",children:"Authorising with GitHub…"})]})}):a==="awaiting"?y.jsx("div",{className:"sticky bottom-0 bg-canvas border-t border-border",role:"region","aria-label":"GitHub device authorisation","aria-live":"polite",children:y.jsxs("div",{className:"mx-auto max-w-[640px] px-6 py-4 space-y-3",children:[y.jsxs("div",{className:"rounded-card bg-lemon-500 px-4 py-3 flex items-center gap-4",children:[y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsxs("p",{className:"text-caption text-text-primary opacity-70 mb-1",children:["Enter this code at"," ",y.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",y.jsx(f9,{size:11,className:"inline ml-0.5 -mt-0.5","aria-hidden":"true"})]})]}),y.jsx("p",{className:"font-mono text-section-heading font-bold text-text-primary tracking-widest","aria-label":`Your code is ${s}`,children:s})]}),y.jsxs("div",{className:"flex flex-col items-end gap-2 flex-shrink-0",children:[y.jsxs("button",{onClick:M,"aria-label":v?"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
|
|
169
|
+
text-caption text-text-primary transition-colors
|
|
170
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary`,children:[v?y.jsx(Bi,{size:13,weight:"fill","aria-hidden":"true"}):y.jsx(kc,{size:13,"aria-hidden":"true"}),v?"Copied":"Copy"]}),h>0&&y.jsxs("p",{className:"text-small text-text-primary opacity-60","aria-live":"off",children:["Expires ",D]})]})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(Cs,{size:14,className:"text-text-tertiary animate-spin flex-shrink-0","aria-hidden":"true"}),y.jsx("p",{className:"text-caption text-text-secondary flex-1",children:"Waiting for authorisation — EPAM SSO will handle authentication automatically."}),y.jsx("button",{onClick:T,className:`text-caption text-text-tertiary hover:text-text-primary transition-colors
|
|
171
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-text-primary rounded-sharp`,children:"Cancel"})]})]})}):y.jsx("div",{className:"sticky bottom-0 bg-canvas border-t border-border",role:"region","aria-label":"Connect GitHub Copilot",children:y.jsx("div",{className:"mx-auto max-w-[640px] px-6 py-4",children:y.jsxs("div",{className:`flex items-center gap-4 rounded-feature border border-border
|
|
172
|
+
bg-card shadow-clay px-5 py-4`,children:[y.jsx(E9,{size:28,className:"text-text-primary flex-shrink-0",weight:"fill","aria-hidden":"true"}),y.jsxs("div",{className:"flex-1 min-w-0",children:[y.jsx("p",{className:"text-body-standard text-text-primary font-medium",children:"Connect GitHub Copilot"}),y.jsx("p",{className:"text-caption text-text-secondary mt-0.5",children:a==="error"&&p?p:"Uses your EPAM GitHub account — no password needed."})]}),y.jsx(oa,{variant:"primary",size:"sm",onClick:w,"aria-label":"Connect your GitHub Copilot account",children:"Connect"})]})})})}const Vi=ir()(n1(t=>({provider:null,apiKey:null,setByok:(a,i)=>t({provider:a,apiKey:i}),clearByok:()=>t({provider:null,apiKey:null})}),{name:"dx-byok"}));function yR({onBack:t}){const a=Vi(C=>C.setByok),i=Vi(C=>C.clearByok),s=Vi(C=>C.provider),o=Vi(C=>C.apiKey),[c,u]=d.useState(s??"openai"),[h,g]=d.useState(o??""),[p,b]=d.useState(!1),[v,E]=d.useState("idle"),[S,w]=d.useState("");async function T(){const C=h.trim();if(C){b(!0),E("idle"),w("");try{const H=await(await fetch("/api/byok/test",{method:"POST",headers:{"x-byok-provider":c,"x-byok-key":C}})).json();H.ok?(E("ok"),a(c,C)):(E("fail"),w(H.error??"Validation failed."))}catch(D){E("fail"),w(D instanceof Error?D.message:"Network error.")}finally{b(!1)}}}function M(){i(),g(""),E("idle")}const j=!!o&&!!s;return y.jsxs("div",{className:"mx-auto w-full max-w-sm space-y-4 px-4 py-8",children:[t&&y.jsxs("button",{type:"button",onClick:t,className:"flex items-center gap-1.5 text-small text-text-tertiary hover:text-text-primary",children:[y.jsx(B4,{size:14}),"Use GitHub Copilot instead"]}),y.jsxs("div",{children:[y.jsx("p",{className:"text-h4 font-semibold text-text-primary",children:"Connect your API key"}),y.jsx("p",{className:"mt-1 text-small text-text-secondary",children:"Bring your own OpenAI or Anthropic key to use DesignX without GitHub Copilot."})]}),y.jsxs("div",{className:"space-y-1.5",children:[y.jsx("label",{className:"text-small font-medium text-text-secondary",htmlFor:"byok-provider",children:"Provider"}),y.jsxs("select",{id:"byok-provider",value:c,onChange:C=>{u(C.target.value),E("idle")},className:"w-full rounded-md border border-border-primary bg-canvas px-3 py-2 text-small text-text-primary",children:[y.jsx("option",{value:"openai",children:"OpenAI"}),y.jsx("option",{value:"anthropic",children:"Anthropic"})]})]}),y.jsxs("div",{className:"space-y-1.5",children:[y.jsx("label",{className:"text-small font-medium text-text-secondary",htmlFor:"byok-key",children:"API Key"}),y.jsx("input",{id:"byok-key",type:"password",value:h,onChange:C=>{g(C.target.value),E("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"})]}),v==="ok"&&y.jsxs("p",{className:"flex items-center gap-1.5 text-small text-green-600",children:[y.jsx(Bi,{size:14,weight:"fill"}),"Key validated and saved"]}),v==="fail"&&y.jsxs("p",{className:"flex items-center gap-1.5 text-small text-red-500",children:[y.jsx(D9,{size:14,weight:"fill"}),S||"Validation failed"]}),y.jsxs("div",{className:"flex gap-2",children:[y.jsxs(oa,{variant:"primary",size:"sm",onClick:()=>void T(),disabled:!h.trim()||p,className:"flex items-center gap-1.5",children:[p?y.jsx(Cs,{size:14,className:"animate-spin"}):y.jsx(w9,{size:14}),p?"Validating…":"Test & Save"]}),j&&y.jsx(oa,{variant:"ghost",size:"sm",onClick:M,children:"Disconnect"})]}),j&&s&&y.jsxs("p",{className:"text-small text-text-tertiary",children:["Connected: ",s==="openai"?"OpenAI":"Anthropic"]})]})}const bR=[{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"}],Nr="claude-sonnet-4.6";function vR(){const t=new Set,a=[{id:"auto",label:"Auto",vendor:"copilot"}];for(const i of bR){if(i.id==="auto")continue;const s=i.label.toLowerCase().trim();t.has(s)||(t.add(s),a.push({id:i.id,label:i.label,vendor:i.vendor,isDefault:i.id===Nr}))}return a}const Ol=vR();function Ll(t){const a=new Map;a.set("auto",{id:"auto",label:"Auto",vendor:"copilot"});for(const s of t)!(s!=null&&s.id)||!(s!=null&&s.label)||a.set(s.id,{...s,isDefault:s.id===Nr});const i=a.get(Nr);return i&&a.set(Nr,{...i,isDefault:!0}),Array.from(a.values())}function ef(t,a){var i,s;return a.some(o=>o.id===t)?t:a.some(o=>o.id===Nr)?Nr:((i=a.find(o=>o.isDefault))==null?void 0:i.id)??((s=a[0])==null?void 0:s.id)??"auto"}const Aa=ir()(n1(t=>({model:Nr,availableModels:Ol,discoveryStatus:"idle",discoveryError:null,setModel:a=>t({model:a}),setAvailableModels:a=>t(i=>{const s=Ll(a);return{availableModels:s,model:ef(i.model,s),discoveryStatus:"ready",discoveryError:null}}),setDiscoveryLoading:()=>t(a=>({discoveryStatus:"loading",discoveryError:null,availableModels:a.availableModels.length>0?a.availableModels:Ll(Ol)})),setDiscoveryError:a=>t(i=>({discoveryStatus:"error",discoveryError:a,availableModels:i.availableModels.length>0?i.availableModels:Ll(Ol),model:ef(i.model,i.availableModels.length>0?i.availableModels:Ll(Ol))})),resetAvailableModels:()=>t(a=>{const i=Ll(Ol);return{availableModels:i,model:ef(a.model,i),discoveryStatus:"idle",discoveryError:null}})}),{name:"dx-model",version:2,migrate:(t,a)=>{if(!t||typeof t!="object")return{model:Nr};const i=t;return a<2&&i.model==="auto"?{...i,model:Nr}:i},partialize:t=>({model:t.model})})),q8=["copilot","anthropic","openai","google","xai","mistral","meta","other"];function xR(t){switch(t){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 t.charAt(0).toUpperCase()+t.slice(1)}}function tf(t){return t==="anthropic"?"✦":""}function ER(){const t=Aa(w=>w.model),a=Aa(w=>w.availableModels),i=Aa(w=>w.discoveryStatus),s=Aa(w=>w.discoveryError),o=Aa(w=>w.setModel),[c,u]=d.useState(!1),[h,g]=d.useState(!1),[p,b]=d.useState(320),v=d.useRef(null),E=a.find(w=>w.id===t)??a[0],S=d.useMemo(()=>{const w=new Map;for(const T of a){const M=w.get(T.vendor)??[];M.push(T),w.set(T.vendor,M)}return Array.from(w.entries()).sort(([T],[M])=>{const j=q8.indexOf(T),C=q8.indexOf(M),D=j===-1?Number.MAX_SAFE_INTEGER:j,H=C===-1?Number.MAX_SAFE_INTEGER:C;return D-H||T.localeCompare(M)})},[a]);return d.useEffect(()=>{function w(T){v.current&&!v.current.contains(T.target)&&u(!1)}return c&&document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[c]),d.useEffect(()=>{function w(T){T.key==="Escape"&&u(!1)}return c&&document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[c]),d.useLayoutEffect(()=>{if(!c||!v.current)return;function w(){var U;const T=(U=v.current)==null?void 0:U.getBoundingClientRect();if(!T)return;const M=16,j=320,C=window.innerHeight-T.bottom-M,D=T.top-M,H=C<220&&D>C;g(H),b(Math.max(180,Math.min(j,H?D:C)))}return w(),window.addEventListener("resize",w),window.addEventListener("scroll",w,!0),()=>{window.removeEventListener("resize",w),window.removeEventListener("scroll",w,!0)}},[c]),y.jsxs("div",{ref:v,className:"relative",children:[y.jsxs("button",{onClick:()=>u(w=>!w),"aria-haspopup":"listbox","aria-expanded":c,"aria-label":`Model: ${E.label}`,className:er("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:[tf(E.vendor)&&y.jsx("span",{className:"text-ube-800 text-small font-bold leading-none","aria-hidden":"true",children:tf(E.vendor)}),y.jsx("span",{className:"text-text-secondary font-medium",children:E.label}),y.jsx($4,{size:10,className:er("text-text-tertiary transition-transform duration-100",c&&"rotate-180"),"aria-hidden":"true"})]}),c&&y.jsxs("ul",{role:"listbox","aria-label":"Select model",className:er("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:`${p}px`},children:[S.map(([w,T],M)=>y.jsxs("li",{role:"presentation",children:[y.jsx("div",{className:er("px-3 pt-2.5 pb-1",M>0&&"border-t border-border-secondary mt-1 pt-3"),children:y.jsx("span",{className:"text-small text-text-tertiary uppercase tracking-wide font-semibold",children:xR(w)})}),y.jsx("ul",{children:T.map(j=>y.jsx("li",{role:"option","aria-selected":j.id===t,children:y.jsxs("button",{onClick:()=>{o(j.id),u(!1)},className:er("w-full flex items-center gap-2.5 px-3 py-2 text-left","text-body-standard transition-colors duration-100",j.id===t?"text-text-primary bg-border-secondary":"text-text-secondary hover:text-text-primary hover:bg-border-secondary"),children:[y.jsx("span",{className:"text-ube-800 text-small font-bold leading-none w-3","aria-hidden":"true",children:tf(j.vendor)}),y.jsx("span",{className:"flex-1",children:j.label}),j.id===t&&y.jsx(g9,{size:12,className:"text-text-primary flex-shrink-0",weight:"bold","aria-hidden":"true"})]})},j.id))})]},w)),i==="loading"&&y.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…"}),i==="error"&&s&&y.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]}),y.jsx("li",{role:"presentation",className:"h-1"})]})]})}const K8={"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 SR(t,a,i){const s=K8[i]??K8["gpt-4o"];return t/1e6*s.input+a/1e6*s.output}const Y8={input:0,output:0,total:0},lu=ir((t,a)=>({sessionTokens:{...Y8},sessionCostUsd:0,lastMessageTokens:null,allTimeInput:0,allTimeOutput:0,allTimeCostUsd:0,addUsage:(i,s,o)=>{const c=a().sessionTokens,u=SR(i,s,o),h=a().allTimeInput+i,g=a().allTimeOutput+s,p=a().allTimeCostUsd+u;t({sessionTokens:{input:c.input+i,output:c.output+s,total:c.total+i+s},sessionCostUsd:a().sessionCostUsd+u,lastMessageTokens:{input:i,output:s},allTimeInput:h,allTimeOutput:g,allTimeCostUsd:p}),q9({allTimeInput:h,allTimeOutput:g,allTimeCostUsd:p})},seedAllTime:({allTimeInput:i,allTimeOutput:s,allTimeCostUsd:o})=>t({allTimeInput:i,allTimeOutput:s,allTimeCostUsd:o}),reset:()=>t({sessionTokens:{...Y8},sessionCostUsd:0,lastMessageTokens:null})}));function kl(t){return t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function nf(t){return t<.01?"<$0.01":`~$${t.toFixed(2)}`}function wR(){const{sessionTokens:t,sessionCostUsd:a,lastMessageTokens:i,allTimeInput:s,allTimeOutput:o,allTimeCostUsd:c}=lu(),u=Aa(p=>p.model),h=t.total>0,g=s+o>0;return!h&&!g?null:y.jsx("div",{className:"flex items-center justify-end px-4 py-1","aria-label":"Token usage",children:y.jsxs("div",{title:[`Model: ${u}`,h?`Session: ${kl(t.input)}↑ ${kl(t.output)}↓`:"",i?`Last message: +${kl(i.input+i.output)}`:"",g?`All-time: ${kl(s+o)} tokens · ${nf(c)}`:""].filter(Boolean).join(`
|
|
173
|
+
`),className:er("inline-flex items-center gap-1.5 px-2 py-0.5 rounded-pill","border border-border-secondary bg-canvas","text-small text-text-tertiary select-none cursor-default","transition-opacity duration-200"),children:[h&&y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"font-mono",children:[kl(t.total)," tokens"]}),y.jsx("span",{className:"text-border-primary","aria-hidden":"true",children:"·"}),y.jsx("span",{className:"font-mono",children:nf(a)})]}),g&&y.jsxs(y.Fragment,{children:[h&&y.jsx("span",{className:"text-border-primary","aria-hidden":"true",children:"|"}),y.jsxs("span",{className:"font-mono text-text-quaternary",children:[nf(c)," total"]})]})]})})}const H1="auto",AR={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]},X8=2,MR="dx.copilot.lastRequest",Nc="dx.copilot.lastError",TR="dx.copilot.lastStream",Bb=900*1024,jc=3e4,Q8=5*6e4,_c=Bb;function CR(t){return new Promise(a=>window.setTimeout(a,t))}function RR(t){if(!t)return null;const a=Number(t);if(Number.isFinite(a)&&a>0)return Math.round(a*1e3);const i=Date.parse(t);if(Number.isNaN(i))return null;const s=i-Date.now();return s>0?s:null}function NR(t,a){return t!==400?!1:a.includes("model_not_supported")||a.includes("requested model is not supported")}function jR(t,a){return t!==400?!1:/unknown integration/i.test(a)}function _R(t,a){return t===413?!0:/payload too large|entity too large/i.test(a)}function DR(t){const a=t??H1;return a==="auto"?["claude-sonnet-4.6",null]:AR[a]??[a,null]}function J8(t,a=H1){const i={messages:t,stream:!0,temperature:.7,max_tokens:4096};return a!=="auto"&&(i.model=a),new TextEncoder().encode(JSON.stringify(i)).length}function gs(t,a){try{sessionStorage.setItem(t,JSON.stringify(a))}catch{}}function W8(t,a,i=!1,s=4096){const o=t.slice(1,-1),c=i?[0]:[20,14,10,6,4,2,0],u=t[t.length-1],h=t[0];for(const b of c){const v=o.slice(-b),S={messages:[h,...v,u],stream:!0,temperature:.7,max_tokens:s};a&&(S.model=a);const w=JSON.stringify(S),T=new TextEncoder().encode(w).length;if(T<=Bb||b===0)return{bodyPayload:S,serializedBody:w,requestBytes:T,historyMessagesUsed:v.length,compacted:v.length!==o.length}}const g={messages:t,stream:!0,temperature:.7,max_tokens:s};a&&(g.model=a);const p=JSON.stringify(g);return{bodyPayload:g,serializedBody:p,requestBytes:new TextEncoder().encode(p).length,historyMessagesUsed:Math.max(t.length-2,0),compacted:!1}}async function OR(t,a){let i;try{const s=new Promise(o=>{i=window.setTimeout(()=>o(null),a)});return await Promise.race([t.read(),s])}finally{i!==void 0&&window.clearTimeout(i)}}async function LR(t,a,i,s,o=H1,c,u,h,g,p){var S,w,T,M,j;let b="",v=a,E=!1;for(const[C,D]of DR(o).entries()){let H=W8(t,D,!1,g);const U=crypto.randomUUID();let te=!1;gs(MR,{requestId:U,at:new Date().toISOString(),model:D,messageCount:t.length,requestBytes:H.requestBytes,historyChars:t.reduce((R,q)=>R+q.content.length,0),historyMessagesUsed:H.historyMessagesUsed,compacted:H.compacted});const ne=D===null&&C>0;let _=null,ae="";for(let R=0;R<=X8;R+=1){if(_=await fetch("/api/copilot/chat/completions",{method:"POST",signal:u,headers:{"Content-Type":"application/json","X-Request-Id":U,...ne?{"X-DesignX-Auto-Fallback":"1"}:{},...uf(`Bearer ${v}`)},body:H.serializedBody}),_.status===413&&!te){te=!0,H=W8(t,D,!0,g);continue}if(_.status!==429||(ae=await _.text(),R>=X8))break;const ce=RR(_.headers.get("retry-after"))??1200*(R+1);await CR(ce)}if(!_)throw new Error("Copilot API error: no response received.");if(!_.ok){const R=_.status===429?ae||await _.text():await _.text();if(gs(Nc,{requestId:U,at:new Date().toISOString(),status:_.status,body:R.slice(0,2e3),responseRequestId:_.headers.get("x-request-id"),historyMessagesUsed:H.historyMessagesUsed,compacted:H.compacted}),b=`Copilot API error (${_.status}): ${R}`,jR(_.status,R)&&h&&!E){E=!0,v=await h();continue}if(_.status===429)throw new Error(`Copilot API rate limit reached (429). Please wait a moment and retry. ${R}`.trim());if(_R(_.status,R))throw new Error(`Copilot request still too large after compaction (${H.requestBytes} bytes). ${R}`);if(NR(_.status,R))continue;throw new Error(b)}if(!_.body)throw new Error("No response body from Copilot API");const ie=_.body.getReader(),oe=new TextDecoder;let J="";const ge=Date.now();let he=ge,xe=0,V=0,Q=0,K=0,de=0,we=!1;for(;;){if(Date.now()-ge>Q8){await ie.cancel("max stream duration exceeded").catch(()=>{});const Se=`Copilot stream exceeded ${Math.round(Q8/1e3)}s and was stopped.`;throw gs(Nc,{requestId:U,at:new Date().toISOString(),status:"stream-max-duration",body:Se,responseRequestId:_.headers.get("x-request-id")}),new Error(Se)}if(Date.now()-he>jc){await ie.cancel("no meaningful stream progress").catch(()=>{});const Se=`Copilot stream stalled (no token progress for ${Math.round(jc/1e3)}s).`;throw gs(Nc,{requestId:U,at:new Date().toISOString(),status:"stream-no-progress",body:Se,responseRequestId:_.headers.get("x-request-id")}),new Error(Se)}let R;try{R=await OR(ie,jc)}catch(Se){const Re=Se instanceof Error?Se.message:String(Se);if(/premature close|ERR_STREAM_PREMATURE_CLOSE/i.test(Re)){if(xe>0){s();return}throw new Error("Stream closed by server before any data was received.")}throw Se}if(!R){await ie.cancel("idle timeout").catch(()=>{});const Se=`Copilot stream stalled (no chunks for ${Math.round(jc/1e3)}s).`;throw gs(Nc,{requestId:U,at:new Date().toISOString(),status:"stream-stalled",body:Se,responseRequestId:_.headers.get("x-request-id")}),new Error(Se)}const{done:q,value:ce}=R;if(q)break;xe+=1,J+=oe.decode(ce,{stream:!0});const ye=J.split(`
|
|
174
|
+
`);J=ye.pop()??"";for(const Se of ye){const Re=Se.trim();if(Re){if(Re==="data: [DONE]"){Q+=1;continue}if(Re.startsWith("data: ")){V+=1;try{const $=JSON.parse(Re.slice(6)),Ze=(T=(w=(S=$==null?void 0:$.choices)==null?void 0:S[0])==null?void 0:w.delta)==null?void 0:T.content;Ze&&(/\S/.test(Ze)?(he=Date.now(),K+=1):de+=1,i(Ze));const Oe=(j=(M=$==null?void 0:$.choices)==null?void 0:M[0])==null?void 0:j.finish_reason;Oe&&(he=Date.now(),Oe==="length"&&(we=!0)),$!=null&&$.usage&&c&&(he=Date.now(),c({prompt_tokens:$.usage.prompt_tokens??0,completion_tokens:$.usage.completion_tokens??0,total_tokens:$.usage.total_tokens??0}))}catch{}}}}}gs(TR,{requestId:U,at:new Date().toISOString(),durationMs:Date.now()-ge,networkChunkCount:xe,dataEventCount:V,doneEventCount:Q,visibleDeltaCount:K,whitespaceOnlyDeltaCount:de,responseRequestId:_.headers.get("x-request-id")}),s(),we&&(p==null||p());return}throw new Error(b||"Copilot API error: no supported model available")}function e4(t){return Array.isArray(t)?t.filter(a=>!!a&&typeof a=="object"&&typeof a.id=="string"&&typeof a.label=="string"&&typeof a.vendor=="string"&&(typeof a.verified!="boolean"||a.verified===!0)):[]}async function kR(t,a={}){const i={Authorization:`Bearer ${t}`},s=Date.now(),o=a.forceRefresh?"&force=1":"";let c=await fetch(`/api/copilot/models/full?ts=${s}${o}`,{cache:"no-store",headers:i});!c.ok&&c.status!==401&&(c=await fetch(`/api/copilot/models?ts=${s}${o}`,{cache:"no-store",headers:i}));const u=await c.json().catch(()=>({}));if(!c.ok)throw new Error(u.error??`Copilot model discovery failed (${c.status}).`);const h=e4(u.models);if(h.length>0)return h;const g=await fetch(`/api/copilot/models?ts=${s}-fallback${o}`,{cache:"no-store",headers:i}),p=await g.json().catch(()=>({}));if(!g.ok)throw new Error(p.error??`Copilot model discovery failed (${g.status}).`);return e4(p.models)}async function VR(t,a,i,s,o,c,u,h,g=4096){var S,w,T;const p=await fetch("/api/byok/chat",{method:"POST",headers:{"Content-Type":"application/json","x-byok-provider":a,"x-byok-key":i},body:JSON.stringify({model:c,messages:t,stream:!0,max_tokens:g}),signal:h});if(!p.ok){const M=await p.text().catch(()=>"");throw new Error(`BYOK ${p.status}: ${M.slice(0,300)}`)}if(!p.body)throw new Error("BYOK: empty response body");const b=p.body.getReader(),v=new TextDecoder;let E="";try{for(;;){const{done:M,value:j}=await b.read();if(M)break;E+=v.decode(j,{stream:!0});const C=E.split(`
|
|
175
|
+
`);E=C.pop()??"";for(const D of C){const H=D.trim();if(!H.startsWith("data: "))continue;const U=H.slice(6);if(U==="[DONE]"){o();return}try{const te=JSON.parse(U),ne=(T=(w=(S=te.choices)==null?void 0:S[0])==null?void 0:w.delta)==null?void 0:T.content;ne&&s(ne),te.usage&&typeof te.usage.completion_tokens=="number"&&(u==null||u({prompt_tokens:te.usage.prompt_tokens??0,completion_tokens:te.usage.completion_tokens,total_tokens:te.usage.total_tokens??te.usage.completion_tokens}))}catch{}}}}finally{b.cancel().catch(()=>{})}o()}const HR=/^(D[1-4]|R[34]|VDG|Type Selection|Choose Your Path|Checkpoint[\s\-]?1)[\s\u2014\-]/i,zR=/integration guide|changelog|change log|readme|backend selection|handover|index|architecture|spec pack/i;function BR(t){const a=t.toLowerCase();return/persona|user profile|user archetype/.test(a)?"persona":/journey map|customer journey|user journey|experience map/.test(a)?"journey-map":/feature tree|feature list/.test(a)?"feature-tree":/data model|entity model|schema/.test(a)?"data-model":/user flow|onboarding flow|navigation flow/.test(a)?"flow":/brief|project brief|research brief|complexity/.test(a)?"brief":/extraction ledger|kb ledger|knowledge base extraction/.test(a)?"extraction-ledger":/competitive|competitor|market analysis/.test(a)?"competitive-analysis":/insight|key finding/.test(a)?"insights":"document"}function UR(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,40)}function Vl(t,a,i,s=!1){const o=t.split(`
|
|
176
|
+
`),c=[];let u=null;for(const g of o)if(g.startsWith("## ")){const p=g.slice(3).trim();if(u!=null&&u.lines.some(b=>b.trim())&&c.push({...u,isStreaming:!1}),HR.test(p)){u=null;continue}if(s&&a.id===6&&!zR.test(p)){u=null;continue}u={title:p,lines:[]}}else u&&u.lines.push(g);u!=null&&u.lines.some(g=>g.trim())&&c.push({...u,isStreaming:!0});const h=Date.now();return c.map((g,p)=>({id:`${i}-ph${a.id}-${UR(g.title)}`,projectSlug:i,title:g.title,type:BR(g.title),content:g.lines.join(`
|
|
177
|
+
`).trimEnd(),phase:a.id,phaseName:a.name,phaseColor:a.color,createdAt:h+p,updatedAt:h+p,isStreaming:g.isStreaming}))}const Ub=[{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 ZR(t){return Ub.filter(a=>a.activeFor.includes(t))}function z1(t){return Ub.find(a=>a.id===t)}function PR(t,a){var i;return(i=z1(t))==null?void 0:i.gates.find(s=>s.key===a)}function FR(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(0)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}function IR(t){switch(t.key){case"discover":return`You are leading the **Discover phase** as Strategist and Researcher.
|
|
178
|
+
|
|
179
|
+
**KB Artifact Discovery — run before generating any artefact from scratch:**
|
|
180
|
+
Scan every KB file listed in the Knowledge Base section for:
|
|
181
|
+
- Existing personas, user profiles, or user archetypes
|
|
182
|
+
- Existing journey maps or experience maps
|
|
183
|
+
- Existing research briefs, competitive analyses, or insight reports
|
|
184
|
+
If found: extract and adapt to the required output format below, label as SOURCED.
|
|
185
|
+
If not found: generate from scratch based on KB content and domain knowledge, label as SYNTHESISED.
|
|
186
|
+
|
|
187
|
+
**Deliverables (produce all of these):**
|
|
188
|
+
1. Knowledge base extraction ledger — list every KB file and what evidence you drew from it
|
|
189
|
+
2. Complexity assessment — rate LOW / MODERATE / HIGH / CRITICAL across: interaction, domain, data, integration. Justify each.
|
|
190
|
+
3. Project brief — objectives, user needs, constraints, success metrics, assumptions
|
|
191
|
+
4. Personas (2–4) — use the structured format below for each persona
|
|
192
|
+
5. Journey maps — one per persona, use the structured format below
|
|
193
|
+
6. Key insights (10–15) — each labelled REAL (sourced from KB) or SYNTHESISED (inferred)
|
|
194
|
+
7. Competitive analysis — include when domain signals indicate market context matters
|
|
195
|
+
|
|
196
|
+
**Rules:**
|
|
197
|
+
- Every claim must be labelled REAL or SYNTHESISED
|
|
198
|
+
- Do not begin personas until the brief is drafted
|
|
199
|
+
- Use the project name and domain throughout — no generic placeholders
|
|
200
|
+
|
|
201
|
+
**Required output format for each persona (place directly in the ## Personas section):**
|
|
202
|
+
Output each persona as a JSON block immediately after a brief intro sentence:
|
|
203
|
+
\`\`\`json:persona
|
|
204
|
+
{
|
|
205
|
+
"name": "Full Name",
|
|
206
|
+
"age": 30,
|
|
207
|
+
"role": "Job Title / Role",
|
|
208
|
+
"goals": ["specific goal 1", "specific goal 2", "specific goal 3"],
|
|
209
|
+
"pains": ["pain point 1", "pain point 2", "pain point 3"],
|
|
210
|
+
"behaviors": ["behavior pattern 1", "behavior pattern 2"],
|
|
211
|
+
"quote": "A direct quote capturing their core frustration or motivation.",
|
|
212
|
+
"sourced": false
|
|
213
|
+
}
|
|
214
|
+
\`\`\`
|
|
215
|
+
|
|
216
|
+
**Required output format for each journey map (place directly in the ## Journey Maps section):**
|
|
217
|
+
\`\`\`json:journey-map
|
|
218
|
+
{
|
|
219
|
+
"persona": "Persona Name",
|
|
220
|
+
"stages": [
|
|
221
|
+
{
|
|
222
|
+
"name": "Stage Name",
|
|
223
|
+
"touchpoints": ["touchpoint 1", "touchpoint 2"],
|
|
224
|
+
"emotion": "curious",
|
|
225
|
+
"pains": ["pain at this stage"],
|
|
226
|
+
"opportunities": ["opportunity here"]
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
\`\`\`
|
|
231
|
+
Emotion values: curious · positive · neutral · negative · frustrated
|
|
232
|
+
|
|
233
|
+
**Gate signal (required):**
|
|
234
|
+
When all deliverables above are complete, output a section headed exactly:
|
|
235
|
+
\`\`\`
|
|
236
|
+
## D1 — Discovery Gate
|
|
237
|
+
\`\`\`
|
|
238
|
+
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.
|
|
239
|
+
|
|
240
|
+
**Step 1 — Type Selection (mandatory first step):**
|
|
241
|
+
Output a section headed exactly:
|
|
242
|
+
\`\`\`
|
|
243
|
+
## Type Selection — Choose Your Path
|
|
244
|
+
\`\`\`
|
|
245
|
+
Describe both options clearly:
|
|
246
|
+
- **Fast Track (Type 1):** 2–3 focused concepts → direct north star convergence. Best for tight timelines (3–4 week sprint).
|
|
247
|
+
- **Experimental (Type 2):** 4–5 divergent concepts → user feedback loop → convergence. Best for innovation-heavy work (6–8 week sprint).
|
|
248
|
+
|
|
249
|
+
Wait for the user to choose before continuing.
|
|
250
|
+
|
|
251
|
+
**After type selection:**
|
|
252
|
+
1. Generate 6–8 "How Might We" questions grounded in research insights
|
|
253
|
+
2. Develop concepts per type count (Type 1: 2–3, Type 2: 4–5). For each: concept story, key screens, visual direction notes
|
|
254
|
+
3. For Type 2 only: output \`## Checkpoint 1 — Concept Review\` and wait for feedback before converging
|
|
255
|
+
4. Converge on a north star concept with full specification
|
|
256
|
+
5. Produce the feature tree (categorised by priority: MVP / Phase 2 / Backlog) — use the structured format below
|
|
257
|
+
|
|
258
|
+
**Required output format for the feature tree (place directly in the ## Feature Tree section):**
|
|
259
|
+
\`\`\`json:feature-tree
|
|
260
|
+
{
|
|
261
|
+
"mvp": ["Feature 1 — brief description", "Feature 2 — brief description"],
|
|
262
|
+
"phase2": ["Feature 3 — brief description"],
|
|
263
|
+
"backlog": ["Feature 4 — brief description"]
|
|
264
|
+
}
|
|
265
|
+
\`\`\`
|
|
266
|
+
|
|
267
|
+
**Gate signal:**
|
|
268
|
+
\`\`\`
|
|
269
|
+
## D2 — Ideation Gate
|
|
270
|
+
\`\`\`
|
|
271
|
+
List all artefacts. Wait for approval.`;case"design":return`You are leading the **Design phase** as Architect, Visual Designer, and Content Designer.
|
|
272
|
+
|
|
273
|
+
**Architect deliverables:**
|
|
274
|
+
- Information architecture (sitemap with all sections and screens)
|
|
275
|
+
- Screen inventory (every screen, its purpose, entry points)
|
|
276
|
+
- User flows (key journeys: onboarding, core task, error recovery)
|
|
277
|
+
- Data model (entities, relationships, key attributes)
|
|
278
|
+
|
|
279
|
+
**Visual Designer — Stage 1 (produce first, then pause):**
|
|
280
|
+
- Visual Direction Brief: typography, colour palette, spacing scale, motion principles, visual tone
|
|
281
|
+
|
|
282
|
+
**Gate signal after Stage 1:**
|
|
283
|
+
\`\`\`
|
|
284
|
+
## VDG — Visual Direction Gate
|
|
285
|
+
\`\`\`
|
|
286
|
+
Wait for approval before continuing to Stage 2.
|
|
287
|
+
|
|
288
|
+
**Visual Designer — Stage 2 (after VDG approval):**
|
|
289
|
+
- Design tokens (typography scale, colour tokens, spacing, radius, shadow)
|
|
290
|
+
- Component library (component name, variants, states, usage notes)
|
|
291
|
+
- Screen designs (annotated screens for all key flows)
|
|
292
|
+
|
|
293
|
+
**Content Designer deliverables:**
|
|
294
|
+
- Content strategy (voice, tone, reading levels)
|
|
295
|
+
- Terminology guide (product vocabulary, do/don't pairs)
|
|
296
|
+
- Key content patterns (empty states, errors, success messages)
|
|
297
|
+
|
|
298
|
+
**Final gate signal:**
|
|
299
|
+
\`\`\`
|
|
300
|
+
## D3 — Design Gate
|
|
301
|
+
\`\`\`
|
|
302
|
+
List all artefacts. Wait for approval.`;case"plan":return`You are leading the **Plan phase** as Story Writer.
|
|
303
|
+
|
|
304
|
+
**Deliverables:**
|
|
305
|
+
1. Story map — all features grouped by user journey (columns = journeys, rows = story types)
|
|
306
|
+
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).
|
|
307
|
+
3. API contracts — for key integrations: endpoint, method, request schema, response schema, error cases
|
|
308
|
+
4. Sprint plan — stories grouped into sprints, ordered by dependency and priority
|
|
309
|
+
|
|
310
|
+
**Rules:**
|
|
311
|
+
- Every spec element from previous phases must be covered by at least one story
|
|
312
|
+
- No stories that weren't in the spec
|
|
313
|
+
- ACs must be testable — no "it should feel" or "it should be easy"
|
|
314
|
+
|
|
315
|
+
**Gate signal:**
|
|
316
|
+
\`\`\`
|
|
317
|
+
## D4 — Planning Gate
|
|
318
|
+
\`\`\`
|
|
319
|
+
List all artefacts. Wait for approval.`;case"deliver":return`You are leading the **Deliver phase** as Builder.
|
|
320
|
+
|
|
321
|
+
**Process:**
|
|
322
|
+
1. Classify all stories from the sprint plan into types: foundation → feature → integration → polish
|
|
323
|
+
2. Build in that order — foundation first, polish last
|
|
324
|
+
3. Follow design tokens and components exactly — no improvisation on visual decisions
|
|
325
|
+
4. After each story type: verify build compiles and core flows work
|
|
326
|
+
5. Produce: integration guide (how to run and configure the app) and changelog
|
|
327
|
+
|
|
328
|
+
**Multi-batch generation rules:**
|
|
329
|
+
- Use a \`## Heading\` for every artifact (component, file, guide, etc.)
|
|
330
|
+
- Generate as many artifacts as you can fit — the system will automatically continue if you run out of space
|
|
331
|
+
- If you are prompted to continue, pick up exactly where you left off — do not restart or repeat already-generated artifacts
|
|
332
|
+
- **Only output \`## R3 — Build Review\` once ALL artifacts for this phase are complete** — not before
|
|
333
|
+
|
|
334
|
+
**Gate signal:**
|
|
335
|
+
\`\`\`
|
|
336
|
+
## R3 — Build Review
|
|
337
|
+
\`\`\`
|
|
338
|
+
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.
|
|
339
|
+
|
|
340
|
+
**Assessment areas:**
|
|
341
|
+
1. Prototype vs research success criteria — does it solve the problems identified in the brief?
|
|
342
|
+
2. Visual QA — does every screen follow the design system (tokens, components, spacing)?
|
|
343
|
+
3. Accessibility audit — keyboard navigation, colour contrast, ARIA labels, focus states
|
|
344
|
+
4. Dead elements — unused components, orphaned screens, placeholder content
|
|
345
|
+
5. UX gap analysis — flows with missing error handling, unclear empty states, ambiguous CTAs
|
|
346
|
+
|
|
347
|
+
**Output:** Quality Assessment Report with findings per area, severity ratings (critical / major / minor), and a clear recommendation: accept, fix and accept, or re-run.
|
|
348
|
+
|
|
349
|
+
**Gate signal:**
|
|
350
|
+
\`\`\`
|
|
351
|
+
## R4 — Quality Sign-off
|
|
352
|
+
\`\`\`
|
|
353
|
+
Present findings and recommendation. Wait for final approval.`;default:return`Execute the ${t.name} phase deliverables according to the Enigma v2 framework.`}}function GR(t,a,i){const s=t.control_mode==="human-in-loop",o=i&&i.length>0?`The following knowledge base files are attached — their full text content is included below:
|
|
354
|
+
|
|
355
|
+
${i.map(u=>`### ${u.name}${u.truncated?" [truncated to token budget]":""}
|
|
356
|
+
${u.content}`).join(`
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
`)}`:t.kb_files.length>0?`The following files are attached as your knowledge base:
|
|
361
|
+
${t.kb_files.map(u=>`- **${u.name}** (${FR(u.size)})`).join(`
|
|
362
|
+
`)}
|
|
363
|
+
|
|
364
|
+
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.
|
|
365
|
+
|
|
366
|
+
## Active Phase
|
|
367
|
+
**${a.name}** (Phase ${a.id} of ${t.preset==="end-to-end"?"7":"4"})
|
|
368
|
+
Agents: ${a.agents.join(", ")}
|
|
369
|
+
|
|
370
|
+
## Project Context
|
|
371
|
+
- **Name:** ${t.name}
|
|
372
|
+
- **Domain:** ${t.domain}
|
|
373
|
+
- **Nature:** ${t.nature==="greenfield"?"Greenfield (new product, starting from scratch)":"Brownfield (existing product, evolving or redesigning)"}
|
|
374
|
+
- **Application type:** ${t.application_type}
|
|
375
|
+
- **Pipeline:** ${t.preset==="end-to-end"?"End-to-End (Research → Ideate → Design → Plan → Build → Measure)":"Research Sprint (Research → Design only, no build phase)"}
|
|
376
|
+
|
|
377
|
+
## Control Mode
|
|
378
|
+
${c}
|
|
379
|
+
|
|
380
|
+
## Knowledge Base
|
|
381
|
+
${o}
|
|
382
|
+
|
|
383
|
+
## Phase Instructions
|
|
384
|
+
${IR(a)}
|
|
385
|
+
|
|
386
|
+
## Response Style
|
|
387
|
+
- Use clear markdown with headers (\`##\`) and bullet lists
|
|
388
|
+
- Be specific — use the project name, domain, and context throughout every response
|
|
389
|
+
- When referencing produced artefacts, use paths as they would appear in \`spec/\` (e.g. \`spec/02-brief.md\`)
|
|
390
|
+
- At each gate, name every produced artefact as a concrete path in backticks so the workspace can track it
|
|
391
|
+
- Keep responses focused on the current phase — do not jump ahead
|
|
392
|
+
- Do not use placeholder names or generic examples — everything must be grounded in this specific project`}}const Zb=[{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 $R(t){const a=[],i=t.match(/`[a-z0-9_\-/.]+\.[a-z]{2,5}`/gi)??[];a.push(...i.map(o=>o.replace(/`/g,"")));const s=t.match(/(?:^|\n)[•\-*]\s+([A-Z0-9][^:\n]{3,50})/gm)??[];return a.push(...s.map(o=>o.replace(/^[\n•\-*]\s+/,"").trim()).filter(o=>o.length>=4&&o.length<=60).slice(0,6)),[...new Set(a)].slice(0,8)}function qR(t){var i,s;const a=t.split(`
|
|
393
|
+
`).filter(o=>o.trim());for(let o=0;o<a.length-1;o++)if(Zb.some(c=>c.pattern.test(a[o]))){const c=(i=a[o+1])==null?void 0:i.trim();if(c&&c.length>20&&!c.startsWith("#")&&!c.startsWith("---"))return c.replace(/^[*_]{1,2}|[*_]{1,2}$|\-\s*/g,"").slice(0,240)}return((s=a.find(o=>o.length>30&&!o.startsWith("#")&&!o.startsWith("---")))==null?void 0:s.slice(0,240))??""}function KR(t){for(const{pattern:a,key:i}of Zb)if(a.test(t))return{key:i,summary:qR(t),artefacts:$R(t)};return null}function Rr(t){return z1(t.current_phase)??ZR(t.preset)[0]}function YR(t,a){const s={D1:t.preset==="research-sprint"?4:3,D2:4,D3:t.preset==="research-sprint"?"complete":5,D4:6,R3:7,R4:"complete","type-selection":t.current_phase,"checkpoint-1":t.current_phase,VDG:t.current_phase}[a];return s===void 0?null:s==="complete"?"complete":s===t.current_phase?Rr(t):z1(s)??null}function t4(t,a){const i=Rr(t);return GR(t,i,a)}function XR(t,a){return t==="type-selection"?`I choose **${a==="fast-track"?"Fast Track (Type 1)":"Experimental (Type 2)"}**. Please proceed with ideation using this approach.`:t==="VDG"?"Visual direction approved. Please continue with design tokens, component library, and screen designs.":t==="checkpoint-1"?"Concept feedback noted. Please continue refining toward the north star concept.":t==="R3"?"Build approved. Please proceed with quality assessment.":"Approved. Please continue to the next step."}const js=[{id:"strategist",name:"Strategist",emoji:"🧠",role:"Strategy",description:"Market positioning & business strategy",phase:2,prerequisites:["Project brief"],estimatedMinutes:12},{id:"researcher",name:"Researcher",emoji:"🔍",role:"Research",description:"User research & insights synthesis",phase:2,prerequisites:["KB briefing or knowledge base"],estimatedMinutes:15},{id:"ideation-designer",name:"Ideation Designer",emoji:"💡",role:"Design",description:"Concept exploration & ideation",phase:3,prerequisites:["Strategist output","Research insights"],estimatedMinutes:18},{id:"visual-designer",name:"Visual Designer",emoji:"🎨",role:"Visual Design",description:"Visual direction & design system",phase:3,prerequisites:["Concepts from Ideation Designer"],estimatedMinutes:20},{id:"architect",name:"Architect",emoji:"🏗️",role:"Architecture",description:"Technical architecture & information design",phase:3,prerequisites:["Strategist brief"],estimatedMinutes:25},{id:"content-designer",name:"Content Designer",emoji:"✍️",role:"Content",description:"Copy, voice & terminology system",phase:3,prerequisites:["Project context"],estimatedMinutes:14},{id:"story-writer",name:"Story Writer",emoji:"📖",role:"Stories",description:"User stories & acceptance criteria",phase:3,prerequisites:["Architect flows","Feature tree"],estimatedMinutes:22},{id:"visual-designer-refined",name:"Visual Designer (Refined)",emoji:"🎨✨",role:"Visual Design",description:"Production design tokens & components",phase:4,prerequisites:["Visual concepts from Phase 3"],estimatedMinutes:25},{id:"content-designer-refined",name:"Content Designer (Refined)",emoji:"✍️✨",role:"Content",description:"Refined copy & brand voice",phase:4,prerequisites:["Phase 3 content baseline"],estimatedMinutes:18},{id:"builder",name:"Builder",emoji:"⚙️",role:"Development",description:"Working application & code generation",phase:6,prerequisites:["Complete design spec","Approved stories"],estimatedMinutes:45},{id:"quality-assessor",name:"Quality Assessor",emoji:"✅",role:"QA",description:"Quality assessment & metrics",phase:7,prerequisites:["Built application","Test coverage"],estimatedMinutes:20}];function QR(t){return js.filter(a=>a.phase===t).sort((a,i)=>a.name.localeCompare(i.name))}function JR(){const t=new Set(js.map(a=>a.phase));return Array.from(t).sort((a,i)=>a-i)}function WR(t){return{2:"DISCOVER",3:"IDEATE",4:"DESIGN",5:"PLAN",6:"DELIVER",7:"MEASURE"}[t]||`PHASE ${t}`}function eN(t){return{2:"bg-emerald-50 text-emerald-700",3:"bg-cyan-50 text-cyan-700",4:"bg-yellow-50 text-yellow-700",5:"bg-purple-50 text-purple-700",6:"bg-rose-50 text-rose-700",7:"bg-blue-50 text-blue-700"}[t]||"bg-gray-50 text-gray-700"}function Pb(t,a){const i=[],s=js.find(o=>o.id===t||o.id===t.replace("-refined",""));if(!s)return i;if(!a)return i.push({severity:"warning",message:"No project loaded. Agent will run with minimal context."}),i;if(s.prerequisites&&s.prerequisites.length>0){const o=s.prerequisites.join(" or ");i.push({severity:"info",message:`This agent works best with: ${o}. Continue anyway?`})}return s.phase>=4&&i.push({severity:"info",message:`${s.name} is typically used in Phase ${s.phase}. You can run it now for experimentation.`}),i}async function tN(t,a){const i=await fetch("/api/agents/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectSlug:t,agentId:a})});if(!i.ok){const s=await i.json().catch(()=>({error:"Failed to queue agent run."}));throw new Error(s.error||"Failed to queue agent run.")}return i.json()}async function nN(t){const a=await fetch(`/api/agents/runs/${encodeURIComponent(t)}`);if(!a.ok){const i=await a.json().catch(()=>({error:"Failed to fetch agent run."}));throw new Error(i.error||"Failed to fetch agent run.")}return a.json()}async function aN(t){const a=await fetch(`/api/agents/runs/${encodeURIComponent(t)}/merge`,{method:"POST",headers:{"Content-Type":"application/json"}});if(!a.ok){const i=await a.json().catch(()=>({error:"Failed to apply agent run."}));throw new Error(i.error||"Failed to apply agent run.")}}async function rN(t){const a=await fetch(`/api/agents/runs/${encodeURIComponent(t)}`,{method:"DELETE"});if(!a.ok&&a.status!==204){const i=await a.json().catch(()=>({error:"Failed to discard agent run."}));throw new Error(i.error||"Failed to discard agent run.")}}function iN({isOpen:t,agentId:a,onApprove:i,onCancel:s}){const[o,c]=d.useState(!1),{slug:u}=uu(),h=Bt(v=>u?v.projects.find(E=>E.slug===u):null);if(!t)return null;const g=js.find(v=>v.id===a);if(!g)return null;const p=Pb(a,h),b=()=>{o&&localStorage.setItem(`agent-warnings-ignored-${a}`,"true"),i()};return y.jsx("div",{className:"fixed inset-0 bg-black/30 flex items-center justify-center z-50 rounded-lg",children:y.jsxs("div",{className:"bg-canvas rounded-lg shadow-lg max-w-md w-96 p-6 space-y-4",children:[y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsx("span",{className:"text-3xl",children:g.emoji}),y.jsxs("div",{className:"flex-1",children:[y.jsx("h2",{className:"text-title-compact font-medium text-text-primary",children:g.name}),y.jsx("p",{className:"text-caption text-text-secondary mt-0.5",children:g.role})]})]}),y.jsx("div",{className:"bg-surface-secondary rounded p-4 space-y-3",children:p.map((v,E)=>y.jsxs("div",{className:"flex gap-3",children:[y.jsx("span",{className:"text-lg flex-shrink-0",children:v.severity==="warning"?"⚠️":"ℹ️"}),y.jsx("p",{className:"text-body-compact text-text-primary",children:v.message})]},E))}),y.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[y.jsx("input",{type:"checkbox",checked:o,onChange:v=>c(v.target.checked),className:"w-4 h-4 rounded border border-text-secondary"}),y.jsx("span",{className:"text-caption text-text-secondary",children:"Don't show this warning again"})]}),y.jsxs("div",{className:"flex gap-3 pt-2",children:[y.jsx("button",{onClick:s,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:"Cancel"}),y.jsx("button",{onClick:b,className:"flex-1 px-4 py-2 rounded bg-text-primary text-canvas hover:bg-text-secondary transition-colors text-label font-medium",children:"Continue"})]})]})})}function sN({isStreaming:t=!1}){const[a,i]=d.useState(!1),[s,o]=d.useState(null),[c,u]=d.useState(!1),h=d.useRef(null),{slug:g}=uu(),p=Bt(j=>g?j.projects.find(C=>C.slug===g):null),{startRun:b,failRun:v,syncRun:E}=sa();d.useEffect(()=>{function j(C){h.current&&!h.current.contains(C.target)&&i(!1)}if(a)return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[a]);const S=j=>{o(j),Pb(j,p).length>0?u(!0):w(j)},w=async j=>{const C=js.find(D=>D.id===j);if(!(!C||!p))try{const D=await tN(p.slug,j);b(D.runId,j,C.name,p.slug),E(D.runId,{status:D.status,messages:D.messages,artefactSummary:D.artefactSummary,error:D.error??void 0}),i(!1)}catch(D){const H=`${j}-${Date.now()}`;b(H,j,C.name,p.slug),v(H,D instanceof Error?D.message:"Failed to start agent run."),i(!1)}},T=async()=>{s&&await w(s),u(!1)},M=()=>{u(!1),o(null)};return y.jsxs("div",{ref:h,className:"fixed bottom-6 right-6 z-40",children:[s&&y.jsx(iN,{isOpen:c,agentId:s,onApprove:T,onCancel:M}),y.jsxs("div",{className:"relative",children:[!a&&y.jsxs("button",{onClick:()=>i(!0),disabled:t,className:`flex items-center gap-2 px-4 py-2 rounded-full border-2 border-dashed transition-all ${t?"opacity-50 cursor-not-allowed border-text-tertiary":"border-text-secondary hover:border-text-primary bg-canvas hover:bg-surface-secondary"}`,title:t?"Cannot open Agent Lab while streaming":"Open Agent Lab",children:[y.jsx("span",{className:"text-lg",children:"🤖"}),y.jsxs("span",{className:"text-caption font-medium text-text-secondary",children:[js.length," agents"]})]}),a&&y.jsxs("div",{className:"absolute bottom-16 right-0 w-72 max-h-[600px] bg-canvas border-2 border-dashed border-text-secondary rounded-lg shadow-lg flex flex-col overflow-hidden",children:[y.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-text-tertiary bg-surface-primary",children:[y.jsx("h3",{className:"text-label font-medium",children:"Agent Lab"}),y.jsx("button",{onClick:()=>i(!1),className:"text-text-tertiary hover:text-text-primary transition-colors",title:"Close",children:"✕"})]}),y.jsx("div",{className:"flex-1 overflow-y-auto",children:JR().map(j=>{const C=QR(j);return y.jsxs("div",{className:"px-2 py-3 first:pt-3",children:[y.jsx("div",{className:`px-3 py-1.5 rounded ${eN(j)} text-xs font-semibold uppercase tracking-wide mb-2`,children:WR(j)}),y.jsx("div",{className:"space-y-1",children:C.map(D=>y.jsx("button",{onClick:()=>S(D.id),disabled:t,className:`w-full text-left px-3 py-2 rounded transition-all group ${t?"opacity-50 cursor-not-allowed":"hover:bg-surface-secondary hover:shadow-sm"}`,children:y.jsxs("div",{className:"flex items-start justify-between",children:[y.jsxs("div",{className:"flex-1",children:[y.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[y.jsx("span",{className:"text-base",children:D.emoji}),y.jsx("span",{className:"text-body-compact font-medium text-text-primary",children:D.name})]}),y.jsx("p",{className:"text-caption text-text-tertiary ml-6",children:D.description})]}),y.jsx("button",{onClick:H=>{H.stopPropagation(),S(D.id)},disabled:t,className:"ml-2 px-2 py-1 text-xs font-medium bg-surface-secondary hover:bg-surface-tertiary text-text-primary rounded transition-colors flex-shrink-0 disabled:opacity-50 disabled:cursor-not-allowed group-hover:bg-text-primary group-hover:text-canvas",title:`Run ${D.name}`,children:"▶"})]})},D.id))})]},j)})}),y.jsx("div",{className:"px-4 py-2 border-t border-text-tertiary bg-surface-primary text-xs text-text-tertiary",children:"Individual agent runs are isolated. Changes require explicit merge."})]})]})]})}function lN(){const t=sa(T=>T.activeRunId),a=sa(T=>T.isModalOpen),i=sa(T=>T.runs),s=sa(T=>T.setModalOpen),o=sa(T=>T.discardRun),c=sa(T=>T.syncRun),u=sa(T=>T.completeRun),h=sa(T=>T.failRun),g=d.useRef(null),p=t?i.get(t)??null:null,b=p==null?void 0:p.status,v=(p==null?void 0:p.messages.length)??0;if(d.useEffect(()=>{var T;!a||!p||(T=g.current)==null||T.scrollIntoView({behavior:"smooth"})},[a,p,v]),d.useEffect(()=>{if(!t||!b||b==="completed"||b==="failed")return;const T=window.setInterval(async()=>{try{const M=await nN(t);c(t,{status:M.status,messages:M.messages,artefactSummary:M.artefactSummary,error:M.error??void 0}),M.status==="completed"&&u(t,M.artefactSummary),M.status==="failed"&&M.error&&h(t,M.error)}catch(M){h(t,M instanceof Error?M.message:"Failed to refresh run status.")}},700);return()=>window.clearInterval(T)},[t,u,h,b,c]),!a||!p)return null;const E=()=>{s(!1)},S=async()=>{try{await aN(p.runId),s(!1)}catch(T){h(p.runId,T instanceof Error?T.message:"Failed to apply run.")}},w=()=>{(async()=>{try{await rN(p.runId)}finally{o(p.runId),s(!1)}})()};return y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"fixed inset-0 bg-black/20 z-50 pointer-events-none"}),y.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:[y.jsxs("div",{className:"px-6 py-4 border-b border-text-tertiary bg-surface-primary flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsxs("h2",{className:"text-title-compact font-medium text-text-primary flex items-center gap-2",children:[y.jsx("span",{className:"text-lg",children:"⚙️"}),p.agentName]}),y.jsxs("p",{className:"text-caption text-text-secondary mt-1",children:["Project: ",p.projectSlug," • Run ID: ",p.runId.split("-").pop()]})]}),y.jsx("button",{onClick:E,className:"text-text-tertiary hover:text-text-primary transition-colors text-lg",title:"Close modal",children:"✕"})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-4 space-y-4",children:[p.messages.length===0&&p.status==="queued"&&y.jsx("p",{className:"text-body-standard text-text-tertiary text-center py-8",children:"Preparing agent..."}),p.messages.map(T=>y.jsx(zb,{message:T},T.id)),p.status==="running"&&y.jsx("div",{className:"flex items-center gap-2 py-4",children:y.jsx("span",{className:"text-caption text-text-secondary",children:"Agent is thinking..."})}),p.status==="completed"&&y.jsxs("div",{className:"bg-surface-secondary rounded-lg p-4 mt-4",children:[y.jsxs("p",{className:"text-caption font-medium text-text-primary flex items-center gap-2",children:[y.jsx("span",{children:"✅"}),"Agent run completed"]}),p.artefactSummary&&y.jsxs("div",{className:"mt-3 text-caption text-text-secondary",children:[y.jsx("p",{className:"font-medium mb-1",children:"Generated:"}),y.jsx("ul",{className:"list-disc list-inside space-y-0.5",children:p.artefactSummary.map((T,M)=>y.jsx("li",{children:T},M))})]})]}),p.status==="failed"&&y.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 mt-4",children:[y.jsxs("p",{className:"text-caption font-medium text-red-700 flex items-center gap-2",children:[y.jsx("span",{children:"❌"}),"Agent run failed"]}),p.error&&y.jsx("p",{className:"text-caption text-red-600 mt-2",children:p.error})]}),y.jsx("div",{ref:g})]}),y.jsxs("div",{className:"px-6 py-4 border-t border-text-tertiary bg-surface-primary flex gap-3",children:[y.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"}),y.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"}),y.jsx("button",{onClick:S,disabled:p.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 n4="dx.context.autoCompact",af=8,oN=8;function cN(){var Pe,_e,Je,et,wt,ut,Ot,st,Ut,Tt,Jn;const{slug:t}=uu(),a=io(),i=Rt(B=>B.messages),s=Rt(B=>B.isStreaming),o=Rt(B=>B.clearStream),c=Rt(B=>B.appendMessage),u=Rt(B=>B.updateLastAgent),h=Rt(B=>B.updateArtifactProgress),g=Rt(B=>B.setStreaming),p=Rt(B=>B.setOnGateResolved),b=Rt(B=>B.setCurrentProjectSlug),v=Rt(B=>B.saveStreamToStorage),E=Rt(B=>B.loadStreamFromStorage),S=Yc(B=>B.saveProjectSession),w=Yc(B=>B.setCurrentProject),T=Bt(B=>B.selectProject),M=Bt(B=>B.openContextPanel),j=Bt(B=>B.updateProject),C=Bt(B=>B.projects.find(be=>be.slug===t)),D=kn(B=>t?B.jobsByProject[t]??null:null),H=kn(B=>B.resumeProjectJob),U=kn(B=>B.markContextRefreshStarted),te=kn(B=>B.markContextRefreshCompleted),ne=kn(B=>B.markContextRefreshDeferred),_=Ha(B=>B.githubToken),ae=Ha(B=>B.copilotToken),ie=Ha(B=>B.copilotTokenExpiresAt),oe=Ha(B=>!!B.copilotToken&&B.copilotToken!==B.githubToken),J=Vi(B=>!!B.apiKey),ge=oe||J,he=Aa(B=>B.model),xe=Aa(B=>B.discoveryStatus),V=Aa(B=>B.setAvailableModels),Q=Aa(B=>B.setDiscoveryLoading),K=Aa(B=>B.setDiscoveryError),de=Aa(B=>B.resetAvailableModels),we=lu(B=>B.addUsage),R=lu(B=>B.reset),q=Yl(B=>B.upsertArtifacts),ce=Yl(B=>B.finalizeProjectArtifacts),[ye,Se]=d.useState(!1),[Re,$]=d.useState(!1),[Ze,Oe]=d.useState(null),[ot,me]=d.useState(null),[bt,Le]=d.useState(null),[Xe,qt]=d.useState(null),[Nt,Qt]=d.useState(null),[ua,Za]=d.useState(()=>Date.now()),[Pn,lr]=d.useState(()=>{try{return localStorage.getItem(n4)!=="0"}catch{return!0}}),yn=d.useRef(""),ja=d.useRef(!1),Dt=d.useRef(!1),Jt=d.useRef(null),Wt=d.useRef(null),Qn=d.useRef(0),Fn=d.useRef(new Set),bn=d.useRef(new Set),ln=d.useRef(null),Pa=d.useRef(0),jr=d.useRef(C);d.useEffect(()=>{jr.current=C},[C]);const _n=d.useRef(he);d.useEffect(()=>{_n.current=he},[he]);const[en,Kt]=d.useState([]),Yt=d.useRef([]),or=d.useRef("");d.useEffect(()=>{if(!t||!C)return;const B=`${t}:${C.kb_files.length}`;if(or.current!==B){if(or.current=B,C.kb_files.length===0){Kt([]),Yt.current=[];return}P9(t).then(be=>{Kt(be),Yt.current=be}).catch(()=>{})}},[t,C==null?void 0:C.kb_files.length]);const _a=Nt?Math.max(0,Math.ceil((Nt-ua)/1e3)):0,Fa=_a>0;d.useEffect(()=>{try{localStorage.setItem(n4,Pn?"1":"0")}catch{}},[Pn]),d.useEffect(()=>{if(!Nt)return;const B=window.setInterval(()=>{Za(Date.now())},1e3);return()=>window.clearInterval(B)},[Nt]),d.useEffect(()=>{Nt&&Date.now()>=Nt&&Qt(null)},[ua,Nt]);function da(B){return B instanceof Error?/\(429\)|rate limit|too many requests/i.test(B.message):!1}const Vn=d.useCallback(async(B=!1)=>{if(!ae){const be=Vi.getState();if(be.provider&&be.apiKey){V({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"}]}[be.provider]??[]);return}de();return}Q();try{const be=await kR(ae,{forceRefresh:B});if(be.length===0){K("Copilot returned no models for this account.");return}V(be)}catch(be){const X=be instanceof Error?be.message:"Copilot model discovery failed.";console.warn("[copilot-models]",X),K(X)}},[ae,de,V,K,Q]);d.useEffect(()=>{let B=!1;return(async()=>B||await Vn(!1))(),()=>{B=!0}},[ae,ie,Vn]);const fa=ae&&_&&ae!==_?"Copilot session token":"GitHub fallback token";function on(B=20){return Rt.getState().messages.filter(be=>be.type==="user"||be.type==="agent"||be.type==="artifact-progress").slice(-B).map(be=>({role:be.type==="user"?"user":"assistant",content:be.content??""}))}const L=d.useCallback((B="manual")=>{const X=Rt.getState().messages,se=X.filter(Gt=>Gt.type==="user"||Gt.type==="agent");if(se.length<=af)return B==="manual"&&c({id:crypto.randomUUID(),type:"system",timestamp:Date.now(),content:"Context is already compact enough. No older turns were compressed."}),!1;const De=se.length-af;let ze=0,Ie=-1,Be=0;const Ye=[],vt=[];for(const Gt of X){if(!(Gt.type==="user"||Gt.type==="agent")){vt.push(Gt);continue}ze<De?(Ie===-1&&(Ie=vt.length),Be+=1,Ye.push(Gt)):vt.push(Gt),ze+=1}const Qe=Ye.slice(-12).map(Gt=>{const tn=Gt.type==="user"?"User":"Assistant",Sn=(Gt.content??"").replace(/\s+/g," ").trim(),ha=Sn.length>140?`${Sn.slice(0,140)}...`:Sn;return`- ${tn}: ${ha}`}),We={id:crypto.randomUUID(),type:"system",timestamp:Date.now(),content:[`Context compacted (${B}).`,`Compressed ${Be} older turns and kept the latest ${af}.`,"Recent compacted context snapshot:",...Qe].join(`
|
|
394
|
+
`)},In=Ie===-1?0:Ie;return vt.splice(In,0,We),Rt.setState({messages:vt}),!0},[c]),W=d.useMemo(()=>{if(!C)return{requestBytes:0,budgetBytes:_c,ratio:0};const B=t4(C,en.length>0?en:void 0),be=i.filter(se=>se.type==="user"||se.type==="agent").map(se=>({role:se.type==="user"?"user":"assistant",content:se.content??""})),X=J8([B,...be,{role:"user",content:"(next prompt)"}],_n.current);return{requestBytes:X,budgetBytes:_c,ratio:X/_c}},[i,C,en]);function Ee(B){const be=Rr(B),X=Vl(yn.current,be,B.slug,!1),se=Vl(yn.current,be,B.slug,!0);if(se.length>0&&q(B.slug,se),Jt.current){const De=X.map(ze=>({id:ze.id,title:ze.title,status:ze.isStreaming?"generating":"done"}));h(Jt.current,De)}}function qe(B,be,X){yn.current+=B;const se=yn.current;if(se.startsWith("## ")||se.includes(`
|
|
395
|
+
## `)){if(!Jt.current){const ze=se.indexOf(`
|
|
396
|
+
## `),Ie=ze>0?se.slice(0,ze).trim():"",Be=crypto.randomUUID();Jt.current=Be;const Ye=Rr(X);Rt.setState(vt=>({messages:vt.messages.filter(Qe=>Qe.id!==be&&!(Qe.type==="agent"&&!Qe.agentName))})),c({id:Be,type:"artifact-progress",timestamp:Date.now(),phaseNumber:Ye.id,phaseName:Ye.name,phaseColor:Ye.color,artifactProgress:[],agentNote:Ie||void 0}),ja.current=!0}Ee(X)}else ja.current?u(yn.current):(Rt.setState(ze=>({messages:ze.messages.filter(Ie=>Ie.id!==be)})),c({id:crypto.randomUUID(),type:"agent",timestamp:Date.now(),content:yn.current}),ja.current=!0)}function St(B,be){Rt.setState(X=>({messages:X.messages.filter(se=>se.id!==be)})),g(!1),c({id:crypto.randomUUID(),type:"system",timestamp:Date.now(),content:B instanceof Error?B.message:"Something went wrong. Please try again."})}function Et(B){if(!B||Dt.current)return;const be=KR(yn.current);if(!be)return;Dt.current=!0;const X=PR(B.current_phase,be.key),se=Rr(B);if(B.control_mode==="autonomous"){!Rt.getState().messages.some(Ie=>Ie.type==="agent")&&yn.current&&c({id:crypto.randomUUID(),type:"agent",timestamp:Date.now(),content:yn.current});const ze=be.key==="type-selection"?"fast-track":void 0;Ne(be.key,ze,B,be.artefacts)}else c({id:crypto.randomUUID(),type:"gate",timestamp:Date.now(),gateKey:be.key,gateSummary:be.summary??void 0,gateStatus:"pending",summaryArtefacts:be.artefacts,phaseNumber:se.id,phaseName:se.name,phaseColor:se.color,gateVariant:(X==null?void 0:X.variant)??"standard",gateNextStep:X==null?void 0:X.nextStep})}const Ne=d.useCallback((B,be,X,se)=>{const De=X??jr.current;if(!De)return;const ze=se??Rt.getState().messages.filter(We=>We.type==="gate"&&We.gateKey===B).flatMap(We=>We.summaryArtefacts??[]),Ie=Rr(De),Be=YR(De,B);if(c({id:crypto.randomUUID(),type:"phase-summary",timestamp:Date.now(),phaseNumber:Ie.id,phaseName:Ie.name,phaseColor:Ie.color,summaryArtefacts:ze}),Be==="complete"){j(De.slug,{status:"complete"}),c({id:crypto.randomUUID(),type:"system",timestamp:Date.now(),content:"Project complete. All phases finished."});return}const Ye=Be;Ye&&Ye.id!==Ie.id&&(j(De.slug,{current_phase:Ye.id}),c({id:crypto.randomUUID(),type:"phase-transition",timestamp:Date.now()+1,phaseNumber:Ye.id,phaseName:Ye.name,phaseColor:Ye.color,direction:"entering"}));const vt=XR(B,be),Qe=Ye&&Ye.id!==Ie.id?{...De,current_phase:Ye.id}:De;Me(Qe,vt,!0)},[]);async function Me(B,be,X=!1,se){var In,Gt;yn.current="",ja.current=!1,Dt.current=!1,Jt.current=null,ln.current=null,Wt.current=new AbortController,X||(Pa.current=0);const De=crypto.randomUUID();c({id:De,type:"thinking",timestamp:Date.now(),thinkingText:X?"Continuing…":"Processing…",thinkingProgress:15}),g(!0),Za(Date.now());let ze="",Ie=null,Be=0;const Ye=150,vt=()=>{if(!ze)return;const tn=ze;ze="",Be=Date.now(),qe(tn,De,B)},Qe=()=>{Ie!==null&&(window.clearTimeout(Ie),Ie=null)},We=()=>{if(Ie!==null)return;const tn=ze.includes(`
|
|
397
|
+
`),Sn=Date.now()-Be,ha=tn?0:Math.max(0,Ye-Sn);Ie=window.setTimeout(()=>{Ie=null,vt()},ha)};try{const{provider:tn,apiKey:Sn}=Vi.getState(),ha=!!tn&&!!Sn;let wn="";ha||(wn=await ug());const _r=t4(B,Yt.current.length>0?Yt.current:void 0),Ia=20;let Ga=(se==null?void 0:se.includeHistory)===!1?[]:on(Ia);if((se==null?void 0:se.includeHistory)!==!1){const lt=J8([_r,...Ga,{role:"user",content:be}],_n.current);Pn&<>_c&&L("auto")&&(Ga=on(Ia))}const nn=_n.current,fi=Rr(B),cr=fi.id===6||fi.id===7?16e3:4096,$e=[_r,...Ga,{role:"user",content:be}],hi=()=>{var lt;if(Qe(),vt(),Wt.current=null,g(!1),Ee(B),ce(B.slug),Jt.current){const ht=Rr(B),Dn=Vl(yn.current,ht,B.slug,!1),Hn=Vl(yn.current,ht,B.slug,!0);h(Jt.current,Dn.map(pe=>({id:pe.id,title:pe.title,status:"done"})));const zn=Jt.current,$a=Dn.length>0?`[${ht.name} build — generated ${Dn.length} artifact(s):
|
|
398
|
+
${Dn.map(pe=>`- ${pe.title}`).join(`
|
|
399
|
+
`)}]`:`[${ht.name} build batch complete]`;Rt.setState(pe=>({messages:pe.messages.map(ke=>ke.id===zn?{...ke,content:$a}:ke)})),Hn.length>0&&q(B.slug,Hn)}Et(B),(lt=se==null?void 0:se.onComplete)==null||lt.call(se)};ha?await VR($e,tn,Sn,lt=>{ze+=lt,Ie!==null&&ze.includes(`
|
|
400
|
+
`)&&Qe(),We()},hi,nn,lt=>we(lt.prompt_tokens,lt.completion_tokens,nn),Wt.current.signal,cr):await LR($e,wn,lt=>{ze+=lt,Ie!==null&&ze.includes(`
|
|
401
|
+
`)&&Qe(),We()},hi,nn,lt=>we(lt.prompt_tokens,lt.completion_tokens,nn),Wt.current.signal,()=>ug(!0),cr,()=>{if(!Jt.current||Dt.current)return;const lt=Rr(B),Dn=Vl(yn.current,lt,B.slug,!1).map(zn=>zn.title),Hn=Dn.length>0?`
|
|
402
|
+
|
|
403
|
+
Already completed:
|
|
404
|
+
${Dn.map(zn=>`- ${zn}`).join(`
|
|
405
|
+
`)}`:"";if(Pa.current<oN){Pa.current+=1;const zn=`Continue generating the remaining ${lt.name} phase artifacts from where you left off.${Hn}
|
|
406
|
+
|
|
407
|
+
Pick up with the next artifact. When ALL artifacts for this phase are complete, output:
|
|
408
|
+
## R3 — Build Review`;Me(B,zn,!0)}else{const zn=`You have generated all the artifacts for the ${lt.name} phase.${Hn}
|
|
409
|
+
|
|
410
|
+
Please now output the build review gate to complete the phase:
|
|
411
|
+
|
|
412
|
+
## R3 — Build Review
|
|
413
|
+
|
|
414
|
+
Summarise what was built, what was deferred, and any known issues.`;Me(B,zn,!0)}})}catch(tn){if(Qe(),vt(),Wt.current=null,tn instanceof DOMException&&tn.name==="AbortError"){Rt.setState(Sn=>({messages:Sn.messages.filter(ha=>ha.id!==De)})),g(!1),c({id:crypto.randomUUID(),type:"system",timestamp:Date.now(),content:"Run paused. Add instructions when ready, then continue from the current project state."}),(In=se==null?void 0:se.onAbort)==null||In.call(se);return}da(tn)&&(ln.current=()=>{Me(B,be,X,se)},Qt(Date.now()+2e4)),(Gt=se==null?void 0:se.onError)==null||Gt.call(se),St(tn,De)}}d.useEffect(()=>{const B=i.filter(be=>be.type==="phase-summary"||be.type==="gate").flatMap(be=>be.summaryArtefacts??[]).filter((be,X,se)=>se.indexOf(be)===X).length;B>0&&Qn.current===0&&M("artefacts"),Qn.current=B},[i,M]),d.useEffect(()=>{t&&H(t)},[H,t]),d.useEffect(()=>{if(!t||(T(t),b(t),w(t),R(),!C))return;if(C.status==="onboarding"){a(`/setup/${t}`,{replace:!0});return}E(t)||o()},[t,a]),d.useEffect(()=>{if(!t||!C||!ge||i.length>0||C.status==="onboarding"||C.status==="complete"||D!=null&&D.contextRefreshPending&&D.autoApplyToContext||Fn.current.has(t)||Rt.getState().isStreaming)return;Fn.current.add(t);const B="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."}),Me(C,B,!0)},[c,ge,s,D,i.length,C,t]),d.useEffect(()=>{const B=()=>{t&&(v(t),S(t,{messages:Rt.getState().messages,isStreaming:Rt.getState().isStreaming,activeGateKey:Rt.getState().activeGateKey,inputDraft:Rt.getState().inputDraft,currentPhaseNumber:(C==null?void 0:C.current_phase)??0}))};return window.addEventListener("beforeunload",B),()=>{window.removeEventListener("beforeunload",B),B()}},[t,C,v,S]),d.useEffect(()=>{t&&(v(t),S(t,{messages:i,isStreaming:s,activeGateKey:Rt.getState().activeGateKey,inputDraft:Rt.getState().inputDraft,currentPhaseNumber:(C==null?void 0:C.current_phase)??0}))},[t,i,s,C,S,v]),d.useEffect(()=>(p((B,be,X)=>{be==="approved"&&Ne(B,X)}),()=>p(null)),[Ne,p]),d.useEffect(()=>{if(!C||!D||D.status!=="ready"||!D.contextRefreshPending||!D.autoApplyToContext||!ge||C.kb_files.length===0||bn.current.has(C.slug)||Rt.getState().isStreaming)return;const B=["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(`
|
|
415
|
+
`);bn.current.add(C.slug),U(C.slug),M("kb"),c({id:crypto.randomUUID(),type:"user",timestamp:Date.now(),content:"Apply the prepared KB package to the active project context."}),Me(C,B,!0,{onComplete:()=>{bn.current.delete(C.slug),te(C.slug)},onAbort:()=>{bn.current.delete(C.slug),ne(C.slug,"KB package is ready, but project-context refresh was paused.")},onError:()=>{bn.current.delete(C.slug),ne(C.slug,"KB package is ready, but project-context refresh failed.")},includeHistory:!1})},[c,ge,s,D,te,ne,U,M,C]);async function Ge(B){C&&(c({id:crypto.randomUUID(),type:"user",timestamp:Date.now(),content:B}),await Me(C,B))}async function N(){if(!(!ae||Re)){Se(!0),$(!0),Oe(null);try{const B={Authorization:`Bearer ${ae}`},[be,X,se]=await Promise.all([fetch(`/api/copilot/models/debug?ts=${Date.now()}`,{cache:"no-store",headers:B}),fetch(`/api/copilot/models/compare-integration?ts=${Date.now()}`,{cache:"no-store",headers:B}),fetch(`/api/copilot/telemetry?ts=${Date.now()}`,{cache:"no-store"})]),De=await be.json().catch(()=>({}));if(!be.ok)throw new Error(De.error??`Models debug request failed (${be.status}).`);me(De);const ze=await X.json().catch(()=>({}));if(!X.ok)throw new Error(ze.error??`Compare integration request failed (${X.status}).`);Le(ze);const Ie=await se.json().catch(()=>({}));se.ok&&qt(Ie)}catch(B){me(null),Le(null),qt(null),Oe(B instanceof Error?B.message:"Unable to load models debug data.")}finally{$(!1)}}}function k(){Se(!1),Oe(null),me(null),Le(null),qt(null)}function P(){var B;(B=Wt.current)==null||B.abort()}const ue=(C==null?void 0:C.kb_files.length)??0,fe=ue===0?"Knowledge Base":`Knowledge Base · ${ue} file${ue===1?"":"s"}`,Ce=W.budgetBytes>0?W.requestBytes/W.budgetBytes:0,ve=Ce>=1?"critical":Ce>=.8?"warn":"safe",je=ve==="critical"?"border-red-300 text-red-700":ve==="warn"?"border-amber-300 text-amber-700":"border-emerald-300 text-emerald-700",Te=`${Math.min(100,Math.round(Ce*100))}%`,Ae=B=>B>=1024*1024?`${(B/(1024*1024)).toFixed(2)} MB`:B>=1024?`${(B/1024).toFixed(1)} KB`:`${B} B`;return y.jsxs(y.Fragment,{children:[y.jsx(hR,{messages:i}),ge?y.jsxs("div",{className:"flex-shrink-0",children:[y.jsxs("div",{className:"mx-auto max-w-[720px] px-4 flex items-center justify-between pt-1",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(wR,{}),y.jsx(oa,{variant:"ghost",size:"sm",onClick:N,disabled:Re,children:Re?"Loading Debug…":"Models Debug"}),y.jsx(oa,{variant:"ghost",size:"sm",onClick:()=>{Vn(!0)},disabled:xe==="loading",children:xe==="loading"?"Refreshing Models…":"Refresh Models"}),y.jsxs("button",{type:"button",onClick:()=>M("kb"),"aria-label":fe,title:fe,className:"inline-flex items-center gap-1.5 rounded-card border border-border px-3 py-1.5 text-small font-medium text-text-secondary transition-all duration-100 hover:-translate-y-0.5 hover:text-text-primary hover:shadow-hover-subtle",children:[y.jsx(qc,{size:14,"aria-hidden":"true"}),y.jsx("span",{className:"truncate max-w-[220px]",children:fe})]}),s&&y.jsx(oa,{variant:"secondary",size:"sm",onClick:P,children:"Stop & Add Instructions"})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("span",{className:"rounded-card border border-border px-2 py-1 text-xs text-text-secondary",children:["Auth: ",fa]}),y.jsx(ER,{})]})]}),ye&&y.jsx("div",{className:"mx-auto mt-2 max-w-[720px] px-4",children:y.jsxs("div",{className:"rounded-card border border-border bg-card p-3 text-small text-text-secondary",children:[y.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[y.jsx("p",{className:"font-medium text-text-primary",children:"Temporary Copilot Models Debug"}),y.jsx(oa,{variant:"ghost",size:"sm",onClick:k,children:"Hide"})]}),Ze&&y.jsx("p",{className:"rounded-card border border-border bg-background px-2 py-1 text-text-primary",children:Ze}),!Ze&&ot&&y.jsxs("div",{className:"space-y-2",children:[y.jsxs("p",{children:["Upstream status: ",y.jsx("span",{className:"font-medium text-text-primary",children:((Pe=ot.upstream)==null?void 0:Pe.status)??"n/a"})]}),y.jsxs("p",{children:["Models: ",y.jsx("span",{className:"font-medium text-text-primary",children:((_e=ot.policy)==null?void 0:_e.modelCount)??0})," | Picker disabled:"," ",y.jsx("span",{className:"font-medium text-text-primary",children:((Je=ot.policy)==null?void 0:Je.disabledInPickerCount)??0})," | Preview:"," ",y.jsx("span",{className:"font-medium text-text-primary",children:((et=ot.policy)==null?void 0:et.previewCount)??0})]}),y.jsxs("p",{children:["Vendors:"," ",y.jsx("span",{className:"font-medium text-text-primary",children:Object.entries(((wt=ot.policy)==null?void 0:wt.vendorCounts)??{}).map(([B,be])=>`${B}: ${be}`).join(" | ")||"n/a"})]}),y.jsxs("details",{children:[y.jsx("summary",{className:"cursor-pointer text-text-primary",children:"Upstream response headers"}),y.jsx("pre",{className:"mt-2 overflow-auto rounded-card border border-border bg-background p-2 text-xs text-text-primary",children:JSON.stringify(((ut=ot.upstream)==null?void 0:ut.headers)??{},null,2)})]}),y.jsxs("details",{children:[y.jsx("summary",{className:"cursor-pointer text-text-primary",children:"Per-model policy snapshot"}),y.jsx("pre",{className:"mt-2 overflow-auto rounded-card border border-border bg-background p-2 text-xs text-text-primary",children:JSON.stringify(((Ot=ot.policy)==null?void 0:Ot.models)??[],null,2)})]}),bt&&y.jsxs("details",{children:[y.jsx("summary",{className:"cursor-pointer text-text-primary",children:"Integration comparison (Anthropic visibility)"}),y.jsxs("div",{className:"mt-2 space-y-2 text-xs text-text-primary",children:[y.jsxs("p",{children:["With integration: ",((st=bt.withIntegration)==null?void 0:st.total)??0," models | vendors:"," ",Object.entries(((Ut=bt.withIntegration)==null?void 0:Ut.vendorCounts)??{}).map(([B,be])=>`${B}:${be}`).join(" | ")||"n/a"]}),y.jsxs("p",{children:["Without integration: ",((Tt=bt.withoutIntegration)==null?void 0:Tt.total)??0," models | vendors:"," ",Object.entries(((Jn=bt.withoutIntegration)==null?void 0:Jn.vendorCounts)??{}).map(([B,be])=>`${B}:${be}`).join(" | ")||"n/a"]}),y.jsx("pre",{className:"overflow-auto rounded-card border border-border bg-background p-2 text-xs text-text-primary",children:JSON.stringify({onlyWithIntegration:bt.onlyWithIntegration??[],onlyWithoutIntegration:bt.onlyWithoutIntegration??[]},null,2)})]})]}),Xe&&y.jsxs("details",{children:[y.jsx("summary",{className:"cursor-pointer text-text-primary",children:"Copilot telemetry counters"}),y.jsx("pre",{className:"mt-2 overflow-auto rounded-card border border-border bg-background p-2 text-xs text-text-primary",children:JSON.stringify(Xe,null,2)})]})]})]})}),Nt&&y.jsx("div",{className:"mx-auto mt-2 max-w-[720px] px-4",children:y.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:[y.jsxs("span",{children:["Copilot is rate-limited. ",Fa?`Retry available in ${_a}s.`:"You can retry now."]}),y.jsx(oa,{variant:"secondary",size:"sm",disabled:Fa||!ln.current||s,onClick:()=>{var B;Qt(null),(B=ln.current)==null||B.call(ln)},children:"Retry"})]})}),y.jsx("div",{className:"mx-auto mt-2 max-w-[720px] px-4",children:y.jsxs("div",{className:"rounded-card border border-border bg-card px-3 py-2",children:[y.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y.jsxs("div",{className:"min-w-0",children:[y.jsx("p",{className:"text-small font-medium text-text-primary",children:"Context Tracker"}),y.jsxs("p",{className:"text-xs text-text-secondary",children:["Estimated request size ",Ae(W.requestBytes)," / ",Ae(W.budgetBytes)]})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:`rounded-card border px-2 py-0.5 text-xs font-medium ${je}`,children:ve.toUpperCase()}),y.jsx(oa,{variant:"secondary",size:"sm",disabled:s,onClick:()=>{L("manual")},children:"Compact now"}),y.jsxs("label",{className:"inline-flex items-center gap-1.5 text-xs text-text-secondary",children:[y.jsx("input",{type:"checkbox",checked:Pn,onChange:B=>lr(B.target.checked),className:"h-3.5 w-3.5 rounded border-border"}),"Auto compact"]})]})]}),y.jsx("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-background",children:y.jsx("div",{className:`h-full ${ve==="critical"?"bg-red-500":ve==="warn"?"bg-amber-500":"bg-emerald-500"}`,style:{width:Te}})})]})}),y.jsx(mR,{onSubmit:Ge,disabled:s||Fa})]}):y.jsxs("div",{className:"flex flex-col items-center gap-4",children:[y.jsx(gR,{}),y.jsxs("div",{className:"flex items-center gap-3 text-small text-text-tertiary",children:[y.jsx("span",{className:"h-px w-16 bg-border-primary"}),"or",y.jsx("span",{className:"h-px w-16 bg-border-primary"})]}),y.jsx(yR,{})]}),y.jsx(sN,{isStreaming:s}),y.jsx(lN,{})]})}function uN(){return y.jsx(MC,{children:y.jsx(F5,{})})}const dN=mE([{element:y.jsx(uN,{}),children:[{path:"/",element:y.jsx(DC,{})},{path:"/setup",element:y.jsx(P8,{})},{path:"/setup/:slug",element:y.jsx(P8,{})},{path:"/project/:slug",element:y.jsx(cN,{})}]}]),fN=600*1e3;function hN(){const[t,a]=d.useState(null),[i,s]=d.useState(!1),[o,c]=d.useState(!1),u=d.useRef(null);async function h(){try{const p=await fetch("/api/update-available");if(!p.ok)return;const b=await p.json();b.available&&b.latest&&b.current&&a({available:!0,latest:b.latest,current:b.current})}catch{}}if(d.useEffect(()=>{const p=setTimeout(()=>void h(),5e3);return u.current=setInterval(()=>void h(),fN),()=>{clearTimeout(p),u.current&&clearInterval(u.current)}},[]),!t||i)return null;async function g(){c(!0);try{await fetch("/api/relaunch",{method:"POST"}),setTimeout(()=>window.location.reload(),2e3)}catch{c(!1)}}return y.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:[y.jsx(u9,{size:14,className:"text-lemon-400 flex-shrink-0","aria-hidden":"true"}),y.jsxs("p",{className:"text-small",children:[y.jsxs("span",{className:"font-medium",children:["DesignX ",t.latest," is available"]}),y.jsxs("span",{className:"text-text-secondary",children:[" — you are on ",t.current]})]}),y.jsx("button",{type:"button",onClick:()=>void g(),disabled:o,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:o?"Relaunching…":"Relaunch to update"}),y.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:y.jsx(t1,{size:12,"aria-hidden":"true"})})]})}function mN(){const t=d.useRef(!1);d.useEffect(()=>{t.current||(t.current=!0,(async()=>{const a=await V9();if(F9().then(u=>{u!=null&&u.copilotToken&&!Ha.getState().copilotToken&&Ha.getState().setAuth(u.githubToken??"",u.copilotToken,u.copilotTokenExpiresAt??0,u.user)}).catch(()=>{}),$9().then(u=>{u&&lu.getState().seedAllTime(u)}).catch(()=>{}),a.length===0)return;const i=Bt.getState().projects,s=[...a,...i.filter(u=>!a.find(h=>h.slug===u.slug))],o=a.map(u=>u.slug).sort().join(),c=i.map(u=>u.slug).sort().join();if(o!==c){Bt.setState({projects:s});try{localStorage.setItem("enigma_projects",JSON.stringify(s))}catch{}}})())},[])}function pN(){return mN(),y.jsxs(y.Fragment,{children:[y.jsx(CE,{router:dN}),y.jsx(hN,{})]})}t3.createRoot(document.getElementById("root")).render(y.jsx(d.StrictMode,{children:y.jsx(pN,{})}));export{yC as a,t1 as b,C9 as c,gN as d,a4 as e,yN as g,y as j,f9 as n,yt as p,d as r,Cs as s};
|