@goopti/ui 1.0.0 → 1.0.2
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 +183 -183
- package/dist/assets/index-gWZidFXq.js +203 -0
- package/dist/assets/index-p3H2VfDS.css +1 -0
- package/dist/assets/logo-opti-D621QI7V.png +0 -0
- package/dist/index.html +15 -0
- package/package.json +12 -9
- package/dist/components/alert-dialog.d.ts +0 -14
- package/dist/components/alert-dialog.d.ts.map +0 -1
- package/dist/components/alert-dialog.js +0 -25
- package/dist/components/alert-dialog.js.map +0 -1
- package/dist/components/avatar.d.ts +0 -8
- package/dist/components/avatar.d.ts.map +0 -1
- package/dist/components/avatar.js +0 -10
- package/dist/components/avatar.js.map +0 -1
- package/dist/components/badge.d.ts +0 -10
- package/dist/components/badge.d.ts.map +0 -1
- package/dist/components/badge.js +0 -22
- package/dist/components/badge.js.map +0 -1
- package/dist/components/button.d.ts +0 -11
- package/dist/components/button.d.ts.map +0 -1
- package/dist/components/button.js +0 -30
- package/dist/components/button.js.map +0 -1
- package/dist/components/calendar.d.ts +0 -8
- package/dist/components/calendar.d.ts.map +0 -1
- package/dist/components/calendar.js +0 -50
- package/dist/components/calendar.js.map +0 -1
- package/dist/components/card.d.ts +0 -21
- package/dist/components/card.d.ts.map +0 -1
- package/dist/components/card.js +0 -17
- package/dist/components/card.js.map +0 -1
- package/dist/components/carousel.d.ts +0 -10
- package/dist/components/carousel.d.ts.map +0 -1
- package/dist/components/carousel.js +0 -12
- package/dist/components/carousel.js.map +0 -1
- package/dist/components/checkbox.d.ts +0 -8
- package/dist/components/checkbox.d.ts.map +0 -1
- package/dist/components/checkbox.js +0 -8
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/collapsible.d.ts +0 -9
- package/dist/components/collapsible.d.ts.map +0 -1
- package/dist/components/collapsible.js +0 -11
- package/dist/components/collapsible.js.map +0 -1
- package/dist/components/date-picker.d.ts +0 -9
- package/dist/components/date-picker.d.ts.map +0 -1
- package/dist/components/date-picker.js +0 -29
- package/dist/components/date-picker.js.map +0 -1
- package/dist/components/dialog.d.ts +0 -20
- package/dist/components/dialog.d.ts.map +0 -1
- package/dist/components/dialog.js +0 -29
- package/dist/components/dialog.js.map +0 -1
- package/dist/components/dropdown-menu.d.ts +0 -15
- package/dist/components/dropdown-menu.d.ts.map +0 -1
- package/dist/components/dropdown-menu.js +0 -26
- package/dist/components/dropdown-menu.js.map +0 -1
- package/dist/components/hover-card.d.ts +0 -8
- package/dist/components/hover-card.d.ts.map +0 -1
- package/dist/components/hover-card.js +0 -10
- package/dist/components/hover-card.js.map +0 -1
- package/dist/components/icon.d.ts +0 -8
- package/dist/components/icon.d.ts.map +0 -1
- package/dist/components/icon.js +0 -11
- package/dist/components/icon.js.map +0 -1
- package/dist/components/input-otp.d.ts +0 -9
- package/dist/components/input-otp.d.ts.map +0 -1
- package/dist/components/input-otp.js +0 -22
- package/dist/components/input-otp.js.map +0 -1
- package/dist/components/input.d.ts +0 -6
- package/dist/components/input.d.ts.map +0 -1
- package/dist/components/input.js +0 -7
- package/dist/components/input.js.map +0 -1
- package/dist/components/label.d.ts +0 -6
- package/dist/components/label.d.ts.map +0 -1
- package/dist/components/label.js +0 -7
- package/dist/components/label.js.map +0 -1
- package/dist/components/popover.d.ts +0 -9
- package/dist/components/popover.d.ts.map +0 -1
- package/dist/components/popover.js +0 -21
- package/dist/components/popover.js.map +0 -1
- package/dist/components/progress.d.ts +0 -7
- package/dist/components/progress.d.ts.map +0 -1
- package/dist/components/progress.js +0 -7
- package/dist/components/progress.js.map +0 -1
- package/dist/components/radio-group.d.ts +0 -12
- package/dist/components/radio-group.d.ts.map +0 -1
- package/dist/components/radio-group.js +0 -7
- package/dist/components/radio-group.js.map +0 -1
- package/dist/components/scroll-area.d.ts +0 -7
- package/dist/components/scroll-area.d.ts.map +0 -1
- package/dist/components/scroll-area.js +0 -7
- package/dist/components/scroll-area.js.map +0 -1
- package/dist/components/select.d.ts +0 -13
- package/dist/components/select.d.ts.map +0 -1
- package/dist/components/select.js +0 -26
- package/dist/components/select.js.map +0 -1
- package/dist/components/separator.d.ts +0 -7
- package/dist/components/separator.d.ts.map +0 -1
- package/dist/components/separator.js +0 -7
- package/dist/components/separator.js.map +0 -1
- package/dist/components/sheet.d.ts +0 -10
- package/dist/components/sheet.d.ts.map +0 -1
- package/dist/components/sheet.js +0 -20
- package/dist/components/sheet.js.map +0 -1
- package/dist/components/skeleton.d.ts +0 -6
- package/dist/components/skeleton.d.ts.map +0 -1
- package/dist/components/skeleton.js +0 -7
- package/dist/components/skeleton.js.map +0 -1
- package/dist/components/slider.d.ts +0 -11
- package/dist/components/slider.d.ts.map +0 -1
- package/dist/components/slider.js +0 -31
- package/dist/components/slider.js.map +0 -1
- package/dist/components/switch.d.ts +0 -8
- package/dist/components/switch.d.ts.map +0 -1
- package/dist/components/switch.js +0 -7
- package/dist/components/switch.js.map +0 -1
- package/dist/components/textarea.d.ts +0 -6
- package/dist/components/textarea.d.ts.map +0 -1
- package/dist/components/textarea.js +0 -7
- package/dist/components/textarea.js.map +0 -1
- package/dist/components/toast.d.ts +0 -19
- package/dist/components/toast.d.ts.map +0 -1
- package/dist/components/toast.js +0 -25
- package/dist/components/toast.js.map +0 -1
- package/dist/components/tooltip.d.ts +0 -9
- package/dist/components/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip.js +0 -16
- package/dist/components/tooltip.js.map +0 -1
- package/dist/hooks/use-toast.d.ts +0 -4
- package/dist/hooks/use-toast.d.ts.map +0 -1
- package/dist/hooks/use-toast.js +0 -9
- package/dist/hooks/use-toast.js.map +0 -1
- package/dist/index.d.ts +0 -62
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -36
- package/dist/index.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -6
- package/dist/lib/utils.js.map +0 -1
- package/dist/theme.css +0 -140
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Su={exports:{}},eo={},Cu={exports:{}},I={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its 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 Ir=Symbol.for("react.element"),Cf=Symbol.for("react.portal"),Ef=Symbol.for("react.fragment"),bf=Symbol.for("react.strict_mode"),Rf=Symbol.for("react.profiler"),Pf=Symbol.for("react.provider"),_f=Symbol.for("react.context"),zf=Symbol.for("react.forward_ref"),Lf=Symbol.for("react.suspense"),Tf=Symbol.for("react.memo"),Df=Symbol.for("react.lazy"),na=Symbol.iterator;function Of(e){return e===null||typeof e!="object"?null:(e=na&&e[na]||e["@@iterator"],typeof e=="function"?e:null)}var Eu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bu=Object.assign,Ru={};function Fn(e,t,n){this.props=e,this.context=t,this.refs=Ru,this.updater=n||Eu}Fn.prototype.isReactComponent={};Fn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pu(){}Pu.prototype=Fn.prototype;function Zs(e,t,n){this.props=e,this.context=t,this.refs=Ru,this.updater=n||Eu}var qs=Zs.prototype=new Pu;qs.constructor=Zs;bu(qs,Fn.prototype);qs.isPureReactComponent=!0;var ra=Array.isArray,_u=Object.prototype.hasOwnProperty,ei={current:null},zu={key:!0,ref:!0,__self:!0,__source:!0};function Lu(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)_u.call(t,r)&&!zu.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];l.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:Ir,type:e,key:o,ref:i,props:l,_owner:ei.current}}function If(e,t){return{$$typeof:Ir,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ti(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ir}function Mf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var la=/\/+/g;function wo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Mf(""+e.key):t.toString(36)}function cl(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Ir:case Cf:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+wo(i,0):r,ra(l)?(n="",e!=null&&(n=e.replace(la,"$&/")+"/"),cl(l,t,n,"",function(c){return c})):l!=null&&(ti(l)&&(l=If(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(la,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",ra(e))for(var a=0;a<e.length;a++){o=e[a];var u=r+wo(o,a);i+=cl(o,t,n,u,l)}else if(u=Of(e),typeof u=="function")for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=r+wo(o,a++),i+=cl(o,t,n,u,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Qr(e,t,n){if(e==null)return e;var r=[],l=0;return cl(e,r,"","",function(o){return t.call(n,o,l++)}),r}function Af(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ve={current:null},dl={transition:null},Ff={ReactCurrentDispatcher:ve,ReactCurrentBatchConfig:dl,ReactCurrentOwner:ei};function Tu(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:Qr,forEach:function(e,t,n){Qr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Qr(e,function(){t++}),t},toArray:function(e){return Qr(e,function(t){return t})||[]},only:function(e){if(!ti(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=Fn;I.Fragment=Ef;I.Profiler=Rf;I.PureComponent=Zs;I.StrictMode=bf;I.Suspense=Lf;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ff;I.act=Tu;I.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=bu({},e.props),l=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=ei.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)_u.call(t,u)&&!zu.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Ir,type:e.type,key:l,ref:o,props:r,_owner:i}};I.createContext=function(e){return e={$$typeof:_f,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Pf,_context:e},e.Consumer=e};I.createElement=Lu;I.createFactory=function(e){var t=Lu.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:zf,render:e}};I.isValidElement=ti;I.lazy=function(e){return{$$typeof:Df,_payload:{_status:-1,_result:e},_init:Af}};I.memo=function(e,t){return{$$typeof:Tf,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=dl.transition;dl.transition={};try{e()}finally{dl.transition=t}};I.unstable_act=Tu;I.useCallback=function(e,t){return ve.current.useCallback(e,t)};I.useContext=function(e){return ve.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return ve.current.useDeferredValue(e)};I.useEffect=function(e,t){return ve.current.useEffect(e,t)};I.useId=function(){return ve.current.useId()};I.useImperativeHandle=function(e,t,n){return ve.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return ve.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return ve.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return ve.current.useMemo(e,t)};I.useReducer=function(e,t,n){return ve.current.useReducer(e,t,n)};I.useRef=function(e){return ve.current.useRef(e)};I.useState=function(e){return ve.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return ve.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return ve.current.useTransition()};I.version="18.3.1";Cu.exports=I;var g=Cu.exports;const Bf=Sf(g);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its 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 $f=g,Uf=Symbol.for("react.element"),Hf=Symbol.for("react.fragment"),Vf=Object.prototype.hasOwnProperty,Wf=$f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Qf={key:!0,ref:!0,__self:!0,__source:!0};function Du(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Vf.call(t,r)&&!Qf.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Uf,type:e,key:o,ref:i,props:l,_owner:Wf.current}}eo.Fragment=Hf;eo.jsx=Du;eo.jsxs=Du;Su.exports=eo;var s=Su.exports,Xo={},Ou={exports:{}},ze={},Iu={exports:{}},Mu={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its 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
|
+
*/(function(e){function t(b,_){var T=b.length;b.push(_);e:for(;0<T;){var $=T-1>>>1,le=b[$];if(0<l(le,_))b[$]=_,b[T]=le,T=$;else break e}}function n(b){return b.length===0?null:b[0]}function r(b){if(b.length===0)return null;var _=b[0],T=b.pop();if(T!==_){b[0]=T;e:for(var $=0,le=b.length,Vr=le>>>1;$<Vr;){var Vt=2*($+1)-1,yo=b[Vt],Wt=Vt+1,Wr=b[Wt];if(0>l(yo,T))Wt<le&&0>l(Wr,yo)?(b[$]=Wr,b[Wt]=T,$=Wt):(b[$]=yo,b[Vt]=T,$=Vt);else if(Wt<le&&0>l(Wr,T))b[$]=Wr,b[Wt]=T,$=Wt;else break e}}return _}function l(b,_){var T=b.sortIndex-_.sortIndex;return T!==0?T:b.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],c=[],d=1,f=null,h=3,w=!1,x=!1,y=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(b){for(var _=n(c);_!==null;){if(_.callback===null)r(c);else if(_.startTime<=b)r(c),_.sortIndex=_.expirationTime,t(u,_);else break;_=n(c)}}function j(b){if(y=!1,v(b),!x)if(n(u)!==null)x=!0,jt(S);else{var _=n(c);_!==null&&un(j,_.startTime-b)}}function S(b,_){x=!1,y&&(y=!1,m(P),P=-1),w=!0;var T=h;try{for(v(_),f=n(u);f!==null&&(!(f.expirationTime>_)||b&&!ie());){var $=f.callback;if(typeof $=="function"){f.callback=null,h=f.priorityLevel;var le=$(f.expirationTime<=_);_=e.unstable_now(),typeof le=="function"?f.callback=le:f===n(u)&&r(u),v(_)}else r(u);f=n(u)}if(f!==null)var Vr=!0;else{var Vt=n(c);Vt!==null&&un(j,Vt.startTime-_),Vr=!1}return Vr}finally{f=null,h=T,w=!1}}var C=!1,E=null,P=-1,B=5,z=-1;function ie(){return!(e.unstable_now()-z<B)}function F(){if(E!==null){var b=e.unstable_now();z=b;var _=!0;try{_=E(!0,b)}finally{_?Ue():(C=!1,E=null)}}else C=!1}var Ue;if(typeof p=="function")Ue=function(){p(F)};else if(typeof MessageChannel<"u"){var Ze=new MessageChannel,Se=Ze.port2;Ze.port1.onmessage=F,Ue=function(){Se.postMessage(null)}}else Ue=function(){k(F,0)};function jt(b){E=b,C||(C=!0,Ue())}function un(b,_){P=k(function(){b(e.unstable_now())},_)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(b){b.callback=null},e.unstable_continueExecution=function(){x||w||(x=!0,jt(S))},e.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<b?Math.floor(1e3/b):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(b){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var T=h;h=_;try{return b()}finally{h=T}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(b,_){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var T=h;h=b;try{return _()}finally{h=T}},e.unstable_scheduleCallback=function(b,_,T){var $=e.unstable_now();switch(typeof T=="object"&&T!==null?(T=T.delay,T=typeof T=="number"&&0<T?$+T:$):T=$,b){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=T+le,b={id:d++,callback:_,priorityLevel:b,startTime:T,expirationTime:le,sortIndex:-1},T>$?(b.sortIndex=T,t(c,b),n(u)===null&&b===n(c)&&(y?(m(P),P=-1):y=!0,un(j,T-$))):(b.sortIndex=le,t(u,b),x||w||(x=!0,jt(S))),b},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(b){var _=h;return function(){var T=h;h=_;try{return b.apply(this,arguments)}finally{h=T}}}})(Mu);Iu.exports=Mu;var Gf=Iu.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its 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 Kf=g,Pe=Gf;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Au=new Set,hr={};function on(e,t){Ln(e,t),Ln(e+"Capture",t)}function Ln(e,t){for(hr[e]=t,e=0;e<t.length;e++)Au.add(t[e])}var mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jo=Object.prototype.hasOwnProperty,Yf=/^[: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]*$/,oa={},sa={};function Xf(e){return Jo.call(sa,e)?!0:Jo.call(oa,e)?!1:Yf.test(e)?sa[e]=!0:(oa[e]=!0,!1)}function Jf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Zf(e,t,n,r){if(t===null||typeof t>"u"||Jf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function xe(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new xe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ce[e]=new xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ce[e]=new xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ce[e]=new xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ce[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ni=/[\-:]([a-z])/g;function ri(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ni,ri);ce[t]=new xe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ni,ri);ce[t]=new xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ni,ri);ce[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)});ce.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ce[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function li(e,t,n,r){var l=ce.hasOwnProperty(t)?ce[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Zf(t,n,l,r)&&(n=null),r||l===null?Xf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var yt=Kf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gr=Symbol.for("react.element"),fn=Symbol.for("react.portal"),pn=Symbol.for("react.fragment"),oi=Symbol.for("react.strict_mode"),Zo=Symbol.for("react.profiler"),Fu=Symbol.for("react.provider"),Bu=Symbol.for("react.context"),si=Symbol.for("react.forward_ref"),qo=Symbol.for("react.suspense"),es=Symbol.for("react.suspense_list"),ii=Symbol.for("react.memo"),Ct=Symbol.for("react.lazy"),$u=Symbol.for("react.offscreen"),ia=Symbol.iterator;function Vn(e){return e===null||typeof e!="object"?null:(e=ia&&e[ia]||e["@@iterator"],typeof e=="function"?e:null)}var Z=Object.assign,jo;function tr(e){if(jo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);jo=t&&t[1]||""}return`
|
|
34
|
+
`+jo+e}var ko=!1;function No(e,t){if(!e||ko)return"";ko=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),i=l.length-1,a=o.length-1;1<=i&&0<=a&&l[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(l[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||l[i]!==o[a]){var u=`
|
|
37
|
+
`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{ko=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tr(e):""}function qf(e){switch(e.tag){case 5:return tr(e.type);case 16:return tr("Lazy");case 13:return tr("Suspense");case 19:return tr("SuspenseList");case 0:case 2:case 15:return e=No(e.type,!1),e;case 11:return e=No(e.type.render,!1),e;case 1:return e=No(e.type,!0),e;default:return""}}function ts(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case pn:return"Fragment";case fn:return"Portal";case Zo:return"Profiler";case oi:return"StrictMode";case qo:return"Suspense";case es:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bu:return(e.displayName||"Context")+".Consumer";case Fu:return(e._context.displayName||"Context")+".Provider";case si:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ii:return t=e.displayName||null,t!==null?t:ts(e.type)||"Memo";case Ct:t=e._payload,e=e._init;try{return ts(e(t))}catch{}}return null}function ep(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ts(t);case 8:return t===oi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ft(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Uu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tp(e){var t=Uu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kr(e){e._valueTracker||(e._valueTracker=tp(e))}function Hu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Uu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bl(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}}function ns(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function aa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ft(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vu(e,t){t=t.checked,t!=null&&li(e,"checked",t,!1)}function rs(e,t){Vu(e,t);var n=Ft(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ls(e,t.type,n):t.hasOwnProperty("defaultValue")&&ls(e,t.type,Ft(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ua(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ls(e,t,n){(t!=="number"||bl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nr=Array.isArray;function Cn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ft(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function os(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return Z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ca(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(nr(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ft(n)}}function Wu(e,t){var n=Ft(t.value),r=Ft(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function da(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Qu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ss(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Qu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yr,Gu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Yr=Yr||document.createElement("div"),Yr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Yr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var sr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},np=["Webkit","ms","Moz","O"];Object.keys(sr).forEach(function(e){np.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),sr[t]=sr[e]})});function Ku(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||sr.hasOwnProperty(e)&&sr[e]?(""+t).trim():t+"px"}function Yu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ku(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var rp=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function is(e,t){if(t){if(rp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function as(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 us=null;function ai(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cs=null,En=null,bn=null;function fa(e){if(e=Fr(e)){if(typeof cs!="function")throw Error(N(280));var t=e.stateNode;t&&(t=oo(t),cs(e.stateNode,e.type,t))}}function Xu(e){En?bn?bn.push(e):bn=[e]:En=e}function Ju(){if(En){var e=En,t=bn;if(bn=En=null,fa(e),t)for(e=0;e<t.length;e++)fa(t[e])}}function Zu(e,t){return e(t)}function qu(){}var So=!1;function ec(e,t,n){if(So)return e(t,n);So=!0;try{return Zu(e,t,n)}finally{So=!1,(En!==null||bn!==null)&&(qu(),Ju())}}function vr(e,t){var n=e.stateNode;if(n===null)return null;var r=oo(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(N(231,t,typeof n));return n}var ds=!1;if(mt)try{var Wn={};Object.defineProperty(Wn,"passive",{get:function(){ds=!0}}),window.addEventListener("test",Wn,Wn),window.removeEventListener("test",Wn,Wn)}catch{ds=!1}function lp(e,t,n,r,l,o,i,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var ir=!1,Rl=null,Pl=!1,fs=null,op={onError:function(e){ir=!0,Rl=e}};function sp(e,t,n,r,l,o,i,a,u){ir=!1,Rl=null,lp.apply(op,arguments)}function ip(e,t,n,r,l,o,i,a,u){if(sp.apply(this,arguments),ir){if(ir){var c=Rl;ir=!1,Rl=null}else throw Error(N(198));Pl||(Pl=!0,fs=c)}}function sn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pa(e){if(sn(e)!==e)throw Error(N(188))}function ap(e){var t=e.alternate;if(!t){if(t=sn(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return pa(l),e;if(o===r)return pa(l),t;o=o.sibling}throw Error(N(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,a=l.child;a;){if(a===n){i=!0,n=l,r=o;break}if(a===r){i=!0,r=l,n=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===n){i=!0,n=o,r=l;break}if(a===r){i=!0,r=o,n=l;break}a=a.sibling}if(!i)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function nc(e){return e=ap(e),e!==null?rc(e):null}function rc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rc(e);if(t!==null)return t;e=e.sibling}return null}var lc=Pe.unstable_scheduleCallback,ma=Pe.unstable_cancelCallback,up=Pe.unstable_shouldYield,cp=Pe.unstable_requestPaint,ee=Pe.unstable_now,dp=Pe.unstable_getCurrentPriorityLevel,ui=Pe.unstable_ImmediatePriority,oc=Pe.unstable_UserBlockingPriority,_l=Pe.unstable_NormalPriority,fp=Pe.unstable_LowPriority,sc=Pe.unstable_IdlePriority,to=null,nt=null;function pp(e){if(nt&&typeof nt.onCommitFiberRoot=="function")try{nt.onCommitFiberRoot(to,e,void 0,(e.current.flags&128)===128)}catch{}}var Ge=Math.clz32?Math.clz32:gp,mp=Math.log,hp=Math.LN2;function gp(e){return e>>>=0,e===0?32:31-(mp(e)/hp|0)|0}var Xr=64,Jr=4194304;function rr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~l;a!==0?r=rr(a):(o&=i,o!==0&&(r=rr(o)))}else i=n&~l,i!==0?r=rr(i):o!==0&&(r=rr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ge(t),l=1<<n,r|=e[n],t&=~l;return r}function vp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Ge(o),a=1<<i,u=l[i];u===-1?(!(a&n)||a&r)&&(l[i]=vp(a,t)):u<=t&&(e.expiredLanes|=a),o&=~a}}function ps(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ic(){var e=Xr;return Xr<<=1,!(Xr&4194240)&&(Xr=64),e}function Co(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ge(t),e[t]=n}function yp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ge(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function ci(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ge(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var U=0;function ac(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var uc,di,cc,dc,fc,ms=!1,Zr=[],zt=null,Lt=null,Tt=null,xr=new Map,yr=new Map,bt=[],wp="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 submit".split(" ");function ha(e,t){switch(e){case"focusin":case"focusout":zt=null;break;case"dragenter":case"dragleave":Lt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":xr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yr.delete(t.pointerId)}}function Qn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=Fr(t),t!==null&&di(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function jp(e,t,n,r,l){switch(t){case"focusin":return zt=Qn(zt,e,t,n,r,l),!0;case"dragenter":return Lt=Qn(Lt,e,t,n,r,l),!0;case"mouseover":return Tt=Qn(Tt,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return xr.set(o,Qn(xr.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,yr.set(o,Qn(yr.get(o)||null,e,t,n,r,l)),!0}return!1}function pc(e){var t=Kt(e.target);if(t!==null){var n=sn(t);if(n!==null){if(t=n.tag,t===13){if(t=tc(n),t!==null){e.blockedOn=t,fc(e.priority,function(){cc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);us=r,n.target.dispatchEvent(r),us=null}else return t=Fr(n),t!==null&&di(t),e.blockedOn=n,!1;t.shift()}return!0}function ga(e,t,n){fl(e)&&n.delete(t)}function kp(){ms=!1,zt!==null&&fl(zt)&&(zt=null),Lt!==null&&fl(Lt)&&(Lt=null),Tt!==null&&fl(Tt)&&(Tt=null),xr.forEach(ga),yr.forEach(ga)}function Gn(e,t){e.blockedOn===t&&(e.blockedOn=null,ms||(ms=!0,Pe.unstable_scheduleCallback(Pe.unstable_NormalPriority,kp)))}function wr(e){function t(l){return Gn(l,e)}if(0<Zr.length){Gn(Zr[0],e);for(var n=1;n<Zr.length;n++){var r=Zr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zt!==null&&Gn(zt,e),Lt!==null&&Gn(Lt,e),Tt!==null&&Gn(Tt,e),xr.forEach(t),yr.forEach(t),n=0;n<bt.length;n++)r=bt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<bt.length&&(n=bt[0],n.blockedOn===null);)pc(n),n.blockedOn===null&&bt.shift()}var Rn=yt.ReactCurrentBatchConfig,Ll=!0;function Np(e,t,n,r){var l=U,o=Rn.transition;Rn.transition=null;try{U=1,fi(e,t,n,r)}finally{U=l,Rn.transition=o}}function Sp(e,t,n,r){var l=U,o=Rn.transition;Rn.transition=null;try{U=4,fi(e,t,n,r)}finally{U=l,Rn.transition=o}}function fi(e,t,n,r){if(Ll){var l=hs(e,t,n,r);if(l===null)Oo(e,t,r,Tl,n),ha(e,r);else if(jp(l,e,t,n,r))r.stopPropagation();else if(ha(e,r),t&4&&-1<wp.indexOf(e)){for(;l!==null;){var o=Fr(l);if(o!==null&&uc(o),o=hs(e,t,n,r),o===null&&Oo(e,t,r,Tl,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Oo(e,t,r,null,n)}}var Tl=null;function hs(e,t,n,r){if(Tl=null,e=ai(r),e=Kt(e),e!==null)if(t=sn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Tl=e,null}function mc(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(dp()){case ui:return 1;case oc:return 4;case _l:case fp:return 16;case sc:return 536870912;default:return 16}default:return 16}}var Pt=null,pi=null,pl=null;function hc(){if(pl)return pl;var e,t=pi,n=t.length,r,l="value"in Pt?Pt.value:Pt.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[o-r];r++);return pl=l.slice(e,1<r?1-r:void 0)}function ml(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function qr(){return!0}function va(){return!1}function Le(e){function t(n,r,l,o,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?qr:va,this.isPropagationStopped=va,this}return Z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=qr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qr)},persist:function(){},isPersistent:qr}),t}var Bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mi=Le(Bn),Ar=Z({},Bn,{view:0,detail:0}),Cp=Le(Ar),Eo,bo,Kn,no=Z({},Ar,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hi,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!==Kn&&(Kn&&e.type==="mousemove"?(Eo=e.screenX-Kn.screenX,bo=e.screenY-Kn.screenY):bo=Eo=0,Kn=e),Eo)},movementY:function(e){return"movementY"in e?e.movementY:bo}}),xa=Le(no),Ep=Z({},no,{dataTransfer:0}),bp=Le(Ep),Rp=Z({},Ar,{relatedTarget:0}),Ro=Le(Rp),Pp=Z({},Bn,{animationName:0,elapsedTime:0,pseudoElement:0}),_p=Le(Pp),zp=Z({},Bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lp=Le(zp),Tp=Z({},Bn,{data:0}),ya=Le(Tp),Dp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Op={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"},Ip={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ip[e])?!!t[e]:!1}function hi(){return Mp}var Ap=Z({},Ar,{key:function(e){if(e.key){var t=Dp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ml(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Op[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hi,charCode:function(e){return e.type==="keypress"?ml(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ml(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fp=Le(Ap),Bp=Z({},no,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wa=Le(Bp),$p=Z({},Ar,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hi}),Up=Le($p),Hp=Z({},Bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vp=Le(Hp),Wp=Z({},no,{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}),Qp=Le(Wp),Gp=[9,13,27,32],gi=mt&&"CompositionEvent"in window,ar=null;mt&&"documentMode"in document&&(ar=document.documentMode);var Kp=mt&&"TextEvent"in window&&!ar,gc=mt&&(!gi||ar&&8<ar&&11>=ar),ja=" ",ka=!1;function vc(e,t){switch(e){case"keyup":return Gp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mn=!1;function Yp(e,t){switch(e){case"compositionend":return xc(t);case"keypress":return t.which!==32?null:(ka=!0,ja);case"textInput":return e=t.data,e===ja&&ka?null:e;default:return null}}function Xp(e,t){if(mn)return e==="compositionend"||!gi&&vc(e,t)?(e=hc(),pl=pi=Pt=null,mn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return gc&&t.locale!=="ko"?null:t.data;default:return null}}var Jp={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 Na(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jp[e.type]:t==="textarea"}function yc(e,t,n,r){Xu(r),t=Dl(t,"onChange"),0<t.length&&(n=new mi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ur=null,jr=null;function Zp(e){_c(e,0)}function ro(e){var t=vn(e);if(Hu(t))return e}function qp(e,t){if(e==="change")return t}var wc=!1;if(mt){var Po;if(mt){var _o="oninput"in document;if(!_o){var Sa=document.createElement("div");Sa.setAttribute("oninput","return;"),_o=typeof Sa.oninput=="function"}Po=_o}else Po=!1;wc=Po&&(!document.documentMode||9<document.documentMode)}function Ca(){ur&&(ur.detachEvent("onpropertychange",jc),jr=ur=null)}function jc(e){if(e.propertyName==="value"&&ro(jr)){var t=[];yc(t,jr,e,ai(e)),ec(Zp,t)}}function em(e,t,n){e==="focusin"?(Ca(),ur=t,jr=n,ur.attachEvent("onpropertychange",jc)):e==="focusout"&&Ca()}function tm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ro(jr)}function nm(e,t){if(e==="click")return ro(t)}function rm(e,t){if(e==="input"||e==="change")return ro(t)}function lm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xe=typeof Object.is=="function"?Object.is:lm;function kr(e,t){if(Xe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!Jo.call(t,l)||!Xe(e[l],t[l]))return!1}return!0}function Ea(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ba(e,t){var n=Ea(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ea(n)}}function kc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nc(){for(var e=window,t=bl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bl(e.document)}return t}function vi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function om(e){var t=Nc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kc(n.ownerDocument.documentElement,n)){if(r!==null&&vi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ba(n,o);var i=ba(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var sm=mt&&"documentMode"in document&&11>=document.documentMode,hn=null,gs=null,cr=null,vs=!1;function Ra(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vs||hn==null||hn!==bl(r)||(r=hn,"selectionStart"in r&&vi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cr&&kr(cr,r)||(cr=r,r=Dl(gs,"onSelect"),0<r.length&&(t=new mi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hn)))}function el(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gn={animationend:el("Animation","AnimationEnd"),animationiteration:el("Animation","AnimationIteration"),animationstart:el("Animation","AnimationStart"),transitionend:el("Transition","TransitionEnd")},zo={},Sc={};mt&&(Sc=document.createElement("div").style,"AnimationEvent"in window||(delete gn.animationend.animation,delete gn.animationiteration.animation,delete gn.animationstart.animation),"TransitionEvent"in window||delete gn.transitionend.transition);function lo(e){if(zo[e])return zo[e];if(!gn[e])return e;var t=gn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Sc)return zo[e]=t[n];return e}var Cc=lo("animationend"),Ec=lo("animationiteration"),bc=lo("animationstart"),Rc=lo("transitionend"),Pc=new Map,Pa="abort auxClick 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(" ");function $t(e,t){Pc.set(e,t),on(t,[e])}for(var Lo=0;Lo<Pa.length;Lo++){var To=Pa[Lo],im=To.toLowerCase(),am=To[0].toUpperCase()+To.slice(1);$t(im,"on"+am)}$t(Cc,"onAnimationEnd");$t(Ec,"onAnimationIteration");$t(bc,"onAnimationStart");$t("dblclick","onDoubleClick");$t("focusin","onFocus");$t("focusout","onBlur");$t(Rc,"onTransitionEnd");Ln("onMouseEnter",["mouseout","mouseover"]);Ln("onMouseLeave",["mouseout","mouseover"]);Ln("onPointerEnter",["pointerout","pointerover"]);Ln("onPointerLeave",["pointerout","pointerover"]);on("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));on("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));on("onBeforeInput",["compositionend","keypress","textInput","paste"]);on("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));on("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));on("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lr="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(" "),um=new Set("cancel close invalid load scroll toggle".split(" ").concat(lr));function _a(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ip(r,t,void 0,e),e.currentTarget=null}function _c(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==o&&l.isPropagationStopped())break e;_a(l,a,c),o=u}else for(i=0;i<r.length;i++){if(a=r[i],u=a.instance,c=a.currentTarget,a=a.listener,u!==o&&l.isPropagationStopped())break e;_a(l,a,c),o=u}}}if(Pl)throw e=fs,Pl=!1,fs=null,e}function W(e,t){var n=t[ks];n===void 0&&(n=t[ks]=new Set);var r=e+"__bubble";n.has(r)||(zc(t,e,2,!1),n.add(r))}function Do(e,t,n){var r=0;t&&(r|=4),zc(n,e,r,t)}var tl="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){if(!e[tl]){e[tl]=!0,Au.forEach(function(n){n!=="selectionchange"&&(um.has(n)||Do(n,!1,e),Do(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tl]||(t[tl]=!0,Do("selectionchange",!1,t))}}function zc(e,t,n,r){switch(mc(t)){case 1:var l=Np;break;case 4:l=Sp;break;default:l=fi}n=l.bind(null,t,n,e),l=void 0,!ds||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Oo(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var u=i.tag;if((u===3||u===4)&&(u=i.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;i=i.return}for(;a!==null;){if(i=Kt(a),i===null)return;if(u=i.tag,u===5||u===6){r=o=i;continue e}a=a.parentNode}}r=r.return}ec(function(){var c=o,d=ai(n),f=[];e:{var h=Pc.get(e);if(h!==void 0){var w=mi,x=e;switch(e){case"keypress":if(ml(n)===0)break e;case"keydown":case"keyup":w=Fp;break;case"focusin":x="focus",w=Ro;break;case"focusout":x="blur",w=Ro;break;case"beforeblur":case"afterblur":w=Ro;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=xa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=bp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Up;break;case Cc:case Ec:case bc:w=_p;break;case Rc:w=Vp;break;case"scroll":w=Cp;break;case"wheel":w=Qp;break;case"copy":case"cut":case"paste":w=Lp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=wa}var y=(t&4)!==0,k=!y&&e==="scroll",m=y?h!==null?h+"Capture":null:h;y=[];for(var p=c,v;p!==null;){v=p;var j=v.stateNode;if(v.tag===5&&j!==null&&(v=j,m!==null&&(j=vr(p,m),j!=null&&y.push(Sr(p,j,v)))),k)break;p=p.return}0<y.length&&(h=new w(h,x,null,n,d),f.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",h&&n!==us&&(x=n.relatedTarget||n.fromElement)&&(Kt(x)||x[ht]))break e;if((w||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,w?(x=n.relatedTarget||n.toElement,w=c,x=x?Kt(x):null,x!==null&&(k=sn(x),x!==k||x.tag!==5&&x.tag!==6)&&(x=null)):(w=null,x=c),w!==x)){if(y=xa,j="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=wa,j="onPointerLeave",m="onPointerEnter",p="pointer"),k=w==null?h:vn(w),v=x==null?h:vn(x),h=new y(j,p+"leave",w,n,d),h.target=k,h.relatedTarget=v,j=null,Kt(d)===c&&(y=new y(m,p+"enter",x,n,d),y.target=v,y.relatedTarget=k,j=y),k=j,w&&x)t:{for(y=w,m=x,p=0,v=y;v;v=cn(v))p++;for(v=0,j=m;j;j=cn(j))v++;for(;0<p-v;)y=cn(y),p--;for(;0<v-p;)m=cn(m),v--;for(;p--;){if(y===m||m!==null&&y===m.alternate)break t;y=cn(y),m=cn(m)}y=null}else y=null;w!==null&&za(f,h,w,y,!1),x!==null&&k!==null&&za(f,k,x,y,!0)}}e:{if(h=c?vn(c):window,w=h.nodeName&&h.nodeName.toLowerCase(),w==="select"||w==="input"&&h.type==="file")var S=qp;else if(Na(h))if(wc)S=rm;else{S=tm;var C=em}else(w=h.nodeName)&&w.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=nm);if(S&&(S=S(e,c))){yc(f,S,n,d);break e}C&&C(e,h,c),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&ls(h,"number",h.value)}switch(C=c?vn(c):window,e){case"focusin":(Na(C)||C.contentEditable==="true")&&(hn=C,gs=c,cr=null);break;case"focusout":cr=gs=hn=null;break;case"mousedown":vs=!0;break;case"contextmenu":case"mouseup":case"dragend":vs=!1,Ra(f,n,d);break;case"selectionchange":if(sm)break;case"keydown":case"keyup":Ra(f,n,d)}var E;if(gi)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else mn?vc(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(gc&&n.locale!=="ko"&&(mn||P!=="onCompositionStart"?P==="onCompositionEnd"&&mn&&(E=hc()):(Pt=d,pi="value"in Pt?Pt.value:Pt.textContent,mn=!0)),C=Dl(c,P),0<C.length&&(P=new ya(P,e,null,n,d),f.push({event:P,listeners:C}),E?P.data=E:(E=xc(n),E!==null&&(P.data=E)))),(E=Kp?Yp(e,n):Xp(e,n))&&(c=Dl(c,"onBeforeInput"),0<c.length&&(d=new ya("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:c}),d.data=E))}_c(f,t)})}function Sr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=vr(e,n),o!=null&&r.unshift(Sr(e,o,l)),o=vr(e,t),o!=null&&r.push(Sr(e,o,l))),e=e.return}return r}function cn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function za(e,t,n,r,l){for(var o=t._reactName,i=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,l?(u=vr(n,o),u!=null&&i.unshift(Sr(n,u,a))):l||(u=vr(n,o),u!=null&&i.push(Sr(n,u,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var cm=/\r\n?/g,dm=/\u0000|\uFFFD/g;function La(e){return(typeof e=="string"?e:""+e).replace(cm,`
|
|
38
|
+
`).replace(dm,"")}function nl(e,t,n){if(t=La(t),La(e)!==t&&n)throw Error(N(425))}function Ol(){}var xs=null,ys=null;function ws(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var js=typeof setTimeout=="function"?setTimeout:void 0,fm=typeof clearTimeout=="function"?clearTimeout:void 0,Ta=typeof Promise=="function"?Promise:void 0,pm=typeof queueMicrotask=="function"?queueMicrotask:typeof Ta<"u"?function(e){return Ta.resolve(null).then(e).catch(mm)}:js;function mm(e){setTimeout(function(){throw e})}function Io(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),wr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);wr(t)}function Dt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Da(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var $n=Math.random().toString(36).slice(2),tt="__reactFiber$"+$n,Cr="__reactProps$"+$n,ht="__reactContainer$"+$n,ks="__reactEvents$"+$n,hm="__reactListeners$"+$n,gm="__reactHandles$"+$n;function Kt(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ht]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Da(e);e!==null;){if(n=e[tt])return n;e=Da(e)}return t}e=n,n=e.parentNode}return null}function Fr(e){return e=e[tt]||e[ht],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function oo(e){return e[Cr]||null}var Ns=[],xn=-1;function Ut(e){return{current:e}}function Q(e){0>xn||(e.current=Ns[xn],Ns[xn]=null,xn--)}function H(e,t){xn++,Ns[xn]=e.current,e.current=t}var Bt={},me=Ut(Bt),je=Ut(!1),en=Bt;function Tn(e,t){var n=e.type.contextTypes;if(!n)return Bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ke(e){return e=e.childContextTypes,e!=null}function Il(){Q(je),Q(me)}function Oa(e,t,n){if(me.current!==Bt)throw Error(N(168));H(me,t),H(je,n)}function Lc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(N(108,ep(e)||"Unknown",l));return Z({},n,r)}function Ml(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bt,en=me.current,H(me,e),H(je,je.current),!0}function Ia(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Lc(e,t,en),r.__reactInternalMemoizedMergedChildContext=e,Q(je),Q(me),H(me,e)):Q(je),H(je,n)}var ut=null,so=!1,Mo=!1;function Tc(e){ut===null?ut=[e]:ut.push(e)}function vm(e){so=!0,Tc(e)}function Ht(){if(!Mo&&ut!==null){Mo=!0;var e=0,t=U;try{var n=ut;for(U=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ut=null,so=!1}catch(l){throw ut!==null&&(ut=ut.slice(e+1)),lc(ui,Ht),l}finally{U=t,Mo=!1}}return null}var yn=[],wn=0,Al=null,Fl=0,De=[],Oe=0,tn=null,dt=1,ft="";function Qt(e,t){yn[wn++]=Fl,yn[wn++]=Al,Al=e,Fl=t}function Dc(e,t,n){De[Oe++]=dt,De[Oe++]=ft,De[Oe++]=tn,tn=e;var r=dt;e=ft;var l=32-Ge(r)-1;r&=~(1<<l),n+=1;var o=32-Ge(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,dt=1<<32-Ge(t)+l|n<<l|r,ft=o+e}else dt=1<<o|n<<l|r,ft=e}function xi(e){e.return!==null&&(Qt(e,1),Dc(e,1,0))}function yi(e){for(;e===Al;)Al=yn[--wn],yn[wn]=null,Fl=yn[--wn],yn[wn]=null;for(;e===tn;)tn=De[--Oe],De[Oe]=null,ft=De[--Oe],De[Oe]=null,dt=De[--Oe],De[Oe]=null}var Re=null,be=null,K=!1,Qe=null;function Oc(e,t){var n=Me(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ma(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Re=e,be=Dt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Re=e,be=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=tn!==null?{id:dt,overflow:ft}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Me(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Re=e,be=null,!0):!1;default:return!1}}function Ss(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Cs(e){if(K){var t=be;if(t){var n=t;if(!Ma(e,t)){if(Ss(e))throw Error(N(418));t=Dt(n.nextSibling);var r=Re;t&&Ma(e,t)?Oc(r,n):(e.flags=e.flags&-4097|2,K=!1,Re=e)}}else{if(Ss(e))throw Error(N(418));e.flags=e.flags&-4097|2,K=!1,Re=e}}}function Aa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Re=e}function rl(e){if(e!==Re)return!1;if(!K)return Aa(e),K=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ws(e.type,e.memoizedProps)),t&&(t=be)){if(Ss(e))throw Ic(),Error(N(418));for(;t;)Oc(e,t),t=Dt(t.nextSibling)}if(Aa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){be=Dt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}be=null}}else be=Re?Dt(e.stateNode.nextSibling):null;return!0}function Ic(){for(var e=be;e;)e=Dt(e.nextSibling)}function Dn(){be=Re=null,K=!1}function wi(e){Qe===null?Qe=[e]:Qe.push(e)}var xm=yt.ReactCurrentBatchConfig;function Yn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=l.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function ll(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fa(e){var t=e._init;return t(e._payload)}function Mc(e){function t(m,p){if(e){var v=m.deletions;v===null?(m.deletions=[p],m.flags|=16):v.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function l(m,p){return m=At(m,p),m.index=0,m.sibling=null,m}function o(m,p,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<p?(m.flags|=2,p):v):(m.flags|=2,p)):(m.flags|=1048576,p)}function i(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,v,j){return p===null||p.tag!==6?(p=Vo(v,m.mode,j),p.return=m,p):(p=l(p,v),p.return=m,p)}function u(m,p,v,j){var S=v.type;return S===pn?d(m,p,v.props.children,j,v.key):p!==null&&(p.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ct&&Fa(S)===p.type)?(j=l(p,v.props),j.ref=Yn(m,p,v),j.return=m,j):(j=jl(v.type,v.key,v.props,null,m.mode,j),j.ref=Yn(m,p,v),j.return=m,j)}function c(m,p,v,j){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=Wo(v,m.mode,j),p.return=m,p):(p=l(p,v.children||[]),p.return=m,p)}function d(m,p,v,j,S){return p===null||p.tag!==7?(p=qt(v,m.mode,j,S),p.return=m,p):(p=l(p,v),p.return=m,p)}function f(m,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Vo(""+p,m.mode,v),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Gr:return v=jl(p.type,p.key,p.props,null,m.mode,v),v.ref=Yn(m,null,p),v.return=m,v;case fn:return p=Wo(p,m.mode,v),p.return=m,p;case Ct:var j=p._init;return f(m,j(p._payload),v)}if(nr(p)||Vn(p))return p=qt(p,m.mode,v,null),p.return=m,p;ll(m,p)}return null}function h(m,p,v,j){var S=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return S!==null?null:a(m,p,""+v,j);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Gr:return v.key===S?u(m,p,v,j):null;case fn:return v.key===S?c(m,p,v,j):null;case Ct:return S=v._init,h(m,p,S(v._payload),j)}if(nr(v)||Vn(v))return S!==null?null:d(m,p,v,j,null);ll(m,v)}return null}function w(m,p,v,j,S){if(typeof j=="string"&&j!==""||typeof j=="number")return m=m.get(v)||null,a(p,m,""+j,S);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Gr:return m=m.get(j.key===null?v:j.key)||null,u(p,m,j,S);case fn:return m=m.get(j.key===null?v:j.key)||null,c(p,m,j,S);case Ct:var C=j._init;return w(m,p,v,C(j._payload),S)}if(nr(j)||Vn(j))return m=m.get(v)||null,d(p,m,j,S,null);ll(p,j)}return null}function x(m,p,v,j){for(var S=null,C=null,E=p,P=p=0,B=null;E!==null&&P<v.length;P++){E.index>P?(B=E,E=null):B=E.sibling;var z=h(m,E,v[P],j);if(z===null){E===null&&(E=B);break}e&&E&&z.alternate===null&&t(m,E),p=o(z,p,P),C===null?S=z:C.sibling=z,C=z,E=B}if(P===v.length)return n(m,E),K&&Qt(m,P),S;if(E===null){for(;P<v.length;P++)E=f(m,v[P],j),E!==null&&(p=o(E,p,P),C===null?S=E:C.sibling=E,C=E);return K&&Qt(m,P),S}for(E=r(m,E);P<v.length;P++)B=w(E,m,P,v[P],j),B!==null&&(e&&B.alternate!==null&&E.delete(B.key===null?P:B.key),p=o(B,p,P),C===null?S=B:C.sibling=B,C=B);return e&&E.forEach(function(ie){return t(m,ie)}),K&&Qt(m,P),S}function y(m,p,v,j){var S=Vn(v);if(typeof S!="function")throw Error(N(150));if(v=S.call(v),v==null)throw Error(N(151));for(var C=S=null,E=p,P=p=0,B=null,z=v.next();E!==null&&!z.done;P++,z=v.next()){E.index>P?(B=E,E=null):B=E.sibling;var ie=h(m,E,z.value,j);if(ie===null){E===null&&(E=B);break}e&&E&&ie.alternate===null&&t(m,E),p=o(ie,p,P),C===null?S=ie:C.sibling=ie,C=ie,E=B}if(z.done)return n(m,E),K&&Qt(m,P),S;if(E===null){for(;!z.done;P++,z=v.next())z=f(m,z.value,j),z!==null&&(p=o(z,p,P),C===null?S=z:C.sibling=z,C=z);return K&&Qt(m,P),S}for(E=r(m,E);!z.done;P++,z=v.next())z=w(E,m,P,z.value,j),z!==null&&(e&&z.alternate!==null&&E.delete(z.key===null?P:z.key),p=o(z,p,P),C===null?S=z:C.sibling=z,C=z);return e&&E.forEach(function(F){return t(m,F)}),K&&Qt(m,P),S}function k(m,p,v,j){if(typeof v=="object"&&v!==null&&v.type===pn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Gr:e:{for(var S=v.key,C=p;C!==null;){if(C.key===S){if(S=v.type,S===pn){if(C.tag===7){n(m,C.sibling),p=l(C,v.props.children),p.return=m,m=p;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ct&&Fa(S)===C.type){n(m,C.sibling),p=l(C,v.props),p.ref=Yn(m,C,v),p.return=m,m=p;break e}n(m,C);break}else t(m,C);C=C.sibling}v.type===pn?(p=qt(v.props.children,m.mode,j,v.key),p.return=m,m=p):(j=jl(v.type,v.key,v.props,null,m.mode,j),j.ref=Yn(m,p,v),j.return=m,m=j)}return i(m);case fn:e:{for(C=v.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(m,p.sibling),p=l(p,v.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Wo(v,m.mode,j),p.return=m,m=p}return i(m);case Ct:return C=v._init,k(m,p,C(v._payload),j)}if(nr(v))return x(m,p,v,j);if(Vn(v))return y(m,p,v,j);ll(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(m,p.sibling),p=l(p,v),p.return=m,m=p):(n(m,p),p=Vo(v,m.mode,j),p.return=m,m=p),i(m)):n(m,p)}return k}var On=Mc(!0),Ac=Mc(!1),Bl=Ut(null),$l=null,jn=null,ji=null;function ki(){ji=jn=$l=null}function Ni(e){var t=Bl.current;Q(Bl),e._currentValue=t}function Es(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Pn(e,t){$l=e,ji=jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(we=!0),e.firstContext=null)}function Fe(e){var t=e._currentValue;if(ji!==e)if(e={context:e,memoizedValue:t,next:null},jn===null){if($l===null)throw Error(N(308));jn=e,$l.dependencies={lanes:0,firstContext:e}}else jn=jn.next=e;return t}var Yt=null;function Si(e){Yt===null?Yt=[e]:Yt.push(e)}function Fc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Si(t)):(n.next=l.next,l.next=n),t.interleaved=n,gt(e,r)}function gt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Et=!1;function Ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function pt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ot(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,A&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,gt(e,n)}return l=r.interleaved,l===null?(t.next=t,Si(r)):(t.next=l.next,l.next=t),r.interleaved=t,gt(e,n)}function hl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ci(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ul(e,t,n,r){var l=e.updateQueue;Et=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,c=u.next;u.next=null,i===null?o=c:i.next=c,i=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==i&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(o!==null){var f=l.baseState;i=0,d=c=u=null,a=o;do{var h=a.lane,w=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:w,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,y=a;switch(h=t,w=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){f=x.call(w,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,h=typeof x=="function"?x.call(w,f,h):x,h==null)break e;f=Z({},f,h);break e;case 2:Et=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[a]:h.push(a))}else w={eventTime:w,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=w,u=f):d=d.next=w,i|=h;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;h=a,a=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(d===null&&(u=f),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=d,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);rn|=i,e.lanes=i,e.memoizedState=f}}function $a(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(N(191,l));l.call(r)}}}var Br={},rt=Ut(Br),Er=Ut(Br),br=Ut(Br);function Xt(e){if(e===Br)throw Error(N(174));return e}function Ei(e,t){switch(H(br,t),H(Er,e),H(rt,Br),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ss(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ss(t,e)}Q(rt),H(rt,t)}function In(){Q(rt),Q(Er),Q(br)}function $c(e){Xt(br.current);var t=Xt(rt.current),n=ss(t,e.type);t!==n&&(H(Er,e),H(rt,n))}function bi(e){Er.current===e&&(Q(rt),Q(Er))}var Y=Ut(0);function Hl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ao=[];function Ri(){for(var e=0;e<Ao.length;e++)Ao[e]._workInProgressVersionPrimary=null;Ao.length=0}var gl=yt.ReactCurrentDispatcher,Fo=yt.ReactCurrentBatchConfig,nn=0,X=null,ne=null,oe=null,Vl=!1,dr=!1,Rr=0,ym=0;function de(){throw Error(N(321))}function Pi(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xe(e[n],t[n]))return!1;return!0}function _i(e,t,n,r,l,o){if(nn=o,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,gl.current=e===null||e.memoizedState===null?Nm:Sm,e=n(r,l),dr){o=0;do{if(dr=!1,Rr=0,25<=o)throw Error(N(301));o+=1,oe=ne=null,t.updateQueue=null,gl.current=Cm,e=n(r,l)}while(dr)}if(gl.current=Wl,t=ne!==null&&ne.next!==null,nn=0,oe=ne=X=null,Vl=!1,t)throw Error(N(300));return e}function zi(){var e=Rr!==0;return Rr=0,e}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oe===null?X.memoizedState=oe=e:oe=oe.next=e,oe}function Be(){if(ne===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=ne.next;var t=oe===null?X.memoizedState:oe.next;if(t!==null)oe=t,ne=e;else{if(e===null)throw Error(N(310));ne=e,e={memoizedState:ne.memoizedState,baseState:ne.baseState,baseQueue:ne.baseQueue,queue:ne.queue,next:null},oe===null?X.memoizedState=oe=e:oe=oe.next=e}return oe}function Pr(e,t){return typeof t=="function"?t(e):t}function Bo(e){var t=Be(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=ne,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var a=i=null,u=null,c=o;do{var d=c.lane;if((nn&d)===d)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=f,i=r):u=u.next=f,X.lanes|=d,rn|=d}c=c.next}while(c!==null&&c!==o);u===null?i=r:u.next=a,Xe(r,t.memoizedState)||(we=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,X.lanes|=o,rn|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function $o(e){var t=Be(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);Xe(o,t.memoizedState)||(we=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Uc(){}function Hc(e,t){var n=X,r=Be(),l=t(),o=!Xe(r.memoizedState,l);if(o&&(r.memoizedState=l,we=!0),r=r.queue,Li(Qc.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||oe!==null&&oe.memoizedState.tag&1){if(n.flags|=2048,_r(9,Wc.bind(null,n,r,l,t),void 0,null),se===null)throw Error(N(349));nn&30||Vc(n,t,l)}return l}function Vc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wc(e,t,n,r){t.value=n,t.getSnapshot=r,Gc(t)&&Kc(e)}function Qc(e,t,n){return n(function(){Gc(t)&&Kc(e)})}function Gc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xe(e,n)}catch{return!0}}function Kc(e){var t=gt(e,1);t!==null&&Ke(t,e,1,-1)}function Ua(e){var t=et();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pr,lastRenderedState:e},t.queue=e,e=e.dispatch=km.bind(null,X,e),[t.memoizedState,e]}function _r(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Yc(){return Be().memoizedState}function vl(e,t,n,r){var l=et();X.flags|=e,l.memoizedState=_r(1|t,n,void 0,r===void 0?null:r)}function io(e,t,n,r){var l=Be();r=r===void 0?null:r;var o=void 0;if(ne!==null){var i=ne.memoizedState;if(o=i.destroy,r!==null&&Pi(r,i.deps)){l.memoizedState=_r(t,n,o,r);return}}X.flags|=e,l.memoizedState=_r(1|t,n,o,r)}function Ha(e,t){return vl(8390656,8,e,t)}function Li(e,t){return io(2048,8,e,t)}function Xc(e,t){return io(4,2,e,t)}function Jc(e,t){return io(4,4,e,t)}function Zc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qc(e,t,n){return n=n!=null?n.concat([e]):null,io(4,4,Zc.bind(null,t,e),n)}function Ti(){}function ed(e,t){var n=Be();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function td(e,t){var n=Be();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Pi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nd(e,t,n){return nn&21?(Xe(n,t)||(n=ic(),X.lanes|=n,rn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,we=!0),e.memoizedState=n)}function wm(e,t){var n=U;U=n!==0&&4>n?n:4,e(!0);var r=Fo.transition;Fo.transition={};try{e(!1),t()}finally{U=n,Fo.transition=r}}function rd(){return Be().memoizedState}function jm(e,t,n){var r=Mt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ld(e))od(t,n);else if(n=Fc(e,t,n,r),n!==null){var l=ge();Ke(n,e,r,l),sd(n,t,r)}}function km(e,t,n){var r=Mt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ld(e))od(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(l.hasEagerState=!0,l.eagerState=a,Xe(a,i)){var u=t.interleaved;u===null?(l.next=l,Si(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Fc(e,t,l,r),n!==null&&(l=ge(),Ke(n,e,r,l),sd(n,t,r))}}function ld(e){var t=e.alternate;return e===X||t!==null&&t===X}function od(e,t){dr=Vl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ci(e,n)}}var Wl={readContext:Fe,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},Nm={readContext:Fe,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:Ha,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vl(4194308,4,Zc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vl(4194308,4,e,t)},useInsertionEffect:function(e,t){return vl(4,2,e,t)},useMemo:function(e,t){var n=et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=et();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=jm.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:Ua,useDebugValue:Ti,useDeferredValue:function(e){return et().memoizedState=e},useTransition:function(){var e=Ua(!1),t=e[0];return e=wm.bind(null,e[1]),et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,l=et();if(K){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),se===null)throw Error(N(349));nn&30||Vc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ha(Qc.bind(null,r,o,e),[e]),r.flags|=2048,_r(9,Wc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=et(),t=se.identifierPrefix;if(K){var n=ft,r=dt;n=(r&~(1<<32-Ge(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Rr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ym++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Sm={readContext:Fe,useCallback:ed,useContext:Fe,useEffect:Li,useImperativeHandle:qc,useInsertionEffect:Xc,useLayoutEffect:Jc,useMemo:td,useReducer:Bo,useRef:Yc,useState:function(){return Bo(Pr)},useDebugValue:Ti,useDeferredValue:function(e){var t=Be();return nd(t,ne.memoizedState,e)},useTransition:function(){var e=Bo(Pr)[0],t=Be().memoizedState;return[e,t]},useMutableSource:Uc,useSyncExternalStore:Hc,useId:rd,unstable_isNewReconciler:!1},Cm={readContext:Fe,useCallback:ed,useContext:Fe,useEffect:Li,useImperativeHandle:qc,useInsertionEffect:Xc,useLayoutEffect:Jc,useMemo:td,useReducer:$o,useRef:Yc,useState:function(){return $o(Pr)},useDebugValue:Ti,useDeferredValue:function(e){var t=Be();return ne===null?t.memoizedState=e:nd(t,ne.memoizedState,e)},useTransition:function(){var e=$o(Pr)[0],t=Be().memoizedState;return[e,t]},useMutableSource:Uc,useSyncExternalStore:Hc,useId:rd,unstable_isNewReconciler:!1};function Ve(e,t){if(e&&e.defaultProps){t=Z({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ao={isMounted:function(e){return(e=e._reactInternals)?sn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ge(),l=Mt(e),o=pt(r,l);o.payload=t,n!=null&&(o.callback=n),t=Ot(e,o,l),t!==null&&(Ke(t,e,l,r),hl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ge(),l=Mt(e),o=pt(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ot(e,o,l),t!==null&&(Ke(t,e,l,r),hl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ge(),r=Mt(e),l=pt(n,r);l.tag=2,t!=null&&(l.callback=t),t=Ot(e,l,r),t!==null&&(Ke(t,e,r,n),hl(t,e,r))}};function Va(e,t,n,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!kr(n,r)||!kr(l,o):!0}function id(e,t,n){var r=!1,l=Bt,o=t.contextType;return typeof o=="object"&&o!==null?o=Fe(o):(l=ke(t)?en:me.current,r=t.contextTypes,o=(r=r!=null)?Tn(e,l):Bt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ao,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Wa(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ao.enqueueReplaceState(t,t.state,null)}function Rs(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Ci(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Fe(o):(o=ke(t)?en:me.current,l.context=Tn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(bs(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&ao.enqueueReplaceState(l,l.state,null),Ul(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Mn(e,t){try{var n="",r=t;do n+=qf(r),r=r.return;while(r);var l=n}catch(o){l=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Uo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ps(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Em=typeof WeakMap=="function"?WeakMap:Map;function ad(e,t,n){n=pt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gl||(Gl=!0,Fs=r),Ps(e,t)},n}function ud(e,t,n){n=pt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ps(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ps(e,t),typeof r!="function"&&(It===null?It=new Set([this]):It.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Qa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Em;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Bm.bind(null,e,t,n),t.then(e,e))}function Ga(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ka(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=pt(-1,1),t.tag=2,Ot(n,t,1))),n.lanes|=1),e)}var bm=yt.ReactCurrentOwner,we=!1;function he(e,t,n,r){t.child=e===null?Ac(t,null,n,r):On(t,e.child,n,r)}function Ya(e,t,n,r,l){n=n.render;var o=t.ref;return Pn(t,l),r=_i(e,t,n,r,o,l),n=zi(),e!==null&&!we?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,vt(e,t,l)):(K&&n&&xi(t),t.flags|=1,he(e,t,r,l),t.child)}function Xa(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!$i(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,cd(e,t,o,r,l)):(e=jl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:kr,n(i,r)&&e.ref===t.ref)return vt(e,t,l)}return t.flags|=1,e=At(o,r),e.ref=t.ref,e.return=t,t.child=e}function cd(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(kr(o,r)&&e.ref===t.ref)if(we=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(we=!0);else return t.lanes=e.lanes,vt(e,t,l)}return _s(e,t,n,r,l)}function dd(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},H(Nn,Ee),Ee|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,H(Nn,Ee),Ee|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,H(Nn,Ee),Ee|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,H(Nn,Ee),Ee|=r;return he(e,t,l,n),t.child}function fd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _s(e,t,n,r,l){var o=ke(n)?en:me.current;return o=Tn(t,o),Pn(t,l),n=_i(e,t,n,r,o,l),r=zi(),e!==null&&!we?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,vt(e,t,l)):(K&&r&&xi(t),t.flags|=1,he(e,t,n,l),t.child)}function Ja(e,t,n,r,l){if(ke(n)){var o=!0;Ml(t)}else o=!1;if(Pn(t,l),t.stateNode===null)xl(e,t),id(t,n,r),Rs(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var u=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Fe(c):(c=ke(n)?en:me.current,c=Tn(t,c));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||u!==c)&&Wa(t,i,r,c),Et=!1;var h=t.memoizedState;i.state=h,Ul(t,r,i,l),u=t.memoizedState,a!==r||h!==u||je.current||Et?(typeof d=="function"&&(bs(t,n,d,r),u=t.memoizedState),(a=Et||Va(t,n,a,r,h,u,c))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Bc(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Ve(t.type,a),i.props=c,f=t.pendingProps,h=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Fe(u):(u=ke(n)?en:me.current,u=Tn(t,u));var w=n.getDerivedStateFromProps;(d=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==f||h!==u)&&Wa(t,i,r,u),Et=!1,h=t.memoizedState,i.state=h,Ul(t,r,i,l);var x=t.memoizedState;a!==f||h!==x||je.current||Et?(typeof w=="function"&&(bs(t,n,w,r),x=t.memoizedState),(c=Et||Va(t,n,c,r,h,x,u)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,x,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,x,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),i.props=r,i.state=x,i.context=u,r=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return zs(e,t,n,r,o,l)}function zs(e,t,n,r,l,o){fd(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Ia(t,n,!1),vt(e,t,o);r=t.stateNode,bm.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=On(t,e.child,null,o),t.child=On(t,null,a,o)):he(e,t,a,o),t.memoizedState=r.state,l&&Ia(t,n,!0),t.child}function pd(e){var t=e.stateNode;t.pendingContext?Oa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Oa(e,t.context,!1),Ei(e,t.containerInfo)}function Za(e,t,n,r,l){return Dn(),wi(l),t.flags|=256,he(e,t,n,r),t.child}var Ls={dehydrated:null,treeContext:null,retryLane:0};function Ts(e){return{baseLanes:e,cachePool:null,transitions:null}}function md(e,t,n){var r=t.pendingProps,l=Y.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),H(Y,l&1),e===null)return Cs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=fo(i,r,0,null),e=qt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ts(n),t.memoizedState=Ls,e):Di(t,i));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Rm(e,t,i,r,a,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=At(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?o=At(a,o):(o=qt(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Ts(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Ls,r}return o=e.child,e=o.sibling,r=At(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Di(e,t){return t=fo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ol(e,t,n,r){return r!==null&&wi(r),On(t,e.child,null,n),e=Di(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Rm(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Uo(Error(N(422))),ol(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=fo({mode:"visible",children:r.children},l,0,null),o=qt(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&On(t,e.child,null,i),t.child.memoizedState=Ts(i),t.memoizedState=Ls,o);if(!(t.mode&1))return ol(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(N(419)),r=Uo(o,r,void 0),ol(e,t,i,r)}if(a=(i&e.childLanes)!==0,we||a){if(r=se,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,gt(e,l),Ke(r,e,l,-1))}return Bi(),r=Uo(Error(N(421))),ol(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=$m.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,be=Dt(l.nextSibling),Re=t,K=!0,Qe=null,e!==null&&(De[Oe++]=dt,De[Oe++]=ft,De[Oe++]=tn,dt=e.id,ft=e.overflow,tn=t),t=Di(t,r.children),t.flags|=4096,t)}function qa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Es(e.return,t,n)}function Ho(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function hd(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(he(e,t,r.children,n),r=Y.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qa(e,n,t);else if(e.tag===19)qa(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(H(Y,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Hl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ho(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Hl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ho(t,!0,n,null,o);break;case"together":Ho(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=At(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=At(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pm(e,t,n){switch(t.tag){case 3:pd(t),Dn();break;case 5:$c(t);break;case 1:ke(t.type)&&Ml(t);break;case 4:Ei(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;H(Bl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(H(Y,Y.current&1),t.flags|=128,null):n&t.child.childLanes?md(e,t,n):(H(Y,Y.current&1),e=vt(e,t,n),e!==null?e.sibling:null);H(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hd(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),H(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,dd(e,t,n)}return vt(e,t,n)}var gd,Ds,vd,xd;gd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ds=function(){};vd=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Xt(rt.current);var o=null;switch(n){case"input":l=ns(e,l),r=ns(e,r),o=[];break;case"select":l=Z({},l,{value:void 0}),r=Z({},r,{value:void 0}),o=[];break;case"textarea":l=os(e,l),r=os(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ol)}is(n,r);var i;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var a=l[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(hr.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(a=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&a[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(hr.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&W("scroll",e),o||a===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};xd=function(e,t,n,r){n!==r&&(t.flags|=4)};function Xn(e,t){if(!K)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _m(e,t,n){var r=t.pendingProps;switch(yi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fe(t),null;case 1:return ke(t.type)&&Il(),fe(t),null;case 3:return r=t.stateNode,In(),Q(je),Q(me),Ri(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qe!==null&&(Us(Qe),Qe=null))),Ds(e,t),fe(t),null;case 5:bi(t);var l=Xt(br.current);if(n=t.type,e!==null&&t.stateNode!=null)vd(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return fe(t),null}if(e=Xt(rt.current),rl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[tt]=t,r[Cr]=o,e=(t.mode&1)!==0,n){case"dialog":W("cancel",r),W("close",r);break;case"iframe":case"object":case"embed":W("load",r);break;case"video":case"audio":for(l=0;l<lr.length;l++)W(lr[l],r);break;case"source":W("error",r);break;case"img":case"image":case"link":W("error",r),W("load",r);break;case"details":W("toggle",r);break;case"input":aa(r,o),W("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},W("invalid",r);break;case"textarea":ca(r,o),W("invalid",r)}is(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&nl(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&nl(r.textContent,a,e),l=["children",""+a]):hr.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&W("scroll",r)}switch(n){case"input":Kr(r),ua(r,o,!0);break;case"textarea":Kr(r),da(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Ol)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Qu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[tt]=t,e[Cr]=r,gd(e,t,!1,!1),t.stateNode=e;e:{switch(i=as(n,r),n){case"dialog":W("cancel",e),W("close",e),l=r;break;case"iframe":case"object":case"embed":W("load",e),l=r;break;case"video":case"audio":for(l=0;l<lr.length;l++)W(lr[l],e);l=r;break;case"source":W("error",e),l=r;break;case"img":case"image":case"link":W("error",e),W("load",e),l=r;break;case"details":W("toggle",e),l=r;break;case"input":aa(e,r),l=ns(e,r),W("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=Z({},r,{value:void 0}),W("invalid",e);break;case"textarea":ca(e,r),l=os(e,r),W("invalid",e);break;default:l=r}is(n,l),a=l;for(o in a)if(a.hasOwnProperty(o)){var u=a[o];o==="style"?Yu(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Gu(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&gr(e,u):typeof u=="number"&&gr(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(hr.hasOwnProperty(o)?u!=null&&o==="onScroll"&&W("scroll",e):u!=null&&li(e,o,u,i))}switch(n){case"input":Kr(e),ua(e,r,!1);break;case"textarea":Kr(e),da(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ft(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Cn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Cn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Ol)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return fe(t),null;case 6:if(e&&t.stateNode!=null)xd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=Xt(br.current),Xt(rt.current),rl(t)){if(r=t.stateNode,n=t.memoizedProps,r[tt]=t,(o=r.nodeValue!==n)&&(e=Re,e!==null))switch(e.tag){case 3:nl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&nl(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[tt]=t,t.stateNode=r}return fe(t),null;case 13:if(Q(Y),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(K&&be!==null&&t.mode&1&&!(t.flags&128))Ic(),Dn(),t.flags|=98560,o=!1;else if(o=rl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(N(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(N(317));o[tt]=t}else Dn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fe(t),o=!1}else Qe!==null&&(Us(Qe),Qe=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Y.current&1?re===0&&(re=3):Bi())),t.updateQueue!==null&&(t.flags|=4),fe(t),null);case 4:return In(),Ds(e,t),e===null&&Nr(t.stateNode.containerInfo),fe(t),null;case 10:return Ni(t.type._context),fe(t),null;case 17:return ke(t.type)&&Il(),fe(t),null;case 19:if(Q(Y),o=t.memoizedState,o===null)return fe(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)Xn(o,!1);else{if(re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Hl(e),i!==null){for(t.flags|=128,Xn(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return H(Y,Y.current&1|2),t.child}e=e.sibling}o.tail!==null&&ee()>An&&(t.flags|=128,r=!0,Xn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Hl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!K)return fe(t),null}else 2*ee()-o.renderingStartTime>An&&n!==1073741824&&(t.flags|=128,r=!0,Xn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ee(),t.sibling=null,n=Y.current,H(Y,r?n&1|2:n&1),t):(fe(t),null);case 22:case 23:return Fi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ee&1073741824&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function zm(e,t){switch(yi(t),t.tag){case 1:return ke(t.type)&&Il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return In(),Q(je),Q(me),Ri(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bi(t),null;case 13:if(Q(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Dn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Y),null;case 4:return In(),null;case 10:return Ni(t.type._context),null;case 22:case 23:return Fi(),null;case 24:return null;default:return null}}var sl=!1,pe=!1,Lm=typeof WeakSet=="function"?WeakSet:Set,R=null;function kn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){q(e,t,r)}else n.current=null}function Os(e,t,n){try{n()}catch(r){q(e,t,r)}}var eu=!1;function Tm(e,t){if(xs=Ll,e=Nc(),vi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var w;f!==n||l!==0&&f.nodeType!==3||(a=i+l),f!==o||r!==0&&f.nodeType!==3||(u=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(w=f.firstChild)!==null;)h=f,f=w;for(;;){if(f===e)break t;if(h===n&&++c===l&&(a=i),h===o&&++d===r&&(u=i),(w=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=w}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ys={focusedElem:e,selectionRange:n},Ll=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,k=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ve(t.type,y),k);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(j){q(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return x=eu,eu=!1,x}function fr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Os(t,n,o)}l=l.next}while(l!==r)}}function uo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Is(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function yd(e){var t=e.alternate;t!==null&&(e.alternate=null,yd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tt],delete t[Cr],delete t[ks],delete t[hm],delete t[gm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wd(e){return e.tag===5||e.tag===3||e.tag===4}function tu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wd(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.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 Ms(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ol));else if(r!==4&&(e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}function As(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(As(e,t,n),e=e.sibling;e!==null;)As(e,t,n),e=e.sibling}var ae=null,We=!1;function kt(e,t,n){for(n=n.child;n!==null;)jd(e,t,n),n=n.sibling}function jd(e,t,n){if(nt&&typeof nt.onCommitFiberUnmount=="function")try{nt.onCommitFiberUnmount(to,n)}catch{}switch(n.tag){case 5:pe||kn(n,t);case 6:var r=ae,l=We;ae=null,kt(e,t,n),ae=r,We=l,ae!==null&&(We?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(We?(e=ae,n=n.stateNode,e.nodeType===8?Io(e.parentNode,n):e.nodeType===1&&Io(e,n),wr(e)):Io(ae,n.stateNode));break;case 4:r=ae,l=We,ae=n.stateNode.containerInfo,We=!0,kt(e,t,n),ae=r,We=l;break;case 0:case 11:case 14:case 15:if(!pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Os(n,t,i),l=l.next}while(l!==r)}kt(e,t,n);break;case 1:if(!pe&&(kn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){q(n,t,a)}kt(e,t,n);break;case 21:kt(e,t,n);break;case 22:n.mode&1?(pe=(r=pe)||n.memoizedState!==null,kt(e,t,n),pe=r):kt(e,t,n);break;default:kt(e,t,n)}}function nu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lm),t.forEach(function(r){var l=Um.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function He(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:ae=a.stateNode,We=!1;break e;case 3:ae=a.stateNode.containerInfo,We=!0;break e;case 4:ae=a.stateNode.containerInfo,We=!0;break e}a=a.return}if(ae===null)throw Error(N(160));jd(o,i,l),ae=null,We=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(c){q(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)kd(t,e),t=t.sibling}function kd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(He(t,e),qe(e),r&4){try{fr(3,e,e.return),uo(3,e)}catch(y){q(e,e.return,y)}try{fr(5,e,e.return)}catch(y){q(e,e.return,y)}}break;case 1:He(t,e),qe(e),r&512&&n!==null&&kn(n,n.return);break;case 5:if(He(t,e),qe(e),r&512&&n!==null&&kn(n,n.return),e.flags&32){var l=e.stateNode;try{gr(l,"")}catch(y){q(e,e.return,y)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Vu(l,o),as(a,i);var c=as(a,o);for(i=0;i<u.length;i+=2){var d=u[i],f=u[i+1];d==="style"?Yu(l,f):d==="dangerouslySetInnerHTML"?Gu(l,f):d==="children"?gr(l,f):li(l,d,f,c)}switch(a){case"input":rs(l,o);break;case"textarea":Wu(l,o);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var w=o.value;w!=null?Cn(l,!!o.multiple,w,!1):h!==!!o.multiple&&(o.defaultValue!=null?Cn(l,!!o.multiple,o.defaultValue,!0):Cn(l,!!o.multiple,o.multiple?[]:"",!1))}l[Cr]=o}catch(y){q(e,e.return,y)}}break;case 6:if(He(t,e),qe(e),r&4){if(e.stateNode===null)throw Error(N(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(y){q(e,e.return,y)}}break;case 3:if(He(t,e),qe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{wr(t.containerInfo)}catch(y){q(e,e.return,y)}break;case 4:He(t,e),qe(e);break;case 13:He(t,e),qe(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Mi=ee())),r&4&&nu(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(pe=(c=pe)||d,He(t,e),pe=c):He(t,e),qe(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(R=e,d=e.child;d!==null;){for(f=R=d;R!==null;){switch(h=R,w=h.child,h.tag){case 0:case 11:case 14:case 15:fr(4,h,h.return);break;case 1:kn(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){q(r,n,y)}}break;case 5:kn(h,h.return);break;case 22:if(h.memoizedState!==null){lu(f);continue}}w!==null?(w.return=h,R=w):lu(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{l=f.stateNode,c?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,u=f.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=Ku("display",i))}catch(y){q(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(y){q(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:He(t,e),qe(e),r&4&&nu(e);break;case 21:break;default:He(t,e),qe(e)}}function qe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wd(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(gr(l,""),r.flags&=-33);var o=tu(e);As(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,a=tu(e);Ms(e,a,i);break;default:throw Error(N(161))}}catch(u){q(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dm(e,t,n){R=e,Nd(e)}function Nd(e,t,n){for(var r=(e.mode&1)!==0;R!==null;){var l=R,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||sl;if(!i){var a=l.alternate,u=a!==null&&a.memoizedState!==null||pe;a=sl;var c=pe;if(sl=i,(pe=u)&&!c)for(R=l;R!==null;)i=R,u=i.child,i.tag===22&&i.memoizedState!==null?ou(l):u!==null?(u.return=i,R=u):ou(l);for(;o!==null;)R=o,Nd(o),o=o.sibling;R=l,sl=a,pe=c}ru(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,R=o):ru(e)}}function ru(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:pe||uo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!pe)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ve(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&$a(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}$a(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&wr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}pe||t.flags&512&&Is(t)}catch(h){q(t,t.return,h)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function lu(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function ou(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{uo(4,t)}catch(u){q(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){q(t,l,u)}}var o=t.return;try{Is(t)}catch(u){q(t,o,u)}break;case 5:var i=t.return;try{Is(t)}catch(u){q(t,i,u)}}}catch(u){q(t,t.return,u)}if(t===e){R=null;break}var a=t.sibling;if(a!==null){a.return=t.return,R=a;break}R=t.return}}var Om=Math.ceil,Ql=yt.ReactCurrentDispatcher,Oi=yt.ReactCurrentOwner,Ae=yt.ReactCurrentBatchConfig,A=0,se=null,te=null,ue=0,Ee=0,Nn=Ut(0),re=0,zr=null,rn=0,co=0,Ii=0,pr=null,ye=null,Mi=0,An=1/0,it=null,Gl=!1,Fs=null,It=null,il=!1,_t=null,Kl=0,mr=0,Bs=null,yl=-1,wl=0;function ge(){return A&6?ee():yl!==-1?yl:yl=ee()}function Mt(e){return e.mode&1?A&2&&ue!==0?ue&-ue:xm.transition!==null?(wl===0&&(wl=ic()),wl):(e=U,e!==0||(e=window.event,e=e===void 0?16:mc(e.type)),e):1}function Ke(e,t,n,r){if(50<mr)throw mr=0,Bs=null,Error(N(185));Mr(e,n,r),(!(A&2)||e!==se)&&(e===se&&(!(A&2)&&(co|=n),re===4&&Rt(e,ue)),Ne(e,r),n===1&&A===0&&!(t.mode&1)&&(An=ee()+500,so&&Ht()))}function Ne(e,t){var n=e.callbackNode;xp(e,t);var r=zl(e,e===se?ue:0);if(r===0)n!==null&&ma(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ma(n),t===1)e.tag===0?vm(su.bind(null,e)):Tc(su.bind(null,e)),pm(function(){!(A&6)&&Ht()}),n=null;else{switch(ac(r)){case 1:n=ui;break;case 4:n=oc;break;case 16:n=_l;break;case 536870912:n=sc;break;default:n=_l}n=zd(n,Sd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Sd(e,t){if(yl=-1,wl=0,A&6)throw Error(N(327));var n=e.callbackNode;if(_n()&&e.callbackNode!==n)return null;var r=zl(e,e===se?ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Yl(e,r);else{t=r;var l=A;A|=2;var o=Ed();(se!==e||ue!==t)&&(it=null,An=ee()+500,Zt(e,t));do try{Am();break}catch(a){Cd(e,a)}while(!0);ki(),Ql.current=o,A=l,te!==null?t=0:(se=null,ue=0,t=re)}if(t!==0){if(t===2&&(l=ps(e),l!==0&&(r=l,t=$s(e,l))),t===1)throw n=zr,Zt(e,0),Rt(e,r),Ne(e,ee()),n;if(t===6)Rt(e,r);else{if(l=e.current.alternate,!(r&30)&&!Im(l)&&(t=Yl(e,r),t===2&&(o=ps(e),o!==0&&(r=o,t=$s(e,o))),t===1))throw n=zr,Zt(e,0),Rt(e,r),Ne(e,ee()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:Gt(e,ye,it);break;case 3:if(Rt(e,r),(r&130023424)===r&&(t=Mi+500-ee(),10<t)){if(zl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ge(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=js(Gt.bind(null,e,ye,it),t);break}Gt(e,ye,it);break;case 4:if(Rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-Ge(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Om(r/1960))-r,10<r){e.timeoutHandle=js(Gt.bind(null,e,ye,it),r);break}Gt(e,ye,it);break;case 5:Gt(e,ye,it);break;default:throw Error(N(329))}}}return Ne(e,ee()),e.callbackNode===n?Sd.bind(null,e):null}function $s(e,t){var n=pr;return e.current.memoizedState.isDehydrated&&(Zt(e,t).flags|=256),e=Yl(e,t),e!==2&&(t=ye,ye=n,t!==null&&Us(t)),e}function Us(e){ye===null?ye=e:ye.push.apply(ye,e)}function Im(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Xe(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Rt(e,t){for(t&=~Ii,t&=~co,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ge(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(A&6)throw Error(N(327));_n();var t=zl(e,0);if(!(t&1))return Ne(e,ee()),null;var n=Yl(e,t);if(e.tag!==0&&n===2){var r=ps(e);r!==0&&(t=r,n=$s(e,r))}if(n===1)throw n=zr,Zt(e,0),Rt(e,t),Ne(e,ee()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gt(e,ye,it),Ne(e,ee()),null}function Ai(e,t){var n=A;A|=1;try{return e(t)}finally{A=n,A===0&&(An=ee()+500,so&&Ht())}}function ln(e){_t!==null&&_t.tag===0&&!(A&6)&&_n();var t=A;A|=1;var n=Ae.transition,r=U;try{if(Ae.transition=null,U=1,e)return e()}finally{U=r,Ae.transition=n,A=t,!(A&6)&&Ht()}}function Fi(){Ee=Nn.current,Q(Nn)}function Zt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,fm(n)),te!==null)for(n=te.return;n!==null;){var r=n;switch(yi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Il();break;case 3:In(),Q(je),Q(me),Ri();break;case 5:bi(r);break;case 4:In();break;case 13:Q(Y);break;case 19:Q(Y);break;case 10:Ni(r.type._context);break;case 22:case 23:Fi()}n=n.return}if(se=e,te=e=At(e.current,null),ue=Ee=t,re=0,zr=null,Ii=co=rn=0,ye=pr=null,Yt!==null){for(t=0;t<Yt.length;t++)if(n=Yt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}Yt=null}return e}function Cd(e,t){do{var n=te;try{if(ki(),gl.current=Wl,Vl){for(var r=X.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Vl=!1}if(nn=0,oe=ne=X=null,dr=!1,Rr=0,Oi.current=null,n===null||n.return===null){re=1,zr=t,te=null;break}e:{var o=e,i=n.return,a=n,u=t;if(t=ue,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var w=Ga(i);if(w!==null){w.flags&=-257,Ka(w,i,a,o,t),w.mode&1&&Qa(o,c,t),t=w,u=c;var x=t.updateQueue;if(x===null){var y=new Set;y.add(u),t.updateQueue=y}else x.add(u);break e}else{if(!(t&1)){Qa(o,c,t),Bi();break e}u=Error(N(426))}}else if(K&&a.mode&1){var k=Ga(i);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Ka(k,i,a,o,t),wi(Mn(u,a));break e}}o=u=Mn(u,a),re!==4&&(re=2),pr===null?pr=[o]:pr.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=ad(o,u,t);Ba(o,m);break e;case 1:a=u;var p=o.type,v=o.stateNode;if(!(o.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(It===null||!It.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var j=ud(o,a,t);Ba(o,j);break e}}o=o.return}while(o!==null)}Rd(n)}catch(S){t=S,te===n&&n!==null&&(te=n=n.return);continue}break}while(!0)}function Ed(){var e=Ql.current;return Ql.current=Wl,e===null?Wl:e}function Bi(){(re===0||re===3||re===2)&&(re=4),se===null||!(rn&268435455)&&!(co&268435455)||Rt(se,ue)}function Yl(e,t){var n=A;A|=2;var r=Ed();(se!==e||ue!==t)&&(it=null,Zt(e,t));do try{Mm();break}catch(l){Cd(e,l)}while(!0);if(ki(),A=n,Ql.current=r,te!==null)throw Error(N(261));return se=null,ue=0,re}function Mm(){for(;te!==null;)bd(te)}function Am(){for(;te!==null&&!up();)bd(te)}function bd(e){var t=_d(e.alternate,e,Ee);e.memoizedProps=e.pendingProps,t===null?Rd(e):te=t,Oi.current=null}function Rd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=zm(n,t),n!==null){n.flags&=32767,te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{re=6,te=null;return}}else if(n=_m(n,t,Ee),n!==null){te=n;return}if(t=t.sibling,t!==null){te=t;return}te=t=e}while(t!==null);re===0&&(re=5)}function Gt(e,t,n){var r=U,l=Ae.transition;try{Ae.transition=null,U=1,Fm(e,t,n,r)}finally{Ae.transition=l,U=r}return null}function Fm(e,t,n,r){do _n();while(_t!==null);if(A&6)throw Error(N(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(yp(e,o),e===se&&(te=se=null,ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||il||(il=!0,zd(_l,function(){return _n(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ae.transition,Ae.transition=null;var i=U;U=1;var a=A;A|=4,Oi.current=null,Tm(e,n),kd(n,e),om(ys),Ll=!!xs,ys=xs=null,e.current=n,Dm(n),cp(),A=a,U=i,Ae.transition=o}else e.current=n;if(il&&(il=!1,_t=e,Kl=l),o=e.pendingLanes,o===0&&(It=null),pp(n.stateNode),Ne(e,ee()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Gl)throw Gl=!1,e=Fs,Fs=null,e;return Kl&1&&e.tag!==0&&_n(),o=e.pendingLanes,o&1?e===Bs?mr++:(mr=0,Bs=e):mr=0,Ht(),null}function _n(){if(_t!==null){var e=ac(Kl),t=Ae.transition,n=U;try{if(Ae.transition=null,U=16>e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,Kl=0,A&6)throw Error(N(331));var l=A;for(A|=4,R=e.current;R!==null;){var o=R,i=o.child;if(R.flags&16){var a=o.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(R=c;R!==null;){var d=R;switch(d.tag){case 0:case 11:case 15:fr(8,d,o)}var f=d.child;if(f!==null)f.return=d,R=f;else for(;R!==null;){d=R;var h=d.sibling,w=d.return;if(yd(d),d===c){R=null;break}if(h!==null){h.return=w,R=h;break}R=w}}}var x=o.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var k=y.sibling;y.sibling=null,y=k}while(y!==null)}}R=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,R=i;else e:for(;R!==null;){if(o=R,o.flags&2048)switch(o.tag){case 0:case 11:case 15:fr(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,R=m;break e}R=o.return}}var p=e.current;for(R=p;R!==null;){i=R;var v=i.child;if(i.subtreeFlags&2064&&v!==null)v.return=i,R=v;else e:for(i=p;R!==null;){if(a=R,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:uo(9,a)}}catch(S){q(a,a.return,S)}if(a===i){R=null;break e}var j=a.sibling;if(j!==null){j.return=a.return,R=j;break e}R=a.return}}if(A=l,Ht(),nt&&typeof nt.onPostCommitFiberRoot=="function")try{nt.onPostCommitFiberRoot(to,e)}catch{}r=!0}return r}finally{U=n,Ae.transition=t}}return!1}function iu(e,t,n){t=Mn(n,t),t=ad(e,t,1),e=Ot(e,t,1),t=ge(),e!==null&&(Mr(e,1,t),Ne(e,t))}function q(e,t,n){if(e.tag===3)iu(e,e,n);else for(;t!==null;){if(t.tag===3){iu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(It===null||!It.has(r))){e=Mn(n,e),e=ud(t,e,1),t=Ot(t,e,1),e=ge(),t!==null&&(Mr(t,1,e),Ne(t,e));break}}t=t.return}}function Bm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ge(),e.pingedLanes|=e.suspendedLanes&n,se===e&&(ue&n)===n&&(re===4||re===3&&(ue&130023424)===ue&&500>ee()-Mi?Zt(e,0):Ii|=n),Ne(e,t)}function Pd(e,t){t===0&&(e.mode&1?(t=Jr,Jr<<=1,!(Jr&130023424)&&(Jr=4194304)):t=1);var n=ge();e=gt(e,t),e!==null&&(Mr(e,t,n),Ne(e,n))}function $m(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pd(e,n)}function Um(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Pd(e,n)}var _d;_d=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)we=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return we=!1,Pm(e,t,n);we=!!(e.flags&131072)}else we=!1,K&&t.flags&1048576&&Dc(t,Fl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xl(e,t),e=t.pendingProps;var l=Tn(t,me.current);Pn(t,n),l=_i(null,t,r,e,l,n);var o=zi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ke(r)?(o=!0,Ml(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ci(t),l.updater=ao,t.stateNode=l,l._reactInternals=t,Rs(t,r,e,n),t=zs(null,t,r,!0,o,n)):(t.tag=0,K&&o&&xi(t),he(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Vm(r),e=Ve(r,e),l){case 0:t=_s(null,t,r,e,n);break e;case 1:t=Ja(null,t,r,e,n);break e;case 11:t=Ya(null,t,r,e,n);break e;case 14:t=Xa(null,t,r,Ve(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),_s(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),Ja(e,t,r,l,n);case 3:e:{if(pd(t),e===null)throw Error(N(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Bc(e,t),Ul(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Mn(Error(N(423)),t),t=Za(e,t,r,n,l);break e}else if(r!==l){l=Mn(Error(N(424)),t),t=Za(e,t,r,n,l);break e}else for(be=Dt(t.stateNode.containerInfo.firstChild),Re=t,K=!0,Qe=null,n=Ac(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Dn(),r===l){t=vt(e,t,n);break e}he(e,t,r,n)}t=t.child}return t;case 5:return $c(t),e===null&&Cs(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ws(r,l)?i=null:o!==null&&ws(r,o)&&(t.flags|=32),fd(e,t),he(e,t,i,n),t.child;case 6:return e===null&&Cs(t),null;case 13:return md(e,t,n);case 4:return Ei(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):he(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),Ya(e,t,r,l,n);case 7:return he(e,t,t.pendingProps,n),t.child;case 8:return he(e,t,t.pendingProps.children,n),t.child;case 12:return he(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,H(Bl,r._currentValue),r._currentValue=i,o!==null)if(Xe(o.value,i)){if(o.children===l.children&&!je.current){t=vt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=pt(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Es(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(N(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Es(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}he(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Pn(t,n),l=Fe(l),r=r(l),t.flags|=1,he(e,t,r,n),t.child;case 14:return r=t.type,l=Ve(r,t.pendingProps),l=Ve(r.type,l),Xa(e,t,r,l,n);case 15:return cd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),xl(e,t),t.tag=1,ke(r)?(e=!0,Ml(t)):e=!1,Pn(t,n),id(t,r,l),Rs(t,r,l,n),zs(null,t,r,!0,e,n);case 19:return hd(e,t,n);case 22:return dd(e,t,n)}throw Error(N(156,t.tag))};function zd(e,t){return lc(e,t)}function Hm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Me(e,t,n,r){return new Hm(e,t,n,r)}function $i(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vm(e){if(typeof e=="function")return $i(e)?1:0;if(e!=null){if(e=e.$$typeof,e===si)return 11;if(e===ii)return 14}return 2}function At(e,t){var n=e.alternate;return n===null?(n=Me(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")$i(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case pn:return qt(n.children,l,o,t);case oi:i=8,l|=8;break;case Zo:return e=Me(12,n,t,l|2),e.elementType=Zo,e.lanes=o,e;case qo:return e=Me(13,n,t,l),e.elementType=qo,e.lanes=o,e;case es:return e=Me(19,n,t,l),e.elementType=es,e.lanes=o,e;case $u:return fo(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fu:i=10;break e;case Bu:i=9;break e;case si:i=11;break e;case ii:i=14;break e;case Ct:i=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Me(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function qt(e,t,n,r){return e=Me(7,e,r,t),e.lanes=n,e}function fo(e,t,n,r){return e=Me(22,e,r,t),e.elementType=$u,e.lanes=n,e.stateNode={isHidden:!1},e}function Vo(e,t,n){return e=Me(6,e,null,t),e.lanes=n,e}function Wo(e,t,n){return t=Me(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Co(0),this.expirationTimes=Co(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Co(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ui(e,t,n,r,l,o,i,a,u){return e=new Wm(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Me(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ci(o),e}function Qm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:fn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ld(e){if(!e)return Bt;e=e._reactInternals;e:{if(sn(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ke(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(ke(n))return Lc(e,n,t)}return t}function Td(e,t,n,r,l,o,i,a,u){return e=Ui(n,r,!0,e,l,o,i,a,u),e.context=Ld(null),n=e.current,r=ge(),l=Mt(n),o=pt(r,l),o.callback=t??null,Ot(n,o,l),e.current.lanes=l,Mr(e,l,r),Ne(e,r),e}function po(e,t,n,r){var l=t.current,o=ge(),i=Mt(l);return n=Ld(n),t.context===null?t.context=n:t.pendingContext=n,t=pt(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ot(l,t,i),e!==null&&(Ke(e,l,i,o),hl(e,l,i)),i}function Xl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function au(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hi(e,t){au(e,t),(e=e.alternate)&&au(e,t)}function Gm(){return null}var Dd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Vi(e){this._internalRoot=e}mo.prototype.render=Vi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));po(e,t,null,null)};mo.prototype.unmount=Vi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ln(function(){po(null,e,null,null)}),t[ht]=null}};function mo(e){this._internalRoot=e}mo.prototype.unstable_scheduleHydration=function(e){if(e){var t=dc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bt.length&&t!==0&&t<bt[n].priority;n++);bt.splice(n,0,e),n===0&&pc(e)}};function Wi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ho(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function uu(){}function Km(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var c=Xl(i);o.call(c)}}var i=Td(t,r,e,0,null,!1,!1,"",uu);return e._reactRootContainer=i,e[ht]=i.current,Nr(e.nodeType===8?e.parentNode:e),ln(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var c=Xl(u);a.call(c)}}var u=Ui(e,0,!1,null,null,!1,!1,"",uu);return e._reactRootContainer=u,e[ht]=u.current,Nr(e.nodeType===8?e.parentNode:e),ln(function(){po(t,u,n,r)}),u}function go(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var a=l;l=function(){var u=Xl(i);a.call(u)}}po(t,i,e,l)}else i=Km(n,t,e,l,r);return Xl(i)}uc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=rr(t.pendingLanes);n!==0&&(ci(t,n|1),Ne(t,ee()),!(A&6)&&(An=ee()+500,Ht()))}break;case 13:ln(function(){var r=gt(e,1);if(r!==null){var l=ge();Ke(r,e,1,l)}}),Hi(e,1)}};di=function(e){if(e.tag===13){var t=gt(e,134217728);if(t!==null){var n=ge();Ke(t,e,134217728,n)}Hi(e,134217728)}};cc=function(e){if(e.tag===13){var t=Mt(e),n=gt(e,t);if(n!==null){var r=ge();Ke(n,e,t,r)}Hi(e,t)}};dc=function(){return U};fc=function(e,t){var n=U;try{return U=e,t()}finally{U=n}};cs=function(e,t,n){switch(t){case"input":if(rs(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=oo(r);if(!l)throw Error(N(90));Hu(r),rs(r,l)}}}break;case"textarea":Wu(e,n);break;case"select":t=n.value,t!=null&&Cn(e,!!n.multiple,t,!1)}};Zu=Ai;qu=ln;var Ym={usingClientEntryPoint:!1,Events:[Fr,vn,oo,Xu,Ju,Ai]},Jn={findFiberByHostInstance:Kt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Xm={bundleType:Jn.bundleType,version:Jn.version,rendererPackageName:Jn.rendererPackageName,rendererConfig:Jn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nc(e),e===null?null:e.stateNode},findFiberByHostInstance:Jn.findFiberByHostInstance||Gm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var al=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!al.isDisabled&&al.supportsFiber)try{to=al.inject(Xm),nt=al}catch{}}ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ym;ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wi(t))throw Error(N(200));return Qm(e,t,null,n)};ze.createRoot=function(e,t){if(!Wi(e))throw Error(N(299));var n=!1,r="",l=Dd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Ui(e,1,!1,null,null,n,!1,r,l),e[ht]=t.current,Nr(e.nodeType===8?e.parentNode:e),new Vi(t)};ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=nc(t),e=e===null?null:e.stateNode,e};ze.flushSync=function(e){return ln(e)};ze.hydrate=function(e,t,n){if(!ho(t))throw Error(N(200));return go(null,e,t,!0,n)};ze.hydrateRoot=function(e,t,n){if(!Wi(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=Dd;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Td(t,null,e,1,n??null,l,!1,o,i),e[ht]=t.current,Nr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new mo(t)};ze.render=function(e,t,n){if(!ho(t))throw Error(N(200));return go(null,e,t,!1,n)};ze.unmountComponentAtNode=function(e){if(!ho(e))throw Error(N(40));return e._reactRootContainer?(ln(function(){go(null,null,e,!1,function(){e._reactRootContainer=null,e[ht]=null})}),!0):!1};ze.unstable_batchedUpdates=Ai;ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ho(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return go(e,t,n,!1,r)};ze.version="18.3.1-next-f1338f8080-20240426";function Od(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Od)}catch(e){console.error(e)}}Od(),Ou.exports=ze;var Jm=Ou.exports,cu=Jm;Xo.createRoot=cu.createRoot,Xo.hydrateRoot=cu.hydrateRoot;/**
|
|
41
|
+
* react-router v7.17.0
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/var du="popstate";function fu(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Zm(e={}){function t(l,o){let{pathname:i="/",search:a="",hash:u=""}=an(l.location.hash.substring(1));return!i.startsWith("/")&&!i.startsWith(".")&&(i="/"+i),Hs("",{pathname:i,search:a,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(l,o){let i=l.document.querySelector("base"),a="";if(i&&i.getAttribute("href")){let u=l.location.href,c=u.indexOf("#");a=c===-1?u:u.slice(0,c)}return a+"#"+(typeof o=="string"?o:Lr(o))}function r(l,o){Je(l.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(o)})`)}return eh(t,n,r,e)}function J(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Je(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qm(){return Math.random().toString(36).substring(2,10)}function pu(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Hs(e,t,n=null,r,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?an(t):t,state:n,key:t&&t.key||r||qm(),mask:l}}function Lr({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function an(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function eh(e,t,n,r={}){let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,a="POP",u=null,c=d();c==null&&(c=0,i.replaceState({...i.state,idx:c},""));function d(){return(i.state||{idx:null}).idx}function f(){a="POP";let k=d(),m=k==null?null:k-c;c=k,u&&u({action:a,location:y.location,delta:m})}function h(k,m){a="PUSH";let p=fu(k)?k:Hs(y.location,k,m);n&&n(p,k),c=d()+1;let v=pu(p,c),j=y.createHref(p.mask||p);try{i.pushState(v,"",j)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;l.location.assign(j)}o&&u&&u({action:a,location:y.location,delta:1})}function w(k,m){a="REPLACE";let p=fu(k)?k:Hs(y.location,k,m);n&&n(p,k),c=d();let v=pu(p,c),j=y.createHref(p.mask||p);i.replaceState(v,"",j),o&&u&&u({action:a,location:y.location,delta:0})}function x(k){return th(l,k)}let y={get action(){return a},get location(){return e(l,i)},listen(k){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(du,f),u=k,()=>{l.removeEventListener(du,f),u=null}},createHref(k){return t(l,k)},createURL:x,encodeLocation(k){let m=x(k);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:w,go(k){return i.go(k)}};return y}function th(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),J(r,"No window.location.(origin|href) available to create URL");let l=typeof t=="string"?t:Lr(t);return l=l.replace(/ $/,"%20"),!n&&l.startsWith("//")&&(l=r+l),new URL(l,r)}function Id(e,t,n="/"){return nh(e,t,n,!1)}function nh(e,t,n,r,l){let o=typeof t=="string"?an(t):t,i=xt(o.pathname||"/",n);if(i==null)return null;let a=rh(e),u=null,c=hh(i);for(let d=0;u==null&&d<a.length;++d)u=ph(a[d],c,r);return u}function rh(e){let t=Md(e);return lh(t),t}function Md(e,t=[],n=[],r="",l=!1){let o=(i,a,u=l,c)=>{let d={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&u)return;J(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let f=Ye([r,d.relativePath]),h=n.concat(d);i.children&&i.children.length>0&&(J(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Md(i.children,t,h,f,u)),!(i.path==null&&!i.index)&&t.push({path:f,score:dh(f,i.index),routesMeta:h})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,a);else for(let c of Ad(i.path))o(i,a,!0,c)}),t}function Ad(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Ad(r.join("/")),a=[];return a.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&a.push(...i),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function lh(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:fh(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var oh=/^:[\w-]+$/,sh=3,ih=2,ah=1,uh=10,ch=-2,mu=e=>e==="*";function dh(e,t){let n=e.split("/"),r=n.length;return n.some(mu)&&(r+=ch),t&&(r+=ih),n.filter(l=>!mu(l)).reduce((l,o)=>l+(oh.test(o)?sh:o===""?ah:uh),r)}function fh(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function ph(e,t,n=!1){let{routesMeta:r}=e,l={},o="/",i=[];for(let a=0;a<r.length;++a){let u=r[a],c=a===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",f=Jl({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},d),h=u.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=Jl({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},d)),!f)return null;Object.assign(l,f.params),i.push({params:l,pathname:Ye([o,f.pathname]),pathnameBase:yh(Ye([o,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(o=Ye([o,f.pathnameBase]))}return i}function Jl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=mh(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let o=l[0],i=o.replace(/(.)\/+$/,"$1"),a=l.slice(1);return{params:r.reduce((c,{paramName:d,isOptional:f},h)=>{if(d==="*"){let x=a[h]||"";i=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const w=a[h];return f&&!w?c[d]=void 0:c[d]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function mh(e,t=!1,n=!0){Je(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,u,c,d)=>{if(r.push({paramName:a,isOptional:u!=null}),u){let f=d.charAt(c+i.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function hh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Je(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function xt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var gh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function vh(e,t="/"){let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?an(e):e,o;return n?(n=Bd(n),n.startsWith("/")?o=hu(n.substring(1),"/"):o=hu(n,t)):o=t,{pathname:o,search:wh(r),hash:jh(l)}}function hu(e,t){let n=Zl(t).split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Qo(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function xh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Fd(e){let t=xh(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Qi(e,t,n,r=!1){let l;typeof e=="string"?l=an(e):(l={...e},J(!l.pathname||!l.pathname.includes("?"),Qo("?","pathname","search",l)),J(!l.pathname||!l.pathname.includes("#"),Qo("#","pathname","hash",l)),J(!l.search||!l.search.includes("#"),Qo("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,a;if(i==null)a=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),f-=1;l.pathname=h.join("/")}a=f>=0?t[f]:"/"}let u=vh(l,a),c=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}var Bd=e=>e.replace(/\/\/+/g,"/"),Ye=e=>Bd(e.join("/")),Zl=e=>e.replace(/\/+$/,""),yh=e=>Zl(e).replace(/^\/*/,"/"),wh=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jh=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,kh=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Nh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Sh(e){let t=e.map(n=>n.route.path).filter(Boolean);return Ye(t)||"/"}var $d=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ud(e,t){let n=e;if(typeof n!="string"||!gh.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,l=!1;if($d)try{let o=new URL(window.location.href),i=n.startsWith("//")?new URL(o.protocol+n):new URL(n),a=xt(i.pathname,t);i.origin===o.origin&&a!=null?n=a+i.search+i.hash:l=!0}catch{Je(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:l,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Hd=["POST","PUT","PATCH","DELETE"];new Set(Hd);var Ch=["GET",...Hd];new Set(Ch);var Un=g.createContext(null);Un.displayName="DataRouter";var vo=g.createContext(null);vo.displayName="DataRouterState";var Vd=g.createContext(!1);function Eh(){return g.useContext(Vd)}var Wd=g.createContext({isTransitioning:!1});Wd.displayName="ViewTransition";var bh=g.createContext(new Map);bh.displayName="Fetchers";var Rh=g.createContext(null);Rh.displayName="Await";var $e=g.createContext(null);$e.displayName="Navigation";var $r=g.createContext(null);$r.displayName="Location";var wt=g.createContext({outlet:null,matches:[],isDataRoute:!1});wt.displayName="Route";var Gi=g.createContext(null);Gi.displayName="RouteError";var Qd="REACT_ROUTER_ERROR",Ph="REDIRECT",_h="ROUTE_ERROR_RESPONSE";function zh(e){if(e.startsWith(`${Qd}:${Ph}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Lh(e){if(e.startsWith(`${Qd}:${_h}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new kh(t.status,t.statusText,t.data)}catch{}}function Th(e,{relative:t}={}){J(Ur(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext($e),{hash:l,pathname:o,search:i}=Hr(e,{relative:t}),a=o;return n!=="/"&&(a=o==="/"?n:Ye([n,o])),r.createHref({pathname:a,search:i,hash:l})}function Ur(){return g.useContext($r)!=null}function lt(){return J(Ur(),"useLocation() may be used only in the context of a <Router> component."),g.useContext($r).location}var Gd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Kd(e){g.useContext($e).static||g.useLayoutEffect(e)}function Dh(){let{isDataRoute:e}=g.useContext(wt);return e?Gh():Oh()}function Oh(){J(Ur(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(Un),{basename:t,navigator:n}=g.useContext($e),{matches:r}=g.useContext(wt),{pathname:l}=lt(),o=JSON.stringify(Fd(r)),i=g.useRef(!1);return Kd(()=>{i.current=!0}),g.useCallback((u,c={})=>{if(Je(i.current,Gd),!i.current)return;if(typeof u=="number"){n.go(u);return}let d=Qi(u,JSON.parse(o),l,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ye([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,o,l,e])}g.createContext(null);function Hr(e,{relative:t}={}){let{matches:n}=g.useContext(wt),{pathname:r}=lt(),l=JSON.stringify(Fd(n));return g.useMemo(()=>Qi(e,JSON.parse(l),r,t==="path"),[e,l,r,t])}function Ih(e,t){return Yd(e,t)}function Yd(e,t,n){var k;J(Ur(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=g.useContext($e),{matches:l}=g.useContext(wt),o=l[l.length-1],i=o?o.params:{},a=o?o.pathname:"/",u=o?o.pathnameBase:"/",c=o&&o.route;{let m=c&&c.path||"";Jd(a,!c||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${a}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
50
|
+
|
|
51
|
+
Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let d=lt(),f;if(t){let m=typeof t=="string"?an(t):t;J(u==="/"||((k=m.pathname)==null?void 0:k.startsWith(u)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${m.pathname}" was given in the \`location\` prop.`),f=m}else f=d;let h=f.pathname||"/",w=h;if(u!=="/"){let m=u.replace(/^\//,"").split("/");w="/"+h.replace(/^\//,"").split("/").slice(m.length).join("/")}let x=n&&n.state.matches.length?n.state.matches.map(m=>Object.assign(m,{route:n.manifest[m.route.id]||m.route})):Id(e,{pathname:w});Je(c||x!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),Je(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=$h(x&&x.map(m=>Object.assign({},m,{params:Object.assign({},i,m.params),pathname:Ye([u,r.encodeLocation?r.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?u:Ye([u,r.encodeLocation?r.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),l,n);return t&&y?g.createElement($r.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},y):y}function Mh(){let e=Qh(),t=Nh(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:o},"ErrorBoundary")," or"," ",g.createElement("code",{style:o},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:l},n):null,i)}var Ah=g.createElement(Mh,null),Xd=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Lh(e.digest);n&&(e=n)}let t=e!==void 0?g.createElement(wt.Provider,{value:this.props.routeContext},g.createElement(Gi.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(Fh,{error:e},t):t}};Xd.contextType=Vd;var Go=new WeakMap;function Fh({children:e,error:t}){let{basename:n}=g.useContext($e);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=zh(t.digest);if(r){let l=Go.get(t);if(l)throw l;let o=Ud(r.location,n);if($d&&!Go.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw Go.set(t,i),i}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Bh({routeContext:e,match:t,children:n}){let r=g.useContext(Un);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(wt.Provider,{value:e},n)}function $h(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let l=e,o=r==null?void 0:r.errors;if(o!=null){let d=l.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);J(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,d+1))}let i=!1,a=-1;if(n&&r){i=r.renderFallback;for(let d=0;d<l.length;d++){let f=l[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(a=d),f.route.id){let{loaderData:h,errors:w}=r,x=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!w||w[f.route.id]===void 0);if(f.route.lazy||x){n.isStatic&&(i=!0),a>=0?l=l.slice(0,a+1):l=[l[0]];break}}}}let u=n==null?void 0:n.onError,c=r&&u?(d,f)=>{var h,w;u(d,{location:r.location,params:((w=(h=r.matches)==null?void 0:h[0])==null?void 0:w.params)??{},pattern:Sh(r.matches),errorInfo:f})}:void 0;return l.reduceRight((d,f,h)=>{let w,x=!1,y=null,k=null;r&&(w=o&&f.route.id?o[f.route.id]:void 0,y=f.route.errorElement||Ah,i&&(a<0&&h===0?(Jd("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,k=null):a===h&&(x=!0,k=f.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,h+1)),p=()=>{let v;return w?v=y:x?v=k:f.route.Component?v=g.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=d,g.createElement(Bh,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:r!=null},children:v})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?g.createElement(Xd,{location:r.location,revalidation:r.revalidation,component:y,error:w,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):p()},null)}function Ki(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uh(e){let t=g.useContext(Un);return J(t,Ki(e)),t}function Hh(e){let t=g.useContext(vo);return J(t,Ki(e)),t}function Vh(e){let t=g.useContext(wt);return J(t,Ki(e)),t}function Yi(e){let t=Vh(e),n=t.matches[t.matches.length-1];return J(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Wh(){return Yi("useRouteId")}function Qh(){var r;let e=g.useContext(Gi),t=Hh("useRouteError"),n=Yi("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Gh(){let{router:e}=Uh("useNavigate"),t=Yi("useNavigate"),n=g.useRef(!1);return Kd(()=>{n.current=!0}),g.useCallback(async(l,o={})=>{Je(n.current,Gd),n.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...o}))},[e,t])}var gu={};function Jd(e,t,n){!t&&!gu[e]&&(gu[e]=!0,Je(!1,n))}g.memo(Kh);function Kh({routes:e,manifest:t,future:n,state:r,isStatic:l,onError:o}){return Yd(e,void 0,{manifest:t,state:r,isStatic:l,onError:o})}function st(e){J(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Yh({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:l,static:o=!1,useTransitions:i}){J(!Ur(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),u=g.useMemo(()=>({basename:a,navigator:l,static:o,useTransitions:i,future:{}}),[a,l,o,i]);typeof n=="string"&&(n=an(n));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:w="default",mask:x}=n,y=g.useMemo(()=>{let k=xt(c,a);return k==null?null:{location:{pathname:k,search:d,hash:f,state:h,key:w,mask:x},navigationType:r}},[a,c,d,f,h,w,r,x]);return Je(y!=null,`<Router basename="${a}"> is not able to match the URL "${c}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:g.createElement($e.Provider,{value:u},g.createElement($r.Provider,{children:t,value:y}))}function Xh({children:e,location:t}){return Ih(Vs(e),t)}function Vs(e,t=[]){let n=[];return g.Children.forEach(e,(r,l)=>{if(!g.isValidElement(r))return;let o=[...t,l];if(r.type===g.Fragment){n.push.apply(n,Vs(r.props.children,o));return}J(r.type===st,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),J(!r.props.index||!r.props.children,"An index route cannot have child routes.");let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Vs(r.props.children,o)),n.push(i)}),n}var kl="get",Nl="application/x-www-form-urlencoded";function xo(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Jh(e){return xo(e)&&e.tagName.toLowerCase()==="button"}function Zh(e){return xo(e)&&e.tagName.toLowerCase()==="form"}function qh(e){return xo(e)&&e.tagName.toLowerCase()==="input"}function eg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tg(e,t){return e.button===0&&(!t||t==="_self")&&!eg(e)}var ul=null;function ng(){if(ul===null)try{new FormData(document.createElement("form"),0),ul=!1}catch{ul=!0}return ul}var rg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ko(e){return e!=null&&!rg.has(e)?(Je(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Nl}"`),null):e}function lg(e,t){let n,r,l,o,i;if(Zh(e)){let a=e.getAttribute("action");r=a?xt(a,t):null,n=e.getAttribute("method")||kl,l=Ko(e.getAttribute("enctype"))||Nl,o=new FormData(e)}else if(Jh(e)||qh(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||a.getAttribute("action");if(r=u?xt(u,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||kl,l=Ko(e.getAttribute("formenctype"))||Ko(a.getAttribute("enctype"))||Nl,o=new FormData(a,e),!ng()){let{name:c,type:d,value:f}=e;if(d==="image"){let h=c?`${c}.`:"";o.append(`${h}x`,"0"),o.append(`${h}y`,"0")}else c&&o.append(c,f)}}else{if(xo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=kl,r=null,l=Nl,i=e}return o&&l==="text/plain"&&(i=o,o=void 0),{action:r,method:n.toLowerCase(),encType:l,formData:o,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Xi(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Zd(e,t,n,r){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${r}`:l.pathname=`${l.pathname}.${r}`:l.pathname==="/"?l.pathname=`_root.${r}`:t&&xt(l.pathname,t)==="/"?l.pathname=`${Zl(t)}/_root.${r}`:l.pathname=`${Zl(l.pathname)}.${r}`,l}async function og(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sg(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function ig(e,t,n){let r=await Promise.all(e.map(async l=>{let o=t.routes[l.route.id];if(o){let i=await og(o,n);return i.links?i.links():[]}return[]}));return dg(r.flat(1).filter(sg).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function vu(e,t,n,r,l,o){let i=(u,c)=>n[c]?u.route.id!==n[c].route.id:!0,a=(u,c)=>{var d;return n[c].pathname!==u.pathname||((d=n[c].route.path)==null?void 0:d.endsWith("*"))&&n[c].params["*"]!==u.params["*"]};return o==="assets"?t.filter((u,c)=>i(u,c)||a(u,c)):o==="data"?t.filter((u,c)=>{var f;let d=r.routes[u.route.id];if(!d||!d.hasLoader)return!1;if(i(u,c)||a(u,c))return!0;if(u.route.shouldRevalidate){let h=u.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function ag(e,t,{includeHydrateFallback:n}={}){return ug(e.map(r=>{let l=t.routes[r.route.id];if(!l)return[];let o=[l.module];return l.clientActionModule&&(o=o.concat(l.clientActionModule)),l.clientLoaderModule&&(o=o.concat(l.clientLoaderModule)),n&&l.hydrateFallbackModule&&(o=o.concat(l.hydrateFallbackModule)),l.imports&&(o=o.concat(l.imports)),o}).flat(1))}function ug(e){return[...new Set(e)]}function cg(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function dg(e,t){let n=new Set;return new Set(t),e.reduce((r,l)=>{let o=JSON.stringify(cg(l));return n.has(o)||(n.add(o),r.push({key:o,link:l})),r},[])}function Ji(){let e=g.useContext(Un);return Xi(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function fg(){let e=g.useContext(vo);return Xi(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Zi=g.createContext(void 0);Zi.displayName="FrameworkContext";function qi(){let e=g.useContext(Zi);return Xi(e,"You must render this element inside a <HydratedRouter> element"),e}function pg(e,t){let n=g.useContext(Zi),[r,l]=g.useState(!1),[o,i]=g.useState(!1),{onFocus:a,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,h=g.useRef(null);g.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let y=m=>{m.forEach(p=>{i(p.isIntersecting)})},k=new IntersectionObserver(y,{threshold:.5});return h.current&&k.observe(h.current),()=>{k.disconnect()}}},[e]),g.useEffect(()=>{if(r){let y=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(y)}}},[r]);let w=()=>{l(!0)},x=()=>{l(!1),i(!1)};return n?e!=="intent"?[o,h,{}]:[o,h,{onFocus:Zn(a,w),onBlur:Zn(u,x),onMouseEnter:Zn(c,w),onMouseLeave:Zn(d,x),onTouchStart:Zn(f,w)}]:[!1,h,{}]}function Zn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function mg({page:e,...t}){let n=Eh(),{router:r}=Ji(),l=g.useMemo(()=>Id(r.routes,e,r.basename),[r.routes,e,r.basename]);return l?n?g.createElement(gg,{page:e,matches:l,...t}):g.createElement(vg,{page:e,matches:l,...t}):null}function hg(e){let{manifest:t,routeModules:n}=qi(),[r,l]=g.useState([]);return g.useEffect(()=>{let o=!1;return ig(e,t,n).then(i=>{o||l(i)}),()=>{o=!0}},[e,t,n]),r}function gg({page:e,matches:t,...n}){let r=lt(),{future:l}=qi(),{basename:o}=Ji(),i=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let a=Zd(e,o,l.v8_trailingSlashAwareDataRequests,"rsc"),u=!1,c=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?u=!0:c.push(d.route.id);return u&&c.length>0&&a.searchParams.set("_routes",c.join(",")),[a.pathname+a.search]},[o,l.v8_trailingSlashAwareDataRequests,e,r,t]);return g.createElement(g.Fragment,null,i.map(a=>g.createElement("link",{key:a,rel:"prefetch",as:"fetch",href:a,...n})))}function vg({page:e,matches:t,...n}){let r=lt(),{future:l,manifest:o,routeModules:i}=qi(),{basename:a}=Ji(),{loaderData:u,matches:c}=fg(),d=g.useMemo(()=>vu(e,t,c,o,r,"data"),[e,t,c,o,r]),f=g.useMemo(()=>vu(e,t,c,o,r,"assets"),[e,t,c,o,r]),h=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,k=!1;if(t.forEach(p=>{var j;let v=o.routes[p.route.id];!v||!v.hasLoader||(!d.some(S=>S.route.id===p.route.id)&&p.route.id in u&&((j=i[p.route.id])!=null&&j.shouldRevalidate)||v.hasClientLoader?k=!0:y.add(p.route.id))}),y.size===0)return[];let m=Zd(e,a,l.v8_trailingSlashAwareDataRequests,"data");return k&&y.size>0&&m.searchParams.set("_routes",t.filter(p=>y.has(p.route.id)).map(p=>p.route.id).join(",")),[m.pathname+m.search]},[a,l.v8_trailingSlashAwareDataRequests,u,r,o,d,t,e,i]),w=g.useMemo(()=>ag(f,o),[f,o]),x=hg(f);return g.createElement(g.Fragment,null,h.map(y=>g.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),w.map(y=>g.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),x.map(({key:y,link:k})=>g.createElement("link",{key:y,nonce:n.nonce,...k,crossOrigin:k.crossOrigin??n.crossOrigin})))}function xg(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var yg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{yg&&(window.__reactRouterVersion="7.17.0")}catch{}function wg({basename:e,children:t,useTransitions:n,window:r}){let l=g.useRef();l.current==null&&(l.current=Zm({window:r,v5Compat:!0}));let o=l.current,[i,a]=g.useState({action:o.action,location:o.location}),u=g.useCallback(c=>{n===!1?a(c):g.startTransition(()=>a(c))},[n]);return g.useLayoutEffect(()=>o.listen(u),[o,u]),g.createElement(Yh,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o,useTransitions:n})}var qd=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ql=g.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:l,reloadDocument:o,replace:i,mask:a,state:u,target:c,to:d,preventScrollReset:f,viewTransition:h,defaultShouldRevalidate:w,...x},y){let{basename:k,navigator:m,useTransitions:p}=g.useContext($e),v=typeof d=="string"&&qd.test(d),j=Ud(d,k);d=j.to;let S=Th(d,{relative:l}),C=lt(),E=null;if(a){let Se=Qi(a,[],C.mask?C.mask.pathname:"/",!0);k!=="/"&&(Se.pathname=Se.pathname==="/"?k:Ye([k,Se.pathname])),E=m.createHref(Se)}let[P,B,z]=pg(r,x),ie=Ng(d,{replace:i,mask:a,state:u,target:c,preventScrollReset:f,relative:l,viewTransition:h,defaultShouldRevalidate:w,useTransitions:p});function F(Se){t&&t(Se),Se.defaultPrevented||ie(Se)}let Ue=!(j.isExternal||o),Ze=g.createElement("a",{...x,...z,href:(Ue?E:void 0)||j.absoluteURL||S,onClick:Ue?F:t,ref:xg(y,B),target:c,"data-discover":!v&&n==="render"?"true":void 0});return P&&!v?g.createElement(g.Fragment,null,Ze,g.createElement(mg,{page:S})):Ze});ql.displayName="Link";var ef=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:l=!1,style:o,to:i,viewTransition:a,children:u,...c},d){let f=Hr(i,{relative:c.relative}),h=lt(),w=g.useContext(vo),{navigator:x,basename:y}=g.useContext($e),k=w!=null&&Rg(f)&&a===!0,m=x.encodeLocation?x.encodeLocation(f).pathname:f.pathname,p=h.pathname,v=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(p=p.toLowerCase(),v=v?v.toLowerCase():null,m=m.toLowerCase()),v&&y&&(v=xt(v,y)||v);const j=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let S=p===m||!l&&p.startsWith(m)&&p.charAt(j)==="/",C=v!=null&&(v===m||!l&&v.startsWith(m)&&v.charAt(m.length)==="/"),E={isActive:S,isPending:C,isTransitioning:k},P=S?t:void 0,B;typeof r=="function"?B=r(E):B=[r,S?"active":null,C?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let z=typeof o=="function"?o(E):o;return g.createElement(ql,{...c,"aria-current":P,className:B,ref:d,style:z,to:i,viewTransition:a},typeof u=="function"?u(E):u)});ef.displayName="NavLink";var jg=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:l,state:o,method:i=kl,action:a,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h,...w},x)=>{let{useTransitions:y}=g.useContext($e),k=Eg(),m=bg(a,{relative:c}),p=i.toLowerCase()==="get"?"get":"post",v=typeof a=="string"&&qd.test(a),j=S=>{if(u&&u(S),S.defaultPrevented)return;S.preventDefault();let C=S.nativeEvent.submitter,E=(C==null?void 0:C.getAttribute("formmethod"))||i,P=()=>k(C||S.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:l,state:o,relative:c,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h});y&&n!==!1?g.startTransition(()=>P()):P()};return g.createElement("form",{ref:x,method:p,action:m,onSubmit:r?u:j,...w,"data-discover":!v&&e==="render"?"true":void 0})});jg.displayName="Form";function kg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tf(e){let t=g.useContext(Un);return J(t,kg(e)),t}function Ng(e,{target:t,replace:n,mask:r,state:l,preventScrollReset:o,relative:i,viewTransition:a,defaultShouldRevalidate:u,useTransitions:c}={}){let d=Dh(),f=lt(),h=Hr(e,{relative:i});return g.useCallback(w=>{if(tg(w,t)){w.preventDefault();let x=n!==void 0?n:Lr(f)===Lr(h),y=()=>d(e,{replace:x,mask:r,state:l,preventScrollReset:o,relative:i,viewTransition:a,defaultShouldRevalidate:u});c?g.startTransition(()=>y()):y()}},[f,d,h,n,r,l,t,e,o,i,a,u,c])}var Sg=0,Cg=()=>`__${String(++Sg)}__`;function Eg(){let{router:e}=tf("useSubmit"),{basename:t}=g.useContext($e),n=Wh(),r=e.fetch,l=e.navigate;return g.useCallback(async(o,i={})=>{let{action:a,method:u,encType:c,formData:d,body:f}=lg(o,t);if(i.navigate===!1){let h=i.fetcherKey||Cg();await r(h,n,i.action||a,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:f,formMethod:i.method||u,formEncType:i.encType||c,flushSync:i.flushSync})}else await l(i.action||a,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:f,formMethod:i.method||u,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,l,t,n])}function bg(e,{relative:t}={}){let{basename:n}=g.useContext($e),r=g.useContext(wt);J(r,"useFormAction must be used inside a RouteContext");let[l]=r.matches.slice(-1),o={...Hr(e||".",{relative:t})},i=lt();if(e==null){o.search=i.search;let a=new URLSearchParams(o.search),u=a.getAll("index");if(u.some(d=>d==="")){a.delete("index"),u.filter(f=>f).forEach(f=>a.append("index",f));let d=a.toString();o.search=d?`?${d}`:""}}return(!e||e===".")&&l.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Ye([n,o.pathname])),Lr(o)}function Rg(e,{relative:t}={}){let n=g.useContext(Wd);J(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=tf("useViewTransitionState"),l=Hr(e,{relative:t});if(!n.isTransitioning)return!1;let o=xt(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=xt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Jl(l.pathname,i)!=null||Jl(l.pathname,o)!=null}const Pg=[{title:"Visão Geral",items:[{label:"Início",path:"/",icon:"home"},{label:"Tokens",path:"/tokens",icon:"palette"},{label:"Previews",path:"/previews",icon:"layout-dashboard"}]},{title:"Componentes",items:[{label:"Botões & Badges",path:"/components/buttons",icon:"mouse-pointer-click"},{label:"Formulários",path:"/components/form",icon:"form-input"},{label:"Cards & Dados",path:"/components/cards",icon:"square-stack"},{label:"Overlays",path:"/components/overlays",icon:"layers"},{label:"Seletores",path:"/components/pickers",icon:"calendar-days"}]}];function _g(){const[e,t]=g.useState(!1),n=lt();return s.jsxs("aside",{className:`ds-sidebar flex flex-col border-r border-border bg-card transition-all duration-200 overflow-y-auto shrink-0 ${e?"w-14":"w-60"}`,children:[s.jsxs("div",{className:"flex items-center gap-3 px-4 py-4 border-b border-border",children:[!e&&s.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[s.jsx("img",{src:"/assets/logo-opti.png",alt:"OPTI",className:"h-6 w-6 shrink-0"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"font-display text-sm font-semibold leading-tight truncate",children:"@goopti/ui"}),s.jsx("p",{className:"text-[10px] text-muted-foreground leading-tight",children:"Design System"})]})]}),s.jsx("button",{onClick:()=>t(!e),className:"ml-auto p-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-accent transition-colors",title:e?"Expandir":"Recolher",children:s.jsx("i",{"data-lucide":e?"panel-left-open":"panel-left-close",style:{width:16,height:16,display:"inline-flex"}})})]}),s.jsx("nav",{className:"flex-1 p-2 space-y-4",children:Pg.map(r=>s.jsxs("div",{children:[!e&&s.jsx("p",{className:"px-2 py-1 text-[10px] font-semibold uppercase tracking-widest text-muted-foreground",children:r.title}),s.jsx("ul",{className:"space-y-0.5",children:r.items.map(l=>(l.path==="/"?n.pathname==="/"||n.hash:n.hash.startsWith("#"+l.path),s.jsx("li",{children:s.jsxs(ef,{to:l.path,className:({isActive:o})=>`flex items-center gap-2.5 rounded-md px-2 py-1.5 text-sm transition-colors ${o?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-accent hover:text-foreground"}`,title:e?l.label:void 0,children:[s.jsx("i",{"data-lucide":l.icon,style:{width:15,height:15,display:"inline-flex",flexShrink:0}}),!e&&s.jsx("span",{className:"truncate",children:l.label})]})},l.path)))})]},r.title))}),!e&&s.jsxs("div",{className:"p-3 border-t border-border",children:[s.jsxs("a",{href:"https://github.com/OPTI-Solucoes/goopti-ui",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded-md px-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-accent transition-colors",children:[s.jsx("i",{"data-lucide":"github",style:{width:13,height:13,display:"inline-flex"}}),"GitHub"]}),s.jsxs("a",{href:"https://www.npmjs.com/package/@goopti/ui",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded-md px-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-accent transition-colors",children:[s.jsx("i",{"data-lucide":"package",style:{width:13,height:13,display:"inline-flex"}}),"npm"]})]})]})}function nf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=nf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rf(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=nf(e))&&(r&&(r+=" "),r+=t);return r}const xu=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,yu=rf,lf=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return yu(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:l,defaultVariants:o}=t,i=Object.keys(l).map(c=>{const d=n==null?void 0:n[c],f=o==null?void 0:o[c];if(d===null)return null;const h=xu(d)||xu(f);return l[c][h]}),a=n&&Object.entries(n).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:h,...w}=d;return Object.entries(w).every(x=>{let[y,k]=x;return Array.isArray(k)?k.includes({...o,...a}[y]):{...o,...a}[y]===k})?[...c,f,h]:c},[]);return yu(e,i,u,n==null?void 0:n.class,n==null?void 0:n.className)},ea="-",zg=e=>{const t=Tg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(ea);return a[0]===""&&a.length!==1&&a.shift(),of(a,t)||Lg(i)},getConflictingClassGroupIds:(i,a)=>{const u=n[i]||[];return a&&r[i]?[...u,...r[i]]:u}}},of=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),l=r?of(e.slice(1),r):void 0;if(l)return l;if(t.validators.length===0)return;const o=e.join(ea);return(i=t.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},wu=/^\[(.+)\]$/,Lg=e=>{if(wu.test(e)){const t=wu.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Tg=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Og(Object.entries(e.classGroups),n).forEach(([o,i])=>{Ws(i,r,o,t)}),r},Ws=(e,t,n,r)=>{e.forEach(l=>{if(typeof l=="string"){const o=l===""?t:ju(t,l);o.classGroupId=n;return}if(typeof l=="function"){if(Dg(l)){Ws(l(r),t,n,r);return}t.validators.push({validator:l,classGroupId:n});return}Object.entries(l).forEach(([o,i])=>{Ws(i,ju(t,o),n,r)})})},ju=(e,t)=>{let n=e;return t.split(ea).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Dg=e=>e.isThemeGetter,Og=(e,t)=>t?e.map(([n,r])=>{const l=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,a])=>[t+i,a])):o);return[n,l]}):e,Ig=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const l=(o,i)=>{n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let i=n.get(o);if(i!==void 0)return i;if((i=r.get(o))!==void 0)return l(o,i),i},set(o,i){n.has(o)?n.set(o,i):l(o,i)}}},sf="!",Mg=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,l=t[0],o=t.length,i=a=>{const u=[];let c=0,d=0,f;for(let k=0;k<a.length;k++){let m=a[k];if(c===0){if(m===l&&(r||a.slice(k,k+o)===t)){u.push(a.slice(d,k)),d=k+o;continue}if(m==="/"){f=k;continue}}m==="["?c++:m==="]"&&c--}const h=u.length===0?a:a.substring(d),w=h.startsWith(sf),x=w?h.substring(1):h,y=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:i}):i},Ag=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Fg=e=>({cache:Ig(e.cacheSize),parseClassName:Mg(e),...zg(e)}),Bg=/\s+/,$g=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:l}=t,o=[],i=e.trim().split(Bg);let a="";for(let u=i.length-1;u>=0;u-=1){const c=i[u],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:w}=n(c);let x=!!w,y=r(x?h.substring(0,w):h);if(!y){if(!x){a=c+(a.length>0?" "+a:a);continue}if(y=r(h),!y){a=c+(a.length>0?" "+a:a);continue}x=!1}const k=Ag(d).join(":"),m=f?k+sf:k,p=m+y;if(o.includes(p))continue;o.push(p);const v=l(y,x);for(let j=0;j<v.length;++j){const S=v[j];o.push(m+S)}a=c+(a.length>0?" "+a:a)}return a};function Ug(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=af(t))&&(r&&(r+=" "),r+=n);return r}const af=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=af(e[r]))&&(n&&(n+=" "),n+=t);return n};function Hg(e,...t){let n,r,l,o=i;function i(u){const c=t.reduce((d,f)=>f(d),e());return n=Fg(c),r=n.cache.get,l=n.cache.set,o=a,a(u)}function a(u){const c=r(u);if(c)return c;const d=$g(u,n);return l(u,d),d}return function(){return o(Ug.apply(null,arguments))}}const V=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},uf=/^\[(?:([a-z-]+):)?(.+)\]$/i,Vg=/^\d+\/\d+$/,Wg=new Set(["px","full","screen"]),Qg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Kg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Yg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ot=e=>zn(e)||Wg.has(e)||Vg.test(e),Nt=e=>Hn(e,"length",lv),zn=e=>!!e&&!Number.isNaN(Number(e)),Yo=e=>Hn(e,"number",zn),qn=e=>!!e&&Number.isInteger(Number(e)),Jg=e=>e.endsWith("%")&&zn(e.slice(0,-1)),D=e=>uf.test(e),St=e=>Qg.test(e),Zg=new Set(["length","size","percentage"]),qg=e=>Hn(e,Zg,cf),ev=e=>Hn(e,"position",cf),tv=new Set(["image","url"]),nv=e=>Hn(e,tv,sv),rv=e=>Hn(e,"",ov),er=()=>!0,Hn=(e,t,n)=>{const r=uf.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},lv=e=>Gg.test(e)&&!Kg.test(e),cf=()=>!1,ov=e=>Yg.test(e),sv=e=>Xg.test(e),iv=()=>{const e=V("colors"),t=V("spacing"),n=V("blur"),r=V("brightness"),l=V("borderColor"),o=V("borderRadius"),i=V("borderSpacing"),a=V("borderWidth"),u=V("contrast"),c=V("grayscale"),d=V("hueRotate"),f=V("invert"),h=V("gap"),w=V("gradientColorStops"),x=V("gradientColorStopPositions"),y=V("inset"),k=V("margin"),m=V("opacity"),p=V("padding"),v=V("saturate"),j=V("scale"),S=V("sepia"),C=V("skew"),E=V("space"),P=V("translate"),B=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto",D,t],F=()=>[D,t],Ue=()=>["",ot,Nt],Ze=()=>["auto",zn,D],Se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],jt=()=>["solid","dashed","dotted","double","none"],un=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],b=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",D],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[zn,D];return{cacheSize:500,separator:":",theme:{colors:[er],spacing:[ot,Nt],blur:["none","",St,D],brightness:$(),borderColor:[e],borderRadius:["none","","full",St,D],borderSpacing:F(),borderWidth:Ue(),contrast:$(),grayscale:_(),hueRotate:$(),invert:_(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[Jg,Nt],inset:ie(),margin:ie(),opacity:$(),padding:F(),saturate:$(),scale:$(),sepia:_(),skew:$(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",D]}],container:["container"],columns:[{columns:[St]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Se(),D]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qn,D]}],basis:[{basis:ie()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",D]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",qn,D]}],"grid-cols":[{"grid-cols":[er]}],"col-start-end":[{col:["auto",{span:["full",qn,D]},D]}],"col-start":[{"col-start":Ze()}],"col-end":[{"col-end":Ze()}],"grid-rows":[{"grid-rows":[er]}],"row-start-end":[{row:["auto",{span:[qn,D]},D]}],"row-start":[{"row-start":Ze()}],"row-end":[{"row-end":Ze()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",D]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",D]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...b()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...b(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...b(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",D,t]}],"min-w":[{"min-w":[D,t,"min","max","fit"]}],"max-w":[{"max-w":[D,t,"none","full","min","max","fit","prose",{screen:[St]},St]}],h:[{h:[D,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[D,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[D,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[D,t,"auto","min","max","fit"]}],"font-size":[{text:["base",St,Nt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yo]}],"font-family":[{font:[er]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",D]}],"line-clamp":[{"line-clamp":["none",zn,Yo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ot,D]}],"list-image":[{"list-image":["none",D]}],"list-style-type":[{list:["none","disc","decimal",D]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...jt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ot,Nt]}],"underline-offset":[{"underline-offset":["auto",ot,D]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",D]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Se(),ev]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nv]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...jt(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:jt()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...jt()]}],"outline-offset":[{"outline-offset":[ot,D]}],"outline-w":[{outline:[ot,Nt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[ot,Nt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",St,rv]}],"shadow-color":[{shadow:[er]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...un(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":un()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",St,D]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",D]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",D]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",D]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[qn,D]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",D]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",D]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",D]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ot,Nt,Yo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},av=Hg(iv);function L(...e){return av(rf(e))}const uv=lf("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",success:"border-transparent bg-success text-success-foreground",info:"border-transparent bg-info text-info-foreground",brand:"border-transparent bg-brand text-brand-foreground",outline:"border-border text-foreground"}},defaultVariants:{variant:"default"}}),G=g.forwardRef(({className:e,variant:t,...n},r)=>s.jsx("span",{ref:r,className:L(uv({variant:t,className:e})),...n}));G.displayName="Badge";const cv=lf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background disabled:pointer-events-none disabled:opacity-50 active:scale-[.98] [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm",primary:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",info:"bg-info text-info-foreground hover:bg-info/90 shadow-sm",brand:"bg-brand text-brand-foreground hover:bg-brand/90 shadow-sm"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3 text-[13px]",lg:"h-11 rounded-md px-8 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),O=g.forwardRef(({className:e,variant:t,size:n,...r},l)=>s.jsx("button",{className:L(cv({variant:t,size:n,className:e})),ref:l,...r}));O.displayName="Button";const Jt=g.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:L("rounded-xl border bg-card text-card-foreground shadow-sm",e),...t}));Jt.displayName="Card";const Tr=g.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:L("flex flex-col space-y-1.5 p-6",e),...t}));Tr.displayName="CardHeader";const Dr=g.forwardRef(({className:e,...t},n)=>s.jsx("h3",{ref:n,className:L("font-display text-xl font-semibold leading-none tracking-tight",e),...t}));Dr.displayName="CardTitle";const Or=g.forwardRef(({className:e,...t},n)=>s.jsx("p",{ref:n,className:L("text-sm text-muted-foreground",e),...t}));Or.displayName="CardDescription";const Sn=g.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:L("p-6 pt-0",e),...t}));Sn.displayName="CardContent";const df=g.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:L("flex items-center p-6 pt-0",e),...t}));df.displayName="CardFooter";const Ie=g.forwardRef(({className:e,orientation:t="horizontal",...n},r)=>s.jsx("div",{ref:r,className:L("shrink-0 bg-border",t==="horizontal"?"h-px w-full":"h-full w-px",e),...n}));Ie.displayName="Separator";const dv=[{title:"Botões & Badges",description:"Button (9 variantes) e Badge (7 variantes)",path:"/components/buttons",icon:"mouse-pointer-click",count:2},{title:"Formulários",description:"Input, Textarea, Checkbox, Switch, RadioGroup, Select, Slider, Label",path:"/components/form",icon:"form-input",count:8},{title:"Cards & Dados",description:"Card, Avatar, Progress, Skeleton, Separator, Collapsible, ScrollArea",path:"/components/cards",icon:"square-stack",count:7},{title:"Overlays",description:"Dialog, Sheet, AlertDialog, Tooltip, Popover, HoverCard, DropdownMenu",path:"/components/overlays",icon:"layers",count:7},{title:"Seletores",description:"Calendar, DatePicker, InputOTP, Carousel",path:"/components/pickers",icon:"calendar-days",count:4},{title:"Tokens de Design",description:"Cores, tipografia, espaçamentos, raios, sombras",path:"/tokens",icon:"palette",count:30}];function fv(){return s.jsxs("div",{className:"max-w-4xl mx-auto p-8 space-y-10",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("img",{src:"/assets/logo-opti.png",alt:"OPTI",className:"h-10 w-10"}),s.jsxs("div",{children:[s.jsx("h1",{className:"font-display text-3xl font-bold text-foreground",children:"@goopti/ui"}),s.jsx("p",{className:"text-muted-foreground text-sm",children:"Design System · v1.0.1"})]})]}),s.jsx("p",{className:"text-muted-foreground max-w-xl",children:"Biblioteca de componentes React baseada em shadcn/ui, com tokens de identidade OPTI — Azul primário #1697F6 e Laranja de marca #FFA000."}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsx(G,{variant:"default",children:"React 18"}),s.jsx(G,{variant:"secondary",children:"Tailwind CSS"}),s.jsx(G,{variant:"outline",children:"TypeScript"}),s.jsx(G,{variant:"brand",children:"30 componentes"})]})]}),s.jsx(Ie,{}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("h2",{className:"font-display text-lg font-semibold",children:"Instalação rápida"}),s.jsxs("div",{className:"bg-[#0d1117] rounded-xl p-4 font-mono text-xs text-[#e6edf3] space-y-1",children:[s.jsxs("p",{children:[s.jsx("span",{className:"text-[#7ee787]",children:"npm"})," install @goopti/ui"]}),s.jsx("p",{className:"text-[#8b949e]",children:"# Em seu projeto React:"}),s.jsxs("p",{children:[s.jsx("span",{className:"text-[#79c0ff]",children:"import"})," ","{"," Button ","}"," ",s.jsx("span",{className:"text-[#79c0ff]",children:"from"})," ",s.jsx("span",{className:"text-[#a5d6ff]",children:'"@goopti/ui"'})]}),s.jsxs("p",{children:[s.jsx("span",{className:"text-[#79c0ff]",children:"import"})," ",s.jsx("span",{className:"text-[#a5d6ff]",children:'"@goopti/ui/css"'})]})]})]}),s.jsx(Ie,{}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("h2",{className:"font-display text-lg font-semibold",children:"Componentes"}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:dv.map(e=>s.jsx(ql,{to:e.path,className:"block group",children:s.jsx(Jt,{className:"transition-all group-hover:border-primary/40 group-hover:shadow-md h-full",children:s.jsxs(Tr,{className:"pb-2",children:[s.jsxs("div",{className:"flex items-start justify-between gap-2",children:[s.jsx("div",{className:"p-2 rounded-lg bg-primary/10 text-primary",children:s.jsx("i",{"data-lucide":e.icon,style:{width:18,height:18,display:"inline-flex"}})}),s.jsxs(G,{variant:"secondary",className:"text-[10px]",children:[e.count," componentes"]})]}),s.jsx(Dr,{className:"text-base mt-2",children:e.title}),s.jsx(Or,{className:"text-xs",children:e.description})]})})},e.path))})]}),s.jsx(Ie,{}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("h2",{className:"font-display text-lg font-semibold",children:"Previews"}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[{title:"Component Showcase",desc:"Todos os componentes em ação",icon:"component",path:"/ui_kits/shadcn/index.html"},{title:"Dashboard App",desc:"Protótipo de aplicação real",icon:"layout-dashboard",path:"/ui_kits/app/index.html"},{title:"Website OPTI",desc:"Site de marketing",icon:"globe",path:"/ui_kits/website/index.html"}].map(e=>s.jsx("a",{href:e.path,target:"_blank",rel:"noopener noreferrer",className:"block group",children:s.jsxs(Jt,{className:"transition-all group-hover:border-brand/40 group-hover:shadow-md",children:[s.jsxs(Tr,{children:[s.jsx("div",{className:"p-2 rounded-lg bg-brand/10 text-brand w-fit",children:s.jsx("i",{"data-lucide":e.icon,style:{width:16,height:16,display:"inline-flex"}})}),s.jsx(Dr,{className:"text-sm mt-2",children:e.title}),s.jsx(Or,{className:"text-xs",children:e.desc})]}),s.jsx(Sn,{children:s.jsxs("span",{className:"text-xs text-primary flex items-center gap-1",children:["Abrir",s.jsx("i",{"data-lucide":"external-link",style:{width:11,height:11,display:"inline-flex"}})]})})]})},e.path))}),s.jsx("div",{className:"text-center",children:s.jsx(ql,{to:"/previews",children:s.jsxs(O,{variant:"outline",size:"sm",children:[s.jsx("i",{"data-lucide":"layout-dashboard",style:{width:14,height:14,display:"inline-flex"}}),"Ver todos os previews"]})})})]})]})}function M({title:e,description:t,code:n,children:r,className:l=""}){const[o,i]=g.useState(!1);return s.jsxs("section",{className:"border border-border rounded-xl overflow-hidden",children:[s.jsxs("div",{className:"flex items-start justify-between gap-4 px-5 py-4 bg-muted/30 border-b border-border",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-semibold text-sm text-foreground",children:e}),t&&s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:t})]}),n&&s.jsxs("button",{onClick:()=>i(!o),className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors shrink-0",children:[s.jsx("i",{"data-lucide":o?"eye-off":"code-2",style:{width:13,height:13,display:"inline-flex"}}),o?"Ocultar":"Código"]})]}),s.jsx("div",{className:`p-5 flex flex-wrap gap-3 items-start ${l}`,children:r}),o&&n&&s.jsx("div",{className:"border-t border-border bg-[#0d1117]",children:s.jsx("pre",{className:"p-4 text-xs text-[#e6edf3] overflow-x-auto font-mono leading-relaxed",children:s.jsx("code",{children:n.trim()})})})]})}function pv(){return s.jsxs("div",{className:"max-w-4xl mx-auto p-8 space-y-8",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"font-display text-2xl font-bold",children:"Botões & Badges"}),s.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Componentes de ação e identificação — Button e Badge."})]}),s.jsxs(M,{title:"Button — Variantes",description:"9 variantes para diferentes contextos semânticos",code:`<Button variant="default">Default</Button>
|
|
52
|
+
<Button variant="primary">Primary</Button>
|
|
53
|
+
<Button variant="destructive">Destructive</Button>
|
|
54
|
+
<Button variant="outline">Outline</Button>
|
|
55
|
+
<Button variant="secondary">Secondary</Button>
|
|
56
|
+
<Button variant="ghost">Ghost</Button>
|
|
57
|
+
<Button variant="link">Link</Button>
|
|
58
|
+
<Button variant="info">Info</Button>
|
|
59
|
+
<Button variant="brand">Brand</Button>`,children:[s.jsx(O,{variant:"default",children:"Default"}),s.jsx(O,{variant:"primary",children:"Primary"}),s.jsx(O,{variant:"destructive",children:"Destructive"}),s.jsx(O,{variant:"outline",children:"Outline"}),s.jsx(O,{variant:"secondary",children:"Secondary"}),s.jsx(O,{variant:"ghost",children:"Ghost"}),s.jsx(O,{variant:"link",children:"Link"}),s.jsx(O,{variant:"info",children:"Info"}),s.jsx(O,{variant:"brand",children:"Brand"})]}),s.jsxs(M,{title:"Button — Tamanhos",description:"4 tamanhos disponíveis",code:`<Button size="sm">Pequeno</Button>
|
|
60
|
+
<Button size="default">Padrão</Button>
|
|
61
|
+
<Button size="lg">Grande</Button>
|
|
62
|
+
<Button size="icon"><i data-lucide="plus" style={{width:16,height:16}} /></Button>`,className:"items-center",children:[s.jsx(O,{size:"sm",children:"Pequeno"}),s.jsx(O,{size:"default",children:"Padrão"}),s.jsx(O,{size:"lg",children:"Grande"}),s.jsx(O,{size:"icon",children:s.jsx("i",{"data-lucide":"plus",style:{width:16,height:16,display:"inline-flex"}})})]}),s.jsxs(M,{title:"Button — Com ícone",description:"Botões com ícones Lucide",code:`<Button>
|
|
63
|
+
<i data-lucide="download" />
|
|
64
|
+
Download
|
|
65
|
+
</Button>
|
|
66
|
+
<Button variant="outline">
|
|
67
|
+
<i data-lucide="upload" />
|
|
68
|
+
Upload
|
|
69
|
+
</Button>
|
|
70
|
+
<Button variant="secondary">
|
|
71
|
+
<i data-lucide="settings" />
|
|
72
|
+
Configurações
|
|
73
|
+
</Button>`,children:[s.jsxs(O,{children:[s.jsx("i",{"data-lucide":"download",style:{width:15,height:15,display:"inline-flex"}}),"Download"]}),s.jsxs(O,{variant:"outline",children:[s.jsx("i",{"data-lucide":"upload",style:{width:15,height:15,display:"inline-flex"}}),"Upload"]}),s.jsxs(O,{variant:"secondary",children:[s.jsx("i",{"data-lucide":"settings",style:{width:15,height:15,display:"inline-flex"}}),"Configurações"]}),s.jsxs(O,{variant:"brand",children:[s.jsx("i",{"data-lucide":"zap",style:{width:15,height:15,display:"inline-flex"}}),"Ação"]})]}),s.jsxs(M,{title:"Button — Estados",description:"Loading e disabled",code:`<Button disabled>Desabilitado</Button>
|
|
74
|
+
<Button variant="outline" disabled>Outline desabilitado</Button>`,children:[s.jsx(O,{disabled:!0,children:"Desabilitado"}),s.jsx(O,{variant:"outline",disabled:!0,children:"Outline desabilitado"}),s.jsx(O,{variant:"brand",disabled:!0,children:"Brand desabilitado"})]}),s.jsxs(M,{title:"Badge — Variantes",description:"7 variantes para status e categorias",code:`<Badge variant="default">Default</Badge>
|
|
75
|
+
<Badge variant="secondary">Secondary</Badge>
|
|
76
|
+
<Badge variant="destructive">Destructive</Badge>
|
|
77
|
+
<Badge variant="success">Success</Badge>
|
|
78
|
+
<Badge variant="info">Info</Badge>
|
|
79
|
+
<Badge variant="brand">Brand</Badge>
|
|
80
|
+
<Badge variant="outline">Outline</Badge>`,children:[s.jsx(G,{variant:"default",children:"Default"}),s.jsx(G,{variant:"secondary",children:"Secondary"}),s.jsx(G,{variant:"destructive",children:"Destructive"}),s.jsx(G,{variant:"success",children:"Success"}),s.jsx(G,{variant:"info",children:"Info"}),s.jsx(G,{variant:"brand",children:"Brand"}),s.jsx(G,{variant:"outline",children:"Outline"})]}),s.jsxs(M,{title:"Badge — Em contexto",description:"Uso em listas, tabelas e cards",code:`<div className="flex items-center gap-2">
|
|
81
|
+
<span>Status do processo</span>
|
|
82
|
+
<Badge variant="success">Ativo</Badge>
|
|
83
|
+
</div>`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm",children:"Processo automático"}),s.jsx(G,{variant:"success",children:"Ativo"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm",children:"Revisão pendente"}),s.jsx(G,{variant:"brand",children:"Aguardando"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm",children:"Integração"}),s.jsx(G,{variant:"destructive",children:"Erro"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm",children:"Diagnóstico"}),s.jsx(G,{variant:"info",children:"Em análise"})]})]})]})}const Te=g.forwardRef(({className:e,type:t,...n},r)=>s.jsx("input",{type:t,className:L("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Te.displayName="Input";const Sl=g.forwardRef(({className:e,...t},n)=>s.jsx("textarea",{className:L("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring disabled:opacity-50",e),ref:n,...t}));Sl.displayName="Textarea";const ct=g.forwardRef(({className:e,...t},n)=>s.jsx("label",{ref:n,className:L("text-sm font-medium leading-none text-foreground peer-disabled:opacity-70",e),...t}));ct.displayName="Label";const _e=g.forwardRef(({name:e,size:t=16,className:n="",...r},l)=>s.jsx("i",{ref:l,"data-lucide":e,className:n,style:{width:t,height:t,display:"inline-flex",flex:"none"},...r}));_e.displayName="Icon";const or=g.forwardRef(({className:e,checked:t=!1,onChange:n,id:r,...l},o)=>s.jsx("button",{ref:o,id:r,role:"checkbox","aria-checked":t,onClick:()=>n==null?void 0:n(!t),className:L("peer h-5 w-5 shrink-0 rounded-[6px] border border-input ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring flex items-center justify-center",t?"bg-primary border-primary text-primary-foreground":"bg-background",e),...l,children:t&&s.jsx(_e,{name:"check",size:14})}));or.displayName="Checkbox";const Cl=g.forwardRef(({className:e,checked:t=!1,onChange:n,...r},l)=>s.jsx("button",{ref:l,role:"switch","aria-checked":t,onClick:()=>n==null?void 0:n(!t),className:L("inline-flex h-6 w-11 shrink-0 items-center rounded-full border-2 border-transparent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background",t?"bg-primary":"bg-input",e),...r,children:s.jsx("span",{className:L("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg transition-transform",t?"translate-x-5":"translate-x-0")})}));Cl.displayName="Switch";const ff=g.forwardRef(({className:e,value:t,onChange:n,options:r,...l},o)=>s.jsx("div",{ref:o,className:L("grid gap-3",e),role:"radiogroup",...l,children:r.map(i=>s.jsxs("label",{className:"flex items-center gap-3 cursor-pointer text-sm text-foreground",children:[s.jsx("button",{role:"radio","aria-checked":t===i.value,onClick:()=>n==null?void 0:n(i.value),className:L("h-5 w-5 rounded-full border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring flex items-center justify-center transition-colors",t===i.value?"border-primary":"border-input"),children:t===i.value&&s.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-primary"})}),i.label]},i.value))}));ff.displayName="RadioGroup";const pf=g.forwardRef(({className:e,value:t,onChange:n,options:r,placeholder:l="Selecione…",...o},i)=>{const[a,u]=g.useState(!1),c=g.useRef(null);g.useEffect(()=>{const f=h=>{c.current&&!c.current.contains(h.target)&&u(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[]);const d=r.find(f=>f.value===t);return s.jsxs("div",{ref:c,className:L("relative",e),...o,children:[s.jsxs("button",{onClick:()=>u(!a),className:"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[s.jsx("span",{className:d?"text-foreground":"text-muted-foreground",children:d?d.label:l}),s.jsx(_e,{name:"chevron-down",size:16,className:"opacity-60"})]}),a&&s.jsx("div",{className:"animate-pop absolute z-50 mt-1.5 w-full overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",children:r.map(f=>s.jsxs("button",{onClick:()=>{n==null||n(f.value),u(!1)},className:L("flex w-full items-center justify-between rounded-[6px] px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground",t===f.value&&"bg-accent/60"),children:[f.label,t===f.value&&s.jsx(_e,{name:"check",size:15})]},f.value))})]})});pf.displayName="Select";const mf=g.forwardRef(({className:e,value:t=50,onChange:n,min:r=0,max:l=100,step:o=1,...i},a)=>{const u=g.useRef(null),c=(t-r)/(l-r)*100,d=h=>{if(!u.current)return;const w=u.current.getBoundingClientRect();let x=(h-w.left)/w.width;x=Math.max(0,Math.min(1,x));let y=r+x*(l-r);y=Math.round(y/o)*o,n==null||n(Math.max(r,Math.min(l,y)))},f=h=>{d(h.clientX);const w=y=>d(y.clientX),x=()=>{window.removeEventListener("pointermove",w),window.removeEventListener("pointerup",x)};window.addEventListener("pointermove",w),window.addEventListener("pointerup",x)};return s.jsxs("div",{ref:u,onPointerDown:f,className:L("relative flex h-5 w-full cursor-pointer touch-none items-center select-none",e),...i,children:[s.jsx("div",{className:"relative h-2 w-full rounded-full bg-secondary",children:s.jsx("div",{className:"absolute h-full rounded-full bg-primary",style:{width:`${c}%`}})}),s.jsx("span",{className:"absolute h-5 w-5 rounded-full border-2 border-primary bg-background shadow ring-offset-background",style:{left:`calc(${c}% - 10px)`}})]})});mf.displayName="Slider";function mv(){const[e,t]=g.useState(!1),[n,r]=g.useState(!1),[l,o]=g.useState("opt1"),[i,a]=g.useState(""),[u,c]=g.useState(40);return s.jsxs("div",{className:"max-w-4xl mx-auto p-8 space-y-8",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"font-display text-2xl font-bold",children:"Formulários"}),s.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Campos de entrada, controles e elementos de formulário."})]}),s.jsx(M,{title:"Input",description:"Campo de texto — estados: default, preenchido, disabled, erro",code:`<Input placeholder="Seu nome" />
|
|
84
|
+
<Input defaultValue="waldney@opti.com.br" />
|
|
85
|
+
<Input disabled placeholder="Desabilitado" />
|
|
86
|
+
<Input className="border-destructive" placeholder="Campo com erro" />`,className:"flex-col",children:s.jsxs("div",{className:"w-full max-w-sm space-y-3",children:[s.jsx(Te,{placeholder:"Digite seu nome"}),s.jsx(Te,{defaultValue:"waldney@opti.com.br"}),s.jsx(Te,{disabled:!0,placeholder:"Campo desabilitado"}),s.jsx(Te,{className:"border-destructive focus-visible:ring-destructive",placeholder:"Campo com erro"})]})}),s.jsx(M,{title:"Label + Input",description:"Label associado ao campo",code:`<div className="space-y-1.5">
|
|
87
|
+
<Label htmlFor="email">E-mail</Label>
|
|
88
|
+
<Input id="email" type="email" placeholder="voce@empresa.com" />
|
|
89
|
+
</div>`,className:"flex-col",children:s.jsxs("div",{className:"w-full max-w-sm space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(ct,{htmlFor:"demo-email",children:"E-mail"}),s.jsx(Te,{id:"demo-email",type:"email",placeholder:"voce@empresa.com"})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(ct,{htmlFor:"demo-pass",children:"Senha"}),s.jsx(Te,{id:"demo-pass",type:"password",placeholder:"••••••••"})]})]})}),s.jsx(M,{title:"Textarea",description:"Área de texto multi-linha",code:'<Textarea placeholder="Descreva o processo..." rows={4} />',className:"flex-col",children:s.jsxs("div",{className:"w-full max-w-sm space-y-3",children:[s.jsx(Sl,{placeholder:"Descreva o processo de automação...",rows:3}),s.jsx(Sl,{disabled:!0,placeholder:"Textarea desabilitado",rows:2})]})}),s.jsx(M,{title:"Checkbox",description:"Estado controlado",code:`const [checked, setChecked] = useState(false)
|
|
90
|
+
|
|
91
|
+
<Checkbox
|
|
92
|
+
checked={checked}
|
|
93
|
+
onChange={setChecked}
|
|
94
|
+
label="Aceito os termos de uso"
|
|
95
|
+
/>`,children:s.jsxs("div",{className:"space-y-3",children:[s.jsx(or,{checked:e,onChange:t,label:"Aceito os termos de uso"}),s.jsx(or,{checked:!0,onChange:()=>{},label:"Notificações por e-mail"}),s.jsx(or,{checked:!1,onChange:()=>{},disabled:!0,label:"Opção desabilitada"})]})}),s.jsx(M,{title:"Switch",description:"Toggle on/off",code:'<Switch checked={on} onChange={setOn} label="Automação ativa" />',children:s.jsxs("div",{className:"space-y-3",children:[s.jsx(Cl,{checked:n,onChange:r,label:n?"Automação ativa":"Automação inativa"}),s.jsx(Cl,{checked:!0,onChange:()=>{},label:"Sempre ativo"}),s.jsx(Cl,{checked:!1,onChange:()=>{},disabled:!0,label:"Desabilitado"})]})}),s.jsx(M,{title:"RadioGroup",description:"Seleção exclusiva",code:`<RadioGroup
|
|
96
|
+
value={selected}
|
|
97
|
+
onChange={setSelected}
|
|
98
|
+
options={[
|
|
99
|
+
{ value: 'opt1', label: 'Diagnóstico básico' },
|
|
100
|
+
{ value: 'opt2', label: 'Consultoria completa' },
|
|
101
|
+
{ value: 'opt3', label: 'Implementação' },
|
|
102
|
+
]}
|
|
103
|
+
/>`,children:s.jsx(ff,{value:l,onChange:o,options:[{value:"opt1",label:"Diagnóstico básico"},{value:"opt2",label:"Consultoria completa"},{value:"opt3",label:"Implementação guiada"}]})}),s.jsx(M,{title:"Select",description:"Dropdown de seleção",code:`<Select
|
|
104
|
+
value={val}
|
|
105
|
+
onChange={setVal}
|
|
106
|
+
placeholder="Selecione o setor"
|
|
107
|
+
options={[
|
|
108
|
+
{ value: 'fin', label: 'Financeiro' },
|
|
109
|
+
{ value: 'rh', label: 'Recursos Humanos' },
|
|
110
|
+
{ value: 'ops', label: 'Operações' },
|
|
111
|
+
]}
|
|
112
|
+
/>`,className:"flex-col",children:s.jsx("div",{className:"w-full max-w-xs",children:s.jsx(pf,{value:i,onChange:a,placeholder:"Selecione o setor",options:[{value:"fin",label:"Financeiro"},{value:"rh",label:"Recursos Humanos"},{value:"ops",label:"Operações"},{value:"tec",label:"Tecnologia"},{value:"mkt",label:"Marketing"}]})})}),s.jsx(M,{title:"Slider",description:`Controle de intervalo — valor atual: ${u}%`,code:"<Slider value={val} onChange={setVal} min={0} max={100} step={1} />",className:"flex-col",children:s.jsxs("div",{className:"w-full max-w-sm space-y-2",children:[s.jsx(mf,{value:u,onChange:c,min:0,max:100,step:1}),s.jsxs("p",{className:"text-xs text-muted-foreground text-center",children:["Eficiência: ",u,"%"]})]})}),s.jsx(M,{title:"Formulário completo",description:"Exemplo de formulário de contato",className:"flex-col",children:s.jsxs("form",{className:"w-full max-w-sm space-y-4",onSubmit:d=>d.preventDefault(),children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(ct,{htmlFor:"fn",children:"Nome"}),s.jsx(Te,{id:"fn",placeholder:"João"})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(ct,{htmlFor:"ln",children:"Sobrenome"}),s.jsx(Te,{id:"ln",placeholder:"Silva"})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(ct,{htmlFor:"co",children:"Empresa"}),s.jsx(Te,{id:"co",placeholder:"Empresa Ltda."})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(ct,{htmlFor:"msg",children:"Mensagem"}),s.jsx(Sl,{id:"msg",placeholder:"Como posso ajudar?",rows:3})]}),s.jsx(or,{checked:!1,onChange:()=>{},label:"Quero receber novidades por e-mail"}),s.jsx(O,{className:"w-full",variant:"brand",children:"Enviar mensagem"})]})})]})}const at=g.forwardRef(({className:e,src:t,fallback:n,...r},l)=>{const[o,i]=g.useState(!1);return s.jsx("span",{ref:l,className:L("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full bg-muted",e),...r,children:t&&!o?s.jsx("img",{src:t,onError:()=>i(!0),className:"aspect-square h-full w-full object-cover",alt:"avatar"}):s.jsx("span",{className:"flex h-full w-full items-center justify-center text-sm font-semibold text-muted-foreground",children:n})})});at.displayName="Avatar";const Qs=g.forwardRef(({className:e,value:t=0,...n},r)=>s.jsx("div",{ref:r,className:L("relative h-2.5 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:s.jsx("div",{className:"h-full rounded-full bg-primary transition-all duration-500",style:{width:`${t}%`}})}));Qs.displayName="Progress";const Ce=g.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:L("animate-skeleton rounded-md bg-muted",e),...t}));Ce.displayName="Skeleton";const El=g.forwardRef(({trigger:e,children:t,defaultOpen:n,className:r,...l},o)=>{const[i,a]=g.useState(!!n);return s.jsxs("div",{ref:o,className:L("w-full",r),...l,children:[s.jsxs("button",{onClick:()=>a(!i),className:"flex w-full items-center justify-between rounded-md border bg-card px-4 py-3 text-sm font-medium text-foreground hover:bg-accent transition-colors",children:[e,s.jsx(_e,{name:"chevron-down",size:16,className:L("text-muted-foreground transition-transform",i&&"rotate-180")})]}),s.jsx("div",{className:"grid transition-all duration-200",style:{gridTemplateRows:i?"1fr":"0fr"},children:s.jsx("div",{className:"overflow-hidden",children:s.jsx("div",{className:"space-y-2 px-1 pt-2",children:t})})})]})});El.displayName="Collapsible";function hv(){return s.jsxs("div",{className:"max-w-4xl mx-auto p-8 space-y-8",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"font-display text-2xl font-bold",children:"Cards & Dados"}),s.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Card, Avatar, Separator, Progress, Skeleton, Collapsible."})]}),s.jsxs(M,{title:"Card — Estrutura base",description:"CardHeader, CardTitle, CardDescription, CardContent, CardFooter",code:`<Card>
|
|
113
|
+
<CardHeader>
|
|
114
|
+
<CardTitle>Diagnóstico OPTI</CardTitle>
|
|
115
|
+
<CardDescription>Análise de processos internos</CardDescription>
|
|
116
|
+
</CardHeader>
|
|
117
|
+
<CardContent>Conteúdo do card...</CardContent>
|
|
118
|
+
<CardFooter>
|
|
119
|
+
<Button variant="brand">Iniciar</Button>
|
|
120
|
+
</CardFooter>
|
|
121
|
+
</Card>`,children:[s.jsxs(Jt,{className:"w-72",children:[s.jsxs(Tr,{children:[s.jsx(Dr,{children:"Diagnóstico OPTI"}),s.jsx(Or,{children:"Análise completa de processos internos"})]}),s.jsx(Sn,{children:s.jsx("p",{className:"text-sm text-muted-foreground",children:"Identifique gargalos, automatize fluxos e acompanhe os resultados em tempo real."})}),s.jsxs(df,{className:"gap-2",children:[s.jsx(O,{variant:"brand",size:"sm",children:"Iniciar"}),s.jsx(O,{variant:"outline",size:"sm",children:"Saber mais"})]})]}),s.jsxs(Jt,{className:"w-72",children:[s.jsx(Tr,{children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{children:[s.jsx(Dr,{children:"Automação ativa"}),s.jsx(Or,{children:"Processos rodando agora"})]}),s.jsx(G,{variant:"success",children:"Online"})]})}),s.jsxs(Sn,{className:"space-y-3",children:[s.jsxs("div",{className:"flex justify-between text-sm",children:[s.jsx("span",{className:"text-muted-foreground",children:"Progresso"}),s.jsx("span",{className:"font-medium",children:"72%"})]}),s.jsx(Qs,{value:72})]})]})]}),s.jsx(M,{title:"Card — Métricas",description:"Cards para dashboards",className:"flex-col sm:flex-row",children:[{title:"Processos",value:"128",change:"+12%",icon:"zap",color:"text-primary"},{title:"Automações",value:"47",change:"+5%",icon:"cpu",color:"text-brand"},{title:"Eficiência",value:"94%",change:"+8%",icon:"trending-up",color:"text-success"}].map(e=>s.jsx(Jt,{className:"flex-1 min-w-[160px]",children:s.jsxs(Sn,{className:"pt-5",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:e.title}),s.jsx("i",{"data-lucide":e.icon,className:e.color,style:{width:16,height:16,display:"inline-flex"}})]}),s.jsx("p",{className:"text-2xl font-display font-bold mt-2",children:e.value}),s.jsxs("p",{className:"text-xs text-success mt-0.5",children:[e.change," este mês"]})]})},e.title))}),s.jsxs(M,{title:"Avatar",description:"Com imagem, fallback de iniciais e tamanhos",code:`<Avatar src="https://..." fallback="WA" />
|
|
122
|
+
<Avatar fallback="JS" className="h-12 w-12" />
|
|
123
|
+
<Avatar fallback="?" className="h-8 w-8" />`,className:"items-center",children:[s.jsx(at,{src:"https://i.pravatar.cc/80?u=1",fallback:"WA",className:"h-14 w-14"}),s.jsx(at,{src:"https://i.pravatar.cc/80?u=2",fallback:"JS",className:"h-12 w-12"}),s.jsx(at,{src:"https://i.pravatar.cc/80?u=3",fallback:"MO",className:"h-10 w-10"}),s.jsx(at,{fallback:"AB",className:"h-10 w-10"}),s.jsx(at,{fallback:"?",className:"h-8 w-8 text-xs"}),s.jsx(at,{src:"invalid-url",fallback:"ER"})]}),s.jsxs(M,{title:"Avatar — Grupo",description:"Equipe do projeto",code:`<div className="flex -space-x-2">
|
|
124
|
+
<Avatar fallback="W" className="ring-2 ring-background" />
|
|
125
|
+
<Avatar fallback="A" className="ring-2 ring-background" />
|
|
126
|
+
<Avatar fallback="+3" className="ring-2 ring-background text-xs" />
|
|
127
|
+
</div>`,className:"items-center",children:[s.jsxs("div",{className:"flex -space-x-2 items-center",children:[["WA","JS","MO","AB"].map((e,t)=>s.jsx(at,{src:`https://i.pravatar.cc/40?u=${t+10}`,fallback:e,className:"h-9 w-9 ring-2 ring-background"},e)),s.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-muted text-xs font-semibold ring-2 ring-background text-muted-foreground",children:"+8"})]}),s.jsx("span",{className:"text-sm text-muted-foreground",children:"12 membros na equipe"})]}),s.jsx(M,{title:"Separator",description:"Divisor horizontal e vertical",code:`<Separator />
|
|
128
|
+
<div className="flex gap-4">
|
|
129
|
+
<span>Item 1</span>
|
|
130
|
+
<Separator orientation="vertical" className="h-4" />
|
|
131
|
+
<span>Item 2</span>
|
|
132
|
+
</div>`,className:"flex-col",children:s.jsxs("div",{className:"w-full max-w-sm space-y-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:"Seção A"}),s.jsx(Ie,{className:"my-3"}),s.jsx("p",{className:"text-sm font-medium",children:"Seção B"})]}),s.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[s.jsx("span",{children:"Privacidade"}),s.jsx(Ie,{orientation:"vertical",className:"h-4"}),s.jsx("span",{children:"Termos"}),s.jsx(Ie,{orientation:"vertical",className:"h-4"}),s.jsx("span",{children:"Contato"})]})]})}),s.jsx(M,{title:"Progress",description:"Barra de progresso",code:"<Progress value={75} />",className:"flex-col",children:s.jsx("div",{className:"w-full max-w-sm space-y-4",children:[{label:"Onboarding",value:100,color:""},{label:"Diagnóstico",value:72,color:""},{label:"Implementação",value:48,color:""},{label:"Treinamento",value:15,color:""}].map(e=>s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[s.jsx("span",{children:e.label}),s.jsxs("span",{children:[e.value,"%"]})]}),s.jsx(Qs,{value:e.value})]},e.label))})}),s.jsxs(M,{title:"Skeleton",description:"Placeholder durante carregamento",code:`<Skeleton className="h-4 w-full" />
|
|
133
|
+
<Skeleton className="h-4 w-3/4" />`,children:[s.jsxs("div",{className:"w-64 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Ce,{className:"h-10 w-10 rounded-full"}),s.jsxs("div",{className:"space-y-2 flex-1",children:[s.jsx(Ce,{className:"h-3.5 w-full"}),s.jsx(Ce,{className:"h-3 w-3/4"})]})]}),s.jsx(Ce,{className:"h-32 w-full rounded-xl"}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Ce,{className:"h-3 w-full"}),s.jsx(Ce,{className:"h-3 w-5/6"}),s.jsx(Ce,{className:"h-3 w-4/6"})]})]}),s.jsx("div",{className:"w-64",children:s.jsx(Jt,{children:s.jsxs(Sn,{className:"pt-5 space-y-3",children:[s.jsxs("div",{className:"flex gap-3 items-center",children:[s.jsx(Ce,{className:"h-9 w-9 rounded-full"}),s.jsxs("div",{className:"flex-1 space-y-1.5",children:[s.jsx(Ce,{className:"h-3 w-2/3"}),s.jsx(Ce,{className:"h-2.5 w-1/2"})]})]}),s.jsx(Ce,{className:"h-24 w-full rounded-lg"}),s.jsx(Ce,{className:"h-8 w-full rounded-md"})]})})})]}),s.jsx(M,{title:"Collapsible",description:"Conteúdo expansível/recolhível",code:`<Collapsible trigger="Perguntas frequentes">
|
|
134
|
+
<p>Resposta da pergunta...</p>
|
|
135
|
+
</Collapsible>`,className:"flex-col",children:s.jsxs("div",{className:"w-full max-w-md space-y-2",children:[s.jsx(El,{trigger:"O que é a OPTI Soluções?",defaultOpen:!0,children:s.jsx("p",{className:"text-sm text-muted-foreground p-3 bg-muted/30 rounded-lg",children:"A OPTI é especializada em otimização de processos empresariais, combinando metodologias ágeis e automação inteligente para maximizar a eficiência operacional."})}),s.jsx(El,{trigger:"Como funciona o diagnóstico?",children:s.jsx("p",{className:"text-sm text-muted-foreground p-3 bg-muted/30 rounded-lg",children:"O diagnóstico é feito em 3 etapas: mapeamento de processos, análise de gargalos e proposta de automações com ROI estimado."})}),s.jsx(El,{trigger:"Qual o prazo de implementação?",children:s.jsx("p",{className:"text-sm text-muted-foreground p-3 bg-muted/30 rounded-lg",children:"O prazo varia de 4 a 12 semanas dependendo da complexidade dos processos a serem otimizados e automatizados."})})]})})]})}const hf=g.forwardRef(({open:e=!1,onClose:t,children:n,...r},l)=>(g.useEffect(()=>{const o=i=>{i.key==="Escape"&&(t==null||t())};return e&&document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e,t]),e?s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[s.jsx("div",{className:"animate-overlay absolute inset-0 bg-black/50 backdrop-blur-[2px]",onClick:t}),s.jsxs("div",{ref:l,className:"animate-content relative z-10 w-full max-w-lg rounded-xl border bg-card p-6 shadow-lg",...r,children:[n,s.jsx("button",{onClick:t,className:"absolute right-4 top-4 rounded-md p-1 text-muted-foreground opacity-70 transition hover:opacity-100 hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:s.jsx(_e,{name:"x",size:18})})]})]}):null));hf.displayName="Dialog";const gf=g.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:L("flex flex-col space-y-1.5 text-left mb-4",e),...t}));gf.displayName="DialogHeader";const vf=g.forwardRef(({className:e,...t},n)=>s.jsx("h2",{ref:n,className:L("font-display text-xl font-semibold tracking-tight text-foreground",e),...t}));vf.displayName="DialogTitle";const xf=g.forwardRef(({className:e,...t},n)=>s.jsx("p",{ref:n,className:L("text-sm text-muted-foreground",e),...t}));xf.displayName="DialogDescription";const yf=g.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:L("mt-6 flex justify-end gap-2",e),...t}));yf.displayName="DialogFooter";const wf=g.forwardRef(({open:e=!1,onClose:t,title:n,description:r,children:l,...o},i)=>(g.useEffect(()=>{const a=u=>{u.key==="Escape"&&(t==null||t())};return e&&document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e,t]),e?s.jsxs("div",{className:"fixed inset-0 z-50",children:[s.jsx("div",{className:"animate-overlay absolute inset-0 bg-black/50 backdrop-blur-[2px]",onClick:t}),s.jsxs("div",{ref:i,className:"animate-sheet absolute right-0 top-0 h-full w-full max-w-sm border-l bg-card p-6 shadow-lg flex flex-col",...o,children:[s.jsxs("div",{className:"mb-4",children:[n&&s.jsx("h2",{className:"font-display text-lg font-semibold text-foreground",children:n}),r&&s.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:r})]}),s.jsx("div",{className:"flex-1 overflow-y-auto opti-scroll -mr-2 pr-2",children:l}),s.jsx("button",{onClick:t,className:"absolute right-4 top-4 rounded-md p-1 text-muted-foreground opacity-70 hover:opacity-100",children:s.jsx(_e,{name:"x",size:18})})]})]}):null));wf.displayName="Sheet";const Gs=g.forwardRef(({open:e=!1,onClose:t,onConfirm:n,title:r,description:l,confirmLabel:o="Continuar",cancelLabel:i="Cancelar",destructive:a,...u},c)=>(g.useEffect(()=>{const d=f=>{f.key==="Escape"&&(t==null||t())};return e&&document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[e,t]),e?s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[s.jsx("div",{className:"animate-overlay absolute inset-0 bg-black/50 backdrop-blur-[2px]"}),s.jsxs("div",{ref:c,className:"animate-content relative z-10 w-full max-w-md rounded-xl border bg-card p-6 shadow-lg",...u,children:[s.jsx("h2",{className:"font-display text-lg font-semibold text-foreground",children:r}),s.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:l}),s.jsxs("div",{className:"mt-6 flex justify-end gap-2",children:[s.jsx("button",{onClick:t,className:"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background disabled:pointer-events-none disabled:opacity-50 active:scale-[.98] border border-input bg-background hover:bg-accent hover:text-accent-foreground h-10 px-4 py-2",children:i}),s.jsx("button",{onClick:()=>{n==null||n(),t==null||t()},className:L("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-semibold transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background disabled:pointer-events-none disabled:opacity-50 active:scale-[.98] h-10 px-4 py-2",a?"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-sm":"bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm"),children:o})]})]})]}):null));Gs.displayName="AlertDialog";const dn=g.forwardRef(({content:e,children:t,side:n="top",className:r,...l},o)=>{const[i,a]=g.useState(!1),u={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",right:"left-full top-1/2 -translate-y-1/2 ml-2",left:"right-full top-1/2 -translate-y-1/2 mr-2"};return s.jsxs("span",{ref:o,className:"relative inline-flex",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),...l,children:[t,i&&s.jsx("span",{className:L("animate-pop pointer-events-none absolute z-50 whitespace-nowrap rounded-md bg-foreground px-2.5 py-1 text-xs font-medium text-background shadow-md",u[n],r),children:e})]})});dn.displayName="Tooltip";const Ks=g.forwardRef(({trigger:e,children:t,align:n="start",className:r,...l},o)=>{const[i,a]=g.useState(!1),u=g.useRef(null);return g.useEffect(()=>{const c=d=>{u.current&&!u.current.contains(d.target)&&a(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),s.jsxs("div",{ref:u,className:"relative inline-block",children:[s.jsx("span",{onClick:()=>a(!i),children:e}),i&&s.jsx("div",{ref:o,className:L("animate-pop absolute z-50 mt-2 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md",n==="end"?"right-0":"left-0",r),...l,children:t})]})});Ks.displayName="Popover";const Ys=g.forwardRef(({trigger:e,children:t,className:n,...r},l)=>{const[o,i]=g.useState(!1);return s.jsxs("span",{ref:l,className:"relative inline-flex",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),...r,children:[e,o&&s.jsx("div",{className:L("animate-pop absolute left-0 top-full z-50 mt-2 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md",n),children:t})]})});Ys.displayName="HoverCard";const Xs=g.forwardRef(({trigger:e,items:t,align:n="start",className:r,...l},o)=>{const[i,a]=g.useState(!1),u=g.useRef(null);return g.useEffect(()=>{const c=d=>{u.current&&!u.current.contains(d.target)&&a(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),s.jsxs("div",{ref:u,className:"relative inline-block",children:[s.jsx("span",{onClick:()=>a(!i),children:e}),i&&s.jsx("div",{ref:o,className:L("animate-pop absolute z-50 mt-1.5 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",n==="end"?"right-0":"left-0",r),...l,children:t.map((c,d)=>c.separator?s.jsx("div",{className:"-mx-1 my-1 h-px bg-border"},d):s.jsxs("button",{onClick:()=>{var f;(f=c.onClick)==null||f.call(c),a(!1)},className:L("flex w-full items-center gap-2 rounded-[6px] px-2 py-1.5 text-sm transition-colors hover:bg-accent hover:text-accent-foreground",c.destructive&&"text-destructive hover:bg-destructive/10 hover:text-destructive"),children:[c.icon&&s.jsx(_e,{name:c.icon,size:15}),s.jsx("span",{className:"flex-1 text-left",children:c.label})]},d))})]})});Xs.displayName="DropdownMenu";function gv(){const[e,t]=g.useState(!1),[n,r]=g.useState(!1),[l,o]=g.useState(!1),[i,a]=g.useState(!1);return s.jsxs("div",{className:"max-w-4xl mx-auto p-8 space-y-8",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"font-display text-2xl font-bold",children:"Overlays"}),s.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Dialog, Sheet, AlertDialog, Tooltip, Popover, HoverCard, DropdownMenu."})]}),s.jsxs(M,{title:"Dialog",description:"Modal com backdrop e tecla Escape",code:`const [open, setOpen] = useState(false)
|
|
136
|
+
|
|
137
|
+
<Button onClick={() => setOpen(true)}>Abrir Dialog</Button>
|
|
138
|
+
|
|
139
|
+
<Dialog open={open} onClose={() => setOpen(false)}>
|
|
140
|
+
<DialogHeader>
|
|
141
|
+
<DialogTitle>Confirmar ação</DialogTitle>
|
|
142
|
+
<DialogDescription>Revise os detalhes antes de confirmar.</DialogDescription>
|
|
143
|
+
</DialogHeader>
|
|
144
|
+
<DialogFooter>
|
|
145
|
+
<Button variant="outline" onClick={() => setOpen(false)}>Cancelar</Button>
|
|
146
|
+
<Button>Confirmar</Button>
|
|
147
|
+
</DialogFooter>
|
|
148
|
+
</Dialog>`,children:[s.jsxs(O,{onClick:()=>t(!0),children:[s.jsx("i",{"data-lucide":"square-pen",style:{width:15,height:15,display:"inline-flex"}}),"Abrir Dialog"]}),s.jsxs(hf,{open:e,onClose:()=>t(!1),children:[s.jsxs(gf,{children:[s.jsx(vf,{children:"Agendar diagnóstico"}),s.jsx(xf,{children:"Preencha os dados para iniciarmos a análise dos seus processos."})]}),s.jsxs("div",{className:"space-y-3 py-2",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(ct,{htmlFor:"dlg-name",children:"Nome completo"}),s.jsx(Te,{id:"dlg-name",placeholder:"João Silva"})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(ct,{htmlFor:"dlg-co",children:"Empresa"}),s.jsx(Te,{id:"dlg-co",placeholder:"Empresa Ltda."})]})]}),s.jsxs(yf,{children:[s.jsx(O,{variant:"outline",onClick:()=>t(!1),children:"Cancelar"}),s.jsx(O,{variant:"brand",onClick:()=>t(!1),children:"Agendar"})]})]})]}),s.jsxs(M,{title:"Sheet",description:"Painel lateral deslizante",code:`<Sheet
|
|
149
|
+
open={open}
|
|
150
|
+
onClose={() => setOpen(false)}
|
|
151
|
+
title="Configurações"
|
|
152
|
+
description="Ajuste as preferências do sistema"
|
|
153
|
+
>
|
|
154
|
+
{/* content */}
|
|
155
|
+
</Sheet>`,children:[s.jsxs(O,{variant:"outline",onClick:()=>r(!0),children:[s.jsx("i",{"data-lucide":"panel-right",style:{width:15,height:15,display:"inline-flex"}}),"Abrir Sheet"]}),s.jsx(wf,{open:n,onClose:()=>r(!1),title:"Configurações de automação",description:"Ajuste os parâmetros do processo",children:s.jsxs("div",{className:"space-y-4",children:[[{label:"Notificações por e-mail",on:!0},{label:"Relatório semanal",on:!0},{label:"Alertas críticos",on:!1},{label:"Modo debug",on:!1}].map(u=>s.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border last:border-0",children:[s.jsx("span",{className:"text-sm",children:u.label}),s.jsx(G,{variant:u.on?"success":"secondary",children:u.on?"Ativo":"Inativo"})]},u.label)),s.jsx(O,{className:"w-full mt-4",variant:"brand",onClick:()=>r(!1),children:"Salvar configurações"})]})})]}),s.jsxs(M,{title:"AlertDialog",description:"Diálogo de confirmação com variante destrutiva",code:`<AlertDialog
|
|
156
|
+
open={open}
|
|
157
|
+
onClose={() => setOpen(false)}
|
|
158
|
+
onConfirm={handleConfirm}
|
|
159
|
+
title="Confirmar exclusão"
|
|
160
|
+
description="Esta ação não pode ser desfeita."
|
|
161
|
+
confirmLabel="Excluir"
|
|
162
|
+
destructive
|
|
163
|
+
/>`,children:[s.jsxs(O,{variant:"outline",onClick:()=>o(!0),children:[s.jsx("i",{"data-lucide":"check-circle",style:{width:15,height:15,display:"inline-flex"}}),"Confirmar ação"]}),s.jsxs(O,{variant:"destructive",onClick:()=>a(!0),children:[s.jsx("i",{"data-lucide":"trash-2",style:{width:15,height:15,display:"inline-flex"}}),"Excluir processo"]}),s.jsx(Gs,{open:l,onClose:()=>o(!1),onConfirm:()=>console.log("confirmed"),title:"Confirmar ativação",description:"O processo será ativado imediatamente e começará a executar conforme configurado.",confirmLabel:"Ativar"}),s.jsx(Gs,{open:i,onClose:()=>a(!1),onConfirm:()=>console.log("deleted"),title:"Excluir processo?",description:"Esta ação é irreversível. Todos os dados relacionados a este processo serão permanentemente removidos.",confirmLabel:"Excluir permanentemente",destructive:!0})]}),s.jsxs(M,{title:"Tooltip",description:"Dica ao passar o mouse — top, bottom, left, right",code:`<Tooltip content="Clique para baixar">
|
|
164
|
+
<Button variant="outline" size="icon">
|
|
165
|
+
<i data-lucide="download" />
|
|
166
|
+
</Button>
|
|
167
|
+
</Tooltip>`,className:"items-center",children:[s.jsx(dn,{content:"Topo (padrão)",children:s.jsx(O,{variant:"outline",size:"sm",children:"Hover — top"})}),s.jsx(dn,{content:"Abaixo",side:"bottom",children:s.jsx(O,{variant:"outline",size:"sm",children:"Hover — bottom"})}),s.jsx(dn,{content:"Direita",side:"right",children:s.jsx(O,{variant:"outline",size:"sm",children:"Hover — right"})}),s.jsx(dn,{content:"Esquerda",side:"left",children:s.jsx(O,{variant:"outline",size:"sm",children:"Hover — left"})}),s.jsx(dn,{content:"Exportar relatório",children:s.jsx(O,{variant:"secondary",size:"icon",children:s.jsx("i",{"data-lucide":"download",style:{width:16,height:16,display:"inline-flex"}})})})]}),s.jsxs(M,{title:"Popover",description:"Conteúdo flutuante ao clicar",code:`<Popover
|
|
168
|
+
trigger={<Button variant="outline">Filtros</Button>}
|
|
169
|
+
content={<div>...</div>}
|
|
170
|
+
/>`,children:[s.jsx(Ks,{trigger:s.jsxs(O,{variant:"outline",children:[s.jsx("i",{"data-lucide":"sliders-horizontal",style:{width:14,height:14,display:"inline-flex"}}),"Filtros"]}),content:s.jsx("div",{className:"p-1 space-y-1 w-40",children:["Todos","Ativos","Inativos","Em análise","Arquivados"].map(u=>s.jsx("button",{className:"w-full text-left px-2 py-1.5 text-sm rounded-md hover:bg-accent transition-colors",children:u},u))})}),s.jsx(Ks,{trigger:s.jsx(O,{variant:"ghost",size:"icon",children:s.jsx("i",{"data-lucide":"more-horizontal",style:{width:16,height:16,display:"inline-flex"}})}),content:s.jsx("div",{className:"p-2 text-sm text-muted-foreground",children:"Mais opções disponíveis aqui."})})]}),s.jsxs(M,{title:"HoverCard",description:"Card de preview ao passar o mouse",code:`<HoverCard
|
|
171
|
+
trigger={<span>@waldney</span>}
|
|
172
|
+
content={<div>...</div>}
|
|
173
|
+
/>`,children:[s.jsx(Ys,{trigger:s.jsx("span",{className:"text-primary underline cursor-pointer text-sm font-medium",children:"@waldney.andrade"}),content:s.jsxs("div",{className:"p-1 flex items-start gap-3",children:[s.jsx(at,{fallback:"WA",className:"h-10 w-10 shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-semibold text-sm",children:"Waldney Andrade"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"OPTI Soluções"}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Especialista em automação de processos"}),s.jsx(G,{variant:"brand",className:"mt-2",children:"Fundador"})]})]})}),s.jsx(Ys,{trigger:s.jsxs(G,{variant:"outline",className:"cursor-pointer",children:[s.jsx("i",{"data-lucide":"info",style:{width:11,height:11,display:"inline-flex",marginRight:4}}),"Saiba mais"]}),content:s.jsx("p",{className:"text-xs text-muted-foreground p-1 max-w-[200px]",children:"Passe o mouse sobre elementos para ver informações contextuais sem navegação."})})]}),s.jsxs(M,{title:"DropdownMenu",description:"Menu contextual com ícones, separadores e ações destrutivas",code:`<DropdownMenu
|
|
174
|
+
trigger={<Button>Ações</Button>}
|
|
175
|
+
items={[
|
|
176
|
+
{ label: 'Editar', icon: 'pencil', onClick: () => {} },
|
|
177
|
+
{ separator: true },
|
|
178
|
+
{ label: 'Excluir', icon: 'trash-2', destructive: true },
|
|
179
|
+
]}
|
|
180
|
+
/>`,children:[s.jsx(Xs,{trigger:s.jsxs(O,{variant:"outline",children:["Ações",s.jsx("i",{"data-lucide":"chevron-down",style:{width:14,height:14,display:"inline-flex"}})]}),items:[{label:"Editar processo",icon:"pencil",onClick:()=>{}},{label:"Duplicar",icon:"copy",onClick:()=>{}},{label:"Exportar",icon:"download",onClick:()=>{}},{separator:!0},{label:"Arquivar",icon:"archive",onClick:()=>{}},{separator:!0},{label:"Excluir",icon:"trash-2",destructive:!0,onClick:()=>{}}]}),s.jsx(Xs,{trigger:s.jsx(O,{variant:"ghost",size:"icon",children:s.jsx("i",{"data-lucide":"more-vertical",style:{width:16,height:16,display:"inline-flex"}})}),align:"end",items:[{label:"Ver detalhes",icon:"eye"},{label:"Compartilhar",icon:"share-2"},{separator:!0},{label:"Remover",icon:"x",destructive:!0}]})]})]})}const vv=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],xv=["D","S","T","Q","Q","S","S"];function ku(e,t){return!!(e&&t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}const ta=g.forwardRef(({value:e,onChange:t,className:n,...r},l)=>{const o=new Date,[i,a]=g.useState(()=>e?new Date(e.getFullYear(),e.getMonth(),1):new Date(o.getFullYear(),o.getMonth(),1)),u=i.getFullYear(),c=i.getMonth(),d=new Date(u,c,1).getDay(),f=new Date(u,c+1,0).getDate(),h=[];for(let x=0;x<d;x++)h.push(null);for(let x=1;x<=f;x++)h.push(new Date(u,c,x));const w=x=>a(new Date(u,c+x,1));return s.jsxs("div",{ref:l,className:L("w-fit rounded-lg border bg-card p-3",n),...r,children:[s.jsxs("div",{className:"mb-2 flex items-center justify-between px-1",children:[s.jsx("button",{onClick:()=>w(-1),className:"inline-flex h-7 w-7 items-center justify-center rounded-md border border-input hover:bg-accent transition-colors",children:s.jsx(_e,{name:"chevron-left",size:15})}),s.jsxs("span",{className:"text-sm font-semibold text-foreground",children:[vv[c]," ",u]}),s.jsx("button",{onClick:()=>w(1),className:"inline-flex h-7 w-7 items-center justify-center rounded-md border border-input hover:bg-accent transition-colors",children:s.jsx(_e,{name:"chevron-right",size:15})})]}),s.jsxs("div",{className:"grid grid-cols-7 gap-1",children:[xv.map((x,y)=>s.jsx("div",{className:"flex h-8 w-9 items-center justify-center text-xs font-medium text-muted-foreground",children:x},y)),h.map((x,y)=>x===null?s.jsx("div",{className:"h-9 w-9"},y):s.jsx("button",{onClick:()=>t==null?void 0:t(x),className:L("inline-flex h-9 w-9 items-center justify-center rounded-md text-sm transition-colors",ku(x,e)?"bg-primary text-primary-foreground font-semibold":ku(x,o)?"bg-accent text-accent-foreground font-medium":"text-foreground hover:bg-accent"),children:x.getDate()},y))]})]})});ta.displayName="Calendar";const jf=g.forwardRef(({value:e,onChange:t,placeholder:n="Escolha uma data",className:r,...l},o)=>{const[i,a]=g.useState(!1),u=g.useRef(null);g.useEffect(()=>{const d=f=>{u.current&&!u.current.contains(f.target)&&a(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[]);const c=d=>d?`${String(d.getDate()).padStart(2,"0")}/${String(d.getMonth()+1).padStart(2,"0")}/${d.getFullYear()}`:"";return s.jsxs("div",{ref:u,className:L("relative inline-block",r),...l,children:[s.jsxs("button",{onClick:()=>a(!i),className:L("flex h-10 w-64 items-center gap-2 rounded-md border border-input bg-background px-3 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",!e&&"text-muted-foreground"),children:[s.jsx(_e,{name:"calendar",size:16,className:"opacity-70"}),e?c(e):n]}),i&&s.jsx("div",{className:"animate-pop absolute z-50 mt-1.5",ref:o,children:s.jsx(ta,{value:e,onChange:d=>{t==null||t(d),a(!1)},className:"shadow-md"})})]})});jf.displayName="DatePicker";const Js=g.forwardRef(({length:e=6,value:t="",onChange:n,className:r,...l},o)=>{const i=g.useRef([]),a=t.padEnd(e," ").slice(0,e).split(""),u=(c,d)=>{var h;const f=t.padEnd(e," ").split("");f[c]=d||" ",n==null||n(f.join("").trimEnd()),d&&c<e-1&&((h=i.current[c+1])==null||h.focus())};return s.jsx("div",{ref:o,className:L("flex items-center gap-2",r),...l,children:a.map((c,d)=>s.jsxs(g.Fragment,{children:[s.jsx("input",{ref:f=>i.current[d]=f,inputMode:"numeric",maxLength:1,value:c.trim(),onChange:f=>u(d,f.target.value.replace(/[^0-9]/g,"")),onKeyDown:f=>{var h;f.key==="Backspace"&&!c.trim()&&d>0&&((h=i.current[d-1])==null||h.focus())},className:"h-12 w-11 rounded-md border border-input bg-background text-center text-lg font-semibold text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring"}),d===Math.floor(e/2)-1&&e%2===0&&s.jsx("span",{className:"text-muted-foreground",children:"-"})]},d))})});Js.displayName="InputOTP";const kf=g.forwardRef(({slides:e,className:t,...n},r)=>{const[l,o]=g.useState(0),i=a=>o((l+a+e.length)%e.length);return s.jsxs("div",{ref:r,className:L("relative",t),...n,children:[s.jsx("div",{className:"overflow-hidden rounded-lg border",children:s.jsx("div",{className:"flex transition-transform duration-300",style:{transform:`translateX(-${l*100}%)`},children:e.map((a,u)=>s.jsx("div",{className:"flex h-44 w-full flex-none items-center justify-center bg-muted",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"font-display text-4xl font-semibold text-foreground",children:a.n}),s.jsx("div",{className:"mt-1 text-sm text-muted-foreground",children:a.label})]})},u))})}),s.jsx("button",{onClick:()=>i(-1),className:"absolute -left-3 top-1/2 -translate-y-1/2 inline-flex h-9 w-9 items-center justify-center rounded-full border bg-card shadow-sm hover:bg-accent transition-colors",children:s.jsx(_e,{name:"chevron-left",size:16})}),s.jsx("button",{onClick:()=>i(1),className:"absolute -right-3 top-1/2 -translate-y-1/2 inline-flex h-9 w-9 items-center justify-center rounded-full border bg-card shadow-sm hover:bg-accent transition-colors",children:s.jsx(_e,{name:"chevron-right",size:16})}),s.jsx("div",{className:"mt-3 flex justify-center gap-1.5",children:e.map((a,u)=>s.jsx("button",{onClick:()=>o(u),className:L("h-1.5 rounded-full transition-all",u===l?"w-5 bg-primary":"w-1.5 bg-border")},u))})]})});kf.displayName="Carousel";const Nf=g.forwardRef(({className:e,children:t,...n},r)=>s.jsx("div",{ref:r,className:L("opti-scroll overflow-y-auto rounded-md border",e),...n,children:t}));Nf.displayName="ScrollArea";function yv(){const[e,t]=g.useState(new Date),[n,r]=g.useState(),[l,o]=g.useState(""),[i,a]=g.useState("");return s.jsxs("div",{className:"max-w-4xl mx-auto p-8 space-y-8",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"font-display text-2xl font-bold",children:"Seletores"}),s.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Calendar, DatePicker, InputOTP, Carousel, ScrollArea."})]}),s.jsxs(M,{title:"Calendar",description:"Seletor de data com navegação por mês",code:`const [date, setDate] = useState(new Date())
|
|
181
|
+
|
|
182
|
+
<Calendar value={date} onChange={setDate} />`,className:"items-start",children:[s.jsx(ta,{value:e,onChange:t}),e&&s.jsxs("div",{className:"text-sm text-muted-foreground flex items-center gap-2",children:[s.jsx("i",{"data-lucide":"calendar-check",style:{width:14,height:14,display:"inline-flex"}}),"Selecionado:"," ",s.jsx("span",{className:"font-medium text-foreground",children:e.toLocaleDateString("pt-BR",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]})]}),s.jsx(M,{title:"DatePicker",description:"Input com calendário integrado",code:`<DatePicker
|
|
183
|
+
value={date}
|
|
184
|
+
onChange={setDate}
|
|
185
|
+
placeholder="Selecione uma data"
|
|
186
|
+
/>`,className:"flex-col items-start",children:s.jsxs("div",{className:"w-64 space-y-3",children:[s.jsx(jf,{value:n,onChange:r,placeholder:"Selecione a data"}),n&&s.jsxs("p",{className:"text-xs text-muted-foreground",children:["Data selecionada: ",n.toLocaleDateString("pt-BR")]})]})}),s.jsx(M,{title:"InputOTP",description:"Código de verificação — 6 dígitos e 4 dígitos",code:`<InputOTP length={6} value={otp} onChange={setOtp} />
|
|
187
|
+
<InputOTP length={4} value={otp} onChange={setOtp} />`,className:"flex-col items-start",children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-xs text-muted-foreground font-medium uppercase tracking-wide",children:"6 dígitos"}),s.jsx(Js,{length:6,value:l,onChange:o}),l.length===6&&s.jsxs("p",{className:"text-xs text-success flex items-center gap-1",children:[s.jsx("i",{"data-lucide":"check-circle",style:{width:12,height:12,display:"inline-flex"}}),"Código completo: ",l]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-xs text-muted-foreground font-medium uppercase tracking-wide",children:"4 dígitos (PIN)"}),s.jsx(Js,{length:4,value:i,onChange:a})]})]})}),s.jsx(M,{title:"Carousel",description:"Navegação entre slides com indicadores",code:`<Carousel
|
|
188
|
+
slides={[
|
|
189
|
+
{ label: 'Processos mapeados', n: 128 },
|
|
190
|
+
{ label: 'Automações ativas', n: 47 },
|
|
191
|
+
{ label: 'Horas economizadas', n: 320 },
|
|
192
|
+
]}
|
|
193
|
+
/>`,className:"flex-col",children:s.jsx(kf,{className:"w-full max-w-sm mx-auto",slides:[{label:"Processos mapeados",n:128},{label:"Automações ativas",n:47},{label:"Horas economizadas",n:320},{label:"Clientes atendidos",n:85},{label:"ROI médio (%)",n:340}]})}),s.jsx(M,{title:"ScrollArea",description:"Área com scroll customizado",code:`<ScrollArea className="h-48 rounded-lg border p-3">
|
|
194
|
+
{items.map(item => <div key={item}>{item}</div>)}
|
|
195
|
+
</ScrollArea>`,children:s.jsx(Nf,{className:"h-52 w-64 rounded-xl border p-3",children:s.jsx("div",{className:"space-y-1",children:["Mapeamento de processos","Análise de gargalos","Automação de fluxos","Integração de sistemas","Relatórios automáticos","Dashboard executivo","Treinamento da equipe","Suporte pós-implantação","Monitoramento contínuo","Otimização iterativa","Auditoria de processos","Consultoria estratégica","Revisão de KPIs","Planejamento de roadmap","Gestão de mudanças"].map((u,c)=>s.jsxs("div",{className:"flex items-center justify-between rounded-md px-3 py-2 text-sm hover:bg-accent transition-colors cursor-default",children:[s.jsx("span",{children:u}),s.jsx(G,{variant:"secondary",className:"text-[10px]",children:c+1})]},c))})})})]})}const wv=[{name:"sm",value:"calc(var(--radius) - 4px)",class:"rounded-sm"},{name:"md",value:"calc(var(--radius) - 2px)",class:"rounded-md"},{name:"default (--radius)",value:"var(--radius) = 0.625rem",class:"rounded-lg"},{name:"xl",value:"calc(var(--radius) + 4px)",class:"rounded-xl"},{name:"2xl",value:"calc(var(--radius) + 8px)",class:"rounded-2xl"},{name:"full",value:"9999px",class:"rounded-full"}];function jv(){const[e,t]=g.useState(!1),n=()=>{const r=document.documentElement;e?r.classList.remove("dark"):r.classList.add("dark"),t(!e)};return s.jsxs("div",{className:"max-w-4xl mx-auto p-8 space-y-10",children:[s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"font-display text-2xl font-bold",children:"Tokens de Design"}),s.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Variáveis CSS, tipografia, espaçamentos e raios."})]}),s.jsxs("button",{onClick:n,className:"flex items-center gap-2 rounded-lg border px-3 py-2 text-sm hover:bg-accent transition-colors",children:[s.jsx("i",{"data-lucide":e?"sun":"moon",style:{width:15,height:15,display:"inline-flex"}}),e?"Light mode":"Dark mode"]})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"font-display text-lg font-semibold",children:"Identidade de Marca"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Azul primário OPTI e Laranja de marca"})]}),s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"h-24 rounded-xl border",style:{background:"#1697F6"}}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-semibold",children:"Primary — OPTI Blue"}),s.jsx("p",{className:"text-[11px] text-muted-foreground font-mono",children:"#1697F6"}),s.jsx("p",{className:"text-[11px] text-muted-foreground font-mono",children:"hsl(205 93% 53%)"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"h-24 rounded-xl border",style:{background:"#FFA000"}}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-semibold",children:"Brand — OPTI Orange"}),s.jsx("p",{className:"text-[11px] text-muted-foreground font-mono",children:"#FFA000"}),s.jsx("p",{className:"text-[11px] text-muted-foreground font-mono",children:"hsl(38 100% 50%)"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"h-24 rounded-xl border",style:{background:"#0D9E5E"}}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-semibold",children:"Success"}),s.jsx("p",{className:"text-[11px] text-muted-foreground font-mono",children:"#0D9E5E"}),s.jsx("p",{className:"text-[11px] text-muted-foreground font-mono",children:"hsl(156 76% 36%)"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"h-24 rounded-xl border",style:{background:"#E03E4A"}}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-semibold",children:"Destructive"}),s.jsx("p",{className:"text-[11px] text-muted-foreground font-mono",children:"#E03E4A"}),s.jsx("p",{className:"text-[11px] text-muted-foreground font-mono",children:"hsl(358 75% 59%)"})]})]})]})]}),s.jsx(Ie,{}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-display text-lg font-semibold",children:"Escala de Azul"}),s.jsx("div",{className:"flex gap-1",children:[900,800,700,600,500,400,300,200,100,50].map(r=>{const l=r===50?97:r===100?93:r===200?86:r===300?74:r===400?66:r===500?59:r===600?53:r===700?45:r===800?36:24;return s.jsxs("div",{className:"flex-1 text-center space-y-1",children:[s.jsx("div",{className:"h-12 rounded-md",style:{background:`hsl(205 93% ${l}%)`}}),s.jsx("p",{className:"text-[9px] text-muted-foreground",children:r})]},r)})})]}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-display text-lg font-semibold",children:"Escala de Laranja"}),s.jsx("div",{className:"flex gap-1",children:[900,800,700,600,500,400,300,200,100,50].map(r=>{const l=r===50?97:r===100?93:r===200?86:r===300?74:r===400?62:r===500?52:r===600?45:r===700?37:r===800?28:18;return s.jsxs("div",{className:"flex-1 text-center space-y-1",children:[s.jsx("div",{className:"h-12 rounded-md",style:{background:`hsl(38 100% ${l}%)`}}),s.jsx("p",{className:"text-[9px] text-muted-foreground",children:r})]},r)})})]}),s.jsx(Ie,{}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-display text-lg font-semibold",children:"Tokens Semânticos"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Variáveis CSS que mudam automaticamente com o tema claro/escuro."}),s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3",children:["--background","--foreground","--card","--card-foreground","--muted","--muted-foreground","--accent","--accent-foreground","--primary","--primary-foreground","--brand","--brand-foreground","--border","--input","--ring","--secondary","--destructive","--success","--info"].map(r=>s.jsxs("div",{className:"flex items-center gap-2.5 rounded-lg border p-2.5",children:[s.jsx("div",{className:"h-8 w-8 rounded-md border border-border/50 shrink-0",style:{background:`hsl(var(${r}))`}}),s.jsx("p",{className:"text-[11px] font-mono text-foreground break-all leading-tight",children:r})]},r))})]}),s.jsx(Ie,{}),s.jsxs("section",{className:"space-y-6",children:[s.jsx("h2",{className:"font-display text-lg font-semibold",children:"Tipografia"}),s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"flex items-center gap-2",children:s.jsx("p",{className:"text-xs font-mono text-muted-foreground",children:"font-display — Fredoka"})}),s.jsxs("div",{className:"space-y-1 border rounded-xl p-4 bg-muted/20",children:[s.jsx("p",{className:"font-display text-4xl font-bold",children:"OPTI Soluções"}),s.jsx("p",{className:"font-display text-2xl font-semibold",children:"Automação inteligente"}),s.jsx("p",{className:"font-display text-xl",children:"Design System @goopti/ui"}),s.jsx("p",{className:"font-display text-base text-muted-foreground",children:"AaBbCcDd 0123456789"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-xs font-mono text-muted-foreground",children:"font-body — Manrope"}),s.jsxs("div",{className:"space-y-2 border rounded-xl p-4 bg-muted/20",children:[s.jsx("p",{className:"text-2xl font-bold",children:"Transforme seus processos"}),s.jsx("p",{className:"text-lg font-semibold",children:"Diagnóstico completo em 30 dias"}),s.jsx("p",{className:"text-base",children:"Identificamos gargalos e implementamos automações com retorno mensurável."}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Texto secundário para descrições e metadados"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Texto pequeno para labels e tooltips"})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("p",{className:"text-xs font-mono text-muted-foreground",children:"font-mono — JetBrains Mono"}),s.jsx("div",{className:"border rounded-xl p-4 bg-[#0d1117]",children:s.jsx("pre",{className:"font-mono text-sm text-[#e6edf3]",children:`import { Button } from "@goopti/ui"
|
|
196
|
+
|
|
197
|
+
export default function App() {
|
|
198
|
+
return (
|
|
199
|
+
<Button variant="brand">
|
|
200
|
+
Agendar diagnóstico
|
|
201
|
+
</Button>
|
|
202
|
+
)
|
|
203
|
+
}`})})]})]})]}),s.jsx(Ie,{}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-display text-lg font-semibold",children:"Border Radius"}),s.jsx("p",{className:"text-xs font-mono text-muted-foreground",children:"--radius: 0.625rem (10px)"}),s.jsx("div",{className:"flex flex-wrap gap-4 items-end",children:wv.map(r=>s.jsxs("div",{className:"text-center space-y-2",children:[s.jsx("div",{className:`h-14 w-14 bg-primary/20 border-2 border-primary/40 ${r.class}`}),s.jsx("div",{children:s.jsx("p",{className:"text-xs font-mono font-medium",children:r.name})})]},r.name))})]}),s.jsx(Ie,{}),s.jsxs("section",{className:"space-y-4",children:[s.jsx("h2",{className:"font-display text-lg font-semibold",children:"Espaçamentos"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Base: 4px (0.25rem). Tailwind spacing scale."}),s.jsx("div",{className:"space-y-2",children:[1,2,3,4,5,6,8,10,12,16,20,24].map(r=>s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("p",{className:"text-xs font-mono w-6 text-right text-muted-foreground",children:r}),s.jsx("div",{className:"bg-primary/30 rounded h-4",style:{width:`${r*4}px`}}),s.jsxs("p",{className:"text-xs text-muted-foreground",children:[r*4,"px"]})]},r))})]})]})}const Nu=[{id:"shadcn",title:"Component Showcase",description:"Todos os 30 componentes em ação, com light/dark mode, navegação por seção e visualização de código.",path:"/ui_kits/shadcn/index.html",icon:"component",badge:"Componentes",badgeVariant:"default"},{id:"app",title:"Dashboard App",description:"Protótipo de aplicação de otimização de processos — Dashboard, Processos, Automações, Dados, Integrações.",path:"/ui_kits/app/index.html",icon:"layout-dashboard",badge:"App Protótipo",badgeVariant:"brand"},{id:"website",title:"Website OPTI",description:"Site de marketing com Hero, Serviços, Processo, Cases, CTA e modal de agendamento funcional.",path:"/ui_kits/website/index.html",icon:"globe",badge:"Website",badgeVariant:"success"}];function kv(){const[e,t]=g.useState(null),n=Nu.find(r=>r.id===e);return s.jsxs("div",{className:"h-full flex flex-col",children:[s.jsxs("div",{className:"px-8 pt-8 pb-4 border-b border-border shrink-0",children:[s.jsx("h1",{className:"font-display text-2xl font-bold",children:"Previews"}),s.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"Protótipos funcionais do design system em contexto real."})]}),e?s.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[s.jsxs("div",{className:"flex items-center justify-between gap-4 px-4 py-2 bg-muted/30 border-b border-border shrink-0",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("button",{onClick:()=>t(null),className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[s.jsx("i",{"data-lucide":"arrow-left",style:{width:15,height:15,display:"inline-flex"}}),"Voltar"]}),s.jsx("span",{className:"text-border",children:"|"}),s.jsx("span",{className:"font-medium text-sm",children:n==null?void 0:n.title}),s.jsx(G,{variant:(n==null?void 0:n.badgeVariant)??"secondary",children:n==null?void 0:n.badge})]}),s.jsxs("a",{href:n==null?void 0:n.path,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[s.jsx("i",{"data-lucide":"external-link",style:{width:13,height:13,display:"inline-flex"}}),"Abrir em nova aba"]})]}),s.jsx("iframe",{src:n==null?void 0:n.path,className:"flex-1 w-full border-0",title:n==null?void 0:n.title})]}):s.jsx("div",{className:"flex-1 overflow-y-auto",children:s.jsxs("div",{className:"p-8 space-y-6 max-w-4xl",children:[s.jsx("div",{className:"grid grid-cols-1 gap-6",children:Nu.map(r=>s.jsxs("div",{className:"group rounded-xl border border-border bg-card overflow-hidden hover:border-primary/30 hover:shadow-md transition-all cursor-pointer",onClick:()=>t(r.id),children:[s.jsx("div",{className:"flex items-start justify-between gap-4 p-5 border-b border-border",children:s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"p-2.5 rounded-lg bg-primary/10 text-primary shrink-0",children:s.jsx("i",{"data-lucide":r.icon,style:{width:20,height:20,display:"inline-flex"}})}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"font-display text-base font-semibold",children:r.title}),s.jsx(G,{variant:r.badgeVariant,children:r.badge})]}),s.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:r.description})]})]})}),s.jsxs("div",{className:"relative h-52 bg-muted overflow-hidden",children:[s.jsx("iframe",{src:r.path,className:"absolute inset-0 w-full h-[600px] border-0 pointer-events-none origin-top-left scale-[0.35]",style:{width:"285%"},title:`${r.title} thumbnail`}),s.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent to-background/60"})]}),s.jsxs("div",{className:"flex items-center justify-between px-5 py-3",children:[s.jsxs("span",{className:"text-sm text-primary group-hover:underline flex items-center gap-1.5",children:[s.jsx("i",{"data-lucide":"play",style:{width:13,height:13,display:"inline-flex"}}),"Abrir preview"]}),s.jsxs("a",{href:r.path,target:"_blank",rel:"noopener noreferrer",onClick:l=>l.stopPropagation(),className:"text-xs text-muted-foreground hover:text-foreground flex items-center gap-1 transition-colors",children:[s.jsx("i",{"data-lucide":"external-link",style:{width:12,height:12,display:"inline-flex"}}),"Nova aba"]})]})]},r.id))}),s.jsxs("div",{className:"rounded-xl border border-border p-5 bg-muted/20",children:[s.jsx("h3",{className:"font-semibold text-sm mb-3",children:"Recursos adicionais"}),s.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:[{label:"README",icon:"book-open",href:"/README.md"},{label:"CHANGELOG",icon:"history",href:"/CHANGELOG.md"},{label:"GitHub",icon:"github",href:"https://github.com/OPTI-Solucoes/goopti-ui"},{label:"npm",icon:"package",href:"https://npmjs.com/package/@goopti/ui"}].map(r=>s.jsxs("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 rounded-lg border px-3 py-2 text-sm hover:bg-accent transition-colors",children:[s.jsx("i",{"data-lucide":r.icon,style:{width:14,height:14,display:"inline-flex"}}),r.label]},r.label))})]})]})})]})}function Nv(){return g.useEffect(()=>{var e;(e=window.lucide)==null||e.createIcons()}),s.jsxs("div",{className:"flex h-full bg-background text-foreground",children:[s.jsx(_g,{}),s.jsx("main",{className:"flex-1 overflow-y-auto",children:s.jsxs(Xh,{children:[s.jsx(st,{path:"/",element:s.jsx(fv,{})}),s.jsx(st,{path:"/components/buttons",element:s.jsx(pv,{})}),s.jsx(st,{path:"/components/form",element:s.jsx(mv,{})}),s.jsx(st,{path:"/components/cards",element:s.jsx(hv,{})}),s.jsx(st,{path:"/components/overlays",element:s.jsx(gv,{})}),s.jsx(st,{path:"/components/pickers",element:s.jsx(yv,{})}),s.jsx(st,{path:"/tokens",element:s.jsx(jv,{})}),s.jsx(st,{path:"/previews",element:s.jsx(kv,{})})]})})]})}Xo.createRoot(document.getElementById("root")).render(s.jsx(Bf.StrictMode,{children:s.jsx(wg,{children:s.jsx(Nv,{})})}));
|