@designtools/codesurface 0.1.3 → 0.1.8
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 +22 -15
- package/dist/cli.js +217 -109
- package/dist/client/assets/index--eM7ukq5.js +284 -0
- package/dist/client/assets/index-1q-WwsbN.css +1 -0
- package/dist/client/assets/index-A_L26x1h.js +164 -0
- package/dist/client/assets/index-B6jN1q8m.js +221 -0
- package/dist/client/assets/index-B7jQZQIh.js +164 -0
- package/dist/client/assets/index-BCq28ejx.js +274 -0
- package/dist/client/assets/index-BSe1-ayg.js +221 -0
- package/dist/client/assets/index-BoqOSsiL.js +164 -0
- package/dist/client/assets/index-BrTweOBw.css +1 -0
- package/dist/client/assets/index-BvlvZBFo.js +164 -0
- package/dist/client/assets/index-C0W09LqU.js +274 -0
- package/dist/client/assets/index-C8zdCN9Y.css +1 -0
- package/dist/client/assets/index-CNoLX-EE.css +1 -0
- package/dist/client/assets/index-CT_MpeRK.css +1 -0
- package/dist/client/assets/index-Caw3C8nD.js +164 -0
- package/dist/client/assets/index-CiJuTDXP.css +1 -0
- package/dist/client/assets/index-D1sfJ6Vs.js +274 -0
- package/dist/client/assets/index-D4qADRtt.js +221 -0
- package/dist/client/assets/index-DLNdLnNZ.css +1 -0
- package/dist/client/assets/index-DOOYG-7t.js +221 -0
- package/dist/client/assets/index-DOo00IKO.js +164 -0
- package/dist/client/assets/index-DT_WVyln.js +274 -0
- package/dist/client/assets/index-Dd5ywdn8.css +1 -0
- package/dist/client/assets/index-DevUtWzq.js +274 -0
- package/dist/client/assets/index-DnmW8VmS.js +274 -0
- package/dist/client/assets/index-Ndu6k3-t.css +1 -0
- package/dist/client/assets/index-WBV2EURP.js +284 -0
- package/dist/client/assets/index-lOuYsLDH.css +1 -0
- package/dist/client/assets/index-nMHvJQPa.css +1 -0
- package/dist/client/assets/index-s0F6GbJf.js +164 -0
- package/dist/client/assets/index-xf9QDxu1.css +1 -0
- package/dist/client/index.html +2 -2
- package/package.json +4 -1
- package/dist/client/assets/index-B5g8qgFW.css +0 -1
- package/dist/client/assets/index-BB9cuIlF.js +0 -111
- package/dist/client/assets/index-BH-ji2K7.js +0 -150
- package/dist/client/assets/index-BH4MtIeE.js +0 -150
- package/dist/client/assets/index-BIpQhd8p.js +0 -150
- package/dist/client/assets/index-BRJOTqhn.js +0 -130
- package/dist/client/assets/index-Bb8QmYLf.css +0 -1
- package/dist/client/assets/index-Bbi0p5WW.js +0 -150
- package/dist/client/assets/index-BdWkGSfZ.js +0 -130
- package/dist/client/assets/index-BnRqJ-Bb.js +0 -150
- package/dist/client/assets/index-BneJISnX.js +0 -150
- package/dist/client/assets/index-C9_QxP1g.css +0 -1
- package/dist/client/assets/index-CBjuhHfq.js +0 -150
- package/dist/client/assets/index-CEFmdeB7.css +0 -1
- package/dist/client/assets/index-CQpCDasO.js +0 -131
- package/dist/client/assets/index-CRUCeIYi.css +0 -1
- package/dist/client/assets/index-CUSGVUIj.js +0 -150
- package/dist/client/assets/index-CZJQ3vJi.js +0 -150
- package/dist/client/assets/index-CdshIoQY.css +0 -1
- package/dist/client/assets/index-Cne4pc0S.css +0 -1
- package/dist/client/assets/index-Cps9lJoI.css +0 -1
- package/dist/client/assets/index-Cs7mKzsY.css +0 -1
- package/dist/client/assets/index-D-bUCwC3.css +0 -1
- package/dist/client/assets/index-D11nArXR.css +0 -1
- package/dist/client/assets/index-D2DhQd-K.js +0 -51
- package/dist/client/assets/index-D3ju6tgw.css +0 -1
- package/dist/client/assets/index-DG2JRz0f.js +0 -150
- package/dist/client/assets/index-DO-UYUx0.js +0 -150
- package/dist/client/assets/index-DOb58Ii1.js +0 -111
- package/dist/client/assets/index-DVd7DS_W.css +0 -1
- package/dist/client/assets/index-DZNHUm4M.js +0 -130
- package/dist/client/assets/index-Di7zgczR.css +0 -1
- package/dist/client/assets/index-DlUCyHdA.css +0 -1
- package/dist/client/assets/index-FTflg87d.js +0 -130
- package/dist/client/assets/index-U5_kmGxX.js +0 -150
- package/dist/client/assets/index-_4EXPfyt.css +0 -1
- package/dist/client/assets/index-gow3pju2.css +0 -1
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
function J7(t,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const c in i)if(c!=="default"&&!(c in t)){const u=Object.getOwnPropertyDescriptor(i,c);u&&Object.defineProperty(t,c,u.get?u:{enumerable:!0,get:()=>i[c]})}}}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 c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const u of c)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function r(c){const u={};return c.integrity&&(u.integrity=c.integrity),c.referrerPolicy&&(u.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?u.credentials="include":c.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(c){if(c.ep)return;c.ep=!0;const u=r(c);fetch(c.href,u)}})();function Y3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var p1={exports:{}},lo={};/**
|
|
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 p5;function F7(){if(p5)return lo;p5=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,c,u){var d=null;if(u!==void 0&&(d=""+u),c.key!==void 0&&(d=""+c.key),"key"in c){u={};for(var h in c)h!=="key"&&(u[h]=c[h])}else u=c;return c=u.ref,{$$typeof:t,type:i,key:d,ref:c!==void 0?c:null,props:u}}return lo.Fragment=a,lo.jsx=r,lo.jsxs=r,lo}var h5;function W7(){return h5||(h5=1,p1.exports=F7()),p1.exports}var f=W7(),h1={exports:{}},ao={},g1={exports:{}},m1={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.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 g5;function I7(){return g5||(g5=1,(function(t){function a(A,B){var J=A.length;A.push(B);e:for(;0<J;){var ie=J-1>>>1,pe=A[ie];if(0<c(pe,B))A[ie]=B,A[J]=pe,J=ie;else break e}}function r(A){return A.length===0?null:A[0]}function i(A){if(A.length===0)return null;var B=A[0],J=A.pop();if(J!==B){A[0]=J;e:for(var ie=0,pe=A.length,R=pe>>>1;ie<R;){var q=2*(ie+1)-1,I=A[q],te=q+1,W=A[te];if(0>c(I,J))te<pe&&0>c(W,I)?(A[ie]=W,A[te]=J,ie=te):(A[ie]=I,A[q]=J,ie=q);else if(te<pe&&0>c(W,J))A[ie]=W,A[te]=J,ie=te;else break e}}return B}function c(A,B){var J=A.sortIndex-B.sortIndex;return J!==0?J:A.id-B.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var x=[],g=[],y=1,b=null,C=3,S=!1,j=!1,M=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function $(A){for(var B=r(g);B!==null;){if(B.callback===null)i(g);else if(B.startTime<=A)i(g),B.sortIndex=B.expirationTime,a(x,B);else break;B=r(g)}}function H(A){if(M=!1,$(A),!j)if(r(x)!==null)j=!0,K||(K=!0,ee());else{var B=r(g);B!==null&&Ce(H,B.startTime-A)}}var K=!1,Z=-1,ae=5,ce=-1;function X(){return E?!0:!(t.unstable_now()-ce<ae)}function P(){if(E=!1,K){var A=t.unstable_now();ce=A;var B=!0;try{e:{j=!1,M&&(M=!1,N(Z),Z=-1),S=!0;var J=C;try{t:{for($(A),b=r(x);b!==null&&!(b.expirationTime>A&&X());){var ie=b.callback;if(typeof ie=="function"){b.callback=null,C=b.priorityLevel;var pe=ie(b.expirationTime<=A);if(A=t.unstable_now(),typeof pe=="function"){b.callback=pe,$(A),B=!0;break t}b===r(x)&&i(x),$(A)}else i(x);b=r(x)}if(b!==null)B=!0;else{var R=r(g);R!==null&&Ce(H,R.startTime-A),B=!1}}break e}finally{b=null,C=J,S=!1}B=void 0}}finally{B?ee():K=!1}}}var ee;if(typeof O=="function")ee=function(){O(P)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,fe=xe.port2;xe.port1.onmessage=P,ee=function(){fe.postMessage(null)}}else ee=function(){T(P,0)};function Ce(A,B){Z=T(function(){A(t.unstable_now())},B)}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(A){A.callback=null},t.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<A?Math.floor(1e3/A):5},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_next=function(A){switch(C){case 1:case 2:case 3:var B=3;break;default:B=C}var J=C;C=B;try{return A()}finally{C=J}},t.unstable_requestPaint=function(){E=!0},t.unstable_runWithPriority=function(A,B){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var J=C;C=A;try{return B()}finally{C=J}},t.unstable_scheduleCallback=function(A,B,J){var ie=t.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ie+J:ie):J=ie,A){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=J+pe,A={id:y++,callback:B,priorityLevel:A,startTime:J,expirationTime:pe,sortIndex:-1},J>ie?(A.sortIndex=J,a(g,A),r(x)===null&&A===r(g)&&(M?(N(Z),Z=-1):M=!0,Ce(H,J-ie))):(A.sortIndex=pe,a(x,A),j||S||(j=!0,K||(K=!0,ee()))),A},t.unstable_shouldYield=X,t.unstable_wrapCallback=function(A){var B=C;return function(){var J=C;C=B;try{return A.apply(this,arguments)}finally{C=J}}}})(m1)),m1}var m5;function eg(){return m5||(m5=1,g1.exports=I7()),g1.exports}var x1={exports:{}},ve={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react.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 x5;function tg(){if(x5)return ve;x5=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function S(R){return R===null||typeof R!="object"?null:(R=C&&R[C]||R["@@iterator"],typeof R=="function"?R:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,E={};function T(R,q,I){this.props=R,this.context=q,this.refs=E,this.updater=I||j}T.prototype.isReactComponent={},T.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")},T.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function N(){}N.prototype=T.prototype;function O(R,q,I){this.props=R,this.context=q,this.refs=E,this.updater=I||j}var $=O.prototype=new N;$.constructor=O,M($,T.prototype),$.isPureReactComponent=!0;var H=Array.isArray;function K(){}var Z={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function ce(R,q,I){var te=I.ref;return{$$typeof:t,type:R,key:q,ref:te!==void 0?te:null,props:I}}function X(R,q){return ce(R.type,q,R.props)}function P(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function ee(R){var q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(I){return q[I]})}var xe=/\/+/g;function fe(R,q){return typeof R=="object"&&R!==null&&R.key!=null?ee(""+R.key):q.toString(36)}function Ce(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(K,K):(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 A(R,q,I,te,W){var le=typeof R;(le==="undefined"||le==="boolean")&&(R=null);var de=!1;if(R===null)de=!0;else switch(le){case"bigint":case"string":case"number":de=!0;break;case"object":switch(R.$$typeof){case t:case a:de=!0;break;case y:return de=R._init,A(de(R._payload),q,I,te,W)}}if(de)return W=W(R),de=te===""?"."+fe(R,0):te,H(W)?(I="",de!=null&&(I=de.replace(xe,"$&/")+"/"),A(W,q,I,"",function(on){return on})):W!=null&&(P(W)&&(W=X(W,I+(W.key==null||R&&R.key===W.key?"":(""+W.key).replace(xe,"$&/")+"/")+de)),q.push(W)),1;de=0;var Ve=te===""?".":te+":";if(H(R))for(var ke=0;ke<R.length;ke++)te=R[ke],le=Ve+fe(te,ke),de+=A(te,q,I,le,W);else if(ke=S(R),typeof ke=="function")for(R=ke.call(R),ke=0;!(te=R.next()).done;)te=te.value,le=Ve+fe(te,ke++),de+=A(te,q,I,le,W);else if(le==="object"){if(typeof R.then=="function")return A(Ce(R),q,I,te,W);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 de}function B(R,q,I){if(R==null)return R;var te=[],W=0;return A(R,te,"","",function(le){return q.call(I,le,W++)}),te}function J(R){if(R._status===-1){var q=R._result;q=q(),q.then(function(I){(R._status===0||R._status===-1)&&(R._status=1,R._result=I)},function(I){(R._status===0||R._status===-1)&&(R._status=2,R._result=I)}),R._status===-1&&(R._status=0,R._result=q)}if(R._status===1)return R._result.default;throw R._result}var ie=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)},pe={map:B,forEach:function(R,q,I){B(R,function(){q.apply(this,arguments)},I)},count:function(R){var q=0;return B(R,function(){q++}),q},toArray:function(R){return B(R,function(q){return q})||[]},only:function(R){if(!P(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return ve.Activity=b,ve.Children=pe,ve.Component=T,ve.Fragment=r,ve.Profiler=c,ve.PureComponent=O,ve.StrictMode=i,ve.Suspense=x,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,ve.__COMPILER_RUNTIME={__proto__:null,c:function(R){return Z.H.useMemoCache(R)}},ve.cache=function(R){return function(){return R.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(R,q,I){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var te=M({},R.props),W=R.key;if(q!=null)for(le in q.key!==void 0&&(W=""+q.key),q)!ae.call(q,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&q.ref===void 0||(te[le]=q[le]);var le=arguments.length-2;if(le===1)te.children=I;else if(1<le){for(var de=Array(le),Ve=0;Ve<le;Ve++)de[Ve]=arguments[Ve+2];te.children=de}return ce(R.type,W,te)},ve.createContext=function(R){return R={$$typeof:d,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:u,_context:R},R},ve.createElement=function(R,q,I){var te,W={},le=null;if(q!=null)for(te in q.key!==void 0&&(le=""+q.key),q)ae.call(q,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(W[te]=q[te]);var de=arguments.length-2;if(de===1)W.children=I;else if(1<de){for(var Ve=Array(de),ke=0;ke<de;ke++)Ve[ke]=arguments[ke+2];W.children=Ve}if(R&&R.defaultProps)for(te in de=R.defaultProps,de)W[te]===void 0&&(W[te]=de[te]);return ce(R,le,W)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(R){return{$$typeof:h,render:R}},ve.isValidElement=P,ve.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:J}},ve.memo=function(R,q){return{$$typeof:g,type:R,compare:q===void 0?null:q}},ve.startTransition=function(R){var q=Z.T,I={};Z.T=I;try{var te=R(),W=Z.S;W!==null&&W(I,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(K,ie)}catch(le){ie(le)}finally{q!==null&&I.types!==null&&(q.types=I.types),Z.T=q}},ve.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},ve.use=function(R){return Z.H.use(R)},ve.useActionState=function(R,q,I){return Z.H.useActionState(R,q,I)},ve.useCallback=function(R,q){return Z.H.useCallback(R,q)},ve.useContext=function(R){return Z.H.useContext(R)},ve.useDebugValue=function(){},ve.useDeferredValue=function(R,q){return Z.H.useDeferredValue(R,q)},ve.useEffect=function(R,q){return Z.H.useEffect(R,q)},ve.useEffectEvent=function(R){return Z.H.useEffectEvent(R)},ve.useId=function(){return Z.H.useId()},ve.useImperativeHandle=function(R,q,I){return Z.H.useImperativeHandle(R,q,I)},ve.useInsertionEffect=function(R,q){return Z.H.useInsertionEffect(R,q)},ve.useLayoutEffect=function(R,q){return Z.H.useLayoutEffect(R,q)},ve.useMemo=function(R,q){return Z.H.useMemo(R,q)},ve.useOptimistic=function(R,q){return Z.H.useOptimistic(R,q)},ve.useReducer=function(R,q,I){return Z.H.useReducer(R,q,I)},ve.useRef=function(R){return Z.H.useRef(R)},ve.useState=function(R){return Z.H.useState(R)},ve.useSyncExternalStore=function(R,q,I){return Z.H.useSyncExternalStore(R,q,I)},ve.useTransition=function(){return Z.H.useTransition()},ve.version="19.2.4",ve}var v5;function L0(){return v5||(v5=1,x1.exports=tg()),x1.exports}var v1={exports:{}},ht={};/**
|
|
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 y5;function ng(){if(y5)return ht;y5=1;var t=L0();function a(x){var g="https://react.dev/errors/"+x;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+x+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function u(x,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:x,containerInfo:g,implementation:y}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(x,g){if(x==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,ht.createPortal=function(x,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return u(x,g,null,y)},ht.flushSync=function(x){var g=d.T,y=i.p;try{if(d.T=null,i.p=2,x)return x()}finally{d.T=g,i.p=y,i.d.f()}},ht.preconnect=function(x,g){typeof x=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(x,g))},ht.prefetchDNS=function(x){typeof x=="string"&&i.d.D(x)},ht.preinit=function(x,g){if(typeof x=="string"&&g&&typeof g.as=="string"){var y=g.as,b=h(y,g.crossOrigin),C=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?i.d.S(x,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:S}):y==="script"&&i.d.X(x,{crossOrigin:b,integrity:C,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ht.preinitModule=function(x,g){if(typeof x=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);i.d.M(x,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(x)},ht.preload=function(x,g){if(typeof x=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=h(y,g.crossOrigin);i.d.L(x,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ht.preloadModule=function(x,g){if(typeof x=="string")if(g){var y=h(g.as,g.crossOrigin);i.d.m(x,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(x)},ht.requestFormReset=function(x){i.d.r(x)},ht.unstable_batchedUpdates=function(x,g){return x(g)},ht.useFormState=function(x,g,y){return d.H.useFormState(x,g,y)},ht.useFormStatus=function(){return d.H.useHostTransitionStatus()},ht.version="19.2.4",ht}var b5;function X3(){if(b5)return v1.exports;b5=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(),v1.exports=ng(),v1.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 C5;function lg(){if(C5)return ao;C5=1;var t=eg(),a=L0(),r=X3();function i(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l])}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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function d(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 x(e){if(u(e)!==e)throw Error(i(188))}function g(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(i(188));return n!==e?null:e}for(var l=e,o=n;;){var s=l.return;if(s===null)break;var p=s.alternate;if(p===null){if(o=s.return,o!==null){l=o;continue}break}if(s.child===p.child){for(p=s.child;p;){if(p===l)return x(s),e;if(p===o)return x(s),n;p=p.sibling}throw Error(i(188))}if(l.return!==o.return)l=s,o=p;else{for(var v=!1,w=s.child;w;){if(w===l){v=!0,l=s,o=p;break}if(w===o){v=!0,o=s,l=p;break}w=w.sibling}if(!v){for(w=p.child;w;){if(w===l){v=!0,l=p,o=s;break}if(w===o){v=!0,o=p,l=s;break}w=w.sibling}if(!v)throw Error(i(189))}}if(l.alternate!==o)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var b=Object.assign,C=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),O=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case T:return"Profiler";case E:return"StrictMode";case H:return"Suspense";case K:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case O:return e.displayName||"Context";case N:return(e._context.displayName||"Context")+".Consumer";case $:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return n=e.displayName||null,n!==null?n:fe(e.type)||"Memo";case ae:n=e._payload,e=e._init;try{return fe(e(n))}catch{}}return null}var Ce=Array.isArray,A=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ie=[],pe=-1;function R(e){return{current:e}}function q(e){0>pe||(e.current=ie[pe],ie[pe]=null,pe--)}function I(e,n){pe++,ie[pe]=e.current,e.current=n}var te=R(null),W=R(null),le=R(null),de=R(null);function Ve(e,n){switch(I(le,n),I(W,e),I(te,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?V2(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=V2(n),e=D2(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(te),I(te,e)}function ke(){q(te),q(W),q(le)}function on(e){e.memoizedState!==null&&I(de,e);var n=te.current,l=D2(n,e.type);n!==l&&(I(W,e),I(te,l))}function wn(e){W.current===e&&(q(te),q(W)),de.current===e&&(q(de),Ir._currentValue=J)}var Gn,Wt;function vt(e){if(Gn===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);Gn=n&&n[1]||"",Wt=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Gn+e+Wt}var Qn=!1;function Ol(e,n){if(!e||Qn)return"";Qn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(U){var k=U}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(U){k=U}e.call(Q.prototype)}}else{try{throw Error()}catch(U){k=U}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(U){if(U&&k&&typeof U.stack=="string")return[U.stack,k.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=o.DetermineComponentFrameRoot(),v=p[0],w=p[1];if(v&&w){var _=v.split(`
|
|
44
|
+
`),D=w.split(`
|
|
45
|
+
`);for(s=o=0;o<_.length&&!_[o].includes("DetermineComponentFrameRoot");)o++;for(;s<D.length&&!D[s].includes("DetermineComponentFrameRoot");)s++;if(o===_.length||s===D.length)for(o=_.length-1,s=D.length-1;1<=o&&0<=s&&_[o]!==D[s];)s--;for(;1<=o&&0<=s;o--,s--)if(_[o]!==D[s]){if(o!==1||s!==1)do if(o--,s--,0>s||_[o]!==D[s]){var Y=`
|
|
46
|
+
`+_[o].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=o&&0<=s);break}}}finally{Qn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?vt(l):""}function ur(e,n){switch(e.tag){case 26:case 27:case 5:return vt(e.type);case 16:return vt("Lazy");case 13:return e.child!==n&&n!==null?vt("Suspense Fallback"):vt("Suspense");case 19:return vt("SuspenseList");case 0:case 15:return Ol(e.type,!1);case 11:return Ol(e.type.render,!1);case 1:return Ol(e.type,!0);case 31:return vt("Activity");default:return""}}function la(e){try{var n="",l=null;do n+=ur(e,l),l=e,e=e.return;while(e);return n}catch(o){return`
|
|
47
|
+
Error generating stack: `+o.message+`
|
|
48
|
+
`+o.stack}}var cn=Object.prototype.hasOwnProperty,aa=t.unstable_scheduleCallback,me=t.unstable_cancelCallback,yt=t.unstable_shouldYield,Al=t.unstable_requestPaint,it=t.unstable_now,Nh=t.unstable_getCurrentPriorityLevel,hf=t.unstable_ImmediatePriority,gf=t.unstable_UserBlockingPriority,_o=t.unstable_NormalPriority,Lh=t.unstable_LowPriority,mf=t.unstable_IdlePriority,Oh=t.log,Ah=t.unstable_setDisableYieldValue,fr=null,_t=null;function Kn(e){if(typeof Oh=="function"&&Ah(e),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(fr,e)}catch{}}var Rt=Math.clz32?Math.clz32:Vh,zh=Math.log,Hh=Math.LN2;function Vh(e){return e>>>=0,e===0?32:31-(zh(e)/Hh|0)|0}var Ro=256,No=262144,Lo=4194304;function zl(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 Oo(e,n,l){var o=e.pendingLanes;if(o===0)return 0;var s=0,p=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var w=o&134217727;return w!==0?(o=w&~p,o!==0?s=zl(o):(v&=w,v!==0?s=zl(v):l||(l=w&~e,l!==0&&(s=zl(l))))):(w=o&~p,w!==0?s=zl(w):v!==0?s=zl(v):l||(l=o&~e,l!==0&&(s=zl(l)))),s===0?0:n!==0&&n!==s&&(n&p)===0&&(p=s&-s,l=n&-n,p>=l||p===32&&(l&4194048)!==0)?n:s}function dr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Dh(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 xf(){var e=Lo;return Lo<<=1,(Lo&62914560)===0&&(Lo=4194304),e}function ts(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function pr(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function kh(e,n,l,o,s,p){var v=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var w=e.entanglements,_=e.expirationTimes,D=e.hiddenUpdates;for(l=v&~l;0<l;){var Y=31-Rt(l),Q=1<<Y;w[Y]=0,_[Y]=-1;var k=D[Y];if(k!==null)for(D[Y]=null,Y=0;Y<k.length;Y++){var U=k[Y];U!==null&&(U.lane&=-536870913)}l&=~Q}o!==0&&vf(e,o,0),p!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=p&~(v&~n))}function vf(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-Rt(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|l&261930}function yf(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var o=31-Rt(l),s=1<<o;s&n|e[o]&n&&(e[o]|=n),l&=~s}}function bf(e,n){var l=n&-n;return l=(l&42)!==0?1:ns(l),(l&(e.suspendedLanes|n))!==0?0:l}function ns(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 ls(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Cf(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:o5(e.type))}function wf(e,n){var l=B.p;try{return B.p=e,n()}finally{B.p=l}}var Pn=Math.random().toString(36).slice(2),ct="__reactFiber$"+Pn,bt="__reactProps$"+Pn,ra="__reactContainer$"+Pn,as="__reactEvents$"+Pn,$h="__reactListeners$"+Pn,Bh="__reactHandles$"+Pn,Sf="__reactResources$"+Pn,hr="__reactMarker$"+Pn;function rs(e){delete e[ct],delete e[bt],delete e[as],delete e[$h],delete e[Bh]}function oa(e){var n=e[ct];if(n)return n;for(var l=e.parentNode;l;){if(n=l[ra]||l[ct]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=X2(e);e!==null;){if(l=e[ct])return l;e=X2(e)}return n}e=l,l=e.parentNode}return null}function ia(e){if(e=e[ct]||e[ra]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function gr(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function ca(e){var n=e[Sf];return n||(n=e[Sf]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function at(e){e[hr]=!0}var jf=new Set,Mf={};function Hl(e,n){sa(e,n),sa(e+"Capture",n)}function sa(e,n){for(Mf[e]=n,e=0;e<n.length;e++)jf.add(n[e])}var Uh=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]*$"),Ef={},Tf={};function Zh(e){return cn.call(Tf,e)?!0:cn.call(Ef,e)?!1:Uh.test(e)?Tf[e]=!0:(Ef[e]=!0,!1)}function Ao(e,n,l){if(Zh(n))if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+l)}}function zo(e,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+l)}}function Sn(e,n,l,o){if(o===null)e.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(n,l,""+o)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _f(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Yh(e,n,l){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var s=o.get,p=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return s.call(this)},set:function(v){l=""+v,p.call(this,v)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function os(e){if(!e._valueTracker){var n=_f(e)?"checked":"value";e._valueTracker=Yh(e,n,""+e[n])}}function Rf(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),o="";return e&&(o=_f(e)?e.checked?"true":"false":e.value),e=o,e!==l?(n.setValue(e),!0):!1}function Ho(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 Xh=/[\n"\\]/g;function Zt(e){return e.replace(Xh,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function is(e,n,l,o,s,p,v,w){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),n!=null?v==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Ut(n)):e.value!==""+Ut(n)&&(e.value=""+Ut(n)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),n!=null?cs(e,v,Ut(n)):l!=null?cs(e,v,Ut(l)):o!=null&&e.removeAttribute("value"),s==null&&p!=null&&(e.defaultChecked=!!p),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+Ut(w):e.removeAttribute("name")}function Nf(e,n,l,o,s,p,v,w){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),n!=null||l!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){os(e);return}l=l!=null?""+Ut(l):"",n=n!=null?""+Ut(n):l,w||n===e.value||(e.value=n),e.defaultValue=n}o=o??s,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=w?e.checked:!!o,e.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),os(e)}function cs(e,n,l){n==="number"&&Ho(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ua(e,n,l,o){if(e=e.options,n){n={};for(var s=0;s<l.length;s++)n["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=n.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&o&&(e[l].defaultSelected=!0)}else{for(l=""+Ut(l),n=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,o&&(e[s].defaultSelected=!0);return}n!==null||e[s].disabled||(n=e[s])}n!==null&&(n.selected=!0)}}function Lf(e,n,l){if(n!=null&&(n=""+Ut(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+Ut(l):""}function Of(e,n,l,o){if(n==null){if(o!=null){if(l!=null)throw Error(i(92));if(Ce(o)){if(1<o.length)throw Error(i(93));o=o[0]}l=o}l==null&&(l=""),n=l}l=Ut(n),e.defaultValue=l,o=e.textContent,o===l&&o!==""&&o!==null&&(e.value=o),os(e)}function fa(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var qh=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 Af(e,n,l){var o=n.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,l):typeof l!="number"||l===0||qh.has(n)?n==="float"?e.cssFloat=l:e[n]=(""+l).trim():e[n]=l+"px"}function zf(e,n,l){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var s in n)o=n[s],n.hasOwnProperty(s)&&l[s]!==o&&Af(e,s,o)}else for(var p in n)n.hasOwnProperty(p)&&Af(e,p,n[p])}function ss(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 Gh=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"]]),Qh=/^[\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 Vo(e){return Qh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function jn(){}var us=null;function fs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var da=null,pa=null;function Hf(e){var n=ia(e);if(n&&(e=n.stateNode)){var l=e[bt]||null;e:switch(e=n.stateNode,n.type){case"input":if(is(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Zt(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var o=l[n];if(o!==e&&o.form===e.form){var s=o[bt]||null;if(!s)throw Error(i(90));is(o,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(n=0;n<l.length;n++)o=l[n],o.form===e.form&&Rf(o)}break e;case"textarea":Lf(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&ua(e,!!l.multiple,n,!1)}}}var ds=!1;function Vf(e,n,l){if(ds)return e(n,l);ds=!0;try{var o=e(n);return o}finally{if(ds=!1,(da!==null||pa!==null)&&(Si(),da&&(n=da,e=pa,pa=da=null,Hf(n),e)))for(n=0;n<e.length;n++)Hf(e[n])}}function mr(e,n){var l=e.stateNode;if(l===null)return null;var o=l[bt]||null;if(o===null)return null;l=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(i(231,n,typeof l));return l}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ps=!1;if(Mn)try{var xr={};Object.defineProperty(xr,"passive",{get:function(){ps=!0}}),window.addEventListener("test",xr,xr),window.removeEventListener("test",xr,xr)}catch{ps=!1}var Jn=null,hs=null,Do=null;function Df(){if(Do)return Do;var e,n=hs,l=n.length,o,s="value"in Jn?Jn.value:Jn.textContent,p=s.length;for(e=0;e<l&&n[e]===s[e];e++);var v=l-e;for(o=1;o<=v&&n[l-o]===s[p-o];o++);return Do=s.slice(e,1<o?1-o:void 0)}function ko(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 $o(){return!0}function kf(){return!1}function Ct(e){function n(l,o,s,p,v){this._reactName=l,this._targetInst=s,this.type=o,this.nativeEvent=p,this.target=v,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(l=e[w],this[w]=l?l(p):p[w]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?$o:kf,this.isPropagationStopped=kf,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=$o)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=$o)},persist:function(){},isPersistent:$o}),n}var Vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bo=Ct(Vl),vr=b({},Vl,{view:0,detail:0}),Kh=Ct(vr),gs,ms,yr,Uo=b({},vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vs,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!==yr&&(yr&&e.type==="mousemove"?(gs=e.screenX-yr.screenX,ms=e.screenY-yr.screenY):ms=gs=0,yr=e),gs)},movementY:function(e){return"movementY"in e?e.movementY:ms}}),$f=Ct(Uo),Ph=b({},Uo,{dataTransfer:0}),Jh=Ct(Ph),Fh=b({},vr,{relatedTarget:0}),xs=Ct(Fh),Wh=b({},Vl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ih=Ct(Wh),e8=b({},Vl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),t8=Ct(e8),n8=b({},Vl,{data:0}),Bf=Ct(n8),l8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a8={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"},r8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function o8(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=r8[e])?!!n[e]:!1}function vs(){return o8}var i8=b({},vr,{key:function(e){if(e.key){var n=l8[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ko(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?a8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vs,charCode:function(e){return e.type==="keypress"?ko(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ko(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),c8=Ct(i8),s8=b({},Uo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uf=Ct(s8),u8=b({},vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vs}),f8=Ct(u8),d8=b({},Vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),p8=Ct(d8),h8=b({},Uo,{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}),g8=Ct(h8),m8=b({},Vl,{newState:0,oldState:0}),x8=Ct(m8),v8=[9,13,27,32],ys=Mn&&"CompositionEvent"in window,br=null;Mn&&"documentMode"in document&&(br=document.documentMode);var y8=Mn&&"TextEvent"in window&&!br,Zf=Mn&&(!ys||br&&8<br&&11>=br),Yf=" ",Xf=!1;function qf(e,n){switch(e){case"keyup":return v8.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ha=!1;function b8(e,n){switch(e){case"compositionend":return Gf(n);case"keypress":return n.which!==32?null:(Xf=!0,Yf);case"textInput":return e=n.data,e===Yf&&Xf?null:e;default:return null}}function C8(e,n){if(ha)return e==="compositionend"||!ys&&qf(e,n)?(e=Df(),Do=hs=Jn=null,ha=!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 Zf&&n.locale!=="ko"?null:n.data;default:return null}}var w8={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 Qf(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!w8[e.type]:n==="textarea"}function Kf(e,n,l,o){da?pa?pa.push(o):pa=[o]:da=o,n=Ni(n,"onChange"),0<n.length&&(l=new Bo("onChange","change",null,l,o),e.push({event:l,listeners:n}))}var Cr=null,wr=null;function S8(e){N2(e,0)}function Zo(e){var n=gr(e);if(Rf(n))return e}function Pf(e,n){if(e==="change")return n}var Jf=!1;if(Mn){var bs;if(Mn){var Cs="oninput"in document;if(!Cs){var Ff=document.createElement("div");Ff.setAttribute("oninput","return;"),Cs=typeof Ff.oninput=="function"}bs=Cs}else bs=!1;Jf=bs&&(!document.documentMode||9<document.documentMode)}function Wf(){Cr&&(Cr.detachEvent("onpropertychange",If),wr=Cr=null)}function If(e){if(e.propertyName==="value"&&Zo(wr)){var n=[];Kf(n,wr,e,fs(e)),Vf(S8,n)}}function j8(e,n,l){e==="focusin"?(Wf(),Cr=n,wr=l,Cr.attachEvent("onpropertychange",If)):e==="focusout"&&Wf()}function M8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zo(wr)}function E8(e,n){if(e==="click")return Zo(n)}function T8(e,n){if(e==="input"||e==="change")return Zo(n)}function _8(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Nt=typeof Object.is=="function"?Object.is:_8;function Sr(e,n){if(Nt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),o=Object.keys(n);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var s=l[o];if(!cn.call(n,s)||!Nt(e[s],n[s]))return!1}return!0}function ed(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function td(e,n){var l=ed(e);e=0;for(var o;l;){if(l.nodeType===3){if(o=e+l.textContent.length,e<=n&&o>=n)return{node:l,offset:n-e};e=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ed(l)}}function nd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?nd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ld(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ho(e.document);n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=Ho(e.document)}return n}function ws(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 R8=Mn&&"documentMode"in document&&11>=document.documentMode,ga=null,Ss=null,jr=null,js=!1;function ad(e,n,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;js||ga==null||ga!==Ho(o)||(o=ga,"selectionStart"in o&&ws(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),jr&&Sr(jr,o)||(jr=o,o=Ni(Ss,"onSelect"),0<o.length&&(n=new Bo("onSelect","select",null,n,l),e.push({event:n,listeners:o}),n.target=ga)))}function Dl(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var ma={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionrun:Dl("Transition","TransitionRun"),transitionstart:Dl("Transition","TransitionStart"),transitioncancel:Dl("Transition","TransitionCancel"),transitionend:Dl("Transition","TransitionEnd")},Ms={},rd={};Mn&&(rd=document.createElement("div").style,"AnimationEvent"in window||(delete ma.animationend.animation,delete ma.animationiteration.animation,delete ma.animationstart.animation),"TransitionEvent"in window||delete ma.transitionend.transition);function kl(e){if(Ms[e])return Ms[e];if(!ma[e])return e;var n=ma[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in rd)return Ms[e]=n[l];return e}var od=kl("animationend"),id=kl("animationiteration"),cd=kl("animationstart"),N8=kl("transitionrun"),L8=kl("transitionstart"),O8=kl("transitioncancel"),sd=kl("transitionend"),ud=new Map,Es="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(" ");Es.push("scrollEnd");function It(e,n){ud.set(e,n),Hl(n,[e])}var Yo=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)},Yt=[],xa=0,Ts=0;function Xo(){for(var e=xa,n=Ts=xa=0;n<e;){var l=Yt[n];Yt[n++]=null;var o=Yt[n];Yt[n++]=null;var s=Yt[n];Yt[n++]=null;var p=Yt[n];if(Yt[n++]=null,o!==null&&s!==null){var v=o.pending;v===null?s.next=s:(s.next=v.next,v.next=s),o.pending=s}p!==0&&fd(l,s,p)}}function qo(e,n,l,o){Yt[xa++]=e,Yt[xa++]=n,Yt[xa++]=l,Yt[xa++]=o,Ts|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function _s(e,n,l,o){return qo(e,n,l,o),Go(e)}function $l(e,n){return qo(e,null,null,n),Go(e)}function fd(e,n,l){e.lanes|=l;var o=e.alternate;o!==null&&(o.lanes|=l);for(var s=!1,p=e.return;p!==null;)p.childLanes|=l,o=p.alternate,o!==null&&(o.childLanes|=l),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(s=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,s&&n!==null&&(s=31-Rt(l),e=p.hiddenUpdates,o=e[s],o===null?e[s]=[n]:o.push(n),n.lane=l|536870912),p):null}function Go(e){if(50<Gr)throw Gr=0,Du=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var va={};function A8(e,n,l,o){this.tag=e,this.key=l,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,n,l,o){return new A8(e,n,l,o)}function Rs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,n){var l=e.alternate;return l===null?(l=Lt(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function dd(e,n){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,n=l.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Qo(e,n,l,o,s,p){var v=0;if(o=e,typeof e=="function")Rs(e)&&(v=1);else if(typeof e=="string")v=k7(e,l,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Lt(31,l,n,s),e.elementType=ce,e.lanes=p,e;case M:return Bl(l.children,s,p,n);case E:v=8,s|=24;break;case T:return e=Lt(12,l,n,s|2),e.elementType=T,e.lanes=p,e;case H:return e=Lt(13,l,n,s),e.elementType=H,e.lanes=p,e;case K:return e=Lt(19,l,n,s),e.elementType=K,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:v=10;break e;case N:v=9;break e;case $:v=11;break e;case Z:v=14;break e;case ae:v=16,o=null;break e}v=29,l=Error(i(130,e===null?"null":typeof e,"")),o=null}return n=Lt(v,l,n,s),n.elementType=e,n.type=o,n.lanes=p,n}function Bl(e,n,l,o){return e=Lt(7,e,o,n),e.lanes=l,e}function Ns(e,n,l){return e=Lt(6,e,null,n),e.lanes=l,e}function pd(e){var n=Lt(18,null,null,0);return n.stateNode=e,n}function Ls(e,n,l){return n=Lt(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var hd=new WeakMap;function Xt(e,n){if(typeof e=="object"&&e!==null){var l=hd.get(e);return l!==void 0?l:(n={value:e,source:n,stack:la(n)},hd.set(e,n),n)}return{value:e,source:n,stack:la(n)}}var ya=[],ba=0,Ko=null,Mr=0,qt=[],Gt=0,Fn=null,sn=1,un="";function Tn(e,n){ya[ba++]=Mr,ya[ba++]=Ko,Ko=e,Mr=n}function gd(e,n,l){qt[Gt++]=sn,qt[Gt++]=un,qt[Gt++]=Fn,Fn=e;var o=sn;e=un;var s=32-Rt(o)-1;o&=~(1<<s),l+=1;var p=32-Rt(n)+s;if(30<p){var v=s-s%5;p=(o&(1<<v)-1).toString(32),o>>=v,s-=v,sn=1<<32-Rt(n)+s|l<<s|o,un=p+e}else sn=1<<p|l<<s|o,un=e}function Os(e){e.return!==null&&(Tn(e,1),gd(e,1,0))}function As(e){for(;e===Ko;)Ko=ya[--ba],ya[ba]=null,Mr=ya[--ba],ya[ba]=null;for(;e===Fn;)Fn=qt[--Gt],qt[Gt]=null,un=qt[--Gt],qt[Gt]=null,sn=qt[--Gt],qt[Gt]=null}function md(e,n){qt[Gt++]=sn,qt[Gt++]=un,qt[Gt++]=Fn,sn=n.id,un=n.overflow,Fn=e}var st=null,$e=null,Ee=!1,Wn=null,Qt=!1,zs=Error(i(519));function In(e){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Er(Xt(n,e)),zs}function xd(e){var n=e.stateNode,l=e.type,o=e.memoizedProps;switch(n[ct]=e,n[bt]=o,l){case"dialog":Se("cancel",n),Se("close",n);break;case"iframe":case"object":case"embed":Se("load",n);break;case"video":case"audio":for(l=0;l<Kr.length;l++)Se(Kr[l],n);break;case"source":Se("error",n);break;case"img":case"image":case"link":Se("error",n),Se("load",n);break;case"details":Se("toggle",n);break;case"input":Se("invalid",n),Nf(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Se("invalid",n);break;case"textarea":Se("invalid",n),Of(n,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||o.suppressHydrationWarning===!0||z2(n.textContent,l)?(o.popover!=null&&(Se("beforetoggle",n),Se("toggle",n)),o.onScroll!=null&&Se("scroll",n),o.onScrollEnd!=null&&Se("scrollend",n),o.onClick!=null&&(n.onclick=jn),n=!0):n=!1,n||In(e,!0)}function vd(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:st=st.return}}function Ca(e){if(e!==st)return!1;if(!Ee)return vd(e),Ee=!0,!1;var n=e.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Wu(e.type,e.memoizedProps)),l=!l),l&&$e&&In(e),vd(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));$e=Y2(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));$e=Y2(e)}else n===27?(n=$e,pl(e.type)?(e=l1,l1=null,$e=e):$e=n):$e=st?Pt(e.stateNode.nextSibling):null;return!0}function Ul(){$e=st=null,Ee=!1}function Hs(){var e=Wn;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),Wn=null),e}function Er(e){Wn===null?Wn=[e]:Wn.push(e)}var Vs=R(null),Zl=null,_n=null;function el(e,n,l){I(Vs,n._currentValue),n._currentValue=l}function Rn(e){e._currentValue=Vs.current,q(Vs)}function Ds(e,n,l){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===l)break;e=e.return}}function ks(e,n,l,o){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var p=s.dependencies;if(p!==null){var v=s.child;p=p.firstContext;e:for(;p!==null;){var w=p;p=s;for(var _=0;_<n.length;_++)if(w.context===n[_]){p.lanes|=l,w=p.alternate,w!==null&&(w.lanes|=l),Ds(p.return,l,e),o||(v=null);break e}p=w.next}}else if(s.tag===18){if(v=s.return,v===null)throw Error(i(341));v.lanes|=l,p=v.alternate,p!==null&&(p.lanes|=l),Ds(v,l,e),v=null}else v=s.child;if(v!==null)v.return=s;else for(v=s;v!==null;){if(v===e){v=null;break}if(s=v.sibling,s!==null){s.return=v.return,v=s;break}v=v.return}s=v}}function wa(e,n,l,o){e=null;for(var s=n,p=!1;s!==null;){if(!p){if((s.flags&524288)!==0)p=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var v=s.alternate;if(v===null)throw Error(i(387));if(v=v.memoizedProps,v!==null){var w=s.type;Nt(s.pendingProps.value,v.value)||(e!==null?e.push(w):e=[w])}}else if(s===de.current){if(v=s.alternate,v===null)throw Error(i(387));v.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ir):e=[Ir])}s=s.return}e!==null&&ks(n,e,l,o),n.flags|=262144}function Po(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yl(e){Zl=e,_n=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return yd(Zl,e)}function Jo(e,n){return Zl===null&&Yl(e),yd(e,n)}function yd(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},_n===null){if(e===null)throw Error(i(308));_n=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else _n=_n.next=n;return l}var z8=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(l,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(l){return l()})}},H8=t.unstable_scheduleCallback,V8=t.unstable_NormalPriority,Fe={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $s(){return{controller:new z8,data:new Map,refCount:0}}function Tr(e){e.refCount--,e.refCount===0&&H8(V8,function(){e.controller.abort()})}var _r=null,Bs=0,Sa=0,ja=null;function D8(e,n){if(_r===null){var l=_r=[];Bs=0,Sa=Yu(),ja={status:"pending",value:void 0,then:function(o){l.push(o)}}}return Bs++,n.then(bd,bd),n}function bd(){if(--Bs===0&&_r!==null){ja!==null&&(ja.status="fulfilled");var e=_r;_r=null,Sa=0,ja=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function k8(e,n){var l=[],o={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var s=0;s<l.length;s++)(0,l[s])(n)},function(s){for(o.status="rejected",o.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),o}var Cd=A.S;A.S=function(e,n){a2=it(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&D8(e,n),Cd!==null&&Cd(e,n)};var Xl=R(null);function Us(){var e=Xl.current;return e!==null?e:De.pooledCache}function Fo(e,n){n===null?I(Xl,Xl.current):I(Xl,n.pool)}function wd(){var e=Us();return e===null?null:{parent:Fe._currentValue,pool:e}}var Ma=Error(i(460)),Zs=Error(i(474)),Wo=Error(i(542)),Io={then:function(){}};function Sd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jd(e,n,l){switch(l=e[l],l===void 0?e.push(n):l!==n&&(n.then(jn,jn),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ed(e),e;default:if(typeof n.status=="string")n.then(jn,jn);else{if(e=De,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var s=n;s.status="fulfilled",s.value=o}},function(o){if(n.status==="pending"){var s=n;s.status="rejected",s.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Ed(e),e}throw Gl=n,Ma}}function ql(e){try{var n=e._init;return n(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Gl=l,Ma):l}}var Gl=null;function Md(){if(Gl===null)throw Error(i(459));var e=Gl;return Gl=null,e}function Ed(e){if(e===Ma||e===Wo)throw Error(i(483))}var Ea=null,Rr=0;function ei(e){var n=Rr;return Rr+=1,Ea===null&&(Ea=[]),jd(Ea,e,n)}function Nr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function ti(e,n){throw n.$$typeof===C?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Td(e){function n(z,L){if(e){var V=z.deletions;V===null?(z.deletions=[L],z.flags|=16):V.push(L)}}function l(z,L){if(!e)return null;for(;L!==null;)n(z,L),L=L.sibling;return null}function o(z){for(var L=new Map;z!==null;)z.key!==null?L.set(z.key,z):L.set(z.index,z),z=z.sibling;return L}function s(z,L){return z=En(z,L),z.index=0,z.sibling=null,z}function p(z,L,V){return z.index=V,e?(V=z.alternate,V!==null?(V=V.index,V<L?(z.flags|=67108866,L):V):(z.flags|=67108866,L)):(z.flags|=1048576,L)}function v(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function w(z,L,V,G){return L===null||L.tag!==6?(L=Ns(V,z.mode,G),L.return=z,L):(L=s(L,V),L.return=z,L)}function _(z,L,V,G){var ue=V.type;return ue===M?Y(z,L,V.props.children,G,V.key):L!==null&&(L.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ae&&ql(ue)===L.type)?(L=s(L,V.props),Nr(L,V),L.return=z,L):(L=Qo(V.type,V.key,V.props,null,z.mode,G),Nr(L,V),L.return=z,L)}function D(z,L,V,G){return L===null||L.tag!==4||L.stateNode.containerInfo!==V.containerInfo||L.stateNode.implementation!==V.implementation?(L=Ls(V,z.mode,G),L.return=z,L):(L=s(L,V.children||[]),L.return=z,L)}function Y(z,L,V,G,ue){return L===null||L.tag!==7?(L=Bl(V,z.mode,G,ue),L.return=z,L):(L=s(L,V),L.return=z,L)}function Q(z,L,V){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Ns(""+L,z.mode,V),L.return=z,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case S:return V=Qo(L.type,L.key,L.props,null,z.mode,V),Nr(V,L),V.return=z,V;case j:return L=Ls(L,z.mode,V),L.return=z,L;case ae:return L=ql(L),Q(z,L,V)}if(Ce(L)||ee(L))return L=Bl(L,z.mode,V,null),L.return=z,L;if(typeof L.then=="function")return Q(z,ei(L),V);if(L.$$typeof===O)return Q(z,Jo(z,L),V);ti(z,L)}return null}function k(z,L,V,G){var ue=L!==null?L.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return ue!==null?null:w(z,L,""+V,G);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return V.key===ue?_(z,L,V,G):null;case j:return V.key===ue?D(z,L,V,G):null;case ae:return V=ql(V),k(z,L,V,G)}if(Ce(V)||ee(V))return ue!==null?null:Y(z,L,V,G,null);if(typeof V.then=="function")return k(z,L,ei(V),G);if(V.$$typeof===O)return k(z,L,Jo(z,V),G);ti(z,V)}return null}function U(z,L,V,G,ue){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return z=z.get(V)||null,w(L,z,""+G,ue);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case S:return z=z.get(G.key===null?V:G.key)||null,_(L,z,G,ue);case j:return z=z.get(G.key===null?V:G.key)||null,D(L,z,G,ue);case ae:return G=ql(G),U(z,L,V,G,ue)}if(Ce(G)||ee(G))return z=z.get(V)||null,Y(L,z,G,ue,null);if(typeof G.then=="function")return U(z,L,V,ei(G),ue);if(G.$$typeof===O)return U(z,L,V,Jo(L,G),ue);ti(L,G)}return null}function oe(z,L,V,G){for(var ue=null,Te=null,se=L,be=L=0,Me=null;se!==null&&be<V.length;be++){se.index>be?(Me=se,se=null):Me=se.sibling;var _e=k(z,se,V[be],G);if(_e===null){se===null&&(se=Me);break}e&&se&&_e.alternate===null&&n(z,se),L=p(_e,L,be),Te===null?ue=_e:Te.sibling=_e,Te=_e,se=Me}if(be===V.length)return l(z,se),Ee&&Tn(z,be),ue;if(se===null){for(;be<V.length;be++)se=Q(z,V[be],G),se!==null&&(L=p(se,L,be),Te===null?ue=se:Te.sibling=se,Te=se);return Ee&&Tn(z,be),ue}for(se=o(se);be<V.length;be++)Me=U(se,z,be,V[be],G),Me!==null&&(e&&Me.alternate!==null&&se.delete(Me.key===null?be:Me.key),L=p(Me,L,be),Te===null?ue=Me:Te.sibling=Me,Te=Me);return e&&se.forEach(function(vl){return n(z,vl)}),Ee&&Tn(z,be),ue}function he(z,L,V,G){if(V==null)throw Error(i(151));for(var ue=null,Te=null,se=L,be=L=0,Me=null,_e=V.next();se!==null&&!_e.done;be++,_e=V.next()){se.index>be?(Me=se,se=null):Me=se.sibling;var vl=k(z,se,_e.value,G);if(vl===null){se===null&&(se=Me);break}e&&se&&vl.alternate===null&&n(z,se),L=p(vl,L,be),Te===null?ue=vl:Te.sibling=vl,Te=vl,se=Me}if(_e.done)return l(z,se),Ee&&Tn(z,be),ue;if(se===null){for(;!_e.done;be++,_e=V.next())_e=Q(z,_e.value,G),_e!==null&&(L=p(_e,L,be),Te===null?ue=_e:Te.sibling=_e,Te=_e);return Ee&&Tn(z,be),ue}for(se=o(se);!_e.done;be++,_e=V.next())_e=U(se,z,be,_e.value,G),_e!==null&&(e&&_e.alternate!==null&&se.delete(_e.key===null?be:_e.key),L=p(_e,L,be),Te===null?ue=_e:Te.sibling=_e,Te=_e);return e&&se.forEach(function(P7){return n(z,P7)}),Ee&&Tn(z,be),ue}function He(z,L,V,G){if(typeof V=="object"&&V!==null&&V.type===M&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case S:e:{for(var ue=V.key;L!==null;){if(L.key===ue){if(ue=V.type,ue===M){if(L.tag===7){l(z,L.sibling),G=s(L,V.props.children),G.return=z,z=G;break e}}else if(L.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ae&&ql(ue)===L.type){l(z,L.sibling),G=s(L,V.props),Nr(G,V),G.return=z,z=G;break e}l(z,L);break}else n(z,L);L=L.sibling}V.type===M?(G=Bl(V.props.children,z.mode,G,V.key),G.return=z,z=G):(G=Qo(V.type,V.key,V.props,null,z.mode,G),Nr(G,V),G.return=z,z=G)}return v(z);case j:e:{for(ue=V.key;L!==null;){if(L.key===ue)if(L.tag===4&&L.stateNode.containerInfo===V.containerInfo&&L.stateNode.implementation===V.implementation){l(z,L.sibling),G=s(L,V.children||[]),G.return=z,z=G;break e}else{l(z,L);break}else n(z,L);L=L.sibling}G=Ls(V,z.mode,G),G.return=z,z=G}return v(z);case ae:return V=ql(V),He(z,L,V,G)}if(Ce(V))return oe(z,L,V,G);if(ee(V)){if(ue=ee(V),typeof ue!="function")throw Error(i(150));return V=ue.call(V),he(z,L,V,G)}if(typeof V.then=="function")return He(z,L,ei(V),G);if(V.$$typeof===O)return He(z,L,Jo(z,V),G);ti(z,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,L!==null&&L.tag===6?(l(z,L.sibling),G=s(L,V),G.return=z,z=G):(l(z,L),G=Ns(V,z.mode,G),G.return=z,z=G),v(z)):l(z,L)}return function(z,L,V,G){try{Rr=0;var ue=He(z,L,V,G);return Ea=null,ue}catch(se){if(se===Ma||se===Wo)throw se;var Te=Lt(29,se,null,z.mode);return Te.lanes=G,Te.return=z,Te}finally{}}}var Ql=Td(!0),_d=Td(!1),tl=!1;function Ys(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xs(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 nl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ll(e,n,l){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Re&2)!==0){var s=o.pending;return s===null?n.next=n:(n.next=s.next,s.next=n),o.pending=n,n=Go(e),fd(e,null,l),n}return qo(e,o,n,l),Go(e)}function Lr(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,l|=o,n.lanes=l,yf(e,l)}}function qs(e,n){var l=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var s=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var v={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};p===null?s=p=v:p=p.next=v,l=l.next}while(l!==null);p===null?s=p=n:p=p.next=n}else s=p=n;l={baseState:o.baseState,firstBaseUpdate:s,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}var Gs=!1;function Or(){if(Gs){var e=ja;if(e!==null)throw e}}function Ar(e,n,l,o){Gs=!1;var s=e.updateQueue;tl=!1;var p=s.firstBaseUpdate,v=s.lastBaseUpdate,w=s.shared.pending;if(w!==null){s.shared.pending=null;var _=w,D=_.next;_.next=null,v===null?p=D:v.next=D,v=_;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,w=Y.lastBaseUpdate,w!==v&&(w===null?Y.firstBaseUpdate=D:w.next=D,Y.lastBaseUpdate=_))}if(p!==null){var Q=s.baseState;v=0,Y=D=_=null,w=p;do{var k=w.lane&-536870913,U=k!==w.lane;if(U?(je&k)===k:(o&k)===k){k!==0&&k===Sa&&(Gs=!0),Y!==null&&(Y=Y.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var oe=e,he=w;k=n;var He=l;switch(he.tag){case 1:if(oe=he.payload,typeof oe=="function"){Q=oe.call(He,Q,k);break e}Q=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=he.payload,k=typeof oe=="function"?oe.call(He,Q,k):oe,k==null)break e;Q=b({},Q,k);break e;case 2:tl=!0}}k=w.callback,k!==null&&(e.flags|=64,U&&(e.flags|=8192),U=s.callbacks,U===null?s.callbacks=[k]:U.push(k))}else U={lane:k,tag:w.tag,payload:w.payload,callback:w.callback,next:null},Y===null?(D=Y=U,_=Q):Y=Y.next=U,v|=k;if(w=w.next,w===null){if(w=s.shared.pending,w===null)break;U=w,w=U.next,U.next=null,s.lastBaseUpdate=U,s.shared.pending=null}}while(!0);Y===null&&(_=Q),s.baseState=_,s.firstBaseUpdate=D,s.lastBaseUpdate=Y,p===null&&(s.shared.lanes=0),cl|=v,e.lanes=v,e.memoizedState=Q}}function Rd(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function Nd(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Rd(l[e],n)}var Ta=R(null),ni=R(0);function Ld(e,n){e=kn,I(ni,e),I(Ta,n),kn=e|n.baseLanes}function Qs(){I(ni,kn),I(Ta,Ta.current)}function Ks(){kn=ni.current,q(Ta),q(ni)}var Ot=R(null),Kt=null;function al(e){var n=e.alternate;I(Pe,Pe.current&1),I(Ot,e),Kt===null&&(n===null||Ta.current!==null||n.memoizedState!==null)&&(Kt=e)}function Ps(e){I(Pe,Pe.current),I(Ot,e),Kt===null&&(Kt=e)}function Od(e){e.tag===22?(I(Pe,Pe.current),I(Ot,e),Kt===null&&(Kt=e)):rl()}function rl(){I(Pe,Pe.current),I(Ot,Ot.current)}function At(e){q(Ot),Kt===e&&(Kt=null),q(Pe)}var Pe=R(0);function li(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||t1(l)||n1(l)))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 Nn=0,ye=null,Ae=null,We=null,ai=!1,_a=!1,Kl=!1,ri=0,zr=0,Ra=null,$8=0;function Xe(){throw Error(i(321))}function Js(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!Nt(e[l],n[l]))return!1;return!0}function Fs(e,n,l,o,s,p){return Nn=p,ye=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,A.H=e===null||e.memoizedState===null?g9:du,Kl=!1,p=l(o,s),Kl=!1,_a&&(p=zd(n,l,o,s)),Ad(e),p}function Ad(e){A.H=Dr;var n=Ae!==null&&Ae.next!==null;if(Nn=0,We=Ae=ye=null,ai=!1,zr=0,Ra=null,n)throw Error(i(300));e===null||Ie||(e=e.dependencies,e!==null&&Po(e)&&(Ie=!0))}function zd(e,n,l,o){ye=e;var s=0;do{if(_a&&(Ra=null),zr=0,_a=!1,25<=s)throw Error(i(301));if(s+=1,We=Ae=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}A.H=m9,p=n(l,o)}while(_a);return p}function B8(){var e=A.H,n=e.useState()[0];return n=typeof n.then=="function"?Hr(n):n,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(ye.flags|=1024),n}function Ws(){var e=ri!==0;return ri=0,e}function Is(e,n,l){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l}function eu(e){if(ai){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}ai=!1}Nn=0,We=Ae=ye=null,_a=!1,zr=ri=0,Ra=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?ye.memoizedState=We=e:We=We.next=e,We}function Je(){if(Ae===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var n=We===null?ye.memoizedState:We.next;if(n!==null)We=n,Ae=e;else{if(e===null)throw ye.alternate===null?Error(i(467)):Error(i(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},We===null?ye.memoizedState=We=e:We=We.next=e}return We}function oi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hr(e){var n=zr;return zr+=1,Ra===null&&(Ra=[]),e=jd(Ra,e,n),n=ye,(We===null?n.memoizedState:We.next)===null&&(n=n.alternate,A.H=n===null||n.memoizedState===null?g9:du),e}function ii(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hr(e);if(e.$$typeof===O)return ut(e)}throw Error(i(438,String(e)))}function tu(e){var n=null,l=ye.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var o=ye.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(s){return s.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=oi(),ye.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0)for(l=n.data[n.index]=Array(e),o=0;o<e;o++)l[o]=X;return n.index++,l}function Ln(e,n){return typeof n=="function"?n(e):n}function ci(e){var n=Je();return nu(n,Ae,e)}function nu(e,n,l){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=l;var s=e.baseQueue,p=o.pending;if(p!==null){if(s!==null){var v=s.next;s.next=p.next,p.next=v}n.baseQueue=s=p,o.pending=null}if(p=e.baseState,s===null)e.memoizedState=p;else{n=s.next;var w=v=null,_=null,D=n,Y=!1;do{var Q=D.lane&-536870913;if(Q!==D.lane?(je&Q)===Q:(Nn&Q)===Q){var k=D.revertLane;if(k===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Q===Sa&&(Y=!0);else if((Nn&k)===k){D=D.next,k===Sa&&(Y=!0);continue}else Q={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},_===null?(w=_=Q,v=p):_=_.next=Q,ye.lanes|=k,cl|=k;Q=D.action,Kl&&l(p,Q),p=D.hasEagerState?D.eagerState:l(p,Q)}else k={lane:Q,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},_===null?(w=_=k,v=p):_=_.next=k,ye.lanes|=Q,cl|=Q;D=D.next}while(D!==null&&D!==n);if(_===null?v=p:_.next=w,!Nt(p,e.memoizedState)&&(Ie=!0,Y&&(l=ja,l!==null)))throw l;e.memoizedState=p,e.baseState=v,e.baseQueue=_,o.lastRenderedState=p}return s===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function lu(e){var n=Je(),l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var o=l.dispatch,s=l.pending,p=n.memoizedState;if(s!==null){l.pending=null;var v=s=s.next;do p=e(p,v.action),v=v.next;while(v!==s);Nt(p,n.memoizedState)||(Ie=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),l.lastRenderedState=p}return[p,o]}function Hd(e,n,l){var o=ye,s=Je(),p=Ee;if(p){if(l===void 0)throw Error(i(407));l=l()}else l=n();var v=!Nt((Ae||s).memoizedState,l);if(v&&(s.memoizedState=l,Ie=!0),s=s.queue,ou(kd.bind(null,o,s,e),[e]),s.getSnapshot!==n||v||We!==null&&We.memoizedState.tag&1){if(o.flags|=2048,Na(9,{destroy:void 0},Dd.bind(null,o,s,l,n),null),De===null)throw Error(i(349));p||(Nn&127)!==0||Vd(o,n,l)}return l}function Vd(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=ye.updateQueue,n===null?(n=oi(),ye.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function Dd(e,n,l,o){n.value=l,n.getSnapshot=o,$d(n)&&Bd(e)}function kd(e,n,l){return l(function(){$d(n)&&Bd(e)})}function $d(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!Nt(e,l)}catch{return!0}}function Bd(e){var n=$l(e,2);n!==null&&Et(n,e,2)}function au(e){var n=mt();if(typeof e=="function"){var l=e;if(e=l(),Kl){Kn(!0);try{l()}finally{Kn(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:e},n}function Ud(e,n,l,o){return e.baseState=l,nu(e,Ae,typeof o=="function"?o:Ln)}function U8(e,n,l,o,s){if(fi(e))throw Error(i(485));if(e=n.action,e!==null){var p={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){p.listeners.push(v)}};A.T!==null?l(!0):p.isTransition=!1,o(p),l=n.pending,l===null?(p.next=n.pending=p,Zd(n,p)):(p.next=l.next,n.pending=l.next=p)}}function Zd(e,n){var l=n.action,o=n.payload,s=e.state;if(n.isTransition){var p=A.T,v={};A.T=v;try{var w=l(s,o),_=A.S;_!==null&&_(v,w),Yd(e,n,w)}catch(D){ru(e,n,D)}finally{p!==null&&v.types!==null&&(p.types=v.types),A.T=p}}else try{p=l(s,o),Yd(e,n,p)}catch(D){ru(e,n,D)}}function Yd(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){Xd(e,n,o)},function(o){return ru(e,n,o)}):Xd(e,n,l)}function Xd(e,n,l){n.status="fulfilled",n.value=l,qd(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,Zd(e,l)))}function ru(e,n,l){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=l,qd(n),n=n.next;while(n!==o)}e.action=null}function qd(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Gd(e,n){return n}function Qd(e,n){if(Ee){var l=De.formState;if(l!==null){e:{var o=ye;if(Ee){if($e){t:{for(var s=$e,p=Qt;s.nodeType!==8;){if(!p){s=null;break t}if(s=Pt(s.nextSibling),s===null){s=null;break t}}p=s.data,s=p==="F!"||p==="F"?s:null}if(s){$e=Pt(s.nextSibling),o=s.data==="F!";break e}}In(o)}o=!1}o&&(n=l[0])}}return l=mt(),l.memoizedState=l.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gd,lastRenderedState:n},l.queue=o,l=d9.bind(null,ye,o),o.dispatch=l,o=au(!1),p=fu.bind(null,ye,!1,o.queue),o=mt(),s={state:n,dispatch:null,action:e,pending:null},o.queue=s,l=U8.bind(null,ye,s,p,l),s.dispatch=l,o.memoizedState=e,[n,l,!1]}function Kd(e){var n=Je();return Pd(n,Ae,e)}function Pd(e,n,l){if(n=nu(e,n,Gd)[0],e=ci(Ln)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=Hr(n)}catch(v){throw v===Ma?Wo:v}else o=n;n=Je();var s=n.queue,p=s.dispatch;return l!==n.memoizedState&&(ye.flags|=2048,Na(9,{destroy:void 0},Z8.bind(null,s,l),null)),[o,p,e]}function Z8(e,n){e.action=n}function Jd(e){var n=Je(),l=Ae;if(l!==null)return Pd(n,l,e);Je(),n=n.memoizedState,l=Je();var o=l.queue.dispatch;return l.memoizedState=e,[n,o,!1]}function Na(e,n,l,o){return e={tag:e,create:l,deps:o,inst:n,next:null},n=ye.updateQueue,n===null&&(n=oi(),ye.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=e.next=e:(o=l.next,l.next=e,e.next=o,n.lastEffect=e),e}function Fd(){return Je().memoizedState}function si(e,n,l,o){var s=mt();ye.flags|=e,s.memoizedState=Na(1|n,{destroy:void 0},l,o===void 0?null:o)}function ui(e,n,l,o){var s=Je();o=o===void 0?null:o;var p=s.memoizedState.inst;Ae!==null&&o!==null&&Js(o,Ae.memoizedState.deps)?s.memoizedState=Na(n,p,l,o):(ye.flags|=e,s.memoizedState=Na(1|n,p,l,o))}function Wd(e,n){si(8390656,8,e,n)}function ou(e,n){ui(2048,8,e,n)}function Y8(e){ye.flags|=4;var n=ye.updateQueue;if(n===null)n=oi(),ye.updateQueue=n,n.events=[e];else{var l=n.events;l===null?n.events=[e]:l.push(e)}}function Id(e){var n=Je().memoizedState;return Y8({ref:n,nextImpl:e}),function(){if((Re&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function e9(e,n){return ui(4,2,e,n)}function t9(e,n){return ui(4,4,e,n)}function n9(e,n){if(typeof n=="function"){e=e();var l=n(e);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function l9(e,n,l){l=l!=null?l.concat([e]):null,ui(4,4,n9.bind(null,n,e),l)}function iu(){}function a9(e,n){var l=Je();n=n===void 0?null:n;var o=l.memoizedState;return n!==null&&Js(n,o[1])?o[0]:(l.memoizedState=[e,n],e)}function r9(e,n){var l=Je();n=n===void 0?null:n;var o=l.memoizedState;if(n!==null&&Js(n,o[1]))return o[0];if(o=e(),Kl){Kn(!0);try{e()}finally{Kn(!1)}}return l.memoizedState=[o,n],o}function cu(e,n,l){return l===void 0||(Nn&1073741824)!==0&&(je&261930)===0?e.memoizedState=n:(e.memoizedState=l,e=o2(),ye.lanes|=e,cl|=e,l)}function o9(e,n,l,o){return Nt(l,n)?l:Ta.current!==null?(e=cu(e,l,o),Nt(e,n)||(Ie=!0),e):(Nn&42)===0||(Nn&1073741824)!==0&&(je&261930)===0?(Ie=!0,e.memoizedState=l):(e=o2(),ye.lanes|=e,cl|=e,n)}function i9(e,n,l,o,s){var p=B.p;B.p=p!==0&&8>p?p:8;var v=A.T,w={};A.T=w,fu(e,!1,n,l);try{var _=s(),D=A.S;if(D!==null&&D(w,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var Y=k8(_,o);Vr(e,n,Y,Vt(e))}else Vr(e,n,o,Vt(e))}catch(Q){Vr(e,n,{then:function(){},status:"rejected",reason:Q},Vt())}finally{B.p=p,v!==null&&w.types!==null&&(v.types=w.types),A.T=v}}function X8(){}function su(e,n,l,o){if(e.tag!==5)throw Error(i(476));var s=c9(e).queue;i9(e,s,n,J,l===null?X8:function(){return s9(e),l(o)})}function c9(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:J},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ln,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function s9(e){var n=c9(e);n.next===null&&(n=e.alternate.memoizedState),Vr(e,n.next.queue,{},Vt())}function uu(){return ut(Ir)}function u9(){return Je().memoizedState}function f9(){return Je().memoizedState}function q8(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var l=Vt();e=nl(l);var o=ll(n,e,l);o!==null&&(Et(o,n,l),Lr(o,n,l)),n={cache:$s()},e.payload=n;return}n=n.return}}function G8(e,n,l){var o=Vt();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fi(e)?p9(n,l):(l=_s(e,n,l,o),l!==null&&(Et(l,e,o),h9(l,n,o)))}function d9(e,n,l){var o=Vt();Vr(e,n,l,o)}function Vr(e,n,l,o){var s={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(fi(e))p9(n,s);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var v=n.lastRenderedState,w=p(v,l);if(s.hasEagerState=!0,s.eagerState=w,Nt(w,v))return qo(e,n,s,0),De===null&&Xo(),!1}catch{}finally{}if(l=_s(e,n,s,o),l!==null)return Et(l,e,o),h9(l,n,o),!0}return!1}function fu(e,n,l,o){if(o={lane:2,revertLane:Yu(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},fi(e)){if(n)throw Error(i(479))}else n=_s(e,l,o,2),n!==null&&Et(n,e,2)}function fi(e){var n=e.alternate;return e===ye||n!==null&&n===ye}function p9(e,n){_a=ai=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function h9(e,n,l){if((l&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,l|=o,n.lanes=l,yf(e,l)}}var Dr={readContext:ut,use:ii,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};Dr.useEffectEvent=Xe;var g9={readContext:ut,use:ii,useCallback:function(e,n){return mt().memoizedState=[e,n===void 0?null:n],e},useContext:ut,useEffect:Wd,useImperativeHandle:function(e,n,l){l=l!=null?l.concat([e]):null,si(4194308,4,n9.bind(null,n,e),l)},useLayoutEffect:function(e,n){return si(4194308,4,e,n)},useInsertionEffect:function(e,n){si(4,2,e,n)},useMemo:function(e,n){var l=mt();n=n===void 0?null:n;var o=e();if(Kl){Kn(!0);try{e()}finally{Kn(!1)}}return l.memoizedState=[o,n],o},useReducer:function(e,n,l){var o=mt();if(l!==void 0){var s=l(n);if(Kl){Kn(!0);try{l(n)}finally{Kn(!1)}}}else s=n;return o.memoizedState=o.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},o.queue=e,e=e.dispatch=G8.bind(null,ye,e),[o.memoizedState,e]},useRef:function(e){var n=mt();return e={current:e},n.memoizedState=e},useState:function(e){e=au(e);var n=e.queue,l=d9.bind(null,ye,n);return n.dispatch=l,[e.memoizedState,l]},useDebugValue:iu,useDeferredValue:function(e,n){var l=mt();return cu(l,e,n)},useTransition:function(){var e=au(!1);return e=i9.bind(null,ye,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,l){var o=ye,s=mt();if(Ee){if(l===void 0)throw Error(i(407));l=l()}else{if(l=n(),De===null)throw Error(i(349));(je&127)!==0||Vd(o,n,l)}s.memoizedState=l;var p={value:l,getSnapshot:n};return s.queue=p,Wd(kd.bind(null,o,p,e),[e]),o.flags|=2048,Na(9,{destroy:void 0},Dd.bind(null,o,p,l,n),null),l},useId:function(){var e=mt(),n=De.identifierPrefix;if(Ee){var l=un,o=sn;l=(o&~(1<<32-Rt(o)-1)).toString(32)+l,n="_"+n+"R_"+l,l=ri++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=$8++,n="_"+n+"r_"+l.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:uu,useFormState:Qd,useActionState:Qd,useOptimistic:function(e){var n=mt();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=fu.bind(null,ye,!0,l),l.dispatch=n,[e,n]},useMemoCache:tu,useCacheRefresh:function(){return mt().memoizedState=q8.bind(null,ye)},useEffectEvent:function(e){var n=mt(),l={impl:e};return n.memoizedState=l,function(){if((Re&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},du={readContext:ut,use:ii,useCallback:a9,useContext:ut,useEffect:ou,useImperativeHandle:l9,useInsertionEffect:e9,useLayoutEffect:t9,useMemo:r9,useReducer:ci,useRef:Fd,useState:function(){return ci(Ln)},useDebugValue:iu,useDeferredValue:function(e,n){var l=Je();return o9(l,Ae.memoizedState,e,n)},useTransition:function(){var e=ci(Ln)[0],n=Je().memoizedState;return[typeof e=="boolean"?e:Hr(e),n]},useSyncExternalStore:Hd,useId:u9,useHostTransitionStatus:uu,useFormState:Kd,useActionState:Kd,useOptimistic:function(e,n){var l=Je();return Ud(l,Ae,e,n)},useMemoCache:tu,useCacheRefresh:f9};du.useEffectEvent=Id;var m9={readContext:ut,use:ii,useCallback:a9,useContext:ut,useEffect:ou,useImperativeHandle:l9,useInsertionEffect:e9,useLayoutEffect:t9,useMemo:r9,useReducer:lu,useRef:Fd,useState:function(){return lu(Ln)},useDebugValue:iu,useDeferredValue:function(e,n){var l=Je();return Ae===null?cu(l,e,n):o9(l,Ae.memoizedState,e,n)},useTransition:function(){var e=lu(Ln)[0],n=Je().memoizedState;return[typeof e=="boolean"?e:Hr(e),n]},useSyncExternalStore:Hd,useId:u9,useHostTransitionStatus:uu,useFormState:Jd,useActionState:Jd,useOptimistic:function(e,n){var l=Je();return Ae!==null?Ud(l,Ae,e,n):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:tu,useCacheRefresh:f9};m9.useEffectEvent=Id;function pu(e,n,l,o){n=e.memoizedState,l=l(o,n),l=l==null?n:b({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var hu={enqueueSetState:function(e,n,l){e=e._reactInternals;var o=Vt(),s=nl(o);s.payload=n,l!=null&&(s.callback=l),n=ll(e,s,o),n!==null&&(Et(n,e,o),Lr(n,e,o))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var o=Vt(),s=nl(o);s.tag=1,s.payload=n,l!=null&&(s.callback=l),n=ll(e,s,o),n!==null&&(Et(n,e,o),Lr(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=Vt(),o=nl(l);o.tag=2,n!=null&&(o.callback=n),n=ll(e,o,l),n!==null&&(Et(n,e,l),Lr(n,e,l))}};function x9(e,n,l,o,s,p,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,p,v):n.prototype&&n.prototype.isPureReactComponent?!Sr(l,o)||!Sr(s,p):!0}function v9(e,n,l,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,o),n.state!==e&&hu.enqueueReplaceState(n,n.state,null)}function Pl(e,n){var l=n;if("ref"in n){l={};for(var o in n)o!=="ref"&&(l[o]=n[o])}if(e=e.defaultProps){l===n&&(l=b({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function y9(e){Yo(e)}function b9(e){console.error(e)}function C9(e){Yo(e)}function di(e,n){try{var l=e.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function w9(e,n,l){try{var o=e.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function gu(e,n,l){return l=nl(l),l.tag=3,l.payload={element:null},l.callback=function(){di(e,n)},l}function S9(e){return e=nl(e),e.tag=3,e}function j9(e,n,l,o){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var p=o.value;e.payload=function(){return s(p)},e.callback=function(){w9(n,l,o)}}var v=l.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){w9(n,l,o),typeof s!="function"&&(sl===null?sl=new Set([this]):sl.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function Q8(e,n,l,o,s){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=l.alternate,n!==null&&wa(n,l,s,!0),l=Ot.current,l!==null){switch(l.tag){case 31:case 13:return Kt===null?ji():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=s,o===Io?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([o]):n.add(o),Bu(e,o,s)),!1;case 22:return l.flags|=65536,o===Io?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([o]):l.add(o)),Bu(e,o,s)),!1}throw Error(i(435,l.tag))}return Bu(e,o,s),ji(),!1}if(Ee)return n=Ot.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=s,o!==zs&&(e=Error(i(422),{cause:o}),Er(Xt(e,l)))):(o!==zs&&(n=Error(i(423),{cause:o}),Er(Xt(n,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,o=Xt(o,l),s=gu(e.stateNode,o,s),qs(e,s),qe!==4&&(qe=2)),!1;var p=Error(i(520),{cause:o});if(p=Xt(p,l),qr===null?qr=[p]:qr.push(p),qe!==4&&(qe=2),n===null)return!0;o=Xt(o,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=gu(l.stateNode,o,e),qs(l,e),!1;case 1:if(n=l.type,p=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(sl===null||!sl.has(p))))return l.flags|=65536,s&=-s,l.lanes|=s,s=S9(s),j9(s,e,l,o),qs(l,s),!1}l=l.return}while(l!==null);return!1}var mu=Error(i(461)),Ie=!1;function ft(e,n,l,o){n.child=e===null?_d(n,null,l,o):Ql(n,e.child,l,o)}function M9(e,n,l,o,s){l=l.render;var p=n.ref;if("ref"in o){var v={};for(var w in o)w!=="ref"&&(v[w]=o[w])}else v=o;return Yl(n),o=Fs(e,n,l,v,p,s),w=Ws(),e!==null&&!Ie?(Is(e,n,s),On(e,n,s)):(Ee&&w&&Os(n),n.flags|=1,ft(e,n,o,s),n.child)}function E9(e,n,l,o,s){if(e===null){var p=l.type;return typeof p=="function"&&!Rs(p)&&p.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=p,T9(e,n,p,o,s)):(e=Qo(l.type,null,o,n,n.mode,s),e.ref=n.ref,e.return=n,n.child=e)}if(p=e.child,!ju(e,s)){var v=p.memoizedProps;if(l=l.compare,l=l!==null?l:Sr,l(v,o)&&e.ref===n.ref)return On(e,n,s)}return n.flags|=1,e=En(p,o),e.ref=n.ref,e.return=n,n.child=e}function T9(e,n,l,o,s){if(e!==null){var p=e.memoizedProps;if(Sr(p,o)&&e.ref===n.ref)if(Ie=!1,n.pendingProps=o=p,ju(e,s))(e.flags&131072)!==0&&(Ie=!0);else return n.lanes=e.lanes,On(e,n,s)}return xu(e,n,l,o,s)}function _9(e,n,l,o){var s=o.children,p=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|l:l,e!==null){for(o=n.child=e.child,s=0;o!==null;)s=s|o.lanes|o.childLanes,o=o.sibling;o=s&~p}else o=0,n.child=null;return R9(e,n,p,l,o)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Fo(n,p!==null?p.cachePool:null),p!==null?Ld(n,p):Qs(),Od(n);else return o=n.lanes=536870912,R9(e,n,p!==null?p.baseLanes|l:l,l,o)}else p!==null?(Fo(n,p.cachePool),Ld(n,p),rl(),n.memoizedState=null):(e!==null&&Fo(n,null),Qs(),rl());return ft(e,n,s,l),n.child}function kr(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function R9(e,n,l,o,s){var p=Us();return p=p===null?null:{parent:Fe._currentValue,pool:p},n.memoizedState={baseLanes:l,cachePool:p},e!==null&&Fo(n,null),Qs(),Od(n),e!==null&&wa(e,n,o,!0),n.childLanes=s,null}function pi(e,n){return n=gi({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function N9(e,n,l){return Ql(n,e.child,null,l),e=pi(n,n.pendingProps),e.flags|=2,At(n),n.memoizedState=null,e}function K8(e,n,l){var o=n.pendingProps,s=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Ee){if(o.mode==="hidden")return e=pi(n,o),n.lanes=536870912,kr(null,e);if(Ps(n),(e=$e)?(e=Z2(e,Qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:sn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},l=pd(e),l.return=n,n.child=l,st=n,$e=null)):e=null,e===null)throw In(n);return n.lanes=536870912,null}return pi(n,o)}var p=e.memoizedState;if(p!==null){var v=p.dehydrated;if(Ps(n),s)if(n.flags&256)n.flags&=-257,n=N9(e,n,l);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(i(558));else if(Ie||wa(e,n,l,!1),s=(l&e.childLanes)!==0,Ie||s){if(o=De,o!==null&&(v=bf(o,l),v!==0&&v!==p.retryLane))throw p.retryLane=v,$l(e,v),Et(o,e,v),mu;ji(),n=N9(e,n,l)}else e=p.treeContext,$e=Pt(v.nextSibling),st=n,Ee=!0,Wn=null,Qt=!1,e!==null&&md(n,e),n=pi(n,o),n.flags|=4096;return n}return e=En(e.child,{mode:o.mode,children:o.children}),e.ref=n.ref,n.child=e,e.return=n,e}function hi(e,n){var l=n.ref;if(l===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(e===null||e.ref!==l)&&(n.flags|=4194816)}}function xu(e,n,l,o,s){return Yl(n),l=Fs(e,n,l,o,void 0,s),o=Ws(),e!==null&&!Ie?(Is(e,n,s),On(e,n,s)):(Ee&&o&&Os(n),n.flags|=1,ft(e,n,l,s),n.child)}function L9(e,n,l,o,s,p){return Yl(n),n.updateQueue=null,l=zd(n,o,l,s),Ad(e),o=Ws(),e!==null&&!Ie?(Is(e,n,p),On(e,n,p)):(Ee&&o&&Os(n),n.flags|=1,ft(e,n,l,p),n.child)}function O9(e,n,l,o,s){if(Yl(n),n.stateNode===null){var p=va,v=l.contextType;typeof v=="object"&&v!==null&&(p=ut(v)),p=new l(o,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=hu,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=o,p.state=n.memoizedState,p.refs={},Ys(n),v=l.contextType,p.context=typeof v=="object"&&v!==null?ut(v):va,p.state=n.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(pu(n,l,v,o),p.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(v=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),v!==p.state&&hu.enqueueReplaceState(p,p.state,null),Ar(n,o,p,s),Or(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){p=n.stateNode;var w=n.memoizedProps,_=Pl(l,w);p.props=_;var D=p.context,Y=l.contextType;v=va,typeof Y=="object"&&Y!==null&&(v=ut(Y));var Q=l.getDerivedStateFromProps;Y=typeof Q=="function"||typeof p.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,Y||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w||D!==v)&&v9(n,p,o,v),tl=!1;var k=n.memoizedState;p.state=k,Ar(n,o,p,s),Or(),D=n.memoizedState,w||k!==D||tl?(typeof Q=="function"&&(pu(n,l,Q,o),D=n.memoizedState),(_=tl||x9(n,l,_,o,k,D,v))?(Y||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=D),p.props=o,p.state=D,p.context=v,o=_):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{p=n.stateNode,Xs(e,n),v=n.memoizedProps,Y=Pl(l,v),p.props=Y,Q=n.pendingProps,k=p.context,D=l.contextType,_=va,typeof D=="object"&&D!==null&&(_=ut(D)),w=l.getDerivedStateFromProps,(D=typeof w=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(v!==Q||k!==_)&&v9(n,p,o,_),tl=!1,k=n.memoizedState,p.state=k,Ar(n,o,p,s),Or();var U=n.memoizedState;v!==Q||k!==U||tl||e!==null&&e.dependencies!==null&&Po(e.dependencies)?(typeof w=="function"&&(pu(n,l,w,o),U=n.memoizedState),(Y=tl||x9(n,l,Y,o,k,U,_)||e!==null&&e.dependencies!==null&&Po(e.dependencies))?(D||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,U,_),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,U,_)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=U),p.props=o,p.state=U,p.context=_,o=Y):(typeof p.componentDidUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&k===e.memoizedState||(n.flags|=1024),o=!1)}return p=o,hi(e,n),o=(n.flags&128)!==0,p||o?(p=n.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,e!==null&&o?(n.child=Ql(n,e.child,null,s),n.child=Ql(n,null,l,s)):ft(e,n,l,s),n.memoizedState=p.state,e=n.child):e=On(e,n,s),e}function A9(e,n,l,o){return Ul(),n.flags|=256,ft(e,n,l,o),n.child}var vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yu(e){return{baseLanes:e,cachePool:wd()}}function bu(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=Ht),e}function z9(e,n,l){var o=n.pendingProps,s=!1,p=(n.flags&128)!==0,v;if((v=p)||(v=e!==null&&e.memoizedState===null?!1:(Pe.current&2)!==0),v&&(s=!0,n.flags&=-129),v=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ee){if(s?al(n):rl(),(e=$e)?(e=Z2(e,Qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:sn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},l=pd(e),l.return=n,n.child=l,st=n,$e=null)):e=null,e===null)throw In(n);return n1(e)?n.lanes=32:n.lanes=536870912,null}var w=o.children;return o=o.fallback,s?(rl(),s=n.mode,w=gi({mode:"hidden",children:w},s),o=Bl(o,s,l,null),w.return=n,o.return=n,w.sibling=o,n.child=w,o=n.child,o.memoizedState=yu(l),o.childLanes=bu(e,v,l),n.memoizedState=vu,kr(null,o)):(al(n),Cu(n,w))}var _=e.memoizedState;if(_!==null&&(w=_.dehydrated,w!==null)){if(p)n.flags&256?(al(n),n.flags&=-257,n=wu(e,n,l)):n.memoizedState!==null?(rl(),n.child=e.child,n.flags|=128,n=null):(rl(),w=o.fallback,s=n.mode,o=gi({mode:"visible",children:o.children},s),w=Bl(w,s,l,null),w.flags|=2,o.return=n,w.return=n,o.sibling=w,n.child=o,Ql(n,e.child,null,l),o=n.child,o.memoizedState=yu(l),o.childLanes=bu(e,v,l),n.memoizedState=vu,n=kr(null,o));else if(al(n),n1(w)){if(v=w.nextSibling&&w.nextSibling.dataset,v)var D=v.dgst;v=D,o=Error(i(419)),o.stack="",o.digest=v,Er({value:o,source:null,stack:null}),n=wu(e,n,l)}else if(Ie||wa(e,n,l,!1),v=(l&e.childLanes)!==0,Ie||v){if(v=De,v!==null&&(o=bf(v,l),o!==0&&o!==_.retryLane))throw _.retryLane=o,$l(e,o),Et(v,e,o),mu;t1(w)||ji(),n=wu(e,n,l)}else t1(w)?(n.flags|=192,n.child=e.child,n=null):(e=_.treeContext,$e=Pt(w.nextSibling),st=n,Ee=!0,Wn=null,Qt=!1,e!==null&&md(n,e),n=Cu(n,o.children),n.flags|=4096);return n}return s?(rl(),w=o.fallback,s=n.mode,_=e.child,D=_.sibling,o=En(_,{mode:"hidden",children:o.children}),o.subtreeFlags=_.subtreeFlags&65011712,D!==null?w=En(D,w):(w=Bl(w,s,l,null),w.flags|=2),w.return=n,o.return=n,o.sibling=w,n.child=o,kr(null,o),o=n.child,w=e.child.memoizedState,w===null?w=yu(l):(s=w.cachePool,s!==null?(_=Fe._currentValue,s=s.parent!==_?{parent:_,pool:_}:s):s=wd(),w={baseLanes:w.baseLanes|l,cachePool:s}),o.memoizedState=w,o.childLanes=bu(e,v,l),n.memoizedState=vu,kr(e.child,o)):(al(n),l=e.child,e=l.sibling,l=En(l,{mode:"visible",children:o.children}),l.return=n,l.sibling=null,e!==null&&(v=n.deletions,v===null?(n.deletions=[e],n.flags|=16):v.push(e)),n.child=l,n.memoizedState=null,l)}function Cu(e,n){return n=gi({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function gi(e,n){return e=Lt(22,e,null,n),e.lanes=0,e}function wu(e,n,l){return Ql(n,e.child,null,l),e=Cu(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function H9(e,n,l){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),Ds(e.return,n,l)}function Su(e,n,l,o,s,p){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:s,treeForkCount:p}:(v.isBackwards=n,v.rendering=null,v.renderingStartTime=0,v.last=o,v.tail=l,v.tailMode=s,v.treeForkCount=p)}function V9(e,n,l){var o=n.pendingProps,s=o.revealOrder,p=o.tail;o=o.children;var v=Pe.current,w=(v&2)!==0;if(w?(v=v&1|2,n.flags|=128):v&=1,I(Pe,v),ft(e,n,o,l),o=Ee?Mr:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&H9(e,l,n);else if(e.tag===19)H9(e,l,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(s){case"forwards":for(l=n.child,s=null;l!==null;)e=l.alternate,e!==null&&li(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=n.child,n.child=null):(s=l.sibling,l.sibling=null),Su(n,!1,s,l,p,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,s=n.child,n.child=null;s!==null;){if(e=s.alternate,e!==null&&li(e)===null){n.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}Su(n,!0,l,null,p,o);break;case"together":Su(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function On(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),cl|=n.lanes,(l&n.childLanes)===0)if(e!==null){if(wa(e,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,l=En(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=En(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function ju(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Po(e)))}function P8(e,n,l){switch(n.tag){case 3:Ve(n,n.stateNode.containerInfo),el(n,Fe,e.memoizedState.cache),Ul();break;case 27:case 5:on(n);break;case 4:Ve(n,n.stateNode.containerInfo);break;case 10:el(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Ps(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(al(n),n.flags|=128,null):(l&n.child.childLanes)!==0?z9(e,n,l):(al(n),e=On(e,n,l),e!==null?e.sibling:null);al(n);break;case 19:var s=(e.flags&128)!==0;if(o=(l&n.childLanes)!==0,o||(wa(e,n,l,!1),o=(l&n.childLanes)!==0),s){if(o)return V9(e,n,l);n.flags|=128}if(s=n.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),I(Pe,Pe.current),o)break;return null;case 22:return n.lanes=0,_9(e,n,l,n.pendingProps);case 24:el(n,Fe,e.memoizedState.cache)}return On(e,n,l)}function D9(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps)Ie=!0;else{if(!ju(e,l)&&(n.flags&128)===0)return Ie=!1,P8(e,n,l);Ie=(e.flags&131072)!==0}else Ie=!1,Ee&&(n.flags&1048576)!==0&&gd(n,Mr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(e=ql(n.elementType),n.type=e,typeof e=="function")Rs(e)?(o=Pl(e,o),n.tag=1,n=O9(null,n,e,o,l)):(n.tag=0,n=xu(null,n,e,o,l));else{if(e!=null){var s=e.$$typeof;if(s===$){n.tag=11,n=M9(null,n,e,o,l);break e}else if(s===Z){n.tag=14,n=E9(null,n,e,o,l);break e}}throw n=fe(e)||e,Error(i(306,n,""))}}return n;case 0:return xu(e,n,n.type,n.pendingProps,l);case 1:return o=n.type,s=Pl(o,n.pendingProps),O9(e,n,o,s,l);case 3:e:{if(Ve(n,n.stateNode.containerInfo),e===null)throw Error(i(387));o=n.pendingProps;var p=n.memoizedState;s=p.element,Xs(e,n),Ar(n,o,null,l);var v=n.memoizedState;if(o=v.cache,el(n,Fe,o),o!==p.cache&&ks(n,[Fe],l,!0),Or(),o=v.element,p.isDehydrated)if(p={element:o,isDehydrated:!1,cache:v.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=A9(e,n,o,l);break e}else if(o!==s){s=Xt(Error(i(424)),n),Er(s),n=A9(e,n,o,l);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($e=Pt(e.firstChild),st=n,Ee=!0,Wn=null,Qt=!0,l=_d(n,null,o,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ul(),o===s){n=On(e,n,l);break e}ft(e,n,o,l)}n=n.child}return n;case 26:return hi(e,n),e===null?(l=K2(n.type,null,n.pendingProps,null))?n.memoizedState=l:Ee||(l=n.type,e=n.pendingProps,o=Li(le.current).createElement(l),o[ct]=n,o[bt]=e,dt(o,l,e),at(o),n.stateNode=o):n.memoizedState=K2(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return on(n),e===null&&Ee&&(o=n.stateNode=q2(n.type,n.pendingProps,le.current),st=n,Qt=!0,s=$e,pl(n.type)?(l1=s,$e=Pt(o.firstChild)):$e=s),ft(e,n,n.pendingProps.children,l),hi(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ee&&((s=o=$e)&&(o=M7(o,n.type,n.pendingProps,Qt),o!==null?(n.stateNode=o,st=n,$e=Pt(o.firstChild),Qt=!1,s=!0):s=!1),s||In(n)),on(n),s=n.type,p=n.pendingProps,v=e!==null?e.memoizedProps:null,o=p.children,Wu(s,p)?o=null:v!==null&&Wu(s,v)&&(n.flags|=32),n.memoizedState!==null&&(s=Fs(e,n,B8,null,null,l),Ir._currentValue=s),hi(e,n),ft(e,n,o,l),n.child;case 6:return e===null&&Ee&&((e=l=$e)&&(l=E7(l,n.pendingProps,Qt),l!==null?(n.stateNode=l,st=n,$e=null,e=!0):e=!1),e||In(n)),null;case 13:return z9(e,n,l);case 4:return Ve(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=Ql(n,null,o,l):ft(e,n,o,l),n.child;case 11:return M9(e,n,n.type,n.pendingProps,l);case 7:return ft(e,n,n.pendingProps,l),n.child;case 8:return ft(e,n,n.pendingProps.children,l),n.child;case 12:return ft(e,n,n.pendingProps.children,l),n.child;case 10:return o=n.pendingProps,el(n,n.type,o.value),ft(e,n,o.children,l),n.child;case 9:return s=n.type._context,o=n.pendingProps.children,Yl(n),s=ut(s),o=o(s),n.flags|=1,ft(e,n,o,l),n.child;case 14:return E9(e,n,n.type,n.pendingProps,l);case 15:return T9(e,n,n.type,n.pendingProps,l);case 19:return V9(e,n,l);case 31:return K8(e,n,l);case 22:return _9(e,n,l,n.pendingProps);case 24:return Yl(n),o=ut(Fe),e===null?(s=Us(),s===null&&(s=De,p=$s(),s.pooledCache=p,p.refCount++,p!==null&&(s.pooledCacheLanes|=l),s=p),n.memoizedState={parent:o,cache:s},Ys(n),el(n,Fe,s)):((e.lanes&l)!==0&&(Xs(e,n),Ar(n,null,null,l),Or()),s=e.memoizedState,p=n.memoizedState,s.parent!==o?(s={parent:o,cache:o},n.memoizedState=s,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=s),el(n,Fe,o)):(o=p.cache,el(n,Fe,o),o!==s.cache&&ks(n,[Fe],l,!0))),ft(e,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function An(e){e.flags|=4}function Mu(e,n,l,o,s){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(u2())e.flags|=8192;else throw Gl=Io,Zs}else e.flags&=-16777217}function k9(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!I2(n))if(u2())e.flags|=8192;else throw Gl=Io,Zs}function mi(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?xf():536870912,e.lanes|=n,za|=n)}function $r(e,n){if(!Ee)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Be(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,o=0;if(n)for(var s=e.child;s!==null;)l|=s.lanes|s.childLanes,o|=s.subtreeFlags&65011712,o|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=o,e.childLanes=l,n}function J8(e,n,l){var o=n.pendingProps;switch(As(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(n),null;case 1:return Be(n),null;case 3:return l=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),Rn(Fe),ke(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ca(n)?An(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Hs())),Be(n),null;case 26:var s=n.type,p=n.memoizedState;return e===null?(An(n),p!==null?(Be(n),k9(n,p)):(Be(n),Mu(n,s,null,o,l))):p?p!==e.memoizedState?(An(n),Be(n),k9(n,p)):(Be(n),n.flags&=-16777217):(e=e.memoizedProps,e!==o&&An(n),Be(n),Mu(n,s,e,o,l)),null;case 27:if(wn(n),l=le.current,s=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&An(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return Be(n),null}e=te.current,Ca(n)?xd(n):(e=q2(s,o,l),n.stateNode=e,An(n))}return Be(n),null;case 5:if(wn(n),s=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&An(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return Be(n),null}if(p=te.current,Ca(n))xd(n);else{var v=Li(le.current);switch(p){case 1:p=v.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:p=v.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":p=v.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":p=v.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":p=v.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof o.is=="string"?v.createElement("select",{is:o.is}):v.createElement("select"),o.multiple?p.multiple=!0:o.size&&(p.size=o.size);break;default:p=typeof o.is=="string"?v.createElement(s,{is:o.is}):v.createElement(s)}}p[ct]=n,p[bt]=o;e:for(v=n.child;v!==null;){if(v.tag===5||v.tag===6)p.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===n)break e;for(;v.sibling===null;){if(v.return===null||v.return===n)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}n.stateNode=p;e:switch(dt(p,s,o),s){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&An(n)}}return Be(n),Mu(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,l),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&An(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(i(166));if(e=le.current,Ca(n)){if(e=n.stateNode,l=n.memoizedProps,o=null,s=st,s!==null)switch(s.tag){case 27:case 5:o=s.memoizedProps}e[ct]=n,e=!!(e.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||z2(e.nodeValue,l)),e||In(n,!0)}else e=Li(e).createTextNode(o),e[ct]=n,n.stateNode=e}return Be(n),null;case 31:if(l=n.memoizedState,e===null||e.memoizedState!==null){if(o=Ca(n),l!==null){if(e===null){if(!o)throw Error(i(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[ct]=n}else Ul(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Be(n),e=!1}else l=Hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return n.flags&256?(At(n),n):(At(n),null);if((n.flags&128)!==0)throw Error(i(558))}return Be(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Ca(n),o!==null&&o.dehydrated!==null){if(e===null){if(!s)throw Error(i(318));if(s=n.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));s[ct]=n}else Ul(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Be(n),s=!1}else s=Hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return n.flags&256?(At(n),n):(At(n),null)}return At(n),(n.flags&128)!==0?(n.lanes=l,n):(l=o!==null,e=e!==null&&e.memoizedState!==null,l&&(o=n.child,s=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(s=o.alternate.memoizedState.cachePool.pool),p=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==s&&(o.flags|=2048)),l!==e&&l&&(n.child.flags|=8192),mi(n,n.updateQueue),Be(n),null);case 4:return ke(),e===null&&Qu(n.stateNode.containerInfo),Be(n),null;case 10:return Rn(n.type),Be(n),null;case 19:if(q(Pe),o=n.memoizedState,o===null)return Be(n),null;if(s=(n.flags&128)!==0,p=o.rendering,p===null)if(s)$r(o,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=li(e),p!==null){for(n.flags|=128,$r(o,!1),e=p.updateQueue,n.updateQueue=e,mi(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)dd(l,e),l=l.sibling;return I(Pe,Pe.current&1|2),Ee&&Tn(n,o.treeForkCount),n.child}e=e.sibling}o.tail!==null&&it()>Ci&&(n.flags|=128,s=!0,$r(o,!1),n.lanes=4194304)}else{if(!s)if(e=li(p),e!==null){if(n.flags|=128,s=!0,e=e.updateQueue,n.updateQueue=e,mi(n,e),$r(o,!0),o.tail===null&&o.tailMode==="hidden"&&!p.alternate&&!Ee)return Be(n),null}else 2*it()-o.renderingStartTime>Ci&&l!==536870912&&(n.flags|=128,s=!0,$r(o,!1),n.lanes=4194304);o.isBackwards?(p.sibling=n.child,n.child=p):(e=o.last,e!==null?e.sibling=p:n.child=p,o.last=p)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=it(),e.sibling=null,l=Pe.current,I(Pe,s?l&1|2:l&1),Ee&&Tn(n,o.treeForkCount),e):(Be(n),null);case 22:case 23:return At(n),Ks(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(l&536870912)!==0&&(n.flags&128)===0&&(Be(n),n.subtreeFlags&6&&(n.flags|=8192)):Be(n),l=n.updateQueue,l!==null&&mi(n,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==l&&(n.flags|=2048),e!==null&&q(Xl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),Rn(Fe),Be(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function F8(e,n){switch(As(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Rn(Fe),ke(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return wn(n),null;case 31:if(n.memoizedState!==null){if(At(n),n.alternate===null)throw Error(i(340));Ul()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(At(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Ul()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return q(Pe),null;case 4:return ke(),null;case 10:return Rn(n.type),null;case 22:case 23:return At(n),Ks(),e!==null&&q(Xl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Rn(Fe),null;case 25:return null;default:return null}}function $9(e,n){switch(As(n),n.tag){case 3:Rn(Fe),ke();break;case 26:case 27:case 5:wn(n);break;case 4:ke();break;case 31:n.memoizedState!==null&&At(n);break;case 13:At(n);break;case 19:q(Pe);break;case 10:Rn(n.type);break;case 22:case 23:At(n),Ks(),e!==null&&q(Xl);break;case 24:Rn(Fe)}}function Br(e,n){try{var l=n.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var s=o.next;l=s;do{if((l.tag&e)===e){o=void 0;var p=l.create,v=l.inst;o=p(),v.destroy=o}l=l.next}while(l!==s)}}catch(w){Oe(n,n.return,w)}}function ol(e,n,l){try{var o=n.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var p=s.next;o=p;do{if((o.tag&e)===e){var v=o.inst,w=v.destroy;if(w!==void 0){v.destroy=void 0,s=n;var _=l,D=w;try{D()}catch(Y){Oe(s,_,Y)}}}o=o.next}while(o!==p)}}catch(Y){Oe(n,n.return,Y)}}function B9(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;try{Nd(n,l)}catch(o){Oe(e,e.return,o)}}}function U9(e,n,l){l.props=Pl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(o){Oe(e,n,o)}}function Ur(e,n){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof l=="function"?e.refCleanup=l(o):l.current=o}}catch(s){Oe(e,n,s)}}function fn(e,n){var l=e.ref,o=e.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(s){Oe(e,n,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(s){Oe(e,n,s)}else l.current=null}function Z9(e){var n=e.type,l=e.memoizedProps,o=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(s){Oe(e,e.return,s)}}function Eu(e,n,l){try{var o=e.stateNode;y7(o,e.type,l,n),o[bt]=n}catch(s){Oe(e,e.return,s)}}function Y9(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pl(e.type)||e.tag===4}function Tu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Y9(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&&pl(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 _u(e,n,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,n):(n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(e),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=jn));else if(o!==4&&(o===27&&pl(e.type)&&(l=e.stateNode,n=null),e=e.child,e!==null))for(_u(e,n,l),e=e.sibling;e!==null;)_u(e,n,l),e=e.sibling}function xi(e,n,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(o!==4&&(o===27&&pl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(xi(e,n,l),e=e.sibling;e!==null;)xi(e,n,l),e=e.sibling}function X9(e){var n=e.stateNode,l=e.memoizedProps;try{for(var o=e.type,s=n.attributes;s.length;)n.removeAttributeNode(s[0]);dt(n,o,l),n[ct]=e,n[bt]=l}catch(p){Oe(e,e.return,p)}}var zn=!1,et=!1,Ru=!1,q9=typeof WeakSet=="function"?WeakSet:Set,rt=null;function W8(e,n){if(e=e.containerInfo,Ju=ki,e=ld(e),ws(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var s=o.anchorOffset,p=o.focusNode;o=o.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var v=0,w=-1,_=-1,D=0,Y=0,Q=e,k=null;t:for(;;){for(var U;Q!==l||s!==0&&Q.nodeType!==3||(w=v+s),Q!==p||o!==0&&Q.nodeType!==3||(_=v+o),Q.nodeType===3&&(v+=Q.nodeValue.length),(U=Q.firstChild)!==null;)k=Q,Q=U;for(;;){if(Q===e)break t;if(k===l&&++D===s&&(w=v),k===p&&++Y===o&&(_=v),(U=Q.nextSibling)!==null)break;Q=k,k=Q.parentNode}Q=U}l=w===-1||_===-1?null:{start:w,end:_}}else l=null}l=l||{start:0,end:0}}else l=null;for(Fu={focusedElem:e,selectionRange:l},ki=!1,rt=n;rt!==null;)if(n=rt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,rt=e;else for(;rt!==null;){switch(n=rt,p=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(l=0;l<e.length;l++)s=e[l],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,l=n,s=p.memoizedProps,p=p.memoizedState,o=l.stateNode;try{var oe=Pl(l.type,s);e=o.getSnapshotBeforeUpdate(oe,p),o.__reactInternalSnapshotBeforeUpdate=e}catch(he){Oe(l,l.return,he)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,l=e.nodeType,l===9)e1(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":e1(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(i(163))}if(e=n.sibling,e!==null){e.return=n.return,rt=e;break}rt=n.return}}function G9(e,n,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:Vn(e,l),o&4&&Br(5,l);break;case 1:if(Vn(e,l),o&4)if(e=l.stateNode,n===null)try{e.componentDidMount()}catch(v){Oe(l,l.return,v)}else{var s=Pl(l.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(s,n,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Oe(l,l.return,v)}}o&64&&B9(l),o&512&&Ur(l,l.return);break;case 3:if(Vn(e,l),o&64&&(e=l.updateQueue,e!==null)){if(n=null,l.child!==null)switch(l.child.tag){case 27:case 5:n=l.child.stateNode;break;case 1:n=l.child.stateNode}try{Nd(e,n)}catch(v){Oe(l,l.return,v)}}break;case 27:n===null&&o&4&&X9(l);case 26:case 5:Vn(e,l),n===null&&o&4&&Z9(l),o&512&&Ur(l,l.return);break;case 12:Vn(e,l);break;case 31:Vn(e,l),o&4&&P9(e,l);break;case 13:Vn(e,l),o&4&&J9(e,l),o&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=i7.bind(null,l),T7(e,l))));break;case 22:if(o=l.memoizedState!==null||zn,!o){n=n!==null&&n.memoizedState!==null||et,s=zn;var p=et;zn=o,(et=n)&&!p?Dn(e,l,(l.subtreeFlags&8772)!==0):Vn(e,l),zn=s,et=p}break;case 30:break;default:Vn(e,l)}}function Q9(e){var n=e.alternate;n!==null&&(e.alternate=null,Q9(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&rs(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 Ye=null,wt=!1;function Hn(e,n,l){for(l=l.child;l!==null;)K9(e,n,l),l=l.sibling}function K9(e,n,l){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(fr,l)}catch{}switch(l.tag){case 26:et||fn(l,n),Hn(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:et||fn(l,n);var o=Ye,s=wt;pl(l.type)&&(Ye=l.stateNode,wt=!1),Hn(e,n,l),Jr(l.stateNode),Ye=o,wt=s;break;case 5:et||fn(l,n);case 6:if(o=Ye,s=wt,Ye=null,Hn(e,n,l),Ye=o,wt=s,Ye!==null)if(wt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(l.stateNode)}catch(p){Oe(l,n,p)}else try{Ye.removeChild(l.stateNode)}catch(p){Oe(l,n,p)}break;case 18:Ye!==null&&(wt?(e=Ye,B2(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Za(e)):B2(Ye,l.stateNode));break;case 4:o=Ye,s=wt,Ye=l.stateNode.containerInfo,wt=!0,Hn(e,n,l),Ye=o,wt=s;break;case 0:case 11:case 14:case 15:ol(2,l,n),et||ol(4,l,n),Hn(e,n,l);break;case 1:et||(fn(l,n),o=l.stateNode,typeof o.componentWillUnmount=="function"&&U9(l,n,o)),Hn(e,n,l);break;case 21:Hn(e,n,l);break;case 22:et=(o=et)||l.memoizedState!==null,Hn(e,n,l),et=o;break;default:Hn(e,n,l)}}function P9(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Za(e)}catch(l){Oe(n,n.return,l)}}}function J9(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Za(e)}catch(l){Oe(n,n.return,l)}}function I8(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new q9),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new q9),n;default:throw Error(i(435,e.tag))}}function vi(e,n){var l=I8(e);n.forEach(function(o){if(!l.has(o)){l.add(o);var s=c7.bind(null,e,o);o.then(s,s)}})}function St(e,n){var l=n.deletions;if(l!==null)for(var o=0;o<l.length;o++){var s=l[o],p=e,v=n,w=v;e:for(;w!==null;){switch(w.tag){case 27:if(pl(w.type)){Ye=w.stateNode,wt=!1;break e}break;case 5:Ye=w.stateNode,wt=!1;break e;case 3:case 4:Ye=w.stateNode.containerInfo,wt=!0;break e}w=w.return}if(Ye===null)throw Error(i(160));K9(p,v,s),Ye=null,wt=!1,p=s.alternate,p!==null&&(p.return=null),s.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)F9(n,e),n=n.sibling}var en=null;function F9(e,n){var l=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(n,e),jt(e),o&4&&(ol(3,e,e.return),Br(3,e),ol(5,e,e.return));break;case 1:St(n,e),jt(e),o&512&&(et||l===null||fn(l,l.return)),o&64&&zn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var s=en;if(St(n,e),jt(e),o&512&&(et||l===null||fn(l,l.return)),o&4){var p=l!==null?l.memoizedState:null;if(o=e.memoizedState,l===null)if(o===null)if(e.stateNode===null){e:{o=e.type,l=e.memoizedProps,s=s.ownerDocument||s;t:switch(o){case"title":p=s.getElementsByTagName("title")[0],(!p||p[hr]||p[ct]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=s.createElement(o),s.head.insertBefore(p,s.querySelector("head > title"))),dt(p,o,l),p[ct]=e,at(p),o=p;break e;case"link":var v=F2("link","href",s).get(o+(l.href||""));if(v){for(var w=0;w<v.length;w++)if(p=v[w],p.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&p.getAttribute("rel")===(l.rel==null?null:l.rel)&&p.getAttribute("title")===(l.title==null?null:l.title)&&p.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){v.splice(w,1);break t}}p=s.createElement(o),dt(p,o,l),s.head.appendChild(p);break;case"meta":if(v=F2("meta","content",s).get(o+(l.content||""))){for(w=0;w<v.length;w++)if(p=v[w],p.getAttribute("content")===(l.content==null?null:""+l.content)&&p.getAttribute("name")===(l.name==null?null:l.name)&&p.getAttribute("property")===(l.property==null?null:l.property)&&p.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&p.getAttribute("charset")===(l.charSet==null?null:l.charSet)){v.splice(w,1);break t}}p=s.createElement(o),dt(p,o,l),s.head.appendChild(p);break;default:throw Error(i(468,o))}p[ct]=e,at(p),o=p}e.stateNode=o}else W2(s,e.type,e.stateNode);else e.stateNode=J2(s,o,e.memoizedProps);else p!==o?(p===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):p.count--,o===null?W2(s,e.type,e.stateNode):J2(s,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Eu(e,e.memoizedProps,l.memoizedProps)}break;case 27:St(n,e),jt(e),o&512&&(et||l===null||fn(l,l.return)),l!==null&&o&4&&Eu(e,e.memoizedProps,l.memoizedProps);break;case 5:if(St(n,e),jt(e),o&512&&(et||l===null||fn(l,l.return)),e.flags&32){s=e.stateNode;try{fa(s,"")}catch(oe){Oe(e,e.return,oe)}}o&4&&e.stateNode!=null&&(s=e.memoizedProps,Eu(e,s,l!==null?l.memoizedProps:s)),o&1024&&(Ru=!0);break;case 6:if(St(n,e),jt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,l=e.stateNode;try{l.nodeValue=o}catch(oe){Oe(e,e.return,oe)}}break;case 3:if(zi=null,s=en,en=Oi(n.containerInfo),St(n,e),en=s,jt(e),o&4&&l!==null&&l.memoizedState.isDehydrated)try{Za(n.containerInfo)}catch(oe){Oe(e,e.return,oe)}Ru&&(Ru=!1,W9(e));break;case 4:o=en,en=Oi(e.stateNode.containerInfo),St(n,e),jt(e),en=o;break;case 12:St(n,e),jt(e);break;case 31:St(n,e),jt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,vi(e,o)));break;case 13:St(n,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(bi=it()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,vi(e,o)));break;case 22:s=e.memoizedState!==null;var _=l!==null&&l.memoizedState!==null,D=zn,Y=et;if(zn=D||s,et=Y||_,St(n,e),et=Y,zn=D,jt(e),o&8192)e:for(n=e.stateNode,n._visibility=s?n._visibility&-2:n._visibility|1,s&&(l===null||_||zn||et||Jl(e)),l=null,n=e;;){if(n.tag===5||n.tag===26){if(l===null){_=l=n;try{if(p=_.stateNode,s)v=p.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{w=_.stateNode;var Q=_.memoizedProps.style,k=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;w.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(oe){Oe(_,_.return,oe)}}}else if(n.tag===6){if(l===null){_=n;try{_.stateNode.nodeValue=s?"":_.memoizedProps}catch(oe){Oe(_,_.return,oe)}}}else if(n.tag===18){if(l===null){_=n;try{var U=_.stateNode;s?U2(U,!0):U2(_.stateNode,!1)}catch(oe){Oe(_,_.return,oe)}}}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;l===n&&(l=null),n=n.return}l===n&&(l=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,vi(e,l))));break;case 19:St(n,e),jt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,vi(e,o)));break;case 30:break;case 21:break;default:St(n,e),jt(e)}}function jt(e){var n=e.flags;if(n&2){try{for(var l,o=e.return;o!==null;){if(Y9(o)){l=o;break}o=o.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var s=l.stateNode,p=Tu(e);xi(e,p,s);break;case 5:var v=l.stateNode;l.flags&32&&(fa(v,""),l.flags&=-33);var w=Tu(e);xi(e,w,v);break;case 3:case 4:var _=l.stateNode.containerInfo,D=Tu(e);_u(e,D,_);break;default:throw Error(i(161))}}catch(Y){Oe(e,e.return,Y)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function W9(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;W9(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Vn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)G9(e,n.alternate,n),n=n.sibling}function Jl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:ol(4,n,n.return),Jl(n);break;case 1:fn(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&U9(n,n.return,l),Jl(n);break;case 27:Jr(n.stateNode);case 26:case 5:fn(n,n.return),Jl(n);break;case 22:n.memoizedState===null&&Jl(n);break;case 30:Jl(n);break;default:Jl(n)}e=e.sibling}}function Dn(e,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,s=e,p=n,v=p.flags;switch(p.tag){case 0:case 11:case 15:Dn(s,p,l),Br(4,p);break;case 1:if(Dn(s,p,l),o=p,s=o.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(D){Oe(o,o.return,D)}if(o=p,s=o.updateQueue,s!==null){var w=o.stateNode;try{var _=s.shared.hiddenCallbacks;if(_!==null)for(s.shared.hiddenCallbacks=null,s=0;s<_.length;s++)Rd(_[s],w)}catch(D){Oe(o,o.return,D)}}l&&v&64&&B9(p),Ur(p,p.return);break;case 27:X9(p);case 26:case 5:Dn(s,p,l),l&&o===null&&v&4&&Z9(p),Ur(p,p.return);break;case 12:Dn(s,p,l);break;case 31:Dn(s,p,l),l&&v&4&&P9(s,p);break;case 13:Dn(s,p,l),l&&v&4&&J9(s,p);break;case 22:p.memoizedState===null&&Dn(s,p,l),Ur(p,p.return);break;case 30:break;default:Dn(s,p,l)}n=n.sibling}}function Nu(e,n){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Tr(l))}function Lu(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Tr(e))}function tn(e,n,l,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)I9(e,n,l,o),n=n.sibling}function I9(e,n,l,o){var s=n.flags;switch(n.tag){case 0:case 11:case 15:tn(e,n,l,o),s&2048&&Br(9,n);break;case 1:tn(e,n,l,o);break;case 3:tn(e,n,l,o),s&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Tr(e)));break;case 12:if(s&2048){tn(e,n,l,o),e=n.stateNode;try{var p=n.memoizedProps,v=p.id,w=p.onPostCommit;typeof w=="function"&&w(v,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){Oe(n,n.return,_)}}else tn(e,n,l,o);break;case 31:tn(e,n,l,o);break;case 13:tn(e,n,l,o);break;case 23:break;case 22:p=n.stateNode,v=n.alternate,n.memoizedState!==null?p._visibility&2?tn(e,n,l,o):Zr(e,n):p._visibility&2?tn(e,n,l,o):(p._visibility|=2,La(e,n,l,o,(n.subtreeFlags&10256)!==0||!1)),s&2048&&Nu(v,n);break;case 24:tn(e,n,l,o),s&2048&&Lu(n.alternate,n);break;default:tn(e,n,l,o)}}function La(e,n,l,o,s){for(s=s&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=e,v=n,w=l,_=o,D=v.flags;switch(v.tag){case 0:case 11:case 15:La(p,v,w,_,s),Br(8,v);break;case 23:break;case 22:var Y=v.stateNode;v.memoizedState!==null?Y._visibility&2?La(p,v,w,_,s):Zr(p,v):(Y._visibility|=2,La(p,v,w,_,s)),s&&D&2048&&Nu(v.alternate,v);break;case 24:La(p,v,w,_,s),s&&D&2048&&Lu(v.alternate,v);break;default:La(p,v,w,_,s)}n=n.sibling}}function Zr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=e,o=n,s=o.flags;switch(o.tag){case 22:Zr(l,o),s&2048&&Nu(o.alternate,o);break;case 24:Zr(l,o),s&2048&&Lu(o.alternate,o);break;default:Zr(l,o)}n=n.sibling}}var Yr=8192;function Oa(e,n,l){if(e.subtreeFlags&Yr)for(e=e.child;e!==null;)e2(e,n,l),e=e.sibling}function e2(e,n,l){switch(e.tag){case 26:Oa(e,n,l),e.flags&Yr&&e.memoizedState!==null&&$7(l,en,e.memoizedState,e.memoizedProps);break;case 5:Oa(e,n,l);break;case 3:case 4:var o=en;en=Oi(e.stateNode.containerInfo),Oa(e,n,l),en=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Yr,Yr=16777216,Oa(e,n,l),Yr=o):Oa(e,n,l));break;default:Oa(e,n,l)}}function t2(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 Xr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var o=n[l];rt=o,l2(o,e)}t2(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)n2(e),e=e.sibling}function n2(e){switch(e.tag){case 0:case 11:case 15:Xr(e),e.flags&2048&&ol(9,e,e.return);break;case 3:Xr(e);break;case 12:Xr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,yi(e)):Xr(e);break;default:Xr(e)}}function yi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var o=n[l];rt=o,l2(o,e)}t2(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:ol(8,n,n.return),yi(n);break;case 22:l=n.stateNode,l._visibility&2&&(l._visibility&=-3,yi(n));break;default:yi(n)}e=e.sibling}}function l2(e,n){for(;rt!==null;){var l=rt;switch(l.tag){case 0:case 11:case 15:ol(8,l,n);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Tr(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,rt=o;else e:for(l=e;rt!==null;){o=rt;var s=o.sibling,p=o.return;if(Q9(o),o===l){rt=null;break e}if(s!==null){s.return=p,rt=s;break e}rt=p}}}var e7={getCacheForType:function(e){var n=ut(Fe),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l},cacheSignal:function(){return ut(Fe).controller.signal}},t7=typeof WeakMap=="function"?WeakMap:Map,Re=0,De=null,we=null,je=0,Le=0,zt=null,il=!1,Aa=!1,Ou=!1,kn=0,qe=0,cl=0,Fl=0,Au=0,Ht=0,za=0,qr=null,Mt=null,zu=!1,bi=0,a2=0,Ci=1/0,wi=null,sl=null,nt=0,ul=null,Ha=null,$n=0,Hu=0,Vu=null,r2=null,Gr=0,Du=null;function Vt(){return(Re&2)!==0&&je!==0?je&-je:A.T!==null?Yu():Cf()}function o2(){if(Ht===0)if((je&536870912)===0||Ee){var e=No;No<<=1,(No&3932160)===0&&(No=262144),Ht=e}else Ht=536870912;return e=Ot.current,e!==null&&(e.flags|=32),Ht}function Et(e,n,l){(e===De&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(Va(e,0),fl(e,je,Ht,!1)),pr(e,l),((Re&2)===0||e!==De)&&(e===De&&((Re&2)===0&&(Fl|=l),qe===4&&fl(e,je,Ht,!1)),dn(e))}function i2(e,n,l){if((Re&6)!==0)throw Error(i(327));var o=!l&&(n&127)===0&&(n&e.expiredLanes)===0||dr(e,n),s=o?a7(e,n):$u(e,n,!0),p=o;do{if(s===0){Aa&&!o&&fl(e,n,0,!1);break}else{if(l=e.current.alternate,p&&!n7(l)){s=$u(e,n,!1),p=!1;continue}if(s===2){if(p=n,e.errorRecoveryDisabledLanes&p)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){n=v;e:{var w=e;s=qr;var _=w.current.memoizedState.isDehydrated;if(_&&(Va(w,v).flags|=256),v=$u(w,v,!1),v!==2){if(Ou&&!_){w.errorRecoveryDisabledLanes|=p,Fl|=p,s=4;break e}p=Mt,Mt=s,p!==null&&(Mt===null?Mt=p:Mt.push.apply(Mt,p))}s=v}if(p=!1,s!==2)continue}}if(s===1){Va(e,0),fl(e,n,0,!0);break}e:{switch(o=e,p=s,p){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:fl(o,n,Ht,!il);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(s=bi+300-it(),10<s)){if(fl(o,n,Ht,!il),Oo(o,0,!0)!==0)break e;$n=n,o.timeoutHandle=k2(c2.bind(null,o,l,Mt,wi,zu,n,Ht,Fl,za,il,p,"Throttled",-0,0),s);break e}c2(o,l,Mt,wi,zu,n,Ht,Fl,za,il,p,null,-0,0)}}break}while(!0);dn(e)}function c2(e,n,l,o,s,p,v,w,_,D,Y,Q,k,U){if(e.timeoutHandle=-1,Q=n.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:jn},e2(n,p,Q);var oe=(p&62914560)===p?bi-it():(p&4194048)===p?a2-it():0;if(oe=B7(Q,oe),oe!==null){$n=p,e.cancelPendingCommit=oe(m2.bind(null,e,n,p,l,o,s,v,w,_,Y,Q,null,k,U)),fl(e,p,v,!D);return}}m2(e,n,p,l,o,s,v,w,_)}function n7(e){for(var n=e;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var s=l[o],p=s.getSnapshot;s=s.value;try{if(!Nt(p(),s))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;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 fl(e,n,l,o){n&=~Au,n&=~Fl,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var s=n;0<s;){var p=31-Rt(s),v=1<<p;o[p]=-1,s&=~v}l!==0&&vf(e,l,n)}function Si(){return(Re&6)===0?(Qr(0),!1):!0}function ku(){if(we!==null){if(Le===0)var e=we.return;else e=we,_n=Zl=null,eu(e),Ea=null,Rr=0,e=we;for(;e!==null;)$9(e.alternate,e),e=e.return;we=null}}function Va(e,n){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,w7(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),$n=0,ku(),De=e,we=l=En(e.current,null),je=n,Le=0,zt=null,il=!1,Aa=dr(e,n),Ou=!1,za=Ht=Au=Fl=cl=qe=0,Mt=qr=null,zu=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var s=31-Rt(o),p=1<<s;n|=e[s],o&=~p}return kn=n,Xo(),l}function s2(e,n){ye=null,A.H=Dr,n===Ma||n===Wo?(n=Md(),Le=3):n===Zs?(n=Md(),Le=4):Le=n===mu?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,zt=n,we===null&&(qe=1,di(e,Xt(n,e.current)))}function u2(){var e=Ot.current;return e===null?!0:(je&4194048)===je?Kt===null:(je&62914560)===je||(je&536870912)!==0?e===Kt:!1}function f2(){var e=A.H;return A.H=Dr,e===null?Dr:e}function d2(){var e=A.A;return A.A=e7,e}function ji(){qe=4,il||(je&4194048)!==je&&Ot.current!==null||(Aa=!0),(cl&134217727)===0&&(Fl&134217727)===0||De===null||fl(De,je,Ht,!1)}function $u(e,n,l){var o=Re;Re|=2;var s=f2(),p=d2();(De!==e||je!==n)&&(wi=null,Va(e,n)),n=!1;var v=qe;e:do try{if(Le!==0&&we!==null){var w=we,_=zt;switch(Le){case 8:ku(),v=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(n=!0);var D=Le;if(Le=0,zt=null,Da(e,w,_,D),l&&Aa){v=0;break e}break;default:D=Le,Le=0,zt=null,Da(e,w,_,D)}}l7(),v=qe;break}catch(Y){s2(e,Y)}while(!0);return n&&e.shellSuspendCounter++,_n=Zl=null,Re=o,A.H=s,A.A=p,we===null&&(De=null,je=0,Xo()),v}function l7(){for(;we!==null;)p2(we)}function a7(e,n){var l=Re;Re|=2;var o=f2(),s=d2();De!==e||je!==n?(wi=null,Ci=it()+500,Va(e,n)):Aa=dr(e,n);e:do try{if(Le!==0&&we!==null){n=we;var p=zt;t:switch(Le){case 1:Le=0,zt=null,Da(e,n,p,1);break;case 2:case 9:if(Sd(p)){Le=0,zt=null,h2(n);break}n=function(){Le!==2&&Le!==9||De!==e||(Le=7),dn(e)},p.then(n,n);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Sd(p)?(Le=0,zt=null,h2(n)):(Le=0,zt=null,Da(e,n,p,7));break;case 5:var v=null;switch(we.tag){case 26:v=we.memoizedState;case 5:case 27:var w=we;if(v?I2(v):w.stateNode.complete){Le=0,zt=null;var _=w.sibling;if(_!==null)we=_;else{var D=w.return;D!==null?(we=D,Mi(D)):we=null}break t}}Le=0,zt=null,Da(e,n,p,5);break;case 6:Le=0,zt=null,Da(e,n,p,6);break;case 8:ku(),qe=6;break e;default:throw Error(i(462))}}r7();break}catch(Y){s2(e,Y)}while(!0);return _n=Zl=null,A.H=o,A.A=s,Re=l,we!==null?0:(De=null,je=0,Xo(),qe)}function r7(){for(;we!==null&&!yt();)p2(we)}function p2(e){var n=D9(e.alternate,e,kn);e.memoizedProps=e.pendingProps,n===null?Mi(e):we=n}function h2(e){var n=e,l=n.alternate;switch(n.tag){case 15:case 0:n=L9(l,n,n.pendingProps,n.type,void 0,je);break;case 11:n=L9(l,n,n.pendingProps,n.type.render,n.ref,je);break;case 5:eu(n);default:$9(l,n),n=we=dd(n,kn),n=D9(l,n,kn)}e.memoizedProps=e.pendingProps,n===null?Mi(e):we=n}function Da(e,n,l,o){_n=Zl=null,eu(n),Ea=null,Rr=0;var s=n.return;try{if(Q8(e,s,n,l,je)){qe=1,di(e,Xt(l,e.current)),we=null;return}}catch(p){if(s!==null)throw we=s,p;qe=1,di(e,Xt(l,e.current)),we=null;return}n.flags&32768?(Ee||o===1?e=!0:Aa||(je&536870912)!==0?e=!1:(il=e=!0,(o===2||o===9||o===3||o===6)&&(o=Ot.current,o!==null&&o.tag===13&&(o.flags|=16384))),g2(n,e)):Mi(n)}function Mi(e){var n=e;do{if((n.flags&32768)!==0){g2(n,il);return}e=n.return;var l=J8(n.alternate,n,kn);if(l!==null){we=l;return}if(n=n.sibling,n!==null){we=n;return}we=n=e}while(n!==null);qe===0&&(qe=5)}function g2(e,n){do{var l=F8(e.alternate,e);if(l!==null){l.flags&=32767,we=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){we=e;return}we=e=l}while(e!==null);qe=6,we=null}function m2(e,n,l,o,s,p,v,w,_){e.cancelPendingCommit=null;do Ei();while(nt!==0);if((Re&6)!==0)throw Error(i(327));if(n!==null){if(n===e.current)throw Error(i(177));if(p=n.lanes|n.childLanes,p|=Ts,kh(e,l,p,v,w,_),e===De&&(we=De=null,je=0),Ha=n,ul=e,$n=l,Hu=p,Vu=s,r2=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,s7(_o,function(){return C2(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=A.T,A.T=null,s=B.p,B.p=2,v=Re,Re|=4;try{W8(e,n,l)}finally{Re=v,B.p=s,A.T=o}}nt=1,x2(),v2(),y2()}}function x2(){if(nt===1){nt=0;var e=ul,n=Ha,l=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var o=B.p;B.p=2;var s=Re;Re|=4;try{F9(n,e);var p=Fu,v=ld(e.containerInfo),w=p.focusedElem,_=p.selectionRange;if(v!==w&&w&&w.ownerDocument&&nd(w.ownerDocument.documentElement,w)){if(_!==null&&ws(w)){var D=_.start,Y=_.end;if(Y===void 0&&(Y=D),"selectionStart"in w)w.selectionStart=D,w.selectionEnd=Math.min(Y,w.value.length);else{var Q=w.ownerDocument||document,k=Q&&Q.defaultView||window;if(k.getSelection){var U=k.getSelection(),oe=w.textContent.length,he=Math.min(_.start,oe),He=_.end===void 0?he:Math.min(_.end,oe);!U.extend&&he>He&&(v=He,He=he,he=v);var z=td(w,he),L=td(w,He);if(z&&L&&(U.rangeCount!==1||U.anchorNode!==z.node||U.anchorOffset!==z.offset||U.focusNode!==L.node||U.focusOffset!==L.offset)){var V=Q.createRange();V.setStart(z.node,z.offset),U.removeAllRanges(),he>He?(U.addRange(V),U.extend(L.node,L.offset)):(V.setEnd(L.node,L.offset),U.addRange(V))}}}}for(Q=[],U=w;U=U.parentNode;)U.nodeType===1&&Q.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<Q.length;w++){var G=Q[w];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}ki=!!Ju,Fu=Ju=null}finally{Re=s,B.p=o,A.T=l}}e.current=n,nt=2}}function v2(){if(nt===2){nt=0;var e=ul,n=Ha,l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var o=B.p;B.p=2;var s=Re;Re|=4;try{G9(e,n.alternate,n)}finally{Re=s,B.p=o,A.T=l}}nt=3}}function y2(){if(nt===4||nt===3){nt=0,Al();var e=ul,n=Ha,l=$n,o=r2;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?nt=5:(nt=0,Ha=ul=null,b2(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(sl=null),ls(l),n=n.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(fr,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=A.T,s=B.p,B.p=2,A.T=null;try{for(var p=e.onRecoverableError,v=0;v<o.length;v++){var w=o[v];p(w.value,{componentStack:w.stack})}}finally{A.T=n,B.p=s}}($n&3)!==0&&Ei(),dn(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===Du?Gr++:(Gr=0,Du=e):Gr=0,Qr(0)}}function b2(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Tr(n)))}function Ei(){return x2(),v2(),y2(),C2()}function C2(){if(nt!==5)return!1;var e=ul,n=Hu;Hu=0;var l=ls($n),o=A.T,s=B.p;try{B.p=32>l?32:l,A.T=null,l=Vu,Vu=null;var p=ul,v=$n;if(nt=0,Ha=ul=null,$n=0,(Re&6)!==0)throw Error(i(331));var w=Re;if(Re|=4,n2(p.current),I9(p,p.current,v,l),Re=w,Qr(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(fr,p)}catch{}return!0}finally{B.p=s,A.T=o,b2(e,n)}}function w2(e,n,l){n=Xt(l,n),n=gu(e.stateNode,n,2),e=ll(e,n,2),e!==null&&(pr(e,2),dn(e))}function Oe(e,n,l){if(e.tag===3)w2(e,e,l);else for(;n!==null;){if(n.tag===3){w2(n,e,l);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(sl===null||!sl.has(o))){e=Xt(l,e),l=S9(2),o=ll(n,l,2),o!==null&&(j9(l,o,n,e),pr(o,2),dn(o));break}}n=n.return}}function Bu(e,n,l){var o=e.pingCache;if(o===null){o=e.pingCache=new t7;var s=new Set;o.set(n,s)}else s=o.get(n),s===void 0&&(s=new Set,o.set(n,s));s.has(l)||(Ou=!0,s.add(l),e=o7.bind(null,e,n,l),n.then(e,e))}function o7(e,n,l){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,De===e&&(je&l)===l&&(qe===4||qe===3&&(je&62914560)===je&&300>it()-bi?(Re&2)===0&&Va(e,0):Au|=l,za===je&&(za=0)),dn(e)}function S2(e,n){n===0&&(n=xf()),e=$l(e,n),e!==null&&(pr(e,n),dn(e))}function i7(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),S2(e,l)}function c7(e,n){var l=0;switch(e.tag){case 31:case 13:var o=e.stateNode,s=e.memoizedState;s!==null&&(l=s.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(n),S2(e,l)}function s7(e,n){return aa(e,n)}var Ti=null,ka=null,Uu=!1,_i=!1,Zu=!1,dl=0;function dn(e){e!==ka&&e.next===null&&(ka===null?Ti=ka=e:ka=ka.next=e),_i=!0,Uu||(Uu=!0,f7())}function Qr(e,n){if(!Zu&&_i){Zu=!0;do for(var l=!1,o=Ti;o!==null;){if(e!==0){var s=o.pendingLanes;if(s===0)var p=0;else{var v=o.suspendedLanes,w=o.pingedLanes;p=(1<<31-Rt(42|e)+1)-1,p&=s&~(v&~w),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(l=!0,T2(o,p))}else p=je,p=Oo(o,o===De?p:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(p&3)===0||dr(o,p)||(l=!0,T2(o,p));o=o.next}while(l);Zu=!1}}function u7(){j2()}function j2(){_i=Uu=!1;var e=0;dl!==0&&C7()&&(e=dl);for(var n=it(),l=null,o=Ti;o!==null;){var s=o.next,p=M2(o,n);p===0?(o.next=null,l===null?Ti=s:l.next=s,s===null&&(ka=l)):(l=o,(e!==0||(p&3)!==0)&&(_i=!0)),o=s}nt!==0&&nt!==5||Qr(e),dl!==0&&(dl=0)}function M2(e,n){for(var l=e.suspendedLanes,o=e.pingedLanes,s=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var v=31-Rt(p),w=1<<v,_=s[v];_===-1?((w&l)===0||(w&o)!==0)&&(s[v]=Dh(w,n)):_<=n&&(e.expiredLanes|=w),p&=~w}if(n=De,l=je,l=Oo(e,e===n?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,l===0||e===n&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&me(o),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||dr(e,l)){if(n=l&-l,n===e.callbackPriority)return n;switch(o!==null&&me(o),ls(l)){case 2:case 8:l=gf;break;case 32:l=_o;break;case 268435456:l=mf;break;default:l=_o}return o=E2.bind(null,e),l=aa(l,o),e.callbackPriority=n,e.callbackNode=l,n}return o!==null&&o!==null&&me(o),e.callbackPriority=2,e.callbackNode=null,2}function E2(e,n){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ei()&&e.callbackNode!==l)return null;var o=je;return o=Oo(e,e===De?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(i2(e,o,n),M2(e,it()),e.callbackNode!=null&&e.callbackNode===l?E2.bind(null,e):null)}function T2(e,n){if(Ei())return null;i2(e,n,!0)}function f7(){S7(function(){(Re&6)!==0?aa(hf,u7):j2()})}function Yu(){if(dl===0){var e=Sa;e===0&&(e=Ro,Ro<<=1,(Ro&261888)===0&&(Ro=256)),dl=e}return dl}function _2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Vo(""+e)}function R2(e,n){var l=n.ownerDocument.createElement("input");return l.name=n.name,l.value=n.value,e.id&&l.setAttribute("form",e.id),n.parentNode.insertBefore(l,n),e=new FormData(e),l.parentNode.removeChild(l),e}function d7(e,n,l,o,s){if(n==="submit"&&l&&l.stateNode===s){var p=_2((s[bt]||null).action),v=o.submitter;v&&(n=(n=v[bt]||null)?_2(n.formAction):v.getAttribute("formAction"),n!==null&&(p=n,v=null));var w=new Bo("action","action",null,o,s);e.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(dl!==0){var _=v?R2(s,v):new FormData(s);su(l,{pending:!0,data:_,method:s.method,action:p},null,_)}}else typeof p=="function"&&(w.preventDefault(),_=v?R2(s,v):new FormData(s),su(l,{pending:!0,data:_,method:s.method,action:p},p,_))},currentTarget:s}]})}}for(var Xu=0;Xu<Es.length;Xu++){var qu=Es[Xu],p7=qu.toLowerCase(),h7=qu[0].toUpperCase()+qu.slice(1);It(p7,"on"+h7)}It(od,"onAnimationEnd"),It(id,"onAnimationIteration"),It(cd,"onAnimationStart"),It("dblclick","onDoubleClick"),It("focusin","onFocus"),It("focusout","onBlur"),It(N8,"onTransitionRun"),It(L8,"onTransitionStart"),It(O8,"onTransitionCancel"),It(sd,"onTransitionEnd"),sa("onMouseEnter",["mouseout","mouseover"]),sa("onMouseLeave",["mouseout","mouseover"]),sa("onPointerEnter",["pointerout","pointerover"]),sa("onPointerLeave",["pointerout","pointerover"]),Hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kr="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(" "),g7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kr));function N2(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var o=e[l],s=o.event;o=o.listeners;e:{var p=void 0;if(n)for(var v=o.length-1;0<=v;v--){var w=o[v],_=w.instance,D=w.currentTarget;if(w=w.listener,_!==p&&s.isPropagationStopped())break e;p=w,s.currentTarget=D;try{p(s)}catch(Y){Yo(Y)}s.currentTarget=null,p=_}else for(v=0;v<o.length;v++){if(w=o[v],_=w.instance,D=w.currentTarget,w=w.listener,_!==p&&s.isPropagationStopped())break e;p=w,s.currentTarget=D;try{p(s)}catch(Y){Yo(Y)}s.currentTarget=null,p=_}}}}function Se(e,n){var l=n[as];l===void 0&&(l=n[as]=new Set);var o=e+"__bubble";l.has(o)||(L2(n,e,2,!1),l.add(o))}function Gu(e,n,l){var o=0;n&&(o|=4),L2(l,e,o,n)}var Ri="_reactListening"+Math.random().toString(36).slice(2);function Qu(e){if(!e[Ri]){e[Ri]=!0,jf.forEach(function(l){l!=="selectionchange"&&(g7.has(l)||Gu(l,!1,e),Gu(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ri]||(n[Ri]=!0,Gu("selectionchange",!1,n))}}function L2(e,n,l,o){switch(o5(n)){case 2:var s=Y7;break;case 8:s=X7;break;default:s=c1}l=s.bind(null,n,l,e),s=void 0,!ps||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(s=!0),o?s!==void 0?e.addEventListener(n,l,{capture:!0,passive:s}):e.addEventListener(n,l,!0):s!==void 0?e.addEventListener(n,l,{passive:s}):e.addEventListener(n,l,!1)}function Ku(e,n,l,o,s){var p=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var v=o.tag;if(v===3||v===4){var w=o.stateNode.containerInfo;if(w===s)break;if(v===4)for(v=o.return;v!==null;){var _=v.tag;if((_===3||_===4)&&v.stateNode.containerInfo===s)return;v=v.return}for(;w!==null;){if(v=oa(w),v===null)return;if(_=v.tag,_===5||_===6||_===26||_===27){o=p=v;continue e}w=w.parentNode}}o=o.return}Vf(function(){var D=p,Y=fs(l),Q=[];e:{var k=ud.get(e);if(k!==void 0){var U=Bo,oe=e;switch(e){case"keypress":if(ko(l)===0)break e;case"keydown":case"keyup":U=c8;break;case"focusin":oe="focus",U=xs;break;case"focusout":oe="blur",U=xs;break;case"beforeblur":case"afterblur":U=xs;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=$f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Jh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=f8;break;case od:case id:case cd:U=Ih;break;case sd:U=p8;break;case"scroll":case"scrollend":U=Kh;break;case"wheel":U=g8;break;case"copy":case"cut":case"paste":U=t8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Uf;break;case"toggle":case"beforetoggle":U=x8}var he=(n&4)!==0,He=!he&&(e==="scroll"||e==="scrollend"),z=he?k!==null?k+"Capture":null:k;he=[];for(var L=D,V;L!==null;){var G=L;if(V=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||V===null||z===null||(G=mr(L,z),G!=null&&he.push(Pr(L,G,V))),He)break;L=L.return}0<he.length&&(k=new U(k,oe,null,l,Y),Q.push({event:k,listeners:he}))}}if((n&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",k&&l!==us&&(oe=l.relatedTarget||l.fromElement)&&(oa(oe)||oe[ra]))break e;if((U||k)&&(k=Y.window===Y?Y:(k=Y.ownerDocument)?k.defaultView||k.parentWindow:window,U?(oe=l.relatedTarget||l.toElement,U=D,oe=oe?oa(oe):null,oe!==null&&(He=u(oe),he=oe.tag,oe!==He||he!==5&&he!==27&&he!==6)&&(oe=null)):(U=null,oe=D),U!==oe)){if(he=$f,G="onMouseLeave",z="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(he=Uf,G="onPointerLeave",z="onPointerEnter",L="pointer"),He=U==null?k:gr(U),V=oe==null?k:gr(oe),k=new he(G,L+"leave",U,l,Y),k.target=He,k.relatedTarget=V,G=null,oa(Y)===D&&(he=new he(z,L+"enter",oe,l,Y),he.target=V,he.relatedTarget=He,G=he),He=G,U&&oe)t:{for(he=m7,z=U,L=oe,V=0,G=z;G;G=he(G))V++;G=0;for(var ue=L;ue;ue=he(ue))G++;for(;0<V-G;)z=he(z),V--;for(;0<G-V;)L=he(L),G--;for(;V--;){if(z===L||L!==null&&z===L.alternate){he=z;break t}z=he(z),L=he(L)}he=null}else he=null;U!==null&&O2(Q,k,U,he,!1),oe!==null&&He!==null&&O2(Q,He,oe,he,!0)}}e:{if(k=D?gr(D):window,U=k.nodeName&&k.nodeName.toLowerCase(),U==="select"||U==="input"&&k.type==="file")var Te=Pf;else if(Qf(k))if(Jf)Te=T8;else{Te=M8;var se=j8}else U=k.nodeName,!U||U.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?D&&ss(D.elementType)&&(Te=Pf):Te=E8;if(Te&&(Te=Te(e,D))){Kf(Q,Te,l,Y);break e}se&&se(e,k,D),e==="focusout"&&D&&k.type==="number"&&D.memoizedProps.value!=null&&cs(k,"number",k.value)}switch(se=D?gr(D):window,e){case"focusin":(Qf(se)||se.contentEditable==="true")&&(ga=se,Ss=D,jr=null);break;case"focusout":jr=Ss=ga=null;break;case"mousedown":js=!0;break;case"contextmenu":case"mouseup":case"dragend":js=!1,ad(Q,l,Y);break;case"selectionchange":if(R8)break;case"keydown":case"keyup":ad(Q,l,Y)}var be;if(ys)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else ha?qf(e,l)&&(Me="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Me="onCompositionStart");Me&&(Zf&&l.locale!=="ko"&&(ha||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&ha&&(be=Df()):(Jn=Y,hs="value"in Jn?Jn.value:Jn.textContent,ha=!0)),se=Ni(D,Me),0<se.length&&(Me=new Bf(Me,e,null,l,Y),Q.push({event:Me,listeners:se}),be?Me.data=be:(be=Gf(l),be!==null&&(Me.data=be)))),(be=y8?b8(e,l):C8(e,l))&&(Me=Ni(D,"onBeforeInput"),0<Me.length&&(se=new Bf("onBeforeInput","beforeinput",null,l,Y),Q.push({event:se,listeners:Me}),se.data=be)),d7(Q,e,D,l,Y)}N2(Q,n)})}function Pr(e,n,l){return{instance:e,listener:n,currentTarget:l}}function Ni(e,n){for(var l=n+"Capture",o=[];e!==null;){var s=e,p=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||p===null||(s=mr(e,l),s!=null&&o.unshift(Pr(e,s,p)),s=mr(e,n),s!=null&&o.push(Pr(e,s,p))),e.tag===3)return o;e=e.return}return[]}function m7(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function O2(e,n,l,o,s){for(var p=n._reactName,v=[];l!==null&&l!==o;){var w=l,_=w.alternate,D=w.stateNode;if(w=w.tag,_!==null&&_===o)break;w!==5&&w!==26&&w!==27||D===null||(_=D,s?(D=mr(l,p),D!=null&&v.unshift(Pr(l,D,_))):s||(D=mr(l,p),D!=null&&v.push(Pr(l,D,_)))),l=l.return}v.length!==0&&e.push({event:n,listeners:v})}var x7=/\r\n?/g,v7=/\u0000|\uFFFD/g;function A2(e){return(typeof e=="string"?e:""+e).replace(x7,`
|
|
49
|
+
`).replace(v7,"")}function z2(e,n){return n=A2(n),A2(e)===n}function ze(e,n,l,o,s,p){switch(l){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||fa(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&fa(e,""+o);break;case"className":zo(e,"class",o);break;case"tabIndex":zo(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":zo(e,l,o);break;case"style":zf(e,o,p);break;case"data":if(n!=="object"){zo(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||l!=="href")){e.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=Vo(""+o),e.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(l==="formAction"?(n!=="input"&&ze(e,n,"name",s.name,s,null),ze(e,n,"formEncType",s.formEncType,s,null),ze(e,n,"formMethod",s.formMethod,s,null),ze(e,n,"formTarget",s.formTarget,s,null)):(ze(e,n,"encType",s.encType,s,null),ze(e,n,"method",s.method,s,null),ze(e,n,"target",s.target,s,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=Vo(""+o),e.setAttribute(l,o);break;case"onClick":o!=null&&(e.onclick=jn);break;case"onScroll":o!=null&&Se("scroll",e);break;case"onScrollEnd":o!=null&&Se("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}l=Vo(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""+o):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":o===!0?e.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,o):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(l,o):e.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(l):e.setAttribute(l,o);break;case"popover":Se("beforetoggle",e),Se("toggle",e),Ao(e,"popover",o);break;case"xlinkActuate":Sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Sn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Sn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Sn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Sn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ao(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Gh.get(l)||l,Ao(e,l,o))}}function Pu(e,n,l,o,s,p){switch(l){case"style":zf(e,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof o=="string"?fa(e,o):(typeof o=="number"||typeof o=="bigint")&&fa(e,""+o);break;case"onScroll":o!=null&&Se("scroll",e);break;case"onScrollEnd":o!=null&&Se("scrollend",e);break;case"onClick":o!=null&&(e.onclick=jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),n=l.slice(2,s?l.length-7:void 0),p=e[bt]||null,p=p!=null?p[l]:null,typeof p=="function"&&e.removeEventListener(n,p,s),typeof o=="function")){typeof p!="function"&&p!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(n,o,s);break e}l in e?e[l]=o:o===!0?e.setAttribute(l,""):Ao(e,l,o)}}}function dt(e,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var o=!1,s=!1,p;for(p in l)if(l.hasOwnProperty(p)){var v=l[p];if(v!=null)switch(p){case"src":o=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:ze(e,n,p,v,l,null)}}s&&ze(e,n,"srcSet",l.srcSet,l,null),o&&ze(e,n,"src",l.src,l,null);return;case"input":Se("invalid",e);var w=p=v=s=null,_=null,D=null;for(o in l)if(l.hasOwnProperty(o)){var Y=l[o];if(Y!=null)switch(o){case"name":s=Y;break;case"type":v=Y;break;case"checked":_=Y;break;case"defaultChecked":D=Y;break;case"value":p=Y;break;case"defaultValue":w=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,n));break;default:ze(e,n,o,Y,l,null)}}Nf(e,p,w,_,D,v,s,!1);return;case"select":Se("invalid",e),o=v=p=null;for(s in l)if(l.hasOwnProperty(s)&&(w=l[s],w!=null))switch(s){case"value":p=w;break;case"defaultValue":v=w;break;case"multiple":o=w;default:ze(e,n,s,w,l,null)}n=p,l=v,e.multiple=!!o,n!=null?ua(e,!!o,n,!1):l!=null&&ua(e,!!o,l,!0);return;case"textarea":Se("invalid",e),p=s=o=null;for(v in l)if(l.hasOwnProperty(v)&&(w=l[v],w!=null))switch(v){case"value":o=w;break;case"defaultValue":s=w;break;case"children":p=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(i(91));break;default:ze(e,n,v,w,l,null)}Of(e,o,s,p);return;case"option":for(_ in l)if(l.hasOwnProperty(_)&&(o=l[_],o!=null))switch(_){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:ze(e,n,_,o,l,null)}return;case"dialog":Se("beforetoggle",e),Se("toggle",e),Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(o=0;o<Kr.length;o++)Se(Kr[o],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("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(D in l)if(l.hasOwnProperty(D)&&(o=l[D],o!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:ze(e,n,D,o,l,null)}return;default:if(ss(n)){for(Y in l)l.hasOwnProperty(Y)&&(o=l[Y],o!==void 0&&Pu(e,n,Y,o,l,void 0));return}}for(w in l)l.hasOwnProperty(w)&&(o=l[w],o!=null&&ze(e,n,w,o,l,null))}function y7(e,n,l,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,p=null,v=null,w=null,_=null,D=null,Y=null;for(U in l){var Q=l[U];if(l.hasOwnProperty(U)&&Q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":_=Q;default:o.hasOwnProperty(U)||ze(e,n,U,null,o,Q)}}for(var k in o){var U=o[k];if(Q=l[k],o.hasOwnProperty(k)&&(U!=null||Q!=null))switch(k){case"type":p=U;break;case"name":s=U;break;case"checked":D=U;break;case"defaultChecked":Y=U;break;case"value":v=U;break;case"defaultValue":w=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(i(137,n));break;default:U!==Q&&ze(e,n,k,U,o,Q)}}is(e,v,w,_,D,Y,p,s);return;case"select":U=v=w=k=null;for(p in l)if(_=l[p],l.hasOwnProperty(p)&&_!=null)switch(p){case"value":break;case"multiple":U=_;default:o.hasOwnProperty(p)||ze(e,n,p,null,o,_)}for(s in o)if(p=o[s],_=l[s],o.hasOwnProperty(s)&&(p!=null||_!=null))switch(s){case"value":k=p;break;case"defaultValue":w=p;break;case"multiple":v=p;default:p!==_&&ze(e,n,s,p,o,_)}n=w,l=v,o=U,k!=null?ua(e,!!l,k,!1):!!o!=!!l&&(n!=null?ua(e,!!l,n,!0):ua(e,!!l,l?[]:"",!1));return;case"textarea":U=k=null;for(w in l)if(s=l[w],l.hasOwnProperty(w)&&s!=null&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:ze(e,n,w,null,o,s)}for(v in o)if(s=o[v],p=l[v],o.hasOwnProperty(v)&&(s!=null||p!=null))switch(v){case"value":k=s;break;case"defaultValue":U=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==p&&ze(e,n,v,s,o,p)}Lf(e,k,U);return;case"option":for(var oe in l)if(k=l[oe],l.hasOwnProperty(oe)&&k!=null&&!o.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:ze(e,n,oe,null,o,k)}for(_ in o)if(k=o[_],U=l[_],o.hasOwnProperty(_)&&k!==U&&(k!=null||U!=null))switch(_){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:ze(e,n,_,k,o,U)}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 he in l)k=l[he],l.hasOwnProperty(he)&&k!=null&&!o.hasOwnProperty(he)&&ze(e,n,he,null,o,k);for(D in o)if(k=o[D],U=l[D],o.hasOwnProperty(D)&&k!==U&&(k!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(i(137,n));break;default:ze(e,n,D,k,o,U)}return;default:if(ss(n)){for(var He in l)k=l[He],l.hasOwnProperty(He)&&k!==void 0&&!o.hasOwnProperty(He)&&Pu(e,n,He,void 0,o,k);for(Y in o)k=o[Y],U=l[Y],!o.hasOwnProperty(Y)||k===U||k===void 0&&U===void 0||Pu(e,n,Y,k,o,U);return}}for(var z in l)k=l[z],l.hasOwnProperty(z)&&k!=null&&!o.hasOwnProperty(z)&&ze(e,n,z,null,o,k);for(Q in o)k=o[Q],U=l[Q],!o.hasOwnProperty(Q)||k===U||k==null&&U==null||ze(e,n,Q,k,o,U)}function H2(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function b7(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var s=l[o],p=s.transferSize,v=s.initiatorType,w=s.duration;if(p&&w&&H2(v)){for(v=0,w=s.responseEnd,o+=1;o<l.length;o++){var _=l[o],D=_.startTime;if(D>w)break;var Y=_.transferSize,Q=_.initiatorType;Y&&H2(Q)&&(_=_.responseEnd,v+=Y*(_<w?1:(w-D)/(_-D)))}if(--o,n+=8*(p+v)/(s.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 Ju=null,Fu=null;function Li(e){return e.nodeType===9?e:e.ownerDocument}function V2(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 D2(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 Wu(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 Iu=null;function C7(){var e=window.event;return e&&e.type==="popstate"?e===Iu?!1:(Iu=e,!0):(Iu=null,!1)}var k2=typeof setTimeout=="function"?setTimeout:void 0,w7=typeof clearTimeout=="function"?clearTimeout:void 0,$2=typeof Promise=="function"?Promise:void 0,S7=typeof queueMicrotask=="function"?queueMicrotask:typeof $2<"u"?function(e){return $2.resolve(null).then(e).catch(j7)}:k2;function j7(e){setTimeout(function(){throw e})}function pl(e){return e==="head"}function B2(e,n){var l=n,o=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"||l==="/&"){if(o===0){e.removeChild(s),Za(n);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")Jr(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Jr(l);for(var p=l.firstChild;p;){var v=p.nextSibling,w=p.nodeName;p[hr]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&p.rel.toLowerCase()==="stylesheet"||l.removeChild(p),p=v}}else l==="body"&&Jr(e.ownerDocument.body);l=s}while(l);Za(n)}function U2(e,n){var l=e;e=0;do{var o=l.nextSibling;if(l.nodeType===1?n?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(n?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=o}while(l)}function e1(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":e1(l),rs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function M7(e,n,l,o){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[hr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var p=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=Pt(e.nextSibling),e===null)break}return null}function E7(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Pt(e.nextSibling),e===null))return null;return e}function Z2(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Pt(e.nextSibling),e===null))return null;return e}function t1(e){return e.data==="$?"||e.data==="$~"}function n1(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function T7(e,n){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||l.readyState!=="loading")n();else{var o=function(){n(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Pt(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 l1=null;function Y2(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(n===0)return Pt(e.nextSibling);n--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||n++}e=e.nextSibling}return null}function X2(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(n===0)return e;n--}else l!=="/$"&&l!=="/&"||n++}e=e.previousSibling}return null}function q2(e,n,l){switch(n=Li(l),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Jr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);rs(e)}var Jt=new Map,G2=new Set;function Oi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Bn=B.d;B.d={f:_7,r:R7,D:N7,C:L7,L:O7,m:A7,X:H7,S:z7,M:V7};function _7(){var e=Bn.f(),n=Si();return e||n}function R7(e){var n=ia(e);n!==null&&n.tag===5&&n.type==="form"?s9(n):Bn.r(e)}var $a=typeof document>"u"?null:document;function Q2(e,n,l){var o=$a;if(o&&typeof n=="string"&&n){var s=Zt(n);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),G2.has(s)||(G2.add(s),e={rel:e,crossOrigin:l,href:n},o.querySelector(s)===null&&(n=o.createElement("link"),dt(n,"link",e),at(n),o.head.appendChild(n)))}}function N7(e){Bn.D(e),Q2("dns-prefetch",e,null)}function L7(e,n){Bn.C(e,n),Q2("preconnect",e,n)}function O7(e,n,l){Bn.L(e,n,l);var o=$a;if(o&&e&&n){var s='link[rel="preload"][as="'+Zt(n)+'"]';n==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+Zt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+Zt(l.imageSizes)+'"]')):s+='[href="'+Zt(e)+'"]';var p=s;switch(n){case"style":p=Ba(e);break;case"script":p=Ua(e)}Jt.has(p)||(e=b({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),Jt.set(p,e),o.querySelector(s)!==null||n==="style"&&o.querySelector(Fr(p))||n==="script"&&o.querySelector(Wr(p))||(n=o.createElement("link"),dt(n,"link",e),at(n),o.head.appendChild(n)))}}function A7(e,n){Bn.m(e,n);var l=$a;if(l&&e){var o=n&&typeof n.as=="string"?n.as:"script",s='link[rel="modulepreload"][as="'+Zt(o)+'"][href="'+Zt(e)+'"]',p=s;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Ua(e)}if(!Jt.has(p)&&(e=b({rel:"modulepreload",href:e},n),Jt.set(p,e),l.querySelector(s)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Wr(p)))return}o=l.createElement("link"),dt(o,"link",e),at(o),l.head.appendChild(o)}}}function z7(e,n,l){Bn.S(e,n,l);var o=$a;if(o&&e){var s=ca(o).hoistableStyles,p=Ba(e);n=n||"default";var v=s.get(p);if(!v){var w={loading:0,preload:null};if(v=o.querySelector(Fr(p)))w.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},l),(l=Jt.get(p))&&a1(e,l);var _=v=o.createElement("link");at(_),dt(_,"link",e),_._p=new Promise(function(D,Y){_.onload=D,_.onerror=Y}),_.addEventListener("load",function(){w.loading|=1}),_.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Ai(v,n,o)}v={type:"stylesheet",instance:v,count:1,state:w},s.set(p,v)}}}function H7(e,n){Bn.X(e,n);var l=$a;if(l&&e){var o=ca(l).hoistableScripts,s=Ua(e),p=o.get(s);p||(p=l.querySelector(Wr(s)),p||(e=b({src:e,async:!0},n),(n=Jt.get(s))&&r1(e,n),p=l.createElement("script"),at(p),dt(p,"link",e),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(s,p))}}function V7(e,n){Bn.M(e,n);var l=$a;if(l&&e){var o=ca(l).hoistableScripts,s=Ua(e),p=o.get(s);p||(p=l.querySelector(Wr(s)),p||(e=b({src:e,async:!0,type:"module"},n),(n=Jt.get(s))&&r1(e,n),p=l.createElement("script"),at(p),dt(p,"link",e),l.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(s,p))}}function K2(e,n,l,o){var s=(s=le.current)?Oi(s):null;if(!s)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(n=Ba(l.href),l=ca(s).hoistableStyles,o=l.get(n),o||(o={type:"style",instance:null,count:0,state:null},l.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ba(l.href);var p=ca(s).hoistableStyles,v=p.get(e);if(v||(s=s.ownerDocument||s,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,v),(p=s.querySelector(Fr(e)))&&!p._p&&(v.instance=p,v.state.loading=5),Jt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Jt.set(e,l),p||D7(s,e,l,v.state))),n&&o===null)throw Error(i(528,""));return v}if(n&&o!==null)throw Error(i(529,""));return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ua(l),l=ca(s).hoistableScripts,o=l.get(n),o||(o={type:"script",instance:null,count:0,state:null},l.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Ba(e){return'href="'+Zt(e)+'"'}function Fr(e){return'link[rel="stylesheet"]['+e+"]"}function P2(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function D7(e,n,l,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),dt(n,"link",l),at(n),e.head.appendChild(n))}function Ua(e){return'[src="'+Zt(e)+'"]'}function Wr(e){return"script[async]"+e}function J2(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+Zt(l.href)+'"]');if(o)return n.instance=o,at(o),o;var s=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),at(o),dt(o,"style",s),Ai(o,l.precedence,e),n.instance=o;case"stylesheet":s=Ba(l.href);var p=e.querySelector(Fr(s));if(p)return n.state.loading|=4,n.instance=p,at(p),p;o=P2(l),(s=Jt.get(s))&&a1(o,s),p=(e.ownerDocument||e).createElement("link"),at(p);var v=p;return v._p=new Promise(function(w,_){v.onload=w,v.onerror=_}),dt(p,"link",o),n.state.loading|=4,Ai(p,l.precedence,e),n.instance=p;case"script":return p=Ua(l.src),(s=e.querySelector(Wr(p)))?(n.instance=s,at(s),s):(o=l,(s=Jt.get(p))&&(o=b({},l),r1(o,s)),e=e.ownerDocument||e,s=e.createElement("script"),at(s),dt(s,"link",o),e.head.appendChild(s),n.instance=s);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,Ai(o,l.precedence,e));return n.instance}function Ai(e,n,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=o.length?o[o.length-1]:null,p=s,v=0;v<o.length;v++){var w=o[v];if(w.dataset.precedence===n)p=w;else if(p!==s)break}p?p.parentNode.insertBefore(e,p.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(e,n.firstChild))}function a1(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function r1(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var zi=null;function F2(e,n,l){if(zi===null){var o=new Map,s=zi=new Map;s.set(l,o)}else s=zi,o=s.get(l),o||(o=new Map,s.set(l,o));if(o.has(e))return o;for(o.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var p=l[s];if(!(p[hr]||p[ct]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var v=p.getAttribute(n)||"";v=e+v;var w=o.get(v);w?w.push(p):o.set(v,[p])}}return o}function W2(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function k7(e,n,l){if(l===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 I2(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function $7(e,n,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var s=Ba(o.href),p=n.querySelector(Fr(s));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Hi.bind(e),n.then(e,e)),l.state.loading|=4,l.instance=p,at(p);return}p=n.ownerDocument||n,o=P2(o),(s=Jt.get(s))&&a1(o,s),p=p.createElement("link"),at(p);var v=p;v._p=new Promise(function(w,_){v.onload=w,v.onerror=_}),dt(p,"link",o),l.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,n),(n=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Hi.bind(e),n.addEventListener("load",l),n.addEventListener("error",l))}}var o1=0;function B7(e,n){return e.stylesheets&&e.count===0&&Di(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var o=setTimeout(function(){if(e.stylesheets&&Di(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+n);0<e.imgBytes&&o1===0&&(o1=62500*b7());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Di(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>o1?50:800)+n);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(s)}}:null}function Hi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Di(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Vi=null;function Di(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vi=new Map,n.forEach(U7,e),Vi=null,Hi.call(e))}function U7(e,n){if(!(n.state.loading&4)){var l=Vi.get(e);if(l)var o=l.get(null);else{l=new Map,Vi.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<s.length;p++){var v=s[p];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(l.set(v.dataset.precedence,v),o=v)}o&&l.set(null,o)}s=n.instance,v=s.getAttribute("data-precedence"),p=l.get(v)||o,p===o&&l.set(null,s),l.set(v,s),this.count++,o=Hi.bind(this),s.addEventListener("load",o),s.addEventListener("error",o),p?p.parentNode.insertBefore(s,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),n.state.loading|=4}}var Ir={$$typeof:O,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Z7(e,n,l,o,s,p,v,w,_){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=ts(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ts(0),this.hiddenUpdates=ts(null),this.identifierPrefix=o,this.onUncaughtError=s,this.onCaughtError=p,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function e5(e,n,l,o,s,p,v,w,_,D,Y,Q){return e=new Z7(e,n,l,v,_,D,Y,Q,w),n=1,p===!0&&(n|=24),p=Lt(3,null,null,n),e.current=p,p.stateNode=e,n=$s(),n.refCount++,e.pooledCache=n,n.refCount++,p.memoizedState={element:o,isDehydrated:l,cache:n},Ys(p),e}function t5(e){return e?(e=va,e):va}function n5(e,n,l,o,s,p){s=t5(s),o.context===null?o.context=s:o.pendingContext=s,o=nl(n),o.payload={element:l},p=p===void 0?null:p,p!==null&&(o.callback=p),l=ll(e,o,n),l!==null&&(Et(l,e,n),Lr(l,e,n))}function l5(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function i1(e,n){l5(e,n),(e=e.alternate)&&l5(e,n)}function a5(e){if(e.tag===13||e.tag===31){var n=$l(e,67108864);n!==null&&Et(n,e,67108864),i1(e,67108864)}}function r5(e){if(e.tag===13||e.tag===31){var n=Vt();n=ns(n);var l=$l(e,n);l!==null&&Et(l,e,n),i1(e,n)}}var ki=!0;function Y7(e,n,l,o){var s=A.T;A.T=null;var p=B.p;try{B.p=2,c1(e,n,l,o)}finally{B.p=p,A.T=s}}function X7(e,n,l,o){var s=A.T;A.T=null;var p=B.p;try{B.p=8,c1(e,n,l,o)}finally{B.p=p,A.T=s}}function c1(e,n,l,o){if(ki){var s=s1(o);if(s===null)Ku(e,n,o,$i,l),i5(e,o);else if(G7(s,e,n,l,o))o.stopPropagation();else if(i5(e,o),n&4&&-1<q7.indexOf(e)){for(;s!==null;){var p=ia(s);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var v=zl(p.pendingLanes);if(v!==0){var w=p;for(w.pendingLanes|=2,w.entangledLanes|=2;v;){var _=1<<31-Rt(v);w.entanglements[1]|=_,v&=~_}dn(p),(Re&6)===0&&(Ci=it()+500,Qr(0))}}break;case 31:case 13:w=$l(p,2),w!==null&&Et(w,p,2),Si(),i1(p,2)}if(p=s1(o),p===null&&Ku(e,n,o,$i,l),p===s)break;s=p}s!==null&&o.stopPropagation()}else Ku(e,n,o,null,l)}}function s1(e){return e=fs(e),u1(e)}var $i=null;function u1(e){if($i=null,e=oa(e),e!==null){var n=u(e);if(n===null)e=null;else{var l=n.tag;if(l===13){if(e=d(n),e!==null)return e;e=null}else if(l===31){if(e=h(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return $i=e,null}function o5(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(Nh()){case hf:return 2;case gf:return 8;case _o:case Lh:return 32;case mf:return 268435456;default:return 32}default:return 32}}var f1=!1,hl=null,gl=null,ml=null,eo=new Map,to=new Map,xl=[],q7="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 i5(e,n){switch(e){case"focusin":case"focusout":hl=null;break;case"dragenter":case"dragleave":gl=null;break;case"mouseover":case"mouseout":ml=null;break;case"pointerover":case"pointerout":eo.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":to.delete(n.pointerId)}}function no(e,n,l,o,s,p){return e===null||e.nativeEvent!==p?(e={blockedOn:n,domEventName:l,eventSystemFlags:o,nativeEvent:p,targetContainers:[s]},n!==null&&(n=ia(n),n!==null&&a5(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,s!==null&&n.indexOf(s)===-1&&n.push(s),e)}function G7(e,n,l,o,s){switch(n){case"focusin":return hl=no(hl,e,n,l,o,s),!0;case"dragenter":return gl=no(gl,e,n,l,o,s),!0;case"mouseover":return ml=no(ml,e,n,l,o,s),!0;case"pointerover":var p=s.pointerId;return eo.set(p,no(eo.get(p)||null,e,n,l,o,s)),!0;case"gotpointercapture":return p=s.pointerId,to.set(p,no(to.get(p)||null,e,n,l,o,s)),!0}return!1}function c5(e){var n=oa(e.target);if(n!==null){var l=u(n);if(l!==null){if(n=l.tag,n===13){if(n=d(l),n!==null){e.blockedOn=n,wf(e.priority,function(){r5(l)});return}}else if(n===31){if(n=h(l),n!==null){e.blockedOn=n,wf(e.priority,function(){r5(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bi(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=s1(e.nativeEvent);if(l===null){l=e.nativeEvent;var o=new l.constructor(l.type,l);us=o,l.target.dispatchEvent(o),us=null}else return n=ia(l),n!==null&&a5(n),e.blockedOn=l,!1;n.shift()}return!0}function s5(e,n,l){Bi(e)&&l.delete(n)}function Q7(){f1=!1,hl!==null&&Bi(hl)&&(hl=null),gl!==null&&Bi(gl)&&(gl=null),ml!==null&&Bi(ml)&&(ml=null),eo.forEach(s5),to.forEach(s5)}function Ui(e,n){e.blockedOn===n&&(e.blockedOn=null,f1||(f1=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Q7)))}var Zi=null;function u5(e){Zi!==e&&(Zi=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Zi===e&&(Zi=null);for(var n=0;n<e.length;n+=3){var l=e[n],o=e[n+1],s=e[n+2];if(typeof o!="function"){if(u1(o||l)===null)continue;break}var p=ia(l);p!==null&&(e.splice(n,3),n-=3,su(p,{pending:!0,data:s,method:l.method,action:o},o,s))}}))}function Za(e){function n(_){return Ui(_,e)}hl!==null&&Ui(hl,e),gl!==null&&Ui(gl,e),ml!==null&&Ui(ml,e),eo.forEach(n),to.forEach(n);for(var l=0;l<xl.length;l++){var o=xl[l];o.blockedOn===e&&(o.blockedOn=null)}for(;0<xl.length&&(l=xl[0],l.blockedOn===null);)c5(l),l.blockedOn===null&&xl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var s=l[o],p=l[o+1],v=s[bt]||null;if(typeof p=="function")v||u5(l);else if(v){var w=null;if(p&&p.hasAttribute("formAction")){if(s=p,v=p[bt]||null)w=v.formAction;else if(u1(s)!==null)continue}else w=v.action;typeof w=="function"?l[o+1]=w:(l.splice(o,3),o-=3),u5(l)}}}function f5(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(v){return s=v})},focusReset:"manual",scroll:"manual"})}function n(){s!==null&&(s(),s=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),s!==null&&(s(),s=null)}}}function d1(e){this._internalRoot=e}Yi.prototype.render=d1.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var l=n.current,o=Vt();n5(l,o,e,n,null,null)},Yi.prototype.unmount=d1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;n5(e.current,2,null,e,null,null),Si(),n[ra]=null}};function Yi(e){this._internalRoot=e}Yi.prototype.unstable_scheduleHydration=function(e){if(e){var n=Cf();e={blockedOn:null,target:e,priority:n};for(var l=0;l<xl.length&&n!==0&&n<xl[l].priority;l++);xl.splice(l,0,e),l===0&&c5(e)}};var d5=a.version;if(d5!=="19.2.4")throw Error(i(527,d5,"19.2.4"));B.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var K7={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xi.isDisabled&&Xi.supportsFiber)try{fr=Xi.inject(K7),_t=Xi}catch{}}return ao.createRoot=function(e,n){if(!c(e))throw Error(i(299));var l=!1,o="",s=y9,p=b9,v=C9;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError)),n=e5(e,1,!1,null,null,l,o,null,s,p,v,f5),e[ra]=n.current,Qu(e),new d1(n)},ao.hydrateRoot=function(e,n,l){if(!c(e))throw Error(i(299));var o=!1,s="",p=y9,v=b9,w=C9,_=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(p=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(w=l.onRecoverableError),l.formState!==void 0&&(_=l.formState)),n=e5(e,1,!0,n,l??null,o,s,_,p,v,w,f5),n.context=t5(null),l=n.current,o=Vt(),o=ns(o),s=nl(o),s.callback=null,ll(l,s,o),l=o,n.current.lanes=l,pr(n,l),dn(n),e[ra]=n.current,Qu(e),new Yi(n)},ao.version="19.2.4",ao}var w5;function ag(){if(w5)return h1.exports;w5=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(),h1.exports=lg(),h1.exports}var rg=ag(),m=L0();const Qe=Y3(m),q3=J7({__proto__:null,default:Qe},[m]);function re(t,a){if(t==null)return{};var r={},i=Object.keys(t),c,u;for(u=0;u<i.length;u++)c=i[u],!(a.indexOf(c)>=0)&&(r[c]=t[c]);return r}var og=["color"],G3=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,og);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M9 3C9 2.44772 8.55229 2 8 2H7C6.44772 2 6 2.44772 6 3L6 14H1.5C1.22386 14 1 14.2239 1 14.5C1 14.7761 1.22386 15 1.5 15L6 15H9H13.5C13.7761 15 14 14.7761 14 14.5C14 14.2239 13.7761 14 13.5 14H9V3Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),ig=["color"],Q3=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,ig);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M1.99988 6C1.44759 6 0.999877 6.44772 0.999877 7L0.999877 8C0.999877 8.55228 1.44759 9 1.99988 9L6.99988 9L6.99988 13.5C6.99988 13.7761 7.22374 14 7.49988 14C7.77602 14 7.99988 13.7761 7.99988 13.5L7.99988 9L12.9999 9C13.5522 9 13.9999 8.55228 13.9999 8L13.9999 7C13.9999 6.44772 13.5522 6 12.9999 6L7.99988 6L7.99988 1.5C7.99988 1.22386 7.77602 1 7.49988 1C7.22373 1 6.99988 1.22386 6.99988 1.5L6.99988 6L1.99988 6Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),cg=["color"],K3=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,cg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M6.99988 1C6.44759 1 5.99988 1.44772 5.99988 2V7H1.49988C1.22374 7 0.999878 7.22386 0.999878 7.5C0.999878 7.77614 1.22374 8 1.49988 8H5.99988V13C5.99988 13.5523 6.44759 14 6.99988 14H7.99988C8.55216 14 8.99988 13.5523 8.99988 13V8H13.4999C13.776 8 13.9999 7.77614 13.9999 7.5C13.9999 7.22386 13.776 7 13.4999 7H8.99988V2C8.99988 1.44772 8.55216 1 7.99988 1L6.99988 1Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),sg=["color"],P3=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,sg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M0.499995 0.999995C0.223855 0.999995 -5.58458e-07 1.22385 -5.46388e-07 1.49999L-2.18554e-08 13.4999C-9.78492e-09 13.776 0.223855 13.9999 0.499995 13.9999C0.776136 13.9999 0.999991 13.776 0.999991 13.4999L0.999991 8.99993L12 8.99993C12.5523 8.99993 13 8.55222 13 7.99993L13 6.99994C13 6.44766 12.5523 5.99995 12 5.99995L0.999991 5.99995L0.999991 1.49999C0.999991 1.22385 0.776135 0.999995 0.499995 0.999995Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),ug=["color"],J3=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,ug);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M14.4999 1C14.2237 1 13.9999 1.22386 13.9999 1.5L13.9999 6L2.99988 6C2.44759 6 1.99988 6.44772 1.99988 7L1.99988 8C1.99988 8.55228 2.44759 9 2.99988 9L13.9999 9L13.9999 13.5C13.9999 13.7761 14.2237 14 14.4999 14C14.776 14 14.9999 13.7761 14.9999 13.5L14.9999 9L14.9999 6L14.9999 1.5C14.9999 1.22386 14.776 1 14.4999 1Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),fg=["color"],F3=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,fg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M1.5 0C1.22386 0 1 0.223858 1 0.5C1 0.776142 1.22386 1 1.5 1H6V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V1H13.5C13.7761 1 14 0.776142 14 0.5C14 0.223858 13.7761 0 13.5 0H9H6H1.5Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),dg=["color"],pg=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,dg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),hg=["color"],gg=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,hg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H11.5C11.7761 2 12 2.22386 12 2.5V13.5C12 13.6818 11.9014 13.8492 11.7424 13.9373C11.5834 14.0254 11.3891 14.0203 11.235 13.924L7.5 11.5896L3.765 13.924C3.61087 14.0203 3.41659 14.0254 3.25762 13.9373C3.09864 13.8492 3 13.6818 3 13.5V2.5ZM4 3V12.5979L6.97 10.7416C7.29427 10.539 7.70573 10.539 8.03 10.7416L11 12.5979V3H4Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),mg=["color"],Ka=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,mg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M1 3H14V4H1V3ZM1 6H14V8H1V6ZM14 10.25H1V12.75H14V10.25Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),xg=["color"],r0=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,xg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M12.5 2H2.5C2.22386 2 2 2.22386 2 2.5V12.5C2 12.7761 2.22386 13 2.5 13H12.5C12.7761 13 13 12.7761 13 12.5V2.5C13 2.22386 12.7761 2 12.5 2ZM2.5 1C1.67157 1 1 1.67157 1 2.5V12.5C1 13.3284 1.67157 14 2.5 14H12.5C13.3284 14 14 13.3284 14 12.5V2.5C14 1.67157 13.3284 1 12.5 1H2.5Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),vg=["color"],S5=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,vg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M1.99998 0.999976C1.44769 0.999976 0.999976 1.44769 0.999976 1.99998V13C0.999976 13.5523 1.44769 14 1.99998 14H13C13.5523 14 14 13.5523 14 13V1.99998C14 1.44769 13.5523 0.999976 13 0.999976H1.99998ZM1.99998 1.99998L13 1.99998V13H1.99998V1.99998ZM4.49996 3.99996C4.22382 3.99996 3.99996 4.22382 3.99996 4.49996V10.5C3.99996 10.7761 4.22382 11 4.49996 11H10.5C10.7761 11 11 10.7761 11 10.5V4.49996C11 4.22382 10.7761 3.99996 10.5 3.99996H4.49996ZM4.99996 9.99996V4.99996H9.99996V9.99996H4.99996Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),yg=["color"],uo=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,yg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),bg=["color"],Ft=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,bg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Cg=["color"],vn=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Cg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),wg=["color"],Sg=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,wg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M9.96424 2.68571C10.0668 2.42931 9.94209 2.13833 9.6857 2.03577C9.4293 1.93322 9.13832 2.05792 9.03576 2.31432L5.03576 12.3143C4.9332 12.5707 5.05791 12.8617 5.3143 12.9642C5.5707 13.0668 5.86168 12.9421 5.96424 12.6857L9.96424 2.68571ZM3.85355 5.14646C4.04882 5.34172 4.04882 5.6583 3.85355 5.85356L2.20711 7.50001L3.85355 9.14646C4.04882 9.34172 4.04882 9.6583 3.85355 9.85356C3.65829 10.0488 3.34171 10.0488 3.14645 9.85356L1.14645 7.85356C0.951184 7.6583 0.951184 7.34172 1.14645 7.14646L3.14645 5.14646C3.34171 4.9512 3.65829 4.9512 3.85355 5.14646ZM11.1464 5.14646C11.3417 4.9512 11.6583 4.9512 11.8536 5.14646L13.8536 7.14646C14.0488 7.34172 14.0488 7.6583 13.8536 7.85356L11.8536 9.85356C11.6583 10.0488 11.3417 10.0488 11.1464 9.85356C10.9512 9.6583 10.9512 9.34172 11.1464 9.14646L12.7929 7.50001L11.1464 5.85356C10.9512 5.6583 10.9512 5.34172 11.1464 5.14646Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),jg=["color"],j5=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,jg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M8.00012 1.5C8.00012 1.22386 7.77626 1 7.50012 1C7.22398 1 7.00012 1.22386 7.00012 1.5V13.5C7.00012 13.7761 7.22398 14 7.50012 14C7.77626 14 8.00012 13.7761 8.00012 13.5V1.5ZM3.31812 5.818C3.49386 5.64227 3.49386 5.35734 3.31812 5.18161C3.14239 5.00587 2.85746 5.00587 2.68173 5.18161L0.681729 7.18161C0.505993 7.35734 0.505993 7.64227 0.681729 7.818L2.68173 9.818C2.85746 9.99374 3.14239 9.99374 3.31812 9.818C3.49386 9.64227 3.49386 9.35734 3.31812 9.18161L2.08632 7.9498H5.50017C5.7487 7.9498 5.95017 7.74833 5.95017 7.4998C5.95017 7.25128 5.7487 7.0498 5.50017 7.0498H2.08632L3.31812 5.818ZM12.3181 5.18161C12.1424 5.00587 11.8575 5.00587 11.6817 5.18161C11.506 5.35734 11.506 5.64227 11.6817 5.818L12.9135 7.0498H9.50017C9.25164 7.0498 9.05017 7.25128 9.05017 7.4998C9.05017 7.74833 9.25164 7.9498 9.50017 7.9498H12.9135L11.6817 9.18161C11.506 9.35734 11.506 9.64227 11.6817 9.818C11.8575 9.99374 12.1424 9.99374 12.3181 9.818L14.3181 7.818C14.4939 7.64227 14.4939 7.35734 14.3181 7.18161L12.3181 5.18161Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Mg=["color"],W3=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Mg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M2.14998 14V1H0.849976V14H2.14998ZM6.14998 14V1H4.84998V14H6.14998ZM10.15 1V14H8.84998V1H10.15ZM14.15 14V1H12.85V14H14.15Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Eg=["color"],fo=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Eg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M4.67129 3.14634C4.47603 3.34161 4.47603 3.65819 4.67129 3.85345L7.14616 6.32833C7.34142 6.52359 7.65801 6.52359 7.85327 6.32833L10.3281 3.85345C10.5234 3.65819 10.5234 3.34161 10.3281 3.14634L7.85327 0.671471C7.65801 0.476209 7.34142 0.476209 7.14616 0.671471L4.67129 3.14634ZM7.49971 5.26766L5.73195 3.4999L7.49971 1.73213L9.26748 3.4999L7.49971 5.26766ZM8.67129 7.14634C8.47603 7.34161 8.47603 7.65819 8.67129 7.85345L11.1462 10.3283C11.3414 10.5236 11.658 10.5236 11.8533 10.3283L14.3281 7.85345C14.5234 7.65819 14.5234 7.34161 14.3281 7.14634L11.8533 4.67147C11.658 4.47621 11.3414 4.47621 11.1462 4.67147L8.67129 7.14634ZM11.4997 9.26766L9.73195 7.4999L11.4997 5.73213L13.2675 7.4999L11.4997 9.26766ZM4.67129 11.8535C4.47603 11.6582 4.47603 11.3416 4.67129 11.1463L7.14616 8.67147C7.34142 8.47621 7.65801 8.47621 7.85327 8.67147L10.3281 11.1463C10.5234 11.3416 10.5234 11.6582 10.3281 11.8535L7.85327 14.3283C7.65801 14.5236 7.34142 14.5236 7.14616 14.3283L4.67129 11.8535ZM5.73195 11.4999L7.49971 13.2677L9.26748 11.4999L7.49971 9.73213L5.73195 11.4999ZM0.671288 7.14649C0.476026 7.34175 0.476026 7.65834 0.671288 7.8536L3.14616 10.3285C3.34142 10.5237 3.65801 10.5237 3.85327 10.3285L6.32814 7.8536C6.5234 7.65834 6.5234 7.34175 6.32814 7.14649L3.85327 4.67162C3.65801 4.47636 3.34142 4.47636 3.14616 4.67162L0.671288 7.14649ZM3.49972 9.26781L1.73195 7.50005L3.49972 5.73228L5.26748 7.50005L3.49972 9.26781Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Tg=["color"],_g=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Tg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M9.87737 12H9.9H11.5C11.7761 12 12 11.7761 12 11.5C12 11.2239 11.7761 11 11.5 11H9.9C8.77164 11 7.95545 10.9996 7.31352 10.9472C6.67744 10.8952 6.25662 10.7946 5.91103 10.6185C5.25247 10.283 4.71703 9.74753 4.38148 9.08897C4.20539 8.74338 4.10481 8.32256 4.05284 7.68648C4.00039 7.04455 4 6.22836 4 5.1V3.5C4 3.22386 3.77614 3 3.5 3C3.22386 3 3 3.22386 3 3.5V5.1V5.12263C3 6.22359 3 7.08052 3.05616 7.76791C3.11318 8.46584 3.23058 9.0329 3.49047 9.54296C3.9219 10.3897 4.61031 11.0781 5.45704 11.5095C5.9671 11.7694 6.53416 11.8868 7.23209 11.9438C7.91948 12 8.77641 12 9.87737 12Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Rg=["color"],Ng=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Rg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M5.12263 12H5.1H3.5C3.22386 12 3 11.7761 3 11.5C3 11.2239 3.22386 11 3.5 11H5.1C6.22836 11 7.04455 10.9996 7.68648 10.9472C8.32256 10.8952 8.74338 10.7946 9.08897 10.6185C9.74753 10.283 10.283 9.74753 10.6185 9.08897C10.7946 8.74338 10.8952 8.32256 10.9472 7.68648C10.9996 7.04455 11 6.22836 11 5.1V3.5C11 3.22386 11.2239 3 11.5 3C11.7761 3 12 3.22386 12 3.5V5.1V5.12263C12 6.22359 12 7.08052 11.9438 7.76791C11.8868 8.46584 11.7694 9.0329 11.5095 9.54296C11.0781 10.3897 10.3897 11.0781 9.54296 11.5095C9.0329 11.7694 8.46584 11.8868 7.76791 11.9438C7.08052 12 6.22359 12 5.12263 12Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Lg=["color"],Og=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Lg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M9.87737 3H9.9H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H9.9C8.77164 4 7.95545 4.00039 7.31352 4.05284C6.67744 4.10481 6.25662 4.20539 5.91103 4.38148C5.25247 4.71703 4.71703 5.25247 4.38148 5.91103C4.20539 6.25662 4.10481 6.67744 4.05284 7.31352C4.00039 7.95545 4 8.77164 4 9.9V11.5C4 11.7761 3.77614 12 3.5 12C3.22386 12 3 11.7761 3 11.5V9.9V9.87737C3 8.77641 3 7.91948 3.05616 7.23209C3.11318 6.53416 3.23058 5.9671 3.49047 5.45704C3.9219 4.61031 4.61031 3.9219 5.45704 3.49047C5.9671 3.23058 6.53416 3.11318 7.23209 3.05616C7.91948 3 8.77641 3 9.87737 3Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Ag=["color"],zg=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Ag);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M5.12263 3H5.1H3.5C3.22386 3 3 3.22386 3 3.5C3 3.77614 3.22386 4 3.5 4H5.1C6.22836 4 7.04455 4.00039 7.68648 4.05284C8.32256 4.10481 8.74338 4.20539 9.08897 4.38148C9.74753 4.71703 10.283 5.25247 10.6185 5.91103C10.7946 6.25662 10.8952 6.67744 10.9472 7.31352C10.9996 7.95545 11 8.77164 11 9.9V11.5C11 11.7761 11.2239 12 11.5 12C11.7761 12 12 11.7761 12 11.5V9.9V9.87737C12 8.77641 12 7.91948 11.9438 7.23209C11.8868 6.53416 11.7694 5.9671 11.5095 5.45704C11.0781 4.61031 10.3897 3.9219 9.54296 3.49047C9.0329 3.23058 8.46584 3.11318 7.76791 3.05616C7.08052 3 6.22359 3 5.12263 3Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Hg=["color"],I3=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Hg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M5.5 2L4.87935 2C4.47687 1.99999 4.14469 1.99999 3.87409 2.0221C3.59304 2.04506 3.33469 2.09434 3.09202 2.21799C2.7157 2.40973 2.40973 2.7157 2.21799 3.09202C2.09434 3.33469 2.04506 3.59304 2.0221 3.87409C1.99999 4.14468 1.99999 4.47686 2 4.87933V4.87935V5.5C2 5.77614 2.22386 6 2.5 6C2.77614 6 3 5.77614 3 5.5V4.9C3 4.47171 3.00039 4.18056 3.01878 3.95552C3.03669 3.73631 3.06915 3.62421 3.10899 3.54601C3.20487 3.35785 3.35785 3.20487 3.54601 3.10899C3.62421 3.06915 3.73631 3.03669 3.95552 3.01878C4.18056 3.00039 4.47171 3 4.9 3H5.5C5.77614 3 6 2.77614 6 2.5C6 2.22386 5.77614 2 5.5 2ZM13 9.5C13 9.22386 12.7761 9 12.5 9C12.2239 9 12 9.22386 12 9.5V10.1C12 10.5283 11.9996 10.8194 11.9812 11.0445C11.9633 11.2637 11.9309 11.3758 11.891 11.454C11.7951 11.6422 11.6422 11.7951 11.454 11.891C11.3758 11.9309 11.2637 11.9633 11.0445 11.9812C10.8194 11.9996 10.5283 12 10.1 12H9.5C9.22386 12 9 12.2239 9 12.5C9 12.7761 9.22386 13 9.5 13H10.1206C10.5231 13 10.8553 13 11.1259 12.9779C11.407 12.9549 11.6653 12.9057 11.908 12.782C12.2843 12.5903 12.5903 12.2843 12.782 11.908C12.9057 11.6653 12.9549 11.407 12.9779 11.1259C13 10.8553 13 10.5232 13 10.1207V10.1207V10.1207V10.1206V9.5ZM2.5 9C2.77614 9 3 9.22386 3 9.5V10.1C3 10.5283 3.00039 10.8194 3.01878 11.0445C3.03669 11.2637 3.06915 11.3758 3.10899 11.454C3.20487 11.6422 3.35785 11.7951 3.54601 11.891C3.62421 11.9309 3.73631 11.9633 3.95552 11.9812C4.18056 11.9996 4.47171 12 4.9 12H5.5C5.77614 12 6 12.2239 6 12.5C6 12.7761 5.77614 13 5.5 13H4.87935C4.47687 13 4.14469 13 3.87409 12.9779C3.59304 12.9549 3.33469 12.9057 3.09202 12.782C2.7157 12.5903 2.40973 12.2843 2.21799 11.908C2.09434 11.6653 2.04506 11.407 2.0221 11.1259C1.99999 10.8553 1.99999 10.5231 2 10.1207V10.1206V10.1V9.5C2 9.22386 2.22386 9 2.5 9ZM10.1 3C10.5283 3 10.8194 3.00039 11.0445 3.01878C11.2637 3.03669 11.3758 3.06915 11.454 3.10899C11.6422 3.20487 11.7951 3.35785 11.891 3.54601C11.9309 3.62421 11.9633 3.73631 11.9812 3.95552C11.9996 4.18056 12 4.47171 12 4.9V5.5C12 5.77614 12.2239 6 12.5 6C12.7761 6 13 5.77614 13 5.5V4.87935V4.87934C13 4.47686 13 4.14468 12.9779 3.87409C12.9549 3.59304 12.9057 3.33469 12.782 3.09202C12.5903 2.7157 12.2843 2.40973 11.908 2.21799C11.6653 2.09434 11.407 2.04506 11.1259 2.0221C10.8553 1.99999 10.5231 1.99999 10.1206 2L10.1 2H9.5C9.22386 2 9 2.22386 9 2.5C9 2.77614 9.22386 3 9.5 3H10.1Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Vg=["color"],O0=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Vg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Dg=["color"],ep=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Dg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M3.29227 0.048984C3.47033 -0.032338 3.67946 -0.00228214 3.8274 0.125891L12.8587 7.95026C13.0134 8.08432 13.0708 8.29916 13.0035 8.49251C12.9362 8.68586 12.7578 8.81866 12.5533 8.82768L9.21887 8.97474L11.1504 13.2187C11.2648 13.47 11.1538 13.7664 10.9026 13.8808L8.75024 14.8613C8.499 14.9758 8.20255 14.8649 8.08802 14.6137L6.15339 10.3703L3.86279 12.7855C3.72196 12.934 3.50487 12.9817 3.31479 12.9059C3.1247 12.8301 3 12.6461 3 12.4414V0.503792C3 0.308048 3.11422 0.130306 3.29227 0.048984ZM4 1.59852V11.1877L5.93799 9.14425C6.05238 9.02363 6.21924 8.96776 6.38319 8.99516C6.54715 9.02256 6.68677 9.12965 6.75573 9.2809L8.79056 13.7441L10.0332 13.178L8.00195 8.71497C7.93313 8.56376 7.94391 8.38824 8.03072 8.24659C8.11753 8.10494 8.26903 8.01566 8.435 8.00834L11.2549 7.88397L4 1.59852Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),kg=["color"],$g=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,kg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Bg=["color"],Ug=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Bg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M3 2.5C3 2.22386 3.22386 2 3.5 2H9.08579C9.21839 2 9.34557 2.05268 9.43934 2.14645L11.8536 4.56066C11.9473 4.65443 12 4.78161 12 4.91421V12.5C12 12.7761 11.7761 13 11.5 13H3.5C3.22386 13 3 12.7761 3 12.5V2.5ZM3.5 1C2.67157 1 2 1.67157 2 2.5V12.5C2 13.3284 2.67157 14 3.5 14H11.5C12.3284 14 13 13.3284 13 12.5V4.91421C13 4.51639 12.842 4.13486 12.5607 3.85355L10.1464 1.43934C9.86514 1.15804 9.48361 1 9.08579 1H3.5ZM4.5 4C4.22386 4 4 4.22386 4 4.5C4 4.77614 4.22386 5 4.5 5H7.5C7.77614 5 8 4.77614 8 4.5C8 4.22386 7.77614 4 7.5 4H4.5ZM4.5 7C4.22386 7 4 7.22386 4 7.5C4 7.77614 4.22386 8 4.5 8H10.5C10.7761 8 11 7.77614 11 7.5C11 7.22386 10.7761 7 10.5 7H4.5ZM4.5 10C4.22386 10 4 10.2239 4 10.5C4 10.7761 4.22386 11 4.5 11H10.5C10.7761 11 11 10.7761 11 10.5C11 10.2239 10.7761 10 10.5 10H4.5Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Zg=["color"],tp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Zg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M5.10505 12C4.70805 12 4.4236 11.912 4.25171 11.736C4.0839 11.5559 4 11.2715 4 10.8827V4.11733C4 3.72033 4.08595 3.43588 4.25784 3.26398C4.43383 3.08799 4.71623 3 5.10505 3C6.42741 3 8.25591 3 9.02852 3C10.1373 3 11.0539 3.98153 11.0539 5.1846C11.0539 6.08501 10.6037 6.81855 9.70327 7.23602C10.8657 7.44851 11.5176 8.62787 11.5176 9.48128C11.5176 10.5125 10.9902 12 9.27734 12C8.77742 12 6.42626 12 5.10505 12ZM8.37891 8.00341H5.8V10.631H8.37891C8.9 10.631 9.6296 10.1211 9.6296 9.29877C9.6296 8.47643 8.9 8.00341 8.37891 8.00341ZM5.8 4.36903V6.69577H8.17969C8.53906 6.69577 9.27734 6.35939 9.27734 5.50002C9.27734 4.64064 8.48047 4.36903 8.17969 4.36903H5.8Z",fill:i}))}),Yg=["color"],np=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Yg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M2.5 4.5C2.5 3.09886 3.59886 2 5 2H12.499C12.7752 2 13 2.22386 13 2.5C13 2.77614 12.7761 3 12.5 3H8.69244L8.40509 3.85458C8.18869 4.49752 7.89401 5.37197 7.58091 6.29794C7.50259 6.52956 7.42308 6.76453 7.34332 7H8.5C8.77614 7 9 7.22386 9 7.5C9 7.77614 8.77614 8 8.5 8H7.00407C6.56724 9.28543 6.16435 10.4613 5.95799 11.0386C5.63627 11.9386 5.20712 12.4857 4.66741 12.7778C4.16335 13.0507 3.64154 13.0503 3.28378 13.05L3.25 13.05C2.94624 13.05 2.7 12.8037 2.7 12.5C2.7 12.1962 2.94624 11.95 3.25 11.95C3.64182 11.95 3.9035 11.9405 4.14374 11.8105C4.36443 11.691 4.65532 11.4148 4.92217 10.6683C5.10695 10.1514 5.45375 9.14134 5.8422 8H4.5C4.22386 8 4 7.77614 4 7.5C4 7.22386 4.22386 7 4.5 7H6.18187C6.30127 6.64785 6.42132 6.29323 6.53887 5.94559C6.85175 5.02025 7.14627 4.14631 7.36256 3.50368L7.53192 3H5C4.15114 3 3.5 3.65114 3.5 4.5C3.5 4.77614 3.27614 5 3 5C2.72386 5 2.5 4.77614 2.5 4.5Z",fill:i}))}),Xg=["color"],lp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Xg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M2.78233 2.21707C2.70732 2.14206 2.60557 2.09991 2.49949 2.09991C2.3934 2.09991 2.29166 2.14206 2.21664 2.21707L0.216645 4.21707C0.0604351 4.37328 0.0604351 4.62655 0.216645 4.78276C0.372855 4.93897 0.626121 4.93897 0.78233 4.78276L2.09949 3.4656L2.09949 11.5342L0.78233 10.2171C0.62612 10.0609 0.372854 10.0609 0.216645 10.2171C0.0604349 10.3733 0.0604349 10.6265 0.216645 10.7828L2.21664 12.7828C2.29166 12.8578 2.3934 12.8999 2.49949 12.8999C2.60557 12.8999 2.70731 12.8578 2.78233 12.7828L4.78233 10.7828C4.93854 10.6265 4.93854 10.3733 4.78233 10.2171C4.62612 10.0609 4.37285 10.0609 4.21664 10.2171L2.89949 11.5342L2.89949 3.4656L4.21664 4.78276C4.37285 4.93897 4.62612 4.93897 4.78233 4.78276C4.93854 4.62655 4.93854 4.37328 4.78233 4.21707L2.78233 2.21707ZM10.5 2.74997C10.7107 2.74997 10.8988 2.88211 10.9703 3.08036L13.9703 11.3999C14.064 11.6597 13.9293 11.9462 13.6696 12.0399C13.4098 12.1336 13.1233 11.9989 13.0296 11.7392L12.0477 9.016H8.95228L7.97033 11.7392C7.87666 11.9989 7.59013 12.1336 7.33036 12.0399C7.07059 11.9462 6.93595 11.6597 7.02962 11.3999L10.0296 3.08036C10.1011 2.88211 10.2892 2.74997 10.5 2.74997ZM10.5 4.72396L11.7412 8.166H9.25879L10.5 4.72396Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),qg=["color"],Gg=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,qg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M7.49996 1.80002C4.35194 1.80002 1.79996 4.352 1.79996 7.50002C1.79996 10.648 4.35194 13.2 7.49996 13.2C10.648 13.2 13.2 10.648 13.2 7.50002C13.2 4.352 10.648 1.80002 7.49996 1.80002ZM0.899963 7.50002C0.899963 3.85494 3.85488 0.900024 7.49996 0.900024C11.145 0.900024 14.1 3.85494 14.1 7.50002C14.1 11.1451 11.145 14.1 7.49996 14.1C3.85488 14.1 0.899963 11.1451 0.899963 7.50002Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{d:"M13.4999 7.89998H1.49994V7.09998H13.4999V7.89998Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{d:"M7.09991 13.5V1.5H7.89991V13.5H7.09991zM10.375 7.49998C10.375 5.32724 9.59364 3.17778 8.06183 1.75656L8.53793 1.24341C10.2396 2.82218 11.075 5.17273 11.075 7.49998 11.075 9.82724 10.2396 12.1778 8.53793 13.7566L8.06183 13.2434C9.59364 11.8222 10.375 9.67273 10.375 7.49998zM3.99969 7.5C3.99969 5.17611 4.80786 2.82678 6.45768 1.24719L6.94177 1.75281C5.4582 3.17323 4.69969 5.32389 4.69969 7.5 4.6997 9.67611 5.45822 11.8268 6.94179 13.2472L6.45769 13.7528C4.80788 12.1732 3.9997 9.8239 3.99969 7.5z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{d:"M7.49996 3.95801C9.66928 3.95801 11.8753 4.35915 13.3706 5.19448 13.5394 5.28875 13.5998 5.50197 13.5055 5.67073 13.4113 5.83948 13.198 5.89987 13.0293 5.8056 11.6794 5.05155 9.60799 4.65801 7.49996 4.65801 5.39192 4.65801 3.32052 5.05155 1.97064 5.8056 1.80188 5.89987 1.58866 5.83948 1.49439 5.67073 1.40013 5.50197 1.46051 5.28875 1.62927 5.19448 3.12466 4.35915 5.33063 3.95801 7.49996 3.95801zM7.49996 10.85C9.66928 10.85 11.8753 10.4488 13.3706 9.6135 13.5394 9.51924 13.5998 9.30601 13.5055 9.13726 13.4113 8.9685 13.198 8.90812 13.0293 9.00238 11.6794 9.75643 9.60799 10.15 7.49996 10.15 5.39192 10.15 3.32052 9.75643 1.97064 9.00239 1.80188 8.90812 1.58866 8.9685 1.49439 9.13726 1.40013 9.30601 1.46051 9.51924 1.62927 9.6135 3.12466 10.4488 5.33063 10.85 7.49996 10.85z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Qg=["color"],ap=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Qg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M12.5 2H8V7H13V2.5C13 2.22386 12.7761 2 12.5 2ZM13 8H8V13H12.5C12.7761 13 13 12.7761 13 12.5V8ZM7 7V2H2.5C2.22386 2 2 2.22386 2 2.5V7H7ZM2 8V12.5C2 12.7761 2.22386 13 2.5 13H7V8H2ZM2.5 1C1.67157 1 1 1.67157 1 2.5V12.5C1 13.3284 1.67157 14 2.5 14H12.5C13.3284 14 14 13.3284 14 12.5V2.5C14 1.67157 13.3284 1 12.5 1H2.5Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Kg=["color"],y1=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Kg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M7.1813 1.68179C7.35704 1.50605 7.64196 1.50605 7.8177 1.68179L10.3177 4.18179C10.4934 4.35753 10.4934 4.64245 10.3177 4.81819C10.142 4.99392 9.85704 4.99392 9.6813 4.81819L7.9495 3.08638L7.9495 11.9136L9.6813 10.1818C9.85704 10.0061 10.142 10.0061 10.3177 10.1818C10.4934 10.3575 10.4934 10.6424 10.3177 10.8182L7.8177 13.3182C7.73331 13.4026 7.61885 13.45 7.4995 13.45C7.38015 13.45 7.26569 13.4026 7.1813 13.3182L4.6813 10.8182C4.50557 10.6424 4.50557 10.3575 4.6813 10.1818C4.85704 10.0061 5.14196 10.0061 5.3177 10.1818L7.0495 11.9136L7.0495 3.08638L5.3177 4.81819C5.14196 4.99392 4.85704 4.99392 4.6813 4.81819C4.50557 4.64245 4.50557 4.35753 4.6813 4.18179L7.1813 1.68179Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Pg=["color"],Jg=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Pg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Fg=["color"],rp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Fg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M7.75432 0.819537C7.59742 0.726821 7.4025 0.726821 7.24559 0.819537L1.74559 4.06954C1.59336 4.15949 1.49996 4.32317 1.49996 4.5C1.49996 4.67683 1.59336 4.84051 1.74559 4.93046L7.24559 8.18046C7.4025 8.27318 7.59742 8.27318 7.75432 8.18046L13.2543 4.93046C13.4066 4.84051 13.5 4.67683 13.5 4.5C13.5 4.32317 13.4066 4.15949 13.2543 4.06954L7.75432 0.819537ZM7.49996 7.16923L2.9828 4.5L7.49996 1.83077L12.0171 4.5L7.49996 7.16923ZM1.5695 7.49564C1.70998 7.2579 2.01659 7.17906 2.25432 7.31954L7.49996 10.4192L12.7456 7.31954C12.9833 7.17906 13.2899 7.2579 13.4304 7.49564C13.5709 7.73337 13.4921 8.03998 13.2543 8.18046L7.75432 11.4305C7.59742 11.5232 7.4025 11.5232 7.24559 11.4305L1.74559 8.18046C1.50786 8.03998 1.42901 7.73337 1.5695 7.49564ZM1.56949 10.4956C1.70998 10.2579 2.01658 10.1791 2.25432 10.3195L7.49996 13.4192L12.7456 10.3195C12.9833 10.1791 13.2899 10.2579 13.4304 10.4956C13.5709 10.7334 13.4921 11.04 13.2543 11.1805L7.75432 14.4305C7.59742 14.5232 7.4025 14.5232 7.24559 14.4305L1.74559 11.1805C1.50785 11.04 1.42901 10.7334 1.56949 10.4956Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Wg=["color"],Ig=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Wg);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M3.68979 2.75C3.89667 2.74979 4.08232 2.87701 4.15679 3.07003L7.36662 11.39C7.46602 11.6477 7.33774 11.9371 7.0801 12.0365C6.82247 12.1359 6.53304 12.0076 6.43365 11.75L5.3825 9.02537H2.01133L0.966992 11.749C0.868128 12.0068 0.578964 12.1357 0.321126 12.0369C0.0632878 11.938 -0.0655864 11.6488 0.0332774 11.391L3.22344 3.07099C3.29751 2.87782 3.4829 2.75021 3.68979 2.75ZM3.69174 4.64284L5.05458 8.17537H2.33724L3.69174 4.64284ZM10.8989 5.20703C9.25818 5.20703 8.00915 6.68569 8.00915 8.60972C8.00915 10.6337 9.35818 12.0124 10.8989 12.0124C11.7214 12.0124 12.5744 11.6692 13.1543 11.0219V11.53C13.1543 11.7785 13.3557 11.98 13.6043 11.98C13.8528 11.98 14.0543 11.7785 14.0543 11.53V5.72C14.0543 5.47147 13.8528 5.27 13.6043 5.27C13.3557 5.27 13.1543 5.47147 13.1543 5.72V6.22317C12.6054 5.60095 11.7924 5.20703 10.8989 5.20703ZM13.1543 9.79823V7.30195C12.7639 6.58101 11.9414 6.05757 11.0868 6.05757C10.1088 6.05757 9.03503 6.96581 9.03503 8.60955C9.03503 10.1533 10.0088 11.1615 11.0868 11.1615C11.9701 11.1615 12.7719 10.4952 13.1543 9.79823Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),e6=["color"],t6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,e6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M3.69899 5.20703C2.05823 5.20703 0.809204 6.68569 0.809204 8.60972C0.809204 10.6337 2.15823 12.0124 3.69899 12.0124C4.52126 12.0124 5.37402 11.6693 5.9539 11.0223V11.53C5.9539 11.7785 6.15537 11.98 6.4039 11.98C6.65243 11.98 6.8539 11.7785 6.8539 11.53V5.72001C6.8539 5.47149 6.65243 5.27001 6.4039 5.27001C6.15537 5.27001 5.9539 5.47149 5.9539 5.72001V6.22269C5.40506 5.60075 4.59218 5.20703 3.69899 5.20703ZM5.9539 9.799V7.30117C5.56339 6.58064 4.74118 6.05757 3.8868 6.05757C2.9089 6.05757 1.83508 6.96581 1.83508 8.60955C1.83508 10.1533 2.80889 11.1615 3.8868 11.1615C4.76984 11.1615 5.57141 10.4957 5.9539 9.799ZM10.799 5.20703C9.15823 5.20703 7.9092 6.68569 7.9092 8.60972C7.9092 10.6337 9.25823 12.0124 10.799 12.0124C11.6215 12.0124 12.4744 11.6692 13.0543 11.0218V11.53C13.0543 11.7785 13.2558 11.98 13.5043 11.98C13.7529 11.98 13.9543 11.7785 13.9543 11.53V5.72C13.9543 5.47147 13.7529 5.27 13.5043 5.27C13.2558 5.27 13.0543 5.47147 13.0543 5.72V6.22318C12.5055 5.60095 11.6924 5.20703 10.799 5.20703ZM13.0543 9.79822V7.30196C12.664 6.58102 11.8415 6.05757 10.9868 6.05757C10.0089 6.05757 8.93508 6.96581 8.93508 8.60955C8.93508 10.1533 9.90889 11.1615 10.9868 11.1615C11.8702 11.1615 12.672 10.4952 13.0543 9.79822Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),n6=["color"],op=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,n6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M3.6255 2.75C3.83478 2.75 4.02192 2.88034 4.09448 3.07664L7.16985 11.3962C7.2656 11.6552 7.13324 11.9428 6.87423 12.0386C6.61522 12.1343 6.32763 12.002 6.23188 11.7429L5.22387 9.01603H2.02712L1.01911 11.7429C0.923362 12.002 0.635774 12.1343 0.376762 12.0386C0.117749 11.9428 -0.0146052 11.6552 0.0811401 11.3962L3.15651 3.07664C3.22908 2.88034 3.41621 2.75 3.6255 2.75ZM3.6255 4.69207L4.90966 8.16603H2.34133L3.6255 4.69207ZM11.3719 2.75C11.5811 2.75 11.7683 2.88034 11.8408 3.07664L14.9162 11.3962C15.012 11.6552 14.8796 11.9428 14.6206 12.0386C14.3616 12.1343 14.074 12.002 13.9782 11.7429L12.9702 9.01603H9.77348L8.76547 11.7429C8.66972 12.002 8.38213 12.1343 8.12312 12.0386C7.86411 11.9428 7.73175 11.6552 7.8275 11.3962L10.9029 3.07664C10.9754 2.88034 11.1626 2.75 11.3719 2.75ZM11.3719 4.69207L12.656 8.16603H10.0877L11.3719 4.69207Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),l6=["color"],ip=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,l6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M4.55293 0.999969C4.75295 0.999969 4.93372 1.11917 5.0125 1.30301L8.01106 8.29982C8.11984 8.55363 8.00226 8.84757 7.74844 8.95635C7.49463 9.06512 7.20069 8.94754 7.09191 8.69373L6.11613 6.41685H2.98973L2.01395 8.69373C1.90517 8.94754 1.61123 9.06512 1.35742 8.95635C1.1036 8.84757 0.986023 8.55363 1.0948 8.29982L4.09336 1.30301C4.17214 1.11917 4.35291 0.999969 4.55293 0.999969ZM4.55293 2.76929L5.75186 5.56685H3.354L4.55293 2.76929ZM11.0562 9.00214C11.2617 9.00214 11.4463 8.87633 11.5215 8.68502L14.2733 1.68299C14.3743 1.42598 14.2478 1.13575 13.9908 1.03475C13.7338 0.933747 13.4436 1.06021 13.3426 1.31722L11.0562 7.13514L8.76973 1.31722C8.66873 1.06021 8.3785 0.933747 8.1215 1.03475C7.86449 1.13575 7.73802 1.42598 7.83902 1.68299L10.5908 8.68502C10.666 8.87633 10.8506 9.00214 11.0562 9.00214ZM14.9537 12.4999C14.9537 12.606 14.9115 12.7077 14.8365 12.7828L12.8365 14.7828C12.6803 14.939 12.4271 14.939 12.2708 14.7828C12.1146 14.6265 12.1146 14.3733 12.2708 14.2171L13.588 12.8999H1.51937L2.83653 14.2171C2.99274 14.3733 2.99274 14.6265 2.83653 14.7828C2.68032 14.939 2.42705 14.939 2.27084 14.7828L0.270843 12.7828C0.195828 12.7077 0.153687 12.606 0.153687 12.4999C0.153687 12.3938 0.195828 12.2921 0.270843 12.2171L2.27084 10.2171C2.42705 10.0609 2.68032 10.0609 2.83653 10.2171C2.99274 10.3733 2.99274 10.6265 2.83653 10.7828L1.51937 12.0999L13.588 12.0999L12.2708 10.7828C12.1146 10.6265 12.1146 10.3733 12.2708 10.2171C12.4271 10.0609 12.6803 10.0609 12.8365 10.2171L14.8365 12.2171C14.9115 12.2921 14.9537 12.3938 14.9537 12.4999Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),a6=["color"],cp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,a6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M3.78233 2.21713C3.70732 2.14212 3.60557 2.09998 3.49949 2.09998C3.3934 2.09998 3.29166 2.14212 3.21664 2.21713L1.21664 4.21713C1.06044 4.37334 1.06044 4.62661 1.21664 4.78282C1.37285 4.93903 1.62612 4.93903 1.78233 4.78282L3.09949 3.46566L3.09949 11.5343L1.78233 10.2171C1.62612 10.0609 1.37285 10.0609 1.21664 10.2171C1.06043 10.3733 1.06043 10.6266 1.21664 10.7828L3.21664 12.7828C3.29166 12.8578 3.3934 12.9 3.49949 12.9C3.60557 12.9 3.70731 12.8578 3.78233 12.7828L5.78233 10.7828C5.93854 10.6266 5.93854 10.3733 5.78233 10.2171C5.62612 10.0609 5.37285 10.0609 5.21664 10.2171L3.89949 11.5343L3.89949 3.46566L5.21664 4.78282C5.37285 4.93903 5.62612 4.93903 5.78233 4.78282C5.93854 4.62661 5.93854 4.37334 5.78233 4.21713L3.78233 2.21713ZM8.49998 3.99997C8.22383 3.99997 7.99998 4.22382 7.99998 4.49997C7.99998 4.77611 8.22383 4.99997 8.49998 4.99997H14.5C14.7761 4.99997 15 4.77611 15 4.49997C15 4.22382 14.7761 3.99997 14.5 3.99997H8.49998ZM7.99998 7.49997C7.99998 7.22382 8.22383 6.99997 8.49998 6.99997H14.5C14.7761 6.99997 15 7.22382 15 7.49997C15 7.77611 14.7761 7.99997 14.5 7.99997H8.49998C8.22383 7.99997 7.99998 7.77611 7.99998 7.49997ZM8.49998 9.99997C8.22383 9.99997 7.99998 10.2238 7.99998 10.5C7.99998 10.7761 8.22383 11 8.49998 11H14.5C14.7761 11 15 10.7761 15 10.5C15 10.2238 14.7761 9.99997 14.5 9.99997H8.49998Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),r6=["color"],Cl=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,r6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M1.49988 2.00012C1.77602 2.00012 1.99988 1.77626 1.99988 1.50012C1.99988 1.22398 1.77602 1.00012 1.49988 1.00012C1.22374 1.00012 0.999878 1.22398 0.999878 1.50012C0.999878 1.77626 1.22374 2.00012 1.49988 2.00012ZM4.49988 2.00012C4.77602 2.00012 4.99988 1.77626 4.99988 1.50012C4.99988 1.22398 4.77602 1.00012 4.49988 1.00012C4.22374 1.00012 3.99988 1.22398 3.99988 1.50012C3.99988 1.77626 4.22374 2.00012 4.49988 2.00012ZM7.99988 1.50012C7.99988 1.77626 7.77602 2.00012 7.49988 2.00012C7.22374 2.00012 6.99988 1.77626 6.99988 1.50012C6.99988 1.22398 7.22374 1.00012 7.49988 1.00012C7.77602 1.00012 7.99988 1.22398 7.99988 1.50012ZM10.4999 2.00012C10.776 2.00012 10.9999 1.77626 10.9999 1.50012C10.9999 1.22398 10.776 1.00012 10.4999 1.00012C10.2237 1.00012 9.99988 1.22398 9.99988 1.50012C9.99988 1.77626 10.2237 2.00012 10.4999 2.00012ZM13.9999 1.50012C13.9999 1.77626 13.776 2.00012 13.4999 2.00012C13.2237 2.00012 12.9999 1.77626 12.9999 1.50012C12.9999 1.22398 13.2237 1.00012 13.4999 1.00012C13.776 1.00012 13.9999 1.22398 13.9999 1.50012ZM1.49988 14.0001C1.77602 14.0001 1.99988 13.7763 1.99988 13.5001C1.99988 13.224 1.77602 13.0001 1.49988 13.0001C1.22374 13.0001 0.999878 13.224 0.999878 13.5001C0.999878 13.7763 1.22374 14.0001 1.49988 14.0001ZM1.99988 10.5001C1.99988 10.7763 1.77602 11.0001 1.49988 11.0001C1.22374 11.0001 0.999878 10.7763 0.999878 10.5001C0.999878 10.224 1.22374 10.0001 1.49988 10.0001C1.77602 10.0001 1.99988 10.224 1.99988 10.5001ZM1.49988 8.00012C1.77602 8.00012 1.99988 7.77626 1.99988 7.50012C1.99988 7.22398 1.77602 7.00012 1.49988 7.00012C1.22374 7.00012 0.999878 7.22398 0.999878 7.50012C0.999878 7.77626 1.22374 8.00012 1.49988 8.00012ZM1.99988 4.50012C1.99988 4.77626 1.77602 5.00012 1.49988 5.00012C1.22374 5.00012 0.999878 4.77626 0.999878 4.50012C0.999878 4.22398 1.22374 4.00012 1.49988 4.00012C1.77602 4.00012 1.99988 4.22398 1.99988 4.50012ZM13.4999 11.0001C13.776 11.0001 13.9999 10.7763 13.9999 10.5001C13.9999 10.224 13.776 10.0001 13.4999 10.0001C13.2237 10.0001 12.9999 10.224 12.9999 10.5001C12.9999 10.7763 13.2237 11.0001 13.4999 11.0001ZM13.9999 7.50012C13.9999 7.77626 13.776 8.00012 13.4999 8.00012C13.2237 8.00012 12.9999 7.77626 12.9999 7.50012C12.9999 7.22398 13.2237 7.00012 13.4999 7.00012C13.776 7.00012 13.9999 7.22398 13.9999 7.50012ZM13.4999 5.00012C13.776 5.00012 13.9999 4.77626 13.9999 4.50012C13.9999 4.22398 13.776 4.00012 13.4999 4.00012C13.2237 4.00012 12.9999 4.22398 12.9999 4.50012C12.9999 4.77626 13.2237 5.00012 13.4999 5.00012ZM4.99988 13.5001C4.99988 13.7763 4.77602 14.0001 4.49988 14.0001C4.22374 14.0001 3.99988 13.7763 3.99988 13.5001C3.99988 13.224 4.22374 13.0001 4.49988 13.0001C4.77602 13.0001 4.99988 13.224 4.99988 13.5001ZM7.49988 14.0001C7.77602 14.0001 7.99988 13.7763 7.99988 13.5001C7.99988 13.224 7.77602 13.0001 7.49988 13.0001C7.22374 13.0001 6.99988 13.224 6.99988 13.5001C6.99988 13.7763 7.22374 14.0001 7.49988 14.0001ZM10.9999 13.5001C10.9999 13.7763 10.776 14.0001 10.4999 14.0001C10.2237 14.0001 9.99988 13.7763 9.99988 13.5001C9.99988 13.224 10.2237 13.0001 10.4999 13.0001C10.776 13.0001 10.9999 13.224 10.9999 13.5001ZM13.4999 14.0001C13.776 14.0001 13.9999 13.7763 13.9999 13.5001C13.9999 13.224 13.776 13.0001 13.4999 13.0001C13.2237 13.0001 12.9999 13.224 12.9999 13.5001C12.9999 13.7763 13.2237 14.0001 13.4999 14.0001ZM3.99988 5.00012C3.99988 4.44784 4.44759 4.00012 4.99988 4.00012H9.99988C10.5522 4.00012 10.9999 4.44784 10.9999 5.00012V10.0001C10.9999 10.5524 10.5522 11.0001 9.99988 11.0001H4.99988C4.44759 11.0001 3.99988 10.5524 3.99988 10.0001V5.00012ZM4.99988 5.00012H9.99988V10.0001H4.99988V5.00012Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),o6=["color"],sp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,o6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M5.5 3C4.67157 3 4 3.67157 4 4.5C4 5.32843 4.67157 6 5.5 6C6.32843 6 7 5.32843 7 4.5C7 3.67157 6.32843 3 5.5 3ZM3 5C3.01671 5 3.03323 4.99918 3.04952 4.99758C3.28022 6.1399 4.28967 7 5.5 7C6.71033 7 7.71978 6.1399 7.95048 4.99758C7.96677 4.99918 7.98329 5 8 5H13.5C13.7761 5 14 4.77614 14 4.5C14 4.22386 13.7761 4 13.5 4H8C7.98329 4 7.96677 4.00082 7.95048 4.00242C7.71978 2.86009 6.71033 2 5.5 2C4.28967 2 3.28022 2.86009 3.04952 4.00242C3.03323 4.00082 3.01671 4 3 4H1.5C1.22386 4 1 4.22386 1 4.5C1 4.77614 1.22386 5 1.5 5H3ZM11.9505 10.9976C11.7198 12.1399 10.7103 13 9.5 13C8.28967 13 7.28022 12.1399 7.04952 10.9976C7.03323 10.9992 7.01671 11 7 11H1.5C1.22386 11 1 10.7761 1 10.5C1 10.2239 1.22386 10 1.5 10H7C7.01671 10 7.03323 10.0008 7.04952 10.0024C7.28022 8.8601 8.28967 8 9.5 8C10.7103 8 11.7198 8.8601 11.9505 10.0024C11.9668 10.0008 11.9833 10 12 10H13.5C13.7761 10 14 10.2239 14 10.5C14 10.7761 13.7761 11 13.5 11H12C11.9833 11 11.9668 10.9992 11.9505 10.9976ZM8 10.5C8 9.67157 8.67157 9 9.5 9C10.3284 9 11 9.67157 11 10.5C11 11.3284 10.3284 12 9.5 12C8.67157 12 8 11.3284 8 10.5Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),i6=["color"],c6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,i6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),s6=["color"],qi=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,s6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M7.81819 0.93179C7.64245 0.756054 7.35753 0.756054 7.18179 0.93179L5.43179 2.68179C5.25605 2.85753 5.25605 3.14245 5.43179 3.31819C5.60753 3.49392 5.89245 3.49392 6.06819 3.31819L6.99999 2.38638V5.49999C6.99999 5.77613 7.22385 5.99999 7.49999 5.99999C7.77613 5.99999 7.99999 5.77613 7.99999 5.49999V2.38638L8.93179 3.31819C9.10753 3.49392 9.39245 3.49392 9.56819 3.31819C9.74392 3.14245 9.74392 2.85753 9.56819 2.68179L7.81819 0.93179ZM7.99999 9.49999C7.99999 9.22385 7.77613 8.99999 7.49999 8.99999C7.22385 8.99999 6.99999 9.22385 6.99999 9.49999V12.6136L6.06819 11.6818C5.89245 11.5061 5.60753 11.5061 5.43179 11.6818C5.25605 11.8575 5.25605 12.1424 5.43179 12.3182L7.18179 14.0682C7.35753 14.2439 7.64245 14.2439 7.81819 14.0682L9.56819 12.3182C9.74392 12.1424 9.74392 11.8575 9.56819 11.6818C9.39245 11.5061 9.10753 11.5061 8.93179 11.6818L7.99999 12.6136V9.49999ZM8.99999 7.49999C8.99999 7.22385 9.22385 6.99999 9.49999 6.99999H12.6136L11.6818 6.06819C11.5061 5.89245 11.5061 5.60753 11.6818 5.43179C11.8575 5.25605 12.1424 5.25605 12.3182 5.43179L14.0682 7.18179C14.2439 7.35753 14.2439 7.64245 14.0682 7.81819L12.3182 9.56819C12.1424 9.74392 11.8575 9.74392 11.6818 9.56819C11.5061 9.39245 11.5061 9.10753 11.6818 8.93179L12.6136 7.99999H9.49999C9.22385 7.99999 8.99999 7.77613 8.99999 7.49999ZM3.31819 6.06819L2.38638 6.99999H5.49999C5.77613 6.99999 5.99999 7.22385 5.99999 7.49999C5.99999 7.77613 5.77613 7.99999 5.49999 7.99999H2.38638L3.31819 8.93179C3.49392 9.10753 3.49392 9.39245 3.31819 9.56819C3.14245 9.74392 2.85753 9.74392 2.68179 9.56819L0.93179 7.81819C0.756054 7.64245 0.756054 7.35753 0.93179 7.18179L2.68179 5.43179C2.85753 5.25605 3.14245 5.25605 3.31819 5.43179C3.49392 5.60753 3.49392 5.89245 3.31819 6.06819Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),u6=["color"],up=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,u6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M7.5 1.5C4.5 4.25 3 6.5 3 9C3 11.4853 5.01472 13.5 7.5 13.5C9.98528 13.5 12 11.4853 12 9C12 6.5 10.5 4.25 7.5 1.5ZM11 9C11 7.11203 9.97315 5.27195 7.5 2.87357C5.02686 5.27195 4 7.11203 4 9C4 10.933 5.567 12.5 7.5 12.5C9.433 12.5 11 10.933 11 9Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),f6=["color"],wl=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,f6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M2.85714 2H12.1429C12.6162 2 13 2.38376 13 2.85714V12.1429C13 12.6162 12.6162 13 12.1429 13H2.85714C2.38376 13 2 12.6162 2 12.1429V2.85714C2 2.38376 2.38376 2 2.85714 2ZM1 2.85714C1 1.83147 1.83147 1 2.85714 1H12.1429C13.1685 1 14 1.83147 14 2.85714V12.1429C14 13.1685 13.1685 14 12.1429 14H2.85714C1.83147 14 1 13.1685 1 12.1429V2.85714ZM7.49988 5.00012C7.77602 5.00012 7.99988 4.77626 7.99988 4.50012C7.99988 4.22398 7.77602 4.00012 7.49988 4.00012C7.22374 4.00012 6.99988 4.22398 6.99988 4.50012C6.99988 4.77626 7.22374 5.00012 7.49988 5.00012ZM4.49988 11.0001C4.77602 11.0001 4.99988 10.7763 4.99988 10.5001C4.99988 10.224 4.77602 10.0001 4.49988 10.0001C4.22374 10.0001 3.99988 10.224 3.99988 10.5001C3.99988 10.7763 4.22374 11.0001 4.49988 11.0001ZM4.99988 7.50012C4.99988 7.77626 4.77602 8.00012 4.49988 8.00012C4.22374 8.00012 3.99988 7.77626 3.99988 7.50012C3.99988 7.22398 4.22374 7.00012 4.49988 7.00012C4.77602 7.00012 4.99988 7.22398 4.99988 7.50012ZM4.49988 5.00012C4.77602 5.00012 4.99988 4.77626 4.99988 4.50012C4.99988 4.22398 4.77602 4.00012 4.49988 4.00012C4.22374 4.00012 3.99988 4.22398 3.99988 4.50012C3.99988 4.77626 4.22374 5.00012 4.49988 5.00012ZM10.9999 10.5001C10.9999 10.7763 10.776 11.0001 10.4999 11.0001C10.2237 11.0001 9.99988 10.7763 9.99988 10.5001C9.99988 10.224 10.2237 10.0001 10.4999 10.0001C10.776 10.0001 10.9999 10.224 10.9999 10.5001ZM10.4999 8.00012C10.776 8.00012 10.9999 7.77626 10.9999 7.50012C10.9999 7.22398 10.776 7.00012 10.4999 7.00012C10.2237 7.00012 9.99988 7.22398 9.99988 7.50012C9.99988 7.77626 10.2237 8.00012 10.4999 8.00012ZM10.9999 4.50012C10.9999 4.77626 10.776 5.00012 10.4999 5.00012C10.2237 5.00012 9.99988 4.77626 9.99988 4.50012C9.99988 4.22398 10.2237 4.00012 10.4999 4.00012C10.776 4.00012 10.9999 4.22398 10.9999 4.50012ZM7.49988 11.0001C7.77602 11.0001 7.99988 10.7763 7.99988 10.5001C7.99988 10.224 7.77602 10.0001 7.49988 10.0001C7.22374 10.0001 6.99988 10.224 6.99988 10.5001C6.99988 10.7763 7.22374 11.0001 7.49988 11.0001Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),d6=["color"],fp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,d6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),p6=["color"],_c=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,p6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M8 2.75C8 2.47386 7.77614 2.25 7.5 2.25C7.22386 2.25 7 2.47386 7 2.75V7H2.75C2.47386 7 2.25 7.22386 2.25 7.5C2.25 7.77614 2.47386 8 2.75 8H7V12.25C7 12.5261 7.22386 12.75 7.5 12.75C7.77614 12.75 8 12.5261 8 12.25V8H12.25C12.5261 8 12.75 7.77614 12.75 7.5C12.75 7.22386 12.5261 7 12.25 7H8V2.75Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),h6=["color"],g6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,h6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M4.85355 2.14645C5.04882 2.34171 5.04882 2.65829 4.85355 2.85355L3.70711 4H9C11.4853 4 13.5 6.01472 13.5 8.5C13.5 10.9853 11.4853 13 9 13H5C4.72386 13 4.5 12.7761 4.5 12.5C4.5 12.2239 4.72386 12 5 12H9C10.933 12 12.5 10.433 12.5 8.5C12.5 6.567 10.933 5 9 5H3.70711L4.85355 6.14645C5.04882 6.34171 5.04882 6.65829 4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355L2.14645 4.85355C1.95118 4.65829 1.95118 4.34171 2.14645 4.14645L4.14645 2.14645C4.34171 1.95118 4.65829 1.95118 4.85355 2.14645Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),m6=["color"],x6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,m6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M7.81832 0.68179C7.64258 0.506054 7.35766 0.506054 7.18192 0.68179L5.18192 2.68179C5.00619 2.85753 5.00619 3.14245 5.18192 3.31819C5.35766 3.49392 5.64258 3.49392 5.81832 3.31819L7.05012 2.08638L7.05012 5.50023C7.05012 5.74876 7.25159 5.95023 7.50012 5.95023C7.74865 5.95023 7.95012 5.74876 7.95012 5.50023L7.95012 2.08638L9.18192 3.31819C9.35766 3.49392 9.64258 3.49392 9.81832 3.31819C9.99406 3.14245 9.99406 2.85753 9.81832 2.68179L7.81832 0.68179ZM7.95012 12.9136V9.50023C7.95012 9.2517 7.74865 9.05023 7.50012 9.05023C7.25159 9.05023 7.05012 9.2517 7.05012 9.50023V12.9136L5.81832 11.6818C5.64258 11.5061 5.35766 11.5061 5.18192 11.6818C5.00619 11.8575 5.00619 12.1424 5.18192 12.3182L7.18192 14.3182C7.26632 14.4026 7.38077 14.45 7.50012 14.45C7.61947 14.45 7.73393 14.4026 7.81832 14.3182L9.81832 12.3182C9.99406 12.1424 9.99406 11.8575 9.81832 11.6818C9.64258 11.5061 9.35766 11.5061 9.18192 11.6818L7.95012 12.9136ZM1.49994 7.00017C1.2238 7.00017 0.999939 7.22403 0.999939 7.50017C0.999939 7.77631 1.2238 8.00017 1.49994 8.00017L13.4999 8.00017C13.7761 8.00017 13.9999 7.77631 13.9999 7.50017C13.9999 7.22403 13.7761 7.00017 13.4999 7.00017L1.49994 7.00017Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),v6=["color"],dp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,v6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M14 12.85L1 12.85L1 14.15L14 14.15L14 12.85ZM14 8.85002L1 8.85002L1 10.15L14 10.15L14 8.85002ZM1 4.85003L14 4.85003L14 6.15003L1 6.15002L1 4.85003ZM14 0.850025L1 0.850025L1 2.15002L14 2.15002L14 0.850025Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),y6=["color"],pp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,y6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{opacity:".05",d:"M6.78296 13.376C8.73904 9.95284 8.73904 5.04719 6.78296 1.62405L7.21708 1.37598C9.261 4.95283 9.261 10.0472 7.21708 13.624L6.78296 13.376Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{opacity:".1",d:"M7.28204 13.4775C9.23929 9.99523 9.23929 5.00475 7.28204 1.52248L7.71791 1.2775C9.76067 4.9119 9.76067 10.0881 7.71791 13.7225L7.28204 13.4775Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{opacity:".15",d:"M7.82098 13.5064C9.72502 9.99523 9.72636 5.01411 7.82492 1.50084L8.26465 1.26285C10.2465 4.92466 10.2451 10.085 8.26052 13.7448L7.82098 13.5064Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{opacity:".2",d:"M8.41284 13.429C10.1952 9.92842 10.1957 5.07537 8.41435 1.57402L8.85999 1.34729C10.7139 4.99113 10.7133 10.0128 8.85841 13.6559L8.41284 13.429Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{opacity:".25",d:"M9.02441 13.2956C10.6567 9.8379 10.6586 5.17715 9.03005 1.71656L9.48245 1.50366C11.1745 5.09919 11.1726 9.91629 9.47657 13.5091L9.02441 13.2956Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{opacity:".3",d:"M9.66809 13.0655C11.1097 9.69572 11.1107 5.3121 9.67088 1.94095L10.1307 1.74457C11.6241 5.24121 11.6231 9.76683 10.1278 13.2622L9.66809 13.0655Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{opacity:".35",d:"M10.331 12.7456C11.5551 9.52073 11.5564 5.49103 10.3347 2.26444L10.8024 2.0874C12.0672 5.42815 12.0659 9.58394 10.7985 12.9231L10.331 12.7456Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{opacity:".4",d:"M11.0155 12.2986C11.9938 9.29744 11.9948 5.71296 11.0184 2.71067L11.4939 2.55603C12.503 5.6589 12.502 9.35178 11.4909 12.4535L11.0155 12.2986Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{opacity:".45",d:"M11.7214 11.668C12.4254 9.01303 12.4262 5.99691 11.7237 3.34116L12.2071 3.21329C12.9318 5.95292 12.931 9.05728 12.2047 11.7961L11.7214 11.668Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{opacity:".5",d:"M12.4432 10.752C12.8524 8.63762 12.8523 6.36089 12.4429 4.2466L12.9338 4.15155C13.3553 6.32861 13.3554 8.66985 12.9341 10.847L12.4432 10.752Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}),m.createElement("path",{d:"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),b6=["color"],dc=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,b6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M14.4999 0.999994C14.2237 0.999994 13.9999 1.22385 13.9999 1.49999L13.9999 5.99995L9.99992 5.99995C9.44764 5.99995 8.99993 6.44766 8.99993 6.99994L8.99993 7.99994C8.99993 8.55222 9.44764 8.99993 9.99992 8.99993L13.9999 8.99993L13.9999 13.4999C13.9999 13.776 14.2237 13.9999 14.4999 13.9999C14.776 13.9999 14.9999 13.776 14.9999 13.4999L14.9999 1.49999C14.9999 1.22385 14.776 0.999994 14.4999 0.999994ZM4.99996 5.99995L0.999992 5.99995L0.999992 1.49999C0.999992 1.22385 0.776136 0.999994 0.499996 0.999994C0.223856 0.999994 -9.7852e-09 1.22385 -2.18557e-08 1.49999L4.07279e-07 13.4999C3.95208e-07 13.776 0.223855 13.9999 0.499996 13.9999C0.776136 13.9999 0.999992 13.776 0.999992 13.4999L0.999992 8.99993L4.99996 8.99993C5.55224 8.99993 5.99995 8.55222 5.99995 7.99993L5.99995 6.99994C5.99995 6.44766 5.55224 5.99995 4.99996 5.99995Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),C6=["color"],w6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,C6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M14.4999 0.999992C14.2237 0.999992 13.9999 1.22385 13.9999 1.49999L13.9999 13.4999C13.9999 13.776 14.2237 13.9999 14.4999 13.9999C14.776 13.9999 14.9999 13.776 14.9999 13.4999L14.9999 1.49999C14.9999 1.22385 14.776 0.999992 14.4999 0.999992ZM0.499996 0.999992C0.223856 0.999992 -9.78509e-09 1.22385 -2.18556e-08 1.49999L4.07279e-07 13.4999C3.95208e-07 13.776 0.223855 13.9999 0.499996 13.9999C0.776136 13.9999 0.999992 13.776 0.999992 13.4999L0.999992 1.49999C0.999992 1.22385 0.776136 0.999992 0.499996 0.999992ZM1.99998 6.99994C1.99998 6.44766 2.44769 5.99995 2.99998 5.99995L5.99995 5.99995C6.55223 5.99995 6.99994 6.44766 6.99994 6.99994L6.99994 7.99993C6.99994 8.55221 6.55223 8.99992 5.99995 8.99992L2.99998 8.99992C2.4477 8.99992 1.99998 8.55221 1.99998 7.99993L1.99998 6.99994ZM8.99993 5.99995C8.44765 5.99995 7.99993 6.44766 7.99993 6.99994L7.99993 7.99993C7.99993 8.55221 8.44765 8.99992 8.99993 8.99992L11.9999 8.99992C12.5522 8.99992 12.9999 8.55221 12.9999 7.99993L12.9999 6.99994C12.9999 6.44766 12.5522 5.99995 11.9999 5.99995L8.99993 5.99995Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),S6=["color"],j6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,S6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M14.4999 0.999992C14.2237 0.999992 13.9999 1.22385 13.9999 1.49999L13.9999 5.99995L0.999992 5.99995L0.999992 1.49999C0.999992 1.22385 0.776136 0.999992 0.499996 0.999992C0.223856 0.999992 -9.78509e-09 1.22385 -2.18556e-08 1.49999L4.07279e-07 13.4999C3.95208e-07 13.776 0.223855 13.9999 0.499996 13.9999C0.776136 13.9999 0.999992 13.776 0.999992 13.4999L0.999992 8.99992L13.9999 8.99992L13.9999 13.4999C13.9999 13.776 14.2237 13.9999 14.4999 13.9999C14.776 13.9999 14.9999 13.776 14.9999 13.4999L14.9999 1.49999C14.9999 1.22385 14.776 0.999992 14.4999 0.999992Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),M6=["color"],E6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,M6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M5.00003 3.25C5.00003 2.97386 4.77617 2.75 4.50003 2.75C4.22389 2.75 4.00003 2.97386 4.00003 3.25V7.10003H2.49998C2.27906 7.10003 2.09998 7.27912 2.09998 7.50003C2.09998 7.72094 2.27906 7.90003 2.49998 7.90003H4.00003V8.55C4.00003 10.483 5.56703 12.05 7.50003 12.05C9.43303 12.05 11 10.483 11 8.55V7.90003H12.5C12.7209 7.90003 12.9 7.72094 12.9 7.50003C12.9 7.27912 12.7209 7.10003 12.5 7.10003H11V3.25C11 2.97386 10.7762 2.75 10.5 2.75C10.2239 2.75 10 2.97386 10 3.25V7.10003H5.00003V3.25ZM5.00003 7.90003V8.55C5.00003 9.93071 6.11932 11.05 7.50003 11.05C8.88074 11.05 10 9.93071 10 8.55V7.90003H5.00003Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),T6=["color"],_6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,T6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),R6=["color"],N6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,R6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM4 7.5C4 7.22386 4.22386 7 4.5 7H10.5C10.7761 7 11 7.22386 11 7.5C11 7.77614 10.7761 8 10.5 8H4.5C4.22386 8 4 7.77614 4 7.5ZM3 10.5C3 10.2239 3.22386 10 3.5 10H11.5C11.7761 10 12 10.2239 12 10.5C12 10.7761 11.7761 11 11.5 11H3.5C3.22386 11 3 10.7761 3 10.5Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),L6=["color"],O6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,L6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M2.5 4C2.22386 4 2 4.22386 2 4.5C2 4.77614 2.22386 5 2.5 5H12.5C12.7761 5 13 4.77614 13 4.5C13 4.22386 12.7761 4 12.5 4H2.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),A6=["color"],hp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,A6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM2 7.5C2 7.22386 2.22386 7 2.5 7H7.5C7.77614 7 8 7.22386 8 7.5C8 7.77614 7.77614 8 7.5 8H2.5C2.22386 8 2 7.77614 2 7.5ZM2 10.5C2 10.2239 2.22386 10 2.5 10H10.5C10.7761 10 11 10.2239 11 10.5C11 10.7761 10.7761 11 10.5 11H2.5C2.22386 11 2 10.7761 2 10.5Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),z6=["color"],H6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,z6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M2 4.5C2 4.22386 2.22386 4 2.5 4H12.5C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5ZM7 7.5C7 7.22386 7.22386 7 7.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H7.5C7.22386 8 7 7.77614 7 7.5ZM4 10.5C4 10.2239 4.22386 10 4.5 10H12.5C12.7761 10 13 10.2239 13 10.5C13 10.7761 12.7761 11 12.5 11H4.5C4.22386 11 4 10.7761 4 10.5Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),V6=["color"],gp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,V6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L11.9291 2.36383C11.9159 2.32246 11.897 2.28368 11.8732 2.24845C11.7923 2.12875 11.6554 2.05005 11.5001 2.05005H3.50005C3.29909 2.05005 3.1289 2.18178 3.07111 2.3636C3.05743 2.40665 3.05005 2.45249 3.05005 2.50007V4.50001C3.05005 4.74854 3.25152 4.95001 3.50005 4.95001C3.74858 4.95001 3.95005 4.74854 3.95005 4.50001V2.95005H6.95006V7.34284L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L6.95006 8.75705V12.0501H5.7544C5.50587 12.0501 5.3044 12.2515 5.3044 12.5001C5.3044 12.7486 5.50587 12.9501 5.7544 12.9501H9.2544C9.50293 12.9501 9.7044 12.7486 9.7044 12.5001C9.7044 12.2515 9.50293 12.0501 9.2544 12.0501H8.05006V7.65705L13.3536 2.35355ZM8.05006 6.24284L11.0501 3.24283V2.95005H8.05006V6.24284Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),D6=["color"],k6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,D6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M4.5 2C3.11929 2 2 3.11929 2 4.5C2 5.88072 3.11929 7 4.5 7C5.88072 7 7 5.88072 7 4.5C7 3.11929 5.88072 2 4.5 2ZM3 4.5C3 3.67157 3.67157 3 4.5 3C5.32843 3 6 3.67157 6 4.5C6 5.32843 5.32843 6 4.5 6C3.67157 6 3 5.32843 3 4.5ZM10.5 2C9.11929 2 8 3.11929 8 4.5C8 5.88072 9.11929 7 10.5 7C11.8807 7 13 5.88072 13 4.5C13 3.11929 11.8807 2 10.5 2ZM9 4.5C9 3.67157 9.67157 3 10.5 3C11.3284 3 12 3.67157 12 4.5C12 5.32843 11.3284 6 10.5 6C9.67157 6 9 5.32843 9 4.5ZM2 10.5C2 9.11929 3.11929 8 4.5 8C5.88072 8 7 9.11929 7 10.5C7 11.8807 5.88072 13 4.5 13C3.11929 13 2 11.8807 2 10.5ZM4.5 9C3.67157 9 3 9.67157 3 10.5C3 11.3284 3.67157 12 4.5 12C5.32843 12 6 11.3284 6 10.5C6 9.67157 5.32843 9 4.5 9ZM10.5 8C9.11929 8 8 9.11929 8 10.5C8 11.8807 9.11929 13 10.5 13C11.8807 13 13 11.8807 13 10.5C13 9.11929 11.8807 8 10.5 8ZM9 10.5C9 9.67157 9.67157 9 10.5 9C11.3284 9 12 9.67157 12 10.5C12 11.3284 11.3284 12 10.5 12C9.67157 12 9 11.3284 9 10.5Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),$6=["color"],B6=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,$6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M0.849976 1.74998C0.849976 1.25292 1.25292 0.849976 1.74998 0.849976H3.24998C3.74703 0.849976 4.14998 1.25292 4.14998 1.74998V2.04998H10.85V1.74998C10.85 1.25292 11.2529 0.849976 11.75 0.849976H13.25C13.747 0.849976 14.15 1.25292 14.15 1.74998V3.24998C14.15 3.74703 13.747 4.14998 13.25 4.14998H12.95V10.85H13.25C13.747 10.85 14.15 11.2529 14.15 11.75V13.25C14.15 13.747 13.747 14.15 13.25 14.15H11.75C11.2529 14.15 10.85 13.747 10.85 13.25V12.95H4.14998V13.25C4.14998 13.747 3.74703 14.15 3.24998 14.15H1.74998C1.25292 14.15 0.849976 13.747 0.849976 13.25V11.75C0.849976 11.2529 1.25292 10.85 1.74998 10.85H2.04998V4.14998H1.74998C1.25292 4.14998 0.849976 3.74703 0.849976 3.24998V1.74998ZM2.94998 4.14998V10.85H3.24998C3.74703 10.85 4.14998 11.2529 4.14998 11.75V12.05H10.85V11.75C10.85 11.2529 11.2529 10.85 11.75 10.85H12.05V4.14998H11.75C11.2529 4.14998 10.85 3.74703 10.85 3.24998V2.94998H4.14998V3.24998C4.14998 3.74703 3.74703 4.14998 3.24998 4.14998H2.94998ZM2.34998 1.74998H1.74998V2.34998V2.64998V3.24998H2.34998H2.64998H3.24998V2.64998V2.34998V1.74998H2.64998H2.34998ZM5.09998 5.99998C5.09998 5.50292 5.50292 5.09998 5.99998 5.09998H6.99998C7.49703 5.09998 7.89998 5.50292 7.89998 5.99998V6.99998C7.89998 7.03591 7.89787 7.07134 7.89378 7.10618C7.92861 7.10208 7.96405 7.09998 7.99998 7.09998H8.99998C9.49703 7.09998 9.89998 7.50292 9.89998 7.99998V8.99998C9.89998 9.49703 9.49703 9.89998 8.99998 9.89998H7.99998C7.50292 9.89998 7.09998 9.49703 7.09998 8.99998V7.99998C7.09998 7.96405 7.10208 7.92861 7.10618 7.89378C7.07134 7.89787 7.03591 7.89998 6.99998 7.89998H5.99998C5.50292 7.89998 5.09998 7.49703 5.09998 6.99998V5.99998ZM6.09998 5.99998H5.99998V6.09998V6.89998V6.99998H6.09998H6.89998H6.99998V6.89998V6.09998V5.99998H6.89998H6.09998ZM7.99998 7.99998H8.09998H8.89998H8.99998V8.09998V8.89998V8.99998H8.89998H8.09998H7.99998V8.89998V8.09998V7.99998ZM2.64998 11.75H2.34998H1.74998V12.35V12.65V13.25H2.34998H2.64998H3.24998V12.65V12.35V11.75H2.64998ZM11.75 1.74998H12.35H12.65H13.25V2.34998V2.64998V3.24998H12.65H12.35H11.75V2.64998V2.34998V1.74998ZM12.65 11.75H12.35H11.75V12.35V12.65V13.25H12.35H12.65H13.25V12.65V12.35V11.75H12.65Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),U6=["color"],mp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,U6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Z6=["color"],xp=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Z6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M5.00001 2.75C5.00001 2.47386 4.77615 2.25 4.50001 2.25C4.22387 2.25 4.00001 2.47386 4.00001 2.75V8.05C4.00001 9.983 5.56702 11.55 7.50001 11.55C9.43301 11.55 11 9.983 11 8.05V2.75C11 2.47386 10.7762 2.25 10.5 2.25C10.2239 2.25 10 2.47386 10 2.75V8.05C10 9.43071 8.88072 10.55 7.50001 10.55C6.1193 10.55 5.00001 9.43071 5.00001 8.05V2.75ZM3.49998 13.1001C3.27906 13.1001 3.09998 13.2791 3.09998 13.5001C3.09998 13.721 3.27906 13.9001 3.49998 13.9001H11.5C11.7209 13.9001 11.9 13.721 11.9 13.5001C11.9 13.2791 11.7209 13.1001 11.5 13.1001H3.49998Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}),Y6=["color"],b1=m.forwardRef(function(t,a){var r=t.color,i=r===void 0?"currentColor":r,c=re(t,Y6);return m.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c,{ref:a}),m.createElement("path",{d:"M4.81812 4.68161C4.99386 4.85734 4.99386 5.14227 4.81812 5.318L3.08632 7.0498H11.9135L10.1817 5.318C10.006 5.14227 10.006 4.85734 10.1817 4.68161C10.3575 4.50587 10.6424 4.50587 10.8181 4.68161L13.3181 7.18161C13.4939 7.35734 13.4939 7.64227 13.3181 7.818L10.8181 10.318C10.6424 10.4937 10.3575 10.4937 10.1817 10.318C10.006 10.1423 10.006 9.85734 10.1817 9.68161L11.9135 7.9498H3.08632L4.81812 9.68161C4.99386 9.85734 4.99386 10.1423 4.81812 10.318C4.64239 10.4937 4.35746 10.4937 4.18173 10.318L1.68173 7.818C1.50599 7.64227 1.50599 7.35734 1.68173 7.18161L4.18173 4.68161C4.35746 4.50587 4.64239 4.50587 4.81812 4.68161Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))});/**
|
|
50
|
+
* @license lucide-react v0.575.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const vp=(...t)=>t.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim();/**
|
|
55
|
+
* @license lucide-react v0.575.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/const X6=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
60
|
+
* @license lucide-react v0.575.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const q6=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase());/**
|
|
65
|
+
* @license lucide-react v0.575.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const M5=t=>{const a=q6(t);return a.charAt(0).toUpperCase()+a.slice(1)};/**
|
|
70
|
+
* @license lucide-react v0.575.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var G6={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
75
|
+
* @license lucide-react v0.575.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const Q6=t=>{for(const a in t)if(a.startsWith("aria-")||a==="role"||a==="title")return!0;return!1};/**
|
|
80
|
+
* @license lucide-react v0.575.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const K6=m.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:c="",children:u,iconNode:d,...h},x)=>m.createElement("svg",{ref:x,...G6,width:a,height:a,stroke:t,strokeWidth:i?Number(r)*24/Number(a):r,className:vp("lucide",c),...!u&&!Q6(h)&&{"aria-hidden":"true"},...h},[...d.map(([g,y])=>m.createElement(g,y)),...Array.isArray(u)?u:[u]]));/**
|
|
85
|
+
* @license lucide-react v0.575.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const mo=(t,a)=>{const r=m.forwardRef(({className:i,...c},u)=>m.createElement(K6,{ref:u,iconNode:a,className:vp(`lucide-${X6(M5(t))}`,`lucide-${t}`,i),...c}));return r.displayName=M5(t),r};/**
|
|
90
|
+
* @license lucide-react v0.575.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const P6=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],J6=mo("chevron-down",P6);/**
|
|
95
|
+
* @license lucide-react v0.575.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const F6=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],W6=mo("chevrons-down-up",F6);/**
|
|
100
|
+
* @license lucide-react v0.575.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const I6=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],em=mo("chevrons-up-down",I6);/**
|
|
105
|
+
* @license lucide-react v0.575.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const tm=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],nm=mo("monitor",tm);/**
|
|
110
|
+
* @license lucide-react v0.575.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const lm=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],E5=mo("panel-left",lm);function am(t){if("source"in t)return t;const a=t;return{tag:a.tag,className:a.className,computed:a.computedStyles,parentComputed:a.parentComputedStyles,boundingRect:a.boundingRect,textContent:a.textContent,attributes:a.attributes,domPath:a.domPath||null,source:a.sourceFile!=null?{file:a.sourceFile,line:a.sourceLine,col:a.sourceCol}:null,instanceSource:a.instanceSourceFile!=null?{file:a.instanceSourceFile,line:a.instanceSourceLine,col:a.instanceSourceCol}:null,componentName:a.componentName||null}}function rm(t,a){var r;(r=t.contentWindow)==null||r.postMessage(a,"*")}function om(t){const a=r=>{var c;const i=r.data;if((c=i==null?void 0:i.type)!=null&&c.startsWith("tool:")){if(i.type==="tool:elementSelected"&&i.data){t({type:"tool:elementSelected",data:am(i.data)});return}t(i)}};return window.addEventListener("message",a),()=>window.removeEventListener("message",a)}function im(t,a){const r=m.useRef(a);return r.current=a,m.useEffect(()=>om(c=>{r.current(c)}),[]),{send:m.useCallback(c=>{t.current&&rm(t.current,c)},[t])}}function Tt(t,a,{checkForDefaultPrevented:r=!0}={}){return function(c){if(t==null||t(c),r===!1||!c.defaultPrevented)return a==null?void 0:a(c)}}function T5(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function yp(...t){return a=>{let r=!1;const i=t.map(c=>{const u=T5(c,a);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let c=0;c<i.length;c++){const u=i[c];typeof u=="function"?u():T5(t[c],null)}}}}function bn(...t){return m.useCallback(yp(...t),t)}function A0(t,a=[]){let r=[];function i(u,d){const h=m.createContext(d),x=r.length;r=[...r,d];const g=b=>{var T;const{scope:C,children:S,...j}=b,M=((T=C==null?void 0:C[t])==null?void 0:T[x])||h,E=m.useMemo(()=>j,Object.values(j));return f.jsx(M.Provider,{value:E,children:S})};g.displayName=u+"Provider";function y(b,C){var M;const S=((M=C==null?void 0:C[t])==null?void 0:M[x])||h,j=m.useContext(S);if(j)return j;if(d!==void 0)return d;throw new Error(`\`${b}\` must be used within \`${u}\``)}return[g,y]}const c=()=>{const u=r.map(d=>m.createContext(d));return function(h){const x=(h==null?void 0:h[t])||u;return m.useMemo(()=>({[`__scope${t}`]:{...h,[t]:x}}),[h,x])}};return c.scopeName=t,[i,cm(c,...a)]}function cm(...t){const a=t[0];if(t.length===1)return a;const r=()=>{const i=t.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(u){const d=i.reduce((h,{useScope:x,scopeName:g})=>{const b=x(u)[`__scope${g}`];return{...h,...b}},{});return m.useMemo(()=>({[`__scope${a.scopeName}`]:d}),[d])}};return r.scopeName=a.scopeName,r}var z0=X3();const sm=Y3(z0);function bp(t){const a=um(t),r=m.forwardRef((i,c)=>{const{children:u,...d}=i,h=m.Children.toArray(u),x=h.find(dm);if(x){const g=x.props.children,y=h.map(b=>b===x?m.Children.count(g)>1?m.Children.only(null):m.isValidElement(g)?g.props.children:null:b);return f.jsx(a,{...d,ref:c,children:m.isValidElement(g)?m.cloneElement(g,void 0,y):null})}return f.jsx(a,{...d,ref:c,children:u})});return r.displayName=`${t}.Slot`,r}function um(t){const a=m.forwardRef((r,i)=>{const{children:c,...u}=r;if(m.isValidElement(c)){const d=hm(c),h=pm(u,c.props);return c.type!==m.Fragment&&(h.ref=i?yp(i,d):d),m.cloneElement(c,h)}return m.Children.count(c)>1?m.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var Cp=Symbol("radix.slottable");function fm(t){const a=({children:r})=>f.jsx(f.Fragment,{children:r});return a.displayName=`${t}.Slottable`,a.__radixId=Cp,a}function dm(t){return m.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Cp}function pm(t,a){const r={...a};for(const i in a){const c=t[i],u=a[i];/^on[A-Z]/.test(i)?c&&u?r[i]=(...h)=>{const x=u(...h);return c(...h),x}:c&&(r[i]=c):i==="style"?r[i]={...c,...u}:i==="className"&&(r[i]=[c,u].filter(Boolean).join(" "))}return{...t,...r}}function hm(t){var i,c;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var gm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rn=gm.reduce((t,a)=>{const r=bp(`Primitive.${a}`),i=m.forwardRef((c,u)=>{const{asChild:d,...h}=c,x=d?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(x,{...h,ref:u})});return i.displayName=`Primitive.${a}`,{...t,[a]:i}},{});function mm(t,a){t&&z0.flushSync(()=>t.dispatchEvent(a))}function Ia(t){const a=m.useRef(t);return m.useEffect(()=>{a.current=t}),m.useMemo(()=>(...r)=>{var i;return(i=a.current)==null?void 0:i.call(a,...r)},[])}function xm(t,a=globalThis==null?void 0:globalThis.document){const r=Ia(t);m.useEffect(()=>{const i=c=>{c.key==="Escape"&&r(c)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var vm="DismissableLayer",o0="dismissableLayer.update",ym="dismissableLayer.pointerDownOutside",bm="dismissableLayer.focusOutside",_5,wp=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),H0=m.forwardRef((t,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,onDismiss:h,...x}=t,g=m.useContext(wp),[y,b]=m.useState(null),C=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=m.useState({}),j=bn(a,Z=>b(Z)),M=Array.from(g.layers),[E]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),T=M.indexOf(E),N=y?M.indexOf(y):-1,O=g.layersWithOutsidePointerEventsDisabled.size>0,$=N>=T,H=Sm(Z=>{const ae=Z.target,ce=[...g.branches].some(X=>X.contains(ae));!$||ce||(c==null||c(Z),d==null||d(Z),Z.defaultPrevented||h==null||h())},C),K=jm(Z=>{const ae=Z.target;[...g.branches].some(X=>X.contains(ae))||(u==null||u(Z),d==null||d(Z),Z.defaultPrevented||h==null||h())},C);return xm(Z=>{N===g.layers.size-1&&(i==null||i(Z),!Z.defaultPrevented&&h&&(Z.preventDefault(),h()))},C),m.useEffect(()=>{if(y)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(_5=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),R5(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=_5)}},[y,C,r,g]),m.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),R5())},[y,g]),m.useEffect(()=>{const Z=()=>S({});return document.addEventListener(o0,Z),()=>document.removeEventListener(o0,Z)},[]),f.jsx(rn.div,{...x,ref:j,style:{pointerEvents:O?$?"auto":"none":void 0,...t.style},onFocusCapture:Tt(t.onFocusCapture,K.onFocusCapture),onBlurCapture:Tt(t.onBlurCapture,K.onBlurCapture),onPointerDownCapture:Tt(t.onPointerDownCapture,H.onPointerDownCapture)})});H0.displayName=vm;var Cm="DismissableLayerBranch",wm=m.forwardRef((t,a)=>{const r=m.useContext(wp),i=m.useRef(null),c=bn(a,i);return m.useEffect(()=>{const u=i.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),f.jsx(rn.div,{...t,ref:c})});wm.displayName=Cm;function Sm(t,a=globalThis==null?void 0:globalThis.document){const r=Ia(t),i=m.useRef(!1),c=m.useRef(()=>{});return m.useEffect(()=>{const u=h=>{if(h.target&&!i.current){let x=function(){Sp(ym,r,g,{discrete:!0})};const g={originalEvent:h};h.pointerType==="touch"?(a.removeEventListener("click",c.current),c.current=x,a.addEventListener("click",c.current,{once:!0})):x()}else a.removeEventListener("click",c.current);i.current=!1},d=window.setTimeout(()=>{a.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(d),a.removeEventListener("pointerdown",u),a.removeEventListener("click",c.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function jm(t,a=globalThis==null?void 0:globalThis.document){const r=Ia(t),i=m.useRef(!1);return m.useEffect(()=>{const c=u=>{u.target&&!i.current&&Sp(bm,r,{originalEvent:u},{discrete:!1})};return a.addEventListener("focusin",c),()=>a.removeEventListener("focusin",c)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function R5(){const t=new CustomEvent(o0);document.dispatchEvent(t)}function Sp(t,a,r,{discrete:i}){const c=r.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});a&&c.addEventListener(t,a,{once:!0}),i?mm(c,u):c.dispatchEvent(u)}var C1=0;function Mm(){m.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??N5()),document.body.insertAdjacentElement("beforeend",t[1]??N5()),C1++,()=>{C1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),C1--}},[])}function N5(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var w1="focusScope.autoFocusOnMount",S1="focusScope.autoFocusOnUnmount",L5={bubbles:!1,cancelable:!0},Em="FocusScope",jp=m.forwardRef((t,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:c,onUnmountAutoFocus:u,...d}=t,[h,x]=m.useState(null),g=Ia(c),y=Ia(u),b=m.useRef(null),C=bn(a,M=>x(M)),S=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(i){let M=function(O){if(S.paused||!h)return;const $=O.target;h.contains($)?b.current=$:yl(b.current,{select:!0})},E=function(O){if(S.paused||!h)return;const $=O.relatedTarget;$!==null&&(h.contains($)||yl(b.current,{select:!0}))},T=function(O){if(document.activeElement===document.body)for(const H of O)H.removedNodes.length>0&&yl(h)};document.addEventListener("focusin",M),document.addEventListener("focusout",E);const N=new MutationObserver(T);return h&&N.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",M),document.removeEventListener("focusout",E),N.disconnect()}}},[i,h,S.paused]),m.useEffect(()=>{if(h){A5.add(S);const M=document.activeElement;if(!h.contains(M)){const T=new CustomEvent(w1,L5);h.addEventListener(w1,g),h.dispatchEvent(T),T.defaultPrevented||(Tm(Om(Mp(h)),{select:!0}),document.activeElement===M&&yl(h))}return()=>{h.removeEventListener(w1,g),setTimeout(()=>{const T=new CustomEvent(S1,L5);h.addEventListener(S1,y),h.dispatchEvent(T),T.defaultPrevented||yl(M??document.body,{select:!0}),h.removeEventListener(S1,y),A5.remove(S)},0)}}},[h,g,y,S]);const j=m.useCallback(M=>{if(!r&&!i||S.paused)return;const E=M.key==="Tab"&&!M.altKey&&!M.ctrlKey&&!M.metaKey,T=document.activeElement;if(E&&T){const N=M.currentTarget,[O,$]=_m(N);O&&$?!M.shiftKey&&T===$?(M.preventDefault(),r&&yl(O,{select:!0})):M.shiftKey&&T===O&&(M.preventDefault(),r&&yl($,{select:!0})):T===N&&M.preventDefault()}},[r,i,S.paused]);return f.jsx(rn.div,{tabIndex:-1,...d,ref:C,onKeyDown:j})});jp.displayName=Em;function Tm(t,{select:a=!1}={}){const r=document.activeElement;for(const i of t)if(yl(i,{select:a}),document.activeElement!==r)return}function _m(t){const a=Mp(t),r=O5(a,t),i=O5(a.reverse(),t);return[r,i]}function Mp(t){const a=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const c=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||c?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function O5(t,a){for(const r of t)if(!Rm(r,{upTo:a}))return r}function Rm(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Nm(t){return t instanceof HTMLInputElement&&"select"in t}function yl(t,{select:a=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&Nm(t)&&a&&t.select()}}var A5=Lm();function Lm(){let t=[];return{add(a){const r=t[0];a!==r&&(r==null||r.pause()),t=z5(t,a),t.unshift(a)},remove(a){var r;t=z5(t,a),(r=t[0])==null||r.resume()}}}function z5(t,a){const r=[...t],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function Om(t){return t.filter(a=>a.tagName!=="A")}var El=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Am=q3[" useId ".trim().toString()]||(()=>{}),zm=0;function Ep(t){const[a,r]=m.useState(Am());return El(()=>{r(i=>i??String(zm++))},[t]),t||(a?`radix-${a}`:"")}const Hm=["top","right","bottom","left"],Tl=Math.min,Dt=Math.max,pc=Math.round,Gi=Math.floor,xn=t=>({x:t,y:t}),Vm={left:"right",right:"left",bottom:"top",top:"bottom"},Dm={start:"end",end:"start"};function i0(t,a,r){return Dt(t,Tl(a,r))}function Un(t,a){return typeof t=="function"?t(a):t}function Zn(t){return t.split("-")[0]}function rr(t){return t.split("-")[1]}function V0(t){return t==="x"?"y":"x"}function D0(t){return t==="y"?"height":"width"}const km=new Set(["top","bottom"]);function mn(t){return km.has(Zn(t))?"y":"x"}function k0(t){return V0(mn(t))}function $m(t,a,r){r===void 0&&(r=!1);const i=rr(t),c=k0(t),u=D0(c);let d=c==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(d=hc(d)),[d,hc(d)]}function Bm(t){const a=hc(t);return[c0(t),a,c0(a)]}function c0(t){return t.replace(/start|end/g,a=>Dm[a])}const H5=["left","right"],V5=["right","left"],Um=["top","bottom"],Zm=["bottom","top"];function Ym(t,a,r){switch(t){case"top":case"bottom":return r?a?V5:H5:a?H5:V5;case"left":case"right":return a?Um:Zm;default:return[]}}function Xm(t,a,r,i){const c=rr(t);let u=Ym(Zn(t),r==="start",i);return c&&(u=u.map(d=>d+"-"+c),a&&(u=u.concat(u.map(c0)))),u}function hc(t){return t.replace(/left|right|bottom|top/g,a=>Vm[a])}function qm(t){return{top:0,right:0,bottom:0,left:0,...t}}function Tp(t){return typeof t!="number"?qm(t):{top:t,right:t,bottom:t,left:t}}function gc(t){const{x:a,y:r,width:i,height:c}=t;return{width:i,height:c,top:r,left:a,right:a+i,bottom:r+c,x:a,y:r}}function D5(t,a,r){let{reference:i,floating:c}=t;const u=mn(a),d=k0(a),h=D0(d),x=Zn(a),g=u==="y",y=i.x+i.width/2-c.width/2,b=i.y+i.height/2-c.height/2,C=i[h]/2-c[h]/2;let S;switch(x){case"top":S={x:y,y:i.y-c.height};break;case"bottom":S={x:y,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y:b};break;case"left":S={x:i.x-c.width,y:b};break;default:S={x:i.x,y:i.y}}switch(rr(a)){case"start":S[d]-=C*(r&&g?-1:1);break;case"end":S[d]+=C*(r&&g?-1:1);break}return S}async function Gm(t,a){var r;a===void 0&&(a={});const{x:i,y:c,platform:u,rects:d,elements:h,strategy:x}=t,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:C=!1,padding:S=0}=Un(a,t),j=Tp(S),E=h[C?b==="floating"?"reference":"floating":b],T=gc(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(E)))==null||r?E:E.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:g,rootBoundary:y,strategy:x})),N=b==="floating"?{x:i,y:c,width:d.floating.width,height:d.floating.height}:d.reference,O=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),$=await(u.isElement==null?void 0:u.isElement(O))?await(u.getScale==null?void 0:u.getScale(O))||{x:1,y:1}:{x:1,y:1},H=gc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:N,offsetParent:O,strategy:x}):N);return{top:(T.top-H.top+j.top)/$.y,bottom:(H.bottom-T.bottom+j.bottom)/$.y,left:(T.left-H.left+j.left)/$.x,right:(H.right-T.right+j.right)/$.x}}const Qm=async(t,a,r)=>{const{placement:i="bottom",strategy:c="absolute",middleware:u=[],platform:d}=r,h=u.filter(Boolean),x=await(d.isRTL==null?void 0:d.isRTL(a));let g=await d.getElementRects({reference:t,floating:a,strategy:c}),{x:y,y:b}=D5(g,i,x),C=i,S={},j=0;for(let E=0;E<h.length;E++){var M;const{name:T,fn:N}=h[E],{x:O,y:$,data:H,reset:K}=await N({x:y,y:b,initialPlacement:i,placement:C,strategy:c,middlewareData:S,rects:g,platform:{...d,detectOverflow:(M=d.detectOverflow)!=null?M:Gm},elements:{reference:t,floating:a}});y=O??y,b=$??b,S={...S,[T]:{...S[T],...H}},K&&j<=50&&(j++,typeof K=="object"&&(K.placement&&(C=K.placement),K.rects&&(g=K.rects===!0?await d.getElementRects({reference:t,floating:a,strategy:c}):K.rects),{x:y,y:b}=D5(g,C,x)),E=-1)}return{x:y,y:b,placement:C,strategy:c,middlewareData:S}},Km=t=>({name:"arrow",options:t,async fn(a){const{x:r,y:i,placement:c,rects:u,platform:d,elements:h,middlewareData:x}=a,{element:g,padding:y=0}=Un(t,a)||{};if(g==null)return{};const b=Tp(y),C={x:r,y:i},S=k0(c),j=D0(S),M=await d.getDimensions(g),E=S==="y",T=E?"top":"left",N=E?"bottom":"right",O=E?"clientHeight":"clientWidth",$=u.reference[j]+u.reference[S]-C[S]-u.floating[j],H=C[S]-u.reference[S],K=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g));let Z=K?K[O]:0;(!Z||!await(d.isElement==null?void 0:d.isElement(K)))&&(Z=h.floating[O]||u.floating[j]);const ae=$/2-H/2,ce=Z/2-M[j]/2-1,X=Tl(b[T],ce),P=Tl(b[N],ce),ee=X,xe=Z-M[j]-P,fe=Z/2-M[j]/2+ae,Ce=i0(ee,fe,xe),A=!x.arrow&&rr(c)!=null&&fe!==Ce&&u.reference[j]/2-(fe<ee?X:P)-M[j]/2<0,B=A?fe<ee?fe-ee:fe-xe:0;return{[S]:C[S]+B,data:{[S]:Ce,centerOffset:fe-Ce-B,...A&&{alignmentOffset:B}},reset:A}}}),Pm=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var r,i;const{placement:c,middlewareData:u,rects:d,initialPlacement:h,platform:x,elements:g}=a,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:C,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:M=!0,...E}=Un(t,a);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const T=Zn(c),N=mn(h),O=Zn(h)===h,$=await(x.isRTL==null?void 0:x.isRTL(g.floating)),H=C||(O||!M?[hc(h)]:Bm(h)),K=j!=="none";!C&&K&&H.push(...Xm(h,M,j,$));const Z=[h,...H],ae=await x.detectOverflow(a,E),ce=[];let X=((i=u.flip)==null?void 0:i.overflows)||[];if(y&&ce.push(ae[T]),b){const fe=$m(c,d,$);ce.push(ae[fe[0]],ae[fe[1]])}if(X=[...X,{placement:c,overflows:ce}],!ce.every(fe=>fe<=0)){var P,ee;const fe=(((P=u.flip)==null?void 0:P.index)||0)+1,Ce=Z[fe];if(Ce&&(!(b==="alignment"?N!==mn(Ce):!1)||X.every(J=>mn(J.placement)===N?J.overflows[0]>0:!0)))return{data:{index:fe,overflows:X},reset:{placement:Ce}};let A=(ee=X.filter(B=>B.overflows[0]<=0).sort((B,J)=>B.overflows[1]-J.overflows[1])[0])==null?void 0:ee.placement;if(!A)switch(S){case"bestFit":{var xe;const B=(xe=X.filter(J=>{if(K){const ie=mn(J.placement);return ie===N||ie==="y"}return!0}).map(J=>[J.placement,J.overflows.filter(ie=>ie>0).reduce((ie,pe)=>ie+pe,0)]).sort((J,ie)=>J[1]-ie[1])[0])==null?void 0:xe[0];B&&(A=B);break}case"initialPlacement":A=h;break}if(c!==A)return{reset:{placement:A}}}return{}}}};function k5(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function $5(t){return Hm.some(a=>t[a]>=0)}const Jm=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:r,platform:i}=a,{strategy:c="referenceHidden",...u}=Un(t,a);switch(c){case"referenceHidden":{const d=await i.detectOverflow(a,{...u,elementContext:"reference"}),h=k5(d,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:$5(h)}}}case"escaped":{const d=await i.detectOverflow(a,{...u,altBoundary:!0}),h=k5(d,r.floating);return{data:{escapedOffsets:h,escaped:$5(h)}}}default:return{}}}}},_p=new Set(["left","top"]);async function Fm(t,a){const{placement:r,platform:i,elements:c}=t,u=await(i.isRTL==null?void 0:i.isRTL(c.floating)),d=Zn(r),h=rr(r),x=mn(r)==="y",g=_p.has(d)?-1:1,y=u&&x?-1:1,b=Un(a,t);let{mainAxis:C,crossAxis:S,alignmentAxis:j}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof j=="number"&&(S=h==="end"?j*-1:j),x?{x:S*y,y:C*g}:{x:C*g,y:S*y}}const Wm=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var r,i;const{x:c,y:u,placement:d,middlewareData:h}=a,x=await Fm(a,t);return d===((r=h.offset)==null?void 0:r.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:c+x.x,y:u+x.y,data:{...x,placement:d}}}}},Im=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:r,y:i,placement:c,platform:u}=a,{mainAxis:d=!0,crossAxis:h=!1,limiter:x={fn:T=>{let{x:N,y:O}=T;return{x:N,y:O}}},...g}=Un(t,a),y={x:r,y:i},b=await u.detectOverflow(a,g),C=mn(Zn(c)),S=V0(C);let j=y[S],M=y[C];if(d){const T=S==="y"?"top":"left",N=S==="y"?"bottom":"right",O=j+b[T],$=j-b[N];j=i0(O,j,$)}if(h){const T=C==="y"?"top":"left",N=C==="y"?"bottom":"right",O=M+b[T],$=M-b[N];M=i0(O,M,$)}const E=x.fn({...a,[S]:j,[C]:M});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[S]:d,[C]:h}}}}}},ex=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:r,y:i,placement:c,rects:u,middlewareData:d}=a,{offset:h=0,mainAxis:x=!0,crossAxis:g=!0}=Un(t,a),y={x:r,y:i},b=mn(c),C=V0(b);let S=y[C],j=y[b];const M=Un(h,a),E=typeof M=="number"?{mainAxis:M,crossAxis:0}:{mainAxis:0,crossAxis:0,...M};if(x){const O=C==="y"?"height":"width",$=u.reference[C]-u.floating[O]+E.mainAxis,H=u.reference[C]+u.reference[O]-E.mainAxis;S<$?S=$:S>H&&(S=H)}if(g){var T,N;const O=C==="y"?"width":"height",$=_p.has(Zn(c)),H=u.reference[b]-u.floating[O]+($&&((T=d.offset)==null?void 0:T[b])||0)+($?0:E.crossAxis),K=u.reference[b]+u.reference[O]+($?0:((N=d.offset)==null?void 0:N[b])||0)-($?E.crossAxis:0);j<H?j=H:j>K&&(j=K)}return{[C]:S,[b]:j}}}},tx=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var r,i;const{placement:c,rects:u,platform:d,elements:h}=a,{apply:x=()=>{},...g}=Un(t,a),y=await d.detectOverflow(a,g),b=Zn(c),C=rr(c),S=mn(c)==="y",{width:j,height:M}=u.floating;let E,T;b==="top"||b==="bottom"?(E=b,T=C===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(T=b,E=C==="end"?"top":"bottom");const N=M-y.top-y.bottom,O=j-y.left-y.right,$=Tl(M-y[E],N),H=Tl(j-y[T],O),K=!a.middlewareData.shift;let Z=$,ae=H;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(ae=O),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(Z=N),K&&!C){const X=Dt(y.left,0),P=Dt(y.right,0),ee=Dt(y.top,0),xe=Dt(y.bottom,0);S?ae=j-2*(X!==0||P!==0?X+P:Dt(y.left,y.right)):Z=M-2*(ee!==0||xe!==0?ee+xe:Dt(y.top,y.bottom))}await x({...a,availableWidth:ae,availableHeight:Z});const ce=await d.getDimensions(h.floating);return j!==ce.width||M!==ce.height?{reset:{rects:!0}}:{}}}};function Rc(){return typeof window<"u"}function or(t){return Rp(t)?(t.nodeName||"").toLowerCase():"#document"}function $t(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function Cn(t){var a;return(a=(Rp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function Rp(t){return Rc()?t instanceof Node||t instanceof $t(t).Node:!1}function nn(t){return Rc()?t instanceof Element||t instanceof $t(t).Element:!1}function yn(t){return Rc()?t instanceof HTMLElement||t instanceof $t(t).HTMLElement:!1}function B5(t){return!Rc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof $t(t).ShadowRoot}const nx=new Set(["inline","contents"]);function xo(t){const{overflow:a,overflowX:r,overflowY:i,display:c}=ln(t);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&!nx.has(c)}const lx=new Set(["table","td","th"]);function ax(t){return lx.has(or(t))}const rx=[":popover-open",":modal"];function Nc(t){return rx.some(a=>{try{return t.matches(a)}catch{return!1}})}const ox=["transform","translate","scale","rotate","perspective"],ix=["transform","translate","scale","rotate","perspective","filter"],cx=["paint","layout","strict","content"];function $0(t){const a=B0(),r=nn(t)?ln(t):t;return ox.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!a&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!a&&(r.filter?r.filter!=="none":!1)||ix.some(i=>(r.willChange||"").includes(i))||cx.some(i=>(r.contain||"").includes(i))}function sx(t){let a=_l(t);for(;yn(a)&&!er(a);){if($0(a))return a;if(Nc(a))return null;a=_l(a)}return null}function B0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ux=new Set(["html","body","#document"]);function er(t){return ux.has(or(t))}function ln(t){return $t(t).getComputedStyle(t)}function Lc(t){return nn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function _l(t){if(or(t)==="html")return t;const a=t.assignedSlot||t.parentNode||B5(t)&&t.host||Cn(t);return B5(a)?a.host:a}function Np(t){const a=_l(t);return er(a)?t.ownerDocument?t.ownerDocument.body:t.body:yn(a)&&xo(a)?a:Np(a)}function po(t,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const c=Np(t),u=c===((i=t.ownerDocument)==null?void 0:i.body),d=$t(c);if(u){const h=s0(d);return a.concat(d,d.visualViewport||[],xo(c)?c:[],h&&r?po(h):[])}return a.concat(c,po(c,[],r))}function s0(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Lp(t){const a=ln(t);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const c=yn(t),u=c?t.offsetWidth:r,d=c?t.offsetHeight:i,h=pc(r)!==u||pc(i)!==d;return h&&(r=u,i=d),{width:r,height:i,$:h}}function U0(t){return nn(t)?t:t.contextElement}function Pa(t){const a=U0(t);if(!yn(a))return xn(1);const r=a.getBoundingClientRect(),{width:i,height:c,$:u}=Lp(a);let d=(u?pc(r.width):r.width)/i,h=(u?pc(r.height):r.height)/c;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const fx=xn(0);function Op(t){const a=$t(t);return!B0()||!a.visualViewport?fx:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function dx(t,a,r){return a===void 0&&(a=!1),!r||a&&r!==$t(t)?!1:a}function Il(t,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const c=t.getBoundingClientRect(),u=U0(t);let d=xn(1);a&&(i?nn(i)&&(d=Pa(i)):d=Pa(t));const h=dx(u,r,i)?Op(u):xn(0);let x=(c.left+h.x)/d.x,g=(c.top+h.y)/d.y,y=c.width/d.x,b=c.height/d.y;if(u){const C=$t(u),S=i&&nn(i)?$t(i):i;let j=C,M=s0(j);for(;M&&i&&S!==j;){const E=Pa(M),T=M.getBoundingClientRect(),N=ln(M),O=T.left+(M.clientLeft+parseFloat(N.paddingLeft))*E.x,$=T.top+(M.clientTop+parseFloat(N.paddingTop))*E.y;x*=E.x,g*=E.y,y*=E.x,b*=E.y,x+=O,g+=$,j=$t(M),M=s0(j)}}return gc({width:y,height:b,x,y:g})}function Oc(t,a){const r=Lc(t).scrollLeft;return a?a.left+r:Il(Cn(t)).left+r}function Ap(t,a){const r=t.getBoundingClientRect(),i=r.left+a.scrollLeft-Oc(t,r),c=r.top+a.scrollTop;return{x:i,y:c}}function px(t){let{elements:a,rect:r,offsetParent:i,strategy:c}=t;const u=c==="fixed",d=Cn(i),h=a?Nc(a.floating):!1;if(i===d||h&&u)return r;let x={scrollLeft:0,scrollTop:0},g=xn(1);const y=xn(0),b=yn(i);if((b||!b&&!u)&&((or(i)!=="body"||xo(d))&&(x=Lc(i)),yn(i))){const S=Il(i);g=Pa(i),y.x=S.x+i.clientLeft,y.y=S.y+i.clientTop}const C=d&&!b&&!u?Ap(d,x):xn(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-x.scrollLeft*g.x+y.x+C.x,y:r.y*g.y-x.scrollTop*g.y+y.y+C.y}}function hx(t){return Array.from(t.getClientRects())}function gx(t){const a=Cn(t),r=Lc(t),i=t.ownerDocument.body,c=Dt(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),u=Dt(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let d=-r.scrollLeft+Oc(t);const h=-r.scrollTop;return ln(i).direction==="rtl"&&(d+=Dt(a.clientWidth,i.clientWidth)-c),{width:c,height:u,x:d,y:h}}const U5=25;function mx(t,a){const r=$t(t),i=Cn(t),c=r.visualViewport;let u=i.clientWidth,d=i.clientHeight,h=0,x=0;if(c){u=c.width,d=c.height;const y=B0();(!y||y&&a==="fixed")&&(h=c.offsetLeft,x=c.offsetTop)}const g=Oc(i);if(g<=0){const y=i.ownerDocument,b=y.body,C=getComputedStyle(b),S=y.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,j=Math.abs(i.clientWidth-b.clientWidth-S);j<=U5&&(u-=j)}else g<=U5&&(u+=g);return{width:u,height:d,x:h,y:x}}const xx=new Set(["absolute","fixed"]);function vx(t,a){const r=Il(t,!0,a==="fixed"),i=r.top+t.clientTop,c=r.left+t.clientLeft,u=yn(t)?Pa(t):xn(1),d=t.clientWidth*u.x,h=t.clientHeight*u.y,x=c*u.x,g=i*u.y;return{width:d,height:h,x,y:g}}function Z5(t,a,r){let i;if(a==="viewport")i=mx(t,r);else if(a==="document")i=gx(Cn(t));else if(nn(a))i=vx(a,r);else{const c=Op(t);i={x:a.x-c.x,y:a.y-c.y,width:a.width,height:a.height}}return gc(i)}function zp(t,a){const r=_l(t);return r===a||!nn(r)||er(r)?!1:ln(r).position==="fixed"||zp(r,a)}function yx(t,a){const r=a.get(t);if(r)return r;let i=po(t,[],!1).filter(h=>nn(h)&&or(h)!=="body"),c=null;const u=ln(t).position==="fixed";let d=u?_l(t):t;for(;nn(d)&&!er(d);){const h=ln(d),x=$0(d);!x&&h.position==="fixed"&&(c=null),(u?!x&&!c:!x&&h.position==="static"&&!!c&&xx.has(c.position)||xo(d)&&!x&&zp(t,d))?i=i.filter(y=>y!==d):c=h,d=_l(d)}return a.set(t,i),i}function bx(t){let{element:a,boundary:r,rootBoundary:i,strategy:c}=t;const d=[...r==="clippingAncestors"?Nc(a)?[]:yx(a,this._c):[].concat(r),i],h=d[0],x=d.reduce((g,y)=>{const b=Z5(a,y,c);return g.top=Dt(b.top,g.top),g.right=Tl(b.right,g.right),g.bottom=Tl(b.bottom,g.bottom),g.left=Dt(b.left,g.left),g},Z5(a,h,c));return{width:x.right-x.left,height:x.bottom-x.top,x:x.left,y:x.top}}function Cx(t){const{width:a,height:r}=Lp(t);return{width:a,height:r}}function wx(t,a,r){const i=yn(a),c=Cn(a),u=r==="fixed",d=Il(t,!0,u,a);let h={scrollLeft:0,scrollTop:0};const x=xn(0);function g(){x.x=Oc(c)}if(i||!i&&!u)if((or(a)!=="body"||xo(c))&&(h=Lc(a)),i){const S=Il(a,!0,u,a);x.x=S.x+a.clientLeft,x.y=S.y+a.clientTop}else c&&g();u&&!i&&c&&g();const y=c&&!i&&!u?Ap(c,h):xn(0),b=d.left+h.scrollLeft-x.x-y.x,C=d.top+h.scrollTop-x.y-y.y;return{x:b,y:C,width:d.width,height:d.height}}function j1(t){return ln(t).position==="static"}function Y5(t,a){if(!yn(t)||ln(t).position==="fixed")return null;if(a)return a(t);let r=t.offsetParent;return Cn(t)===r&&(r=r.ownerDocument.body),r}function Hp(t,a){const r=$t(t);if(Nc(t))return r;if(!yn(t)){let c=_l(t);for(;c&&!er(c);){if(nn(c)&&!j1(c))return c;c=_l(c)}return r}let i=Y5(t,a);for(;i&&ax(i)&&j1(i);)i=Y5(i,a);return i&&er(i)&&j1(i)&&!$0(i)?r:i||sx(t)||r}const Sx=async function(t){const a=this.getOffsetParent||Hp,r=this.getDimensions,i=await r(t.floating);return{reference:wx(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function jx(t){return ln(t).direction==="rtl"}const Mx={convertOffsetParentRelativeRectToViewportRelativeRect:px,getDocumentElement:Cn,getClippingRect:bx,getOffsetParent:Hp,getElementRects:Sx,getClientRects:hx,getDimensions:Cx,getScale:Pa,isElement:nn,isRTL:jx};function Vp(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function Ex(t,a){let r=null,i;const c=Cn(t);function u(){var h;clearTimeout(i),(h=r)==null||h.disconnect(),r=null}function d(h,x){h===void 0&&(h=!1),x===void 0&&(x=1),u();const g=t.getBoundingClientRect(),{left:y,top:b,width:C,height:S}=g;if(h||a(),!C||!S)return;const j=Gi(b),M=Gi(c.clientWidth-(y+C)),E=Gi(c.clientHeight-(b+S)),T=Gi(y),O={rootMargin:-j+"px "+-M+"px "+-E+"px "+-T+"px",threshold:Dt(0,Tl(1,x))||1};let $=!0;function H(K){const Z=K[0].intersectionRatio;if(Z!==x){if(!$)return d();Z?d(!1,Z):i=setTimeout(()=>{d(!1,1e-7)},1e3)}Z===1&&!Vp(g,t.getBoundingClientRect())&&d(),$=!1}try{r=new IntersectionObserver(H,{...O,root:c.ownerDocument})}catch{r=new IntersectionObserver(H,O)}r.observe(t)}return d(!0),u}function Tx(t,a,r,i){i===void 0&&(i={});const{ancestorScroll:c=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:x=!1}=i,g=U0(t),y=c||u?[...g?po(g):[],...po(a)]:[];y.forEach(T=>{c&&T.addEventListener("scroll",r,{passive:!0}),u&&T.addEventListener("resize",r)});const b=g&&h?Ex(g,r):null;let C=-1,S=null;d&&(S=new ResizeObserver(T=>{let[N]=T;N&&N.target===g&&S&&(S.unobserve(a),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var O;(O=S)==null||O.observe(a)})),r()}),g&&!x&&S.observe(g),S.observe(a));let j,M=x?Il(t):null;x&&E();function E(){const T=Il(t);M&&!Vp(M,T)&&r(),M=T,j=requestAnimationFrame(E)}return r(),()=>{var T;y.forEach(N=>{c&&N.removeEventListener("scroll",r),u&&N.removeEventListener("resize",r)}),b==null||b(),(T=S)==null||T.disconnect(),S=null,x&&cancelAnimationFrame(j)}}const _x=Wm,Rx=Im,Nx=Pm,Lx=tx,Ox=Jm,X5=Km,Ax=ex,zx=(t,a,r)=>{const i=new Map,c={platform:Mx,...r},u={...c.platform,_c:i};return Qm(t,a,{...c,platform:u})};var Hx=typeof document<"u",Vx=function(){},oc=Hx?m.useLayoutEffect:Vx;function mc(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let r,i,c;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==a.length)return!1;for(i=r;i--!==0;)if(!mc(t[i],a[i]))return!1;return!0}if(c=Object.keys(t),r=c.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,c[i]))return!1;for(i=r;i--!==0;){const u=c[i];if(!(u==="_owner"&&t.$$typeof)&&!mc(t[u],a[u]))return!1}return!0}return t!==t&&a!==a}function Dp(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function q5(t,a){const r=Dp(t);return Math.round(a*r)/r}function M1(t){const a=m.useRef(t);return oc(()=>{a.current=t}),a}function Dx(t){t===void 0&&(t={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:c,elements:{reference:u,floating:d}={},transform:h=!0,whileElementsMounted:x,open:g}=t,[y,b]=m.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[C,S]=m.useState(i);mc(C,i)||S(i);const[j,M]=m.useState(null),[E,T]=m.useState(null),N=m.useCallback(J=>{J!==K.current&&(K.current=J,M(J))},[]),O=m.useCallback(J=>{J!==Z.current&&(Z.current=J,T(J))},[]),$=u||j,H=d||E,K=m.useRef(null),Z=m.useRef(null),ae=m.useRef(y),ce=x!=null,X=M1(x),P=M1(c),ee=M1(g),xe=m.useCallback(()=>{if(!K.current||!Z.current)return;const J={placement:a,strategy:r,middleware:C};P.current&&(J.platform=P.current),zx(K.current,Z.current,J).then(ie=>{const pe={...ie,isPositioned:ee.current!==!1};fe.current&&!mc(ae.current,pe)&&(ae.current=pe,z0.flushSync(()=>{b(pe)}))})},[C,a,r,P,ee]);oc(()=>{g===!1&&ae.current.isPositioned&&(ae.current.isPositioned=!1,b(J=>({...J,isPositioned:!1})))},[g]);const fe=m.useRef(!1);oc(()=>(fe.current=!0,()=>{fe.current=!1}),[]),oc(()=>{if($&&(K.current=$),H&&(Z.current=H),$&&H){if(X.current)return X.current($,H,xe);xe()}},[$,H,xe,X,ce]);const Ce=m.useMemo(()=>({reference:K,floating:Z,setReference:N,setFloating:O}),[N,O]),A=m.useMemo(()=>({reference:$,floating:H}),[$,H]),B=m.useMemo(()=>{const J={position:r,left:0,top:0};if(!A.floating)return J;const ie=q5(A.floating,y.x),pe=q5(A.floating,y.y);return h?{...J,transform:"translate("+ie+"px, "+pe+"px)",...Dp(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ie,top:pe}},[r,h,A.floating,y.x,y.y]);return m.useMemo(()=>({...y,update:xe,refs:Ce,elements:A,floatingStyles:B}),[y,xe,Ce,A,B])}const kx=t=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:i,padding:c}=typeof t=="function"?t(r):t;return i&&a(i)?i.current!=null?X5({element:i.current,padding:c}).fn(r):{}:i?X5({element:i,padding:c}).fn(r):{}}}},$x=(t,a)=>({..._x(t),options:[t,a]}),Bx=(t,a)=>({...Rx(t),options:[t,a]}),Ux=(t,a)=>({...Ax(t),options:[t,a]}),Zx=(t,a)=>({...Nx(t),options:[t,a]}),Yx=(t,a)=>({...Lx(t),options:[t,a]}),Xx=(t,a)=>({...Ox(t),options:[t,a]}),qx=(t,a)=>({...kx(t),options:[t,a]});var Gx="Arrow",kp=m.forwardRef((t,a)=>{const{children:r,width:i=10,height:c=5,...u}=t;return f.jsx(rn.svg,{...u,ref:a,width:i,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});kp.displayName=Gx;var Qx=kp;function Kx(t){const[a,r]=m.useState(void 0);return El(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const i=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const u=c[0];let d,h;if("borderBoxSize"in u){const x=u.borderBoxSize,g=Array.isArray(x)?x[0]:x;d=g.inlineSize,h=g.blockSize}else d=t.offsetWidth,h=t.offsetHeight;r({width:d,height:h})});return i.observe(t,{box:"border-box"}),()=>i.unobserve(t)}else r(void 0)},[t]),a}var Z0="Popper",[$p,Ac]=A0(Z0),[Px,Bp]=$p(Z0),Up=t=>{const{__scopePopper:a,children:r}=t,[i,c]=m.useState(null);return f.jsx(Px,{scope:a,anchor:i,onAnchorChange:c,children:r})};Up.displayName=Z0;var Zp="PopperAnchor",Yp=m.forwardRef((t,a)=>{const{__scopePopper:r,virtualRef:i,...c}=t,u=Bp(Zp,r),d=m.useRef(null),h=bn(a,d),x=m.useRef(null);return m.useEffect(()=>{const g=x.current;x.current=(i==null?void 0:i.current)||d.current,g!==x.current&&u.onAnchorChange(x.current)}),i?null:f.jsx(rn.div,{...c,ref:h})});Yp.displayName=Zp;var Y0="PopperContent",[Jx,Fx]=$p(Y0),Xp=m.forwardRef((t,a)=>{var de,Ve,ke,on,wn,Gn;const{__scopePopper:r,side:i="bottom",sideOffset:c=0,align:u="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:x=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:S="optimized",onPlaced:j,...M}=t,E=Bp(Y0,r),[T,N]=m.useState(null),O=bn(a,Wt=>N(Wt)),[$,H]=m.useState(null),K=Kx($),Z=(K==null?void 0:K.width)??0,ae=(K==null?void 0:K.height)??0,ce=i+(u!=="center"?"-"+u:""),X=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},P=Array.isArray(g)?g:[g],ee=P.length>0,xe={padding:X,boundary:P.filter(Ix),altBoundary:ee},{refs:fe,floatingStyles:Ce,placement:A,isPositioned:B,middlewareData:J}=Dx({strategy:"fixed",placement:ce,whileElementsMounted:(...Wt)=>Tx(...Wt,{animationFrame:S==="always"}),elements:{reference:E.anchor},middleware:[$x({mainAxis:c+ae,alignmentAxis:d}),x&&Bx({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?Ux():void 0,...xe}),x&&Zx({...xe}),Yx({...xe,apply:({elements:Wt,rects:vt,availableWidth:Qn,availableHeight:Ol})=>{const{width:ur,height:la}=vt.reference,cn=Wt.floating.style;cn.setProperty("--radix-popper-available-width",`${Qn}px`),cn.setProperty("--radix-popper-available-height",`${Ol}px`),cn.setProperty("--radix-popper-anchor-width",`${ur}px`),cn.setProperty("--radix-popper-anchor-height",`${la}px`)}}),$&&qx({element:$,padding:h}),ev({arrowWidth:Z,arrowHeight:ae}),C&&Xx({strategy:"referenceHidden",...xe})]}),[ie,pe]=Qp(A),R=Ia(j);El(()=>{B&&(R==null||R())},[B,R]);const q=(de=J.arrow)==null?void 0:de.x,I=(Ve=J.arrow)==null?void 0:Ve.y,te=((ke=J.arrow)==null?void 0:ke.centerOffset)!==0,[W,le]=m.useState();return El(()=>{T&&le(window.getComputedStyle(T).zIndex)},[T]),f.jsx("div",{ref:fe.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ce,transform:B?Ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[(on=J.transformOrigin)==null?void 0:on.x,(wn=J.transformOrigin)==null?void 0:wn.y].join(" "),...((Gn=J.hide)==null?void 0:Gn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:f.jsx(Jx,{scope:r,placedSide:ie,onArrowChange:H,arrowX:q,arrowY:I,shouldHideArrow:te,children:f.jsx(rn.div,{"data-side":ie,"data-align":pe,...M,ref:O,style:{...M.style,animation:B?void 0:"none"}})})})});Xp.displayName=Y0;var qp="PopperArrow",Wx={top:"bottom",right:"left",bottom:"top",left:"right"},Gp=m.forwardRef(function(a,r){const{__scopePopper:i,...c}=a,u=Fx(qp,i),d=Wx[u.placedSide];return f.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:f.jsx(Qx,{...c,ref:r,style:{...c.style,display:"block"}})})});Gp.displayName=qp;function Ix(t){return t!==null}var ev=t=>({name:"transformOrigin",options:t,fn(a){var E,T,N;const{placement:r,rects:i,middlewareData:c}=a,d=((E=c.arrow)==null?void 0:E.centerOffset)!==0,h=d?0:t.arrowWidth,x=d?0:t.arrowHeight,[g,y]=Qp(r),b={start:"0%",center:"50%",end:"100%"}[y],C=(((T=c.arrow)==null?void 0:T.x)??0)+h/2,S=(((N=c.arrow)==null?void 0:N.y)??0)+x/2;let j="",M="";return g==="bottom"?(j=d?b:`${C}px`,M=`${-x}px`):g==="top"?(j=d?b:`${C}px`,M=`${i.floating.height+x}px`):g==="right"?(j=`${-x}px`,M=d?b:`${S}px`):g==="left"&&(j=`${i.floating.width+x}px`,M=d?b:`${S}px`),{data:{x:j,y:M}}}});function Qp(t){const[a,r="center"]=t.split("-");return[a,r]}var Kp=Up,X0=Yp,Pp=Xp,Jp=Gp,tv="Portal",q0=m.forwardRef((t,a)=>{var h;const{container:r,...i}=t,[c,u]=m.useState(!1);El(()=>u(!0),[]);const d=r||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?sm.createPortal(f.jsx(rn.div,{...i,ref:a}),d):null});q0.displayName=tv;function nv(t,a){return m.useReducer((r,i)=>a[r][i]??r,t)}var vo=t=>{const{present:a,children:r}=t,i=lv(a),c=typeof r=="function"?r({present:i.isPresent}):m.Children.only(r),u=bn(i.ref,av(c));return typeof r=="function"||i.isPresent?m.cloneElement(c,{ref:u}):null};vo.displayName="Presence";function lv(t){const[a,r]=m.useState(),i=m.useRef(null),c=m.useRef(t),u=m.useRef("none"),d=t?"mounted":"unmounted",[h,x]=nv(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const g=Qi(i.current);u.current=h==="mounted"?g:"none"},[h]),El(()=>{const g=i.current,y=c.current;if(y!==t){const C=u.current,S=Qi(g);t?x("MOUNT"):S==="none"||(g==null?void 0:g.display)==="none"?x("UNMOUNT"):x(y&&C!==S?"ANIMATION_OUT":"UNMOUNT"),c.current=t}},[t,x]),El(()=>{if(a){let g;const y=a.ownerDocument.defaultView??window,b=S=>{const M=Qi(i.current).includes(CSS.escape(S.animationName));if(S.target===a&&M&&(x("ANIMATION_END"),!c.current)){const E=a.style.animationFillMode;a.style.animationFillMode="forwards",g=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=E)})}},C=S=>{S.target===a&&(u.current=Qi(i.current))};return a.addEventListener("animationstart",C),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{y.clearTimeout(g),a.removeEventListener("animationstart",C),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else x("ANIMATION_END")},[a,x]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:m.useCallback(g=>{i.current=g?getComputedStyle(g):null,r(g)},[])}}function Qi(t){return(t==null?void 0:t.animationName)||"none"}function av(t){var i,c;let a=(i=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:i.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?t.ref:(a=(c=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:c.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var rv=q3[" useInsertionEffect ".trim().toString()]||El;function Fp({prop:t,defaultProp:a,onChange:r=()=>{},caller:i}){const[c,u,d]=ov({defaultProp:a,onChange:r}),h=t!==void 0,x=h?t:c;{const y=m.useRef(t!==void 0);m.useEffect(()=>{const b=y.current;b!==h&&console.warn(`${i} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=h},[h,i])}const g=m.useCallback(y=>{var b;if(h){const C=iv(y)?y(t):y;C!==t&&((b=d.current)==null||b.call(d,C))}else u(y)},[h,t,u,d]);return[x,g]}function ov({defaultProp:t,onChange:a}){const[r,i]=m.useState(t),c=m.useRef(r),u=m.useRef(a);return rv(()=>{u.current=a},[a]),m.useEffect(()=>{var d;c.current!==r&&((d=u.current)==null||d.call(u,r),c.current=r)},[r,c]),[r,i,u]}function iv(t){return typeof t=="function"}var cv=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},Ya=new WeakMap,Ki=new WeakMap,Pi={},E1=0,Wp=function(t){return t&&(t.host||Wp(t.parentNode))},sv=function(t,a){return a.map(function(r){if(t.contains(r))return r;var i=Wp(r);return i&&t.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},uv=function(t,a,r,i){var c=sv(a,Array.isArray(t)?t:[t]);Pi[r]||(Pi[r]=new WeakMap);var u=Pi[r],d=[],h=new Set,x=new Set(c),g=function(b){!b||h.has(b)||(h.add(b),g(b.parentNode))};c.forEach(g);var y=function(b){!b||x.has(b)||Array.prototype.forEach.call(b.children,function(C){if(h.has(C))y(C);else try{var S=C.getAttribute(i),j=S!==null&&S!=="false",M=(Ya.get(C)||0)+1,E=(u.get(C)||0)+1;Ya.set(C,M),u.set(C,E),d.push(C),M===1&&j&&Ki.set(C,!0),E===1&&C.setAttribute(r,"true"),j||C.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",C,T)}})};return y(a),h.clear(),E1++,function(){d.forEach(function(b){var C=Ya.get(b)-1,S=u.get(b)-1;Ya.set(b,C),u.set(b,S),C||(Ki.has(b)||b.removeAttribute(i),Ki.delete(b)),S||b.removeAttribute(r)}),E1--,E1||(Ya=new WeakMap,Ya=new WeakMap,Ki=new WeakMap,Pi={})}},fv=function(t,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(t)?t:[t]),c=cv(t);return c?(i.push.apply(i,Array.from(c.querySelectorAll("[aria-live], script"))),uv(i,c,r,"aria-hidden")):function(){return null}},hn=function(){return hn=Object.assign||function(a){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(a[u]=r[u])}return a},hn.apply(this,arguments)};function Ip(t,a){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&a.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(t);c<i.length;c++)a.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(t,i[c])&&(r[i[c]]=t[i[c]]);return r}function dv(t,a,r){if(r||arguments.length===2)for(var i=0,c=a.length,u;i<c;i++)(u||!(i in a))&&(u||(u=Array.prototype.slice.call(a,0,i)),u[i]=a[i]);return t.concat(u||Array.prototype.slice.call(a))}var ic="right-scroll-bar-position",cc="width-before-scroll-bar",pv="with-scroll-bars-hidden",hv="--removed-body-scroll-bar-size";function T1(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function gv(t,a){var r=m.useState(function(){return{value:t,callback:a,facade:{get current(){return r.value},set current(i){var c=r.value;c!==i&&(r.value=i,r.callback(i,c))}}}})[0];return r.callback=a,r.facade}var mv=typeof window<"u"?m.useLayoutEffect:m.useEffect,G5=new WeakMap;function xv(t,a){var r=gv(null,function(i){return t.forEach(function(c){return T1(c,i)})});return mv(function(){var i=G5.get(r);if(i){var c=new Set(i),u=new Set(t),d=r.current;c.forEach(function(h){u.has(h)||T1(h,null)}),u.forEach(function(h){c.has(h)||T1(h,d)})}G5.set(r,t)},[t]),r}function vv(t){return t}function yv(t,a){a===void 0&&(a=vv);var r=[],i=!1,c={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(u){var d=a(u,i);return r.push(d),function(){r=r.filter(function(h){return h!==d})}},assignSyncMedium:function(u){for(i=!0;r.length;){var d=r;r=[],d.forEach(u)}r={push:function(h){return u(h)},filter:function(){return r}}},assignMedium:function(u){i=!0;var d=[];if(r.length){var h=r;r=[],h.forEach(u),d=r}var x=function(){var y=d;d=[],y.forEach(u)},g=function(){return Promise.resolve().then(x)};g(),r={push:function(y){d.push(y),g()},filter:function(y){return d=d.filter(y),r}}}};return c}function bv(t){t===void 0&&(t={});var a=yv(null);return a.options=hn({async:!0,ssr:!1},t),a}var e4=function(t){var a=t.sideCar,r=Ip(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return m.createElement(i,hn({},r))};e4.isSideCarExport=!0;function Cv(t,a){return t.useMedium(a),e4}var t4=bv(),_1=function(){},zc=m.forwardRef(function(t,a){var r=m.useRef(null),i=m.useState({onScrollCapture:_1,onWheelCapture:_1,onTouchMoveCapture:_1}),c=i[0],u=i[1],d=t.forwardProps,h=t.children,x=t.className,g=t.removeScrollBar,y=t.enabled,b=t.shards,C=t.sideCar,S=t.noRelative,j=t.noIsolation,M=t.inert,E=t.allowPinchZoom,T=t.as,N=T===void 0?"div":T,O=t.gapMode,$=Ip(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),H=C,K=xv([r,a]),Z=hn(hn({},$),c);return m.createElement(m.Fragment,null,y&&m.createElement(H,{sideCar:t4,removeScrollBar:g,shards:b,noRelative:S,noIsolation:j,inert:M,setCallbacks:u,allowPinchZoom:!!E,lockRef:r,gapMode:O}),d?m.cloneElement(m.Children.only(h),hn(hn({},Z),{ref:K})):m.createElement(N,hn({},Z,{className:x,ref:K}),h))});zc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};zc.classNames={fullWidth:cc,zeroRight:ic};var wv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sv(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=wv();return a&&t.setAttribute("nonce",a),t}function jv(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function Mv(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var Ev=function(){var t=0,a=null;return{add:function(r){t==0&&(a=Sv())&&(jv(a,r),Mv(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},Tv=function(){var t=Ev();return function(a,r){m.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&r])}},n4=function(){var t=Tv(),a=function(r){var i=r.styles,c=r.dynamic;return t(i,c),null};return a},_v={left:0,top:0,right:0,gap:0},R1=function(t){return parseInt(t||"",10)||0},Rv=function(t){var a=window.getComputedStyle(document.body),r=a[t==="padding"?"paddingLeft":"marginLeft"],i=a[t==="padding"?"paddingTop":"marginTop"],c=a[t==="padding"?"paddingRight":"marginRight"];return[R1(r),R1(i),R1(c)]},Nv=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return _v;var a=Rv(t),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,i-r+a[2]-a[0])}},Lv=n4(),Ja="data-scroll-locked",Ov=function(t,a,r,i){var c=t.left,u=t.top,d=t.right,h=t.gap;return r===void 0&&(r="margin"),`
|
|
115
|
+
.`.concat(pv,` {
|
|
116
|
+
overflow: hidden `).concat(i,`;
|
|
117
|
+
padding-right: `).concat(h,"px ").concat(i,`;
|
|
118
|
+
}
|
|
119
|
+
body[`).concat(Ja,`] {
|
|
120
|
+
overflow: hidden `).concat(i,`;
|
|
121
|
+
overscroll-behavior: contain;
|
|
122
|
+
`).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
123
|
+
padding-left: `.concat(c,`px;
|
|
124
|
+
padding-top: `).concat(u,`px;
|
|
125
|
+
padding-right: `).concat(d,`px;
|
|
126
|
+
margin-left:0;
|
|
127
|
+
margin-top:0;
|
|
128
|
+
margin-right: `).concat(h,"px ").concat(i,`;
|
|
129
|
+
`),r==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.`).concat(ic,` {
|
|
133
|
+
right: `).concat(h,"px ").concat(i,`;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.`).concat(cc,` {
|
|
137
|
+
margin-right: `).concat(h,"px ").concat(i,`;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.`).concat(ic," .").concat(ic,` {
|
|
141
|
+
right: 0 `).concat(i,`;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.`).concat(cc," .").concat(cc,` {
|
|
145
|
+
margin-right: 0 `).concat(i,`;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
body[`).concat(Ja,`] {
|
|
149
|
+
`).concat(hv,": ").concat(h,`px;
|
|
150
|
+
}
|
|
151
|
+
`)},Q5=function(){var t=parseInt(document.body.getAttribute(Ja)||"0",10);return isFinite(t)?t:0},Av=function(){m.useEffect(function(){return document.body.setAttribute(Ja,(Q5()+1).toString()),function(){var t=Q5()-1;t<=0?document.body.removeAttribute(Ja):document.body.setAttribute(Ja,t.toString())}},[])},zv=function(t){var a=t.noRelative,r=t.noImportant,i=t.gapMode,c=i===void 0?"margin":i;Av();var u=m.useMemo(function(){return Nv(c)},[c]);return m.createElement(Lv,{styles:Ov(u,!a,c,r?"":"!important")})},u0=!1;if(typeof window<"u")try{var Ji=Object.defineProperty({},"passive",{get:function(){return u0=!0,!0}});window.addEventListener("test",Ji,Ji),window.removeEventListener("test",Ji,Ji)}catch{u0=!1}var Xa=u0?{passive:!1}:!1,Hv=function(t){return t.tagName==="TEXTAREA"},l4=function(t,a){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!Hv(t)&&r[a]==="visible")},Vv=function(t){return l4(t,"overflowY")},Dv=function(t){return l4(t,"overflowX")},K5=function(t,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var c=a4(t,i);if(c){var u=r4(t,i),d=u[1],h=u[2];if(d>h)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},kv=function(t){var a=t.scrollTop,r=t.scrollHeight,i=t.clientHeight;return[a,r,i]},$v=function(t){var a=t.scrollLeft,r=t.scrollWidth,i=t.clientWidth;return[a,r,i]},a4=function(t,a){return t==="v"?Vv(a):Dv(a)},r4=function(t,a){return t==="v"?kv(a):$v(a)},Bv=function(t,a){return t==="h"&&a==="rtl"?-1:1},Uv=function(t,a,r,i,c){var u=Bv(t,window.getComputedStyle(a).direction),d=u*i,h=r.target,x=a.contains(h),g=!1,y=d>0,b=0,C=0;do{if(!h)break;var S=r4(t,h),j=S[0],M=S[1],E=S[2],T=M-E-u*j;(j||T)&&a4(t,h)&&(b+=T,C+=j);var N=h.parentNode;h=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!x&&h!==document.body||x&&(a.contains(h)||a===h));return(y&&Math.abs(b)<1||!y&&Math.abs(C)<1)&&(g=!0),g},Fi=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},P5=function(t){return[t.deltaX,t.deltaY]},J5=function(t){return t&&"current"in t?t.current:t},Zv=function(t,a){return t[0]===a[0]&&t[1]===a[1]},Yv=function(t){return`
|
|
152
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
153
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
154
|
+
`)},Xv=0,qa=[];function qv(t){var a=m.useRef([]),r=m.useRef([0,0]),i=m.useRef(),c=m.useState(Xv++)[0],u=m.useState(n4)[0],d=m.useRef(t);m.useEffect(function(){d.current=t},[t]),m.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(c));var M=dv([t.lockRef.current],(t.shards||[]).map(J5),!0).filter(Boolean);return M.forEach(function(E){return E.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),M.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(c))})}}},[t.inert,t.lockRef.current,t.shards]);var h=m.useCallback(function(M,E){if("touches"in M&&M.touches.length===2||M.type==="wheel"&&M.ctrlKey)return!d.current.allowPinchZoom;var T=Fi(M),N=r.current,O="deltaX"in M?M.deltaX:N[0]-T[0],$="deltaY"in M?M.deltaY:N[1]-T[1],H,K=M.target,Z=Math.abs(O)>Math.abs($)?"h":"v";if("touches"in M&&Z==="h"&&K.type==="range")return!1;var ae=window.getSelection(),ce=ae&&ae.anchorNode,X=ce?ce===K||ce.contains(K):!1;if(X)return!1;var P=K5(Z,K);if(!P)return!0;if(P?H=Z:(H=Z==="v"?"h":"v",P=K5(Z,K)),!P)return!1;if(!i.current&&"changedTouches"in M&&(O||$)&&(i.current=H),!H)return!0;var ee=i.current||H;return Uv(ee,E,M,ee==="h"?O:$)},[]),x=m.useCallback(function(M){var E=M;if(!(!qa.length||qa[qa.length-1]!==u)){var T="deltaY"in E?P5(E):Fi(E),N=a.current.filter(function(H){return H.name===E.type&&(H.target===E.target||E.target===H.shadowParent)&&Zv(H.delta,T)})[0];if(N&&N.should){E.cancelable&&E.preventDefault();return}if(!N){var O=(d.current.shards||[]).map(J5).filter(Boolean).filter(function(H){return H.contains(E.target)}),$=O.length>0?h(E,O[0]):!d.current.noIsolation;$&&E.cancelable&&E.preventDefault()}}},[]),g=m.useCallback(function(M,E,T,N){var O={name:M,delta:E,target:T,should:N,shadowParent:Gv(T)};a.current.push(O),setTimeout(function(){a.current=a.current.filter(function($){return $!==O})},1)},[]),y=m.useCallback(function(M){r.current=Fi(M),i.current=void 0},[]),b=m.useCallback(function(M){g(M.type,P5(M),M.target,h(M,t.lockRef.current))},[]),C=m.useCallback(function(M){g(M.type,Fi(M),M.target,h(M,t.lockRef.current))},[]);m.useEffect(function(){return qa.push(u),t.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",x,Xa),document.addEventListener("touchmove",x,Xa),document.addEventListener("touchstart",y,Xa),function(){qa=qa.filter(function(M){return M!==u}),document.removeEventListener("wheel",x,Xa),document.removeEventListener("touchmove",x,Xa),document.removeEventListener("touchstart",y,Xa)}},[]);var S=t.removeScrollBar,j=t.inert;return m.createElement(m.Fragment,null,j?m.createElement(u,{styles:Yv(c)}):null,S?m.createElement(zv,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Gv(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const Qv=Cv(t4,qv);var o4=m.forwardRef(function(t,a){return m.createElement(zc,hn({},t,{ref:a,sideCar:Qv}))});o4.classNames=zc.classNames;var Hc="Popover",[i4]=A0(Hc,[Ac]),yo=Ac(),[Kv,Ll]=i4(Hc),c4=t=>{const{__scopePopover:a,children:r,open:i,defaultOpen:c,onOpenChange:u,modal:d=!1}=t,h=yo(a),x=m.useRef(null),[g,y]=m.useState(!1),[b,C]=Fp({prop:i,defaultProp:c??!1,onChange:u,caller:Hc});return f.jsx(Kp,{...h,children:f.jsx(Kv,{scope:a,contentId:Ep(),triggerRef:x,open:b,onOpenChange:C,onOpenToggle:m.useCallback(()=>C(S=>!S),[C]),hasCustomAnchor:g,onCustomAnchorAdd:m.useCallback(()=>y(!0),[]),onCustomAnchorRemove:m.useCallback(()=>y(!1),[]),modal:d,children:r})})};c4.displayName=Hc;var s4="PopoverAnchor",u4=m.forwardRef((t,a)=>{const{__scopePopover:r,...i}=t,c=Ll(s4,r),u=yo(r),{onCustomAnchorAdd:d,onCustomAnchorRemove:h}=c;return m.useEffect(()=>(d(),()=>h()),[d,h]),f.jsx(X0,{...u,...i,ref:a})});u4.displayName=s4;var f4="PopoverTrigger",d4=m.forwardRef((t,a)=>{const{__scopePopover:r,...i}=t,c=Ll(f4,r),u=yo(r),d=bn(a,c.triggerRef),h=f.jsx(rn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":x4(c.open),...i,ref:d,onClick:Tt(t.onClick,c.onOpenToggle)});return c.hasCustomAnchor?h:f.jsx(X0,{asChild:!0,...u,children:h})});d4.displayName=f4;var G0="PopoverPortal",[Pv,Jv]=i4(G0,{forceMount:void 0}),p4=t=>{const{__scopePopover:a,forceMount:r,children:i,container:c}=t,u=Ll(G0,a);return f.jsx(Pv,{scope:a,forceMount:r,children:f.jsx(vo,{present:r||u.open,children:f.jsx(q0,{asChild:!0,container:c,children:i})})})};p4.displayName=G0;var tr="PopoverContent",h4=m.forwardRef((t,a)=>{const r=Jv(tr,t.__scopePopover),{forceMount:i=r.forceMount,...c}=t,u=Ll(tr,t.__scopePopover);return f.jsx(vo,{present:i||u.open,children:u.modal?f.jsx(Wv,{...c,ref:a}):f.jsx(Iv,{...c,ref:a})})});h4.displayName=tr;var Fv=bp("PopoverContent.RemoveScroll"),Wv=m.forwardRef((t,a)=>{const r=Ll(tr,t.__scopePopover),i=m.useRef(null),c=bn(a,i),u=m.useRef(!1);return m.useEffect(()=>{const d=i.current;if(d)return fv(d)},[]),f.jsx(o4,{as:Fv,allowPinchZoom:!0,children:f.jsx(g4,{...t,ref:c,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Tt(t.onCloseAutoFocus,d=>{var h;d.preventDefault(),u.current||(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:Tt(t.onPointerDownOutside,d=>{const h=d.detail.originalEvent,x=h.button===0&&h.ctrlKey===!0,g=h.button===2||x;u.current=g},{checkForDefaultPrevented:!1}),onFocusOutside:Tt(t.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})}),Iv=m.forwardRef((t,a)=>{const r=Ll(tr,t.__scopePopover),i=m.useRef(!1),c=m.useRef(!1);return f.jsx(g4,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var d,h;(d=t.onCloseAutoFocus)==null||d.call(t,u),u.defaultPrevented||(i.current||(h=r.triggerRef.current)==null||h.focus(),u.preventDefault()),i.current=!1,c.current=!1},onInteractOutside:u=>{var x,g;(x=t.onInteractOutside)==null||x.call(t,u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const d=u.target;((g=r.triggerRef.current)==null?void 0:g.contains(d))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&c.current&&u.preventDefault()}})}),g4=m.forwardRef((t,a)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEscapeKeyDown:h,onPointerDownOutside:x,onFocusOutside:g,onInteractOutside:y,...b}=t,C=Ll(tr,r),S=yo(r);return Mm(),f.jsx(jp,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:c,onUnmountAutoFocus:u,children:f.jsx(H0,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:y,onEscapeKeyDown:h,onPointerDownOutside:x,onFocusOutside:g,onDismiss:()=>C.onOpenChange(!1),children:f.jsx(Pp,{"data-state":x4(C.open),role:"dialog",id:C.contentId,...S,...b,ref:a,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),m4="PopoverClose",ey=m.forwardRef((t,a)=>{const{__scopePopover:r,...i}=t,c=Ll(m4,r);return f.jsx(rn.button,{type:"button",...i,ref:a,onClick:Tt(t.onClick,()=>c.onOpenChange(!1))})});ey.displayName=m4;var ty="PopoverArrow",ny=m.forwardRef((t,a)=>{const{__scopePopover:r,...i}=t,c=yo(r);return f.jsx(Jp,{...c,...i,ref:a})});ny.displayName=ty;function x4(t){return t?"open":"closed"}var bo=c4,v4=u4,Q0=d4,Co=p4,wo=h4;function ly({viewportWidth:t,onViewportWidthChange:a,iframePath:r,targetUrl:i,iframeRef:c}){const u=m.useRef(null),[d,h]=m.useState(!1),x=m.useCallback(y=>{var E;y.preventDefault(),h(!0);const b=y.clientX,C=(E=u.current)==null?void 0:E.getBoundingClientRect();if(!C)return;const S=t==="fill"?C.width:t,j=T=>{const N=T.clientX-b,O=Math.max(320,Math.round(S+N*2));a(O)},M=()=>{h(!1),document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",M)};document.addEventListener("mousemove",j),document.addEventListener("mouseup",M)},[t,a]),g=`${i}${r.startsWith("/")?r:"/"+r}`;return f.jsx("div",{className:"flex-1 flex items-start justify-center overflow-auto",ref:u,style:{background:"var(--studio-bg)",padding:16},children:f.jsxs("div",{className:"relative overflow-hidden",style:{width:t==="fill"?"100%":`${t}px`,height:"100%",maxWidth:"100%",transition:d?"none":"width 0.2s ease",borderRadius:4,border:"1px solid var(--studio-border)",boxShadow:"0 4px 24px rgba(0,0,0,0.35)"},children:[f.jsx("iframe",{ref:c,src:g,className:"w-full h-full border-0",style:{background:"white"},title:"Preview"},g),t!=="fill"&&f.jsx("div",{onMouseDown:x,className:"absolute top-0 right-0 w-1.5 h-full cursor-ew-resize",style:{background:d?"var(--studio-accent)":"transparent",opacity:d?.4:1,transition:"background 0.15s"},children:f.jsx("div",{className:"absolute top-1/2 right-0 w-1 h-8 rounded-full -translate-y-1/2",style:{background:d?"var(--studio-accent)":"var(--studio-border)",transition:"background 0.15s"}})})]})})}var ay=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ry="VisuallyHidden",y4=m.forwardRef((t,a)=>f.jsx(rn.span,{...t,ref:a,style:{...ay,...t.style}}));y4.displayName=ry;var oy=y4,[Vc]=A0("Tooltip",[Ac]),Dc=Ac(),b4="TooltipProvider",iy=700,f0="tooltip.open",[cy,K0]=Vc(b4),C4=t=>{const{__scopeTooltip:a,delayDuration:r=iy,skipDelayDuration:i=300,disableHoverableContent:c=!1,children:u}=t,d=m.useRef(!0),h=m.useRef(!1),x=m.useRef(0);return m.useEffect(()=>{const g=x.current;return()=>window.clearTimeout(g)},[]),f.jsx(cy,{scope:a,isOpenDelayedRef:d,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(x.current),d.current=!1},[]),onClose:m.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>d.current=!0,i)},[i]),isPointerInTransitRef:h,onPointerInTransitChange:m.useCallback(g=>{h.current=g},[]),disableHoverableContent:c,children:u})};C4.displayName=b4;var ho="Tooltip",[sy,So]=Vc(ho),w4=t=>{const{__scopeTooltip:a,children:r,open:i,defaultOpen:c,onOpenChange:u,disableHoverableContent:d,delayDuration:h}=t,x=K0(ho,t.__scopeTooltip),g=Dc(a),[y,b]=m.useState(null),C=Ep(),S=m.useRef(0),j=d??x.disableHoverableContent,M=h??x.delayDuration,E=m.useRef(!1),[T,N]=Fp({prop:i,defaultProp:c??!1,onChange:Z=>{Z?(x.onOpen(),document.dispatchEvent(new CustomEvent(f0))):x.onClose(),u==null||u(Z)},caller:ho}),O=m.useMemo(()=>T?E.current?"delayed-open":"instant-open":"closed",[T]),$=m.useCallback(()=>{window.clearTimeout(S.current),S.current=0,E.current=!1,N(!0)},[N]),H=m.useCallback(()=>{window.clearTimeout(S.current),S.current=0,N(!1)},[N]),K=m.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{E.current=!0,N(!0),S.current=0},M)},[M,N]);return m.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),f.jsx(Kp,{...g,children:f.jsx(sy,{scope:a,contentId:C,open:T,stateAttribute:O,trigger:y,onTriggerChange:b,onTriggerEnter:m.useCallback(()=>{x.isOpenDelayedRef.current?K():$()},[x.isOpenDelayedRef,K,$]),onTriggerLeave:m.useCallback(()=>{j?H():(window.clearTimeout(S.current),S.current=0)},[H,j]),onOpen:$,onClose:H,disableHoverableContent:j,children:r})})};w4.displayName=ho;var d0="TooltipTrigger",S4=m.forwardRef((t,a)=>{const{__scopeTooltip:r,...i}=t,c=So(d0,r),u=K0(d0,r),d=Dc(r),h=m.useRef(null),x=bn(a,h,c.onTriggerChange),g=m.useRef(!1),y=m.useRef(!1),b=m.useCallback(()=>g.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),f.jsx(X0,{asChild:!0,...d,children:f.jsx(rn.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...i,ref:x,onPointerMove:Tt(t.onPointerMove,C=>{C.pointerType!=="touch"&&!y.current&&!u.isPointerInTransitRef.current&&(c.onTriggerEnter(),y.current=!0)}),onPointerLeave:Tt(t.onPointerLeave,()=>{c.onTriggerLeave(),y.current=!1}),onPointerDown:Tt(t.onPointerDown,()=>{c.open&&c.onClose(),g.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:Tt(t.onFocus,()=>{g.current||c.onOpen()}),onBlur:Tt(t.onBlur,c.onClose),onClick:Tt(t.onClick,c.onClose)})})});S4.displayName=d0;var P0="TooltipPortal",[uy,fy]=Vc(P0,{forceMount:void 0}),j4=t=>{const{__scopeTooltip:a,forceMount:r,children:i,container:c}=t,u=So(P0,a);return f.jsx(uy,{scope:a,forceMount:r,children:f.jsx(vo,{present:r||u.open,children:f.jsx(q0,{asChild:!0,container:c,children:i})})})};j4.displayName=P0;var nr="TooltipContent",M4=m.forwardRef((t,a)=>{const r=fy(nr,t.__scopeTooltip),{forceMount:i=r.forceMount,side:c="top",...u}=t,d=So(nr,t.__scopeTooltip);return f.jsx(vo,{present:i||d.open,children:d.disableHoverableContent?f.jsx(E4,{side:c,...u,ref:a}):f.jsx(dy,{side:c,...u,ref:a})})}),dy=m.forwardRef((t,a)=>{const r=So(nr,t.__scopeTooltip),i=K0(nr,t.__scopeTooltip),c=m.useRef(null),u=bn(a,c),[d,h]=m.useState(null),{trigger:x,onClose:g}=r,y=c.current,{onPointerInTransitChange:b}=i,C=m.useCallback(()=>{h(null),b(!1)},[b]),S=m.useCallback((j,M)=>{const E=j.currentTarget,T={x:j.clientX,y:j.clientY},N=my(T,E.getBoundingClientRect()),O=xy(T,N),$=vy(M.getBoundingClientRect()),H=by([...O,...$]);h(H),b(!0)},[b]);return m.useEffect(()=>()=>C(),[C]),m.useEffect(()=>{if(x&&y){const j=E=>S(E,y),M=E=>S(E,x);return x.addEventListener("pointerleave",j),y.addEventListener("pointerleave",M),()=>{x.removeEventListener("pointerleave",j),y.removeEventListener("pointerleave",M)}}},[x,y,S,C]),m.useEffect(()=>{if(d){const j=M=>{const E=M.target,T={x:M.clientX,y:M.clientY},N=(x==null?void 0:x.contains(E))||(y==null?void 0:y.contains(E)),O=!yy(T,d);N?C():O&&(C(),g())};return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[x,y,d,g,C]),f.jsx(E4,{...t,ref:u})}),[py,hy]=Vc(ho,{isInside:!1}),gy=fm("TooltipContent"),E4=m.forwardRef((t,a)=>{const{__scopeTooltip:r,children:i,"aria-label":c,onEscapeKeyDown:u,onPointerDownOutside:d,...h}=t,x=So(nr,r),g=Dc(r),{onClose:y}=x;return m.useEffect(()=>(document.addEventListener(f0,y),()=>document.removeEventListener(f0,y)),[y]),m.useEffect(()=>{if(x.trigger){const b=C=>{const S=C.target;S!=null&&S.contains(x.trigger)&&y()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[x.trigger,y]),f.jsx(H0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:b=>b.preventDefault(),onDismiss:y,children:f.jsxs(Pp,{"data-state":x.stateAttribute,...g,...h,ref:a,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[f.jsx(gy,{children:i}),f.jsx(py,{scope:r,isInside:!0,children:f.jsx(oy,{id:x.contentId,role:"tooltip",children:c||i})})]})})});M4.displayName=nr;var T4="TooltipArrow",_4=m.forwardRef((t,a)=>{const{__scopeTooltip:r,...i}=t,c=Dc(r);return hy(T4,r).isInside?null:f.jsx(Jp,{...c,...i,ref:a})});_4.displayName=T4;function my(t,a){const r=Math.abs(a.top-t.y),i=Math.abs(a.bottom-t.y),c=Math.abs(a.right-t.x),u=Math.abs(a.left-t.x);switch(Math.min(r,i,c,u)){case u:return"left";case c:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function xy(t,a,r=5){const i=[];switch(a){case"top":i.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":i.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":i.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":i.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return i}function vy(t){const{top:a,right:r,bottom:i,left:c}=t;return[{x:c,y:a},{x:r,y:a},{x:r,y:i},{x:c,y:i}]}function yy(t,a){const{x:r,y:i}=t;let c=!1;for(let u=0,d=a.length-1;u<a.length;d=u++){const h=a[u],x=a[d],g=h.x,y=h.y,b=x.x,C=x.y;y>i!=C>i&&r<(b-g)*(i-y)/(C-y)+g&&(c=!c)}return c}function by(t){const a=t.slice();return a.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),Cy(a)}function Cy(t){if(t.length<=1)return t.slice();const a=[];for(let i=0;i<t.length;i++){const c=t[i];for(;a.length>=2;){const u=a[a.length-1],d=a[a.length-2];if((u.x-d.x)*(c.y-d.y)>=(u.y-d.y)*(c.x-d.x))a.pop();else break}a.push(c)}a.pop();const r=[];for(let i=t.length-1;i>=0;i--){const c=t[i];for(;r.length>=2;){const u=r[r.length-1],d=r[r.length-2];if((u.x-d.x)*(c.y-d.y)>=(u.y-d.y)*(c.x-d.x))r.pop();else break}r.push(c)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var wy=C4,Sy=w4,jy=S4,My=j4,Ey=M4,Ty=_4;function _y({children:t}){return f.jsx(wy,{delayDuration:300,skipDelayDuration:100,children:t})}function Ke({content:t,children:a,side:r="top",align:i="center",delayDuration:c}){return t?f.jsxs(Sy,{delayDuration:c,children:[f.jsx(jy,{asChild:!0,children:a}),f.jsx(My,{children:f.jsxs(Ey,{className:"studio-tooltip",side:r,align:i,sideOffset:4,children:[t,f.jsx(Ty,{className:"studio-tooltip-arrow"})]})})]}):f.jsx(f.Fragment,{children:a})}const Ry=[{label:"375px",value:375},{label:"768px",value:768},{label:"1024px",value:1024},{label:"1280px",value:1280},{label:"Fill",value:"fill"}];function Ny({toolName:t,toolIcon:a,editorPanel:r,leftPanel:i,showSelectionMode:c=!0,selectionMode:u,onToggleSelectionMode:d,theme:h,onToggleTheme:x,viewportWidth:g,onViewportWidthChange:y,iframePath:b,onIframePathChange:C,targetUrl:S,iframeRef:j}){const[M,E]=m.useState(b);m.useEffect(()=>{E(b)},[b]);const T=N=>{N.preventDefault(),C(M)};return f.jsxs("div",{className:"flex flex-col h-screen",children:[f.jsxs("div",{className:"flex items-center h-11 px-4 gap-3 border-b shrink-0",style:{background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:[f.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[f.jsx("span",{style:{color:"var(--studio-text-muted)",display:"inline-flex",alignItems:"center"},children:a}),f.jsx("span",{className:"text-[11px] font-semibold tracking-wide",style:{color:"var(--studio-text-muted)"},children:t})]}),f.jsx("div",{className:"flex-1 flex justify-center",children:f.jsxs("form",{onSubmit:T,className:"studio-address-bar",children:[f.jsx("span",{className:"studio-address-icon",children:f.jsx(Gg,{})}),f.jsx("input",{type:"text",value:M,onChange:N=>E(N.target.value),className:"studio-address-input",placeholder:"/"}),f.jsx("div",{className:"studio-address-sep"}),f.jsx(Ly,{value:g,options:Ry,onChange:y})]})}),f.jsxs("div",{className:"studio-toolbar-group shrink-0",children:[c&&f.jsx(Ke,{content:u?"Selection mode on":"Selection mode off",side:"bottom",children:f.jsx("button",{onClick:d,className:`studio-toolbar-btn ${u?"active":""}`,children:f.jsx(ep,{})})}),f.jsx(Ke,{content:`Switch to ${h==="light"?"dark":"light"} mode`,side:"bottom",children:f.jsx("button",{onClick:x,className:"studio-toolbar-btn",children:h==="light"?f.jsx(_6,{}):f.jsx(c6,{})})})]})]}),f.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[i,f.jsx(ly,{viewportWidth:g,onViewportWidthChange:y,iframePath:b,targetUrl:S,iframeRef:j}),r]})]})}function Ly({value:t,options:a,onChange:r}){const[i,c]=m.useState(!1),u=a.find(h=>h.value===t),d=(u==null?void 0:u.label)??`${t}px`;return f.jsxs(bo,{open:i,onOpenChange:c,children:[f.jsx(Q0,{asChild:!0,children:f.jsxs("button",{className:"studio-bp-trigger",type:"button",children:[f.jsx(nm,{size:12,strokeWidth:1.5}),f.jsx("span",{children:d}),f.jsx(J6,{size:10,strokeWidth:2,style:{opacity:.5}})]})}),f.jsx(Co,{children:f.jsxs(wo,{className:"studio-bp-dropdown",align:"end",sideOffset:8,onOpenAutoFocus:h=>h.preventDefault(),children:[a.map(h=>{const x=h.value===t;return f.jsxs("button",{className:`studio-bp-option ${x?"active":""}`,onClick:()=>{r(h.value),c(!1)},type:"button",children:[f.jsx("span",{className:"studio-bp-option-check",children:x&&f.jsx(uo,{})}),h.label]},String(h.value))}),typeof t=="number"&&!a.some(h=>h.value===t)&&f.jsxs("button",{className:"studio-bp-option active",onClick:()=>c(!1),type:"button",children:[f.jsx("span",{className:"studio-bp-option-check",children:f.jsx(uo,{})}),t,"px"]})]})})]})}function kc(){return(kc=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}).apply(this,arguments)}function R4(t,a){if(t==null)return{};var r,i,c={},u=Object.keys(t);for(i=0;i<u.length;i++)a.indexOf(r=u[i])>=0||(c[r]=t[r]);return c}function p0(t){var a=m.useRef(t),r=m.useRef(function(i){a.current&&a.current(i)});return a.current=t,r.current}var lr=function(t,a,r){return a===void 0&&(a=0),r===void 0&&(r=1),t>r?r:t<a?a:t},co=function(t){return"touches"in t},h0=function(t){return t&&t.ownerDocument.defaultView||self},F5=function(t,a,r){var i=t.getBoundingClientRect(),c=co(a)?(function(u,d){for(var h=0;h<u.length;h++)if(u[h].identifier===d)return u[h];return u[0]})(a.touches,r):a;return{left:lr((c.pageX-(i.left+h0(t).pageXOffset))/i.width),top:lr((c.pageY-(i.top+h0(t).pageYOffset))/i.height)}},W5=function(t){!co(t)&&t.preventDefault()},J0=Qe.memo(function(t){var a=t.onMove,r=t.onKey,i=R4(t,["onMove","onKey"]),c=m.useRef(null),u=p0(a),d=p0(r),h=m.useRef(null),x=m.useRef(!1),g=m.useMemo(function(){var S=function(E){W5(E),(co(E)?E.touches.length>0:E.buttons>0)&&c.current?u(F5(c.current,E,h.current)):M(!1)},j=function(){return M(!1)};function M(E){var T=x.current,N=h0(c.current),O=E?N.addEventListener:N.removeEventListener;O(T?"touchmove":"mousemove",S),O(T?"touchend":"mouseup",j)}return[function(E){var T=E.nativeEvent,N=c.current;if(N&&(W5(T),!(function($,H){return H&&!co($)})(T,x.current)&&N)){if(co(T)){x.current=!0;var O=T.changedTouches||[];O.length&&(h.current=O[0].identifier)}N.focus(),u(F5(N,T,h.current)),M(!0)}},function(E){var T=E.which||E.keyCode;T<37||T>40||(E.preventDefault(),d({left:T===39?.05:T===37?-.05:0,top:T===40?.05:T===38?-.05:0}))},M]},[d,u]),y=g[0],b=g[1],C=g[2];return m.useEffect(function(){return C},[C]),Qe.createElement("div",kc({},i,{onTouchStart:y,onMouseDown:y,className:"react-colorful__interactive",ref:c,onKeyDown:b,tabIndex:0,role:"slider"}))}),$c=function(t){return t.filter(Boolean).join(" ")},F0=function(t){var a=t.color,r=t.left,i=t.top,c=i===void 0?.5:i,u=$c(["react-colorful__pointer",t.className]);return Qe.createElement("div",{className:u,style:{top:100*c+"%",left:100*r+"%"}},Qe.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:a}}))},xt=function(t,a,r){return a===void 0&&(a=0),r===void 0&&(r=Math.pow(10,a)),Math.round(r*t)/r},N4=function(t){var a=t.s,r=t.v,i=t.a,c=(200-a)*r/100;return{h:xt(t.h),s:xt(c>0&&c<200?a*r/100/(c<=100?c:200-c)*100:0),l:xt(c/2),a:xt(i,2)}},g0=function(t){var a=N4(t);return"hsl("+a.h+", "+a.s+"%, "+a.l+"%)"},N1=function(t){var a=N4(t);return"hsla("+a.h+", "+a.s+"%, "+a.l+"%, "+a.a+")"},Oy=function(t){var a=t.h,r=t.s,i=t.v,c=t.a;a=a/360*6,r/=100,i/=100;var u=Math.floor(a),d=i*(1-r),h=i*(1-(a-u)*r),x=i*(1-(1-a+u)*r),g=u%6;return{r:xt(255*[i,h,d,d,x,i][g]),g:xt(255*[x,i,i,h,d,d][g]),b:xt(255*[d,d,x,i,i,h][g]),a:xt(c,2)}},Ay=function(t){var a=t.r,r=t.g,i=t.b,c=t.a,u=Math.max(a,r,i),d=u-Math.min(a,r,i),h=d?u===a?(r-i)/d:u===r?2+(i-a)/d:4+(a-r)/d:0;return{h:xt(60*(h<0?h+6:h)),s:xt(u?d/u*100:0),v:xt(u/255*100),a:c}},zy=Qe.memo(function(t){var a=t.hue,r=t.onChange,i=$c(["react-colorful__hue",t.className]);return Qe.createElement("div",{className:i},Qe.createElement(J0,{onMove:function(c){r({h:360*c.left})},onKey:function(c){r({h:lr(a+360*c.left,0,360)})},"aria-label":"Hue","aria-valuenow":xt(a),"aria-valuemax":"360","aria-valuemin":"0"},Qe.createElement(F0,{className:"react-colorful__hue-pointer",left:a/360,color:g0({h:a,s:100,v:100,a:1})})))}),Hy=Qe.memo(function(t){var a=t.hsva,r=t.onChange,i={backgroundColor:g0({h:a.h,s:100,v:100,a:1})};return Qe.createElement("div",{className:"react-colorful__saturation",style:i},Qe.createElement(J0,{onMove:function(c){r({s:100*c.left,v:100-100*c.top})},onKey:function(c){r({s:lr(a.s+100*c.left,0,100),v:lr(a.v-100*c.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+xt(a.s)+"%, Brightness "+xt(a.v)+"%"},Qe.createElement(F0,{className:"react-colorful__saturation-pointer",top:1-a.v/100,left:a.s/100,color:g0(a)})))}),L4=function(t,a){if(t===a)return!0;for(var r in t)if(t[r]!==a[r])return!1;return!0};function Vy(t,a,r){var i=p0(r),c=m.useState(function(){return t.toHsva(a)}),u=c[0],d=c[1],h=m.useRef({color:a,hsva:u});m.useEffect(function(){if(!t.equal(a,h.current.color)){var g=t.toHsva(a);h.current={hsva:g,color:a},d(g)}},[a,t]),m.useEffect(function(){var g;L4(u,h.current.hsva)||t.equal(g=t.fromHsva(u),h.current.color)||(h.current={hsva:u,color:g},i(g))},[u,t,i]);var x=m.useCallback(function(g){d(function(y){return Object.assign({},y,g)})},[]);return[u,x]}var Dy=typeof window<"u"?m.useLayoutEffect:m.useEffect,ky=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},I5=new Map,$y=function(t){Dy(function(){var a=t.current?t.current.ownerDocument:document;if(a!==void 0&&!I5.has(a)){var r=a.createElement("style");r.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,I5.set(a,r);var i=ky();i&&r.setAttribute("nonce",i),a.head.appendChild(r)}},[])},By=function(t){var a=t.className,r=t.hsva,i=t.onChange,c={backgroundImage:"linear-gradient(90deg, "+N1(Object.assign({},r,{a:0}))+", "+N1(Object.assign({},r,{a:1}))+")"},u=$c(["react-colorful__alpha",a]),d=xt(100*r.a);return Qe.createElement("div",{className:u},Qe.createElement("div",{className:"react-colorful__alpha-gradient",style:c}),Qe.createElement(J0,{onMove:function(h){i({a:h.left})},onKey:function(h){i({a:lr(r.a+h.left)})},"aria-label":"Alpha","aria-valuetext":d+"%","aria-valuenow":d,"aria-valuemin":"0","aria-valuemax":"100"},Qe.createElement(F0,{className:"react-colorful__alpha-pointer",left:r.a,color:N1(r)})))},Uy=function(t){var a=t.className,r=t.colorModel,i=t.color,c=i===void 0?r.defaultColor:i,u=t.onChange,d=R4(t,["className","colorModel","color","onChange"]),h=m.useRef(null);$y(h);var x=Vy(r,c,u),g=x[0],y=x[1],b=$c(["react-colorful",a]);return Qe.createElement("div",kc({},d,{ref:h,className:b}),Qe.createElement(Hy,{hsva:g,onChange:y}),Qe.createElement(zy,{hue:g.h,onChange:y}),Qe.createElement(By,{hsva:g,onChange:y,className:"react-colorful__last-control"}))},Zy={defaultColor:{r:0,g:0,b:0,a:1},toHsva:Ay,fromHsva:Oy,equal:L4},W0=function(t){return Qe.createElement(Uy,kc({},t,{colorModel:Zy}))};const O4=(t,a)=>{if(typeof t=="number"){if(a===3)return{mode:"rgb",r:(t>>8&15|t>>4&240)/255,g:(t>>4&15|t&240)/255,b:(t&15|t<<4&240)/255};if(a===4)return{mode:"rgb",r:(t>>12&15|t>>8&240)/255,g:(t>>8&15|t>>4&240)/255,b:(t>>4&15|t&240)/255,alpha:(t&15|t<<4&240)/255};if(a===6)return{mode:"rgb",r:(t>>16&255)/255,g:(t>>8&255)/255,b:(t&255)/255};if(a===8)return{mode:"rgb",r:(t>>24&255)/255,g:(t>>16&255)/255,b:(t>>8&255)/255,alpha:(t&255)/255}}},Yy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Xy=t=>O4(Yy[t.toLowerCase()],6),qy=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Gy=t=>{let a;return(a=t.match(qy))?O4(parseInt(a[1],16),a[1].length):void 0},Sl="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",so=`${Sl}%`,I0=`(?:${Sl}%|${Sl})`,Qy=`(?:${Sl}(deg|grad|rad|turn)|${Sl})`,ar="\\s*,\\s*",Ky=new RegExp(`^rgba?\\(\\s*${Sl}${ar}${Sl}${ar}${Sl}\\s*(?:,\\s*${I0}\\s*)?\\)$`),Py=new RegExp(`^rgba?\\(\\s*${so}${ar}${so}${ar}${so}\\s*(?:,\\s*${I0}\\s*)?\\)$`),Jy=t=>{let a={mode:"rgb"},r;if(r=t.match(Ky))r[1]!==void 0&&(a.r=r[1]/255),r[2]!==void 0&&(a.g=r[2]/255),r[3]!==void 0&&(a.b=r[3]/255);else if(r=t.match(Py))r[1]!==void 0&&(a.r=r[1]/100),r[2]!==void 0&&(a.g=r[2]/100),r[3]!==void 0&&(a.b=r[3]/100);else return;return r[4]!==void 0?a.alpha=Math.max(0,Math.min(1,r[4]/100)):r[5]!==void 0&&(a.alpha=Math.max(0,Math.min(1,+r[5]))),a},Fy=(t,a)=>t===void 0?void 0:typeof t!="object"?ib(t):t.mode!==void 0?t:a?{...t,mode:a}:void 0,ea=(t="rgb")=>a=>(a=Fy(a,t))!==void 0?a.mode===t?a:gn[a.mode][t]?gn[a.mode][t](a):t==="rgb"?gn[a.mode].rgb(a):gn.rgb[t](gn[a.mode].rgb(a)):void 0,gn={},A4={},xc=[],z4={},Wy=t=>t,Ne=t=>(gn[t.mode]={...gn[t.mode],...t.toMode},Object.keys(t.fromMode||{}).forEach(a=>{gn[a]||(gn[a]={}),gn[a][t.mode]=t.fromMode[a]}),t.ranges||(t.ranges={}),t.difference||(t.difference={}),t.channels.forEach(a=>{if(t.ranges[a]===void 0&&(t.ranges[a]=[0,1]),!t.interpolate[a])throw new Error(`Missing interpolator for: ${a}`);typeof t.interpolate[a]=="function"&&(t.interpolate[a]={use:t.interpolate[a]}),t.interpolate[a].fixup||(t.interpolate[a].fixup=Wy)}),A4[t.mode]=t,(t.parse||[]).forEach(a=>{eb(a,t.mode)}),ea(t.mode)),Iy=t=>A4[t],eb=(t,a)=>{if(typeof t=="string"){if(!a)throw new Error("'mode' required when 'parser' is a string");z4[t]=a}else typeof t=="function"&&xc.indexOf(t)<0&&xc.push(t)},m0=/[^\x00-\x7F]|[a-zA-Z_]/,tb=/[^\x00-\x7F]|[-\w]/,F={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"};let ge=0;function Wi(t){let a=t[ge],r=t[ge+1];return a==="-"||a==="+"?/\d/.test(r)||r==="."&&/\d/.test(t[ge+2]):a==="."?/\d/.test(r):/\d/.test(a)}function x0(t){if(ge>=t.length)return!1;let a=t[ge];if(m0.test(a))return!0;if(a==="-"){if(t.length-ge<2)return!1;let r=t[ge+1];return!!(r==="-"||m0.test(r))}return!1}const nb={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function ro(t){let a="";if((t[ge]==="-"||t[ge]==="+")&&(a+=t[ge++]),a+=Ii(t),t[ge]==="."&&/\d/.test(t[ge+1])&&(a+=t[ge++]+Ii(t)),(t[ge]==="e"||t[ge]==="E")&&((t[ge+1]==="-"||t[ge+1]==="+")&&/\d/.test(t[ge+2])?a+=t[ge++]+t[ge++]+Ii(t):/\d/.test(t[ge+1])&&(a+=t[ge++]+Ii(t))),x0(t)){let r=vc(t);return r==="deg"||r==="rad"||r==="turn"||r==="grad"?{type:F.Hue,value:a*nb[r]}:void 0}return t[ge]==="%"?(ge++,{type:F.Percentage,value:+a}):{type:F.Number,value:+a}}function Ii(t){let a="";for(;/\d/.test(t[ge]);)a+=t[ge++];return a}function vc(t){let a="";for(;ge<t.length&&tb.test(t[ge]);)a+=t[ge++];return a}function lb(t){let a=vc(t);return t[ge]==="("?(ge++,{type:F.Function,value:a}):a==="none"?{type:F.None,value:void 0}:{type:F.Ident,value:a}}function ab(t=""){let a=t.trim(),r=[],i;for(ge=0;ge<a.length;){if(i=a[ge++],i===`
|
|
155
|
+
`||i===" "||i===" "){for(;ge<a.length&&(a[ge]===`
|
|
156
|
+
`||a[ge]===" "||a[ge]===" ");)ge++;continue}if(i===",")return;if(i===")"){r.push({type:F.ParenClose});continue}if(i==="+"){if(ge--,Wi(a)){r.push(ro(a));continue}return}if(i==="-"){if(ge--,Wi(a)){r.push(ro(a));continue}if(x0(a)){r.push({type:F.Ident,value:vc(a)});continue}return}if(i==="."){if(ge--,Wi(a)){r.push(ro(a));continue}return}if(i==="/"){for(;ge<a.length&&(a[ge]===`
|
|
157
|
+
`||a[ge]===" "||a[ge]===" ");)ge++;let c;if(Wi(a)&&(c=ro(a),c.type!==F.Hue)){r.push({type:F.Alpha,value:c});continue}if(x0(a)&&vc(a)==="none"){r.push({type:F.Alpha,value:{type:F.None,value:void 0}});continue}return}if(/\d/.test(i)){ge--,r.push(ro(a));continue}if(m0.test(i)){ge--,r.push(lb(a));continue}return}return r}function rb(t){t._i=0;let a=t[t._i++];if(!a||a.type!==F.Function||a.value!=="color"||(a=t[t._i++],a.type!==F.Ident))return;const r=z4[a.value];if(!r)return;const i={mode:r},c=H4(t,!1);if(!c)return;const u=Iy(r).channels;for(let d=0,h,x;d<u.length;d++)h=c[d],x=u[d],h.type!==F.None&&(i[x]=h.type===F.Number?h.value:h.value/100,x==="alpha"&&(i[x]=Math.max(0,Math.min(1,i[x]))));return i}function H4(t,a){const r=[];let i;for(;t._i<t.length;){if(i=t[t._i++],i.type===F.None||i.type===F.Number||i.type===F.Alpha||i.type===F.Percentage||a&&i.type===F.Hue){r.push(i);continue}if(i.type===F.ParenClose){if(t._i<t.length)return;continue}return}if(!(r.length<3||r.length>4)){if(r.length===4){if(r[3].type!==F.Alpha)return;r[3]=r[3].value}return r.length===3&&r.push({type:F.None,value:void 0}),r.every(c=>c.type!==F.Alpha)?r:void 0}}function ob(t,a){t._i=0;let r=t[t._i++];if(!r||r.type!==F.Function)return;let i=H4(t,a);if(i)return i.unshift(r.value),i}const ib=t=>{if(typeof t!="string")return;const a=ab(t),r=a?ob(a,!0):void 0;let i,c=0,u=xc.length;for(;c<u;)if((i=xc[c++](t,r))!==void 0)return i;return a?rb(a):void 0};function cb(t,a){if(!a||a[0]!=="rgb"&&a[0]!=="rgba")return;const r={mode:"rgb"},[,i,c,u,d]=a;if(!(i.type===F.Hue||c.type===F.Hue||u.type===F.Hue))return i.type!==F.None&&(r.r=i.type===F.Number?i.value/255:i.value/100),c.type!==F.None&&(r.g=c.type===F.Number?c.value/255:c.value/100),u.type!==F.None&&(r.b=u.type===F.Number?u.value/255:u.value/100),d.type!==F.None&&(r.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),r}const sb=t=>t==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,ub=(t,a,r)=>t+r*(a-t),fb=t=>{let a=[];for(let r=0;r<t.length-1;r++){let i=t[r],c=t[r+1];i===void 0&&c===void 0?a.push(void 0):i!==void 0&&c!==void 0?a.push([i,c]):a.push(i!==void 0?[i,i]:[c,c])}return a},db=t=>a=>{let r=fb(a);return i=>{let c=i*r.length,u=i>=1?r.length-1:Math.max(Math.floor(c),0),d=r[u];return d===void 0?void 0:t(d[0],d[1],c-u)}},ne=db(ub),lt=t=>{let a=!1,r=t.map(i=>i!==void 0?(a=!0,i):1);return a?r:t},ir={mode:"rgb",channels:["r","g","b","alpha"],parse:[cb,Gy,Jy,Xy,sb,"srgb"],serialize:"srgb",interpolate:{r:ne,g:ne,b:ne,alpha:{use:ne,fixup:lt}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},L1=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),e3=t=>{let a=L1(t.r),r=L1(t.g),i=L1(t.b),c={mode:"xyz65",x:.5766690429101305*a+.1855582379065463*r+.1882286462349947*i,y:.297344975250536*a+.6273635662554661*r+.0752914584939979*i,z:.0270313613864123*a+.0706888525358272*r+.9913375368376386*i};return t.alpha!==void 0&&(c.alpha=t.alpha),c},O1=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),t3=({x:t,y:a,z:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c={mode:"a98",r:O1(t*2.0415879038107465-a*.5650069742788597-.3447313507783297*r),g:O1(t*-.9692436362808798+a*1.8759675015077206+.0415550574071756*r),b:O1(t*.0134442806320312-a*.1183623922310184+1.0151749943912058*r)};return i!==void 0&&(c.alpha=i),c},A1=(t=0)=>{const a=Math.abs(t);return a<=.04045?t/12.92:(Math.sign(t)||1)*Math.pow((a+.055)/1.055,2.4)},cr=({r:t,g:a,b:r,alpha:i})=>{let c={mode:"lrgb",r:A1(t),g:A1(a),b:A1(r)};return i!==void 0&&(c.alpha=i),c},ta=t=>{let{r:a,g:r,b:i,alpha:c}=cr(t),u={mode:"xyz65",x:.4123907992659593*a+.357584339383878*r+.1804807884018343*i,y:.2126390058715102*a+.715168678767756*r+.0721923153607337*i,z:.0193308187155918*a+.119194779794626*r+.9505321522496607*i};return c!==void 0&&(u.alpha=c),u},z1=(t=0)=>{const a=Math.abs(t);return a>.0031308?(Math.sign(t)||1)*(1.055*Math.pow(a,1/2.4)-.055):t*12.92},sr=({r:t,g:a,b:r,alpha:i},c="rgb")=>{let u={mode:c,r:z1(t),g:z1(a),b:z1(r)};return i!==void 0&&(u.alpha=i),u},na=({x:t,y:a,z:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=sr({r:t*3.2409699419045226-a*1.537383177570094-.4986107602930034*r,g:t*-.9692436362808796+a*1.8759675015077204+.0415550574071756*r,b:t*.0556300796969936-a*.2039769588889765+1.0569715142428784*r});return i!==void 0&&(c.alpha=i),c},pb={...ir,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>t3(ta(t)),xyz65:t3},toMode:{rgb:t=>na(e3(t)),xyz65:e3}},pt=t=>(t=t%360)<0?t+360:t,hb=(t,a)=>t.map((r,i,c)=>{if(r===void 0)return r;let u=pt(r);return i===0||t[i-1]===void 0?u:a(u-pt(c[i-1]))}).reduce((r,i)=>!r.length||i===void 0||r[r.length-1]===void 0?(r.push(i),r):(r.push(i+r[r.length-1]),r),[]),Yn=t=>hb(t,a=>Math.abs(a)<=180?a:a-360*Math.sign(a)),ot=[-.14861,1.78277,-.29227,-.90649,1.97294,0],gb=Math.PI/180,mb=180/Math.PI;let n3=ot[3]*ot[4],l3=ot[1]*ot[4],a3=ot[1]*ot[2]-ot[0]*ot[3];const xb=({r:t,g:a,b:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=(a3*r+t*n3-a*l3)/(a3+n3-l3),u=r-c,d=(ot[4]*(a-c)-ot[2]*u)/ot[3],h={mode:"cubehelix",l:c,s:c===0||c===1?void 0:Math.sqrt(u*u+d*d)/(ot[4]*c*(1-c))};return h.s&&(h.h=Math.atan2(d,u)*mb-120),i!==void 0&&(h.alpha=i),h},vb=({h:t,s:a,l:r,alpha:i})=>{let c={mode:"rgb"};t=(t===void 0?0:t+120)*gb,r===void 0&&(r=0);let u=a===void 0?0:a*r*(1-r),d=Math.cos(t),h=Math.sin(t);return c.r=r+u*(ot[0]*d+ot[1]*h),c.g=r+u*(ot[2]*d+ot[3]*h),c.b=r+u*(ot[4]*d+ot[5]*h),i!==void 0&&(c.alpha=i),c},Bc=(t,a)=>{if(t.h===void 0||a.h===void 0||!t.s||!a.s)return 0;let r=pt(t.h),i=pt(a.h),c=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*a.s)*c},yb=(t,a)=>{if(t.h===void 0||a.h===void 0)return 0;let r=pt(t.h),i=pt(a.h);return Math.abs(i-r)>180?r-(i-360*Math.sign(i-r)):i-r},Uc=(t,a)=>{if(t.h===void 0||a.h===void 0||!t.c||!a.c)return 0;let r=pt(t.h),i=pt(a.h),c=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*a.c)*c},Xn=t=>{let a=t.reduce((i,c)=>{if(c!==void 0){let u=c*Math.PI/180;i.sin+=Math.sin(u),i.cos+=Math.cos(u)}return i},{sin:0,cos:0}),r=Math.atan2(a.sin,a.cos)*180/Math.PI;return r<0?360+r:r},bb={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:xb},toMode:{rgb:vb},interpolate:{h:{use:ne,fixup:Yn},s:ne,l:ne,alpha:{use:ne,fixup:lt}},difference:{h:Bc},average:{h:Xn}},Rl=({l:t,a,b:r,alpha:i},c="lch")=>{a===void 0&&(a=0),r===void 0&&(r=0);let u=Math.sqrt(a*a+r*r),d={mode:c,l:t,c:u};return u&&(d.h=pt(Math.atan2(r,a)*180/Math.PI)),i!==void 0&&(d.alpha=i),d},Nl=({l:t,c:a,h:r,alpha:i},c="lab")=>{r===void 0&&(r=0);let u={mode:c,l:t,a:a?a*Math.cos(r/180*Math.PI):0,b:a?a*Math.sin(r/180*Math.PI):0};return i!==void 0&&(u.alpha=i),u},V4=Math.pow(29,3)/Math.pow(3,3),D4=Math.pow(6,3)/Math.pow(29,3),tt={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},Fa={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329};let H1=t=>Math.pow(t,3)>D4?Math.pow(t,3):(116*t-16)/V4;const k4=({l:t,a,b:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=(t+16)/116,u=a/500+c,d=c-r/200,h={mode:"xyz65",x:H1(u)*Fa.X,y:H1(c)*Fa.Y,z:H1(d)*Fa.Z};return i!==void 0&&(h.alpha=i),h},Zc=t=>na(k4(t)),V1=t=>t>D4?Math.cbrt(t):(V4*t+16)/116,$4=({x:t,y:a,z:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=V1(t/Fa.X),u=V1(a/Fa.Y),d=V1(r/Fa.Z),h={mode:"lab65",l:116*u-16,a:500*(c-u),b:200*(u-d)};return i!==void 0&&(h.alpha=i),h},Yc=t=>{let a=$4(ta(t));return t.r===t.b&&t.b===t.g&&(a.a=a.b=0),a},yc=1,B4=1,go=26/180*Math.PI,bc=Math.cos(go),Cc=Math.sin(go),U4=100/Math.log(139/100),v0=({l:t,c:a,h:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c={mode:"lab65",l:(Math.exp(t*yc/U4)-1)/.0039},u=(Math.exp(.0435*a*B4*yc)-1)/.075,d=u*Math.cos(r/180*Math.PI-go),h=u*Math.sin(r/180*Math.PI-go);return c.a=d*bc-h/.83*Cc,c.b=d*Cc+h/.83*bc,i!==void 0&&(c.alpha=i),c},y0=({l:t,a,b:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=a*bc+r*Cc,u=.83*(r*bc-a*Cc),d=Math.sqrt(c*c+u*u),h={mode:"dlch",l:U4/yc*Math.log(1+.0039*t),c:Math.log(1+.075*d)/(.0435*B4*yc)};return h.c&&(h.h=pt((Math.atan2(u,c)+go)/Math.PI*180)),i!==void 0&&(h.alpha=i),h},r3=t=>v0(Rl(t,"dlch")),o3=t=>Nl(y0(t),"dlab"),Cb={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:r3,rgb:t=>Zc(r3(t))},fromMode:{lab65:o3,rgb:t=>o3(Yc(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:ne,a:ne,b:ne,alpha:{use:ne,fixup:lt}}},wb={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:v0,dlab:t=>Nl(t,"dlab"),rgb:t=>Zc(v0(t))},fromMode:{lab65:y0,dlab:t=>Rl(t,"dlch"),rgb:t=>y0(Yc(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:ne,c:ne,h:{use:ne,fixup:Yn},alpha:{use:ne,fixup:lt}},difference:{h:Uc},average:{h:Xn}};function Sb({h:t,s:a,i:r,alpha:i}){t=pt(t!==void 0?t:0),a===void 0&&(a=0),r===void 0&&(r=0);let c=Math.abs(t/60%2-1),u;switch(Math.floor(t/60)){case 0:u={r:r*(1+a*(3/(2-c)-1)),g:r*(1+a*(3*(1-c)/(2-c)-1)),b:r*(1-a)};break;case 1:u={r:r*(1+a*(3*(1-c)/(2-c)-1)),g:r*(1+a*(3/(2-c)-1)),b:r*(1-a)};break;case 2:u={r:r*(1-a),g:r*(1+a*(3/(2-c)-1)),b:r*(1+a*(3*(1-c)/(2-c)-1))};break;case 3:u={r:r*(1-a),g:r*(1+a*(3*(1-c)/(2-c)-1)),b:r*(1+a*(3/(2-c)-1))};break;case 4:u={r:r*(1+a*(3*(1-c)/(2-c)-1)),g:r*(1-a),b:r*(1+a*(3/(2-c)-1))};break;case 5:u={r:r*(1+a*(3/(2-c)-1)),g:r*(1-a),b:r*(1+a*(3*(1-c)/(2-c)-1))};break;default:u={r:r*(1-a),g:r*(1-a),b:r*(1-a)}}return u.mode="rgb",i!==void 0&&(u.alpha=i),u}function jb({r:t,g:a,b:r,alpha:i}){t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=Math.max(t,a,r),u=Math.min(t,a,r),d={mode:"hsi",s:t+a+r===0?0:1-3*u/(t+a+r),i:(t+a+r)/3};return c-u!==0&&(d.h=(c===t?(a-r)/(c-u)+(a<r)*6:c===a?(r-t)/(c-u)+2:(t-a)/(c-u)+4)*60),i!==void 0&&(d.alpha=i),d}const Mb={mode:"hsi",toMode:{rgb:Sb},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:jb},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:ne,fixup:Yn},s:ne,i:ne,alpha:{use:ne,fixup:lt}},difference:{h:Bc},average:{h:Xn}};function Eb({h:t,s:a,l:r,alpha:i}){t=pt(t!==void 0?t:0),a===void 0&&(a=0),r===void 0&&(r=0);let c=r+a*(r<.5?r:1-r),u=c-(c-r)*2*Math.abs(t/60%2-1),d;switch(Math.floor(t/60)){case 0:d={r:c,g:u,b:2*r-c};break;case 1:d={r:u,g:c,b:2*r-c};break;case 2:d={r:2*r-c,g:c,b:u};break;case 3:d={r:2*r-c,g:u,b:c};break;case 4:d={r:u,g:2*r-c,b:c};break;case 5:d={r:c,g:2*r-c,b:u};break;default:d={r:2*r-c,g:2*r-c,b:2*r-c}}return d.mode="rgb",i!==void 0&&(d.alpha=i),d}function Tb({r:t,g:a,b:r,alpha:i}){t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=Math.max(t,a,r),u=Math.min(t,a,r),d={mode:"hsl",s:c===u?0:(c-u)/(1-Math.abs(c+u-1)),l:.5*(c+u)};return c-u!==0&&(d.h=(c===t?(a-r)/(c-u)+(a<r)*6:c===a?(r-t)/(c-u)+2:(t-a)/(c-u)+4)*60),i!==void 0&&(d.alpha=i),d}const _b=(t,a)=>{switch(a){case"deg":return+t;case"rad":return t/Math.PI*180;case"grad":return t/10*9;case"turn":return t*360}},Rb=new RegExp(`^hsla?\\(\\s*${Qy}${ar}${so}${ar}${so}\\s*(?:,\\s*${I0}\\s*)?\\)$`),Nb=t=>{let a=t.match(Rb);if(!a)return;let r={mode:"hsl"};return a[3]!==void 0?r.h=+a[3]:a[1]!==void 0&&a[2]!==void 0&&(r.h=_b(a[1],a[2])),a[4]!==void 0&&(r.s=Math.min(Math.max(0,a[4]/100),1)),a[5]!==void 0&&(r.l=Math.min(Math.max(0,a[5]/100),1)),a[6]!==void 0?r.alpha=Math.max(0,Math.min(1,a[6]/100)):a[7]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+a[7]))),r};function Lb(t,a){if(!a||a[0]!=="hsl"&&a[0]!=="hsla")return;const r={mode:"hsl"},[,i,c,u,d]=a;if(i.type!==F.None){if(i.type===F.Percentage)return;r.h=i.value}if(c.type!==F.None){if(c.type===F.Hue)return;r.s=c.value/100}if(u.type!==F.None){if(u.type===F.Hue)return;r.l=u.value/100}return d.type!==F.None&&(r.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),r}const Z4={mode:"hsl",toMode:{rgb:Eb},fromMode:{rgb:Tb},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Lb,Nb],serialize:t=>`hsl(${t.h!==void 0?t.h:"none"} ${t.s!==void 0?t.s*100+"%":"none"} ${t.l!==void 0?t.l*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:ne,fixup:Yn},s:ne,l:ne,alpha:{use:ne,fixup:lt}},difference:{h:Bc},average:{h:Xn}};function Y4({h:t,s:a,v:r,alpha:i}){t=pt(t!==void 0?t:0),a===void 0&&(a=0),r===void 0&&(r=0);let c=Math.abs(t/60%2-1),u;switch(Math.floor(t/60)){case 0:u={r,g:r*(1-a*c),b:r*(1-a)};break;case 1:u={r:r*(1-a*c),g:r,b:r*(1-a)};break;case 2:u={r:r*(1-a),g:r,b:r*(1-a*c)};break;case 3:u={r:r*(1-a),g:r*(1-a*c),b:r};break;case 4:u={r:r*(1-a*c),g:r*(1-a),b:r};break;case 5:u={r,g:r*(1-a),b:r*(1-a*c)};break;default:u={r:r*(1-a),g:r*(1-a),b:r*(1-a)}}return u.mode="rgb",i!==void 0&&(u.alpha=i),u}function X4({r:t,g:a,b:r,alpha:i}){t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=Math.max(t,a,r),u=Math.min(t,a,r),d={mode:"hsv",s:c===0?0:1-u/c,v:c};return c-u!==0&&(d.h=(c===t?(a-r)/(c-u)+(a<r)*6:c===a?(r-t)/(c-u)+2:(t-a)/(c-u)+4)*60),i!==void 0&&(d.alpha=i),d}const q4={mode:"hsv",toMode:{rgb:Y4},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:X4},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:ne,fixup:Yn},s:ne,v:ne,alpha:{use:ne,fixup:lt}},difference:{h:Bc},average:{h:Xn}};function Ob({h:t,w:a,b:r,alpha:i}){if(a===void 0&&(a=0),r===void 0&&(r=0),a+r>1){let c=a+r;a/=c,r/=c}return Y4({h:t,s:r===1?1:1-a/(1-r),v:1-r,alpha:i})}function Ab(t){let a=X4(t);if(a===void 0)return;let r=a.s!==void 0?a.s:0,i=a.v!==void 0?a.v:0,c={mode:"hwb",w:(1-r)*i,b:1-i};return a.h!==void 0&&(c.h=a.h),a.alpha!==void 0&&(c.alpha=a.alpha),c}function zb(t,a){if(!a||a[0]!=="hwb")return;const r={mode:"hwb"},[,i,c,u,d]=a;if(i.type!==F.None){if(i.type===F.Percentage)return;r.h=i.value}if(c.type!==F.None){if(c.type===F.Hue)return;r.w=c.value/100}if(u.type!==F.None){if(u.type===F.Hue)return;r.b=u.value/100}return d.type!==F.None&&(r.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),r}const Hb={mode:"hwb",toMode:{rgb:Ob},fromMode:{rgb:Ab},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[zb],serialize:t=>`hwb(${t.h!==void 0?t.h:"none"} ${t.w!==void 0?t.w*100+"%":"none"} ${t.b!==void 0?t.b*100+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:ne,fixup:Yn},w:ne,b:ne,alpha:{use:ne,fixup:lt}},difference:{h:yb},average:{h:Xn}},G4=203,Xc=.1593017578125,Q4=78.84375,qc=.8359375,Gc=18.8515625,Qc=18.6875;function D1(t){if(t<0)return 0;const a=Math.pow(t,1/Q4);return 1e4*Math.pow(Math.max(0,a-qc)/(Gc-Qc*a),1/Xc)}function k1(t){if(t<0)return 0;const a=Math.pow(t/1e4,Xc);return Math.pow((qc+Gc*a)/(1+Qc*a),Q4)}const $1=t=>Math.max(t/G4,0),i3=({i:t,t:a,p:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);const c=D1(t+.008609037037932761*a+.11102962500302593*r),u=D1(t-.00860903703793275*a-.11102962500302599*r),d=D1(t+.5600313357106791*a-.32062717498731885*r),h={mode:"xyz65",x:$1(2.070152218389422*c-1.3263473389671556*u+.2066510476294051*d),y:$1(.3647385209748074*c+.680566024947227*u-.0453045459220346*d),z:$1(-.049747207535812*c-.0492609666966138*u+1.1880659249923042*d)};return i!==void 0&&(h.alpha=i),h},B1=(t=0)=>Math.max(t*G4,0),c3=({x:t,y:a,z:r,alpha:i})=>{const c=B1(t),u=B1(a),d=B1(r),h=k1(.3592832590121217*c+.6976051147779502*u-.0358915932320289*d),x=k1(-.1920808463704995*c+1.1004767970374323*u+.0753748658519118*d),g=k1(.0070797844607477*c+.0748396662186366*u+.8433265453898765*d),y=.5*h+.5*x,b=1.61376953125*h-3.323486328125*x+1.709716796875*g,C=4.378173828125*h-4.24560546875*x-.132568359375*g,S={mode:"itp",i:y,t:b,p:C};return i!==void 0&&(S.alpha=i),S},Vb={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:i3,rgb:t=>na(i3(t))},fromMode:{xyz65:c3,rgb:t=>c3(ta(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:ne,t:ne,p:ne,alpha:{use:ne,fixup:lt}}},Db=134.03437499999998,kb=16295499532821565e-27,U1=t=>{if(t<0)return 0;let a=Math.pow(t/1e4,Xc);return Math.pow((qc+Gc*a)/(1+Qc*a),Db)},Z1=(t=0)=>Math.max(t*203,0),K4=({x:t,y:a,z:r,alpha:i})=>{t=Z1(t),a=Z1(a),r=Z1(r);let c=1.15*t-.15*r,u=.66*a+.34*t,d=U1(.41478972*c+.579999*u+.014648*r),h=U1(-.20151*c+1.120649*u+.0531008*r),x=U1(-.0166008*c+.2648*u+.6684799*r),g=(d+h)/2,y={mode:"jab",j:.44*g/(1-.56*g)-kb,a:3.524*d-4.066708*h+.542708*x,b:.199076*d+1.096799*h-1.295875*x};return i!==void 0&&(y.alpha=i),y},$b=134.03437499999998,s3=16295499532821565e-27,Y1=t=>{if(t<0)return 0;let a=Math.pow(t,1/$b);return 1e4*Math.pow((qc-a)/(Qc*a-Gc),1/Xc)},X1=t=>t/203,P4=({j:t,a,b:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=(t+s3)/(.44+.56*(t+s3)),u=Y1(c+.13860504*a+.058047316*r),d=Y1(c-.13860504*a-.058047316*r),h=Y1(c-.096019242*a-.8118919*r),x={mode:"xyz65",x:X1(1.661373024652174*u-.914523081304348*d+.23136208173913045*h),y:X1(-.3250758611844533*u+1.571847026732543*d-.21825383453227928*h),z:X1(-.090982811*u-.31272829*d+1.5227666*h)};return i!==void 0&&(x.alpha=i),x},J4=t=>{let a=K4(ta(t));return t.r===t.b&&t.b===t.g&&(a.a=a.b=0),a},F4=t=>na(P4(t)),Bb={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:J4,xyz65:K4},toMode:{rgb:F4,xyz65:P4},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:ne,a:ne,b:ne,alpha:{use:ne,fixup:lt}}},u3=({j:t,a,b:r,alpha:i})=>{a===void 0&&(a=0),r===void 0&&(r=0);let c=Math.sqrt(a*a+r*r),u={mode:"jch",j:t,c};return c&&(u.h=pt(Math.atan2(r,a)*180/Math.PI)),i!==void 0&&(u.alpha=i),u},f3=({j:t,c:a,h:r,alpha:i})=>{r===void 0&&(r=0);let c={mode:"jab",j:t,a:a?a*Math.cos(r/180*Math.PI):0,b:a?a*Math.sin(r/180*Math.PI):0};return i!==void 0&&(c.alpha=i),c},Ub={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:f3,rgb:t=>F4(f3(t))},fromMode:{rgb:t=>u3(J4(t)),jab:u3},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:ne,fixup:Yn},c:ne,j:ne,alpha:{use:ne,fixup:lt}},difference:{h:Uc},average:{h:Xn}},Kc=Math.pow(29,3)/Math.pow(3,3),ef=Math.pow(6,3)/Math.pow(29,3);let q1=t=>Math.pow(t,3)>ef?Math.pow(t,3):(116*t-16)/Kc;const tf=({l:t,a,b:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=(t+16)/116,u=a/500+c,d=c-r/200,h={mode:"xyz50",x:q1(u)*tt.X,y:q1(c)*tt.Y,z:q1(d)*tt.Z};return i!==void 0&&(h.alpha=i),h},jo=({x:t,y:a,z:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=sr({r:t*3.1341359569958707-a*1.6173863321612538-.4906619460083532*r,g:t*-.978795502912089+a*1.916254567259524+.03344273116131949*r,b:t*.07195537988411677-a*.2289768264158322+1.405386058324125*r});return i!==void 0&&(c.alpha=i),c},W4=t=>jo(tf(t)),Mo=t=>{let{r:a,g:r,b:i,alpha:c}=cr(t),u={mode:"xyz50",x:.436065742824811*a+.3851514688337912*r+.14307845442264197*i,y:.22249319175623702*a+.7168870538238823*r+.06061979053616537*i,z:.013923904500943465*a+.09708128566574634*r+.7140993584005155*i};return c!==void 0&&(u.alpha=c),u},G1=t=>t>ef?Math.cbrt(t):(Kc*t+16)/116,nf=({x:t,y:a,z:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=G1(t/tt.X),u=G1(a/tt.Y),d=G1(r/tt.Z),h={mode:"lab",l:116*u-16,a:500*(c-u),b:200*(u-d)};return i!==void 0&&(h.alpha=i),h},I4=t=>{let a=nf(Mo(t));return t.r===t.b&&t.b===t.g&&(a.a=a.b=0),a};function Zb(t,a){if(!a||a[0]!=="lab")return;const r={mode:"lab"},[,i,c,u,d]=a;if(!(i.type===F.Hue||c.type===F.Hue||u.type===F.Hue))return i.type!==F.None&&(r.l=Math.min(Math.max(0,i.value),100)),c.type!==F.None&&(r.a=c.type===F.Number?c.value:c.value*125/100),u.type!==F.None&&(r.b=u.type===F.Number?u.value:u.value*125/100),d.type!==F.None&&(r.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),r}const lf={mode:"lab",toMode:{xyz50:tf,rgb:W4},fromMode:{xyz50:nf,rgb:I4},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Zb],serialize:t=>`lab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{l:ne,a:ne,b:ne,alpha:{use:ne,fixup:lt}}},Yb={...lf,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:k4,rgb:Zc},fromMode:{xyz65:$4,rgb:Yc},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};function Xb(t,a){if(!a||a[0]!=="lch")return;const r={mode:"lch"},[,i,c,u,d]=a;if(i.type!==F.None){if(i.type===F.Hue)return;r.l=Math.min(Math.max(0,i.value),100)}if(c.type!==F.None&&(r.c=Math.max(0,c.type===F.Number?c.value:c.value*150/100)),u.type!==F.None){if(u.type===F.Percentage)return;r.h=u.value}return d.type!==F.None&&(r.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),r}const af={mode:"lch",toMode:{lab:Nl,rgb:t=>W4(Nl(t))},fromMode:{rgb:t=>Rl(I4(t)),lab:Rl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Xb],serialize:t=>`lch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:ne,fixup:Yn},c:ne,l:ne,alpha:{use:ne,fixup:lt}},difference:{h:Uc},average:{h:Xn}},qb={...af,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>Nl(t,"lab65"),rgb:t=>Zc(Nl(t,"lab65"))},fromMode:{rgb:t=>Rl(Yc(t),"lch65"),lab65:t=>Rl(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},eh=({l:t,u:a,v:r,alpha:i})=>{a===void 0&&(a=0),r===void 0&&(r=0);let c=Math.sqrt(a*a+r*r),u={mode:"lchuv",l:t,c};return c&&(u.h=pt(Math.atan2(r,a)*180/Math.PI)),i!==void 0&&(u.alpha=i),u},th=({l:t,c:a,h:r,alpha:i})=>{r===void 0&&(r=0);let c={mode:"luv",l:t,u:a?a*Math.cos(r/180*Math.PI):0,v:a?a*Math.sin(r/180*Math.PI):0};return i!==void 0&&(c.alpha=i),c},nh=(t,a,r)=>4*t/(t+15*a+3*r),lh=(t,a,r)=>9*a/(t+15*a+3*r),Gb=nh(tt.X,tt.Y,tt.Z),Qb=lh(tt.X,tt.Y,tt.Z),Kb=t=>t<=ef?Kc*t:116*Math.cbrt(t)-16,b0=({x:t,y:a,z:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=Kb(a/tt.Y),u=nh(t,a,r),d=lh(t,a,r);!isFinite(u)||!isFinite(d)?c=u=d=0:(u=13*c*(u-Gb),d=13*c*(d-Qb));let h={mode:"luv",l:c,u,v:d};return i!==void 0&&(h.alpha=i),h},Pb=(t,a,r)=>4*t/(t+15*a+3*r),Jb=(t,a,r)=>9*a/(t+15*a+3*r),Fb=Pb(tt.X,tt.Y,tt.Z),Wb=Jb(tt.X,tt.Y,tt.Z),C0=({l:t,u:a,v:r,alpha:i})=>{if(t===void 0&&(t=0),t===0)return{mode:"xyz50",x:0,y:0,z:0};a===void 0&&(a=0),r===void 0&&(r=0);let c=a/(13*t)+Fb,u=r/(13*t)+Wb,d=tt.Y*(t<=8?t/Kc:Math.pow((t+16)/116,3)),h=d*(9*c)/(4*u),x=d*(12-3*c-20*u)/(4*u),g={mode:"xyz50",x:h,y:d,z:x};return i!==void 0&&(g.alpha=i),g},Ib=t=>eh(b0(Mo(t))),eC=t=>jo(C0(th(t))),tC={mode:"lchuv",toMode:{luv:th,rgb:eC},fromMode:{rgb:Ib,luv:eh},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:ne,fixup:Yn},c:ne,l:ne,alpha:{use:ne,fixup:lt}},difference:{h:Uc},average:{h:Xn}},nC={...ir,mode:"lrgb",toMode:{rgb:sr},fromMode:{rgb:cr},parse:["srgb-linear"],serialize:"srgb-linear"},lC={mode:"luv",toMode:{xyz50:C0,rgb:t=>jo(C0(t))},fromMode:{xyz50:b0,rgb:t=>b0(Mo(t))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:ne,u:ne,v:ne,alpha:{use:ne,fixup:lt}}},ah=({r:t,g:a,b:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=Math.cbrt(.412221469470763*t+.5363325372617348*a+.0514459932675022*r),u=Math.cbrt(.2119034958178252*t+.6806995506452344*a+.1073969535369406*r),d=Math.cbrt(.0883024591900564*t+.2817188391361215*a+.6299787016738222*r),h={mode:"oklab",l:.210454268309314*c+.7936177747023054*u-.0040720430116193*d,a:1.9779985324311684*c-2.42859224204858*u+.450593709617411*d,b:.0259040424655478*c+.7827717124575296*u-.8086757549230774*d};return i!==void 0&&(h.alpha=i),h},Pc=t=>{let a=ah(cr(t));return t.r===t.b&&t.b===t.g&&(a.a=a.b=0),a},Eo=({l:t,a,b:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=Math.pow(t+.3963377773761749*a+.2158037573099136*r,3),u=Math.pow(t-.1055613458156586*a-.0638541728258133*r,3),d=Math.pow(t-.0894841775298119*a-1.2914855480194092*r,3),h={mode:"lrgb",r:4.076741636075957*c-3.3077115392580616*u+.2309699031821044*d,g:-1.2684379732850317*c+2.6097573492876887*u-.3413193760026573*d,b:-.0041960761386756*c-.7034186179359362*u+1.7076146940746117*d};return i!==void 0&&(h.alpha=i),h},Jc=t=>sr(Eo(t));function w0(t){const i=1.170873786407767;return .5*(i*t-.206+Math.sqrt((i*t-.206)*(i*t-.206)+4*.03*i*t))}function wc(t){return(t*t+.206*t)/(1.170873786407767*(t+.03))}function aC(t,a){let r,i,c,u,d,h,x,g;-1.88170328*t-.80936493*a>1?(r=1.19086277,i=1.76576728,c=.59662641,u=.75515197,d=.56771245,h=4.0767416621,x=-3.3077115913,g=.2309699292):1.81444104*t-1.19445276*a>1?(r=.73956515,i=-.45954404,c=.08285427,u=.1254107,d=.14503204,h=-1.2684380046,x=2.6097574011,g=-.3413193965):(r=1.35733652,i=-.00915799,c=-1.1513021,u=-.50559606,d=.00692167,h=-.0041960863,x=-.7034186147,g=1.707614701);let y=r+i*t+c*a+u*t*t+d*t*a,b=.3963377774*t+.2158037573*a,C=-.1055613458*t-.0638541728*a,S=-.0894841775*t-1.291485548*a;{let j=1+y*b,M=1+y*C,E=1+y*S,T=j*j*j,N=M*M*M,O=E*E*E,$=3*b*j*j,H=3*C*M*M,K=3*S*E*E,Z=6*b*b*j,ae=6*C*C*M,ce=6*S*S*E,X=h*T+x*N+g*O,P=h*$+x*H+g*K,ee=h*Z+x*ae+g*ce;y=y-X*P/(P*P-.5*X*ee)}return y}function rf(t,a){let r=aC(t,a),i=Eo({l:1,a:r*t,b:r*a}),c=Math.cbrt(1/Math.max(i.r,i.g,i.b)),u=c*r;return[c,u]}function rC(t,a,r,i,c,u=null){u||(u=rf(t,a));let d;if((r-c)*u[1]-(u[0]-c)*i<=0)d=u[1]*c/(i*u[0]+u[1]*(c-r));else{d=u[1]*(c-1)/(i*(u[0]-1)+u[1]*(c-r));{let h=r-c,x=i,g=.3963377774*t+.2158037573*a,y=-.1055613458*t-.0638541728*a,b=-.0894841775*t-1.291485548*a,C=h+x*g,S=h+x*y,j=h+x*b;{let M=c*(1-d)+d*r,E=d*i,T=M+E*g,N=M+E*y,O=M+E*b,$=T*T*T,H=N*N*N,K=O*O*O,Z=3*C*T*T,ae=3*S*N*N,ce=3*j*O*O,X=6*C*C*T,P=6*S*S*N,ee=6*j*j*O,xe=4.0767416621*$-3.3077115913*H+.2309699292*K-1,fe=4.0767416621*Z-3.3077115913*ae+.2309699292*ce,Ce=4.0767416621*X-3.3077115913*P+.2309699292*ee,A=fe/(fe*fe-.5*xe*Ce),B=-xe*A,J=-1.2684380046*$+2.6097574011*H-.3413193965*K-1,ie=-1.2684380046*Z+2.6097574011*ae-.3413193965*ce,pe=-1.2684380046*X+2.6097574011*P-.3413193965*ee,R=ie/(ie*ie-.5*J*pe),q=-J*R,I=-.0041960863*$-.7034186147*H+1.707614701*K-1,te=-.0041960863*Z-.7034186147*ae+1.707614701*ce,W=-.0041960863*X-.7034186147*P+1.707614701*ee,le=te/(te*te-.5*I*W),de=-I*le;B=A>=0?B:1e6,q=R>=0?q:1e6,de=le>=0?de:1e6,d+=Math.min(B,Math.min(q,de))}}}return d}function of(t,a,r=null){r||(r=rf(t,a));let i=r[0],c=r[1];return[c/i,c/(1-i)]}function rh(t,a,r){let i=rf(a,r),c=rC(a,r,t,1,t,i),u=of(a,r,i),d=.11516993+1/(7.4477897+4.1590124*r+a*(-2.19557347+1.75198401*r+a*(-2.13704948-10.02301043*r+a*(-4.24894561+5.38770819*r+4.69891013*a)))),h=.11239642+1/(1.6132032-.68124379*r+a*(.40370612+.90148123*r+a*(-.27087943+.6122399*r+a*(.00299215-.45399568*r-.14661872*a)))),x=c/Math.min(t*u[0],(1-t)*u[1]),g=t*d,y=(1-t)*h,b=.9*x*Math.sqrt(Math.sqrt(1/(1/(g*g*g*g)+1/(y*y*y*y))));return g=t*.4,y=(1-t)*.8,[Math.sqrt(1/(1/(g*g)+1/(y*y))),b,c]}function d3(t){const a=t.l!==void 0?t.l:0,r=t.a!==void 0?t.a:0,i=t.b!==void 0?t.b:0,c={mode:"okhsl",l:w0(a)};t.alpha!==void 0&&(c.alpha=t.alpha);let u=Math.sqrt(r*r+i*i);if(!u)return c.s=0,c;let[d,h,x]=rh(a,r/u,i/u),g;if(u<h){let y=0,b=.8*d,C=1-b/h;g=(u-y)/(b+C*(u-y))*.8}else{let y=h,b=.2*h*h*1.25*1.25/d,C=1-b/(x-h);g=.8+.2*((u-y)/(b+C*(u-y)))}return g&&(c.s=g,c.h=pt(Math.atan2(i,r)*180/Math.PI)),c}function p3(t){let a=t.h!==void 0?t.h:0,r=t.s!==void 0?t.s:0,i=t.l!==void 0?t.l:0;const c={mode:"oklab",l:wc(i)};if(t.alpha!==void 0&&(c.alpha=t.alpha),!r||i===1)return c.a=c.b=0,c;let u=Math.cos(a/180*Math.PI),d=Math.sin(a/180*Math.PI),[h,x,g]=rh(c.l,u,d),y,b,C,S;r<.8?(y=1.25*r,b=0,C=.8*h,S=1-C/x):(y=5*(r-.8),b=x,C=.2*x*x*1.25*1.25/h,S=1-C/(g-x));let j=b+y*C/(1-S*y);return c.a=j*u,c.b=j*d,c}const oC={...Z4,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:d3,rgb:t=>d3(Pc(t))},toMode:{oklab:p3,rgb:t=>Jc(p3(t))}};function h3(t){let a=t.l!==void 0?t.l:0,r=t.a!==void 0?t.a:0,i=t.b!==void 0?t.b:0,c=Math.sqrt(r*r+i*i),u=c?r/c:1,d=c?i/c:1,[h,x]=of(u,d),g=.5,y=1-g/h,b=x/(c+a*x),C=b*a,S=b*c,j=wc(C),M=S*j/C,E=Eo({l:j,a:u*M,b:d*M}),T=Math.cbrt(1/Math.max(E.r,E.g,E.b,0));a=a/T,c=c/T*w0(a)/a,a=w0(a);const N={mode:"okhsv",s:c?(g+x)*S/(x*g+x*y*S):0,v:a?a/C:0};return N.s&&(N.h=pt(Math.atan2(i,r)*180/Math.PI)),t.alpha!==void 0&&(N.alpha=t.alpha),N}function g3(t){const a={mode:"oklab"};t.alpha!==void 0&&(a.alpha=t.alpha);const r=t.h!==void 0?t.h:0,i=t.s!==void 0?t.s:0,c=t.v!==void 0?t.v:0,u=Math.cos(r/180*Math.PI),d=Math.sin(r/180*Math.PI),[h,x]=of(u,d),g=.5,y=1-g/h,b=1-i*g/(g+x-x*y*i),C=i*x*g/(g+x-x*y*i),S=wc(b),j=C*S/b,M=Eo({l:S,a:u*j,b:d*j}),E=Math.cbrt(1/Math.max(M.r,M.g,M.b,0)),T=wc(c*b),N=C*T/b;return a.l=T*E,a.a=N*u*E,a.b=N*d*E,a}const iC={...q4,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:h3,rgb:t=>h3(Pc(t))},toMode:{oklab:g3,rgb:t=>Jc(g3(t))}};function cC(t,a){if(!a||a[0]!=="oklab")return;const r={mode:"oklab"},[,i,c,u,d]=a;if(!(i.type===F.Hue||c.type===F.Hue||u.type===F.Hue))return i.type!==F.None&&(r.l=Math.min(Math.max(0,i.type===F.Number?i.value:i.value/100),1)),c.type!==F.None&&(r.a=c.type===F.Number?c.value:c.value*.4/100),u.type!==F.None&&(r.b=u.type===F.Number?u.value:u.value*.4/100),d.type!==F.None&&(r.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),r}const sC={...lf,mode:"oklab",toMode:{lrgb:Eo,rgb:Jc},fromMode:{lrgb:ah,rgb:Pc},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[cC],serialize:t=>`oklab(${t.l!==void 0?t.l:"none"} ${t.a!==void 0?t.a:"none"} ${t.b!==void 0?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`};function uC(t,a){if(!a||a[0]!=="oklch")return;const r={mode:"oklch"},[,i,c,u,d]=a;if(i.type!==F.None){if(i.type===F.Hue)return;r.l=Math.min(Math.max(0,i.type===F.Number?i.value:i.value/100),1)}if(c.type!==F.None&&(r.c=Math.max(0,c.type===F.Number?c.value:c.value*.4/100)),u.type!==F.None){if(u.type===F.Percentage)return;r.h=u.value}return d.type!==F.None&&(r.alpha=Math.min(1,Math.max(0,d.type===F.Number?d.value:d.value/100))),r}const fC={...af,mode:"oklch",toMode:{oklab:t=>Nl(t,"oklab"),rgb:t=>Jc(Nl(t,"oklab"))},fromMode:{rgb:t=>Rl(Pc(t),"oklch"),oklab:t=>Rl(t,"oklch")},parse:[uC],serialize:t=>`oklch(${t.l!==void 0?t.l:"none"} ${t.c!==void 0?t.c:"none"} ${t.h!==void 0?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},m3=t=>{let{r:a,g:r,b:i,alpha:c}=cr(t),u={mode:"xyz65",x:.486570948648216*a+.265667693169093*r+.1982172852343625*i,y:.2289745640697487*a+.6917385218365062*r+.079286914093745*i,z:0*a+.0451133818589026*r+1.043944368900976*i};return c!==void 0&&(u.alpha=c),u},x3=({x:t,y:a,z:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c=sr({r:t*2.4934969119414263-a*.9313836179191242-.402710784450717*r,g:t*-.8294889695615749+a*1.7626640603183465+.0236246858419436*r,b:t*.0358458302437845-a*.0761723892680418+.9568845240076871*r},"p3");return i!==void 0&&(c.alpha=i),c},dC={...ir,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>x3(ta(t)),xyz65:x3},toMode:{rgb:t=>na(m3(t)),xyz65:m3}},Q1=t=>{let a=Math.abs(t);return a>=1/512?Math.sign(t)*Math.pow(a,1/1.8):16*t},v3=({x:t,y:a,z:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c={mode:"prophoto",r:Q1(t*1.3457868816471585-a*.2555720873797946-.0511018649755453*r),g:Q1(t*-.5446307051249019+a*1.5082477428451466+.0205274474364214*r),b:Q1(t*0+a*0+1.2119675456389452*r)};return i!==void 0&&(c.alpha=i),c},K1=(t=0)=>{let a=Math.abs(t);return a>=16/512?Math.sign(t)*Math.pow(a,1.8):t/16},y3=t=>{let a=K1(t.r),r=K1(t.g),i=K1(t.b),c={mode:"xyz50",x:.7977666449006423*a+.1351812974005331*r+.0313477341283922*i,y:.2880748288194013*a+.7118352342418731*r+899369387256e-16*i,z:0*a+0*r+.8251046025104602*i};return t.alpha!==void 0&&(c.alpha=t.alpha),c},pC={...ir,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:v3,rgb:t=>v3(Mo(t))},toMode:{xyz50:y3,rgb:t=>jo(y3(t))}},b3=1.09929682680944,hC=.018053968510807,P1=t=>{const a=Math.abs(t);return a>hC?(Math.sign(t)||1)*(b3*Math.pow(a,.45)-(b3-1)):4.5*t},C3=({x:t,y:a,z:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);let c={mode:"rec2020",r:P1(t*1.7166511879712683-a*.3556707837763925-.2533662813736599*r),g:P1(t*-.6666843518324893+a*1.6164812366349395+.0157685458139111*r),b:P1(t*.0176398574453108-a*.0427706132578085+.9421031212354739*r)};return i!==void 0&&(c.alpha=i),c},w3=1.09929682680944,gC=.018053968510807,J1=(t=0)=>{let a=Math.abs(t);return a<gC*4.5?t/4.5:(Math.sign(t)||1)*Math.pow((a+w3-1)/w3,1/.45)},S3=t=>{let a=J1(t.r),r=J1(t.g),i=J1(t.b),c={mode:"xyz65",x:.6369580483012911*a+.1446169035862083*r+.1688809751641721*i,y:.262700212011267*a+.6779980715188708*r+.059301716469862*i,z:0*a+.0280726930490874*r+1.0609850577107909*i};return t.alpha!==void 0&&(c.alpha=t.alpha),c},mC={...ir,mode:"rec2020",fromMode:{xyz65:C3,rgb:t=>C3(ta(t))},toMode:{xyz65:S3,rgb:t=>na(S3(t))},parse:["rec2020"],serialize:"rec2020"},Wl=.0037930732552754493,oh=Math.cbrt(Wl),F1=t=>Math.cbrt(t)-oh,xC=t=>{const{r:a,g:r,b:i,alpha:c}=cr(t),u=F1(.3*a+.622*r+.078*i+Wl),d=F1(.23*a+.692*r+.078*i+Wl),h=F1(.2434226892454782*a+.2047674442449682*r+.5518098665095535*i+Wl),x={mode:"xyb",x:(u-d)/2,y:(u+d)/2,b:h-(u+d)/2};return c!==void 0&&(x.alpha=c),x},W1=t=>Math.pow(t+oh,3),vC=({x:t,y:a,b:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);const c=W1(t+a)-Wl,u=W1(a-t)-Wl,d=W1(r+a)-Wl,h=sr({r:11.031566904639861*c-9.866943908131562*u-.16462299650829934*d,g:-3.2541473810744237*c+4.418770377582723*u-.16462299650829934*d,b:-3.6588512867136815*c+2.7129230459360922*u+1.9459282407775895*d});return i!==void 0&&(h.alpha=i),h},yC={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:vC},fromMode:{rgb:xC},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:ne,y:ne,b:ne,alpha:{use:ne,fixup:lt}}},bC={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:jo,lab:nf},fromMode:{rgb:Mo,lab:tf},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:ne,y:ne,z:ne,alpha:{use:ne,fixup:lt}}},CC=t=>{let{x:a,y:r,z:i,alpha:c}=t;a===void 0&&(a=0),r===void 0&&(r=0),i===void 0&&(i=0);let u={mode:"xyz50",x:1.0479298208405488*a+.0229467933410191*r-.0501922295431356*i,y:.0296278156881593*a+.990434484573249*r-.0170738250293851*i,z:-.0092430581525912*a+.0150551448965779*r+.7518742899580008*i};return c!==void 0&&(u.alpha=c),u},wC=t=>{let{x:a,y:r,z:i,alpha:c}=t;a===void 0&&(a=0),r===void 0&&(r=0),i===void 0&&(i=0);let u={mode:"xyz65",x:.9554734527042182*a-.0230985368742614*r+.0632593086610217*i,y:-.0283697069632081*a+1.0099954580058226*r+.021041398966943*i,z:.0123140016883199*a-.0205076964334779*r+1.3303659366080753*i};return c!==void 0&&(u.alpha=c),u},SC={mode:"xyz65",toMode:{rgb:na,xyz50:CC},fromMode:{rgb:ta,xyz50:wC},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:ne,y:ne,z:ne,alpha:{use:ne,fixup:lt}}},jC=({r:t,g:a,b:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);const c={mode:"yiq",y:.29889531*t+.58662247*a+.11448223*r,i:.59597799*t-.2741761*a-.32180189*r,q:.21147017*t-.52261711*a+.31114694*r};return i!==void 0&&(c.alpha=i),c},MC=({y:t,i:a,q:r,alpha:i})=>{t===void 0&&(t=0),a===void 0&&(a=0),r===void 0&&(r=0);const c={mode:"rgb",r:t+.95608445*a+.6208885*r,g:t-.27137664*a-.6486059*r,b:t-1.10561724*a+1.70250126*r};return i!==void 0&&(c.alpha=i),c},EC={mode:"yiq",toMode:{rgb:MC},fromMode:{rgb:jC},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:ne,i:ne,q:ne,alpha:{use:ne,fixup:lt}}},TC=t=>Math.max(0,Math.min(1,t||0)),I1=t=>Math.round(TC(t)*255),_C=ea("rgb"),RC=t=>{if(t===void 0)return;let a=I1(t.r),r=I1(t.g),i=I1(t.b);return"#"+(1<<24|a<<16|r<<8|i).toString(16).slice(1)},NC=t=>RC(_C(t));Ne(pb);Ne(bb);Ne(Cb);Ne(wb);Ne(Mb);Ne(Z4);Ne(q4);Ne(Hb);Ne(Vb);Ne(Bb);Ne(Ub);Ne(lf);Ne(Yb);Ne(af);Ne(qb);Ne(tC);Ne(nC);Ne(lC);Ne(oC);Ne(iC);Ne(sC);Ne(fC);Ne(dC);Ne(pC);Ne(mC);Ne(ir);Ne(yC);Ne(bC);Ne(SC);Ne(EC);const LC=[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"},{value:"hsl",label:"HSL"},{value:"oklch",label:"OKLCH"}],sc=ea("rgb"),OC=ea("hsl"),AC=ea("oklch");function Ze(t,a,r){return Math.min(r,Math.max(a,t))}function ih(t){const a=t.match(/rgba?\(\s*([\d.]+)\s+([\d.]+)\s+([\d.]+)\s*(?:\/\s*([\d.]+%?))?\s*\)/);if(a){const c=a[4]?a[4].endsWith("%")?parseFloat(a[4])/100:parseFloat(a[4]):1;return{r:Ze(Math.round(parseFloat(a[1])),0,255),g:Ze(Math.round(parseFloat(a[2])),0,255),b:Ze(Math.round(parseFloat(a[3])),0,255),a:Ze(c,0,1)}}const r=t.match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*(?:,\s*([\d.]+))?\s*\)/);if(r)return{r:Ze(Math.round(parseFloat(r[1])),0,255),g:Ze(Math.round(parseFloat(r[2])),0,255),b:Ze(Math.round(parseFloat(r[3])),0,255),a:Ze(parseFloat(r[4]??"1"),0,1)};const i=sc(t);return i?{r:Math.round((i.r??0)*255),g:Math.round((i.g??0)*255),b:Math.round((i.b??0)*255),a:i.alpha??1}:{r:0,g:0,b:0,a:1}}function ch(t){if(t.a>=1)return`rgb(${t.r} ${t.g} ${t.b})`;const a=Math.round(t.a*100)/100;return`rgb(${t.r} ${t.g} ${t.b} / ${a})`}function sh(t){return{mode:"rgb",r:t.r/255,g:t.g/255,b:t.b/255,alpha:t.a}}function j3(t){return NC(sh(t))??"#000000"}function pn({label:t,value:a,onChange:r,min:i=0,max:c=255,suffix:u}){return f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2,flex:1,minWidth:0},children:[f.jsx("label",{style:{fontSize:9,fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",color:"var(--studio-text-dimmed)",marginBottom:4},children:t}),f.jsxs("div",{style:{position:"relative"},children:[f.jsx("input",{type:"text",inputMode:"decimal",value:a,onChange:d=>r(d.target.value),onBlur:d=>{const h=parseFloat(d.target.value);isNaN(h)||r(String(Ze(h,i,c)))},className:"studio-input",style:{width:"100%",fontSize:10,paddingRight:u?16:void 0}}),u&&f.jsx("span",{style:{position:"absolute",right:5,top:"50%",transform:"translateY(-50%)",fontSize:9,color:"var(--studio-text-dimmed)",fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",pointerEvents:"none"},children:u})]})]})}function ec({color:t,onChange:a}){return f.jsx(pn,{label:"A",value:String(Math.round(t.a*100)),onChange:r=>{const i=parseInt(r);isNaN(i)||a({...t,a:Ze(i,0,100)/100})},max:100,suffix:"%"})}function cf({color:t,onChange:a,mode:r}){const[i,c]=m.useState(j3(t).replace("#",""));m.useEffect(()=>{c(j3(t).replace("#",""))},[t.r,t.g,t.b]);const u=sh(t),d=C=>{const S=C.replace(/[^0-9a-fA-F]/g,"").slice(0,6);if(c(S),S.length===6||S.length===3){const j=sc(`#${S}`);j&&a({r:Math.round((j.r??0)*255),g:Math.round((j.g??0)*255),b:Math.round((j.b??0)*255),a:t.a})}};if(r==="hex")return f.jsxs("div",{style:{display:"flex",gap:6,alignItems:"flex-end"},children:[f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2,flex:1,minWidth:0},children:[f.jsx("label",{style:{fontSize:9,fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",color:"var(--studio-text-dimmed)",marginBottom:4},children:"Hex"}),f.jsxs("div",{style:{position:"relative"},children:[f.jsx("span",{style:{position:"absolute",left:6,top:"50%",transform:"translateY(-50%)",fontSize:10,color:"var(--studio-text-dimmed)",fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",pointerEvents:"none"},children:"#"}),f.jsx("input",{type:"text",value:i,onChange:C=>d(C.target.value),onBlur:()=>d(i),className:"studio-input",style:{width:"100%",fontSize:10,paddingLeft:14,textTransform:"uppercase"},maxLength:6})]})]}),f.jsx(ec,{color:t,onChange:a})]});if(r==="rgb")return f.jsxs("div",{style:{display:"flex",gap:6},children:[f.jsx(pn,{label:"R",value:String(t.r),max:255,onChange:C=>{const S=parseInt(C);isNaN(S)||a({...t,r:Ze(S,0,255)})}}),f.jsx(pn,{label:"G",value:String(t.g),max:255,onChange:C=>{const S=parseInt(C);isNaN(S)||a({...t,g:Ze(S,0,255)})}}),f.jsx(pn,{label:"B",value:String(t.b),max:255,onChange:C=>{const S=parseInt(C);isNaN(S)||a({...t,b:Ze(S,0,255)})}}),f.jsx(ec,{color:t,onChange:a})]});if(r==="hsl"){const C=OC(u),S=Math.round((C==null?void 0:C.h)??0),j=Math.round(((C==null?void 0:C.s)??0)*100),M=Math.round(((C==null?void 0:C.l)??0)*100),E=(T,N)=>{const O=parseFloat(N);if(isNaN(O))return;const $=T==="h"?Ze(O,0,360):(C==null?void 0:C.h)??0,H=T==="s"?Ze(O,0,100)/100:(C==null?void 0:C.s)??0,K=T==="l"?Ze(O,0,100)/100:(C==null?void 0:C.l)??0,Z=sc({mode:"hsl",h:$,s:H,l:K});Z&&a({r:Math.round((Z.r??0)*255),g:Math.round((Z.g??0)*255),b:Math.round((Z.b??0)*255),a:t.a})};return f.jsxs("div",{style:{display:"flex",gap:6},children:[f.jsx(pn,{label:"H",value:String(S),max:360,suffix:"°",onChange:T=>E("h",T)}),f.jsx(pn,{label:"S",value:String(j),max:100,suffix:"%",onChange:T=>E("s",T)}),f.jsx(pn,{label:"L",value:String(M),max:100,suffix:"%",onChange:T=>E("l",T)}),f.jsx(ec,{color:t,onChange:a})]})}const h=AC(u),x=Math.round(((h==null?void 0:h.l)??0)*100),g=(h==null?void 0:h.c)??0,y=Math.round((h==null?void 0:h.h)??0),b=(C,S)=>{const j=parseFloat(S);if(isNaN(j))return;const M=C==="l"?Ze(j,0,100)/100:(h==null?void 0:h.l)??0,E=C==="c"?Ze(j,0,.4):(h==null?void 0:h.c)??0,T=C==="h"?Ze(j,0,360):(h==null?void 0:h.h)??0,N=sc({mode:"oklch",l:M,c:E,h:T});N&&a({r:Ze(Math.round((N.r??0)*255),0,255),g:Ze(Math.round((N.g??0)*255),0,255),b:Ze(Math.round((N.b??0)*255),0,255),a:t.a})};return f.jsxs("div",{style:{display:"flex",gap:6},children:[f.jsx(pn,{label:"L",value:String(x),max:100,suffix:"%",onChange:C=>b("l",C)}),f.jsx(pn,{label:"C",value:g.toFixed(3),min:0,max:.4,step:.001,onChange:C=>b("c",C)}),f.jsx(pn,{label:"H",value:String(y),max:360,suffix:"°",onChange:C=>b("h",C)}),f.jsx(ec,{color:t,onChange:a})]})}function sf({mode:t,onChange:a}){return f.jsx("div",{style:{display:"flex",borderRadius:4,background:"var(--studio-input-bg)",padding:2},children:LC.map(r=>f.jsx("button",{type:"button",onClick:()=>a(r.value),style:{flex:1,padding:"2px 4px",fontSize:9,fontWeight:500,borderRadius:3,border:"none",cursor:"pointer",transition:"background 0.1s, color 0.1s",background:t===r.value?"var(--studio-surface-hover)":"transparent",color:t===r.value?"var(--studio-text)":"var(--studio-text-dimmed)",boxShadow:t===r.value?"0 1px 2px rgba(0,0,0,0.2)":"none"},children:r.label},r.value))})}function zC({color:t,onChange:a}){const[r,i]=m.useState("hex"),c=ih(t),u=m.useCallback(d=>{a(ch(d))},[a]);return f.jsxs("div",{className:"mt-1.5",children:[f.jsx("div",{className:"text-[9px] font-medium mb-1",style:{color:"var(--studio-text-dimmed)"},children:"Color"}),f.jsxs(bo,{children:[f.jsx(Q0,{asChild:!0,children:f.jsxs("button",{type:"button",className:"studio-color-trigger",style:{fontSize:10},children:[f.jsx("div",{className:"studio-swatch",style:{width:14,height:14,borderRadius:3,"--swatch-color":t}}),f.jsx("span",{style:{fontFamily:"'SF Mono', 'Fira Code', 'Cascadia Code', monospace",fontSize:10},children:t})]})}),f.jsx(Co,{children:f.jsxs(wo,{side:"left",sideOffset:8,collisionPadding:12,style:{width:232,padding:12,background:"var(--studio-surface)",border:"1px solid var(--studio-border)",borderRadius:8,boxShadow:"0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3)",zIndex:1e4,display:"flex",flexDirection:"column",gap:10},children:[f.jsx("style",{children:`
|
|
158
|
+
.shadow-color-picker .react-colorful {
|
|
159
|
+
width: 100% !important;
|
|
160
|
+
height: 150px !important;
|
|
161
|
+
gap: 8px !important;
|
|
162
|
+
}
|
|
163
|
+
.shadow-color-picker .react-colorful__saturation {
|
|
164
|
+
border-radius: 6px !important;
|
|
165
|
+
}
|
|
166
|
+
.shadow-color-picker .react-colorful__hue,
|
|
167
|
+
.shadow-color-picker .react-colorful__alpha {
|
|
168
|
+
height: 12px !important;
|
|
169
|
+
border-radius: 6px !important;
|
|
170
|
+
}
|
|
171
|
+
.shadow-color-picker .react-colorful__pointer {
|
|
172
|
+
width: 16px !important;
|
|
173
|
+
height: 16px !important;
|
|
174
|
+
border-width: 2px !important;
|
|
175
|
+
}
|
|
176
|
+
`}),f.jsx("div",{className:"shadow-color-picker",children:f.jsx(W0,{color:c,onChange:u})}),f.jsx(sf,{mode:r,onChange:i}),f.jsx(cf,{color:c,onChange:u,mode:r})]})})]})]})}function M3(t){const a=new Map;for(const r of t.tokens)a.set(r.name,r);return{...t,byName:a}}function E3(t){const a=new Map;for(const r of t.components)a.set(r.dataSlot,r);return{...t,byDataSlot:a}}function HC(){let t={framework:null,tokens:null,components:null,shadows:null,borders:null,gradients:null,styling:null,usages:null};const a=new Set;function r(){for(const h of a)h()}function i(){return t}function c(h){return a.add(h),()=>a.delete(h)}function u(h){t={framework:h.framework,tokens:M3(h.tokens),components:E3(h.components),shadows:h.shadows,borders:h.borders,gradients:h.gradients,styling:h.styling,usages:h.usages},r()}function d(h,x){h==="tokens"?t={...t,tokens:M3(x)}:h==="components"?t={...t,components:E3(x)}:t={...t,[h]:x},r()}return{getSnapshot:i,subscribe:c,setAll:u,patch:d}}const an=HC();async function Fc(t){return(await fetch(`/scan/${t}`)).json()}async function Wc(t,a){return(await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json()}async function S0(t,a,r,i){try{const c=await Wc("/api/tokens",{filePath:t,token:a,value:r,selector:i});if(!c.ok){console.error("Token save failed:",c.error);return}c.tokens&&an.patch("tokens",c.tokens)}catch(c){console.error("Token save error:",c);try{const u=await Fc("tokens");an.patch("tokens",u)}catch{}}}async function T3(t,a){try{const r=await Wc(t,a);if(!r.ok){console.error("Shadow save failed:",r.error);return}r.shadows&&an.patch("shadows",r.shadows)}catch(r){console.error("Shadow save error:",r);try{const i=await Fc("shadows");an.patch("shadows",i)}catch{}}}async function _3(t,a){try{const r=await Wc(t,a);if(!r.ok){console.error("Gradient save failed:",r.error);return}r.gradients&&an.patch("gradients",r.gradients)}catch(r){console.error("Gradient save error:",r);try{const i=await Fc("gradients");an.patch("gradients",i)}catch{}}}async function VC(t,a){try{const r=await Wc(t,a);if(!r.ok){console.error("Border save failed:",r.error);return}r.borders&&an.patch("borders",r.borders)}catch(r){console.error("Border save error:",r);try{const i=await Fc("borders");an.patch("borders",i)}catch{}}}const DC=ea("rgb"),R3=ea("oklch");function kC({currentValue:t,availableTokens:a,tokenValues:r,onSelect:i}){const c=t.split("/")[0],u=r[c]||"";return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"studio-popover-swatch",style:{"--swatch-color":u}}),f.jsx("div",{className:"studio-popover-list",children:a.map(d=>f.jsxs("button",{className:`studio-popover-item ${d===t?"active":""}`,onClick:()=>i(d),children:[f.jsx("div",{className:"studio-swatch",style:{"--swatch-color":r[d.split("/")[0]]||""}}),f.jsx("span",{className:"truncate",children:d})]},d))})]})}function uh({anchorRef:t,currentValue:a,availableTokens:r,tokenValues:i,onSelect:c,onClose:u}){return f.jsxs(bo,{open:!0,onOpenChange:d=>{d||u()},children:[f.jsx(v4,{virtualRef:t}),f.jsx(Co,{children:f.jsx(wo,{side:"bottom",sideOffset:4,collisionPadding:12,className:"studio-popover",children:f.jsx(kC,{currentValue:a,availableTokens:r,tokenValues:i,onSelect:c})})})]})}function j0(t){const a=t.match(/oklch\(\s*([\d.]+)(%?)\s+([\d.]+)\s+([\d.]+)\s*\)/);return a?{l:a[2]==="%"?parseFloat(a[1])/100:parseFloat(a[1]),c:parseFloat(a[3]),h:parseFloat(a[4])}:{l:.5,c:.1,h:250}}function tc(t){return`oklch(${t.l.toFixed(3)} ${t.c.toFixed(3)} ${t.h.toFixed(1)})`}function $C(t,a){try{const r=j0(t).l,i=j0(a).l,c=Math.max(r,i),u=Math.min(r,i);return(c+.05)/(u+.05)}catch{return null}}function BC({anchorRef:t,token:a,theme:r,cssFilePath:i,contrastToken:c,onPreview:u,onClose:d}){const[h,x]=m.useState(()=>j0(a.resolvedValue)),[g,y]=m.useState("oklch"),b=m.useRef(null),C=(()=>{if(b.current)return b.current;const O=DC({mode:"oklch",l:h.l,c:h.c,h:h.h});return O?{r:Ze(Math.round((O.r??0)*255),0,255),g:Ze(Math.round((O.g??0)*255),0,255),b:Ze(Math.round((O.b??0)*255),0,255),a:1}:{r:0,g:0,b:0,a:1}})(),S=m.useCallback(O=>{b.current=O;const $=R3({mode:"rgb",r:O.r/255,g:O.g/255,b:O.b/255});if($){const H={l:$.l??.5,c:$.c??.1,h:$.h??0};x(H),u(a.name,tc(H))}},[u,a.name]),j=m.useCallback(O=>{b.current=null;const $=R3({mode:"rgb",r:O.r/255,g:O.g/255,b:O.b/255});if($){const H={l:$.l??.5,c:$.c??.1,h:$.h??0};x(H),u(a.name,tc(H))}},[u,a.name]),M=m.useRef(!1),E=async()=>{M.current=!0;const O=r==="dark"?".dark":":root";await S0(i,a.name,tc(h),O),d()},T=m.useCallback(()=>{M.current||u(a.name,a.resolvedValue),d()},[d,u,a.name,a.resolvedValue]),N=c?$C(c.resolvedValue,tc(h)):null;return f.jsxs(bo,{open:!0,onOpenChange:O=>{O||T()},children:[f.jsx(v4,{virtualRef:t}),f.jsx(Co,{children:f.jsxs(wo,{side:"bottom",sideOffset:4,collisionPadding:12,className:"studio-popover",style:{width:260},children:[f.jsxs("div",{className:"flex items-center justify-between px-1 mb-1.5",children:[f.jsx("span",{className:"text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:a.name.replace(/^--/,"")}),N!==null&&f.jsxs("span",{className:"text-[9px] font-mono px-1.5 py-0.5 rounded",style:{color:N>=7?"var(--studio-success)":N>=4.5?"var(--studio-warning)":"var(--studio-danger)",background:"var(--studio-input-bg)"},children:[N.toFixed(1),":1"]})]}),f.jsx("style",{children:`
|
|
177
|
+
.token-color-picker .react-colorful {
|
|
178
|
+
width: 100% !important;
|
|
179
|
+
height: 140px !important;
|
|
180
|
+
gap: 8px !important;
|
|
181
|
+
}
|
|
182
|
+
.token-color-picker .react-colorful__saturation {
|
|
183
|
+
border-radius: 6px !important;
|
|
184
|
+
}
|
|
185
|
+
.token-color-picker .react-colorful__hue,
|
|
186
|
+
.token-color-picker .react-colorful__alpha {
|
|
187
|
+
height: 10px !important;
|
|
188
|
+
border-radius: 5px !important;
|
|
189
|
+
}
|
|
190
|
+
.token-color-picker .react-colorful__pointer {
|
|
191
|
+
width: 14px !important;
|
|
192
|
+
height: 14px !important;
|
|
193
|
+
border-width: 2px !important;
|
|
194
|
+
}
|
|
195
|
+
`}),f.jsx("div",{className:"token-color-picker",style:{marginBottom:8},children:f.jsx(W0,{color:C,onChange:S})}),f.jsx("div",{style:{marginBottom:8},children:f.jsx(sf,{mode:g,onChange:y})}),f.jsx("div",{style:{marginBottom:8},children:f.jsx(cf,{color:C,onChange:j,mode:g})}),f.jsx("button",{onClick:E,className:"w-full py-1.5 rounded text-[11px] font-medium cursor-pointer",style:{background:"var(--studio-accent)",color:"white",border:"none"},children:"Save"})]})})]})}function UC({shadow:t,onPreview:a,onSave:r}){const[i,c]=m.useState(()=>t.layers.length>0?t.layers:[{offsetX:"0",offsetY:"4px",blur:"6px",spread:"-1px",color:"rgb(0 0 0 / 0.1)",inset:!1}]),u=m.useCallback(g=>g.length===0?"none":g.map(y=>{const b=[];return y.inset&&b.push("inset"),b.push(y.offsetX,y.offsetY,y.blur,y.spread,y.color),b.join(" ")}).join(", "),[]),d=m.useCallback((g,y)=>{const b=i.map((C,S)=>S===g?{...C,...y}:C);c(b),a(u(b))},[i,a,u]),h=()=>{const g=[...i,{offsetX:"0",offsetY:"4px",blur:"8px",spread:"0",color:"rgb(0 0 0 / 0.1)",inset:!1}];c(g),a(u(g))},x=g=>{const y=i.filter((b,C)=>C!==g);c(y),a(u(y))};return f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("div",{className:"flex items-center justify-center p-6 rounded-lg",style:{background:"rgb(240, 244, 250)"},children:f.jsx("div",{className:"w-20 h-20 rounded-lg",style:{background:"white",boxShadow:u(i)}})}),i.map((g,y)=>f.jsx(ZC,{layer:g,index:y,total:i.length,onChange:b=>d(y,b),onRemove:()=>x(y)},y)),f.jsxs("button",{onClick:h,className:"flex items-center justify-center gap-1 py-1.5 rounded text-[11px] cursor-pointer",style:{background:"var(--studio-input-bg)",border:"1px solid var(--studio-border-subtle)",color:"var(--studio-text-muted)"},children:[f.jsx(_c,{style:{width:12,height:12}}),"Add Layer"]}),f.jsx("button",{onClick:()=>r(u(i)),className:"w-full py-1.5 rounded text-[11px] font-medium cursor-pointer",style:{background:"var(--studio-accent)",color:"white",border:"none"},children:"Save to File"})]})}function ZC({layer:t,index:a,total:r,onChange:i,onRemove:c}){const u=d=>parseFloat(d)||0;return f.jsxs("div",{className:"rounded-lg p-2.5",style:{background:"var(--studio-input-bg)",border:"1px solid var(--studio-border-subtle)"},children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsxs("span",{className:"text-[9px] font-semibold tracking-wide",style:{color:"var(--studio-text-dimmed)"},children:["Layer ",a+1]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("button",{onClick:()=>i({inset:!t.inset}),className:`studio-bp-btn ${t.inset?"active":""}`,style:{fontSize:9,padding:"1px 5px"},children:"inset"}),r>1&&f.jsx("button",{onClick:c,className:"studio-icon-btn",style:{width:20,height:20},children:f.jsx(mp,{style:{width:10,height:10}})})]})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1.5",children:[f.jsx(nc,{label:"X Offset",value:u(t.offsetX),min:-50,max:50,unit:"px",onChange:d=>i({offsetX:`${d}px`})}),f.jsx(nc,{label:"Y Offset",value:u(t.offsetY),min:-50,max:50,unit:"px",onChange:d=>i({offsetY:`${d}px`})}),f.jsx(nc,{label:"Blur",value:u(t.blur),min:0,max:100,unit:"px",onChange:d=>i({blur:`${d}px`})}),f.jsx(nc,{label:"Spread",value:u(t.spread),min:-50,max:50,unit:"px",onChange:d=>i({spread:`${d}px`})})]}),f.jsx(zC,{color:t.color,onChange:d=>i({color:d})})]})}function nc({label:t,value:a,min:r,max:i,unit:c,onChange:u}){return f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-[9px] font-medium",style:{color:"var(--studio-text-dimmed)"},children:t}),f.jsxs("span",{className:"text-[9px] font-mono",style:{color:"var(--studio-text-muted)"},children:[a,c]})]}),f.jsx("input",{type:"range",min:r,max:i,value:a,onChange:d=>u(parseInt(d.target.value,10)),className:"w-full"})]})}function fh({value:t,size:a=32,shape:r="rounded",background:i="white",showBorder:c=!1,borderColor:u="#e0e0e0"}){const d=r==="circle"?"50%":r==="rounded"?"4px":"0";return f.jsx("div",{className:"shrink-0",style:{width:a,height:a,borderRadius:d,background:i,boxShadow:t,border:c?`1px solid ${u}`:"none"}})}function YC({shadows:t,cssFilePath:a,stylingType:r,onPreviewShadow:i}){const[c,u]=m.useState(null),[d,h]=m.useState({});return f.jsxs("div",{children:[t.map(x=>f.jsx(XC,{shadow:x,isExpanded:c===x.name,onToggle:()=>u(c===x.name?null:x.name),mode:d[x.name]||"custom",onModeChange:g=>h({...d,[x.name]:g}),cssFilePath:a,stylingType:r,onPreviewShadow:i},x.name)),t.length===0&&f.jsx("div",{className:"px-4 py-6 text-center text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"No shadows found. Add shadow CSS variables to your global CSS file."})]})}function XC({shadow:t,isExpanded:a,onToggle:r,mode:i,onModeChange:c,cssFilePath:u,stylingType:d,onPreviewShadow:h}){const[x,g]=m.useState(!1),[y,b]=m.useState(t.value),C=async S=>{b(S),g(!0);try{if(t.source==="design-token"&&t.tokenFilePath&&t.tokenPath)await T3("/api/shadows/design-token",{filePath:t.tokenFilePath,tokenPath:t.tokenPath,value:S});else{const j=t.sassVariable||t.cssVariable||`--${t.name}`;let M,E=u;d==="tailwind-v4"?M="@theme":d==="bootstrap"&&t.sassVariable?(M="scss",E=t.filePath||u):M=":root";const T=t.isOverridden?"/api/shadows":"/api/shadows/create";await T3(T,{filePath:E,variableName:j,value:S,selector:M})}}catch(j){console.error("Shadow save error:",j)}setTimeout(()=>g(!1),1e3)};return f.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[f.jsxs("button",{onClick:r,className:"studio-section-hdr",style:{gap:8},children:[a?f.jsx(Ft,{}):f.jsx(vn,{}),f.jsx(fh,{value:y,size:24}),f.jsx("span",{className:"flex-1 text-[11px] font-mono truncate text-left",style:{color:"var(--studio-text)",fontWeight:500,textTransform:"none",letterSpacing:0},children:t.name}),t.source==="framework-preset"&&!t.isOverridden&&f.jsx("span",{className:"text-[9px] px-1.5 py-0.5 rounded",style:{background:"var(--studio-input-bg)",color:"var(--studio-text-dimmed)"},children:"preset"}),t.source==="design-token"&&f.jsx("span",{className:"text-[9px] px-1.5 py-0.5 rounded",style:{background:"var(--studio-input-bg)",color:"var(--studio-text-dimmed)"},children:"token"}),x&&f.jsx("span",{className:"flex items-center gap-0.5 text-[10px]",style:{color:"var(--studio-success)"},children:f.jsx(uo,{style:{width:10,height:10}})})]}),a&&f.jsxs("div",{className:"px-4 pb-3",children:[f.jsxs("div",{className:"studio-segmented mb-3",style:{width:"100%"},children:[f.jsxs("button",{onClick:()=>c("custom"),className:i==="custom"?"active":"",style:{flex:1},children:[f.jsx(fp,{style:{width:12,height:12}}),"Custom"]}),f.jsxs("button",{onClick:()=>c("preset"),className:i==="preset"?"active":"",style:{flex:1},children:[f.jsx(gg,{style:{width:12,height:12}}),"Use Preset"]})]}),i==="custom"?f.jsx(UC,{shadow:{...t,value:y},onPreview:S=>{const j=t.cssVariable||`--${t.name}`;h(j,S,t.name)},onSave:C}):f.jsx(qC,{currentValue:y,onSelect:S=>{const j=t.cssVariable||`--${t.name}`;h(j,S,t.name),C(S)}})]})]})}function qC({currentValue:t,onSelect:a}){const r=[{name:"Crisp 2L",value:"0px 0.3px 0.7px 0px rgb(0 0 0 / 0.1), 0px 0.7px 2.1px 0px rgb(0 0 0 / 0.07)",desc:"Subtle"},{name:"Crisp 2L +",value:"0px 0.5px 1px 0px rgb(0 0 0 / 0.1), 0px 1px 3px 0px rgb(0 0 0 / 0.07), 0px 2px 6px 0px rgb(0 0 0 / 0.07)",desc:"Elevated"},{name:"Crisp 3L",value:"0px 1px 1px 0px rgb(0 0 0 / 0.08), 0px 2px 2px 0px rgb(0 0 0 / 0.08), 0px 4px 4px 0px rgb(0 0 0 / 0.08)",desc:"Card"},{name:"Crisp 3L +",value:"0px 1px 1px 0px rgb(0 0 0 / 0.08), 0px 2px 2px 0px rgb(0 0 0 / 0.08), 0px 4px 4px 0px rgb(0 0 0 / 0.08), 0px 8px 8px 0px rgb(0 0 0 / 0.08)",desc:"Elevated"},{name:"Crisp Tight",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.09), 0px 1px 1.5px 0px rgb(0 0 0 / 0.07), 0px 3px 3px 0px rgb(0 0 0 / 0.06)",desc:"Card"},{name:"Crisp Tight +",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.09), 0px 1px 1.5px 0px rgb(0 0 0 / 0.07), 0px 3px 3px 0px rgb(0 0 0 / 0.06), 0px 6px 6px 0px rgb(0 0 0 / 0.06)",desc:"Elevated"},{name:"Crisp 4L",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.07), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.06)",desc:"Card"},{name:"Crisp 4L +",value:"0px 0.5px 0.5px 0px rgb(0 0 0 / 0.07), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.06), 0px 8px 8px 0px rgb(0 0 0 / 0.06)",desc:"Elevated"},{name:"Edge 4L",value:"0px 0px 0.5px -0.5px rgb(0 0 0 / 0.12), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.05)",desc:"Card"},{name:"Edge 4L +",value:"0px 0px 0.5px -0.5px rgb(0 0 0 / 0.12), 0px 1px 1px 0px rgb(0 0 0 / 0.06), 0px 2px 2px 0px rgb(0 0 0 / 0.06), 0px 4px 4px 0px rgb(0 0 0 / 0.05), 0px 8px 8px 0px rgb(0 0 0 / 0.05)",desc:"Elevated"},{name:"Soft",value:"0px 1px 2px 0px rgb(0 0 0 / 0.04), 0px 2px 4px 0px rgb(0 0 0 / 0.04), 0px 4px 8px 0px rgb(0 0 0 / 0.04)",desc:"Diffuse"},{name:"Soft +",value:"0px 1px 2px 0px rgb(0 0 0 / 0.04), 0px 2px 4px 0px rgb(0 0 0 / 0.04), 0px 4px 8px 0px rgb(0 0 0 / 0.04), 0px 8px 16px 0px rgb(0 0 0 / 0.04)",desc:"Elevated"},{name:"Chunky",value:"3px 3px 0px 0px rgb(0 0 0 / 0.25)",desc:"Hard"},{name:"None",value:"none",desc:"Remove"}];return f.jsx("div",{className:"grid gap-2",style:{gridTemplateColumns:"repeat(2, 1fr)"},children:r.map(i=>{const c=t===i.value;return f.jsxs("button",{onClick:()=>a(i.value),className:"flex flex-col items-center gap-1.5 p-3 rounded-lg cursor-pointer",style:{background:c?"var(--studio-accent-muted)":"transparent",border:"1px solid",borderColor:c?"var(--studio-accent)":"var(--studio-border-subtle)"},children:[f.jsx("div",{className:"flex items-center justify-center rounded-lg w-full",style:{background:"rgb(240, 244, 250)",height:72},children:f.jsx(fh,{value:i.value,size:48,background:"white"})}),f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"text-[10px] font-medium",style:{color:"var(--studio-text-muted)"},children:i.name}),i.desc&&f.jsx("div",{className:"text-[9px]",style:{color:"var(--studio-text-dimmed)"},children:i.desc})]})]},i.name)})})}function qn(t){return m.useSyncExternalStore(an.subscribe,m.useCallback(()=>t(an.getSnapshot()),[t]))}const GC=t=>t.tokens,QC=t=>t.components,KC=t=>t.shadows,PC=t=>t.borders,JC=t=>t.gradients,FC=t=>t.styling,WC=t=>t.usages,IC=t=>t.framework,ew=t=>t.framework!==null&&t.tokens!==null&&t.components!==null&&t.shadows!==null&&t.borders!==null&&t.gradients!==null&&t.styling!==null;function To(){return qn(GC)}function uf(){return qn(QC)}function ff(){return qn(KC)}function tw(){return qn(PC)}function dh(){return qn(JC)}function ph(){return qn(FC)}function nw(){return qn(WC)}function lw(){return qn(IC)}function aw(){return qn(ew)}const rw=[{regex:/^bg-([\w-]+(?:\/\d+)?)$/,category:"color",property:"backgroundColor",label:"Background",extractValue:t=>t[1]},{regex:/^text-([\w-]+(?:\/\d+)?)$/,category:"color",property:"textColor",label:"Text",extractValue:t=>t[1]},{regex:/^border-([\w-]+(?:\/\d+)?)$/,category:"color",property:"borderColor",label:"Border",extractValue:t=>t[1]},{regex:/^ring-([\w-]+(?:\/\d+)?)$/,category:"color",property:"ringColor",label:"Ring",extractValue:t=>t[1]},{regex:/^outline-([\w-]+(?:\/\d+)?)$/,category:"color",property:"outlineColor",label:"Outline",extractValue:t=>t[1]},{regex:/^p-([\d.]+|px)$/,category:"spacing",property:"padding",label:"Padding",extractValue:t=>t[1]},{regex:/^px-([\d.]+|px)$/,category:"spacing",property:"paddingX",label:"Padding X",extractValue:t=>t[1]},{regex:/^py-([\d.]+|px)$/,category:"spacing",property:"paddingY",label:"Padding Y",extractValue:t=>t[1]},{regex:/^pt-([\d.]+|px)$/,category:"spacing",property:"paddingTop",label:"Padding Top",extractValue:t=>t[1]},{regex:/^pr-([\d.]+|px)$/,category:"spacing",property:"paddingRight",label:"Padding Right",extractValue:t=>t[1]},{regex:/^pb-([\d.]+|px)$/,category:"spacing",property:"paddingBottom",label:"Padding Bottom",extractValue:t=>t[1]},{regex:/^pl-([\d.]+|px)$/,category:"spacing",property:"paddingLeft",label:"Padding Left",extractValue:t=>t[1]},{regex:/^m-([\d.]+|px|auto)$/,category:"spacing",property:"margin",label:"Margin",extractValue:t=>t[1]},{regex:/^mx-([\d.]+|px|auto)$/,category:"spacing",property:"marginX",label:"Margin X",extractValue:t=>t[1]},{regex:/^my-([\d.]+|px|auto)$/,category:"spacing",property:"marginY",label:"Margin Y",extractValue:t=>t[1]},{regex:/^mt-([\d.]+|px|auto)$/,category:"spacing",property:"marginTop",label:"Margin Top",extractValue:t=>t[1]},{regex:/^mr-([\d.]+|px|auto)$/,category:"spacing",property:"marginRight",label:"Margin Right",extractValue:t=>t[1]},{regex:/^mb-([\d.]+|px|auto)$/,category:"spacing",property:"marginBottom",label:"Margin Bottom",extractValue:t=>t[1]},{regex:/^ml-([\d.]+|px|auto)$/,category:"spacing",property:"marginLeft",label:"Margin Left",extractValue:t=>t[1]},{regex:/^gap-([\d.]+|px)$/,category:"spacing",property:"gap",label:"Gap",extractValue:t=>t[1]},{regex:/^gap-x-([\d.]+|px)$/,category:"spacing",property:"gapX",label:"Gap X",extractValue:t=>t[1]},{regex:/^gap-y-([\d.]+|px)$/,category:"spacing",property:"gapY",label:"Gap Y",extractValue:t=>t[1]},{regex:/^space-x-([\d.]+)$/,category:"spacing",property:"spaceX",label:"Space X",extractValue:t=>t[1]},{regex:/^space-y-([\d.]+)$/,category:"spacing",property:"spaceY",label:"Space Y",extractValue:t=>t[1]},{regex:/^rounded$/,category:"shape",property:"borderRadius",label:"Radius",extractValue:()=>"DEFAULT"},{regex:/^rounded-(none|sm|md|lg|xl|2xl|3xl|full)$/,category:"shape",property:"borderRadius",label:"Radius",extractValue:t=>t[1]},{regex:/^border$/,category:"shape",property:"borderWidth",label:"Border Width",extractValue:()=>"1"},{regex:/^border-(0|2|4|8)$/,category:"shape",property:"borderWidth",label:"Border Width",extractValue:t=>t[1]},{regex:/^text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)$/,category:"typography",property:"fontSize",label:"Font Size",extractValue:t=>t[1]},{regex:/^font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black)$/,category:"typography",property:"fontWeight",label:"Font Weight",extractValue:t=>t[1]},{regex:/^leading-(none|tight|snug|normal|relaxed|loose)$/,category:"typography",property:"lineHeight",label:"Line Height",extractValue:t=>t[1]},{regex:/^tracking-(tighter|tight|normal|wide|wider|widest)$/,category:"typography",property:"letterSpacing",label:"Letter Spacing",extractValue:t=>t[1]},{regex:/^font-(sans|serif|mono)$/,category:"typography",property:"fontFamily",label:"Font Family",extractValue:t=>t[1]},{regex:/^text-(left|center|right|justify)$/,category:"typography",property:"textAlign",label:"Text Align",extractValue:t=>t[1]},{regex:/^(uppercase|lowercase|capitalize|normal-case)$/,category:"typography",property:"textTransform",label:"Text Transform",extractValue:t=>t[1]},{regex:/^(underline|overline|line-through|no-underline)$/,category:"typography",property:"textDecoration",label:"Text Decoration",extractValue:t=>t[1]},{regex:/^(truncate|whitespace-nowrap|whitespace-normal)$/,category:"typography",property:"overflow",label:"Overflow",extractValue:t=>t[1]},{regex:/^(flex|inline-flex|grid|inline-grid|block|inline-block|inline|hidden)$/,category:"layout",property:"display",label:"Display",extractValue:t=>t[1]},{regex:/^(flex-row|flex-col|flex-row-reverse|flex-col-reverse)$/,category:"layout",property:"flexDirection",label:"Direction",extractValue:t=>t[1]},{regex:/^(flex-wrap|flex-nowrap|flex-wrap-reverse)$/,category:"layout",property:"flexWrap",label:"Wrap",extractValue:t=>t[1]},{regex:/^items-(start|end|center|baseline|stretch)$/,category:"layout",property:"alignItems",label:"Align Items",extractValue:t=>t[1]},{regex:/^justify-(start|end|center|between|around|evenly)$/,category:"layout",property:"justifyContent",label:"Justify",extractValue:t=>t[1]},{regex:/^(self-auto|self-start|self-end|self-center|self-stretch)$/,category:"layout",property:"alignSelf",label:"Align Self",extractValue:t=>t[1]},{regex:/^grid-cols-(\d+|none)$/,category:"layout",property:"gridCols",label:"Grid Columns",extractValue:t=>t[1]},{regex:/^grid-rows-(\d+|none)$/,category:"layout",property:"gridRows",label:"Grid Rows",extractValue:t=>t[1]},{regex:/^col-span-(\d+|full)$/,category:"layout",property:"colSpan",label:"Column Span",extractValue:t=>t[1]},{regex:/^row-span-(\d+)$/,category:"layout",property:"rowSpan",label:"Row Span",extractValue:t=>t[1]},{regex:/^(relative|absolute|fixed|sticky)$/,category:"layout",property:"position",label:"Position",extractValue:t=>t[1]},{regex:/^(overflow-hidden|overflow-auto|overflow-scroll|overflow-visible)$/,category:"layout",property:"overflow",label:"Overflow",extractValue:t=>t[1]},{regex:/^w-([\d.]+|full|screen|auto|min|max|fit|px)$/,category:"size",property:"width",label:"Width",extractValue:t=>t[1]},{regex:/^h-([\d.]+|full|screen|auto|min|max|fit|px)$/,category:"size",property:"height",label:"Height",extractValue:t=>t[1]},{regex:/^min-w-([\d.]+|full|min|max|fit|0)$/,category:"size",property:"minWidth",label:"Min Width",extractValue:t=>t[1]},{regex:/^min-h-([\d.]+|full|screen|min|max|fit|0)$/,category:"size",property:"minHeight",label:"Min Height",extractValue:t=>t[1]},{regex:/^max-w-([\w.]+)$/,category:"size",property:"maxWidth",label:"Max Width",extractValue:t=>t[1]},{regex:/^max-h-([\w.]+)$/,category:"size",property:"maxHeight",label:"Max Height",extractValue:t=>t[1]},{regex:/^size-([\d.]+|full|auto|px)$/,category:"size",property:"size",label:"Size",extractValue:t=>t[1]},{regex:/^(flex-1|flex-auto|flex-initial|flex-none)$/,category:"size",property:"flex",label:"Flex",extractValue:t=>t[1]},{regex:/^(grow|grow-0|shrink|shrink-0)$/,category:"size",property:"flexGrowShrink",label:"Grow/Shrink",extractValue:t=>t[1]},{regex:/^text-\[(-?[\w.%]+)\]$/,category:"typography",property:"fontSize",label:"Font Size",extractValue:t=>`[${t[1]}]`},{regex:/^leading-\[(-?[\w.%]+)\]$/,category:"typography",property:"lineHeight",label:"Line Height",extractValue:t=>`[${t[1]}]`},{regex:/^tracking-\[(-?[\w.%]+)\]$/,category:"typography",property:"letterSpacing",label:"Letter Spacing",extractValue:t=>`[${t[1]}]`},{regex:/^font-\[(-?[\w.%]+)\]$/,category:"typography",property:"fontWeight",label:"Font Weight",extractValue:t=>`[${t[1]}]`},{regex:/^p-\[(-?[\w.%]+)\]$/,category:"spacing",property:"padding",label:"Padding",extractValue:t=>`[${t[1]}]`},{regex:/^px-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingX",label:"Padding X",extractValue:t=>`[${t[1]}]`},{regex:/^py-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingY",label:"Padding Y",extractValue:t=>`[${t[1]}]`},{regex:/^pt-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingTop",label:"Padding Top",extractValue:t=>`[${t[1]}]`},{regex:/^pr-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingRight",label:"Padding Right",extractValue:t=>`[${t[1]}]`},{regex:/^pb-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingBottom",label:"Padding Bottom",extractValue:t=>`[${t[1]}]`},{regex:/^pl-\[(-?[\w.%]+)\]$/,category:"spacing",property:"paddingLeft",label:"Padding Left",extractValue:t=>`[${t[1]}]`},{regex:/^m-\[(-?[\w.%]+)\]$/,category:"spacing",property:"margin",label:"Margin",extractValue:t=>`[${t[1]}]`},{regex:/^mx-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginX",label:"Margin X",extractValue:t=>`[${t[1]}]`},{regex:/^my-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginY",label:"Margin Y",extractValue:t=>`[${t[1]}]`},{regex:/^mt-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginTop",label:"Margin Top",extractValue:t=>`[${t[1]}]`},{regex:/^mr-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginRight",label:"Margin Right",extractValue:t=>`[${t[1]}]`},{regex:/^mb-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginBottom",label:"Margin Bottom",extractValue:t=>`[${t[1]}]`},{regex:/^ml-\[(-?[\w.%]+)\]$/,category:"spacing",property:"marginLeft",label:"Margin Left",extractValue:t=>`[${t[1]}]`},{regex:/^gap-\[(-?[\w.%]+)\]$/,category:"spacing",property:"gap",label:"Gap",extractValue:t=>`[${t[1]}]`},{regex:/^gap-x-\[(-?[\w.%]+)\]$/,category:"spacing",property:"gapX",label:"Gap X",extractValue:t=>`[${t[1]}]`},{regex:/^gap-y-\[(-?[\w.%]+)\]$/,category:"spacing",property:"gapY",label:"Gap Y",extractValue:t=>`[${t[1]}]`},{regex:/^w-\[(-?[\w.%]+)\]$/,category:"size",property:"width",label:"Width",extractValue:t=>`[${t[1]}]`},{regex:/^h-\[(-?[\w.%]+)\]$/,category:"size",property:"height",label:"Height",extractValue:t=>`[${t[1]}]`},{regex:/^min-w-\[(-?[\w.%]+)\]$/,category:"size",property:"minWidth",label:"Min Width",extractValue:t=>`[${t[1]}]`},{regex:/^min-h-\[(-?[\w.%]+)\]$/,category:"size",property:"minHeight",label:"Min Height",extractValue:t=>`[${t[1]}]`},{regex:/^max-w-\[(-?[\w.%]+)\]$/,category:"size",property:"maxWidth",label:"Max Width",extractValue:t=>`[${t[1]}]`},{regex:/^max-h-\[(-?[\w.%]+)\]$/,category:"size",property:"maxHeight",label:"Max Height",extractValue:t=>`[${t[1]}]`},{regex:/^rounded-\[(-?[\w.%]+)\]$/,category:"shape",property:"borderRadius",label:"Radius",extractValue:t=>`[${t[1]}]`}];function ow(t){const a=t.split(":");if(a.length===1)return{prefix:void 0,core:t};const r=a.pop();return{prefix:a.join(":")+":",core:r}}function hh(t){const a={color:[],spacing:[],shape:[],typography:[],layout:[],size:[],other:[]},r=t.split(/\s+/).filter(Boolean);for(const i of r){const{prefix:c,core:u}=ow(i);let d=!1;for(const h of rw){const x=u.match(h.regex);if(x){if(h.property==="textColor"&&(["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"].includes(x[1])||["left","center","right","justify"].includes(x[1]))||h.property==="borderColor"&&["0","2","4","8"].includes(x[1]))continue;a[h.category].push({category:h.category,property:h.property,label:h.label,value:h.extractValue(x),fullClass:i,prefix:c}),d=!0;break}}d||a.other.push({category:"other",property:"unknown",label:i,value:i,fullClass:i,prefix:c})}return a}function jl(t,a,r){const c={backgroundColor:d=>`bg-${d}`,textColor:d=>`text-${d}`,borderColor:d=>`border-${d}`,ringColor:d=>`ring-${d}`,padding:d=>`p-${d}`,paddingX:d=>`px-${d}`,paddingY:d=>`py-${d}`,paddingTop:d=>`pt-${d}`,paddingRight:d=>`pr-${d}`,paddingBottom:d=>`pb-${d}`,paddingLeft:d=>`pl-${d}`,margin:d=>`m-${d}`,marginX:d=>`mx-${d}`,marginY:d=>`my-${d}`,marginTop:d=>`mt-${d}`,marginRight:d=>`mr-${d}`,marginBottom:d=>`mb-${d}`,marginLeft:d=>`ml-${d}`,gap:d=>`gap-${d}`,gapX:d=>`gap-x-${d}`,gapY:d=>`gap-y-${d}`,borderRadius:d=>d==="DEFAULT"?"rounded":`rounded-${d}`,borderWidth:d=>d==="1"?"border":`border-${d}`,fontSize:d=>`text-${d}`,fontWeight:d=>`font-${d}`,lineHeight:d=>`leading-${d}`,letterSpacing:d=>`tracking-${d}`,fontFamily:d=>`font-${d}`,textAlign:d=>`text-${d}`,display:d=>d,flexDirection:d=>d,alignItems:d=>`items-${d}`,justifyContent:d=>`justify-${d}`,gridCols:d=>`grid-cols-${d}`,gridRows:d=>`grid-rows-${d}`,width:d=>`w-${d}`,height:d=>`h-${d}`,size:d=>`size-${d}`}[t];if(!c)return a;const u=c(a);return r?`${r}${u}`:u}function Ic(t){return t.startsWith("[")&&t.endsWith("]")}function gh(t){return Ic(t)?t.slice(1,-1):t}function mh(t){return Ic(t)?t:`[${t}]`}const Ue=["0","px","0.5","1","1.5","2","2.5","3","3.5","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96"],xh=["none","sm","DEFAULT","md","lg","xl","2xl","3xl","full"],df=["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl","9xl"],pf=["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],vh=["none","tight","snug","normal","relaxed","loose"],yh=["tighter","tight","normal","wide","wider","widest"],iw=["0","1","2","4","8"],cw=["0","5","10","15","20","25","30","35","40","45","50","55","60","65","70","75","80","85","90","95","100"];function N3({tokenRefs:t,theme:a,onPreviewToken:r,onPreviewShadow:i}){var E,T,N;const c=To(),u=ff(),d=tw(),h=dh(),x=ph();if(!c)return f.jsx("div",{className:"px-4 py-3 text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"Loading tokens..."});const g=c.tokens,y=c.cssFilePath,b=g.filter(O=>t.includes(O.name)),C=Object.entries(c.groups).filter(([O,$])=>$.some(H=>H.category==="color")).slice(0,8),S=g.filter(O=>O.category==="spacing"),j=g.filter(O=>O.category==="color"&&["--border","--input","--ring"].includes(O.name)),M=(x==null?void 0:x.type)||"";return f.jsxs("div",{className:"",children:[b.length>0&&f.jsx(Ga,{title:"Used by element",count:b.length,defaultCollapsed:!0,children:b.map(O=>f.jsx(M0,{token:O,theme:a,onPreview:r,cssFilePath:y,allTokens:g},O.name))}),f.jsx(Ga,{title:"Colors",count:C.reduce((O,[$,H])=>O+H.filter(K=>K.category==="color").length,0),defaultCollapsed:!0,children:C.length>0?f.jsx("div",{className:"studio-tree",children:C.map(([O,$])=>f.jsx(sw,{title:O,count:$.filter(H=>H.category==="color").length,children:$.filter(H=>H.category==="color").map(H=>f.jsx(M0,{token:H,theme:a,onPreview:r,cssFilePath:y,allTokens:g},H.name))},O))}):f.jsx(uc,{message:"No color tokens found in your CSS."})}),f.jsx(Ga,{title:"Spacing",count:S.length,defaultCollapsed:!0,children:S.length>0?f.jsx(dw,{spacingTokens:S,cssFilePath:y,theme:a}):f.jsx(uc,{message:"No spacing tokens found in your CSS."})}),f.jsx(Ga,{title:"Shadows",count:((E=u==null?void 0:u.shadows)==null?void 0:E.length)||0,defaultCollapsed:!0,children:u&&u.shadows.length>0?f.jsx(YC,{shadows:u.shadows,cssFilePath:u.cssFilePath,stylingType:u.stylingType,onPreviewShadow:i}):f.jsx(uc,{message:"No shadows found. Add shadow CSS variables to your global CSS file."})}),f.jsx(Ga,{title:"Borders",count:(((T=d==null?void 0:d.borders)==null?void 0:T.length)||0)+j.length,defaultCollapsed:!0,children:f.jsx(pw,{borders:(d==null?void 0:d.borders)||[],borderColorTokens:j,theme:a,cssFilePath:(d==null?void 0:d.cssFilePath)||y,stylingType:(d==null?void 0:d.stylingType)||M,allTokens:g,onPreviewToken:r})}),f.jsx(Ga,{title:"Gradients",count:((N=h==null?void 0:h.gradients)==null?void 0:N.length)||0,defaultCollapsed:!0,children:f.jsx(xw,{gradients:(h==null?void 0:h.gradients)||[],cssFilePath:(h==null?void 0:h.cssFilePath)||y,stylingType:(h==null?void 0:h.stylingType)||M})})]})}function Ga({title:t,count:a,children:r,defaultCollapsed:i=!0}){const[c,u]=m.useState(i);return f.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[f.jsxs("button",{onClick:()=>u(!c),className:"studio-section-hdr",children:[c?f.jsx(vn,{}):f.jsx(Ft,{}),t,a!==void 0&&f.jsx("span",{className:"count",children:a})]}),!c&&f.jsx("div",{className:"pb-2",children:r})]})}function sw({title:t,count:a,children:r}){const[i,c]=m.useState(!0);return f.jsxs("div",{className:"studio-tree-node",children:[f.jsxs("button",{onClick:()=>c(!i),className:"studio-section-hdr",style:{fontSize:10},children:[i?f.jsx(vn,{}):f.jsx(Ft,{}),f.jsx("span",{style:{color:"var(--studio-text)",fontWeight:600},children:t}),a!==void 0&&f.jsx("span",{className:"count",children:a})]}),!i&&f.jsx("div",{className:"studio-tree-content",children:r})]})}function e0({label:t}){return f.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wider mb-2",style:{color:"var(--studio-text-dimmed)"},children:t})}function uc({message:t}){return f.jsx("div",{className:"px-4 py-4 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:t})}function M0({token:t,theme:a,onPreview:r,cssFilePath:i,allTokens:c}){const[u,d]=m.useState(!1),h=m.useRef(null),x=a==="dark"&&t.darkValue?t.darkValue:t.lightValue,g=x,y=t.name.endsWith("-foreground")?t.name.replace("-foreground",""):`${t.name}-foreground`,b=c.find(S=>S.name===y),C=b?a==="dark"&&b.darkValue?b.darkValue:b.lightValue:null;return f.jsxs(f.Fragment,{children:[f.jsxs("button",{ref:h,onClick:()=>d(!u),className:"studio-prop-row w-full text-left",style:{background:u?"var(--studio-surface-hover)":"transparent",cursor:"pointer",border:"none"},children:[f.jsx("div",{className:"studio-swatch",style:{"--swatch-color":x,width:20,height:20}}),f.jsx("span",{className:"flex-1 text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:t.name.replace(/^--/,"")})]}),u&&f.jsx(BC,{anchorRef:h,token:{name:t.name,value:x,resolvedValue:g},theme:a,cssFilePath:i,contrastToken:C?{name:y,resolvedValue:C}:null,onPreview:r,onClose:()=>d(!1)})]})}function L3(t){const a=t.match(/^(-?[\d.]+)\s*(px|rem|em|%|vh|vw|pt)$/);if(a)return{num:parseFloat(a[1]),unit:a[2]};const r=parseFloat(t);return!isNaN(r)&&String(r)===t.trim()?{num:r,unit:""}:null}function uw(t){return t==="rem"||t==="em"?.0625:1}function Sc({token:t,icon:a,onSave:r,step:i,min:c,maxDecimals:u}){const d=t.value??t.lightValue??"",[h,x]=m.useState(d),[g,y]=m.useState(!1),[b,C]=m.useState(!1),S=m.useRef(null),j=m.useRef(h);j.current=h,m.useEffect(()=>{!g&&!b&&x(d)},[d,g,b]);const M=L3(h)!==null,E=N=>{const O=L3(h);if(!O)return;N.preventDefault(),S.current={startX:N.clientX,startVal:O.num,unit:O.unit},C(!0);const $=i??uw(O.unit),H=u??4,K=ae=>{if(!S.current)return;const ce=ae.shiftKey?10:1,X=Math.round((ae.clientX-S.current.startX)/2);let P=S.current.startVal+X*$*ce;c!==void 0&&P<c&&(P=c);const ee=S.current.unit?`${parseFloat(P.toFixed(H))}${S.current.unit}`:`${Math.round(P)}`;x(ee),j.current=ee},Z=()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",Z),S.current&&(r(j.current),S.current=null),C(!1)};document.addEventListener("pointermove",K),document.addEventListener("pointerup",Z)},T=(t.name||"").replace(/^--/,"");return f.jsxs("div",{children:[f.jsx("div",{className:"text-[10px] font-mono truncate mb-0.5",style:{color:"var(--studio-text-dimmed)"},children:T}),f.jsxs("div",{className:"studio-scrub-input",children:[a&&f.jsx("div",{className:M?"studio-scrub-icon":"studio-scrub-icon no-scrub",onPointerDown:M?E:void 0,children:f.jsx(a,{style:{width:12,height:12}})}),f.jsx("input",{type:"text",value:h,onChange:N=>x(N.target.value),onFocus:()=>y(!0),onBlur:()=>{y(!1),r(h)},onKeyDown:N=>{N.key==="Enter"&&N.target.blur()},className:"studio-scrub-value"})]})]})}Ue.filter(t=>t!=="px"&&t!=="0").map(Number).filter(t=>!isNaN(t));function fw(t){const a=t.match(/^([\d.]+)(rem|px|em)$/);return a?{num:parseFloat(a[1]),unit:a[2]}:null}function dw({spacingTokens:t,cssFilePath:a,theme:r}){const i=t.find(g=>g.name==="--spacing"),c=t.filter(g=>g.name!=="--spacing"),u=i?r==="dark"&&i.darkValue?i.darkValue:i.lightValue:null,d=u?fw(u):null,h=[.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],x=d?16*d.num:4;return f.jsxs("div",{className:"pb-2",children:[i&&f.jsx("div",{className:"px-4 mb-2",children:f.jsx(Sc,{token:i,icon:dc,onSave:g=>S0(a,i.name,g,r==="dark"?".dark":":root")})}),c.length>0&&f.jsx("div",{className:"px-4 mb-2 grid grid-cols-2 gap-1.5",children:c.map(g=>f.jsx(Sc,{token:g,icon:dc,onSave:y=>S0(a,g.name,y,r==="dark"?".dark":":root")},g.name))}),d&&f.jsxs("div",{className:"px-4",children:[f.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wider mb-1.5",style:{color:"var(--studio-text-dimmed)"},children:"Scale"}),f.jsxs("div",{className:"rounded-md overflow-hidden",style:{border:"1px solid var(--studio-border-subtle)"},children:[f.jsxs("div",{className:"grid text-[9px] font-semibold uppercase tracking-wider",style:{gridTemplateColumns:"42px 56px 1fr",color:"var(--studio-text-dimmed)",borderBottom:"1px solid var(--studio-border-subtle)",background:"var(--studio-input-bg)",padding:"4px 8px"},children:[f.jsx("span",{children:"Name"}),f.jsx("span",{children:"Size"}),f.jsx("span",{})]}),f.jsxs("div",{className:"grid items-center",style:{gridTemplateColumns:"42px 56px 1fr",borderBottom:"1px solid var(--studio-border-subtle)",padding:"3px 8px"},children:[f.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--studio-text)"},children:"px"}),f.jsx("span",{className:"text-[10px] font-mono",style:{color:"var(--studio-text-muted)"},children:"1px"}),f.jsx("div",{style:{height:6,borderRadius:2,background:"var(--studio-accent)",opacity:.25,width:"1px",minWidth:1}})]}),h.map((g,y)=>{const b=g*d.num,C=`${parseFloat(b.toFixed(4))}${d.unit}`,S=Math.min(b/x,1);return f.jsxs("div",{className:"grid items-center",style:{gridTemplateColumns:"42px 56px 1fr",borderBottom:y<h.length-1?"1px solid var(--studio-border-subtle)":"none",padding:"3px 8px"},children:[f.jsx("span",{className:"text-[11px] font-mono",style:{color:"var(--studio-text)"},children:g}),f.jsx("span",{className:"text-[10px] font-mono",style:{color:"var(--studio-text-muted)"},children:C}),f.jsx("div",{style:{height:6,borderRadius:2,background:"var(--studio-accent)",opacity:.4,width:`${Math.max(S*100,1)}%`}})]},g)})]})]})]})}function pw({borders:t,borderColorTokens:a,theme:r,cssFilePath:i,stylingType:c,allTokens:u,onPreviewToken:d}){const h=t.filter(C=>C.kind==="radius"),x=t.filter(C=>C.kind==="width");if(!(h.length>0||x.length>0||a.length>0))return f.jsx(uc,{message:"No border tokens found."});const y=c==="tailwind-v4"?"@theme":r==="dark"?".dark":":root",b=async(C,S)=>{const j=C.cssVariable||`--${C.name}`,E=C.source==="framework-preset"&&!C.isOverridden?"/api/gradients/create":"/api/gradients";await VC(E,{filePath:i,variableName:j,value:S,selector:y})};return f.jsxs("div",{className:"flex flex-col gap-3 pb-2",children:[h.length>0&&f.jsxs("div",{className:"px-4",children:[f.jsx(e0,{label:"Radius"}),f.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:h.map(C=>f.jsx(Sc,{token:C,icon:I3,onSave:S=>b(C,S),step:.025,min:0,maxDecimals:3},C.name))})]}),x.length>0&&f.jsxs("div",{className:"px-4",children:[f.jsx(e0,{label:"Width"}),f.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:x.map(C=>f.jsx(Sc,{token:C,icon:Ka,onSave:S=>b(C,S),min:0},C.name))})]}),a.length>0&&f.jsxs("div",{children:[f.jsx("div",{className:"px-4",children:f.jsx(e0,{label:"Color"})}),f.jsx("div",{className:"flex flex-col gap-0 mb-2",children:a.map(C=>f.jsx(M0,{token:C,theme:r,onPreview:d,cssFilePath:i,allTokens:u},C.name))})]})]})}const hw=[{value:"to right",label:"→"},{value:"to bottom right",label:"↘"},{value:"to bottom",label:"↓"},{value:"to bottom left",label:"↙"},{value:"to left",label:"←"},{value:"to top left",label:"↖"},{value:"to top",label:"↑"},{value:"to top right",label:"↗"}];function gw(t,a){const i=[...a].sort((c,u)=>c.position-u.position).map(c=>`${c.color} ${c.position}%`);return`linear-gradient(${t}, ${i.join(", ")})`}function mw(t){const a=t.match(/linear-gradient\(([^,]+),\s*(.*)\)$/);if(!a)return null;const r=a[1].trim(),i=a[2],c=[];let u=0,d="";for(const h of i)if(h==="("&&u++,h===")"&&u--,h===","&&u===0){const x=O3(d.trim());x&&c.push(x),d=""}else d+=h;if(d.trim()){const h=O3(d.trim());h&&c.push(h)}return{direction:r,stops:c}}function O3(t){const a=t.match(/\s+(\d+)%$/);return a?{color:t.slice(0,a.index).trim(),position:parseInt(a[1])}:{color:t.trim(),position:0}}function xw({gradients:t,cssFilePath:a,stylingType:r}){const[i,c]=m.useState(null),[u,d]=m.useState(!1),h=r==="tailwind-v4"?"@theme":":root",x=async(y,b,C)=>{await _3(C?"/api/gradients/create":"/api/gradients",{filePath:a,variableName:y,value:b,selector:h})},g=async y=>{await _3("/api/gradients/delete",{filePath:a,variableName:y,selector:h})};return f.jsxs("div",{className:"px-4 pb-2",children:[t.length>0&&f.jsx("div",{className:"flex flex-col gap-2 mb-3",children:t.map(y=>f.jsx(vw,{gradient:y,isEditing:i===y.cssVariable,onEdit:()=>c(i===y.cssVariable?null:y.cssVariable),onSave:b=>{x(y.cssVariable,b,!1),c(null)},onDelete:()=>{g(y.cssVariable),c(null)},onCancel:()=>c(null)},y.cssVariable))}),u?f.jsx(yw,{onSave:(y,b)=>{x(`--${y}`,b,!0),d(!1)},onCancel:()=>d(!1)}):f.jsxs("button",{onClick:()=>d(!0),className:"studio-addable-row w-full",style:{justifyContent:"center",gap:6},children:[f.jsx(_c,{style:{width:12,height:12}}),f.jsx("span",{className:"text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"Add gradient"})]}),t.length===0&&!u&&f.jsx("div",{className:"text-[10px] leading-relaxed text-center mt-2",style:{color:"var(--studio-text-dimmed)"},children:"No gradient tokens yet. Add one to store a reusable gradient as a CSS custom property."})]})}function vw({gradient:t,isEditing:a,onEdit:r,onSave:i,onDelete:c,onCancel:u}){return f.jsxs("div",{children:[f.jsxs("button",{onClick:r,className:"flex items-center gap-2 w-full text-left p-0",style:{background:"none",border:"none",cursor:"pointer"},children:[f.jsx("div",{className:"studio-gradient-swatch",style:{background:t.value,width:32,height:24,flexShrink:0}}),f.jsx("span",{className:"flex-1 text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:t.name}),f.jsx(fp,{style:{width:10,height:10,color:"var(--studio-text-dimmed)"}})]}),a&&f.jsx("div",{className:"mt-2",children:f.jsx(bh,{initialValue:t.value,onSave:i,onDelete:c,onCancel:u})})]})}function yw({onSave:t,onCancel:a}){const[r,i]=m.useState("gradient-1"),c=u=>{const d=r.replace(/^--/,"").replace(/[^a-z0-9-]/g,"-");t(d,u)};return f.jsxs("div",{className:"rounded-lg p-3",style:{background:"var(--studio-input-bg)",border:"1px solid var(--studio-border-subtle)"},children:[f.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[f.jsx("label",{className:"text-[10px] shrink-0",style:{color:"var(--studio-text-dimmed)"},children:"Name"}),f.jsx("input",{type:"text",value:r,onChange:u=>i(u.target.value),className:"studio-input-sm flex-1",placeholder:"gradient-name"})]}),f.jsx(bh,{initialValue:"linear-gradient(to right, #3b82f6 0%, #8b5cf6 100%)",onSave:c,onDelete:void 0,onCancel:a})]})}function bw({color:t,onChange:a}){const[r,i]=m.useState("hex"),c=ih(t),u=m.useCallback(d=>a(ch(d)),[a]);return f.jsxs(bo,{children:[f.jsx(Q0,{asChild:!0,children:f.jsx("button",{type:"button",style:{width:24,height:24,borderRadius:4,border:"1px solid var(--studio-border-subtle)",background:t,cursor:"pointer",padding:0,flexShrink:0}})}),f.jsx(Co,{children:f.jsxs(wo,{side:"left",sideOffset:8,collisionPadding:12,style:{width:232,padding:12,background:"var(--studio-surface)",border:"1px solid var(--studio-border)",borderRadius:8,boxShadow:"0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3)",zIndex:1e4,display:"flex",flexDirection:"column",gap:10},children:[f.jsx("style",{children:`
|
|
196
|
+
.gradient-stop-picker .react-colorful {
|
|
197
|
+
width: 100% !important;
|
|
198
|
+
height: 150px !important;
|
|
199
|
+
gap: 8px !important;
|
|
200
|
+
}
|
|
201
|
+
.gradient-stop-picker .react-colorful__saturation {
|
|
202
|
+
border-radius: 6px !important;
|
|
203
|
+
}
|
|
204
|
+
.gradient-stop-picker .react-colorful__hue,
|
|
205
|
+
.gradient-stop-picker .react-colorful__alpha {
|
|
206
|
+
height: 12px !important;
|
|
207
|
+
border-radius: 6px !important;
|
|
208
|
+
}
|
|
209
|
+
.gradient-stop-picker .react-colorful__pointer {
|
|
210
|
+
width: 16px !important;
|
|
211
|
+
height: 16px !important;
|
|
212
|
+
border-width: 2px !important;
|
|
213
|
+
}
|
|
214
|
+
`}),f.jsx("div",{className:"gradient-stop-picker",children:f.jsx(W0,{color:c,onChange:u})}),f.jsx(sf,{mode:r,onChange:i}),f.jsx(cf,{color:c,onChange:u,mode:r})]})})]})}function bh({initialValue:t,onSave:a,onDelete:r,onCancel:i}){var S;const c=mw(t),[u,d]=m.useState((c==null?void 0:c.direction)||"to right"),[h,x]=m.useState((S=c==null?void 0:c.stops)!=null&&S.length?c.stops:[{color:"#3b82f6",position:0},{color:"#8b5cf6",position:100}]),g=gw(u,h),y=(j,M)=>{x(E=>E.map((T,N)=>N===j?{...T,...M}:T))},b=()=>{const j=[...h].sort((N,O)=>N.position-O.position),M=j[j.length-1],E=j.length>1?j[j.length-2]:{position:0},T=Math.round((M.position+E.position)/2);x([...h,{color:"#6366f1",position:T}])},C=j=>{h.length<=2||x(h.filter((M,E)=>E!==j))};return f.jsxs("div",{className:"flex flex-col gap-2",children:[f.jsx("div",{className:"w-full rounded-md",style:{background:g,height:32,border:"1px solid var(--studio-border-subtle)"}}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("label",{className:"text-[10px] shrink-0",style:{color:"var(--studio-text-dimmed)"},children:"Dir"}),f.jsx("div",{className:"studio-segmented",style:{flex:1},children:hw.map(j=>f.jsx("button",{onClick:()=>d(j.value),className:u===j.value?"active":"",title:j.value,style:{flex:1,padding:"3px 2px",fontSize:11},children:j.label},j.value))})]}),f.jsx("div",{className:"flex flex-col gap-1.5",children:h.map((j,M)=>f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx(bw,{color:j.color,onChange:E=>y(M,{color:E})}),f.jsx("input",{type:"text",value:j.color,onChange:E=>y(M,{color:E.target.value}),className:"studio-input-sm flex-1",style:{fontSize:10}}),f.jsx("input",{type:"number",min:0,max:100,value:j.position,onChange:E=>y(M,{position:parseInt(E.target.value)||0}),className:"studio-input-sm",style:{width:48,textAlign:"right",fontSize:10}}),f.jsx("span",{className:"text-[9px]",style:{color:"var(--studio-text-dimmed)"},children:"%"}),h.length>2&&f.jsx("button",{onClick:()=>C(M),style:{background:"none",border:"none",cursor:"pointer",color:"var(--studio-text-dimmed)",padding:2,display:"flex"},children:f.jsx(O0,{style:{width:10,height:10}})})]},M))}),f.jsxs("button",{onClick:b,className:"studio-addable-row",style:{justifyContent:"center",gap:4,padding:"3px 8px"},children:[f.jsx(_c,{style:{width:10,height:10}}),f.jsx("span",{className:"text-[10px]",style:{color:"var(--studio-text-dimmed)"},children:"Add stop"})]}),f.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[f.jsxs("button",{onClick:()=>a(g),className:"flex items-center gap-1 px-3 py-1.5 rounded text-[10px] font-medium",style:{background:"var(--studio-accent)",color:"white",border:"none",cursor:"pointer"},children:[f.jsx(uo,{style:{width:10,height:10}}),"Save"]}),f.jsx("button",{onClick:i,className:"flex items-center gap-1 px-3 py-1.5 rounded text-[10px]",style:{background:"transparent",color:"var(--studio-text-dimmed)",border:"1px solid var(--studio-border-subtle)",cursor:"pointer"},children:"Cancel"}),r&&f.jsxs("button",{onClick:r,className:"flex items-center gap-1 px-3 py-1.5 rounded text-[10px] ml-auto",style:{background:"transparent",color:"var(--studio-danger)",border:"1px solid var(--studio-border-subtle)",cursor:"pointer"},children:[f.jsx(mp,{style:{width:10,height:10}}),"Delete"]})]})]})}function Cw({classes:t,onClassChange:a,tokenGroups:r,flat:i=!1}){const c=hh(t),d=[{key:"layout",label:"Layout"},{key:"color",label:"Color"},{key:"spacing",label:"Spacing"},{key:"size",label:"Size"},{key:"typography",label:"Type"},{key:"shape",label:"Shape"}].filter(h=>c[h.key].length>0);return d.length===0?f.jsx("div",{className:"text-[11px] px-4 py-3",style:{color:"var(--studio-text-dimmed)"},children:"No editable properties"}):i?f.jsx("div",{className:"flex flex-col gap-2",children:d.map(h=>f.jsx(Ch,{category:h.key,properties:c[h.key],onClassChange:a,tokenGroups:r},h.key))}):f.jsxs("div",{children:[d.map(h=>f.jsx(ww,{category:h.key,label:h.label,properties:c[h.key],onClassChange:a,tokenGroups:r},h.key)),c.other.length>0&&f.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[f.jsxs("div",{className:"studio-section-hdr",style:{cursor:"default"},children:["Other",f.jsx("span",{className:"count",children:c.other.length})]}),f.jsx("div",{className:"flex flex-wrap gap-1 px-4 pb-3",children:c.other.map(h=>f.jsx("span",{className:"px-1.5 py-0.5 text-[10px] font-mono rounded",style:{background:"var(--studio-input-bg)",color:"var(--studio-text-dimmed)"},children:h.fullClass},h.fullClass))})]})]})}function Ch({category:t,properties:a,onClassChange:r,tokenGroups:i}){return f.jsx(f.Fragment,{children:t==="layout"?f.jsx(Ew,{properties:a,onClassChange:r}):t==="color"?f.jsx(Tw,{properties:a,onClassChange:r,tokenGroups:i||{}}):t==="spacing"?f.jsx(Rw,{properties:a,onClassChange:r}):f.jsx(Nw,{properties:a,category:t,onClassChange:r})})}function ww({category:t,label:a,properties:r,onClassChange:i,tokenGroups:c}){const[u,d]=m.useState(!0);return f.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[f.jsxs("button",{onClick:()=>d(!u),className:"studio-section-hdr",children:[u?f.jsx(vn,{}):f.jsx(Ft,{}),a,f.jsx("span",{className:"count",children:r.length})]}),!u&&f.jsx("div",{className:"flex flex-col gap-2 pb-2 px-4",children:f.jsx(Ch,{category:t,properties:r,onClassChange:i,tokenGroups:c})})]})}function Ml({label:t,prefix:a}){return f.jsxs("div",{className:"text-[10px] font-medium mb-1",style:{color:"var(--studio-text-dimmed)",letterSpacing:"0.03em"},children:[a&&f.jsxs("span",{style:{color:"var(--studio-accent)"},children:[a.replace(/:$/,"")," "]}),t]})}const Sw=[{value:"flex",icon:dp,label:"Flex"},{value:"grid",icon:ap,label:"Grid"},{value:"block",icon:W3,label:"Block"},{value:"hidden",icon:null,label:"None"}],jw=[{value:"start",icon:F3,label:"Start"},{value:"center",icon:K3,label:"Center"},{value:"end",icon:G3,label:"End"},{value:"stretch",icon:null,label:"Stretch"}],Mw=[{value:"start",icon:P3,label:"Start"},{value:"center",icon:Q3,label:"Center"},{value:"end",icon:J3,label:"End"},{value:"between",icon:dc,label:"Between"},{value:"evenly",icon:w6,label:"Evenly"}];function Ew({properties:t,onClassChange:a}){const r=t.find(d=>d.property==="display"),i=t.find(d=>d.property==="alignItems"),c=t.find(d=>d.property==="justifyContent"),u=t.filter(d=>!["display","alignItems","justifyContent"].includes(d.property));return f.jsxs(f.Fragment,{children:[r&&f.jsxs("div",{children:[f.jsx(Ml,{label:"Display",prefix:r.prefix}),f.jsx(t0,{options:Sw,value:r.value,onChange:d=>{const h=jl(r.property,d,r.prefix);a(r.fullClass,h)}})]}),i&&f.jsxs("div",{children:[f.jsx(Ml,{label:"Alignment",prefix:i.prefix}),f.jsx(t0,{options:jw,value:i.value,onChange:d=>{const h=jl(i.property,d,i.prefix);a(i.fullClass,h)}})]}),c&&f.jsxs("div",{children:[f.jsx(Ml,{label:"Justify",prefix:c.prefix}),f.jsx(t0,{options:Mw,value:c.value,onChange:d=>{const h=jl(c.property,d,c.prefix);a(c.fullClass,h)}})]}),u.map(d=>f.jsx(bl,{property:d,category:"layout",onClassChange:a},d.fullClass))]})}function t0({options:t,value:a,onChange:r}){return f.jsx("div",{className:"studio-segmented",style:{width:"100%"},children:t.map(i=>f.jsx(Ke,{content:i.label||i.value,side:"bottom",children:f.jsx("button",{onClick:()=>r(i.value),className:a===i.value?"active":"",style:{flex:1},children:i.icon?f.jsx(i.icon,{style:{width:14,height:14}}):f.jsx("span",{style:{fontSize:10},children:i.label||i.value})})},i.value))})}function Tw({properties:t,onClassChange:a,tokenGroups:r}){const i=[],c={};for(const[h,x]of Object.entries(r))for(const g of x)if(g.category==="color"){const y=g.name.replace(/^--/,"");i.includes(y)||i.push(y),c[y]||(c[y]=g.lightValue||"")}const[u,d]=m.useState(null);return f.jsx(f.Fragment,{children:t.map(h=>f.jsx(_w,{prop:h,colorTokens:i,tokenValues:c,isOpen:u===h.fullClass,onOpen:()=>d(h.fullClass),onClose:()=>d(null),onClassChange:a},h.fullClass))})}function _w({prop:t,colorTokens:a,tokenValues:r,isOpen:i,onOpen:c,onClose:u,onClassChange:d}){const h=m.useRef(null),x=r[t.value.split("/")[0]]||"";return f.jsxs("div",{children:[f.jsx(Ml,{label:t.label,prefix:t.prefix}),f.jsxs("button",{ref:h,onClick:c,className:"studio-color-trigger",children:[f.jsx("div",{className:"studio-swatch",style:{"--swatch-color":x}}),f.jsx("span",{className:"flex-1 truncate text-left",children:t.value}),f.jsx(Ft,{})]}),i&&f.jsx(uh,{anchorRef:h,currentValue:t.value,availableTokens:a,tokenValues:r,onSelect:g=>{const y=jl(t.property,g,t.prefix);d(t.fullClass,y),u()},onClose:u})]})}function Rw({properties:t,onClassChange:a}){const r=t.find(x=>x.label==="PX"||x.label==="Pad X"||x.label==="Padding X"),i=t.find(x=>x.label==="PY"||x.label==="Pad Y"||x.label==="Padding Y"),c=t.find(x=>x.label==="MX"||x.label==="Margin X"),u=t.find(x=>x.label==="MY"||x.label==="Margin Y"),d=t.find(x=>x.label==="Gap"),h=t.filter(x=>x!==r&&x!==i&&x!==c&&x!==u&&x!==d);return f.jsxs(f.Fragment,{children:[(r||i)&&f.jsxs("div",{className:"studio-two-col",children:[r&&f.jsx(Qa,{label:"Padding X",prefix:r.prefix,prop:r,onClassChange:a}),i&&f.jsx(Qa,{label:"Padding Y",prefix:i.prefix,prop:i,onClassChange:a})]}),(c||u)&&f.jsxs("div",{className:"studio-two-col",children:[c&&f.jsx(Qa,{label:"Margin X",prefix:c.prefix,prop:c,onClassChange:a}),u&&f.jsx(Qa,{label:"Margin Y",prefix:u.prefix,prop:u,onClassChange:a})]}),d&&f.jsx(Qa,{label:"Gap",prefix:d.prefix,prop:d,onClassChange:a}),h.map(x=>f.jsx(Qa,{label:x.label,prefix:x.prefix,prop:x,onClassChange:a},x.fullClass))]})}function Qa({label:t,prefix:a,prop:r,onClassChange:i}){return Ic(r.value)?f.jsxs("div",{children:[f.jsx(Ml,{label:t,prefix:a}),f.jsx(wh,{value:gh(r.value),onCommit:u=>{const d=jl(r.property,mh(u),r.prefix);i(r.fullClass,d)}})]}):f.jsxs("div",{children:[f.jsx(Ml,{label:t,prefix:a}),f.jsxs("select",{value:r.value,onChange:u=>{const d=jl(r.property,u.target.value,r.prefix);i(r.fullClass,d)},className:"studio-select w-full",children:[!Ue.includes(r.value)&&f.jsx("option",{value:r.value,children:r.value}),Ue.map(u=>f.jsx("option",{value:u,children:u},u))]})]})}function Nw({properties:t,category:a,onClassChange:r}){if(a==="typography"){const i=t.find(d=>d.property==="fontSize"),c=t.find(d=>d.property==="fontWeight"),u=t.filter(d=>d!==i&&d!==c);return f.jsxs(f.Fragment,{children:[u.map(d=>f.jsx(bl,{property:d,category:a,onClassChange:r},d.fullClass)),(i||c)&&f.jsxs("div",{className:"studio-two-col",children:[i&&f.jsx(bl,{property:i,category:a,onClassChange:r}),c&&f.jsx(bl,{property:c,category:a,onClassChange:r})]})]})}if(a==="size"){const i=t.find(d=>d.label==="Width"||d.label==="Max Width"||d.label==="Min Width"),c=t.find(d=>d.label==="Height"||d.label==="Max Height"||d.label==="Min Height"),u=t.filter(d=>d!==i&&d!==c);if(i&&c)return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"studio-two-col",children:[f.jsx(bl,{property:i,category:a,onClassChange:r}),f.jsx(bl,{property:c,category:a,onClassChange:r})]}),u.map(d=>f.jsx(bl,{property:d,category:a,onClassChange:r},d.fullClass))]})}return f.jsx(f.Fragment,{children:t.map(i=>f.jsx(bl,{property:i,category:a,onClassChange:r},i.fullClass))})}function wh({value:t,onCommit:a}){const[r,i]=m.useState(t),[c,u]=m.useState(!1),d=c?r:t;return f.jsx("input",{type:"text",value:d,onChange:h=>i(h.target.value),onFocus:()=>{i(t),u(!0)},onBlur:()=>{u(!1);const h=r.trim();h&&h!==t&&a(h)},onKeyDown:h=>{h.key==="Enter"&&h.target.blur()},className:"studio-select w-full font-mono",style:{fontSize:11}})}function bl({property:t,category:a,onClassChange:r}){const c=(()=>{switch(a){case"spacing":return Ue;case"shape":return t.property==="borderRadius"?xh:["0","1","2","4","8"];case"typography":return t.property==="fontSize"?df:t.property==="fontWeight"?pf:[];case"layout":return t.property==="display"?["flex","inline-flex","grid","block","inline-block","hidden"]:t.property==="alignItems"?["start","end","center","baseline","stretch"]:t.property==="justifyContent"?["start","end","center","between","around","evenly"]:t.property==="gridCols"?["1","2","3","4","5","6","none"]:[];case"size":return[];default:return[]}})();return Ic(t.value)?f.jsxs("div",{children:[f.jsx(Ml,{label:t.label,prefix:t.prefix}),f.jsx(wh,{value:gh(t.value),onCommit:d=>{const h=jl(t.property,mh(d),t.prefix);r(t.fullClass,h)}})]}):f.jsxs("div",{children:[f.jsx(Ml,{label:t.label,prefix:t.prefix}),c.length>0?f.jsxs("select",{value:t.value,onChange:d=>{const h=jl(t.property,d.target.value,t.prefix);r(t.fullClass,h)},className:"studio-select w-full",children:[!c.includes(t.value)&&f.jsx("option",{value:t.value,children:t.value}),c.map(d=>f.jsx("option",{value:d,children:d},d))]}):f.jsx("div",{className:"text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:t.value})]})}const Lw={"font-size":{"12px":"text-xs","0.75rem":"text-xs","14px":"text-sm","0.875rem":"text-sm","16px":"text-base","1rem":"text-base","18px":"text-lg","1.125rem":"text-lg","20px":"text-xl","1.25rem":"text-xl","24px":"text-2xl","1.5rem":"text-2xl","30px":"text-3xl","1.875rem":"text-3xl","36px":"text-4xl","2.25rem":"text-4xl","48px":"text-5xl","3rem":"text-5xl","60px":"text-6xl","3.75rem":"text-6xl","72px":"text-7xl","4.5rem":"text-7xl","96px":"text-8xl","6rem":"text-8xl","128px":"text-9xl","8rem":"text-9xl"},"font-weight":{100:"font-thin",200:"font-extralight",300:"font-light",400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold",800:"font-extrabold",900:"font-black"},"line-height":{1:"leading-none","1.25":"leading-tight","1.375":"leading-snug","1.5":"leading-normal","1.625":"leading-relaxed",2:"leading-loose"},"letter-spacing":{"-0.05em":"tracking-tighter","-0.025em":"tracking-tight","0em":"tracking-normal","0px":"tracking-normal","0.025em":"tracking-wide","0.05em":"tracking-wider","0.1em":"tracking-widest"},"text-align":{left:"text-left",start:"text-left",center:"text-center",right:"text-right",end:"text-right",justify:"text-justify"},"text-transform":{uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",none:"normal-case"},display:{block:"block","inline-block":"inline-block",inline:"inline",flex:"flex","inline-flex":"inline-flex",grid:"grid","inline-grid":"inline-grid",none:"hidden"},position:{static:"static",relative:"relative",absolute:"absolute",fixed:"fixed",sticky:"sticky"},"flex-direction":{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},"flex-wrap":{wrap:"flex-wrap",nowrap:"flex-nowrap","wrap-reverse":"flex-wrap-reverse"},"justify-content":{"flex-start":"justify-start",start:"justify-start","flex-end":"justify-end",end:"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},"align-items":{"flex-start":"items-start",start:"items-start","flex-end":"items-end",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},"align-self":{auto:"self-auto","flex-start":"self-start",start:"self-start","flex-end":"self-end",end:"self-end",center:"self-center",stretch:"self-stretch"},overflow:{visible:"overflow-visible",hidden:"overflow-hidden",scroll:"overflow-scroll",auto:"overflow-auto"},opacity:{0:"opacity-0","0.05":"opacity-5","0.1":"opacity-10","0.15":"opacity-15","0.2":"opacity-20","0.25":"opacity-25","0.3":"opacity-30","0.35":"opacity-35","0.4":"opacity-40","0.45":"opacity-45","0.5":"opacity-50","0.55":"opacity-55","0.6":"opacity-60","0.65":"opacity-65","0.7":"opacity-70","0.75":"opacity-75","0.8":"opacity-80","0.85":"opacity-85","0.9":"opacity-90","0.95":"opacity-95",1:"opacity-100"}},jc={"0px":"0","1px":"px","2px":"0.5","4px":"1","6px":"1.5","8px":"2","10px":"2.5","12px":"3","14px":"3.5","16px":"4","20px":"5","24px":"6","28px":"7","32px":"8","36px":"9","40px":"10","44px":"11","48px":"12","56px":"14","64px":"16","80px":"20","96px":"24","112px":"28","128px":"32","144px":"36","160px":"40","176px":"44","192px":"48","208px":"52","224px":"56","240px":"60","256px":"64","288px":"72","320px":"80","384px":"96"},Ow={"0px":"rounded-none","2px":"rounded-sm","0.125rem":"rounded-sm","4px":"rounded","0.25rem":"rounded","6px":"rounded-md","0.375rem":"rounded-md","8px":"rounded-lg","0.5rem":"rounded-lg","12px":"rounded-xl","0.75rem":"rounded-xl","16px":"rounded-2xl","1rem":"rounded-2xl","24px":"rounded-3xl","1.5rem":"rounded-3xl","9999px":"rounded-full"},lc={"padding-top":"pt","padding-right":"pr","padding-bottom":"pb","padding-left":"pl","margin-top":"mt","margin-right":"mr","margin-bottom":"mb","margin-left":"ml",gap:"gap","row-gap":"gap-y","column-gap":"gap-x",width:"w",height:"h","min-width":"min-w","min-height":"min-h","max-width":"max-w","max-height":"max-h",top:"top",right:"right",bottom:"bottom",left:"left","border-top-width":"border-t","border-right-width":"border-r","border-bottom-width":"border-b","border-left-width":"border-l","border-top-left-radius":"rounded-tl","border-top-right-radius":"rounded-tr","border-bottom-right-radius":"rounded-br","border-bottom-left-radius":"rounded-bl","font-size":"text","font-weight":"font","line-height":"leading","letter-spacing":"tracking",opacity:"opacity",color:"text","background-color":"bg","border-color":"border"},Aw=new Set(["padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left","gap","row-gap","column-gap","top","right","bottom","left","width","height","min-width","min-height","max-width","max-height"]),zw=new Set(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"]);function kt(t,a){const r=Lw[t];if(r!=null&&r[a])return{tailwindClass:r[a],exact:!0};if(Aw.has(t)){const c=jc[a],u=lc[t];if(c&&u)return{tailwindClass:`${u}-${c}`,exact:!0};if(u&&a!=="auto"&&a!=="none")return{tailwindClass:`${u}-[${a}]`,exact:!1}}if(zw.has(t)){const c=Ow[a];if(c){const d=lc[t];if(d){const h=c.replace("rounded","");return{tailwindClass:`${d}${h||""}`,exact:!0}}return{tailwindClass:c,exact:!0}}const u=lc[t];if(u&&a!=="0px")return{tailwindClass:`${u}-[${a}]`,exact:!1}}const i=lc[t];return i?{tailwindClass:`${i}-[${a}]`,exact:!1}:null}function ac(t,a){const r=t==="padding"?"p":"m",i=jc[a];return i?{tailwindClass:`${r}-${i}`,exact:!0}:a!=="0px"&&a!=="auto"?{tailwindClass:`${r}-[${a}]`,exact:!1}:null}function rc(t,a,r){const i=t==="padding"?"px":"mx",c=t==="padding"?"py":"my",u=jc[a],d=jc[r];return{xClass:u?{tailwindClass:`${i}-${u}`,exact:!0}:a!=="0px"?{tailwindClass:`${i}-[${a}]`,exact:!1}:null,yClass:d?{tailwindClass:`${c}-${d}`,exact:!0}:r!=="0px"?{tailwindClass:`${c}-[${r}]`,exact:!1}:null}}const Hw={"font-size":"typography","font-weight":"typography","line-height":"typography","letter-spacing":"typography","padding-top":"spacing","padding-right":"spacing","padding-bottom":"spacing","padding-left":"spacing","margin-top":"spacing","margin-right":"spacing","margin-bottom":"spacing","margin-left":"spacing",gap:"spacing","row-gap":"spacing","column-gap":"spacing",width:"spacing",height:"spacing","border-top-left-radius":"radius","border-top-right-radius":"radius","border-bottom-right-radius":"radius","border-bottom-left-radius":"radius",color:"color","background-color":"color","border-color":"color","box-shadow":"shadow"};function Vw(t,a,r){if(!a||a==="none"||a==="auto")return null;const i=Hw[t];if(!i)return null;if(i==="color"){const u=z3(a);if(!u)return null;for(const[,d]of Object.entries(r))for(const h of d)if(h.category==="color"){const x=z3(h.lightValue||"");if(x&&x===u){const g=d.filter(y=>y.category==="color").map(y=>({name:y.name.replace(/^--/,""),value:y.lightValue||""}));return{tokenName:h.name.replace(/^--/,""),tokenVar:h.name,category:"color",groupTokens:g}}}return null}const c=A3(a);for(const[,u]of Object.entries(r))for(const d of u)if(d.category===i){const h=A3(d.lightValue||"");if(h&&h===c){const x=u.filter(g=>g.category===i).map(g=>({name:g.name.replace(/^--/,""),value:g.lightValue||""}));return{tokenName:d.name.replace(/^--/,""),tokenVar:d.name,category:i,groupTokens:x}}}return null}function A3(t){return t?t.trim().toLowerCase():null}function z3(t){if(!t||t==="transparent"||t==="rgba(0, 0, 0, 0)")return null;const a=t.match(/rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*(?:,\s*([\d.]+))?\s*\)/);if(a){const[,r,i,c,u]=a;return u!==void 0&&parseFloat(u)!==1?`rgba(${r},${i},${c},${u})`:`rgb(${r},${i},${c})`}return t.trim().toLowerCase()}const Dw=[{property:"display",label:"Display",category:"layout",controlType:"keyword",alwaysShow:!0},{property:"position",label:"Position",category:"layout",controlType:"keyword"},{property:"top",label:"Top",category:"layout",controlType:"length"},{property:"right",label:"Right",category:"layout",controlType:"length"},{property:"bottom",label:"Bottom",category:"layout",controlType:"length"},{property:"left",label:"Left",category:"layout",controlType:"length"},{property:"z-index",label:"Z-Index",category:"layout",controlType:"text"},{property:"overflow",label:"Overflow",category:"layout",controlType:"keyword"},{property:"flex-direction",label:"Direction",category:"layout",controlType:"keyword"},{property:"flex-wrap",label:"Wrap",category:"layout",controlType:"keyword"},{property:"justify-content",label:"Justify",category:"layout",controlType:"keyword"},{property:"align-items",label:"Align Items",category:"layout",controlType:"keyword"},{property:"align-self",label:"Align Self",category:"layout",controlType:"keyword"},{property:"gap",label:"Gap",category:"layout",controlType:"length"},{property:"row-gap",label:"Row Gap",category:"layout",controlType:"length"},{property:"column-gap",label:"Column Gap",category:"layout",controlType:"length"},{property:"width",label:"Width",category:"size",controlType:"length"},{property:"height",label:"Height",category:"size",controlType:"length"},{property:"min-width",label:"Min W",category:"size",controlType:"length"},{property:"min-height",label:"Min H",category:"size",controlType:"length"},{property:"max-width",label:"Max W",category:"size",controlType:"length"},{property:"max-height",label:"Max H",category:"size",controlType:"length"},{property:"padding-top",label:"Top",category:"spacing",controlType:"length",alwaysShow:!0},{property:"padding-right",label:"Right",category:"spacing",controlType:"length",alwaysShow:!0},{property:"padding-bottom",label:"Bottom",category:"spacing",controlType:"length",alwaysShow:!0},{property:"padding-left",label:"Left",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-top",label:"Top",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-right",label:"Right",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-bottom",label:"Bottom",category:"spacing",controlType:"length",alwaysShow:!0},{property:"margin-left",label:"Left",category:"spacing",controlType:"length",alwaysShow:!0},{property:"font-family",label:"Font",category:"typography",controlType:"text",alwaysShow:!0},{property:"font-size",label:"Size",category:"typography",controlType:"length",alwaysShow:!0},{property:"font-weight",label:"Weight",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"line-height",label:"Leading",category:"typography",controlType:"length",alwaysShow:!0},{property:"letter-spacing",label:"Tracking",category:"typography",controlType:"length",alwaysShow:!0},{property:"text-align",label:"Align",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"text-decoration",label:"Decoration",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"text-transform",label:"Transform",category:"typography",controlType:"keyword",alwaysShow:!0},{property:"color",label:"Text",category:"color",controlType:"color",alwaysShow:!0},{property:"background-color",label:"Background",category:"color",controlType:"color",alwaysShow:!0},{property:"border-top-width",label:"Top",category:"border",controlType:"length"},{property:"border-right-width",label:"Right",category:"border",controlType:"length"},{property:"border-bottom-width",label:"Bottom",category:"border",controlType:"length"},{property:"border-left-width",label:"Left",category:"border",controlType:"length"},{property:"border-color",label:"Color",category:"border",controlType:"color",alwaysShow:!0},{property:"border-top-left-radius",label:"TL",category:"border",controlType:"length",alwaysShow:!0},{property:"border-top-right-radius",label:"TR",category:"border",controlType:"length",alwaysShow:!0},{property:"border-bottom-right-radius",label:"BR",category:"border",controlType:"length",alwaysShow:!0},{property:"border-bottom-left-radius",label:"BL",category:"border",controlType:"length",alwaysShow:!0},{property:"opacity",label:"Opacity",category:"effects",controlType:"text",alwaysShow:!0},{property:"box-shadow",label:"Shadow",category:"effects",controlType:"text",alwaysShow:!0},{property:"background-image",label:"Gradient",category:"effects",controlType:"text"},{property:"transform",label:"Transform",category:"effects",controlType:"readonly"}],kw={top:["auto"],right:["auto"],bottom:["auto"],left:["auto"],"z-index":["auto"],position:["static"],overflow:["visible"],"padding-top":["0px"],"padding-right":["0px"],"padding-bottom":["0px"],"padding-left":["0px"],"margin-top":["0px"],"margin-right":["0px"],"margin-bottom":["0px"],"margin-left":["0px"],"min-width":["0px"],"min-height":["0px"],"max-width":["none"],"max-height":["none"],"border-top-width":["0px"],"border-right-width":["0px"],"border-bottom-width":["0px"],"border-left-width":["0px"],"background-image":["none"],transform:["none"],"align-self":["auto"]},$w=new Set(["color","font-family","font-size","font-weight","line-height","letter-spacing","text-align","text-transform","white-space","text-decoration"]),Bw=new Set(["flex-direction","flex-wrap","justify-content","align-items","gap","row-gap","column-gap"]);function Uw(t,a){const r=kw[t];return r?r.some(i=>a===i||a.startsWith(i)):!1}const Zw={display:"block","font-family":"sans-serif","font-size":"16px","font-weight":"400","line-height":"normal","letter-spacing":"normal","text-align":"left","text-decoration":"none","text-transform":"none",color:"rgb(0, 0, 0)","background-color":"transparent","border-color":"rgb(0, 0, 0)","border-top-left-radius":"0px","border-top-right-radius":"0px","border-bottom-right-radius":"0px","border-bottom-left-radius":"0px",opacity:"1","padding-top":"0px","padding-right":"0px","padding-bottom":"0px","padding-left":"0px","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};function Yw(t){return Zw[t]||""}function Mc(t,a){let r,i,c,u;return a==="border-width"?(r=t["border-top-width"]||"0px",i=t["border-right-width"]||"0px",c=t["border-bottom-width"]||"0px",u=t["border-left-width"]||"0px"):a==="border-radius"?(r=t["border-top-left-radius"]||"0px",i=t["border-top-right-radius"]||"0px",c=t["border-bottom-right-radius"]||"0px",u=t["border-bottom-left-radius"]||"0px"):(r=t[`${a}-top`]||"0px",i=t[`${a}-right`]||"0px",c=t[`${a}-bottom`]||"0px",u=t[`${a}-left`]||"0px"),r===i&&i===c&&c===u?r:null}function H3(t,a){const r=t[`${a}-top`]||"0px",i=t[`${a}-right`]||"0px",c=t[`${a}-bottom`]||"0px",u=t[`${a}-left`]||"0px";return r===c&&u===i?{x:u,y:r}:null}const Xw={backgroundColor:"background-color",textColor:"color",borderColor:"border-color",ringColor:"outline-color",outlineColor:"outline-color",paddingTop:"padding-top",paddingRight:"padding-right",paddingBottom:"padding-bottom",paddingLeft:"padding-left",marginTop:"margin-top",marginRight:"margin-right",marginBottom:"margin-bottom",marginLeft:"margin-left",padding:["padding-top","padding-right","padding-bottom","padding-left"],paddingX:["padding-left","padding-right"],paddingY:["padding-top","padding-bottom"],margin:["margin-top","margin-right","margin-bottom","margin-left"],marginX:["margin-left","margin-right"],marginY:["margin-top","margin-bottom"],gap:"gap",gapX:"column-gap",gapY:"row-gap",borderRadius:["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],borderWidth:["border-top-width","border-right-width","border-bottom-width","border-left-width"],fontSize:"font-size",fontWeight:"font-weight",lineHeight:"line-height",letterSpacing:"letter-spacing",fontFamily:"font-family",textAlign:"text-align",textTransform:"text-transform",textDecoration:"text-decoration",display:"display",position:"position",flexDirection:"flex-direction",flexWrap:"flex-wrap",alignItems:"align-items",justifyContent:"justify-content",alignSelf:"align-self",overflow:"overflow",boxShadow:"box-shadow",backgroundImage:"background-image",width:"width",height:"height",minWidth:"min-width",minHeight:"min-height",maxWidth:"max-width",maxHeight:"max-height"},V3=new Set(["h1","h2","h3","h4","h5","h6","p","span","a","label","strong","em","b","i","small","blockquote","li","dt","dd","figcaption","caption","th","td","legend","summary"]),qw=new Set(["div","section","article","aside","nav","header","footer","main","form","fieldset","figure","details","dialog","ul","ol"]),Gw=new Set(["font-size","font-weight","line-height","letter-spacing","text-align","color"]),D3=new Set(["padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-bottom","width","height","background-color"]);function Qw(t,a){return!!(V3.has(t)&&Gw.has(a)||qw.has(t)&&D3.has(a)||V3.has(t)&&D3.has(a))}function Kw(t,a,r,i,c){const u={layout:[],spacing:[],size:[],typography:[],color:[],border:[],effects:[]},d=hh(a||""),h=new Map,x=[...d.color,...d.spacing,...d.shape,...d.typography,...d.layout,...d.size,...d.other];for(const g of x){const y=Xw[g.property];if(y)if(Array.isArray(y))for(const b of y)h.has(b)||h.set(b,g);else h.has(y)||h.set(y,g)}for(const g of Dw){const y=Bw.has(g.property),b=h.get(g.property),C=r[g.property]||"",S=!C||Uw(g.property,C),j=$w.has(g.property)&&!!i[g.property]&&i[g.property]===C,M=C?Vw(g.property,C,c):null,E=g.category==="size",T=h.get("display"),N=T&&(T.value.includes("flex")||T.value.includes("grid")),O=g.category==="layout";let $;if(b)$={cssProperty:g.property,label:g.label,category:g.category,controlType:g.controlType,source:"class",tailwindValue:b.value,fullClass:b.fullClass,computedValue:C,inherited:j,tokenMatch:M,hasValue:!0,flexGridOnly:y};else{if(E)continue;if(O&&!g.alwaysShow)if(N&&y)$={cssProperty:g.property,label:g.label,category:g.category,controlType:g.controlType,source:"none",tailwindValue:null,fullClass:null,computedValue:C,inherited:!1,tokenMatch:null,hasValue:!1,flexGridOnly:!0};else continue;else if(g.alwaysShow){const H=C||Yw(g.property),K=H?kt(g.property,H):null,Z=H==="0px"||H==="0"||H==="0%";$={cssProperty:g.property,label:g.label,category:g.category,controlType:g.controlType,source:C?"computed":"none",tailwindValue:K!=null&&K.exact&&!Z?K.tailwindClass:null,fullClass:null,computedValue:H,inherited:j,tokenMatch:M,hasValue:!0,flexGridOnly:y}}else if(S)if(Qw(t,g.property))$={cssProperty:g.property,label:g.label,category:g.category,controlType:g.controlType,source:"none",tailwindValue:null,fullClass:null,computedValue:C,inherited:!1,tokenMatch:null,hasValue:!1,flexGridOnly:y};else continue;else{if(!C)continue;const H=kt(g.property,C);$={cssProperty:g.property,label:g.label,category:g.category,controlType:g.controlType,source:"computed",tailwindValue:H!=null&&H.exact?H.tailwindClass:null,fullClass:null,computedValue:C,inherited:j,tokenMatch:M,hasValue:!0,flexGridOnly:y}}}u[g.category].push($)}return u}function Ec(t){const a=t.match(/^(-?[\d.]+)\s*(px|rem|em|%|vh|vw|pt)$/);if(a)return{num:parseFloat(a[1]),unit:a[2]};const r=parseFloat(t);return!isNaN(r)&&String(r)===t.trim()?{num:r,unit:""}:null}function Sh(t){return t==="rem"||t==="em"?.0625:1}function n0({tag:t,className:a,computedStyles:r,parentComputedStyles:i,onPreviewInlineStyle:c,onRevertInlineStyles:u,onCommitClass:d}){const h=To(),x=ff(),g=dh(),y=(h==null?void 0:h.groups)||{},b=x==null?void 0:x.shadows,C=g==null?void 0:g.gradients,S=Kw(t,a,r,i,y),M=[{key:"layout",label:"Layout"},{key:"size",label:"Size"},{key:"spacing",label:"Spacing"},{key:"typography",label:"Typography"},{key:"color",label:"Color"},{key:"border",label:"Border"},{key:"effects",label:"Effects"}].filter(T=>S[T.key].length>0);if(M.length===0)return f.jsx("div",{className:"text-[11px] px-4 py-3",style:{color:"var(--studio-text-dimmed)"},children:"No styles to display"});const E=r.display||"block";return f.jsx("div",{children:M.map(T=>f.jsx(Pw,{category:T.key,label:T.label,properties:S[T.key],computedStyles:r,tokenGroups:y,shadows:b,gradients:C,displayValue:E,elementClassName:a,onPreviewInlineStyle:c,onRevertInlineStyles:u,onCommitClass:d},T.key))})}function Pw({category:t,label:a,properties:r,computedStyles:i,tokenGroups:c,shadows:u,gradients:d,displayValue:h,elementClassName:x,onPreviewInlineStyle:g,onRevertInlineStyles:y,onCommitClass:b}){const[C,S]=m.useState(!0),j=r.filter(T=>T.hasValue),M=r.filter(T=>!T.hasValue),E=j.length;return f.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[f.jsxs("button",{onClick:()=>S(!C),className:"studio-section-hdr",children:[C?f.jsx(vn,{}):f.jsx(Ft,{}),a,E>0&&f.jsx("span",{className:"count",children:E})]}),!C&&f.jsxs("div",{className:"flex flex-col gap-4 pb-4 px-4",children:[t==="layout"?f.jsx(Iw,{properties:r,displayValue:h,tokenGroups:c,onPreviewInlineStyle:g,onRevertInlineStyles:y,onCommitClass:b}):t==="spacing"?f.jsx(tS,{properties:r,computedStyles:i,tokenGroups:c,onPreviewInlineStyle:g,onRevertInlineStyles:y,onCommitClass:b}):t==="border"?f.jsx(iS,{properties:r,computedStyles:i,tokenGroups:c,onPreviewInlineStyle:g,onRevertInlineStyles:y,onCommitClass:b}):t==="size"?f.jsx(eS,{properties:r,tokenGroups:c,onPreviewInlineStyle:g,onRevertInlineStyles:y,onCommitClass:b}):t==="typography"?f.jsx(oS,{properties:r,tokenGroups:c,onPreviewInlineStyle:g,onRevertInlineStyles:y,onCommitClass:b}):t==="effects"?f.jsx(cS,{properties:r,tokenGroups:c,shadows:u,gradients:d,elementClassName:x,onPreviewInlineStyle:g,onRevertInlineStyles:y,onCommitClass:b}):j.map(T=>f.jsx(Bt,{prop:T,tokenGroups:c,onPreviewInlineStyle:g,onRevertInlineStyles:y,onCommitClass:b},T.cssProperty)),!["layout","spacing","border","size","typography","effects"].includes(t)&&M.length>0&&f.jsx(es,{properties:M,tokenGroups:c,onPreviewInlineStyle:g,onRevertInlineStyles:y,onCommitClass:b})]})]})}const Jw=[{value:"flex",icon:dp,label:"Flex",tooltip:"Flex — arrange children in a row or column"},{value:"grid",icon:ap,label:"Grid",tooltip:"Grid — arrange children in a 2D grid"},{value:"block",icon:W3,label:"Block",tooltip:"Block — stack vertically, full width"},{value:"none",icon:$g,label:"None",tooltip:"Hidden — remove from layout"}],Fw=[{value:"flex-start",icon:F3,label:"Start",tooltip:"Start — align to start of cross axis"},{value:"center",icon:K3,label:"Center",tooltip:"Center — center on cross axis"},{value:"flex-end",icon:G3,label:"End",tooltip:"End — align to end of cross axis"},{value:"stretch",icon:j6,label:"Stretch",tooltip:"Stretch — fill cross axis"}],Ww=[{value:"flex-start",icon:P3,label:"Start",tooltip:"Start — pack to start of main axis"},{value:"center",icon:Q3,label:"Center",tooltip:"Center — center on main axis"},{value:"flex-end",icon:J3,label:"End",tooltip:"End — pack to end of main axis"},{value:"space-between",icon:dc,label:"Between",tooltip:"Between — equal space between items"}];function Iw({properties:t,displayValue:a,tokenGroups:r,onPreviewInlineStyle:i,onRevertInlineStyles:c,onCommitClass:u}){const d=t.find(j=>j.cssProperty==="display"),h=t.find(j=>j.cssProperty==="align-items"),x=t.find(j=>j.cssProperty==="justify-content"),g=t.filter(j=>!["display","align-items","justify-content"].includes(j.cssProperty)&&j.hasValue&&!j.flexGridOnly),y=t.filter(j=>!["display","align-items","justify-content"].includes(j.cssProperty)&&j.hasValue&&j.flexGridOnly),b=t.filter(j=>!["display","align-items","justify-content"].includes(j.cssProperty)&&!j.hasValue&&j.flexGridOnly),C=a.includes("flex")||a.includes("grid"),S=(j,M)=>{i(j,M);const E=kt(j,M);if(E){const T=t.find(O=>O.cssProperty===j),N=(T==null?void 0:T.fullClass)||void 0;u(E.tailwindClass,N)}};return f.jsxs(f.Fragment,{children:[d&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Display",inherited:d.inherited}),f.jsx(Wa,{options:Jw,value:d.computedValue,onChange:j=>S("display",j)})]}),C&&h&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Align Items",inherited:h.inherited}),f.jsx(Wa,{options:Fw,value:h.computedValue,onChange:j=>S("align-items",j)})]}),C&&x&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Justify",inherited:x.inherited}),f.jsx(Wa,{options:Ww,value:x.computedValue,onChange:j=>S("justify-content",j)})]}),C&&y.map(j=>f.jsx(Bt,{prop:j,tokenGroups:r,onPreviewInlineStyle:i,onRevertInlineStyles:c,onCommitClass:u},j.cssProperty)),C&&b.length>0&&f.jsx(es,{properties:b,tokenGroups:r,onPreviewInlineStyle:i,onRevertInlineStyles:c,onCommitClass:u}),g.map(j=>f.jsx(Bt,{prop:j,tokenGroups:r,onPreviewInlineStyle:i,onRevertInlineStyles:c,onCommitClass:u},j.cssProperty))]})}function eS({properties:t,tokenGroups:a,onPreviewInlineStyle:r,onRevertInlineStyles:i,onCommitClass:c}){const u=t.filter(g=>g.hasValue),d=u.find(g=>g.cssProperty==="width"),h=u.find(g=>g.cssProperty==="height"),x=u.filter(g=>g.cssProperty!=="width"&&g.cssProperty!=="height");return f.jsxs(f.Fragment,{children:[(d||h)&&f.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[d&&f.jsx(Bt,{prop:d,tokenGroups:a,onPreviewInlineStyle:r,onRevertInlineStyles:i,onCommitClass:c}),h&&f.jsx(Bt,{prop:h,tokenGroups:a,onPreviewInlineStyle:r,onRevertInlineStyles:i,onCommitClass:c})]}),x.map(g=>f.jsx(Bt,{prop:g,tokenGroups:a,onPreviewInlineStyle:r,onRevertInlineStyles:i,onCommitClass:c},g.cssProperty))]})}function tS({properties:t,computedStyles:a,tokenGroups:r,onPreviewInlineStyle:i,onRevertInlineStyles:c,onCommitClass:u}){var K,Z,ae,ce;const[d,h]=m.useState(!1),[x,g]=m.useState(!1),y=t.filter(X=>X.hasValue),b=y.filter(X=>X.cssProperty.startsWith("padding-")),C=y.filter(X=>X.cssProperty.startsWith("margin-")),S=t.filter(X=>!X.hasValue),j=Mc(a,"padding"),M=Mc(a,"margin"),E=j?null:H3(a,"padding"),T=M?null:H3(a,"margin"),N=X=>{const P=X.computedValue;return!X.tailwindValue&&(P==="0px"||P==="0")?"—":P},O=j?null:E?`${E.y} ${E.x}`:b.length>0?b.map(N).join(" "):null,$=M?null:T?`${T.y} ${T.x}`:C.length>0?C.map(N).join(" "):null,H=X=>t.find(P=>P.cssProperty===X);return f.jsxs(f.Fragment,{children:[b.length>0&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx(Tc,{label:"Padding"}),f.jsx("button",{onClick:()=>h(!d),style:{background:"none",border:"none",cursor:"pointer",color:"var(--studio-text-dimmed)",padding:"2px",display:"flex",alignItems:"center"},children:f.jsx(Ke,{content:d?"Collapse to shorthand":"Expand individual sides",children:f.jsx(S5,{style:{width:12,height:12,opacity:d?1:.5}})})})]}),d?f.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:["padding-top","padding-right","padding-bottom","padding-left"].map(X=>{const P=H(X),ee=X.replace("padding-","")[0].toUpperCase(),xe=`p${X.replace("padding-","")[0]}`,fe=(P==null?void 0:P.computedValue)||"0";return f.jsx(gt,{label:ee,value:(P==null?void 0:P.tailwindValue)||(fe==="0px"||fe==="0"?"—":fe),computedValue:fe,currentClass:(P==null?void 0:P.fullClass)||null,scale:Ue,prefix:xe,cssProp:X,onPreview:Ce=>i(X,Ce),onCommitClass:u},X)})}):j?f.jsx(gt,{icon:wl,value:((K=b[0])==null?void 0:K.tailwindValue)||(j==="0px"||j==="0"?"—":j),computedValue:j||"0",currentClass:((Z=b[0])==null?void 0:Z.fullClass)||null,scale:Ue,prefix:"p",cssProp:"padding",onPreview:X=>i("padding",X),onCommitClass:u,onCommitValue:X=>{const P=ac("padding",X);if(P)u(P.tailwindClass);else{const ee=kt("padding",X);u(ee?ee.tailwindClass:`p-[${X.trim()}]`)}}}):E?f.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[f.jsx(gt,{icon:wl,label:"X",value:E.x,computedValue:E.x,currentClass:null,scale:Ue,prefix:"px",cssProp:"padding-left",onPreview:X=>{i("padding-left",X),i("padding-right",X)},onCommitClass:u,onCommitValue:X=>{const{xClass:P}=rc("padding",X,E.y);if(P)u(P.tailwindClass);else{const ee=kt("padding-left",X);u(ee?ee.tailwindClass:`px-[${X.trim()}]`)}}}),f.jsx(gt,{icon:wl,label:"Y",value:E.y,computedValue:E.y,currentClass:null,scale:Ue,prefix:"py",cssProp:"padding-top",onPreview:X=>{i("padding-top",X),i("padding-bottom",X)},onCommitClass:u,onCommitValue:X=>{const{yClass:P}=rc("padding",E.x,X);if(P)u(P.tailwindClass);else{const ee=kt("padding-top",X);u(ee?ee.tailwindClass:`py-[${X.trim()}]`)}}})]}):f.jsx(E0,{icon:wl,value:O||"mixed",cssProp:"padding",onPreview:X=>i("padding",X),onCommit:X=>{const P=ac("padding",X);P&&u(P.tailwindClass)}})]}),C.length>0&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx(Tc,{label:"Margin"}),f.jsx("button",{onClick:()=>g(!x),style:{background:"none",border:"none",cursor:"pointer",color:"var(--studio-text-dimmed)",padding:"2px",display:"flex",alignItems:"center"},children:f.jsx(Ke,{content:x?"Collapse to shorthand":"Expand individual sides",children:f.jsx(S5,{style:{width:12,height:12,opacity:x?1:.5}})})})]}),x?f.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:["margin-top","margin-right","margin-bottom","margin-left"].map(X=>{const P=H(X),ee=X.replace("margin-","")[0].toUpperCase(),xe=`m${X.replace("margin-","")[0]}`,fe=(P==null?void 0:P.computedValue)||"0";return f.jsx(gt,{label:ee,value:(P==null?void 0:P.tailwindValue)||(fe==="0px"||fe==="0"?"—":fe),computedValue:fe,currentClass:(P==null?void 0:P.fullClass)||null,scale:Ue,prefix:xe,cssProp:X,onPreview:Ce=>i(X,Ce),onCommitClass:u},X)})}):M?f.jsx(gt,{icon:Cl,value:((ae=C[0])==null?void 0:ae.tailwindValue)||(M==="0px"||M==="0"?"—":M),computedValue:M||"0",currentClass:((ce=C[0])==null?void 0:ce.fullClass)||null,scale:Ue,prefix:"m",cssProp:"margin",onPreview:X=>i("margin",X),onCommitClass:u,onCommitValue:X=>{const P=ac("margin",X);if(P)u(P.tailwindClass);else{const ee=kt("margin",X);u(ee?ee.tailwindClass:`m-[${X.trim()}]`)}}}):T?f.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[f.jsx(gt,{icon:Cl,label:"X",value:T.x,computedValue:T.x,currentClass:null,scale:Ue,prefix:"mx",cssProp:"margin-left",onPreview:X=>{i("margin-left",X),i("margin-right",X)},onCommitClass:u,onCommitValue:X=>{const{xClass:P}=rc("margin",X,T.y);if(P)u(P.tailwindClass);else{const ee=kt("margin-left",X);u(ee?ee.tailwindClass:`mx-[${X.trim()}]`)}}}),f.jsx(gt,{icon:Cl,label:"Y",value:T.y,computedValue:T.y,currentClass:null,scale:Ue,prefix:"my",cssProp:"margin-top",onPreview:X=>{i("margin-top",X),i("margin-bottom",X)},onCommitClass:u,onCommitValue:X=>{const{yClass:P}=rc("margin",T.x,X);if(P)u(P.tailwindClass);else{const ee=kt("margin-top",X);u(ee?ee.tailwindClass:`my-[${X.trim()}]`)}}})]}):f.jsx(E0,{icon:Cl,value:$||"mixed",cssProp:"margin",onPreview:X=>i("margin",X),onCommit:X=>{const P=ac("margin",X);P&&u(P.tailwindClass)}})]}),S.length>0&&f.jsx(es,{properties:S,tokenGroups:r,onPreviewInlineStyle:i,onRevertInlineStyles:c,onCommitClass:u})]})}const nS=[{value:"left",icon:hp,label:"Left",tooltip:"Left — align text to left"},{value:"center",icon:N6,label:"Center",tooltip:"Center — center text"},{value:"right",icon:H6,label:"Right",tooltip:"Right — align text to right"},{value:"justify",icon:O6,label:"Justify",tooltip:"Justify — stretch to fill width"}],lS=[{value:"none",icon:gp,label:"None",tooltip:"None — no decoration"},{value:"underline",icon:xp,label:"Underline",tooltip:"Underline — line below text"},{value:"line-through",icon:E6,label:"Strikethrough",tooltip:"Strikethrough — line through text"}],aS=[{value:"none",icon:gp,label:"None",tooltip:"None — no transform"},{value:"uppercase",icon:op,label:"Uppercase",tooltip:"Uppercase — ALL CAPS"},{value:"lowercase",icon:t6,label:"Lowercase",tooltip:"Lowercase — all lowercase"},{value:"capitalize",icon:Ig,label:"Capitalize",tooltip:"Capitalize — First Letter"}],rS=["sans","serif","mono"];function oS({properties:t,tokenGroups:a,onPreviewInlineStyle:r,onRevertInlineStyles:i,onCommitClass:c}){const u=N=>t.find(O=>O.cssProperty===N),d=u("font-family"),h=u("font-size"),x=u("font-weight"),g=u("line-height"),y=u("letter-spacing"),b=u("text-align"),C=u("text-decoration"),S=u("text-transform"),j=(N,O)=>{r(N,O);const $=kt(N,O);if($){const H=u(N),K=(H==null?void 0:H.fullClass)||void 0;c($.tailwindClass,K)}},M=["font-family","font-size","font-weight","line-height","letter-spacing","text-align","text-decoration","text-transform"],E=t.filter(N=>N.hasValue&&!M.includes(N.cssProperty)),T=t.filter(N=>!N.hasValue&&!M.includes(N.cssProperty));return f.jsxs(f.Fragment,{children:[d&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Font Family",inherited:d.inherited}),f.jsx(gt,{icon:np,value:d.tailwindValue||d.computedValue,computedValue:d.computedValue,currentClass:d.fullClass,scale:rS,prefix:"font",cssProp:"font-family",onPreview:N=>r("font-family",N),onCommitClass:c})]}),(h||x)&&f.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[h&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Size",inherited:h.inherited}),f.jsx(gt,{icon:lp,value:h.tailwindValue||h.computedValue,computedValue:h.computedValue,currentClass:h.fullClass,scale:df,prefix:"text",cssProp:"font-size",onPreview:N=>r("font-size",N),onCommitClass:c})]}),x&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Weight",inherited:x.inherited}),f.jsx(gt,{icon:tp,value:x.tailwindValue||x.computedValue,computedValue:x.computedValue,currentClass:x.fullClass,scale:pf,prefix:"font",cssProp:"font-weight",onPreview:N=>r("font-weight",N),onCommitClass:c})]})]}),(g||y)&&f.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[g&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Leading",inherited:g.inherited}),f.jsx(gt,{icon:cp,value:g.tailwindValue||g.computedValue,computedValue:g.computedValue,currentClass:g.fullClass,scale:vh,prefix:"leading",cssProp:"line-height",onPreview:N=>r("line-height",N),onCommitClass:c})]}),y&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Tracking",inherited:y.inherited}),f.jsx(gt,{icon:ip,value:y.tailwindValue||y.computedValue,computedValue:y.computedValue,currentClass:y.fullClass,scale:yh,prefix:"tracking",cssProp:"letter-spacing",onPreview:N=>r("letter-spacing",N),onCommitClass:c})]})]}),b&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Text Align",inherited:b.inherited}),f.jsx(Wa,{options:nS,value:b.computedValue,onChange:N=>j("text-align",N)})]}),C&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Decoration",inherited:C.inherited}),f.jsx(Wa,{options:lS,value:C.computedValue,onChange:N=>j("text-decoration",N)})]}),S&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Transform",inherited:S.inherited}),f.jsx(Wa,{options:aS,value:S.computedValue,onChange:N=>j("text-transform",N)})]}),E.map(N=>f.jsx(Bt,{prop:N,tokenGroups:a,onPreviewInlineStyle:r,onRevertInlineStyles:i,onCommitClass:c},N.cssProperty)),T.length>0&&f.jsx(es,{properties:T,tokenGroups:a,onPreviewInlineStyle:r,onRevertInlineStyles:i,onCommitClass:c})]})}function iS({properties:t,computedStyles:a,tokenGroups:r,onPreviewInlineStyle:i,onRevertInlineStyles:c,onCommitClass:u}){var C,S,j,M;const d=t.filter(E=>E.hasValue),h=d.filter(E=>E.cssProperty.includes("radius")),x=d.filter(E=>E.cssProperty.includes("width")),g=d.filter(E=>!E.cssProperty.includes("radius")&&!E.cssProperty.includes("width")),y=Mc(a,"border-radius"),b=Mc(a,"border-width");return f.jsxs(f.Fragment,{children:[h.length>0&&f.jsxs(f.Fragment,{children:[f.jsx(Tc,{label:"Radius"}),y?f.jsx(gt,{icon:I3,value:((C=h[0])==null?void 0:C.tailwindValue)||(y==="0px"||y==="0"?"—":y),computedValue:y||"0",currentClass:((S=h[0])==null?void 0:S.fullClass)||null,scale:xh,prefix:"rounded",cssProp:"border-radius",onPreview:E=>i("border-radius",E),onCommitClass:u}):f.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:h.map(E=>f.jsx(Bt,{prop:E,tokenGroups:r,onPreviewInlineStyle:i,onRevertInlineStyles:c,onCommitClass:u},E.cssProperty))})]}),f.jsx(Tc,{label:"Width"}),b||x.length===0?f.jsx(gt,{icon:Ka,value:((j=x[0])==null?void 0:j.tailwindValue)||(!b||b==="0px"||b==="0"?"—":b),computedValue:b||"0px",currentClass:((M=x[0])==null?void 0:M.fullClass)||null,scale:iw,prefix:"border",cssProp:"border-width",onPreview:E=>i("border-width",E),onCommitClass:(E,T)=>{u(E==="border-1"?"border":E,T)}}):x.map(E=>f.jsx(Bt,{prop:E,tokenGroups:r,onPreviewInlineStyle:i,onRevertInlineStyles:c,onCommitClass:u},E.cssProperty)),g.map(E=>f.jsx(Bt,{prop:E,tokenGroups:r,onPreviewInlineStyle:i,onRevertInlineStyles:c,onCommitClass:u},E.cssProperty))]})}const l0=["none","2xs","xs","sm","","md","lg","xl","2xl"];function cS({properties:t,tokenGroups:a,shadows:r,gradients:i,elementClassName:c,onPreviewInlineStyle:u,onRevertInlineStyles:d,onCommitClass:h}){const x=t.find(S=>S.cssProperty==="opacity"),g=t.find(S=>S.cssProperty==="box-shadow"),y=t.find(S=>S.cssProperty==="background-image"),b=t.find(S=>S.cssProperty==="transform"),C=t.filter(S=>!["opacity","box-shadow","background-image","transform"].includes(S.cssProperty)&&S.hasValue);return f.jsxs(f.Fragment,{children:[x&&f.jsxs("div",{children:[f.jsx(Ge,{label:x.label,inherited:x.inherited}),f.jsx(jh,{value:x.computedValue,onPreview:S=>u("opacity",S),onCommitClass:h})]}),g&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Shadow",inherited:g.inherited}),f.jsx(sS,{prop:g,shadows:r,elementClassName:c,onPreviewInlineStyle:u,onCommitClass:h})]}),y&&y.hasValue&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Gradient",inherited:y.inherited}),f.jsx(k3,{prop:y,gradients:i,elementClassName:c,onPreviewInlineStyle:u,onCommitClass:h})]}),!y&&i&&i.length>0&&f.jsxs("div",{children:[f.jsx(Ge,{label:"Gradient",inherited:!1}),f.jsx(k3,{prop:null,gradients:i,elementClassName:c,onPreviewInlineStyle:u,onCommitClass:h})]}),b&&b.hasValue&&f.jsx(Bt,{prop:b,tokenGroups:a,onPreviewInlineStyle:u,onRevertInlineStyles:d,onCommitClass:h}),C.map(S=>f.jsx(Bt,{prop:S,tokenGroups:a,onPreviewInlineStyle:u,onRevertInlineStyles:d,onCommitClass:h},S.cssProperty))]})}function sS({prop:t,shadows:a,elementClassName:r,onPreviewInlineStyle:i,onCommitClass:c}){const u=t.computedValue,d=!u||u==="none",h=(()=>{if(t.tailwindValue)return{name:t.tailwindValue,cls:t.fullClass||void 0};if(d)return{name:"none",cls:void 0};const b=r.split(/\s+/).filter(Boolean);for(const C of b){const S=C.match(/^shadow-\[var\((--[\w-]+)\)\]$/);if(S){const M=S[1],E=a==null?void 0:a.find(T=>T.cssVariable===M);if(E)return{name:E.name,cls:C}}const j=C.match(/^shadow(?:-(2xs|xs|sm|md|lg|xl|2xl|none))?$/);if(j)return{name:j[1]||"",cls:C}}return null})(),x=(h==null?void 0:h.name)??null,g=h==null?void 0:h.cls,y=b=>{const C=g||t.fullClass||void 0;if(b==="none"){i("box-shadow","none"),c("shadow-none",C);return}if(l0.includes(b)){const j=b===""?"shadow":`shadow-${b}`,M=a==null?void 0:a.find(E=>E.name===`shadow-${b}`||E.name===b);M&&i("box-shadow",M.value),c(j,C);return}const S=a==null?void 0:a.find(j=>j.name===b);if(S)if(i("box-shadow",S.value),S.cssVariable)c(`shadow-[var(${S.cssVariable})]`,C);else{const j=b.startsWith("shadow-")?b:`shadow-${b}`;c(j,C)}};return f.jsxs("div",{className:"studio-scrub-input",children:[f.jsx(Ke,{content:"box-shadow",side:"left",children:f.jsx("div",{className:"studio-scale-icon",children:f.jsx(pp,{style:{width:12,height:12}})})}),f.jsxs("select",{value:x||"__current__",onChange:b=>y(b.target.value),style:{flex:1,minWidth:0,background:"transparent",border:"none",color:"var(--studio-text)",fontFamily:'"SF Mono", "Fira Code", "Cascadia Code", monospace',fontSize:"11px",padding:"6px 8px",outline:"none",cursor:"pointer",WebkitAppearance:"none"},children:[x===null&&f.jsx("option",{value:"__current__",children:u.length>30?u.slice(0,30)+"...":u}),f.jsx("option",{value:"none",children:"none"}),f.jsx("optgroup",{label:"Scale",children:l0.filter(b=>b!=="none").map(b=>f.jsx("option",{value:b,children:b===""?"shadow (default)":b},b||"__default__"))}),a&&a.length>0&&f.jsx("optgroup",{label:"Project Shadows",children:a.filter(b=>!l0.includes(b.name.replace(/^shadow-?/,""))).map(b=>f.jsx("option",{value:b.name,children:b.name},b.name))})]})]})}function k3({prop:t,gradients:a,elementClassName:r,onPreviewInlineStyle:i,onCommitClass:c}){const u=(t==null?void 0:t.computedValue)||"none",d=u!=="none"&&u.includes("gradient"),h=(()=>{if(t!=null&&t.fullClass)return{name:null,cls:t.fullClass};const b=r.split(/\s+/).filter(Boolean);for(const C of b){const S=C.match(/^bg-\[(?:image:)?var\((--[\w-]+)\)\]$/);if(S){const j=S[1],M=a==null?void 0:a.find(E=>E.cssVariable===j);if(M)return{name:M.name,cls:C}}}return null})(),x=(h==null?void 0:h.cls)||(t==null?void 0:t.fullClass)||void 0,g=h==null?void 0:h.name,y=b=>{if(b==="none"){i("background-image","none"),c("bg-none",x);return}const C=a==null?void 0:a.find(S=>S.name===b);C&&(i("background-image",C.value),c(`bg-[image:var(${C.cssVariable})]`,x))};return f.jsxs("div",{className:"studio-scrub-input",children:[f.jsx(Ke,{content:"background-image (gradient)",side:"left",children:f.jsx("div",{className:"studio-scale-icon",children:f.jsx("div",{style:{width:12,height:12,borderRadius:2,background:d?u:"linear-gradient(135deg, var(--studio-accent), transparent)",opacity:d?1:.5}})})}),f.jsxs("select",{value:g||(d?"__current__":"none"),onChange:b=>y(b.target.value),style:{flex:1,minWidth:0,background:"transparent",border:"none",color:"var(--studio-text)",fontFamily:'"SF Mono", "Fira Code", "Cascadia Code", monospace',fontSize:"11px",padding:"6px 8px",outline:"none",cursor:"pointer",WebkitAppearance:"none"},children:[f.jsx("option",{value:"none",children:"none"}),d&&!g&&f.jsx("option",{value:"__current__",children:u.length>30?u.slice(0,30)+"...":u}),a&&a.length>0&&f.jsx("optgroup",{label:"Project Gradients",children:a.map(b=>f.jsx("option",{value:b.name,children:b.name},b.name))})]})]})}function es({properties:t,tokenGroups:a,onPreviewInlineStyle:r,onRevertInlineStyles:i,onCommitClass:c}){const[u,d]=m.useState(new Set);return f.jsx(f.Fragment,{children:t.map(h=>u.has(h.cssProperty)?f.jsx(Bt,{prop:{...h,hasValue:!0},tokenGroups:a,onPreviewInlineStyle:r,onRevertInlineStyles:i,onCommitClass:c},h.cssProperty):f.jsxs("button",{onClick:()=>d(x=>new Set(x).add(h.cssProperty)),className:"studio-addable-row",children:[f.jsx("span",{className:"studio-addable-label",children:h.label}),f.jsx(_c,{style:{width:12,height:12,flexShrink:0}})]},h.cssProperty))})}const uS={"font-size":{scale:df,prefix:"text"},"font-weight":{scale:pf,prefix:"font"},"line-height":{scale:vh,prefix:"leading"},"letter-spacing":{scale:yh,prefix:"tracking"},gap:{scale:Ue,prefix:"gap"},"row-gap":{scale:Ue,prefix:"gap-y"},"column-gap":{scale:Ue,prefix:"gap-x"},"padding-top":{scale:Ue,prefix:"pt"},"padding-right":{scale:Ue,prefix:"pr"},"padding-bottom":{scale:Ue,prefix:"pb"},"padding-left":{scale:Ue,prefix:"pl"},"margin-top":{scale:Ue,prefix:"mt"},"margin-right":{scale:Ue,prefix:"mr"},"margin-bottom":{scale:Ue,prefix:"mb"},"margin-left":{scale:Ue,prefix:"ml"},width:{scale:Ue,prefix:"w"},height:{scale:Ue,prefix:"h"}};function Bt({prop:t,tokenGroups:a,onPreviewInlineStyle:r,onRevertInlineStyles:i,onCommitClass:c}){if(t.controlType==="color")return f.jsx(dS,{prop:t,tokenGroups:a,onPreviewInlineStyle:r,onCommitClass:c});if(t.controlType==="readonly"){const d=a0(t.cssProperty);return f.jsxs("div",{children:[f.jsx(Ge,{label:t.label,inherited:t.inherited}),f.jsxs("div",{className:"studio-scrub-input",children:[d&&f.jsx(Ke,{content:t.cssProperty,side:"left",children:f.jsx("div",{className:"studio-scale-icon",children:f.jsx(d,{style:{width:12,height:12}})})}),f.jsx(Ke,{content:t.computedValue,side:"bottom",children:f.jsx("div",{className:"studio-scrub-value",style:{color:"var(--studio-text)",cursor:"default"},children:t.computedValue})})]})]})}if(t.tokenMatch)return f.jsxs("div",{children:[f.jsx(Ge,{label:t.label,inherited:t.inherited}),f.jsx(fS,{prop:t,onPreviewInlineStyle:r,onCommitClass:c})]});if(t.cssProperty==="opacity")return f.jsxs("div",{children:[f.jsx(Ge,{label:t.label,inherited:t.inherited}),f.jsx(jh,{value:t.computedValue,onPreview:d=>r("opacity",d),onCommitClass:c})]});const u=uS[t.cssProperty];if(u){const h=!t.tailwindValue&&(t.computedValue==="0px"||t.computedValue==="0")?"—":t.tailwindValue||t.computedValue;return f.jsxs("div",{children:[f.jsx(Ge,{label:t.label,inherited:t.inherited}),f.jsx(gt,{icon:a0(t.cssProperty),value:h,computedValue:t.computedValue,currentClass:t.fullClass,scale:u.scale,prefix:u.prefix,cssProp:t.cssProperty,onPreview:x=>r(t.cssProperty,x),onCommitClass:c})]})}return t.controlType==="keyword"?f.jsxs("div",{children:[f.jsx(Ge,{label:t.label,inherited:t.inherited}),f.jsx(pS,{prop:t,onPreviewInlineStyle:r,onCommitClass:c})]}):f.jsxs("div",{children:[f.jsx(Ge,{label:t.label,inherited:t.inherited}),f.jsx(E0,{icon:a0(t.cssProperty),value:t.computedValue,cssProp:t.cssProperty,onPreview:d=>r(t.cssProperty,d),onCommit:d=>{const h=kt(t.cssProperty,d);h&&c(h.tailwindClass)}})]})}function gt({icon:t,label:a,value:r,computedValue:i,currentClass:c,scale:u,prefix:d,cssProp:h,onPreview:x,onCommitClass:g,onCommitValue:y}){const b=r.startsWith(d+"-")?r.slice(d.length+1):r,C=u.includes(b),S=b==="—"||b==="",[j,M]=m.useState(!C&&!S&&b!=="0"&&b!=="0px"),[E,T]=m.useState(j?i:b),[N,O]=m.useState(!1),$=m.useRef(c),H=m.useRef(null);m.useEffect(()=>{$.current=c},[c]),m.useEffect(()=>{H.current!==null&&(H.current=null)},[i]),m.useEffect(()=>{N||T(j?i:b)},[b,i,N,j]);const K=()=>$.current||c||void 0,Z=A=>{if(A==="__custom__"){M(!0),T(i);return}const B=`${d}-${A}`,J=K();g(B,J),$.current=B},ae=A=>{const B=A.trim();if(!B)return;const J=K();if(H.current=B,u.includes(B)){const R=`${d}-${B}`;g(R,J),$.current=R;return}const ie=kt(h,B);if(ie&&ie.exact){g(ie.tailwindClass,J),$.current=ie.tailwindClass;return}const pe=ie?ie.tailwindClass:`${d}-[${B}]`;g(pe,J),$.current=pe},ce=m.useRef(null),[X,P]=m.useState(!1),ee=m.useRef(E);ee.current=E;const xe=j?N?E:H.current||i:null,fe=j&&xe!==null&&Ec(xe)!==null,Ce=A=>{if(!xe)return;const B=Ec(xe);if(!B)return;A.preventDefault(),ce.current={startX:A.clientX,startVal:B.num,unit:B.unit},P(!0);const J=Sh(B.unit),ie=R=>{if(!ce.current)return;const q=R.shiftKey?10:1,I=Math.round((R.clientX-ce.current.startX)/2),te=ce.current.startVal+I*J*q,W=ce.current.unit?`${parseFloat(te.toFixed(4))}${ce.current.unit}`:`${Math.round(te)}`;T(W),ee.current=W,x&&x(W)},pe=()=>{if(document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",pe),ce.current){const R=ee.current;y?y(R):ae(R),ce.current=null}P(!1)};document.addEventListener("pointermove",ie),document.addEventListener("pointerup",pe)};return f.jsxs("div",{className:"studio-scale-input",style:j?{borderLeft:"2px solid var(--studio-accent)"}:void 0,children:[t&&f.jsx(Ke,{content:a||h,side:"left",children:f.jsx("div",{className:fe?"studio-scrub-icon":"studio-scale-icon",onPointerDown:fe?Ce:void 0,children:f.jsx(t,{style:{width:12,height:12}})})}),!t&&a&&f.jsx(Ke,{content:h,side:"left",children:f.jsx("div",{className:fe?"studio-scrub-label":"studio-scale-label",onPointerDown:fe?Ce:void 0,children:a})}),j?f.jsx("input",{type:"text",value:N||X?E:H.current||i,placeholder:"e.g. 16px",onChange:A=>{T(A.target.value)},onFocus:()=>{T(i),O(!0)},onBlur:()=>{O(!1);const A=E.trim();A&&A!==i&&(y?y(A):ae(A))},onKeyDown:A=>{A.key==="Enter"&&A.target.blur(),A.key==="Escape"&&(T(i),O(!1))},style:{flex:1,minWidth:0,background:"transparent",border:"none",color:"var(--studio-text)",fontFamily:'"SF Mono", "Fira Code", "Cascadia Code", monospace',fontSize:"11px",padding:"6px 8px",outline:"none"}}):f.jsxs("select",{value:C?b:"__custom__",onChange:A=>Z(A.target.value),style:{flex:1,minWidth:0,background:"transparent",border:"none",color:"var(--studio-text)",fontFamily:'"SF Mono", "Fira Code", "Cascadia Code", monospace',fontSize:"11px",padding:"6px 8px",outline:"none",cursor:"pointer",WebkitAppearance:"none"},children:[!C&&f.jsx("option",{value:"__custom__",children:b||"—"}),u.map(A=>f.jsx("option",{value:A,children:A},A))]}),f.jsx(Ke,{content:j?"Custom CSS value — click to use token scale":"Token scale — click to enter custom CSS value",side:"bottom",children:f.jsx("button",{onClick:()=>{M(!j),j||T(i)},className:`studio-scale-toggle${j?" active":""}`,children:j?f.jsx(Sg,{style:{width:12,height:12}}):f.jsx(k6,{style:{width:12,height:12}})})})]})}function E0({icon:t,label:a,value:r,cssProp:i,onPreview:c,onCommit:u}){const[d,h]=m.useState(r),[x,g]=m.useState(!1),[y,b]=m.useState(!1),C=m.useRef(null),S=m.useRef(d);S.current=d;const j=m.useRef(null),M=m.useRef(null);m.useEffect(()=>{!x&&!y&&h(r),M.current!==null&&(M.current=null)},[r,x,y]);const E=x||y?d:M.current||r,T=Ec(E)!==null,N=O=>{const $=Ec(E);if(!$)return;O.preventDefault(),C.current={startX:O.clientX,startVal:$.num,unit:$.unit},b(!0);const H=Sh($.unit),K=ae=>{if(!C.current)return;const ce=ae.shiftKey?10:1,X=Math.round((ae.clientX-C.current.startX)/2),P=C.current.startVal+X*H*ce,ee=C.current.unit?`${parseFloat(P.toFixed(4))}${C.current.unit}`:`${Math.round(P)}`;h(ee),S.current=ee,c(ee)},Z=()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",Z),C.current&&(M.current=S.current,u(S.current),C.current=null),b(!1)};document.addEventListener("pointermove",K),document.addEventListener("pointerup",Z)};return f.jsxs("div",{className:"studio-scrub-input",children:[t&&f.jsx(Ke,{content:a||i,side:"left",children:f.jsx("div",{className:T?"studio-scrub-icon":"studio-scrub-icon no-scrub",onPointerDown:T?N:void 0,children:f.jsx(t,{style:{width:12,height:12}})})}),!t&&a&&f.jsx(Ke,{content:i,side:"left",children:f.jsx("div",{className:T?"studio-scrub-label":"studio-scrub-label no-scrub",onPointerDown:T?N:void 0,children:a})}),f.jsx("input",{ref:j,type:"text",value:E,placeholder:i,onChange:O=>{h(O.target.value)},onFocus:()=>{h(r),g(!0)},onBlur:()=>{g(!1);const O=d.trim();O&&O!==r&&(M.current=O,u(O))},onKeyDown:O=>{O.key==="Enter"&&O.target.blur(),O.key==="Escape"&&(h(r),g(!1))},className:"studio-scrub-value"})]})}function jh({value:t,onPreview:a,onCommitClass:r}){const i=h=>{const x=parseFloat(h);return isNaN(x)?100:x<=1&&h!=="100"?Math.round(x*100):Math.round(x)},[c,u]=m.useState(()=>i(t));m.useEffect(()=>{u(i(t))},[t]);const d=h=>{const x=cw.reduce((g,y)=>Math.abs(parseInt(y)-h)<Math.abs(parseInt(g)-h)?y:g);r(`opacity-${x}`)};return f.jsxs("div",{className:"studio-scrub-input",style:{gap:6},children:[f.jsx(Ke,{content:"Opacity",side:"left",children:f.jsx("div",{className:"studio-scrub-icon",children:f.jsx(up,{style:{width:12,height:12}})})}),f.jsx("input",{type:"range",min:0,max:100,step:5,value:c,onChange:h=>{const x=parseInt(h.target.value);u(x),a(`${x/100}`)},onMouseUp:()=>d(c),onKeyUp:h=>{(h.key==="ArrowLeft"||h.key==="ArrowRight")&&d(c)},style:{flex:1,accentColor:"var(--studio-accent)",cursor:"pointer",height:14}}),f.jsxs("span",{className:"studio-scrub-value",style:{width:32,textAlign:"right",fontSize:11,fontFamily:'"SF Mono", "Fira Code", "Cascadia Code", monospace',color:"var(--studio-text)",flexShrink:0},children:[c,"%"]})]})}function a0(t){return{width:b1,height:y1,"min-width":b1,"min-height":y1,"max-width":b1,"max-height":y1,"padding-top":wl,"padding-right":wl,"padding-bottom":wl,"padding-left":wl,"margin-top":Cl,"margin-right":Cl,"margin-bottom":Cl,"margin-left":Cl,gap:j5,"row-gap":x6,"column-gap":j5,"font-family":np,"font-size":lp,"font-weight":tp,"line-height":cp,"letter-spacing":ip,"text-align":hp,"text-decoration":xp,"text-transform":op,"border-top-width":Ka,"border-right-width":Ka,"border-bottom-width":Ka,"border-left-width":Ka,"border-top-left-radius":Og,"border-top-right-radius":zg,"border-bottom-left-radius":_g,"border-bottom-right-radius":Ng,opacity:up,"box-shadow":pp,"z-index":rp,top:qi,right:qi,bottom:qi,left:qi}[t]}function Ge({label:t,inherited:a}){return f.jsxs("div",{className:"text-[10px] font-medium mb-1.5",style:{color:"var(--studio-text-dimmed)",letterSpacing:"0.03em"},children:[t,a&&f.jsx("span",{className:"ml-1 text-[10px] italic",style:{color:"var(--studio-text-dimmed)"},children:"inherited"})]})}function Tc({label:t}){return f.jsx("div",{className:"text-[11px] font-medium tracking-wider mt-1 mb-1",style:{color:"var(--studio-text-dimmed)"},children:t})}function Wa({options:t,value:a,onChange:r}){const[i,c]=m.useState(a);return m.useEffect(()=>{c(a)},[a]),f.jsx("div",{className:"studio-segmented",style:{width:"100%"},children:t.map(u=>f.jsx(Ke,{content:u.tooltip||u.label||u.value,side:"bottom",children:f.jsx("button",{onClick:()=>{c(u.value),r(u.value)},className:i===u.value?"active":"",style:{flex:1,cursor:"pointer"},children:u.icon?f.jsx(u.icon,{style:{width:14,height:14}}):f.jsx("span",{style:{fontSize:10},children:u.label||u.value})})},u.value))})}function fS({prop:t,onPreviewInlineStyle:a,onCommitClass:r}){const i=t.tokenMatch,c=hS[t.cssProperty]||"";return f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(Ke,{content:"Design token",side:"left",children:f.jsx("div",{className:"shrink-0 w-1.5 h-4 rounded-sm",style:{background:"var(--studio-accent)"}})}),f.jsx("select",{value:i.tokenName,onChange:u=>{const d=u.target.value,h=i.groupTokens.find(x=>x.name===d);h&&a(t.cssProperty,h.value),c&&r(`${c}-${d}`)},className:"studio-select w-full",style:{cursor:"pointer"},children:i.groupTokens.map(u=>f.jsxs("option",{value:u.name,children:[u.name," (",u.value,")"]},u.name))})]})}function dS({prop:t,tokenGroups:a,onPreviewInlineStyle:r,onCommitClass:i}){const[c,u]=m.useState(!1),d=m.useRef(null),h=[],x={};for(const[,b]of Object.entries(a))for(const C of b)if(C.category==="color"){const S=C.name.replace(/^--/,"");h.includes(S)||h.push(S),x[S]||(x[S]=C.lightValue||"")}const g=t.cssProperty==="color"?"text":t.cssProperty==="background-color"?"bg":"border",y=!!t.tokenMatch;return f.jsxs("div",{children:[f.jsx(Ge,{label:t.label,inherited:t.inherited}),f.jsxs("button",{ref:d,onClick:()=>u(!0),className:"studio-color-trigger",style:{cursor:"pointer"},children:[f.jsx(Ke,{content:y?"Design token":void 0,side:"left",children:f.jsx("div",{className:"studio-swatch",style:{"--swatch-color":t.computedValue,...y?{boxShadow:"0 0 0 2px var(--studio-accent)"}:{}}})}),f.jsx("span",{className:"flex-1 truncate text-left font-mono text-[11px]",children:y?t.tokenMatch.tokenName:t.tailwindValue||t.computedValue}),f.jsx(Ft,{})]}),c&&f.jsx(uh,{anchorRef:d,currentValue:y?t.tokenMatch.tokenName:"",availableTokens:h,tokenValues:x,onSelect:b=>{i(`${g}-${b}`),u(!1)},onClose:()=>u(!1)})]})}function pS({prop:t,onPreviewInlineStyle:a,onCommitClass:r}){const i=gS(t.cssProperty);return i.length===0?f.jsx("div",{className:"text-[11px] font-mono truncate",style:{color:"var(--studio-text)"},children:t.computedValue}):f.jsxs("select",{value:t.computedValue,onChange:c=>{a(t.cssProperty,c.target.value);const u=kt(t.cssProperty,c.target.value);u&&r(u.tailwindClass)},className:"studio-select w-full",style:{cursor:"pointer"},children:[!i.includes(t.computedValue)&&f.jsx("option",{value:t.computedValue,children:t.computedValue}),i.map(c=>f.jsx("option",{value:c,children:c},c))]})}const hS={"font-size":"text","font-weight":"font","font-family":"font","line-height":"leading","letter-spacing":"tracking","padding-top":"pt","padding-right":"pr","padding-bottom":"pb","padding-left":"pl","margin-top":"mt","margin-right":"mr","margin-bottom":"mb","margin-left":"ml",gap:"gap","row-gap":"gap-y","column-gap":"gap-x",width:"w",height:"h","border-top-left-radius":"rounded-tl","border-top-right-radius":"rounded-tr","border-bottom-right-radius":"rounded-br","border-bottom-left-radius":"rounded-bl",color:"text","background-color":"bg","border-color":"border"};function gS(t){switch(t){case"display":return["block","inline-block","inline","flex","inline-flex","grid","inline-grid","none"];case"position":return["static","relative","absolute","fixed","sticky"];case"flex-direction":return["row","row-reverse","column","column-reverse"];case"flex-wrap":return["nowrap","wrap","wrap-reverse"];case"justify-content":return["flex-start","flex-end","center","space-between","space-around","space-evenly"];case"align-items":return["flex-start","flex-end","center","baseline","stretch"];case"align-self":return["auto","flex-start","flex-end","center","stretch"];case"overflow":return["visible","hidden","scroll","auto"];case"text-align":return["left","center","right","justify"];case"text-transform":return["none","uppercase","lowercase","capitalize"];case"text-decoration":return["none","underline","overline","line-through"];case"white-space":return["normal","nowrap","pre","pre-wrap","pre-line"];default:return[]}}function mS(t,a,r){const i=new URLSearchParams({file:t});a!=null&&i.set("line",String(a)),r!=null&&i.set("col",String(r)),fetch(`/api/open-file?${i}`).catch(console.error)}function xS({element:t,theme:a,iframePath:r,onPreviewToken:i,onPreviewShadow:c,onPreviewInlineStyle:u,onRevertInlineStyles:d,onClose:h,onReselectElement:x,onToggleUsagePanel:g,onIsolate:y}){var J,ie,pe,R,q,I,te;const b=To(),C=uf(),S=((J=t==null?void 0:t.attributes)==null?void 0:J["data-slot"])||null,j=!!S,M=S?(C==null?void 0:C.byDataSlot.get(S))??null:null,E=j?["token","component","instance"]:["token","instance"],[T,N]=m.useState("token");m.useEffect(()=>{t&&N(j?"component":"instance")},[(ie=t==null?void 0:t.source)==null?void 0:ie.file,(pe=t==null?void 0:t.source)==null?void 0:pe.line,(R=t==null?void 0:t.source)==null?void 0:R.col]);const[O,$]=m.useState("props"),[H,K]=m.useState("props"),[Z,ae]=m.useState(!1),ce=m.useRef(Promise.resolve()),X=t?j?(M==null?void 0:M.name)||S:`<${t.tag}>`:null,P=jS((t==null?void 0:t.className)||"",b),[ee,xe]=m.useState(null),[fe,Ce]=m.useState(0);m.useEffect(()=>{if(!j||!(t!=null&&t.instanceSource)||!(t!=null&&t.componentName)){xe(null);return}const W=t.instanceSource,le=new URLSearchParams({file:W.file,line:String(W.line),componentName:t.componentName});W.col!=null&&le.set("col",String(W.col)),fetch(`/api/write-element/instance-props?${le}`).then(de=>de.json()).then(de=>xe(de.props??null)).catch(()=>xe(null))},[(q=t==null?void 0:t.instanceSource)==null?void 0:q.file,(I=t==null?void 0:t.instanceSource)==null?void 0:I.line,(te=t==null?void 0:t.instanceSource)==null?void 0:te.col,t==null?void 0:t.componentName,j,fe]);const A=async W=>{const le=ce.current.then(async()=>{ae(!0);try{await W(),setTimeout(()=>{x(),d()},500)}catch(de){console.error("Write error:",de)}finally{setTimeout(()=>ae(!1),1200)}});return ce.current=le,le},B={token:{icon:sp,label:"Tokens"},component:{icon:fo,label:"Component"},instance:{icon:j?ep:r0,label:j?"Instance":"Element"}};return f.jsxs("div",{className:"flex flex-col border-l studio-scrollbar overflow-y-auto",style:{width:350,minWidth:350,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:[t&&f.jsxs("div",{className:"border-b shrink-0",style:{borderColor:"var(--studio-border)"},children:[f.jsxs("div",{className:"flex items-center gap-2 px-4 pt-3 pb-1",children:[f.jsx("div",{className:"w-5 h-5 rounded flex items-center justify-center shrink-0",style:{background:"var(--studio-accent-muted)"},children:j?f.jsx(fo,{style:{width:12,height:12,color:"var(--studio-accent)"}}):f.jsx(r0,{style:{width:12,height:12,color:"var(--studio-accent)"}})}),f.jsx("span",{className:"text-[12px] font-semibold truncate flex-1 min-w-0",style:{color:"var(--studio-text)"},children:X}),Z&&f.jsxs("span",{className:"flex items-center gap-0.5 text-[10px] shrink-0",style:{color:"var(--studio-success)"},children:[f.jsx(uo,{style:{width:10,height:10}}),"Saved"]}),f.jsxs("div",{className:"flex items-center shrink-0",style:{gap:2},children:[j&&g&&f.jsx(Ke,{content:"View usage across pages",children:f.jsx("button",{onClick:g,className:"studio-icon-btn",style:{width:24,height:24},children:f.jsx(rp,{})})}),j&&y&&M&&f.jsx(Ke,{content:"Isolate component",children:f.jsx("button",{onClick:()=>y(M),className:"studio-icon-btn",style:{width:24,height:24},children:f.jsx(B6,{})})}),j&&t.instanceSource&&t.componentName&&f.jsx(Ke,{content:"Reset instance overrides",children:f.jsx("button",{onClick:()=>{!t.instanceSource||!t.componentName||A(async()=>{await SS(t.instanceSource,t.componentName)})},className:"studio-icon-btn",style:{width:24,height:24},children:f.jsx(g6,{})})}),f.jsx("button",{onClick:h,className:"studio-icon-btn",style:{width:24,height:24},children:f.jsx(O0,{})})]})]}),t.source&&f.jsx("div",{className:"px-4 pb-2.5 pt-0.5",children:f.jsxs("button",{onClick:()=>mS(t.source.file,t.source.line,t.source.col),className:"text-[10px] font-mono truncate block text-left w-full",style:{color:"var(--studio-text-dimmed)",background:"none",border:"none",padding:0,cursor:"pointer"},onMouseEnter:W=>W.currentTarget.style.textDecoration="underline",onMouseLeave:W=>W.currentTarget.style.textDecoration="none",title:"Open in editor",children:[t.source.file,":",t.source.line,":",t.source.col]})})]}),!t&&f.jsx(yS,{}),t&&f.jsx("div",{className:"px-4 py-2.5 shrink-0",style:{borderColor:"var(--studio-border)"},children:f.jsx("div",{className:"studio-segmented",style:{width:"100%"},children:E.map(W=>{const le=B[W];return f.jsxs("button",{onClick:()=>N(W),className:T===W?"active":"",style:{flex:1},children:[f.jsx(le.icon,{style:{width:12,height:12}}),le.label]},W)})})}),f.jsxs("div",{className:"flex-1 overflow-y-auto studio-scrollbar",children:[!t&&f.jsxs("div",{children:[f.jsxs("div",{className:"px-4 pt-3 pb-3",children:[f.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wide mb-1",style:{color:"var(--studio-text-muted)"},children:"Design Tokens"}),f.jsx("p",{className:"text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"Global design tokens defined in your project. Edit values here to update every usage at once."})]}),f.jsx(N3,{tokenRefs:P,theme:a,onPreviewToken:i,onPreviewShadow:c})]}),T==="token"&&t&&f.jsx(N3,{tokenRefs:P,theme:a,onPreviewToken:i,onPreviewShadow:c}),T==="component"&&t&&j&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"px-4 py-2 border-t",style:{borderColor:"var(--studio-border)"},children:f.jsxs("div",{className:"studio-segmented",style:{width:"100%"},children:[f.jsx("button",{onClick:()=>$("props"),className:O==="props"?"active":"",style:{flex:1},children:"Props"}),f.jsx("button",{onClick:()=>$("styles"),className:O==="styles"?"active":"",style:{flex:1},children:"Styles"})]})}),O==="styles"&&f.jsx("div",{className:"",children:f.jsx(n0,{tag:t.tag,className:t.className,computedStyles:t.computed,parentComputedStyles:t.parentComputed||{},onPreviewInlineStyle:u,onRevertInlineStyles:d,onCommitClass:(W,le)=>{if(le&&W===le)return;if(M&&M.variants.length>0){if(le)A(async()=>{await $3(M.filePath,le,W)});else if(t.source){const Ve=t.source;A(async()=>{await oo(Ve,"addClass",W)})}}else if(t.source){const Ve=t.source;A(le?async()=>{await oo(Ve,"replaceClass",W,le)}:async()=>{await oo(Ve,"addClass",W)})}}})}),O==="props"&&M&&M.variants.length>0&&f.jsx("div",{className:"",children:M.variants.map(W=>f.jsx(vS,{dim:W,componentEntry:M,onClassChange:(le,de,Ve)=>{A(async()=>{await $3(M.filePath,le,de,Ve)})}},W.name))}),O==="props"&&(!M||M.variants.length===0)&&f.jsx("div",{className:"px-4 py-3 text-[11px]",style:{color:"var(--studio-text-dimmed)"},children:"This component doesn't use variant definitions (CVA). Edit its styles in the Styles sub-tab or switch to the Instance tab."})]}),T==="instance"&&!t&&f.jsx("div",{className:"px-4 py-8 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:"Select an element in the preview to edit its styles."}),T==="instance"&&t&&f.jsx(f.Fragment,{children:j&&M&&M.variants.length>0?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"px-4 py-2 border-t",style:{borderColor:"var(--studio-border)"},children:f.jsxs("div",{className:"studio-segmented",style:{width:"100%"},children:[f.jsx("button",{onClick:()=>K("props"),className:H==="props"?"active":"",style:{flex:1},children:"Props"}),f.jsx("button",{onClick:()=>K("styles"),className:H==="styles"?"active":"",style:{flex:1},children:"Styles"})]})}),H==="props"&&f.jsx("div",{className:"",children:M.variants.map(W=>f.jsx(bS,{dim:W,currentValue:(ee==null?void 0:ee[W.name])??W.default??null,onSelect:le=>{!t.instanceSource||!t.componentName||A(async()=>{await wS(t.instanceSource,t.componentName,W.name,le),Ce(de=>de+1)})}},W.name))}),H==="styles"&&f.jsx("div",{className:"",children:f.jsx(n0,{tag:t.tag,className:t.className,computedStyles:t.computed,parentComputedStyles:t.parentComputed||{},onPreviewInlineStyle:u,onRevertInlineStyles:d,onCommitClass:(W,le)=>{le&&W===le||t.instanceSource&&t.componentName&&A(async()=>{await CS(t.instanceSource,t.componentName,W,le||void 0)})}})})]}):f.jsx("div",{className:"",children:f.jsx(n0,{tag:t.tag,className:t.className,computedStyles:t.computed,parentComputedStyles:t.parentComputed||{},onPreviewInlineStyle:u,onRevertInlineStyles:d,onCommitClass:(W,le)=>{if(!(le&&W===le)&&t.source){const de=t.source;A(le?async()=>{await oo(de,"replaceClass",W,le)}:async()=>{await oo(de,"addClass",W)})}}})})})]})]})}function vS({dim:t,componentEntry:a,onClassChange:r}){const i=To(),[c,u]=m.useState(!0),[d,h]=m.useState(new Set),x=g=>{const y=new Set(d);y.has(g)?y.delete(g):y.add(g),h(y)};return f.jsxs("div",{style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[f.jsxs("button",{onClick:()=>u(!c),className:"studio-section-hdr",children:[c?f.jsx(vn,{}):f.jsx(Ft,{}),t.name,f.jsx("span",{className:"count",children:t.options.length})]}),!c&&f.jsx("div",{className:"studio-tree",children:t.options.map(g=>f.jsxs("div",{className:"studio-tree-node",children:[f.jsxs("button",{onClick:()=>x(g),className:"studio-section-hdr",style:{fontSize:10},children:[d.has(g)?f.jsx(Ft,{}):f.jsx(vn,{}),f.jsx("span",{style:{color:"var(--studio-text)",fontWeight:600},children:g}),g===t.default&&f.jsx("span",{className:"text-[9px] font-normal",style:{color:"var(--studio-text-dimmed)"},children:"default"})]}),d.has(g)&&t.classes[g]&&f.jsx("div",{className:"studio-tree-content",children:f.jsx(Cw,{classes:t.classes[g],onClassChange:(y,b)=>{r(y,b,g)},tokenGroups:(i==null?void 0:i.groups)||{},flat:!0})})]},g))})]})}function yS(){const t="var(--studio-accent)",r=({style:i})=>f.jsx("div",{className:"absolute",style:{width:8,height:8,background:t,border:`1.5px solid ${t}`,borderRadius:1,opacity:.8,...i}});return f.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-8",style:{borderBottom:"1px solid var(--studio-border)"},children:[f.jsxs("div",{className:"relative",style:{width:190,height:88},children:[f.jsx("div",{className:"absolute inset-0",style:{border:`1.5px solid ${t}`,background:"color-mix(in srgb, var(--studio-accent) 10%, transparent)"}}),f.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:f.jsx("span",{className:"text-[12px] text-center select-none leading-snug",style:{color:"var(--studio-text-muted)",opacity:1},children:"Select an element to edit"})}),f.jsx(r,{style:{top:-3.2,left:-3.2}}),f.jsx(r,{style:{top:-3.2,right:-3.2}}),f.jsx(r,{style:{bottom:-3.2,left:-3.2}}),f.jsx(r,{style:{bottom:-3.2,right:-3.2}}),f.jsx("div",{className:"absolute",style:{bottom:10,right:10,color:t,opacity:.8,animation:"cursor-drift 3s ease-in-out infinite"},children:f.jsx("svg",{width:"22",height:"22",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M2 2L2 10.5L4.5 8L6.5 12L8 11.5L6 7.5L9.5 7L2 2Z",fill:"currentColor"})})})]}),f.jsx("style",{children:`
|
|
215
|
+
@keyframes cursor-drift {
|
|
216
|
+
0%, 100% { transform: translate(0, 0); }
|
|
217
|
+
40% { transform: translate(4px, 3px); }
|
|
218
|
+
70% { transform: translate(-2px, 4px); }
|
|
219
|
+
}
|
|
220
|
+
`})]})}function bS({dim:t,currentValue:a,onSelect:r}){return f.jsxs("div",{className:"px-4 py-2",style:{borderTop:"1px solid var(--studio-border-subtle)"},children:[f.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-wide mb-2",style:{color:"var(--studio-text-muted)"},children:t.name}),f.jsx("div",{className:"studio-segmented wrap",style:{width:"100%"},children:t.options.map(i=>{const c=a===i||!a&&i===t.default;return f.jsx("button",{onClick:()=>r(i),className:c?"active":"",style:{flex:1},children:i},i)})})]})}async function oo(t,a,r,i){try{const u=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source:t,type:a,newClass:r,oldClass:i||void 0})})).json();u.ok||console.error("Element write failed:",u.error)}catch(c){console.error("Element write error:",c)}}async function CS(t,a,r,i){try{const u=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"instanceOverride",source:t,componentName:a,newClass:r,oldClass:i||void 0})})).json();u.ok||console.error("Instance override failed:",u.error)}catch(c){console.error("Instance override error:",c)}}async function wS(t,a,r,i){try{const u=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"prop",source:t,componentName:a,propName:r,propValue:i})})).json();u.ok||console.error("Prop write failed:",u.error)}catch(c){console.error("Prop write error:",c)}}async function SS(t,a){try{const i=await(await fetch("/api/write-element",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"resetInstanceClassName",source:t,componentName:a})})).json();i.ok||console.error("Reset instance className failed:",i.error)}catch(r){console.error("Reset instance className error:",r)}}async function $3(t,a,r,i){try{const u=await(await fetch("/api/component",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filePath:t,oldClass:a,newClass:r,variantContext:i})})).json();u.ok||console.error("Component write failed:",u.error)}catch(c){console.error("Component write error:",c)}}function jS(t,a){if(!a||!t)return[];const r=new Set,i=t.split(/\s+/);for(const c of i){const u=c.match(/(?:bg|text|border|ring|outline|shadow)-([a-z][\w-]*)/);if(u){const h=`--${u[1].split("/")[0]}`;a.byName.has(h)&&r.add(h)}}return Array.from(r)}function MS(){const t=lw(),a=ph(),r=To(),i=ff(),c=uf(),[u,d]=m.useState(0),[h,x]=m.useState(0),[g,y]=m.useState([]),[b,C]=m.useState(!1),S=[{label:"Detecting framework",duration:130},{label:"Detecting styling system",duration:323},{label:"Parsing components with AST",duration:365},{label:"Scanning design tokens",duration:235},{label:"Instrumenting JSX source locations",duration:562}];function j(E){var T,N,O,$;switch(E){case 0:return t!=null&&t.name?`→ ${t.name}`:"→ Next.js + React";case 1:{const H=(a==null?void 0:a.type)||"tailwind-v4";return`→ ${{"tailwind-v4":"Tailwind CSS v4","tailwind-v3":"Tailwind CSS v3",bootstrap:"Bootstrap 5","css-variables":"CSS Custom Properties","plain-css":"Plain CSS"}[H]||H}`}case 2:{const H=((T=c==null?void 0:c.components)==null?void 0:T.length)??0,K=((N=c==null?void 0:c.components)==null?void 0:N.reduce((Z,ae)=>{var ce;return Z+(((ce=ae.variants)==null?void 0:ce.length)??0)},0))??0;return`→ ${H} component${H!==1?"s":""}, ${K} variant prop${K!==1?"s":""} extracted`}case 3:{const H=((O=r==null?void 0:r.tokens)==null?void 0:O.length)??0,K=(($=i==null?void 0:i.shadows)==null?void 0:$.length)??0,Z=H+K,ae=r!=null&&r.groups?Object.keys(r.groups).length:0;return`→ ${Z} token${Z!==1?"s":""} across ${ae} group${ae!==1?"s":""}`}case 4:return"→ Babel transform · file:line:col mapped to JSX";default:return""}}m.useEffect(()=>{if(b||u>=S.length)return;const E=S[u],T=50,N=Math.ceil(E.duration/T);let O=0;const $=setInterval(()=>{if(O++,x(Math.min(O/N,1)),O>=N){clearInterval($);const H=j(u);y(K=>[...K,{label:E.label,detail:H,elapsed:E.duration}]),x(0),u+1>=S.length?C(!0):d(K=>K+1)}},T);return()=>clearInterval($)},[u,b,t,a,r,i,c]);const M=!b&&u<S.length?S[u]:null;return{completedSteps:g,activeStep:M,stepProgress:h,done:b,totalSteps:S.length}}const B3=["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"];function ES(){const[t,a]=m.useState(0);return m.useEffect(()=>{const r=setInterval(()=>a(i=>(i+1)%B3.length),80);return()=>clearInterval(r)},[]),f.jsx("span",{style:{color:"var(--studio-accent)"},children:B3[t]})}function TS({progress:t,width:a=24}){const r=Math.round(t*a),i=a-r;return f.jsxs("span",{style:{color:"var(--studio-text-dimmed)"},children:["[",f.jsx("span",{style:{color:"var(--studio-accent)"},children:"█".repeat(r)}),f.jsx("span",{style:{opacity:.3},children:"░".repeat(i)}),"]"]})}const _S=[" _ __ "," ___ ___ __| | ___ ___ _ _ _ __ / _| __ _ ___ ___ "," / __/ _ \\ / _` |/ _ \\ / __| | | | '__| |_ / _` |/ __/ _ \\"," | (_| (_) | (_| | __/ \\__ \\ |_| | | | _| (_| | (_| __/"," \\___\\___/ \\__,_|\\___| |___/\\__,_|_| |_| \\__,_|\\___\\___|"].join(`
|
|
221
|
+
`);function RS({onContinue:t}){const{completedSteps:a,activeStep:r,stepProgress:i,done:c}=MS(),[u,d]=m.useState(!0);m.useEffect(()=>{const x=setInterval(()=>d(g=>!g),530);return()=>clearInterval(x)},[]);const h=m.useCallback(x=>{c&&(x.key==="Enter"||x.key===" ")&&t()},[c,t]);return m.useEffect(()=>(window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)),[h]),f.jsxs("div",{style:{position:"fixed",inset:0,zIndex:9999,background:"var(--studio-bg)",color:"var(--studio-text)",display:"flex",alignItems:"center",justifyContent:"center",fontFamily:'"SF Mono", "Fira Code", "Cascadia Code", monospace',fontSize:13,lineHeight:1.7,WebkitFontSmoothing:"antialiased"},children:[f.jsx("div",{style:{position:"absolute",inset:0,background:"repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px)",pointerEvents:"none"}}),f.jsxs("div",{style:{position:"relative",border:"1px solid var(--studio-border)",borderRadius:8,background:"var(--studio-surface)",padding:"32px 40px",width:560,height:500,display:"flex",flexDirection:"column",boxShadow:"0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03)"},children:[f.jsx("pre",{style:{color:"var(--studio-accent)",fontSize:11,lineHeight:1.3,textAlign:"center",margin:"0 0 8px 0",userSelect:"none"},children:_S}),f.jsx("div",{style:{textAlign:"center",fontSize:10,color:"var(--studio-text-dimmed)",letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:24},children:"code-first design layer · v0.1.0"}),f.jsx("div",{style:{borderTop:"1px solid var(--studio-border-subtle)",margin:"0 -40px 20px -40px"}}),f.jsxs("div",{style:{flex:1,minHeight:0},children:[a.map((x,g)=>f.jsxs("div",{children:[f.jsxs("div",{style:{display:"flex",gap:8,alignItems:"baseline"},children:[f.jsx("span",{style:{color:"var(--studio-success)",flexShrink:0},children:"✓"}),f.jsx("span",{style:{color:"var(--studio-text-muted)"},children:x.label}),f.jsxs("span",{style:{marginLeft:"auto",color:"var(--studio-text-dimmed)",fontSize:10,flexShrink:0},children:[x.elapsed,"ms"]})]}),x.detail&&f.jsx("div",{style:{color:"var(--studio-text-dimmed)",fontSize:11,paddingLeft:22,marginTop:-2,opacity:.7},children:x.detail})]},g)),r&&f.jsxs("div",{style:{display:"flex",gap:8,alignItems:"baseline"},children:[f.jsx(ES,{}),f.jsx("span",{children:r.label}),f.jsx("span",{style:{marginLeft:"auto",flexShrink:0},children:f.jsx(TS,{progress:i,width:16})})]})]}),f.jsx("div",{style:{borderTop:"1px solid var(--studio-border-subtle)",margin:"20px -40px 30px -40px"}}),f.jsx("div",{style:{textAlign:"center"},children:c?f.jsxs("button",{onClick:t,style:{background:"var(--studio-accent)",color:"#fff",border:"none",borderRadius:6,padding:"8px 28px",fontFamily:"inherit",fontSize:12,fontWeight:500,cursor:"pointer",letterSpacing:"0.02em",transition:"background 0.15s"},onMouseOver:x=>x.currentTarget.style.background="var(--studio-accent-hover)",onMouseOut:x=>x.currentTarget.style.background="var(--studio-accent)",children:["Open Editor"," ",f.jsx("span",{style:{opacity:.6,fontSize:11},children:"↵"})]}):f.jsxs("span",{style:{color:"var(--studio-text-dimmed)",fontSize:11},children:["scanning project",f.jsx("span",{style:{opacity:u?1:0},children:"▌"})]})})]})]})}function NS({componentName:t,currentPath:a,onNavigate:r,onClose:i}){const c=nw();if(!t)return null;const u=(c==null?void 0:c.usages[t])||[];if(u.length===0)return f.jsxs("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:[f.jsx(U3,{componentName:t,count:0,onClose:i}),f.jsx("div",{className:"px-4 py-6 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:"No page usages found for this component."})]});const d=AS(u);return f.jsxs("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:[f.jsx(U3,{componentName:t,count:u.length,onClose:i}),f.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden studio-scrollbar py-1",children:f.jsx(LS,{node:d,currentPath:a,onNavigate:r,depth:0})})]})}function U3({componentName:t,count:a,onClose:r}){return f.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b shrink-0",style:{borderColor:"var(--studio-border)"},children:[f.jsxs("span",{className:"text-[10px] font-semibold uppercase tracking-wide flex-1 truncate",style:{color:"var(--studio-text-muted)"},children:["Pages using ",t]}),a>0&&f.jsx("span",{className:"text-[9px] font-medium px-1.5 py-0.5 rounded shrink-0",style:{color:"var(--studio-accent)",background:"var(--studio-accent-muted)"},children:a}),f.jsx("button",{onClick:r,className:"studio-icon-btn",style:{width:20,height:20},children:f.jsx(O0,{})})]})}function LS({node:t,currentPath:a,onNavigate:r,depth:i}){if(i===0){const c=t.fullRoute!==null;return f.jsxs(f.Fragment,{children:[c&&f.jsx(T0,{route:"/",label:"/",file:t.file,isActive:a==="/",isDynamic:!1,onNavigate:r,depth:0}),Array.from(t.children.entries()).sort(([u],[d])=>u.localeCompare(d)).map(([u,d])=>f.jsx(Mh,{node:d,currentPath:a,onNavigate:r,depth:0},u))]})}return null}function Mh({node:t,currentPath:a,onNavigate:r,depth:i}){const[c,u]=m.useState(!0),d=t.children.size>0,h=t.fullRoute!==null,x=h&&a===t.fullRoute;return h&&!d?f.jsx(T0,{route:t.fullRoute,label:t.segment,file:t.file,isActive:x,isDynamic:t.isDynamic,onNavigate:r,depth:i}):f.jsxs("div",{children:[h?f.jsx(T0,{route:t.fullRoute,label:t.segment,file:t.file,isActive:x,isDynamic:t.isDynamic,onNavigate:r,depth:i,hasChildren:d,expanded:c,onToggle:()=>u(!c)}):f.jsxs("div",{className:"flex items-center gap-1 w-full text-left",style:{padding:`4px 8px 4px ${8+i*12}px`,fontSize:11,color:"var(--studio-text-dimmed)",background:"none",border:"none",cursor:"pointer",transition:"color 0.1s"},onMouseEnter:g=>{g.currentTarget.style.color="var(--studio-text)"},onMouseLeave:g=>{g.currentTarget.style.color="var(--studio-text-dimmed)"},children:[d&&f.jsx("span",{onClick:g=>{g.stopPropagation(),u(!c)},style:{display:"inline-flex",flexShrink:0,cursor:"pointer"},children:c?f.jsx(Ft,{style:{width:10,height:10}}):f.jsx(vn,{style:{width:10,height:10}})}),f.jsxs("span",{onClick:()=>r(t.path),style:{cursor:"pointer"},children:[t.segment,"/"]})]}),c&&Array.from(t.children.entries()).sort(([g],[y])=>g.localeCompare(y)).map(([g,y])=>f.jsx(Mh,{node:y,currentPath:a,onNavigate:r,depth:i+1},g))]})}function T0({route:t,label:a,file:r,isActive:i,isDynamic:c,onNavigate:u,depth:d,hasChildren:h,expanded:x,onToggle:g}){const y=t.replace(/\/\[.*$/,"")||"/",b=c?`Dynamic route — navigate to ${y} to find a real page`:null,C=f.jsxs("div",{onClick:c?void 0:()=>u(t),className:"flex items-center gap-1.5 w-full text-left group",style:{padding:`5px 8px 5px ${8+d*12}px`,fontSize:11,fontWeight:i?600:400,fontStyle:c?"italic":void 0,color:c?"var(--studio-text-dimmed)":i?"var(--studio-accent)":"var(--studio-text)",background:i?"var(--studio-accent-muted)":"transparent",border:"none",borderRadius:4,margin:"0 4px",cursor:c?"default":"pointer",transition:"background 0.1s",opacity:c?.7:1},onMouseEnter:S=>{!i&&!c&&(S.currentTarget.style.background="var(--studio-surface-hover)")},onMouseLeave:S=>{!i&&!c&&(S.currentTarget.style.background="transparent")},title:c?void 0:r||t,children:[h&&g?f.jsx("span",{onClick:S=>{S.stopPropagation(),g()},style:{display:"inline-flex",flexShrink:0,cursor:"pointer"},children:x?f.jsx(Ft,{style:{width:10,height:10}}):f.jsx(vn,{style:{width:10,height:10}})}):f.jsx(Ug,{style:{width:11,height:11,flexShrink:0,opacity:c?.3:.5}}),f.jsx("span",{className:"truncate",children:a})]});return c?f.jsx(Ke,{content:b,side:"right",children:C}):C}function OS(t){return t.startsWith("[")&&t.endsWith("]")}function AS(t){const a={segment:"",path:"/",fullRoute:null,file:null,isDynamic:!1,children:new Map};for(const{route:r,file:i}of t){if(r==="/"){a.fullRoute="/",a.file=i;continue}const c=r.replace(/^\//,"").split("/");let u=a,d=!1;for(let h=0;h<c.length;h++){const x=c[h];OS(x)&&(d=!0);const g="/"+c.slice(0,h+1).join("/");u.children.has(x)||u.children.set(x,{segment:x,path:g,fullRoute:null,file:null,isDynamic:d,children:new Map}),u=u.children.get(x)}u.fullRoute=r,u.file=i}return a}function zS({tree:t,selectedId:a,onSelect:r,onHover:i,onHoverEnd:c}){const[u,d]=m.useState(""),[h,x]=m.useState(new Set),[g,y]=m.useState(!1),[b,C]=m.useState(!0),S=m.useRef(null),{layoutNodes:j,pageNodes:M}=HS(u?R0(t,u.toLowerCase()):t),E=j.length>0&&M.length>0;m.useEffect(()=>{if(!a||t.length===0)return;const H=Th(t,a);H.length>0&&(x(K=>{const Z=new Set(K);for(const ae of H)Z.add(ae);return Z}),E&&(_0(j,a)?y(!0):_0(M,a)&&C(!0)))},[a,t]),m.useEffect(()=>{S.current&&S.current.scrollIntoView({block:"nearest",behavior:"smooth"})},[a]);const T=m.useCallback(H=>{x(K=>{const Z=new Set(K);return Z.has(H)?Z.delete(H):Z.add(H),Z})},[]);m.useEffect(()=>{if(t.length>0&&h.size===0){const H=new Set;N0(E?M:t,H),x(H)}},[t.length>0]);const N=E?[]:u?R0(t,u.toLowerCase()):t,O={selectedId:a,selectedRef:S,expandedIds:h,onToggle:T,onSelect:r,onHover:i,onHoverEnd:c},$=t.length===0||u&&j.length===0&&M.length===0&&N.length===0;return f.jsx("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:f.jsx("div",{className:"flex-1 overflow-hidden flex flex-col",children:$?f.jsx("div",{className:"px-4 py-6 text-[11px] text-center",style:{color:"var(--studio-text-dimmed)"},children:u?"No matching components.":"No components found on this page."}):E?f.jsxs(f.Fragment,{children:[j.length>0&&f.jsx(Z3,{label:"Layout",expanded:g,onToggle:()=>y(!g),children:j.map(H=>f.jsx(fc,{node:H,depth:0,...O},H.id))}),M.length>0&&f.jsx(Z3,{label:"Page",expanded:b,onToggle:()=>C(!b),flex:!0,children:M.map(H=>f.jsx(fc,{node:H,depth:0,...O},H.id))})]}):f.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden studio-scrollbar py-1",children:N.map(H=>f.jsx(fc,{node:H,depth:0,...O},H.id))})})})}function Z3({label:t,expanded:a,onToggle:r,alwaysExpanded:i,explainer:c,flex:u,children:d}){const h=i||a;return f.jsxs("div",{className:"flex flex-col",style:{borderBottom:"1px solid var(--studio-border)",flex:u&&h?"1 1 0":"0 0 auto",minHeight:0},children:[f.jsxs("div",{className:"flex justify-between items-center gap-1.5 px-3 py-3 select-none shrink-0",style:{cursor:i?"default":"pointer",borderBottom:h?"1px solid var(--studio-border-subtle)":""},onClick:i?void 0:r,children:[f.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wide",style:{color:"var(--studio-text-muted)"},children:t}),!i&&f.jsx("button",{className:"studio-icon-btn",style:{width:20,height:20,borderRadius:3},children:h?f.jsx(W6,{style:{width:13,height:13}}):f.jsx(em,{style:{width:13,height:13}})})]}),h&&c&&f.jsxs("div",{className:"studio-tab-explainer shrink-0",style:{margin:"6px 8px",padding:"8px 10px"},children:[f.jsx(Jg,{}),f.jsx("span",{children:c})]}),h&&f.jsx("div",{className:"overflow-y-auto overflow-x-hidden studio-scrollbar py-2",style:{flex:1,minHeight:0},children:d})]})}function fc({node:t,depth:a,selectedId:r,selectedRef:i,expandedIds:c,onToggle:u,onSelect:d,onHover:h,onHoverEnd:x}){const g=r===t.id,y=c.has(t.id),b=t.children.length>0,C=t.dataSlot!==null;return f.jsxs("div",{children:[f.jsxs("div",{ref:g?i:void 0,className:"flex items-center gap-1 w-full group overflow-hidden",style:{padding:`3px 8px 3px ${8+a*14}px`,fontSize:11,fontWeight:C?500:400,color:g?"var(--studio-accent)":C?"var(--studio-text)":"var(--studio-text-muted)",background:g?"var(--studio-accent-muted)":"transparent",borderRadius:0,cursor:"pointer",transition:"background 0.1s"},onClick:()=>d(t.id),onMouseEnter:S=>{g||(S.currentTarget.style.background="var(--studio-surface-hover)"),h(t.id)},onMouseLeave:S=>{g||(S.currentTarget.style.background="transparent"),x()},children:[b?f.jsx("button",{onClick:S=>{S.stopPropagation(),u(t.id)},className:"studio-icon-btn",style:{width:16,height:16,borderRadius:3},children:y?f.jsx(Ft,{style:{width:10,height:10}}):f.jsx(vn,{style:{width:10,height:10}})}):f.jsx("span",{style:{width:16,flexShrink:0}}),t.type==="component"?f.jsx(fo,{style:{width:11,height:11,flexShrink:0,opacity:C?1:.5,color:C?"var(--studio-accent)":void 0}}):f.jsx(r0,{style:{width:11,height:11,flexShrink:0,opacity:.4}}),f.jsx("span",{className:"truncate",children:t.name}),t.textContent&&f.jsx("span",{className:"truncate ml-1",style:{color:"var(--studio-text-dimmed)",fontSize:10,fontWeight:400},children:t.textContent})]}),y&&b&&t.children.map(S=>f.jsx(fc,{node:S,depth:a+1,selectedId:r,selectedRef:i,expandedIds:c,onToggle:u,onSelect:d,onHover:h,onHoverEnd:x},S.id))]})}function HS(t){const a=[],r=[];for(const i of t)Eh(i,a,r);return{layoutNodes:a,pageNodes:r}}function Eh(t,a,r){const i=t.scope;if(i==="page"){r.push(t);return}if(i==="layout"){if(!t.children.some(x=>io(x,"page"))){a.push(t);return}const h=[];for(const x of t.children)io(x,"page")?r.push(x):h.push(x);h.length>0&&a.push({...t,children:h});return}const c=t.children.some(d=>io(d,"layout")),u=t.children.some(d=>io(d,"page"));if(c&&u)for(const d of t.children)Eh(d,a,r);else c?a.push(t):r.push(t)}function io(t,a){return t.scope===a?!0:t.children.some(r=>io(r,a))}function Th(t,a,r=[]){for(const i of t){if(i.id===a)return[...r,i.id];if(i.children.length>0){const c=Th(i.children,a,[...r,i.id]);if(c.length>0)return c}}return[]}function _0(t,a){for(const r of t)if(r.id===a||_0(r.children,a))return!0;return!1}function R0(t,a){const r=[];for(const i of t){const c=i.name.toLowerCase().includes(a),u=i.textContent.toLowerCase().includes(a),d=R0(i.children,a);(c||u||d.length>0)&&r.push({...i,children:d})}return r}function N0(t,a){for(const r of t)a.add(r.id),r.children.length>0&&N0(r.children,a)}function _h(t,a){if(t.length===0)return[{label:"Default",props:{}}];const r={};for(const u of t)r[u.name]=u.default;const i=[];for(const u of t)if(!(a&&!a.has(u.name)))for(const d of u.options)i.push({label:`${u.name}: ${d}`,props:{...r,[u.name]:d}});const c=new Set;return i.filter(u=>{const d=JSON.stringify(u.props);return c.has(d)?!1:(c.add(d),!0)})}function VS({component:t,onBack:a,onCombinationsChange:r}){const[i,c]=m.useState(()=>new Set(t.variants.map(g=>g.name))),u=m.useMemo(()=>_h(t.variants,i),[t.variants,i]),d=m.useMemo(()=>({current:""}),[]),h=JSON.stringify(u);d.current!==h&&(d.current=h,setTimeout(()=>r(u),0));const x=m.useCallback(g=>{c(y=>{const b=new Set(y);return b.has(g)?b.delete(g):b.add(g),b})},[]);return f.jsxs("div",{className:"flex flex-col h-full",style:{background:"var(--studio-surface)"},children:[f.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b shrink-0",style:{borderColor:"var(--studio-border)"},children:[f.jsx("button",{onClick:a,className:"studio-icon-btn shrink-0",style:{width:22,height:22},title:"Back to page",children:f.jsx(pg,{style:{width:12,height:12}})}),f.jsx(fo,{style:{width:12,height:12,color:"var(--studio-accent)",flexShrink:0}}),f.jsx("span",{className:"text-[11px] font-semibold truncate",style:{color:"var(--studio-text)"},children:t.name}),f.jsx("span",{className:"text-[10px]",style:{color:"var(--studio-text-dimmed)"},children:"Isolation"})]}),t.variants.length>0&&f.jsxs("div",{className:"px-3 py-2 border-b",style:{borderColor:"var(--studio-border)"},children:[f.jsxs("div",{className:"flex items-center gap-1.5 mb-2",style:{color:"var(--studio-text-dimmed)"},children:[f.jsx(sp,{style:{width:10,height:10}}),f.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wide",children:"Dimensions"})]}),f.jsx("div",{className:"flex flex-wrap gap-1.5",children:t.variants.map(g=>{const y=i.has(g.name);return f.jsxs("button",{onClick:()=>x(g.name),className:"text-[10px] px-2 py-0.5 rounded-full",style:{background:y?"var(--studio-accent-muted)":"var(--studio-surface-hover)",color:y?"var(--studio-accent)":"var(--studio-text-dimmed)",border:"1px solid",borderColor:y?"var(--studio-accent)":"var(--studio-border)",cursor:"pointer"},children:[g.name,f.jsx("span",{style:{opacity:.6,marginLeft:4},children:g.options.length})]},g.name)})})]}),f.jsxs("div",{className:"px-3 py-2 text-[10px]",style:{color:"var(--studio-text-dimmed)"},children:[u.length," combination",u.length!==1?"s":""," shown"]})]})}function DS(t,a){return a.domPath?Rh(t,a.domPath):null}function Rh(t,a){for(const r of t){if(r.id===a)return r.id;const i=Rh(r.children,a);if(i)return i}return null}function kS(){var aa;const t=m.useRef(null),[a,r]=m.useState(""),[i,c]=m.useState(""),[u,d]=m.useState(""),[h,x]=m.useState(null),[g,y]=m.useState(!1),[b,C]=m.useState("light"),[S,j]=m.useState("fill"),[M,E]=m.useState("/"),[T,N]=m.useState(!1),[O,$]=m.useState(!0),[H,K]=m.useState([]),[Z,ae]=m.useState(!1),[ce,X]=m.useState(!1),[P,ee]=m.useState(null),[xe,fe]=m.useState("/");aw();const Ce=uf();m.useEffect(()=>{fetch("/api/config").then(me=>me.json()).then(me=>{r(me.targetUrl),c(me.stylingType||""),me.projectRoot&&d(me.projectRoot.split("/").filter(Boolean).pop()??"")}).catch(console.error)},[]),m.useEffect(()=>{fetch("/scan/all").then(me=>me.json()).then(me=>{an.setAll(me)}).catch(console.error)},[]);const A=m.useCallback(me=>{var yt,Al,it;switch(me.type){case"tool:injectedReady":N(!0),t.current&&((yt=t.current.contentWindow)==null||yt.postMessage({type:"tool:enterSelectionMode"},"*"),(Al=t.current.contentWindow)==null||Al.postMessage({type:"tool:requestComponentTree"},"*"),y(!0));break;case"tool:elementSelected":x(me.data);break;case"tool:pathChanged":E(me.path),t.current&&((it=t.current.contentWindow)==null||it.postMessage({type:"tool:requestComponentTree"},"*"));break;case"tool:componentTree":K(me.tree);break}},[]),{send:B}=im(t,A),J=m.useCallback(()=>{const me=!g;y(me),B(me?{type:"tool:enterSelectionMode"}:{type:"tool:exitSelectionMode"})},[g,B]),ie=m.useCallback(()=>{const me=b==="light"?"dark":"light";C(me),B({type:"tool:setTheme",theme:me})},[b,B]),pe=m.useCallback((me,yt)=>{B({type:"tool:previewInlineStyle",property:me,value:yt})},[B]),R=m.useCallback(()=>{B({type:"tool:revertInlineStyles"})},[B]),q=m.useCallback(()=>{B({type:"tool:reselectElement"})},[B]),I=m.useCallback((me,yt)=>{B({type:"tool:previewTokenValue",property:me,value:yt})},[B]),te=m.useCallback((me,yt,Al)=>{B({type:"tool:previewTokenValue",property:me,value:yt})},[B]),W=m.useCallback(()=>{x(null),ae(!1)},[]),le=m.useCallback(me=>{E(me)},[]),de=m.useCallback(me=>{B({type:"tool:selectByTreeId",id:me})},[B]),Ve=m.useCallback(me=>{B({type:"tool:highlightByTreeId",id:me})},[B]),ke=m.useCallback(()=>{B({type:"tool:clearHighlight"})},[B]),on=m.useCallback(me=>{if(!a)return;fe(M),ee(me),E("/designtools-preview");const yt=_h(me.variants),Al=me.filePath.replace(/\.(tsx|ts|jsx|js)$/,"");setTimeout(()=>{B({type:"tool:renderPreview",dataSlot:me.dataSlot,componentPath:Al,exportName:me.exportName,combinations:yt,defaultChildren:me.name})},1500)},[a,M,B]),wn=m.useCallback(()=>{ee(null),E(xe)},[xe]),Gn=m.useCallback(me=>{if(!P)return;const yt=P.filePath.replace(/\.(tsx|ts|jsx|js)$/,"");B({type:"tool:renderPreview",dataSlot:P.dataSlot,componentPath:yt,exportName:P.exportName,combinations:me,defaultChildren:P.name})},[P,B]);if(!a)return f.jsx("div",{className:"flex items-center justify-center h-screen",style:{background:"var(--studio-bg)",color:"var(--studio-text-dimmed)"},children:"Loading..."});if(!O)return f.jsx(RS,{onContinue:()=>$(!0)});const Wt=((aa=h==null?void 0:h.attributes)==null?void 0:aa["data-slot"])||null,vt=Wt?(Ce==null?void 0:Ce.byDataSlot.get(Wt))??null:null,Qn=(vt==null?void 0:vt.name)||null,Ol=h?DS(H,h):null,ur=Z&&Qn,la=P?f.jsx("div",{className:"flex flex-col border-r h-full",style:{width:250,minWidth:250,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:f.jsx(VS,{component:P,onBack:wn,onCombinationsChange:Gn})}):ce?f.jsx("div",{className:"flex flex-col border-r h-full shrink-0",style:{width:36,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:f.jsx("button",{onClick:()=>X(!1),className:"studio-icon-btn",style:{width:36,height:36},title:"Expand panel",children:f.jsx(E5,{strokeWidth:1.5,size:16})})}):f.jsx("div",{className:"flex flex-col border-r h-full",style:{width:250,minWidth:250,background:"var(--studio-surface)",borderColor:"var(--studio-border)"},children:f.jsxs("div",{className:"flex-1 overflow-hidden flex flex-col",children:[f.jsxs("div",{className:"flex items-center pl-2 pr-2.5 py-1.5 shrink-0",style:{borderBottom:"1px solid var(--studio-border)"},children:[f.jsx("span",{className:"flex-1 text-[10px] font-semibold uppercase tracking-wide pl-1",style:{color:"var(--studio-text-muted)"},children:u||"Explorer"}),f.jsx("button",{onClick:()=>X(!0),className:"studio-icon-btn shrink-0",style:{width:24,height:24},title:"Collapse panel",children:f.jsx(E5,{strokeWidth:1.5,size:14})})]}),ur&&f.jsx("div",{className:"flex flex-col shrink-0 border-b",style:{borderColor:"var(--studio-border)",maxHeight:"40%"},children:f.jsx(NS,{componentName:Qn,currentPath:M,onNavigate:le,onClose:()=>ae(!1)})}),f.jsx(zS,{tree:H,selectedId:Ol,onSelect:de,onHover:Ve,onHoverEnd:ke})]})}),cn=f.jsx(xS,{element:h,theme:b,iframePath:M,onPreviewToken:I,onPreviewShadow:te,onPreviewInlineStyle:pe,onRevertInlineStyles:R,onClose:W,onReselectElement:q,onToggleUsagePanel:()=>{ae(me=>!me),X(!1)},onIsolate:on});return f.jsx(_y,{children:f.jsx(Ny,{toolName:"CodeSurface",toolIcon:f.jsx(fo,{}),selectionMode:g,onToggleSelectionMode:J,theme:b,onToggleTheme:ie,viewportWidth:S,onViewportWidthChange:j,iframePath:M,onIframePathChange:E,targetUrl:a,iframeRef:t,editorPanel:cn,leftPanel:la})})}rg.createRoot(document.getElementById("root")).render(f.jsx(kS,{}));
|