forge-openclaw-plugin 0.2.20 → 0.2.21

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.
Files changed (33) hide show
  1. package/dist/assets/{board-DGbXWEuu.js → board-_C6oMy5w.js} +2 -2
  2. package/dist/assets/{board-DGbXWEuu.js.map → board-_C6oMy5w.js.map} +1 -1
  3. package/dist/assets/index-B4A6TooJ.js +63 -0
  4. package/dist/assets/index-B4A6TooJ.js.map +1 -0
  5. package/dist/assets/index-D6Xs_2mo.css +1 -0
  6. package/dist/assets/{motion-B5Qoz2Ci.js → motion-D4sZgCHd.js} +2 -2
  7. package/dist/assets/{motion-B5Qoz2Ci.js.map → motion-D4sZgCHd.js.map} +1 -1
  8. package/dist/assets/{table-D_iurDQu.js → table-BWzTaky1.js} +2 -2
  9. package/dist/assets/{table-D_iurDQu.js.map → table-BWzTaky1.js.map} +1 -1
  10. package/dist/assets/{ui-D5QUYUq4.js → ui-BzK4azQb.js} +2 -2
  11. package/dist/assets/{ui-D5QUYUq4.js.map → ui-BzK4azQb.js.map} +1 -1
  12. package/dist/assets/vendor-De38P6YR.js +729 -0
  13. package/dist/assets/vendor-De38P6YR.js.map +1 -0
  14. package/dist/assets/{viz-BD9WSxHz.js → viz-C6hfyqzu.js} +2 -2
  15. package/dist/assets/{viz-BD9WSxHz.js.map → viz-C6hfyqzu.js.map} +1 -1
  16. package/dist/index.html +8 -8
  17. package/dist/server/app.js +301 -19
  18. package/dist/server/health.js +82 -21
  19. package/dist/server/managers/platform/background-job-manager.js +103 -8
  20. package/dist/server/managers/platform/llm-manager.js +91 -5
  21. package/dist/server/managers/platform/openai-responses-provider.js +683 -70
  22. package/dist/server/repositories/diagnostic-logs.js +243 -0
  23. package/dist/server/repositories/wiki-memory.js +595 -62
  24. package/dist/server/types.js +56 -0
  25. package/openclaw.plugin.json +1 -1
  26. package/package.json +1 -1
  27. package/server/migrations/023_diagnostic_logs.sql +28 -0
  28. package/skills/forge-openclaw/SKILL.md +14 -0
  29. package/dist/assets/index-4-1WI9i7.css +0 -1
  30. package/dist/assets/index-BZbHajNK.js +0 -63
  31. package/dist/assets/index-BZbHajNK.js.map +0 -1
  32. package/dist/assets/vendor-KARp8LAR.js +0 -706
  33. package/dist/assets/vendor-KARp8LAR.js.map +0 -1
@@ -1,706 +0,0 @@
1
- var t4=Object.defineProperty;var Ib=e=>{throw TypeError(e)};var n4=(e,t,i)=>t in e?t4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var Uy=(e,t,i)=>n4(e,typeof t!="symbol"?t+"":t,i),Hy=(e,t,i)=>t.has(e)||Ib("Cannot "+i);var V=(e,t,i)=>(Hy(e,t,"read from private field"),i?i.call(e):t.get(e)),Le=(e,t,i)=>t.has(e)?Ib("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),Se=(e,t,i,a)=>(Hy(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),Ze=(e,t,i)=>(Hy(e,t,"access private method"),i);var rf=(e,t,i,a)=>({set _(l){Se(e,t,l,i)},get _(){return V(e,t,a)}});import{s as rd,p as qx,z as Vx,d as Px,i as r4,a as qy,b as Vy,t as i4}from"./viz-BD9WSxHz.js";function a4(e,t){for(var i=0;i<t.length;i++){const a=t[i];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in e)){const o=Object.getOwnPropertyDescriptor(a,l);o&&Object.defineProperty(e,l,o.get?o:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Py={exports:{}},Yo={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var $b;function s4(){if($b)return Yo;$b=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(a,l,o){var c=null;if(o!==void 0&&(c=""+o),l.key!==void 0&&(c=""+l.key),"key"in l){o={};for(var f in l)f!=="key"&&(o[f]=l[f])}else o=l;return l=o.ref,{$$typeof:e,type:a,key:c,ref:l!==void 0?l:null,props:o}}return Yo.Fragment=t,Yo.jsx=i,Yo.jsxs=i,Yo}var Yb;function l4(){return Yb||(Yb=1,Py.exports=s4()),Py.exports}var se=l4(),Iy={exports:{}},Pe={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Fb;function o4(){if(Fb)return Pe;Fb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),v=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=v&&O[v]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function C(O,P,ae){this.props=O,this.context=P,this.refs=w,this.updater=ae||S}C.prototype.isReactComponent={},C.prototype.setState=function(O,P){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,P,"setState")},C.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function M(){}M.prototype=C.prototype;function E(O,P,ae){this.props=O,this.context=P,this.refs=w,this.updater=ae||S}var k=E.prototype=new M;k.constructor=E,_(k,C.prototype),k.isPureReactComponent=!0;var z=Array.isArray;function N(){}var D={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function L(O,P,ae){var ue=ae.ref;return{$$typeof:e,type:O,key:P,ref:ue!==void 0?ue:null,props:ae}}function Q(O,P){return L(O.type,P,O.props)}function j(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function B(O){var P={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(ae){return P[ae]})}var $=/\/+/g;function G(O,P){return typeof O=="object"&&O!==null&&O.key!=null?B(""+O.key):P.toString(36)}function re(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(N,N):(O.status="pending",O.then(function(P){O.status==="pending"&&(O.status="fulfilled",O.value=P)},function(P){O.status==="pending"&&(O.status="rejected",O.reason=P)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function U(O,P,ae,ue,de){var me=typeof O;(me==="undefined"||me==="boolean")&&(O=null);var be=!1;if(O===null)be=!0;else switch(me){case"bigint":case"string":case"number":be=!0;break;case"object":switch(O.$$typeof){case e:case t:be=!0;break;case g:return be=O._init,U(be(O._payload),P,ae,ue,de)}}if(be)return de=de(O),be=ue===""?"."+G(O,0):ue,z(de)?(ae="",be!=null&&(ae=be.replace($,"$&/")+"/"),U(de,P,ae,"",function(Ue){return Ue})):de!=null&&(j(de)&&(de=Q(de,ae+(de.key==null||O&&O.key===de.key?"":(""+de.key).replace($,"$&/")+"/")+be)),P.push(de)),1;be=0;var ye=ue===""?".":ue+":";if(z(O))for(var he=0;he<O.length;he++)ue=O[he],me=ye+G(ue,he),be+=U(ue,P,ae,me,de);else if(he=b(O),typeof he=="function")for(O=he.call(O),he=0;!(ue=O.next()).done;)ue=ue.value,me=ye+G(ue,he++),be+=U(ue,P,ae,me,de);else if(me==="object"){if(typeof O.then=="function")return U(re(O),P,ae,ue,de);throw P=String(O),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return be}function Y(O,P,ae){if(O==null)return O;var ue=[],de=0;return U(O,ue,"","",function(me){return P.call(ae,me,de++)}),ue}function Z(O){if(O._status===-1){var P=O._result;P=P(),P.then(function(ae){(O._status===0||O._status===-1)&&(O._status=1,O._result=ae)},function(ae){(O._status===0||O._status===-1)&&(O._status=2,O._result=ae)}),O._status===-1&&(O._status=0,O._result=P)}if(O._status===1)return O._result.default;throw O._result}var K=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},J={map:Y,forEach:function(O,P,ae){Y(O,function(){P.apply(this,arguments)},ae)},count:function(O){var P=0;return Y(O,function(){P++}),P},toArray:function(O){return Y(O,function(P){return P})||[]},only:function(O){if(!j(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Pe.Activity=p,Pe.Children=J,Pe.Component=C,Pe.Fragment=i,Pe.Profiler=l,Pe.PureComponent=E,Pe.StrictMode=a,Pe.Suspense=h,Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Pe.__COMPILER_RUNTIME={__proto__:null,c:function(O){return D.H.useMemoCache(O)}},Pe.cache=function(O){return function(){return O.apply(null,arguments)}},Pe.cacheSignal=function(){return null},Pe.cloneElement=function(O,P,ae){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ue=_({},O.props),de=O.key;if(P!=null)for(me in P.key!==void 0&&(de=""+P.key),P)!T.call(P,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&P.ref===void 0||(ue[me]=P[me]);var me=arguments.length-2;if(me===1)ue.children=ae;else if(1<me){for(var be=Array(me),ye=0;ye<me;ye++)be[ye]=arguments[ye+2];ue.children=be}return L(O.type,de,ue)},Pe.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:o,_context:O},O},Pe.createElement=function(O,P,ae){var ue,de={},me=null;if(P!=null)for(ue in P.key!==void 0&&(me=""+P.key),P)T.call(P,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(de[ue]=P[ue]);var be=arguments.length-2;if(be===1)de.children=ae;else if(1<be){for(var ye=Array(be),he=0;he<be;he++)ye[he]=arguments[he+2];de.children=ye}if(O&&O.defaultProps)for(ue in be=O.defaultProps,be)de[ue]===void 0&&(de[ue]=be[ue]);return L(O,me,de)},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(O){return{$$typeof:f,render:O}},Pe.isValidElement=j,Pe.lazy=function(O){return{$$typeof:g,_payload:{_status:-1,_result:O},_init:Z}},Pe.memo=function(O,P){return{$$typeof:y,type:O,compare:P===void 0?null:P}},Pe.startTransition=function(O){var P=D.T,ae={};D.T=ae;try{var ue=O(),de=D.S;de!==null&&de(ae,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(N,K)}catch(me){K(me)}finally{P!==null&&ae.types!==null&&(P.types=ae.types),D.T=P}},Pe.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Pe.use=function(O){return D.H.use(O)},Pe.useActionState=function(O,P,ae){return D.H.useActionState(O,P,ae)},Pe.useCallback=function(O,P){return D.H.useCallback(O,P)},Pe.useContext=function(O){return D.H.useContext(O)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(O,P){return D.H.useDeferredValue(O,P)},Pe.useEffect=function(O,P){return D.H.useEffect(O,P)},Pe.useEffectEvent=function(O){return D.H.useEffectEvent(O)},Pe.useId=function(){return D.H.useId()},Pe.useImperativeHandle=function(O,P,ae){return D.H.useImperativeHandle(O,P,ae)},Pe.useInsertionEffect=function(O,P){return D.H.useInsertionEffect(O,P)},Pe.useLayoutEffect=function(O,P){return D.H.useLayoutEffect(O,P)},Pe.useMemo=function(O,P){return D.H.useMemo(O,P)},Pe.useOptimistic=function(O,P){return D.H.useOptimistic(O,P)},Pe.useReducer=function(O,P,ae){return D.H.useReducer(O,P,ae)},Pe.useRef=function(O){return D.H.useRef(O)},Pe.useState=function(O){return D.H.useState(O)},Pe.useSyncExternalStore=function(O,P,ae){return D.H.useSyncExternalStore(O,P,ae)},Pe.useTransition=function(){return D.H.useTransition()},Pe.version="19.2.4",Pe}var Zb;function Pl(){return Zb||(Zb=1,Iy.exports=o4()),Iy.exports}var R=Pl();const jt=Er(R),n7=a4({__proto__:null,default:jt},[R]);var $y={exports:{}},Fo={},Yy={exports:{}},Fy={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Gb;function u4(){return Gb||(Gb=1,(function(e){function t(U,Y){var Z=U.length;U.push(Y);e:for(;0<Z;){var K=Z-1>>>1,J=U[K];if(0<l(J,Y))U[K]=Y,U[Z]=J,Z=K;else break e}}function i(U){return U.length===0?null:U[0]}function a(U){if(U.length===0)return null;var Y=U[0],Z=U.pop();if(Z!==Y){U[0]=Z;e:for(var K=0,J=U.length,O=J>>>1;K<O;){var P=2*(K+1)-1,ae=U[P],ue=P+1,de=U[ue];if(0>l(ae,Z))ue<J&&0>l(de,ae)?(U[K]=de,U[ue]=Z,K=ue):(U[K]=ae,U[P]=Z,K=P);else if(ue<J&&0>l(de,Z))U[K]=de,U[ue]=Z,K=ue;else break e}}return Y}function l(U,Y){var Z=U.sortIndex-Y.sortIndex;return Z!==0?Z:U.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],y=[],g=1,p=null,v=3,b=!1,S=!1,_=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function k(U){for(var Y=i(y);Y!==null;){if(Y.callback===null)a(y);else if(Y.startTime<=U)a(y),Y.sortIndex=Y.expirationTime,t(h,Y);else break;Y=i(y)}}function z(U){if(_=!1,k(U),!S)if(i(h)!==null)S=!0,N||(N=!0,B());else{var Y=i(y);Y!==null&&re(z,Y.startTime-U)}}var N=!1,D=-1,T=5,L=-1;function Q(){return w?!0:!(e.unstable_now()-L<T)}function j(){if(w=!1,N){var U=e.unstable_now();L=U;var Y=!0;try{e:{S=!1,_&&(_=!1,M(D),D=-1),b=!0;var Z=v;try{t:{for(k(U),p=i(h);p!==null&&!(p.expirationTime>U&&Q());){var K=p.callback;if(typeof K=="function"){p.callback=null,v=p.priorityLevel;var J=K(p.expirationTime<=U);if(U=e.unstable_now(),typeof J=="function"){p.callback=J,k(U),Y=!0;break t}p===i(h)&&a(h),k(U)}else a(h);p=i(h)}if(p!==null)Y=!0;else{var O=i(y);O!==null&&re(z,O.startTime-U),Y=!1}}break e}finally{p=null,v=Z,b=!1}Y=void 0}}finally{Y?B():N=!1}}}var B;if(typeof E=="function")B=function(){E(j)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,G=$.port2;$.port1.onmessage=j,B=function(){G.postMessage(null)}}else B=function(){C(j,0)};function re(U,Y){D=C(function(){U(e.unstable_now())},Y)}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(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(U){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var Z=v;v=Y;try{return U()}finally{v=Z}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(U,Y){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Z=v;v=U;try{return Y()}finally{v=Z}},e.unstable_scheduleCallback=function(U,Y,Z){var K=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?K+Z:K):Z=K,U){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=Z+J,U={id:g++,callback:Y,priorityLevel:U,startTime:Z,expirationTime:J,sortIndex:-1},Z>K?(U.sortIndex=Z,t(y,U),i(h)===null&&U===i(y)&&(_?(M(D),D=-1):_=!0,re(z,Z-K))):(U.sortIndex=J,t(h,U),S||b||(S=!0,N||(N=!0,B()))),U},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(U){var Y=v;return function(){var Z=v;v=Y;try{return U.apply(this,arguments)}finally{v=Z}}}})(Fy)),Fy}var Qb;function c4(){return Qb||(Qb=1,Yy.exports=u4()),Yy.exports}var Zy={exports:{}},dn={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Xb;function f4(){if(Xb)return dn;Xb=1;var e=Pl();function t(h){var y="https://react.dev/errors/"+h;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)y+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},l=Symbol.for("react.portal");function o(h,y,g){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:p==null?null:""+p,children:h,containerInfo:y,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,y){if(h==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,dn.createPortal=function(h,y){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(t(299));return o(h,y,null,g)},dn.flushSync=function(h){var y=c.T,g=a.p;try{if(c.T=null,a.p=2,h)return h()}finally{c.T=y,a.p=g,a.d.f()}},dn.preconnect=function(h,y){typeof h=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,a.d.C(h,y))},dn.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},dn.preinit=function(h,y){if(typeof h=="string"&&y&&typeof y.as=="string"){var g=y.as,p=f(g,y.crossOrigin),v=typeof y.integrity=="string"?y.integrity:void 0,b=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;g==="style"?a.d.S(h,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:p,integrity:v,fetchPriority:b}):g==="script"&&a.d.X(h,{crossOrigin:p,integrity:v,fetchPriority:b,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},dn.preinitModule=function(h,y){if(typeof h=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var g=f(y.as,y.crossOrigin);a.d.M(h,{crossOrigin:g,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&a.d.M(h)},dn.preload=function(h,y){if(typeof h=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var g=y.as,p=f(g,y.crossOrigin);a.d.L(h,g,{crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},dn.preloadModule=function(h,y){if(typeof h=="string")if(y){var g=f(y.as,y.crossOrigin);a.d.m(h,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:g,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else a.d.m(h)},dn.requestFormReset=function(h){a.d.r(h)},dn.unstable_batchedUpdates=function(h,y){return h(y)},dn.useFormState=function(h,y,g){return c.H.useFormState(h,y,g)},dn.useFormStatus=function(){return c.H.useHostTransitionStatus()},dn.version="19.2.4",dn}var Kb;function Ix(){if(Kb)return Zy.exports;Kb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Zy.exports=f4(),Zy.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var Jb;function d4(){if(Jb)return Fo;Jb=1;var e=c4(),t=Pl(),i=Ix();function a(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)r+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function o(n){var r=n,s=n;if(n.alternate)for(;r.return;)r=r.return;else{n=r;do r=n,(r.flags&4098)!==0&&(s=r.return),n=r.return;while(n)}return r.tag===3?s:null}function c(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function h(n){if(o(n)!==n)throw Error(a(188))}function y(n){var r=n.alternate;if(!r){if(r=o(n),r===null)throw Error(a(188));return r!==n?null:n}for(var s=n,u=r;;){var d=s.return;if(d===null)break;var m=d.alternate;if(m===null){if(u=d.return,u!==null){s=u;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===s)return h(d),n;if(m===u)return h(d),r;m=m.sibling}throw Error(a(188))}if(s.return!==u.return)s=d,u=m;else{for(var x=!1,A=d.child;A;){if(A===s){x=!0,s=d,u=m;break}if(A===u){x=!0,u=d,s=m;break}A=A.sibling}if(!x){for(A=m.child;A;){if(A===s){x=!0,s=m,u=d;break}if(A===u){x=!0,u=m,s=d;break}A=A.sibling}if(!x)throw Error(a(189))}}if(s.alternate!==u)throw Error(a(190))}if(s.tag!==3)throw Error(a(188));return s.stateNode.current===s?n:r}function g(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=g(n),r!==null)return r;n=n.sibling}return null}var p=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),E=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(n){return n===null||typeof n!="object"?null:(n=j&&n[j]||n["@@iterator"],typeof n=="function"?n:null)}var $=Symbol.for("react.client.reference");function G(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===$?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case _:return"Fragment";case C:return"Profiler";case w:return"StrictMode";case z:return"Suspense";case N:return"SuspenseList";case L:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case E:return n.displayName||"Context";case M:return(n._context.displayName||"Context")+".Consumer";case k:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case D:return r=n.displayName||null,r!==null?r:G(n.type)||"Memo";case T:r=n._payload,n=n._init;try{return G(n(r))}catch{}}return null}var re=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},K=[],J=-1;function O(n){return{current:n}}function P(n){0>J||(n.current=K[J],K[J]=null,J--)}function ae(n,r){J++,K[J]=n.current,n.current=r}var ue=O(null),de=O(null),me=O(null),be=O(null);function ye(n,r){switch(ae(me,r),ae(de,n),ae(ue,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?db(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=db(r),n=hb(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}P(ue),ae(ue,n)}function he(){P(ue),P(de),P(me)}function Ue(n){n.memoizedState!==null&&ae(be,n);var r=ue.current,s=hb(r,n.type);r!==s&&(ae(de,n),ae(ue,s))}function De(n){de.current===n&&(P(ue),P(de)),be.current===n&&(P(be),Vo._currentValue=Z)}var Re,ze;function qe(n){if(Re===void 0)try{throw Error()}catch(s){var r=s.stack.trim().match(/\n( *(at )?)/);Re=r&&r[1]||"",ze=-1<s.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Re+n+ze}var ut=!1;function Ge(n,r){if(!n||ut)return"";ut=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(ie){var ne=ie}Reflect.construct(n,[],fe)}else{try{fe.call()}catch(ie){ne=ie}n.call(fe.prototype)}}else{try{throw Error()}catch(ie){ne=ie}(fe=n())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(ie){if(ie&&ne&&typeof ie.stack=="string")return[ie.stack,ne.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),x=m[0],A=m[1];if(x&&A){var H=x.split(`
44
- `),ee=A.split(`
45
- `);for(d=u=0;u<H.length&&!H[u].includes("DetermineComponentFrameRoot");)u++;for(;d<ee.length&&!ee[d].includes("DetermineComponentFrameRoot");)d++;if(u===H.length||d===ee.length)for(u=H.length-1,d=ee.length-1;1<=u&&0<=d&&H[u]!==ee[d];)d--;for(;1<=u&&0<=d;u--,d--)if(H[u]!==ee[d]){if(u!==1||d!==1)do if(u--,d--,0>d||H[u]!==ee[d]){var le=`
46
- `+H[u].replace(" at new "," at ");return n.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",n.displayName)),le}while(1<=u&&0<=d);break}}}finally{ut=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?qe(s):""}function Dt(n,r){switch(n.tag){case 26:case 27:case 5:return qe(n.type);case 16:return qe("Lazy");case 13:return n.child!==r&&r!==null?qe("Suspense Fallback"):qe("Suspense");case 19:return qe("SuspenseList");case 0:case 15:return Ge(n.type,!1);case 11:return Ge(n.type.render,!1);case 1:return Ge(n.type,!0);case 31:return qe("Activity");default:return""}}function Dn(n){try{var r="",s=null;do r+=Dt(n,s),s=n,n=n.return;while(n);return r}catch(u){return`
47
- Error generating stack: `+u.message+`
48
- `+u.stack}}var yn=Object.prototype.hasOwnProperty,Qn=e.unstable_scheduleCallback,Xn=e.unstable_cancelCallback,q=e.unstable_shouldYield,X=e.unstable_requestPaint,te=e.unstable_now,_e=e.unstable_getCurrentPriorityLevel,pe=e.unstable_ImmediatePriority,ge=e.unstable_UserBlockingPriority,we=e.unstable_NormalPriority,Ve=e.unstable_LowPriority,We=e.unstable_IdlePriority,rn=e.log,Sn=e.unstable_setDisableYieldValue,Rt=null,an=null;function xn(n){if(typeof rn=="function"&&Sn(n),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(Rt,n)}catch{}}var Qt=Math.clz32?Math.clz32:Xl,Ql=Math.log,Ss=Math.LN2;function Xl(n){return n>>>=0,n===0?32:31-(Ql(n)/Ss|0)|0}var Vr=256,xs=262144,ws=4194304;function Pr(n){var r=n&42;if(r!==0)return r;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Es(n,r,s){var u=n.pendingLanes;if(u===0)return 0;var d=0,m=n.suspendedLanes,x=n.pingedLanes;n=n.warmLanes;var A=u&134217727;return A!==0?(u=A&~m,u!==0?d=Pr(u):(x&=A,x!==0?d=Pr(x):s||(s=A&~n,s!==0&&(d=Pr(s))))):(A=u&~m,A!==0?d=Pr(A):x!==0?d=Pr(x):s||(s=u&~n,s!==0&&(d=Pr(s)))),d===0?0:r!==0&&r!==d&&(r&m)===0&&(m=d&-d,s=r&-r,m>=s||m===32&&(s&4194048)!==0)?r:d}function wa(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function kd(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Du(){var n=ws;return ws<<=1,(ws&62914560)===0&&(ws=4194304),n}function Kl(n){for(var r=[],s=0;31>s;s++)r.push(n);return r}function Ea(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ad(n,r,s,u,d,m){var x=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var A=n.entanglements,H=n.expirationTimes,ee=n.hiddenUpdates;for(s=x&~s;0<s;){var le=31-Qt(s),fe=1<<le;A[le]=0,H[le]=-1;var ne=ee[le];if(ne!==null)for(ee[le]=null,le=0;le<ne.length;le++){var ie=ne[le];ie!==null&&(ie.lane&=-536870913)}s&=~fe}u!==0&&Lu(n,u,0),m!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=m&~(x&~r))}function Lu(n,r,s){n.pendingLanes|=r,n.suspendedLanes&=~r;var u=31-Qt(r);n.entangledLanes|=r,n.entanglements[u]=n.entanglements[u]|1073741824|s&261930}function Bu(n,r){var s=n.entangledLanes|=r;for(n=n.entanglements;s;){var u=31-Qt(s),d=1<<u;d&r|n[u]&r&&(n[u]|=r),s&=~d}}function ju(n,r){var s=r&-r;return s=(s&42)!==0?1:Jl(s),(s&(n.suspendedLanes|r))!==0?0:s}function Jl(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Wl(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Uu(){var n=Y.p;return n!==0?n:(n=window.event,n===void 0?32:Bb(n.type))}function Hu(n,r){var s=Y.p;try{return Y.p=n,r()}finally{Y.p=s}}var Cr=Math.random().toString(36).slice(2),Xt="__reactFiber$"+Cr,fn="__reactProps$"+Cr,Ir="__reactContainer$"+Cr,Cs="__reactEvents$"+Cr,qu="__reactListeners$"+Cr,Td="__reactHandles$"+Cr,Vu="__reactResources$"+Cr,Ca="__reactMarker$"+Cr;function eo(n){delete n[Xt],delete n[fn],delete n[Cs],delete n[qu],delete n[Td]}function wi(n){var r=n[Xt];if(r)return r;for(var s=n.parentNode;s;){if(r=s[Ir]||s[Xt]){if(s=r.alternate,r.child!==null||s!==null&&s.child!==null)for(n=_b(n);n!==null;){if(s=n[Xt])return s;n=_b(n)}return r}n=s,s=n.parentNode}return null}function Ei(n){if(n=n[Xt]||n[Ir]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function Ci(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(a(33))}function Mi(n){var r=n[Vu];return r||(r=n[Vu]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function qt(n){n[Ca]=!0}var Pu=new Set,Iu={};function $r(n,r){ki(n,r),ki(n+"Capture",r)}function ki(n,r){for(Iu[n]=r,n=0;n<r.length;n++)Pu.add(r[n])}var Rd=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),to={},$u={};function Nd(n){return yn.call($u,n)?!0:yn.call(to,n)?!1:Rd.test(n)?$u[n]=!0:(to[n]=!0,!1)}function Ms(n,r,s){if(Nd(r))if(s===null)n.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var u=r.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,""+s)}}function ks(n,r,s){if(s===null)n.removeAttribute(r);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,""+s)}}function fr(n,r,s,u){if(u===null)n.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(r,s,""+u)}}function wn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Yu(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Od(n,r,s){var u=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var d=u.get,m=u.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return d.call(this)},set:function(x){s=""+x,m.call(this,x)}}),Object.defineProperty(n,r,{enumerable:u.enumerable}),{getValue:function(){return s},setValue:function(x){s=""+x},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function Ai(n){if(!n._valueTracker){var r=Yu(n)?"checked":"value";n._valueTracker=Od(n,r,""+n[r])}}function Fu(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var s=r.getValue(),u="";return n&&(u=Yu(n)?n.checked?"true":"false":n.value),n=u,n!==s?(r.setValue(n),!0):!1}function Ma(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var zd=/[\n"\\]/g;function En(n){return n.replace(zd,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function ka(n,r,s,u,d,m,x,A){n.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?n.type=x:n.removeAttribute("type"),r!=null?x==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+wn(r)):n.value!==""+wn(r)&&(n.value=""+wn(r)):x!=="submit"&&x!=="reset"||n.removeAttribute("value"),r!=null?no(n,x,wn(r)):s!=null?no(n,x,wn(s)):u!=null&&n.removeAttribute("value"),d==null&&m!=null&&(n.defaultChecked=!!m),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?n.name=""+wn(A):n.removeAttribute("name")}function Zu(n,r,s,u,d,m,x,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),r!=null||s!=null){if(!(m!=="submit"&&m!=="reset"||r!=null)){Ai(n);return}s=s!=null?""+wn(s):"",r=r!=null?""+wn(r):s,A||r===n.value||(n.value=r),n.defaultValue=r}u=u??d,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=A?n.checked:!!u,n.defaultChecked=!!u,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(n.name=x),Ai(n)}function no(n,r,s){r==="number"&&Ma(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function Yr(n,r,s,u){if(n=n.options,r){r={};for(var d=0;d<s.length;d++)r["$"+s[d]]=!0;for(s=0;s<n.length;s++)d=r.hasOwnProperty("$"+n[s].value),n[s].selected!==d&&(n[s].selected=d),d&&u&&(n[s].defaultSelected=!0)}else{for(s=""+wn(s),r=null,d=0;d<n.length;d++){if(n[d].value===s){n[d].selected=!0,u&&(n[d].defaultSelected=!0);return}r!==null||n[d].disabled||(r=n[d])}r!==null&&(r.selected=!0)}}function l0(n,r,s){if(r!=null&&(r=""+wn(r),r!==n.value&&(n.value=r),s==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=s!=null?""+wn(s):""}function o0(n,r,s,u){if(r==null){if(u!=null){if(s!=null)throw Error(a(92));if(re(u)){if(1<u.length)throw Error(a(93));u=u[0]}s=u}s==null&&(s=""),r=s}s=wn(r),n.defaultValue=s,u=n.textContent,u===s&&u!==""&&u!==null&&(n.value=u),Ai(n)}function As(n,r){if(r){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=r;return}}n.textContent=r}var XC=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function u0(n,r,s){var u=r.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?u?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":u?n.setProperty(r,s):typeof s!="number"||s===0||XC.has(r)?r==="float"?n.cssFloat=s:n[r]=(""+s).trim():n[r]=s+"px"}function c0(n,r,s){if(r!=null&&typeof r!="object")throw Error(a(62));if(n=n.style,s!=null){for(var u in s)!s.hasOwnProperty(u)||r!=null&&r.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var d in r)u=r[d],r.hasOwnProperty(d)&&s[d]!==u&&u0(n,d,u)}else for(var m in r)r.hasOwnProperty(m)&&u0(n,m,r[m])}function Dd(n){if(n.indexOf("-")===-1)return!1;switch(n){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 KC=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),JC=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Gu(n){return JC.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Fr(){}var Ld=null;function Bd(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ts=null,Rs=null;function f0(n){var r=Ei(n);if(r&&(n=r.stateNode)){var s=n[fn]||null;e:switch(n=r.stateNode,r.type){case"input":if(ka(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),r=s.name,s.type==="radio"&&r!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+En(""+r)+'"][type="radio"]'),r=0;r<s.length;r++){var u=s[r];if(u!==n&&u.form===n.form){var d=u[fn]||null;if(!d)throw Error(a(90));ka(u,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<s.length;r++)u=s[r],u.form===n.form&&Fu(u)}break e;case"textarea":l0(n,s.value,s.defaultValue);break e;case"select":r=s.value,r!=null&&Yr(n,!!s.multiple,r,!1)}}}var jd=!1;function d0(n,r,s){if(jd)return n(r,s);jd=!0;try{var u=n(r);return u}finally{if(jd=!1,(Ts!==null||Rs!==null)&&(Lc(),Ts&&(r=Ts,n=Rs,Rs=Ts=null,f0(r),n)))for(r=0;r<n.length;r++)f0(n[r])}}function ro(n,r){var s=n.stateNode;if(s===null)return null;var u=s[fn]||null;if(u===null)return null;s=u[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(a(231,r,typeof s));return s}var Zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ud=!1;if(Zr)try{var io={};Object.defineProperty(io,"passive",{get:function(){Ud=!0}}),window.addEventListener("test",io,io),window.removeEventListener("test",io,io)}catch{Ud=!1}var Ti=null,Hd=null,Qu=null;function h0(){if(Qu)return Qu;var n,r=Hd,s=r.length,u,d="value"in Ti?Ti.value:Ti.textContent,m=d.length;for(n=0;n<s&&r[n]===d[n];n++);var x=s-n;for(u=1;u<=x&&r[s-u]===d[m-u];u++);return Qu=d.slice(n,1<u?1-u:void 0)}function Xu(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function Ku(){return!0}function y0(){return!1}function Cn(n){function r(s,u,d,m,x){this._reactName=s,this._targetInst=d,this.type=u,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var A in n)n.hasOwnProperty(A)&&(s=n[A],this[A]=s?s(m):m[A]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Ku:y0,this.isPropagationStopped=y0,this}return p(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ku)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ku)},persist:function(){},isPersistent:Ku}),r}var Aa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=Cn(Aa),ao=p({},Aa,{view:0,detail:0}),WC=Cn(ao),qd,Vd,so,Wu=p({},ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Id,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==so&&(so&&n.type==="mousemove"?(qd=n.screenX-so.screenX,Vd=n.screenY-so.screenY):Vd=qd=0,so=n),qd)},movementY:function(n){return"movementY"in n?n.movementY:Vd}}),m0=Cn(Wu),eM=p({},Wu,{dataTransfer:0}),tM=Cn(eM),nM=p({},ao,{relatedTarget:0}),Pd=Cn(nM),rM=p({},Aa,{animationName:0,elapsedTime:0,pseudoElement:0}),iM=Cn(rM),aM=p({},Aa,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),sM=Cn(aM),lM=p({},Aa,{data:0}),p0=Cn(lM),oM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uM={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"},cM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fM(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=cM[n])?!!r[n]:!1}function Id(){return fM}var dM=p({},ao,{key:function(n){if(n.key){var r=oM[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=Xu(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?uM[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Id,charCode:function(n){return n.type==="keypress"?Xu(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Xu(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),hM=Cn(dM),yM=p({},Wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),g0=Cn(yM),mM=p({},ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Id}),pM=Cn(mM),gM=p({},Aa,{propertyName:0,elapsedTime:0,pseudoElement:0}),vM=Cn(gM),bM=p({},Wu,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),_M=Cn(bM),SM=p({},Aa,{newState:0,oldState:0}),xM=Cn(SM),wM=[9,13,27,32],$d=Zr&&"CompositionEvent"in window,lo=null;Zr&&"documentMode"in document&&(lo=document.documentMode);var EM=Zr&&"TextEvent"in window&&!lo,v0=Zr&&(!$d||lo&&8<lo&&11>=lo),b0=" ",_0=!1;function S0(n,r){switch(n){case"keyup":return wM.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function x0(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ns=!1;function CM(n,r){switch(n){case"compositionend":return x0(r);case"keypress":return r.which!==32?null:(_0=!0,b0);case"textInput":return n=r.data,n===b0&&_0?null:n;default:return null}}function MM(n,r){if(Ns)return n==="compositionend"||!$d&&S0(n,r)?(n=h0(),Qu=Hd=Ti=null,Ns=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return v0&&r.locale!=="ko"?null:r.data;default:return null}}var kM={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 w0(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!kM[n.type]:r==="textarea"}function E0(n,r,s,u){Ts?Rs?Rs.push(u):Rs=[u]:Ts=u,r=Pc(r,"onChange"),0<r.length&&(s=new Ju("onChange","change",null,s,u),n.push({event:s,listeners:r}))}var oo=null,uo=null;function AM(n){sb(n,0)}function ec(n){var r=Ci(n);if(Fu(r))return n}function C0(n,r){if(n==="change")return r}var M0=!1;if(Zr){var Yd;if(Zr){var Fd="oninput"in document;if(!Fd){var k0=document.createElement("div");k0.setAttribute("oninput","return;"),Fd=typeof k0.oninput=="function"}Yd=Fd}else Yd=!1;M0=Yd&&(!document.documentMode||9<document.documentMode)}function A0(){oo&&(oo.detachEvent("onpropertychange",T0),uo=oo=null)}function T0(n){if(n.propertyName==="value"&&ec(uo)){var r=[];E0(r,uo,n,Bd(n)),d0(AM,r)}}function TM(n,r,s){n==="focusin"?(A0(),oo=r,uo=s,oo.attachEvent("onpropertychange",T0)):n==="focusout"&&A0()}function RM(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ec(uo)}function NM(n,r){if(n==="click")return ec(r)}function OM(n,r){if(n==="input"||n==="change")return ec(r)}function zM(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var Ln=typeof Object.is=="function"?Object.is:zM;function co(n,r){if(Ln(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var s=Object.keys(n),u=Object.keys(r);if(s.length!==u.length)return!1;for(u=0;u<s.length;u++){var d=s[u];if(!yn.call(r,d)||!Ln(n[d],r[d]))return!1}return!0}function R0(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function N0(n,r){var s=R0(n);n=0;for(var u;s;){if(s.nodeType===3){if(u=n+s.textContent.length,n<=r&&u>=r)return{node:s,offset:r-n};n=u}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=R0(s)}}function O0(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?O0(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function z0(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Ma(n.document);r instanceof n.HTMLIFrameElement;){try{var s=typeof r.contentWindow.location.href=="string"}catch{s=!1}if(s)n=r.contentWindow;else break;r=Ma(n.document)}return r}function Zd(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var DM=Zr&&"documentMode"in document&&11>=document.documentMode,Os=null,Gd=null,fo=null,Qd=!1;function D0(n,r,s){var u=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Qd||Os==null||Os!==Ma(u)||(u=Os,"selectionStart"in u&&Zd(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),fo&&co(fo,u)||(fo=u,u=Pc(Gd,"onSelect"),0<u.length&&(r=new Ju("onSelect","select",null,r,s),n.push({event:r,listeners:u}),r.target=Os)))}function Ta(n,r){var s={};return s[n.toLowerCase()]=r.toLowerCase(),s["Webkit"+n]="webkit"+r,s["Moz"+n]="moz"+r,s}var zs={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},Xd={},L0={};Zr&&(L0=document.createElement("div").style,"AnimationEvent"in window||(delete zs.animationend.animation,delete zs.animationiteration.animation,delete zs.animationstart.animation),"TransitionEvent"in window||delete zs.transitionend.transition);function Ra(n){if(Xd[n])return Xd[n];if(!zs[n])return n;var r=zs[n],s;for(s in r)if(r.hasOwnProperty(s)&&s in L0)return Xd[n]=r[s];return n}var B0=Ra("animationend"),j0=Ra("animationiteration"),U0=Ra("animationstart"),LM=Ra("transitionrun"),BM=Ra("transitionstart"),jM=Ra("transitioncancel"),H0=Ra("transitionend"),q0=new Map,Kd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Kd.push("scrollEnd");function dr(n,r){q0.set(n,r),$r(r,[n])}var tc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Kn=[],Ds=0,Jd=0;function nc(){for(var n=Ds,r=Jd=Ds=0;r<n;){var s=Kn[r];Kn[r++]=null;var u=Kn[r];Kn[r++]=null;var d=Kn[r];Kn[r++]=null;var m=Kn[r];if(Kn[r++]=null,u!==null&&d!==null){var x=u.pending;x===null?d.next=d:(d.next=x.next,x.next=d),u.pending=d}m!==0&&V0(s,d,m)}}function rc(n,r,s,u){Kn[Ds++]=n,Kn[Ds++]=r,Kn[Ds++]=s,Kn[Ds++]=u,Jd|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function Wd(n,r,s,u){return rc(n,r,s,u),ic(n)}function Na(n,r){return rc(n,null,null,r),ic(n)}function V0(n,r,s){n.lanes|=s;var u=n.alternate;u!==null&&(u.lanes|=s);for(var d=!1,m=n.return;m!==null;)m.childLanes|=s,u=m.alternate,u!==null&&(u.childLanes|=s),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(d=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,d&&r!==null&&(d=31-Qt(s),n=m.hiddenUpdates,u=n[d],u===null?n[d]=[r]:u.push(r),r.lane=s|536870912),m):null}function ic(n){if(50<Do)throw Do=0,oy=null,Error(a(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var Ls={};function UM(n,r,s,u){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bn(n,r,s,u){return new UM(n,r,s,u)}function eh(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Gr(n,r){var s=n.alternate;return s===null?(s=Bn(n.tag,r,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=r,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,r=n.dependencies,s.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function P0(n,r){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,r=s.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function ac(n,r,s,u,d,m){var x=0;if(u=n,typeof n=="function")eh(n)&&(x=1);else if(typeof n=="string")x=I3(n,s,ue.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case L:return n=Bn(31,s,r,d),n.elementType=L,n.lanes=m,n;case _:return Oa(s.children,d,m,r);case w:x=8,d|=24;break;case C:return n=Bn(12,s,r,d|2),n.elementType=C,n.lanes=m,n;case z:return n=Bn(13,s,r,d),n.elementType=z,n.lanes=m,n;case N:return n=Bn(19,s,r,d),n.elementType=N,n.lanes=m,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:x=10;break e;case M:x=9;break e;case k:x=11;break e;case D:x=14;break e;case T:x=16,u=null;break e}x=29,s=Error(a(130,n===null?"null":typeof n,"")),u=null}return r=Bn(x,s,r,d),r.elementType=n,r.type=u,r.lanes=m,r}function Oa(n,r,s,u){return n=Bn(7,n,u,r),n.lanes=s,n}function th(n,r,s){return n=Bn(6,n,null,r),n.lanes=s,n}function I0(n){var r=Bn(18,null,null,0);return r.stateNode=n,r}function nh(n,r,s){return r=Bn(4,n.children!==null?n.children:[],n.key,r),r.lanes=s,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var $0=new WeakMap;function Jn(n,r){if(typeof n=="object"&&n!==null){var s=$0.get(n);return s!==void 0?s:(r={value:n,source:r,stack:Dn(r)},$0.set(n,r),r)}return{value:n,source:r,stack:Dn(r)}}var Bs=[],js=0,sc=null,ho=0,Wn=[],er=0,Ri=null,Mr=1,kr="";function Qr(n,r){Bs[js++]=ho,Bs[js++]=sc,sc=n,ho=r}function Y0(n,r,s){Wn[er++]=Mr,Wn[er++]=kr,Wn[er++]=Ri,Ri=n;var u=Mr;n=kr;var d=32-Qt(u)-1;u&=~(1<<d),s+=1;var m=32-Qt(r)+d;if(30<m){var x=d-d%5;m=(u&(1<<x)-1).toString(32),u>>=x,d-=x,Mr=1<<32-Qt(r)+d|s<<d|u,kr=m+n}else Mr=1<<m|s<<d|u,kr=n}function rh(n){n.return!==null&&(Qr(n,1),Y0(n,1,0))}function ih(n){for(;n===sc;)sc=Bs[--js],Bs[js]=null,ho=Bs[--js],Bs[js]=null;for(;n===Ri;)Ri=Wn[--er],Wn[er]=null,kr=Wn[--er],Wn[er]=null,Mr=Wn[--er],Wn[er]=null}function F0(n,r){Wn[er++]=Mr,Wn[er++]=kr,Wn[er++]=Ri,Mr=r.id,kr=r.overflow,Ri=n}var sn=null,_t=null,nt=!1,Ni=null,tr=!1,ah=Error(a(519));function Oi(n){var r=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yo(Jn(r,n)),ah}function Z0(n){var r=n.stateNode,s=n.type,u=n.memoizedProps;switch(r[Xt]=n,r[fn]=u,s){case"dialog":Je("cancel",r),Je("close",r);break;case"iframe":case"object":case"embed":Je("load",r);break;case"video":case"audio":for(s=0;s<Bo.length;s++)Je(Bo[s],r);break;case"source":Je("error",r);break;case"img":case"image":case"link":Je("error",r),Je("load",r);break;case"details":Je("toggle",r);break;case"input":Je("invalid",r),Zu(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Je("invalid",r);break;case"textarea":Je("invalid",r),o0(r,u.value,u.defaultValue,u.children)}s=u.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||r.textContent===""+s||u.suppressHydrationWarning===!0||cb(r.textContent,s)?(u.popover!=null&&(Je("beforetoggle",r),Je("toggle",r)),u.onScroll!=null&&Je("scroll",r),u.onScrollEnd!=null&&Je("scrollend",r),u.onClick!=null&&(r.onclick=Fr),r=!0):r=!1,r||Oi(n,!0)}function G0(n){for(sn=n.return;sn;)switch(sn.tag){case 5:case 31:case 13:tr=!1;return;case 27:case 3:tr=!0;return;default:sn=sn.return}}function Us(n){if(n!==sn)return!1;if(!nt)return G0(n),nt=!0,!1;var r=n.tag,s;if((s=r!==3&&r!==27)&&((s=r===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||wy(n.type,n.memoizedProps)),s=!s),s&&_t&&Oi(n),G0(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));_t=bb(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(317));_t=bb(n)}else r===27?(r=_t,Fi(n.type)?(n=Ay,Ay=null,_t=n):_t=r):_t=sn?rr(n.stateNode.nextSibling):null;return!0}function za(){_t=sn=null,nt=!1}function sh(){var n=Ni;return n!==null&&(Tn===null?Tn=n:Tn.push.apply(Tn,n),Ni=null),n}function yo(n){Ni===null?Ni=[n]:Ni.push(n)}var lh=O(null),Da=null,Xr=null;function zi(n,r,s){ae(lh,r._currentValue),r._currentValue=s}function Kr(n){n._currentValue=lh.current,P(lh)}function oh(n,r,s){for(;n!==null;){var u=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,u!==null&&(u.childLanes|=r)):u!==null&&(u.childLanes&r)!==r&&(u.childLanes|=r),n===s)break;n=n.return}}function uh(n,r,s,u){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var m=d.dependencies;if(m!==null){var x=d.child;m=m.firstContext;e:for(;m!==null;){var A=m;m=d;for(var H=0;H<r.length;H++)if(A.context===r[H]){m.lanes|=s,A=m.alternate,A!==null&&(A.lanes|=s),oh(m.return,s,n),u||(x=null);break e}m=A.next}}else if(d.tag===18){if(x=d.return,x===null)throw Error(a(341));x.lanes|=s,m=x.alternate,m!==null&&(m.lanes|=s),oh(x,s,n),x=null}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===n){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}}function Hs(n,r,s,u){n=null;for(var d=r,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var x=d.alternate;if(x===null)throw Error(a(387));if(x=x.memoizedProps,x!==null){var A=d.type;Ln(d.pendingProps.value,x.value)||(n!==null?n.push(A):n=[A])}}else if(d===be.current){if(x=d.alternate,x===null)throw Error(a(387));x.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(Vo):n=[Vo])}d=d.return}n!==null&&uh(r,n,s,u),r.flags|=262144}function lc(n){for(n=n.firstContext;n!==null;){if(!Ln(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function La(n){Da=n,Xr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function ln(n){return Q0(Da,n)}function oc(n,r){return Da===null&&La(n),Q0(n,r)}function Q0(n,r){var s=r._currentValue;if(r={context:r,memoizedValue:s,next:null},Xr===null){if(n===null)throw Error(a(308));Xr=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else Xr=Xr.next=r;return s}var HM=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(s,u){n.push(u)}};this.abort=function(){r.aborted=!0,n.forEach(function(s){return s()})}},qM=e.unstable_scheduleCallback,VM=e.unstable_NormalPriority,Vt={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ch(){return{controller:new HM,data:new Map,refCount:0}}function mo(n){n.refCount--,n.refCount===0&&qM(VM,function(){n.controller.abort()})}var po=null,fh=0,qs=0,Vs=null;function PM(n,r){if(po===null){var s=po=[];fh=0,qs=yy(),Vs={status:"pending",value:void 0,then:function(u){s.push(u)}}}return fh++,r.then(X0,X0),r}function X0(){if(--fh===0&&po!==null){Vs!==null&&(Vs.status="fulfilled");var n=po;po=null,qs=0,Vs=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function IM(n,r){var s=[],u={status:"pending",value:null,reason:null,then:function(d){s.push(d)}};return n.then(function(){u.status="fulfilled",u.value=r;for(var d=0;d<s.length;d++)(0,s[d])(r)},function(d){for(u.status="rejected",u.reason=d,d=0;d<s.length;d++)(0,s[d])(void 0)}),u}var K0=U.S;U.S=function(n,r){Dv=te(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&PM(n,r),K0!==null&&K0(n,r)};var Ba=O(null);function dh(){var n=Ba.current;return n!==null?n:vt.pooledCache}function uc(n,r){r===null?ae(Ba,Ba.current):ae(Ba,r.pool)}function J0(){var n=dh();return n===null?null:{parent:Vt._currentValue,pool:n}}var Ps=Error(a(460)),hh=Error(a(474)),cc=Error(a(542)),fc={then:function(){}};function W0(n){return n=n.status,n==="fulfilled"||n==="rejected"}function e1(n,r,s){switch(s=n[s],s===void 0?n.push(r):s!==r&&(r.then(Fr,Fr),r=s),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,n1(n),n;default:if(typeof r.status=="string")r.then(Fr,Fr);else{if(n=vt,n!==null&&100<n.shellSuspendCounter)throw Error(a(482));n=r,n.status="pending",n.then(function(u){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=u}},function(u){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=u}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,n1(n),n}throw Ua=r,Ps}}function ja(n){try{var r=n._init;return r(n._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Ua=s,Ps):s}}var Ua=null;function t1(){if(Ua===null)throw Error(a(459));var n=Ua;return Ua=null,n}function n1(n){if(n===Ps||n===cc)throw Error(a(483))}var Is=null,go=0;function dc(n){var r=go;return go+=1,Is===null&&(Is=[]),e1(Is,n,r)}function vo(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function hc(n,r){throw r.$$typeof===v?Error(a(525)):(n=Object.prototype.toString.call(r),Error(a(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function r1(n){function r(F,I){if(n){var W=F.deletions;W===null?(F.deletions=[I],F.flags|=16):W.push(I)}}function s(F,I){if(!n)return null;for(;I!==null;)r(F,I),I=I.sibling;return null}function u(F){for(var I=new Map;F!==null;)F.key!==null?I.set(F.key,F):I.set(F.index,F),F=F.sibling;return I}function d(F,I){return F=Gr(F,I),F.index=0,F.sibling=null,F}function m(F,I,W){return F.index=W,n?(W=F.alternate,W!==null?(W=W.index,W<I?(F.flags|=67108866,I):W):(F.flags|=67108866,I)):(F.flags|=1048576,I)}function x(F){return n&&F.alternate===null&&(F.flags|=67108866),F}function A(F,I,W,oe){return I===null||I.tag!==6?(I=th(W,F.mode,oe),I.return=F,I):(I=d(I,W),I.return=F,I)}function H(F,I,W,oe){var Be=W.type;return Be===_?le(F,I,W.props.children,oe,W.key):I!==null&&(I.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===T&&ja(Be)===I.type)?(I=d(I,W.props),vo(I,W),I.return=F,I):(I=ac(W.type,W.key,W.props,null,F.mode,oe),vo(I,W),I.return=F,I)}function ee(F,I,W,oe){return I===null||I.tag!==4||I.stateNode.containerInfo!==W.containerInfo||I.stateNode.implementation!==W.implementation?(I=nh(W,F.mode,oe),I.return=F,I):(I=d(I,W.children||[]),I.return=F,I)}function le(F,I,W,oe,Be){return I===null||I.tag!==7?(I=Oa(W,F.mode,oe,Be),I.return=F,I):(I=d(I,W),I.return=F,I)}function fe(F,I,W){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=th(""+I,F.mode,W),I.return=F,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return W=ac(I.type,I.key,I.props,null,F.mode,W),vo(W,I),W.return=F,W;case S:return I=nh(I,F.mode,W),I.return=F,I;case T:return I=ja(I),fe(F,I,W)}if(re(I)||B(I))return I=Oa(I,F.mode,W,null),I.return=F,I;if(typeof I.then=="function")return fe(F,dc(I),W);if(I.$$typeof===E)return fe(F,oc(F,I),W);hc(F,I)}return null}function ne(F,I,W,oe){var Be=I!==null?I.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return Be!==null?null:A(F,I,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case b:return W.key===Be?H(F,I,W,oe):null;case S:return W.key===Be?ee(F,I,W,oe):null;case T:return W=ja(W),ne(F,I,W,oe)}if(re(W)||B(W))return Be!==null?null:le(F,I,W,oe,null);if(typeof W.then=="function")return ne(F,I,dc(W),oe);if(W.$$typeof===E)return ne(F,I,oc(F,W),oe);hc(F,W)}return null}function ie(F,I,W,oe,Be){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return F=F.get(W)||null,A(I,F,""+oe,Be);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case b:return F=F.get(oe.key===null?W:oe.key)||null,H(I,F,oe,Be);case S:return F=F.get(oe.key===null?W:oe.key)||null,ee(I,F,oe,Be);case T:return oe=ja(oe),ie(F,I,W,oe,Be)}if(re(oe)||B(oe))return F=F.get(W)||null,le(I,F,oe,Be,null);if(typeof oe.then=="function")return ie(F,I,W,dc(oe),Be);if(oe.$$typeof===E)return ie(F,I,W,oc(I,oe),Be);hc(I,oe)}return null}function Ce(F,I,W,oe){for(var Be=null,st=null,Ne=I,Fe=I=0,tt=null;Ne!==null&&Fe<W.length;Fe++){Ne.index>Fe?(tt=Ne,Ne=null):tt=Ne.sibling;var lt=ne(F,Ne,W[Fe],oe);if(lt===null){Ne===null&&(Ne=tt);break}n&&Ne&&lt.alternate===null&&r(F,Ne),I=m(lt,I,Fe),st===null?Be=lt:st.sibling=lt,st=lt,Ne=tt}if(Fe===W.length)return s(F,Ne),nt&&Qr(F,Fe),Be;if(Ne===null){for(;Fe<W.length;Fe++)Ne=fe(F,W[Fe],oe),Ne!==null&&(I=m(Ne,I,Fe),st===null?Be=Ne:st.sibling=Ne,st=Ne);return nt&&Qr(F,Fe),Be}for(Ne=u(Ne);Fe<W.length;Fe++)tt=ie(Ne,F,Fe,W[Fe],oe),tt!==null&&(n&&tt.alternate!==null&&Ne.delete(tt.key===null?Fe:tt.key),I=m(tt,I,Fe),st===null?Be=tt:st.sibling=tt,st=tt);return n&&Ne.forEach(function(Ki){return r(F,Ki)}),nt&&Qr(F,Fe),Be}function He(F,I,W,oe){if(W==null)throw Error(a(151));for(var Be=null,st=null,Ne=I,Fe=I=0,tt=null,lt=W.next();Ne!==null&&!lt.done;Fe++,lt=W.next()){Ne.index>Fe?(tt=Ne,Ne=null):tt=Ne.sibling;var Ki=ne(F,Ne,lt.value,oe);if(Ki===null){Ne===null&&(Ne=tt);break}n&&Ne&&Ki.alternate===null&&r(F,Ne),I=m(Ki,I,Fe),st===null?Be=Ki:st.sibling=Ki,st=Ki,Ne=tt}if(lt.done)return s(F,Ne),nt&&Qr(F,Fe),Be;if(Ne===null){for(;!lt.done;Fe++,lt=W.next())lt=fe(F,lt.value,oe),lt!==null&&(I=m(lt,I,Fe),st===null?Be=lt:st.sibling=lt,st=lt);return nt&&Qr(F,Fe),Be}for(Ne=u(Ne);!lt.done;Fe++,lt=W.next())lt=ie(Ne,F,Fe,lt.value,oe),lt!==null&&(n&&lt.alternate!==null&&Ne.delete(lt.key===null?Fe:lt.key),I=m(lt,I,Fe),st===null?Be=lt:st.sibling=lt,st=lt);return n&&Ne.forEach(function(e4){return r(F,e4)}),nt&&Qr(F,Fe),Be}function pt(F,I,W,oe){if(typeof W=="object"&&W!==null&&W.type===_&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case b:e:{for(var Be=W.key;I!==null;){if(I.key===Be){if(Be=W.type,Be===_){if(I.tag===7){s(F,I.sibling),oe=d(I,W.props.children),oe.return=F,F=oe;break e}}else if(I.elementType===Be||typeof Be=="object"&&Be!==null&&Be.$$typeof===T&&ja(Be)===I.type){s(F,I.sibling),oe=d(I,W.props),vo(oe,W),oe.return=F,F=oe;break e}s(F,I);break}else r(F,I);I=I.sibling}W.type===_?(oe=Oa(W.props.children,F.mode,oe,W.key),oe.return=F,F=oe):(oe=ac(W.type,W.key,W.props,null,F.mode,oe),vo(oe,W),oe.return=F,F=oe)}return x(F);case S:e:{for(Be=W.key;I!==null;){if(I.key===Be)if(I.tag===4&&I.stateNode.containerInfo===W.containerInfo&&I.stateNode.implementation===W.implementation){s(F,I.sibling),oe=d(I,W.children||[]),oe.return=F,F=oe;break e}else{s(F,I);break}else r(F,I);I=I.sibling}oe=nh(W,F.mode,oe),oe.return=F,F=oe}return x(F);case T:return W=ja(W),pt(F,I,W,oe)}if(re(W))return Ce(F,I,W,oe);if(B(W)){if(Be=B(W),typeof Be!="function")throw Error(a(150));return W=Be.call(W),He(F,I,W,oe)}if(typeof W.then=="function")return pt(F,I,dc(W),oe);if(W.$$typeof===E)return pt(F,I,oc(F,W),oe);hc(F,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,I!==null&&I.tag===6?(s(F,I.sibling),oe=d(I,W),oe.return=F,F=oe):(s(F,I),oe=th(W,F.mode,oe),oe.return=F,F=oe),x(F)):s(F,I)}return function(F,I,W,oe){try{go=0;var Be=pt(F,I,W,oe);return Is=null,Be}catch(Ne){if(Ne===Ps||Ne===cc)throw Ne;var st=Bn(29,Ne,null,F.mode);return st.lanes=oe,st.return=F,st}finally{}}}var Ha=r1(!0),i1=r1(!1),Di=!1;function yh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mh(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Li(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Bi(n,r,s){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(ct&2)!==0){var d=u.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),u.pending=r,r=ic(n),V0(n,null,s),r}return rc(n,u,r,s),ic(n)}function bo(n,r,s){if(r=r.updateQueue,r!==null&&(r=r.shared,(s&4194048)!==0)){var u=r.lanes;u&=n.pendingLanes,s|=u,r.lanes=s,Bu(n,s)}}function ph(n,r){var s=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,s===u)){var d=null,m=null;if(s=s.firstBaseUpdate,s!==null){do{var x={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};m===null?d=m=x:m=m.next=x,s=s.next}while(s!==null);m===null?d=m=r:m=m.next=r}else d=m=r;s={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=r:n.next=r,s.lastBaseUpdate=r}var gh=!1;function _o(){if(gh){var n=Vs;if(n!==null)throw n}}function So(n,r,s,u){gh=!1;var d=n.updateQueue;Di=!1;var m=d.firstBaseUpdate,x=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var H=A,ee=H.next;H.next=null,x===null?m=ee:x.next=ee,x=H;var le=n.alternate;le!==null&&(le=le.updateQueue,A=le.lastBaseUpdate,A!==x&&(A===null?le.firstBaseUpdate=ee:A.next=ee,le.lastBaseUpdate=H))}if(m!==null){var fe=d.baseState;x=0,le=ee=H=null,A=m;do{var ne=A.lane&-536870913,ie=ne!==A.lane;if(ie?(et&ne)===ne:(u&ne)===ne){ne!==0&&ne===qs&&(gh=!0),le!==null&&(le=le.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Ce=n,He=A;ne=r;var pt=s;switch(He.tag){case 1:if(Ce=He.payload,typeof Ce=="function"){fe=Ce.call(pt,fe,ne);break e}fe=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=He.payload,ne=typeof Ce=="function"?Ce.call(pt,fe,ne):Ce,ne==null)break e;fe=p({},fe,ne);break e;case 2:Di=!0}}ne=A.callback,ne!==null&&(n.flags|=64,ie&&(n.flags|=8192),ie=d.callbacks,ie===null?d.callbacks=[ne]:ie.push(ne))}else ie={lane:ne,tag:A.tag,payload:A.payload,callback:A.callback,next:null},le===null?(ee=le=ie,H=fe):le=le.next=ie,x|=ne;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;ie=A,A=ie.next,ie.next=null,d.lastBaseUpdate=ie,d.shared.pending=null}}while(!0);le===null&&(H=fe),d.baseState=H,d.firstBaseUpdate=ee,d.lastBaseUpdate=le,m===null&&(d.shared.lanes=0),Vi|=x,n.lanes=x,n.memoizedState=fe}}function a1(n,r){if(typeof n!="function")throw Error(a(191,n));n.call(r)}function s1(n,r){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)a1(s[n],r)}var $s=O(null),yc=O(0);function l1(n,r){n=si,ae(yc,n),ae($s,r),si=n|r.baseLanes}function vh(){ae(yc,si),ae($s,$s.current)}function bh(){si=yc.current,P($s),P(yc)}var jn=O(null),nr=null;function ji(n){var r=n.alternate;ae(Lt,Lt.current&1),ae(jn,n),nr===null&&(r===null||$s.current!==null||r.memoizedState!==null)&&(nr=n)}function _h(n){ae(Lt,Lt.current),ae(jn,n),nr===null&&(nr=n)}function o1(n){n.tag===22?(ae(Lt,Lt.current),ae(jn,n),nr===null&&(nr=n)):Ui()}function Ui(){ae(Lt,Lt.current),ae(jn,jn.current)}function Un(n){P(jn),nr===n&&(nr=null),P(Lt)}var Lt=O(0);function mc(n){for(var r=n;r!==null;){if(r.tag===13){var s=r.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||My(s)||ky(s)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Jr=0,Ye=null,yt=null,Pt=null,pc=!1,Ys=!1,qa=!1,gc=0,xo=0,Fs=null,$M=0;function Nt(){throw Error(a(321))}function Sh(n,r){if(r===null)return!1;for(var s=0;s<r.length&&s<n.length;s++)if(!Ln(n[s],r[s]))return!1;return!0}function xh(n,r,s,u,d,m){return Jr=m,Ye=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,U.H=n===null||n.memoizedState===null?Y1:jh,qa=!1,m=s(u,d),qa=!1,Ys&&(m=c1(r,s,u,d)),u1(n),m}function u1(n){U.H=Co;var r=yt!==null&&yt.next!==null;if(Jr=0,Pt=yt=Ye=null,pc=!1,xo=0,Fs=null,r)throw Error(a(300));n===null||It||(n=n.dependencies,n!==null&&lc(n)&&(It=!0))}function c1(n,r,s,u){Ye=n;var d=0;do{if(Ys&&(Fs=null),xo=0,Ys=!1,25<=d)throw Error(a(301));if(d+=1,Pt=yt=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}U.H=F1,m=r(s,u)}while(Ys);return m}function YM(){var n=U.H,r=n.useState()[0];return r=typeof r.then=="function"?wo(r):r,n=n.useState()[0],(yt!==null?yt.memoizedState:null)!==n&&(Ye.flags|=1024),r}function wh(){var n=gc!==0;return gc=0,n}function Eh(n,r,s){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~s}function Ch(n){if(pc){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}pc=!1}Jr=0,Pt=yt=Ye=null,Ys=!1,xo=gc=0,Fs=null}function mn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?Ye.memoizedState=Pt=n:Pt=Pt.next=n,Pt}function Bt(){if(yt===null){var n=Ye.alternate;n=n!==null?n.memoizedState:null}else n=yt.next;var r=Pt===null?Ye.memoizedState:Pt.next;if(r!==null)Pt=r,yt=n;else{if(n===null)throw Ye.alternate===null?Error(a(467)):Error(a(310));yt=n,n={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Pt===null?Ye.memoizedState=Pt=n:Pt=Pt.next=n}return Pt}function vc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wo(n){var r=xo;return xo+=1,Fs===null&&(Fs=[]),n=e1(Fs,n,r),r=Ye,(Pt===null?r.memoizedState:Pt.next)===null&&(r=r.alternate,U.H=r===null||r.memoizedState===null?Y1:jh),n}function bc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return wo(n);if(n.$$typeof===E)return ln(n)}throw Error(a(438,String(n)))}function Mh(n){var r=null,s=Ye.updateQueue;if(s!==null&&(r=s.memoCache),r==null){var u=Ye.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(r={data:u.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),s===null&&(s=vc(),Ye.updateQueue=s),s.memoCache=r,s=r.data[r.index],s===void 0)for(s=r.data[r.index]=Array(n),u=0;u<n;u++)s[u]=Q;return r.index++,s}function Wr(n,r){return typeof r=="function"?r(n):r}function _c(n){var r=Bt();return kh(r,yt,n)}function kh(n,r,s){var u=n.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=s;var d=n.baseQueue,m=u.pending;if(m!==null){if(d!==null){var x=d.next;d.next=m.next,m.next=x}r.baseQueue=d=m,u.pending=null}if(m=n.baseState,d===null)n.memoizedState=m;else{r=d.next;var A=x=null,H=null,ee=r,le=!1;do{var fe=ee.lane&-536870913;if(fe!==ee.lane?(et&fe)===fe:(Jr&fe)===fe){var ne=ee.revertLane;if(ne===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),fe===qs&&(le=!0);else if((Jr&ne)===ne){ee=ee.next,ne===qs&&(le=!0);continue}else fe={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(A=H=fe,x=m):H=H.next=fe,Ye.lanes|=ne,Vi|=ne;fe=ee.action,qa&&s(m,fe),m=ee.hasEagerState?ee.eagerState:s(m,fe)}else ne={lane:fe,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},H===null?(A=H=ne,x=m):H=H.next=ne,Ye.lanes|=fe,Vi|=fe;ee=ee.next}while(ee!==null&&ee!==r);if(H===null?x=m:H.next=A,!Ln(m,n.memoizedState)&&(It=!0,le&&(s=Vs,s!==null)))throw s;n.memoizedState=m,n.baseState=x,n.baseQueue=H,u.lastRenderedState=m}return d===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function Ah(n){var r=Bt(),s=r.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=n;var u=s.dispatch,d=s.pending,m=r.memoizedState;if(d!==null){s.pending=null;var x=d=d.next;do m=n(m,x.action),x=x.next;while(x!==d);Ln(m,r.memoizedState)||(It=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),s.lastRenderedState=m}return[m,u]}function f1(n,r,s){var u=Ye,d=Bt(),m=nt;if(m){if(s===void 0)throw Error(a(407));s=s()}else s=r();var x=!Ln((yt||d).memoizedState,s);if(x&&(d.memoizedState=s,It=!0),d=d.queue,Nh(y1.bind(null,u,d,n),[n]),d.getSnapshot!==r||x||Pt!==null&&Pt.memoizedState.tag&1){if(u.flags|=2048,Zs(9,{destroy:void 0},h1.bind(null,u,d,s,r),null),vt===null)throw Error(a(349));m||(Jr&127)!==0||d1(u,r,s)}return s}function d1(n,r,s){n.flags|=16384,n={getSnapshot:r,value:s},r=Ye.updateQueue,r===null?(r=vc(),Ye.updateQueue=r,r.stores=[n]):(s=r.stores,s===null?r.stores=[n]:s.push(n))}function h1(n,r,s,u){r.value=s,r.getSnapshot=u,m1(r)&&p1(n)}function y1(n,r,s){return s(function(){m1(r)&&p1(n)})}function m1(n){var r=n.getSnapshot;n=n.value;try{var s=r();return!Ln(n,s)}catch{return!0}}function p1(n){var r=Na(n,2);r!==null&&Rn(r,n,2)}function Th(n){var r=mn();if(typeof n=="function"){var s=n;if(n=s(),qa){xn(!0);try{s()}finally{xn(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:n},r}function g1(n,r,s,u){return n.baseState=s,kh(n,yt,typeof u=="function"?u:Wr)}function FM(n,r,s,u,d){if(wc(n))throw Error(a(485));if(n=r.action,n!==null){var m={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){m.listeners.push(x)}};U.T!==null?s(!0):m.isTransition=!1,u(m),s=r.pending,s===null?(m.next=r.pending=m,v1(r,m)):(m.next=s.next,r.pending=s.next=m)}}function v1(n,r){var s=r.action,u=r.payload,d=n.state;if(r.isTransition){var m=U.T,x={};U.T=x;try{var A=s(d,u),H=U.S;H!==null&&H(x,A),b1(n,r,A)}catch(ee){Rh(n,r,ee)}finally{m!==null&&x.types!==null&&(m.types=x.types),U.T=m}}else try{m=s(d,u),b1(n,r,m)}catch(ee){Rh(n,r,ee)}}function b1(n,r,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(u){_1(n,r,u)},function(u){return Rh(n,r,u)}):_1(n,r,s)}function _1(n,r,s){r.status="fulfilled",r.value=s,S1(r),n.state=s,r=n.pending,r!==null&&(s=r.next,s===r?n.pending=null:(s=s.next,r.next=s,v1(n,s)))}function Rh(n,r,s){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=s,S1(r),r=r.next;while(r!==u)}n.action=null}function S1(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function x1(n,r){return r}function w1(n,r){if(nt){var s=vt.formState;if(s!==null){e:{var u=Ye;if(nt){if(_t){t:{for(var d=_t,m=tr;d.nodeType!==8;){if(!m){d=null;break t}if(d=rr(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){_t=rr(d.nextSibling),u=d.data==="F!";break e}}Oi(u)}u=!1}u&&(r=s[0])}}return s=mn(),s.memoizedState=s.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:x1,lastRenderedState:r},s.queue=u,s=P1.bind(null,Ye,u),u.dispatch=s,u=Th(!1),m=Bh.bind(null,Ye,!1,u.queue),u=mn(),d={state:r,dispatch:null,action:n,pending:null},u.queue=d,s=FM.bind(null,Ye,d,m,s),d.dispatch=s,u.memoizedState=n,[r,s,!1]}function E1(n){var r=Bt();return C1(r,yt,n)}function C1(n,r,s){if(r=kh(n,r,x1)[0],n=_c(Wr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=wo(r)}catch(x){throw x===Ps?cc:x}else u=r;r=Bt();var d=r.queue,m=d.dispatch;return s!==r.memoizedState&&(Ye.flags|=2048,Zs(9,{destroy:void 0},ZM.bind(null,d,s),null)),[u,m,n]}function ZM(n,r){n.action=r}function M1(n){var r=Bt(),s=yt;if(s!==null)return C1(r,s,n);Bt(),r=r.memoizedState,s=Bt();var u=s.queue.dispatch;return s.memoizedState=n,[r,u,!1]}function Zs(n,r,s,u){return n={tag:n,create:s,deps:u,inst:r,next:null},r=Ye.updateQueue,r===null&&(r=vc(),Ye.updateQueue=r),s=r.lastEffect,s===null?r.lastEffect=n.next=n:(u=s.next,s.next=n,n.next=u,r.lastEffect=n),n}function k1(){return Bt().memoizedState}function Sc(n,r,s,u){var d=mn();Ye.flags|=n,d.memoizedState=Zs(1|r,{destroy:void 0},s,u===void 0?null:u)}function xc(n,r,s,u){var d=Bt();u=u===void 0?null:u;var m=d.memoizedState.inst;yt!==null&&u!==null&&Sh(u,yt.memoizedState.deps)?d.memoizedState=Zs(r,m,s,u):(Ye.flags|=n,d.memoizedState=Zs(1|r,m,s,u))}function A1(n,r){Sc(8390656,8,n,r)}function Nh(n,r){xc(2048,8,n,r)}function GM(n){Ye.flags|=4;var r=Ye.updateQueue;if(r===null)r=vc(),Ye.updateQueue=r,r.events=[n];else{var s=r.events;s===null?r.events=[n]:s.push(n)}}function T1(n){var r=Bt().memoizedState;return GM({ref:r,nextImpl:n}),function(){if((ct&2)!==0)throw Error(a(440));return r.impl.apply(void 0,arguments)}}function R1(n,r){return xc(4,2,n,r)}function N1(n,r){return xc(4,4,n,r)}function O1(n,r){if(typeof r=="function"){n=n();var s=r(n);return function(){typeof s=="function"?s():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function z1(n,r,s){s=s!=null?s.concat([n]):null,xc(4,4,O1.bind(null,r,n),s)}function Oh(){}function D1(n,r){var s=Bt();r=r===void 0?null:r;var u=s.memoizedState;return r!==null&&Sh(r,u[1])?u[0]:(s.memoizedState=[n,r],n)}function L1(n,r){var s=Bt();r=r===void 0?null:r;var u=s.memoizedState;if(r!==null&&Sh(r,u[1]))return u[0];if(u=n(),qa){xn(!0);try{n()}finally{xn(!1)}}return s.memoizedState=[u,r],u}function zh(n,r,s){return s===void 0||(Jr&1073741824)!==0&&(et&261930)===0?n.memoizedState=r:(n.memoizedState=s,n=Bv(),Ye.lanes|=n,Vi|=n,s)}function B1(n,r,s,u){return Ln(s,r)?s:$s.current!==null?(n=zh(n,s,u),Ln(n,r)||(It=!0),n):(Jr&42)===0||(Jr&1073741824)!==0&&(et&261930)===0?(It=!0,n.memoizedState=s):(n=Bv(),Ye.lanes|=n,Vi|=n,r)}function j1(n,r,s,u,d){var m=Y.p;Y.p=m!==0&&8>m?m:8;var x=U.T,A={};U.T=A,Bh(n,!1,r,s);try{var H=d(),ee=U.S;if(ee!==null&&ee(A,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var le=IM(H,u);Eo(n,r,le,Vn(n))}else Eo(n,r,u,Vn(n))}catch(fe){Eo(n,r,{then:function(){},status:"rejected",reason:fe},Vn())}finally{Y.p=m,x!==null&&A.types!==null&&(x.types=A.types),U.T=x}}function QM(){}function Dh(n,r,s,u){if(n.tag!==5)throw Error(a(476));var d=U1(n).queue;j1(n,d,r,Z,s===null?QM:function(){return H1(n),s(u)})}function U1(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:Z},next:null};var s={};return r.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wr,lastRenderedState:s},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function H1(n){var r=U1(n);r.next===null&&(r=n.alternate.memoizedState),Eo(n,r.next.queue,{},Vn())}function Lh(){return ln(Vo)}function q1(){return Bt().memoizedState}function V1(){return Bt().memoizedState}function XM(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var s=Vn();n=Li(s);var u=Bi(r,n,s);u!==null&&(Rn(u,r,s),bo(u,r,s)),r={cache:ch()},n.payload=r;return}r=r.return}}function KM(n,r,s){var u=Vn();s={lane:u,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},wc(n)?I1(r,s):(s=Wd(n,r,s,u),s!==null&&(Rn(s,n,u),$1(s,r,u)))}function P1(n,r,s){var u=Vn();Eo(n,r,s,u)}function Eo(n,r,s,u){var d={lane:u,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(wc(n))I1(r,d);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var x=r.lastRenderedState,A=m(x,s);if(d.hasEagerState=!0,d.eagerState=A,Ln(A,x))return rc(n,r,d,0),vt===null&&nc(),!1}catch{}finally{}if(s=Wd(n,r,d,u),s!==null)return Rn(s,n,u),$1(s,r,u),!0}return!1}function Bh(n,r,s,u){if(u={lane:2,revertLane:yy(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},wc(n)){if(r)throw Error(a(479))}else r=Wd(n,s,u,2),r!==null&&Rn(r,n,2)}function wc(n){var r=n.alternate;return n===Ye||r!==null&&r===Ye}function I1(n,r){Ys=pc=!0;var s=n.pending;s===null?r.next=r:(r.next=s.next,s.next=r),n.pending=r}function $1(n,r,s){if((s&4194048)!==0){var u=r.lanes;u&=n.pendingLanes,s|=u,r.lanes=s,Bu(n,s)}}var Co={readContext:ln,use:bc,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};Co.useEffectEvent=Nt;var Y1={readContext:ln,use:bc,useCallback:function(n,r){return mn().memoizedState=[n,r===void 0?null:r],n},useContext:ln,useEffect:A1,useImperativeHandle:function(n,r,s){s=s!=null?s.concat([n]):null,Sc(4194308,4,O1.bind(null,r,n),s)},useLayoutEffect:function(n,r){return Sc(4194308,4,n,r)},useInsertionEffect:function(n,r){Sc(4,2,n,r)},useMemo:function(n,r){var s=mn();r=r===void 0?null:r;var u=n();if(qa){xn(!0);try{n()}finally{xn(!1)}}return s.memoizedState=[u,r],u},useReducer:function(n,r,s){var u=mn();if(s!==void 0){var d=s(r);if(qa){xn(!0);try{s(r)}finally{xn(!1)}}}else d=r;return u.memoizedState=u.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},u.queue=n,n=n.dispatch=KM.bind(null,Ye,n),[u.memoizedState,n]},useRef:function(n){var r=mn();return n={current:n},r.memoizedState=n},useState:function(n){n=Th(n);var r=n.queue,s=P1.bind(null,Ye,r);return r.dispatch=s,[n.memoizedState,s]},useDebugValue:Oh,useDeferredValue:function(n,r){var s=mn();return zh(s,n,r)},useTransition:function(){var n=Th(!1);return n=j1.bind(null,Ye,n.queue,!0,!1),mn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,s){var u=Ye,d=mn();if(nt){if(s===void 0)throw Error(a(407));s=s()}else{if(s=r(),vt===null)throw Error(a(349));(et&127)!==0||d1(u,r,s)}d.memoizedState=s;var m={value:s,getSnapshot:r};return d.queue=m,A1(y1.bind(null,u,m,n),[n]),u.flags|=2048,Zs(9,{destroy:void 0},h1.bind(null,u,m,s,r),null),s},useId:function(){var n=mn(),r=vt.identifierPrefix;if(nt){var s=kr,u=Mr;s=(u&~(1<<32-Qt(u)-1)).toString(32)+s,r="_"+r+"R_"+s,s=gc++,0<s&&(r+="H"+s.toString(32)),r+="_"}else s=$M++,r="_"+r+"r_"+s.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:Lh,useFormState:w1,useActionState:w1,useOptimistic:function(n){var r=mn();r.memoizedState=r.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=s,r=Bh.bind(null,Ye,!0,s),s.dispatch=r,[n,r]},useMemoCache:Mh,useCacheRefresh:function(){return mn().memoizedState=XM.bind(null,Ye)},useEffectEvent:function(n){var r=mn(),s={impl:n};return r.memoizedState=s,function(){if((ct&2)!==0)throw Error(a(440));return s.impl.apply(void 0,arguments)}}},jh={readContext:ln,use:bc,useCallback:D1,useContext:ln,useEffect:Nh,useImperativeHandle:z1,useInsertionEffect:R1,useLayoutEffect:N1,useMemo:L1,useReducer:_c,useRef:k1,useState:function(){return _c(Wr)},useDebugValue:Oh,useDeferredValue:function(n,r){var s=Bt();return B1(s,yt.memoizedState,n,r)},useTransition:function(){var n=_c(Wr)[0],r=Bt().memoizedState;return[typeof n=="boolean"?n:wo(n),r]},useSyncExternalStore:f1,useId:q1,useHostTransitionStatus:Lh,useFormState:E1,useActionState:E1,useOptimistic:function(n,r){var s=Bt();return g1(s,yt,n,r)},useMemoCache:Mh,useCacheRefresh:V1};jh.useEffectEvent=T1;var F1={readContext:ln,use:bc,useCallback:D1,useContext:ln,useEffect:Nh,useImperativeHandle:z1,useInsertionEffect:R1,useLayoutEffect:N1,useMemo:L1,useReducer:Ah,useRef:k1,useState:function(){return Ah(Wr)},useDebugValue:Oh,useDeferredValue:function(n,r){var s=Bt();return yt===null?zh(s,n,r):B1(s,yt.memoizedState,n,r)},useTransition:function(){var n=Ah(Wr)[0],r=Bt().memoizedState;return[typeof n=="boolean"?n:wo(n),r]},useSyncExternalStore:f1,useId:q1,useHostTransitionStatus:Lh,useFormState:M1,useActionState:M1,useOptimistic:function(n,r){var s=Bt();return yt!==null?g1(s,yt,n,r):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:Mh,useCacheRefresh:V1};F1.useEffectEvent=T1;function Uh(n,r,s,u){r=n.memoizedState,s=s(u,r),s=s==null?r:p({},r,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var Hh={enqueueSetState:function(n,r,s){n=n._reactInternals;var u=Vn(),d=Li(u);d.payload=r,s!=null&&(d.callback=s),r=Bi(n,d,u),r!==null&&(Rn(r,n,u),bo(r,n,u))},enqueueReplaceState:function(n,r,s){n=n._reactInternals;var u=Vn(),d=Li(u);d.tag=1,d.payload=r,s!=null&&(d.callback=s),r=Bi(n,d,u),r!==null&&(Rn(r,n,u),bo(r,n,u))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var s=Vn(),u=Li(s);u.tag=2,r!=null&&(u.callback=r),r=Bi(n,u,s),r!==null&&(Rn(r,n,s),bo(r,n,s))}};function Z1(n,r,s,u,d,m,x){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,m,x):r.prototype&&r.prototype.isPureReactComponent?!co(s,u)||!co(d,m):!0}function G1(n,r,s,u){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(s,u),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(s,u),r.state!==n&&Hh.enqueueReplaceState(r,r.state,null)}function Va(n,r){var s=r;if("ref"in r){s={};for(var u in r)u!=="ref"&&(s[u]=r[u])}if(n=n.defaultProps){s===r&&(s=p({},s));for(var d in n)s[d]===void 0&&(s[d]=n[d])}return s}function Q1(n){tc(n)}function X1(n){console.error(n)}function K1(n){tc(n)}function Ec(n,r){try{var s=n.onUncaughtError;s(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function J1(n,r,s){try{var u=n.onCaughtError;u(s.value,{componentStack:s.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function qh(n,r,s){return s=Li(s),s.tag=3,s.payload={element:null},s.callback=function(){Ec(n,r)},s}function W1(n){return n=Li(n),n.tag=3,n}function ev(n,r,s,u){var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var m=u.value;n.payload=function(){return d(m)},n.callback=function(){J1(r,s,u)}}var x=s.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(n.callback=function(){J1(r,s,u),typeof d!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var A=u.stack;this.componentDidCatch(u.value,{componentStack:A!==null?A:""})})}function JM(n,r,s,u,d){if(s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=s.alternate,r!==null&&Hs(r,s,d,!0),s=jn.current,s!==null){switch(s.tag){case 31:case 13:return nr===null?Bc():s.alternate===null&&Ot===0&&(Ot=3),s.flags&=-257,s.flags|=65536,s.lanes=d,u===fc?s.flags|=16384:(r=s.updateQueue,r===null?s.updateQueue=new Set([u]):r.add(u),fy(n,u,d)),!1;case 22:return s.flags|=65536,u===fc?s.flags|=16384:(r=s.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([u])},s.updateQueue=r):(s=r.retryQueue,s===null?r.retryQueue=new Set([u]):s.add(u)),fy(n,u,d)),!1}throw Error(a(435,s.tag))}return fy(n,u,d),Bc(),!1}if(nt)return r=jn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,u!==ah&&(n=Error(a(422),{cause:u}),yo(Jn(n,s)))):(u!==ah&&(r=Error(a(423),{cause:u}),yo(Jn(r,s))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,u=Jn(u,s),d=qh(n.stateNode,u,d),ph(n,d),Ot!==4&&(Ot=2)),!1;var m=Error(a(520),{cause:u});if(m=Jn(m,s),zo===null?zo=[m]:zo.push(m),Ot!==4&&(Ot=2),r===null)return!0;u=Jn(u,s),s=r;do{switch(s.tag){case 3:return s.flags|=65536,n=d&-d,s.lanes|=n,n=qh(s.stateNode,u,n),ph(s,n),!1;case 1:if(r=s.type,m=s.stateNode,(s.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Pi===null||!Pi.has(m))))return s.flags|=65536,d&=-d,s.lanes|=d,d=W1(d),ev(d,n,s,u),ph(s,d),!1}s=s.return}while(s!==null);return!1}var Vh=Error(a(461)),It=!1;function on(n,r,s,u){r.child=n===null?i1(r,null,s,u):Ha(r,n.child,s,u)}function tv(n,r,s,u,d){s=s.render;var m=r.ref;if("ref"in u){var x={};for(var A in u)A!=="ref"&&(x[A]=u[A])}else x=u;return La(r),u=xh(n,r,s,x,m,d),A=wh(),n!==null&&!It?(Eh(n,r,d),ei(n,r,d)):(nt&&A&&rh(r),r.flags|=1,on(n,r,u,d),r.child)}function nv(n,r,s,u,d){if(n===null){var m=s.type;return typeof m=="function"&&!eh(m)&&m.defaultProps===void 0&&s.compare===null?(r.tag=15,r.type=m,rv(n,r,m,u,d)):(n=ac(s.type,null,u,r,r.mode,d),n.ref=r.ref,n.return=r,r.child=n)}if(m=n.child,!Qh(n,d)){var x=m.memoizedProps;if(s=s.compare,s=s!==null?s:co,s(x,u)&&n.ref===r.ref)return ei(n,r,d)}return r.flags|=1,n=Gr(m,u),n.ref=r.ref,n.return=r,r.child=n}function rv(n,r,s,u,d){if(n!==null){var m=n.memoizedProps;if(co(m,u)&&n.ref===r.ref)if(It=!1,r.pendingProps=u=m,Qh(n,d))(n.flags&131072)!==0&&(It=!0);else return r.lanes=n.lanes,ei(n,r,d)}return Ph(n,r,s,u,d)}function iv(n,r,s,u){var d=u.children,m=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((r.flags&128)!==0){if(m=m!==null?m.baseLanes|s:s,n!==null){for(u=r.child=n.child,d=0;u!==null;)d=d|u.lanes|u.childLanes,u=u.sibling;u=d&~m}else u=0,r.child=null;return av(n,r,m,s,u)}if((s&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&uc(r,m!==null?m.cachePool:null),m!==null?l1(r,m):vh(),o1(r);else return u=r.lanes=536870912,av(n,r,m!==null?m.baseLanes|s:s,s,u)}else m!==null?(uc(r,m.cachePool),l1(r,m),Ui(),r.memoizedState=null):(n!==null&&uc(r,null),vh(),Ui());return on(n,r,d,s),r.child}function Mo(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function av(n,r,s,u,d){var m=dh();return m=m===null?null:{parent:Vt._currentValue,pool:m},r.memoizedState={baseLanes:s,cachePool:m},n!==null&&uc(r,null),vh(),o1(r),n!==null&&Hs(n,r,u,!0),r.childLanes=d,null}function Cc(n,r){return r=kc({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function sv(n,r,s){return Ha(r,n.child,null,s),n=Cc(r,r.pendingProps),n.flags|=2,Un(r),r.memoizedState=null,n}function WM(n,r,s){var u=r.pendingProps,d=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(nt){if(u.mode==="hidden")return n=Cc(r,u),r.lanes=536870912,Mo(null,n);if(_h(r),(n=_t)?(n=vb(n,tr),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Ri!==null?{id:Mr,overflow:kr}:null,retryLane:536870912,hydrationErrors:null},s=I0(n),s.return=r,r.child=s,sn=r,_t=null)):n=null,n===null)throw Oi(r);return r.lanes=536870912,null}return Cc(r,u)}var m=n.memoizedState;if(m!==null){var x=m.dehydrated;if(_h(r),d)if(r.flags&256)r.flags&=-257,r=sv(n,r,s);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(a(558));else if(It||Hs(n,r,s,!1),d=(s&n.childLanes)!==0,It||d){if(u=vt,u!==null&&(x=ju(u,s),x!==0&&x!==m.retryLane))throw m.retryLane=x,Na(n,x),Rn(u,n,x),Vh;Bc(),r=sv(n,r,s)}else n=m.treeContext,_t=rr(x.nextSibling),sn=r,nt=!0,Ni=null,tr=!1,n!==null&&F0(r,n),r=Cc(r,u),r.flags|=4096;return r}return n=Gr(n.child,{mode:u.mode,children:u.children}),n.ref=r.ref,r.child=n,n.return=r,n}function Mc(n,r){var s=r.ref;if(s===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(a(284));(n===null||n.ref!==s)&&(r.flags|=4194816)}}function Ph(n,r,s,u,d){return La(r),s=xh(n,r,s,u,void 0,d),u=wh(),n!==null&&!It?(Eh(n,r,d),ei(n,r,d)):(nt&&u&&rh(r),r.flags|=1,on(n,r,s,d),r.child)}function lv(n,r,s,u,d,m){return La(r),r.updateQueue=null,s=c1(r,u,s,d),u1(n),u=wh(),n!==null&&!It?(Eh(n,r,m),ei(n,r,m)):(nt&&u&&rh(r),r.flags|=1,on(n,r,s,m),r.child)}function ov(n,r,s,u,d){if(La(r),r.stateNode===null){var m=Ls,x=s.contextType;typeof x=="object"&&x!==null&&(m=ln(x)),m=new s(u,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Hh,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=u,m.state=r.memoizedState,m.refs={},yh(r),x=s.contextType,m.context=typeof x=="object"&&x!==null?ln(x):Ls,m.state=r.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(Uh(r,s,x,u),m.state=r.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(x=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),x!==m.state&&Hh.enqueueReplaceState(m,m.state,null),So(r,u,m,d),_o(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(n===null){m=r.stateNode;var A=r.memoizedProps,H=Va(s,A);m.props=H;var ee=m.context,le=s.contextType;x=Ls,typeof le=="object"&&le!==null&&(x=ln(le));var fe=s.getDerivedStateFromProps;le=typeof fe=="function"||typeof m.getSnapshotBeforeUpdate=="function",A=r.pendingProps!==A,le||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(A||ee!==x)&&G1(r,m,u,x),Di=!1;var ne=r.memoizedState;m.state=ne,So(r,u,m,d),_o(),ee=r.memoizedState,A||ne!==ee||Di?(typeof fe=="function"&&(Uh(r,s,fe,u),ee=r.memoizedState),(H=Di||Z1(r,s,H,u,ne,ee,x))?(le||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=ee),m.props=u,m.state=ee,m.context=x,u=H):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{m=r.stateNode,mh(n,r),x=r.memoizedProps,le=Va(s,x),m.props=le,fe=r.pendingProps,ne=m.context,ee=s.contextType,H=Ls,typeof ee=="object"&&ee!==null&&(H=ln(ee)),A=s.getDerivedStateFromProps,(ee=typeof A=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==fe||ne!==H)&&G1(r,m,u,H),Di=!1,ne=r.memoizedState,m.state=ne,So(r,u,m,d),_o();var ie=r.memoizedState;x!==fe||ne!==ie||Di||n!==null&&n.dependencies!==null&&lc(n.dependencies)?(typeof A=="function"&&(Uh(r,s,A,u),ie=r.memoizedState),(le=Di||Z1(r,s,le,u,ne,ie,H)||n!==null&&n.dependencies!==null&&lc(n.dependencies))?(ee||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,ie,H),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,ie,H)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||x===n.memoizedProps&&ne===n.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&ne===n.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=ie),m.props=u,m.state=ie,m.context=H,u=le):(typeof m.componentDidUpdate!="function"||x===n.memoizedProps&&ne===n.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&ne===n.memoizedState||(r.flags|=1024),u=!1)}return m=u,Mc(n,r),u=(r.flags&128)!==0,m||u?(m=r.stateNode,s=u&&typeof s.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,n!==null&&u?(r.child=Ha(r,n.child,null,d),r.child=Ha(r,null,s,d)):on(n,r,s,d),r.memoizedState=m.state,n=r.child):n=ei(n,r,d),n}function uv(n,r,s,u){return za(),r.flags|=256,on(n,r,s,u),r.child}var Ih={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $h(n){return{baseLanes:n,cachePool:J0()}}function Yh(n,r,s){return n=n!==null?n.childLanes&~s:0,r&&(n|=qn),n}function cv(n,r,s){var u=r.pendingProps,d=!1,m=(r.flags&128)!==0,x;if((x=m)||(x=n!==null&&n.memoizedState===null?!1:(Lt.current&2)!==0),x&&(d=!0,r.flags&=-129),x=(r.flags&32)!==0,r.flags&=-33,n===null){if(nt){if(d?ji(r):Ui(),(n=_t)?(n=vb(n,tr),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Ri!==null?{id:Mr,overflow:kr}:null,retryLane:536870912,hydrationErrors:null},s=I0(n),s.return=r,r.child=s,sn=r,_t=null)):n=null,n===null)throw Oi(r);return ky(n)?r.lanes=32:r.lanes=536870912,null}var A=u.children;return u=u.fallback,d?(Ui(),d=r.mode,A=kc({mode:"hidden",children:A},d),u=Oa(u,d,s,null),A.return=r,u.return=r,A.sibling=u,r.child=A,u=r.child,u.memoizedState=$h(s),u.childLanes=Yh(n,x,s),r.memoizedState=Ih,Mo(null,u)):(ji(r),Fh(r,A))}var H=n.memoizedState;if(H!==null&&(A=H.dehydrated,A!==null)){if(m)r.flags&256?(ji(r),r.flags&=-257,r=Zh(n,r,s)):r.memoizedState!==null?(Ui(),r.child=n.child,r.flags|=128,r=null):(Ui(),A=u.fallback,d=r.mode,u=kc({mode:"visible",children:u.children},d),A=Oa(A,d,s,null),A.flags|=2,u.return=r,A.return=r,u.sibling=A,r.child=u,Ha(r,n.child,null,s),u=r.child,u.memoizedState=$h(s),u.childLanes=Yh(n,x,s),r.memoizedState=Ih,r=Mo(null,u));else if(ji(r),ky(A)){if(x=A.nextSibling&&A.nextSibling.dataset,x)var ee=x.dgst;x=ee,u=Error(a(419)),u.stack="",u.digest=x,yo({value:u,source:null,stack:null}),r=Zh(n,r,s)}else if(It||Hs(n,r,s,!1),x=(s&n.childLanes)!==0,It||x){if(x=vt,x!==null&&(u=ju(x,s),u!==0&&u!==H.retryLane))throw H.retryLane=u,Na(n,u),Rn(x,n,u),Vh;My(A)||Bc(),r=Zh(n,r,s)}else My(A)?(r.flags|=192,r.child=n.child,r=null):(n=H.treeContext,_t=rr(A.nextSibling),sn=r,nt=!0,Ni=null,tr=!1,n!==null&&F0(r,n),r=Fh(r,u.children),r.flags|=4096);return r}return d?(Ui(),A=u.fallback,d=r.mode,H=n.child,ee=H.sibling,u=Gr(H,{mode:"hidden",children:u.children}),u.subtreeFlags=H.subtreeFlags&65011712,ee!==null?A=Gr(ee,A):(A=Oa(A,d,s,null),A.flags|=2),A.return=r,u.return=r,u.sibling=A,r.child=u,Mo(null,u),u=r.child,A=n.child.memoizedState,A===null?A=$h(s):(d=A.cachePool,d!==null?(H=Vt._currentValue,d=d.parent!==H?{parent:H,pool:H}:d):d=J0(),A={baseLanes:A.baseLanes|s,cachePool:d}),u.memoizedState=A,u.childLanes=Yh(n,x,s),r.memoizedState=Ih,Mo(n.child,u)):(ji(r),s=n.child,n=s.sibling,s=Gr(s,{mode:"visible",children:u.children}),s.return=r,s.sibling=null,n!==null&&(x=r.deletions,x===null?(r.deletions=[n],r.flags|=16):x.push(n)),r.child=s,r.memoizedState=null,s)}function Fh(n,r){return r=kc({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function kc(n,r){return n=Bn(22,n,null,r),n.lanes=0,n}function Zh(n,r,s){return Ha(r,n.child,null,s),n=Fh(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function fv(n,r,s){n.lanes|=r;var u=n.alternate;u!==null&&(u.lanes|=r),oh(n.return,r,s)}function Gh(n,r,s,u,d,m){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:s,tailMode:d,treeForkCount:m}:(x.isBackwards=r,x.rendering=null,x.renderingStartTime=0,x.last=u,x.tail=s,x.tailMode=d,x.treeForkCount=m)}function dv(n,r,s){var u=r.pendingProps,d=u.revealOrder,m=u.tail;u=u.children;var x=Lt.current,A=(x&2)!==0;if(A?(x=x&1|2,r.flags|=128):x&=1,ae(Lt,x),on(n,r,u,s),u=nt?ho:0,!A&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&fv(n,s,r);else if(n.tag===19)fv(n,s,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(d){case"forwards":for(s=r.child,d=null;s!==null;)n=s.alternate,n!==null&&mc(n)===null&&(d=s),s=s.sibling;s=d,s===null?(d=r.child,r.child=null):(d=s.sibling,s.sibling=null),Gh(r,!1,d,s,m,u);break;case"backwards":case"unstable_legacy-backwards":for(s=null,d=r.child,r.child=null;d!==null;){if(n=d.alternate,n!==null&&mc(n)===null){r.child=d;break}n=d.sibling,d.sibling=s,s=d,d=n}Gh(r,!0,s,null,m,u);break;case"together":Gh(r,!1,null,null,void 0,u);break;default:r.memoizedState=null}return r.child}function ei(n,r,s){if(n!==null&&(r.dependencies=n.dependencies),Vi|=r.lanes,(s&r.childLanes)===0)if(n!==null){if(Hs(n,r,s,!1),(s&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(a(153));if(r.child!==null){for(n=r.child,s=Gr(n,n.pendingProps),r.child=s,s.return=r;n.sibling!==null;)n=n.sibling,s=s.sibling=Gr(n,n.pendingProps),s.return=r;s.sibling=null}return r.child}function Qh(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&lc(n)))}function e3(n,r,s){switch(r.tag){case 3:ye(r,r.stateNode.containerInfo),zi(r,Vt,n.memoizedState.cache),za();break;case 27:case 5:Ue(r);break;case 4:ye(r,r.stateNode.containerInfo);break;case 10:zi(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,_h(r),null;break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(ji(r),r.flags|=128,null):(s&r.child.childLanes)!==0?cv(n,r,s):(ji(r),n=ei(n,r,s),n!==null?n.sibling:null);ji(r);break;case 19:var d=(n.flags&128)!==0;if(u=(s&r.childLanes)!==0,u||(Hs(n,r,s,!1),u=(s&r.childLanes)!==0),d){if(u)return dv(n,r,s);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ae(Lt,Lt.current),u)break;return null;case 22:return r.lanes=0,iv(n,r,s,r.pendingProps);case 24:zi(r,Vt,n.memoizedState.cache)}return ei(n,r,s)}function hv(n,r,s){if(n!==null)if(n.memoizedProps!==r.pendingProps)It=!0;else{if(!Qh(n,s)&&(r.flags&128)===0)return It=!1,e3(n,r,s);It=(n.flags&131072)!==0}else It=!1,nt&&(r.flags&1048576)!==0&&Y0(r,ho,r.index);switch(r.lanes=0,r.tag){case 16:e:{var u=r.pendingProps;if(n=ja(r.elementType),r.type=n,typeof n=="function")eh(n)?(u=Va(n,u),r.tag=1,r=ov(null,r,n,u,s)):(r.tag=0,r=Ph(null,r,n,u,s));else{if(n!=null){var d=n.$$typeof;if(d===k){r.tag=11,r=tv(null,r,n,u,s);break e}else if(d===D){r.tag=14,r=nv(null,r,n,u,s);break e}}throw r=G(n)||n,Error(a(306,r,""))}}return r;case 0:return Ph(n,r,r.type,r.pendingProps,s);case 1:return u=r.type,d=Va(u,r.pendingProps),ov(n,r,u,d,s);case 3:e:{if(ye(r,r.stateNode.containerInfo),n===null)throw Error(a(387));u=r.pendingProps;var m=r.memoizedState;d=m.element,mh(n,r),So(r,u,null,s);var x=r.memoizedState;if(u=x.cache,zi(r,Vt,u),u!==m.cache&&uh(r,[Vt],s,!0),_o(),u=x.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:x.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=uv(n,r,u,s);break e}else if(u!==d){d=Jn(Error(a(424)),r),yo(d),r=uv(n,r,u,s);break e}else{switch(n=r.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(_t=rr(n.firstChild),sn=r,nt=!0,Ni=null,tr=!0,s=i1(r,null,u,s),r.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(za(),u===d){r=ei(n,r,s);break e}on(n,r,u,s)}r=r.child}return r;case 26:return Mc(n,r),n===null?(s=Eb(r.type,null,r.pendingProps,null))?r.memoizedState=s:nt||(s=r.type,n=r.pendingProps,u=Ic(me.current).createElement(s),u[Xt]=r,u[fn]=n,un(u,s,n),qt(u),r.stateNode=u):r.memoizedState=Eb(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return Ue(r),n===null&&nt&&(u=r.stateNode=Sb(r.type,r.pendingProps,me.current),sn=r,tr=!0,d=_t,Fi(r.type)?(Ay=d,_t=rr(u.firstChild)):_t=d),on(n,r,r.pendingProps.children,s),Mc(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&nt&&((d=u=_t)&&(u=R3(u,r.type,r.pendingProps,tr),u!==null?(r.stateNode=u,sn=r,_t=rr(u.firstChild),tr=!1,d=!0):d=!1),d||Oi(r)),Ue(r),d=r.type,m=r.pendingProps,x=n!==null?n.memoizedProps:null,u=m.children,wy(d,m)?u=null:x!==null&&wy(d,x)&&(r.flags|=32),r.memoizedState!==null&&(d=xh(n,r,YM,null,null,s),Vo._currentValue=d),Mc(n,r),on(n,r,u,s),r.child;case 6:return n===null&&nt&&((n=s=_t)&&(s=N3(s,r.pendingProps,tr),s!==null?(r.stateNode=s,sn=r,_t=null,n=!0):n=!1),n||Oi(r)),null;case 13:return cv(n,r,s);case 4:return ye(r,r.stateNode.containerInfo),u=r.pendingProps,n===null?r.child=Ha(r,null,u,s):on(n,r,u,s),r.child;case 11:return tv(n,r,r.type,r.pendingProps,s);case 7:return on(n,r,r.pendingProps,s),r.child;case 8:return on(n,r,r.pendingProps.children,s),r.child;case 12:return on(n,r,r.pendingProps.children,s),r.child;case 10:return u=r.pendingProps,zi(r,r.type,u.value),on(n,r,u.children,s),r.child;case 9:return d=r.type._context,u=r.pendingProps.children,La(r),d=ln(d),u=u(d),r.flags|=1,on(n,r,u,s),r.child;case 14:return nv(n,r,r.type,r.pendingProps,s);case 15:return rv(n,r,r.type,r.pendingProps,s);case 19:return dv(n,r,s);case 31:return WM(n,r,s);case 22:return iv(n,r,s,r.pendingProps);case 24:return La(r),u=ln(Vt),n===null?(d=dh(),d===null&&(d=vt,m=ch(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=s),d=m),r.memoizedState={parent:u,cache:d},yh(r),zi(r,Vt,d)):((n.lanes&s)!==0&&(mh(n,r),So(r,null,null,s),_o()),d=n.memoizedState,m=r.memoizedState,d.parent!==u?(d={parent:u,cache:u},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),zi(r,Vt,u)):(u=m.cache,zi(r,Vt,u),u!==d.cache&&uh(r,[Vt],s,!0))),on(n,r,r.pendingProps.children,s),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function ti(n){n.flags|=4}function Xh(n,r,s,u,d){if((r=(n.mode&32)!==0)&&(r=!1),r){if(n.flags|=16777216,(d&335544128)===d)if(n.stateNode.complete)n.flags|=8192;else if(qv())n.flags|=8192;else throw Ua=fc,hh}else n.flags&=-16777217}function yv(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Tb(r))if(qv())n.flags|=8192;else throw Ua=fc,hh}function Ac(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?Du():536870912,n.lanes|=r,Ks|=r)}function ko(n,r){if(!nt)switch(n.tailMode){case"hidden":r=n.tail;for(var s=null;r!==null;)r.alternate!==null&&(s=r),r=r.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function St(n){var r=n.alternate!==null&&n.alternate.child===n.child,s=0,u=0;if(r)for(var d=n.child;d!==null;)s|=d.lanes|d.childLanes,u|=d.subtreeFlags&65011712,u|=d.flags&65011712,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)s|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=u,n.childLanes=s,r}function t3(n,r,s){var u=r.pendingProps;switch(ih(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(r),null;case 1:return St(r),null;case 3:return s=r.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),Kr(Vt),he(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(Us(r)?ti(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,sh())),St(r),null;case 26:var d=r.type,m=r.memoizedState;return n===null?(ti(r),m!==null?(St(r),yv(r,m)):(St(r),Xh(r,d,null,u,s))):m?m!==n.memoizedState?(ti(r),St(r),yv(r,m)):(St(r),r.flags&=-16777217):(n=n.memoizedProps,n!==u&&ti(r),St(r),Xh(r,d,n,u,s)),null;case 27:if(De(r),s=me.current,d=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==u&&ti(r);else{if(!u){if(r.stateNode===null)throw Error(a(166));return St(r),null}n=ue.current,Us(r)?Z0(r):(n=Sb(d,u,s),r.stateNode=n,ti(r))}return St(r),null;case 5:if(De(r),d=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==u&&ti(r);else{if(!u){if(r.stateNode===null)throw Error(a(166));return St(r),null}if(m=ue.current,Us(r))Z0(r);else{var x=Ic(me.current);switch(m){case 1:m=x.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:m=x.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":m=x.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":m=x.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":m=x.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?x.createElement("select",{is:u.is}):x.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?x.createElement(d,{is:u.is}):x.createElement(d)}}m[Xt]=r,m[fn]=u;e:for(x=r.child;x!==null;){if(x.tag===5||x.tag===6)m.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===r)break e;for(;x.sibling===null;){if(x.return===null||x.return===r)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}r.stateNode=m;e:switch(un(m,d,u),d){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&ti(r)}}return St(r),Xh(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,s),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==u&&ti(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(a(166));if(n=me.current,Us(r)){if(n=r.stateNode,s=r.memoizedProps,u=null,d=sn,d!==null)switch(d.tag){case 27:case 5:u=d.memoizedProps}n[Xt]=r,n=!!(n.nodeValue===s||u!==null&&u.suppressHydrationWarning===!0||cb(n.nodeValue,s)),n||Oi(r,!0)}else n=Ic(n).createTextNode(u),n[Xt]=r,r.stateNode=n}return St(r),null;case 31:if(s=r.memoizedState,n===null||n.memoizedState!==null){if(u=Us(r),s!==null){if(n===null){if(!u)throw Error(a(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(a(557));n[Xt]=r}else za(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;St(r),n=!1}else s=sh(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=s),n=!0;if(!n)return r.flags&256?(Un(r),r):(Un(r),null);if((r.flags&128)!==0)throw Error(a(558))}return St(r),null;case 13:if(u=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Us(r),u!==null&&u.dehydrated!==null){if(n===null){if(!d)throw Error(a(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[Xt]=r}else za(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;St(r),d=!1}else d=sh(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(Un(r),r):(Un(r),null)}return Un(r),(r.flags&128)!==0?(r.lanes=s,r):(s=u!==null,n=n!==null&&n.memoizedState!==null,s&&(u=r.child,d=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(d=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==d&&(u.flags|=2048)),s!==n&&s&&(r.child.flags|=8192),Ac(r,r.updateQueue),St(r),null);case 4:return he(),n===null&&vy(r.stateNode.containerInfo),St(r),null;case 10:return Kr(r.type),St(r),null;case 19:if(P(Lt),u=r.memoizedState,u===null)return St(r),null;if(d=(r.flags&128)!==0,m=u.rendering,m===null)if(d)ko(u,!1);else{if(Ot!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(m=mc(n),m!==null){for(r.flags|=128,ko(u,!1),n=m.updateQueue,r.updateQueue=n,Ac(r,n),r.subtreeFlags=0,n=s,s=r.child;s!==null;)P0(s,n),s=s.sibling;return ae(Lt,Lt.current&1|2),nt&&Qr(r,u.treeForkCount),r.child}n=n.sibling}u.tail!==null&&te()>zc&&(r.flags|=128,d=!0,ko(u,!1),r.lanes=4194304)}else{if(!d)if(n=mc(m),n!==null){if(r.flags|=128,d=!0,n=n.updateQueue,r.updateQueue=n,Ac(r,n),ko(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!nt)return St(r),null}else 2*te()-u.renderingStartTime>zc&&s!==536870912&&(r.flags|=128,d=!0,ko(u,!1),r.lanes=4194304);u.isBackwards?(m.sibling=r.child,r.child=m):(n=u.last,n!==null?n.sibling=m:r.child=m,u.last=m)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=te(),n.sibling=null,s=Lt.current,ae(Lt,d?s&1|2:s&1),nt&&Qr(r,u.treeForkCount),n):(St(r),null);case 22:case 23:return Un(r),bh(),u=r.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(s&536870912)!==0&&(r.flags&128)===0&&(St(r),r.subtreeFlags&6&&(r.flags|=8192)):St(r),s=r.updateQueue,s!==null&&Ac(r,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==s&&(r.flags|=2048),n!==null&&P(Ba),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),Kr(Vt),St(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function n3(n,r){switch(ih(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return Kr(Vt),he(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return De(r),null;case 31:if(r.memoizedState!==null){if(Un(r),r.alternate===null)throw Error(a(340));za()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Un(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(a(340));za()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return P(Lt),null;case 4:return he(),null;case 10:return Kr(r.type),null;case 22:case 23:return Un(r),bh(),n!==null&&P(Ba),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return Kr(Vt),null;case 25:return null;default:return null}}function mv(n,r){switch(ih(r),r.tag){case 3:Kr(Vt),he();break;case 26:case 27:case 5:De(r);break;case 4:he();break;case 31:r.memoizedState!==null&&Un(r);break;case 13:Un(r);break;case 19:P(Lt);break;case 10:Kr(r.type);break;case 22:case 23:Un(r),bh(),n!==null&&P(Ba);break;case 24:Kr(Vt)}}function Ao(n,r){try{var s=r.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var d=u.next;s=d;do{if((s.tag&n)===n){u=void 0;var m=s.create,x=s.inst;u=m(),x.destroy=u}s=s.next}while(s!==d)}}catch(A){ht(r,r.return,A)}}function Hi(n,r,s){try{var u=r.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var m=d.next;u=m;do{if((u.tag&n)===n){var x=u.inst,A=x.destroy;if(A!==void 0){x.destroy=void 0,d=r;var H=s,ee=A;try{ee()}catch(le){ht(d,H,le)}}}u=u.next}while(u!==m)}}catch(le){ht(r,r.return,le)}}function pv(n){var r=n.updateQueue;if(r!==null){var s=n.stateNode;try{s1(r,s)}catch(u){ht(n,n.return,u)}}}function gv(n,r,s){s.props=Va(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(u){ht(n,r,u)}}function To(n,r){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof s=="function"?n.refCleanup=s(u):s.current=u}}catch(d){ht(n,r,d)}}function Ar(n,r){var s=n.ref,u=n.refCleanup;if(s!==null)if(typeof u=="function")try{u()}catch(d){ht(n,r,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(d){ht(n,r,d)}else s.current=null}function vv(n){var r=n.type,s=n.memoizedProps,u=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":s.autoFocus&&u.focus();break e;case"img":s.src?u.src=s.src:s.srcSet&&(u.srcset=s.srcSet)}}catch(d){ht(n,n.return,d)}}function Kh(n,r,s){try{var u=n.stateNode;E3(u,n.type,s,r),u[fn]=r}catch(d){ht(n,n.return,d)}}function bv(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Fi(n.type)||n.tag===4}function Jh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||bv(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Fi(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Wh(n,r,s){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,r):(r=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,r.appendChild(n),s=s._reactRootContainer,s!=null||r.onclick!==null||(r.onclick=Fr));else if(u!==4&&(u===27&&Fi(n.type)&&(s=n.stateNode,r=null),n=n.child,n!==null))for(Wh(n,r,s),n=n.sibling;n!==null;)Wh(n,r,s),n=n.sibling}function Tc(n,r,s){var u=n.tag;if(u===5||u===6)n=n.stateNode,r?s.insertBefore(n,r):s.appendChild(n);else if(u!==4&&(u===27&&Fi(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(Tc(n,r,s),n=n.sibling;n!==null;)Tc(n,r,s),n=n.sibling}function _v(n){var r=n.stateNode,s=n.memoizedProps;try{for(var u=n.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);un(r,u,s),r[Xt]=n,r[fn]=s}catch(m){ht(n,n.return,m)}}var ni=!1,$t=!1,ey=!1,Sv=typeof WeakSet=="function"?WeakSet:Set,en=null;function r3(n,r){if(n=n.containerInfo,Sy=Xc,n=z0(n),Zd(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var u=s.getSelection&&s.getSelection();if(u&&u.rangeCount!==0){s=u.anchorNode;var d=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{s.nodeType,m.nodeType}catch{s=null;break e}var x=0,A=-1,H=-1,ee=0,le=0,fe=n,ne=null;t:for(;;){for(var ie;fe!==s||d!==0&&fe.nodeType!==3||(A=x+d),fe!==m||u!==0&&fe.nodeType!==3||(H=x+u),fe.nodeType===3&&(x+=fe.nodeValue.length),(ie=fe.firstChild)!==null;)ne=fe,fe=ie;for(;;){if(fe===n)break t;if(ne===s&&++ee===d&&(A=x),ne===m&&++le===u&&(H=x),(ie=fe.nextSibling)!==null)break;fe=ne,ne=fe.parentNode}fe=ie}s=A===-1||H===-1?null:{start:A,end:H}}else s=null}s=s||{start:0,end:0}}else s=null;for(xy={focusedElem:n,selectionRange:s},Xc=!1,en=r;en!==null;)if(r=en,n=r.child,(r.subtreeFlags&1028)!==0&&n!==null)n.return=r,en=n;else for(;en!==null;){switch(r=en,m=r.alternate,n=r.flags,r.tag){case 0:if((n&4)!==0&&(n=r.updateQueue,n=n!==null?n.events:null,n!==null))for(s=0;s<n.length;s++)d=n[s],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&m!==null){n=void 0,s=r,d=m.memoizedProps,m=m.memoizedState,u=s.stateNode;try{var Ce=Va(s.type,d);n=u.getSnapshotBeforeUpdate(Ce,m),u.__reactInternalSnapshotBeforeUpdate=n}catch(He){ht(s,s.return,He)}}break;case 3:if((n&1024)!==0){if(n=r.stateNode.containerInfo,s=n.nodeType,s===9)Cy(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Cy(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(a(163))}if(n=r.sibling,n!==null){n.return=r.return,en=n;break}en=r.return}}function xv(n,r,s){var u=s.flags;switch(s.tag){case 0:case 11:case 15:ii(n,s),u&4&&Ao(5,s);break;case 1:if(ii(n,s),u&4)if(n=s.stateNode,r===null)try{n.componentDidMount()}catch(x){ht(s,s.return,x)}else{var d=Va(s.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(d,r,n.__reactInternalSnapshotBeforeUpdate)}catch(x){ht(s,s.return,x)}}u&64&&pv(s),u&512&&To(s,s.return);break;case 3:if(ii(n,s),u&64&&(n=s.updateQueue,n!==null)){if(r=null,s.child!==null)switch(s.child.tag){case 27:case 5:r=s.child.stateNode;break;case 1:r=s.child.stateNode}try{s1(n,r)}catch(x){ht(s,s.return,x)}}break;case 27:r===null&&u&4&&_v(s);case 26:case 5:ii(n,s),r===null&&u&4&&vv(s),u&512&&To(s,s.return);break;case 12:ii(n,s);break;case 31:ii(n,s),u&4&&Cv(n,s);break;case 13:ii(n,s),u&4&&Mv(n,s),u&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=d3.bind(null,s),O3(n,s))));break;case 22:if(u=s.memoizedState!==null||ni,!u){r=r!==null&&r.memoizedState!==null||$t,d=ni;var m=$t;ni=u,($t=r)&&!m?ai(n,s,(s.subtreeFlags&8772)!==0):ii(n,s),ni=d,$t=m}break;case 30:break;default:ii(n,s)}}function wv(n){var r=n.alternate;r!==null&&(n.alternate=null,wv(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&eo(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Et=null,Mn=!1;function ri(n,r,s){for(s=s.child;s!==null;)Ev(n,r,s),s=s.sibling}function Ev(n,r,s){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Rt,s)}catch{}switch(s.tag){case 26:$t||Ar(s,r),ri(n,r,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:$t||Ar(s,r);var u=Et,d=Mn;Fi(s.type)&&(Et=s.stateNode,Mn=!1),ri(n,r,s),Uo(s.stateNode),Et=u,Mn=d;break;case 5:$t||Ar(s,r);case 6:if(u=Et,d=Mn,Et=null,ri(n,r,s),Et=u,Mn=d,Et!==null)if(Mn)try{(Et.nodeType===9?Et.body:Et.nodeName==="HTML"?Et.ownerDocument.body:Et).removeChild(s.stateNode)}catch(m){ht(s,r,m)}else try{Et.removeChild(s.stateNode)}catch(m){ht(s,r,m)}break;case 18:Et!==null&&(Mn?(n=Et,pb(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),al(n)):pb(Et,s.stateNode));break;case 4:u=Et,d=Mn,Et=s.stateNode.containerInfo,Mn=!0,ri(n,r,s),Et=u,Mn=d;break;case 0:case 11:case 14:case 15:Hi(2,s,r),$t||Hi(4,s,r),ri(n,r,s);break;case 1:$t||(Ar(s,r),u=s.stateNode,typeof u.componentWillUnmount=="function"&&gv(s,r,u)),ri(n,r,s);break;case 21:ri(n,r,s);break;case 22:$t=(u=$t)||s.memoizedState!==null,ri(n,r,s),$t=u;break;default:ri(n,r,s)}}function Cv(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{al(n)}catch(s){ht(r,r.return,s)}}}function Mv(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{al(n)}catch(s){ht(r,r.return,s)}}function i3(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new Sv),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new Sv),r;default:throw Error(a(435,n.tag))}}function Rc(n,r){var s=i3(n);r.forEach(function(u){if(!s.has(u)){s.add(u);var d=h3.bind(null,n,u);u.then(d,d)}})}function kn(n,r){var s=r.deletions;if(s!==null)for(var u=0;u<s.length;u++){var d=s[u],m=n,x=r,A=x;e:for(;A!==null;){switch(A.tag){case 27:if(Fi(A.type)){Et=A.stateNode,Mn=!1;break e}break;case 5:Et=A.stateNode,Mn=!1;break e;case 3:case 4:Et=A.stateNode.containerInfo,Mn=!0;break e}A=A.return}if(Et===null)throw Error(a(160));Ev(m,x,d),Et=null,Mn=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)kv(r,n),r=r.sibling}var hr=null;function kv(n,r){var s=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:kn(r,n),An(n),u&4&&(Hi(3,n,n.return),Ao(3,n),Hi(5,n,n.return));break;case 1:kn(r,n),An(n),u&512&&($t||s===null||Ar(s,s.return)),u&64&&ni&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?u:s.concat(u))));break;case 26:var d=hr;if(kn(r,n),An(n),u&512&&($t||s===null||Ar(s,s.return)),u&4){var m=s!==null?s.memoizedState:null;if(u=n.memoizedState,s===null)if(u===null)if(n.stateNode===null){e:{u=n.type,s=n.memoizedProps,d=d.ownerDocument||d;t:switch(u){case"title":m=d.getElementsByTagName("title")[0],(!m||m[Ca]||m[Xt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(u),d.head.insertBefore(m,d.querySelector("head > title"))),un(m,u,s),m[Xt]=n,qt(m),u=m;break e;case"link":var x=kb("link","href",d).get(u+(s.href||""));if(x){for(var A=0;A<x.length;A++)if(m=x[A],m.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&m.getAttribute("rel")===(s.rel==null?null:s.rel)&&m.getAttribute("title")===(s.title==null?null:s.title)&&m.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){x.splice(A,1);break t}}m=d.createElement(u),un(m,u,s),d.head.appendChild(m);break;case"meta":if(x=kb("meta","content",d).get(u+(s.content||""))){for(A=0;A<x.length;A++)if(m=x[A],m.getAttribute("content")===(s.content==null?null:""+s.content)&&m.getAttribute("name")===(s.name==null?null:s.name)&&m.getAttribute("property")===(s.property==null?null:s.property)&&m.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&m.getAttribute("charset")===(s.charSet==null?null:s.charSet)){x.splice(A,1);break t}}m=d.createElement(u),un(m,u,s),d.head.appendChild(m);break;default:throw Error(a(468,u))}m[Xt]=n,qt(m),u=m}n.stateNode=u}else Ab(d,n.type,n.stateNode);else n.stateNode=Mb(d,u,n.memoizedProps);else m!==u?(m===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):m.count--,u===null?Ab(d,n.type,n.stateNode):Mb(d,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Kh(n,n.memoizedProps,s.memoizedProps)}break;case 27:kn(r,n),An(n),u&512&&($t||s===null||Ar(s,s.return)),s!==null&&u&4&&Kh(n,n.memoizedProps,s.memoizedProps);break;case 5:if(kn(r,n),An(n),u&512&&($t||s===null||Ar(s,s.return)),n.flags&32){d=n.stateNode;try{As(d,"")}catch(Ce){ht(n,n.return,Ce)}}u&4&&n.stateNode!=null&&(d=n.memoizedProps,Kh(n,d,s!==null?s.memoizedProps:d)),u&1024&&(ey=!0);break;case 6:if(kn(r,n),An(n),u&4){if(n.stateNode===null)throw Error(a(162));u=n.memoizedProps,s=n.stateNode;try{s.nodeValue=u}catch(Ce){ht(n,n.return,Ce)}}break;case 3:if(Fc=null,d=hr,hr=$c(r.containerInfo),kn(r,n),hr=d,An(n),u&4&&s!==null&&s.memoizedState.isDehydrated)try{al(r.containerInfo)}catch(Ce){ht(n,n.return,Ce)}ey&&(ey=!1,Av(n));break;case 4:u=hr,hr=$c(n.stateNode.containerInfo),kn(r,n),An(n),hr=u;break;case 12:kn(r,n),An(n);break;case 31:kn(r,n),An(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Rc(n,u)));break;case 13:kn(r,n),An(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Oc=te()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Rc(n,u)));break;case 22:d=n.memoizedState!==null;var H=s!==null&&s.memoizedState!==null,ee=ni,le=$t;if(ni=ee||d,$t=le||H,kn(r,n),$t=le,ni=ee,An(n),u&8192)e:for(r=n.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(s===null||H||ni||$t||Pa(n)),s=null,r=n;;){if(r.tag===5||r.tag===26){if(s===null){H=s=r;try{if(m=H.stateNode,d)x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{A=H.stateNode;var fe=H.memoizedProps.style,ne=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;A.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(Ce){ht(H,H.return,Ce)}}}else if(r.tag===6){if(s===null){H=r;try{H.stateNode.nodeValue=d?"":H.memoizedProps}catch(Ce){ht(H,H.return,Ce)}}}else if(r.tag===18){if(s===null){H=r;try{var ie=H.stateNode;d?gb(ie,!0):gb(H.stateNode,!1)}catch(Ce){ht(H,H.return,Ce)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===n)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break e;for(;r.sibling===null;){if(r.return===null||r.return===n)break e;s===r&&(s=null),r=r.return}s===r&&(s=null),r.sibling.return=r.return,r=r.sibling}u&4&&(u=n.updateQueue,u!==null&&(s=u.retryQueue,s!==null&&(u.retryQueue=null,Rc(n,s))));break;case 19:kn(r,n),An(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Rc(n,u)));break;case 30:break;case 21:break;default:kn(r,n),An(n)}}function An(n){var r=n.flags;if(r&2){try{for(var s,u=n.return;u!==null;){if(bv(u)){s=u;break}u=u.return}if(s==null)throw Error(a(160));switch(s.tag){case 27:var d=s.stateNode,m=Jh(n);Tc(n,m,d);break;case 5:var x=s.stateNode;s.flags&32&&(As(x,""),s.flags&=-33);var A=Jh(n);Tc(n,A,x);break;case 3:case 4:var H=s.stateNode.containerInfo,ee=Jh(n);Wh(n,ee,H);break;default:throw Error(a(161))}}catch(le){ht(n,n.return,le)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function Av(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;Av(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),n=n.sibling}}function ii(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)xv(n,r.alternate,r),r=r.sibling}function Pa(n){for(n=n.child;n!==null;){var r=n;switch(r.tag){case 0:case 11:case 14:case 15:Hi(4,r,r.return),Pa(r);break;case 1:Ar(r,r.return);var s=r.stateNode;typeof s.componentWillUnmount=="function"&&gv(r,r.return,s),Pa(r);break;case 27:Uo(r.stateNode);case 26:case 5:Ar(r,r.return),Pa(r);break;case 22:r.memoizedState===null&&Pa(r);break;case 30:Pa(r);break;default:Pa(r)}n=n.sibling}}function ai(n,r,s){for(s=s&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,d=n,m=r,x=m.flags;switch(m.tag){case 0:case 11:case 15:ai(d,m,s),Ao(4,m);break;case 1:if(ai(d,m,s),u=m,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(ee){ht(u,u.return,ee)}if(u=m,d=u.updateQueue,d!==null){var A=u.stateNode;try{var H=d.shared.hiddenCallbacks;if(H!==null)for(d.shared.hiddenCallbacks=null,d=0;d<H.length;d++)a1(H[d],A)}catch(ee){ht(u,u.return,ee)}}s&&x&64&&pv(m),To(m,m.return);break;case 27:_v(m);case 26:case 5:ai(d,m,s),s&&u===null&&x&4&&vv(m),To(m,m.return);break;case 12:ai(d,m,s);break;case 31:ai(d,m,s),s&&x&4&&Cv(d,m);break;case 13:ai(d,m,s),s&&x&4&&Mv(d,m);break;case 22:m.memoizedState===null&&ai(d,m,s),To(m,m.return);break;case 30:break;default:ai(d,m,s)}r=r.sibling}}function ty(n,r){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&mo(s))}function ny(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&mo(n))}function yr(n,r,s,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Tv(n,r,s,u),r=r.sibling}function Tv(n,r,s,u){var d=r.flags;switch(r.tag){case 0:case 11:case 15:yr(n,r,s,u),d&2048&&Ao(9,r);break;case 1:yr(n,r,s,u);break;case 3:yr(n,r,s,u),d&2048&&(n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&mo(n)));break;case 12:if(d&2048){yr(n,r,s,u),n=r.stateNode;try{var m=r.memoizedProps,x=m.id,A=m.onPostCommit;typeof A=="function"&&A(x,r.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(H){ht(r,r.return,H)}}else yr(n,r,s,u);break;case 31:yr(n,r,s,u);break;case 13:yr(n,r,s,u);break;case 23:break;case 22:m=r.stateNode,x=r.alternate,r.memoizedState!==null?m._visibility&2?yr(n,r,s,u):Ro(n,r):m._visibility&2?yr(n,r,s,u):(m._visibility|=2,Gs(n,r,s,u,(r.subtreeFlags&10256)!==0||!1)),d&2048&&ty(x,r);break;case 24:yr(n,r,s,u),d&2048&&ny(r.alternate,r);break;default:yr(n,r,s,u)}}function Gs(n,r,s,u,d){for(d=d&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var m=n,x=r,A=s,H=u,ee=x.flags;switch(x.tag){case 0:case 11:case 15:Gs(m,x,A,H,d),Ao(8,x);break;case 23:break;case 22:var le=x.stateNode;x.memoizedState!==null?le._visibility&2?Gs(m,x,A,H,d):Ro(m,x):(le._visibility|=2,Gs(m,x,A,H,d)),d&&ee&2048&&ty(x.alternate,x);break;case 24:Gs(m,x,A,H,d),d&&ee&2048&&ny(x.alternate,x);break;default:Gs(m,x,A,H,d)}r=r.sibling}}function Ro(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var s=n,u=r,d=u.flags;switch(u.tag){case 22:Ro(s,u),d&2048&&ty(u.alternate,u);break;case 24:Ro(s,u),d&2048&&ny(u.alternate,u);break;default:Ro(s,u)}r=r.sibling}}var No=8192;function Qs(n,r,s){if(n.subtreeFlags&No)for(n=n.child;n!==null;)Rv(n,r,s),n=n.sibling}function Rv(n,r,s){switch(n.tag){case 26:Qs(n,r,s),n.flags&No&&n.memoizedState!==null&&$3(s,hr,n.memoizedState,n.memoizedProps);break;case 5:Qs(n,r,s);break;case 3:case 4:var u=hr;hr=$c(n.stateNode.containerInfo),Qs(n,r,s),hr=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=No,No=16777216,Qs(n,r,s),No=u):Qs(n,r,s));break;default:Qs(n,r,s)}}function Nv(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function Oo(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var s=0;s<r.length;s++){var u=r[s];en=u,zv(u,n)}Nv(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ov(n),n=n.sibling}function Ov(n){switch(n.tag){case 0:case 11:case 15:Oo(n),n.flags&2048&&Hi(9,n,n.return);break;case 3:Oo(n);break;case 12:Oo(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,Nc(n)):Oo(n);break;default:Oo(n)}}function Nc(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var s=0;s<r.length;s++){var u=r[s];en=u,zv(u,n)}Nv(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:Hi(8,r,r.return),Nc(r);break;case 22:s=r.stateNode,s._visibility&2&&(s._visibility&=-3,Nc(r));break;default:Nc(r)}n=n.sibling}}function zv(n,r){for(;en!==null;){var s=en;switch(s.tag){case 0:case 11:case 15:Hi(8,s,r);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var u=s.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:mo(s.memoizedState.cache)}if(u=s.child,u!==null)u.return=s,en=u;else e:for(s=n;en!==null;){u=en;var d=u.sibling,m=u.return;if(wv(u),u===s){en=null;break e}if(d!==null){d.return=m,en=d;break e}en=m}}}var a3={getCacheForType:function(n){var r=ln(Vt),s=r.data.get(n);return s===void 0&&(s=n(),r.data.set(n,s)),s},cacheSignal:function(){return ln(Vt).controller.signal}},s3=typeof WeakMap=="function"?WeakMap:Map,ct=0,vt=null,Ke=null,et=0,dt=0,Hn=null,qi=!1,Xs=!1,ry=!1,si=0,Ot=0,Vi=0,Ia=0,iy=0,qn=0,Ks=0,zo=null,Tn=null,ay=!1,Oc=0,Dv=0,zc=1/0,Dc=null,Pi=null,Kt=0,Ii=null,Js=null,li=0,sy=0,ly=null,Lv=null,Do=0,oy=null;function Vn(){return(ct&2)!==0&&et!==0?et&-et:U.T!==null?yy():Uu()}function Bv(){if(qn===0)if((et&536870912)===0||nt){var n=xs;xs<<=1,(xs&3932160)===0&&(xs=262144),qn=n}else qn=536870912;return n=jn.current,n!==null&&(n.flags|=32),qn}function Rn(n,r,s){(n===vt&&(dt===2||dt===9)||n.cancelPendingCommit!==null)&&(Ws(n,0),$i(n,et,qn,!1)),Ea(n,s),((ct&2)===0||n!==vt)&&(n===vt&&((ct&2)===0&&(Ia|=s),Ot===4&&$i(n,et,qn,!1)),Tr(n))}function jv(n,r,s){if((ct&6)!==0)throw Error(a(327));var u=!s&&(r&127)===0&&(r&n.expiredLanes)===0||wa(n,r),d=u?u3(n,r):cy(n,r,!0),m=u;do{if(d===0){Xs&&!u&&$i(n,r,0,!1);break}else{if(s=n.current.alternate,m&&!l3(s)){d=cy(n,r,!1),m=!1;continue}if(d===2){if(m=r,n.errorRecoveryDisabledLanes&m)var x=0;else x=n.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){r=x;e:{var A=n;d=zo;var H=A.current.memoizedState.isDehydrated;if(H&&(Ws(A,x).flags|=256),x=cy(A,x,!1),x!==2){if(ry&&!H){A.errorRecoveryDisabledLanes|=m,Ia|=m,d=4;break e}m=Tn,Tn=d,m!==null&&(Tn===null?Tn=m:Tn.push.apply(Tn,m))}d=x}if(m=!1,d!==2)continue}}if(d===1){Ws(n,0),$i(n,r,0,!0);break}e:{switch(u=n,m=d,m){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:$i(u,r,qn,!qi);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(d=Oc+300-te(),10<d)){if($i(u,r,qn,!qi),Es(u,0,!0)!==0)break e;li=r,u.timeoutHandle=yb(Uv.bind(null,u,s,Tn,Dc,ay,r,qn,Ia,Ks,qi,m,"Throttled",-0,0),d);break e}Uv(u,s,Tn,Dc,ay,r,qn,Ia,Ks,qi,m,null,-0,0)}}break}while(!0);Tr(n)}function Uv(n,r,s,u,d,m,x,A,H,ee,le,fe,ne,ie){if(n.timeoutHandle=-1,fe=r.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fr},Rv(r,m,fe);var Ce=(m&62914560)===m?Oc-te():(m&4194048)===m?Dv-te():0;if(Ce=Y3(fe,Ce),Ce!==null){li=m,n.cancelPendingCommit=Ce(Fv.bind(null,n,r,m,s,u,d,x,A,H,le,fe,null,ne,ie)),$i(n,m,x,!ee);return}}Fv(n,r,m,s,u,d,x,A,H)}function l3(n){for(var r=n;;){var s=r.tag;if((s===0||s===11||s===15)&&r.flags&16384&&(s=r.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var u=0;u<s.length;u++){var d=s[u],m=d.getSnapshot;d=d.value;try{if(!Ln(m(),d))return!1}catch{return!1}}if(s=r.child,r.subtreeFlags&16384&&s!==null)s.return=r,r=s;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function $i(n,r,s,u){r&=~iy,r&=~Ia,n.suspendedLanes|=r,n.pingedLanes&=~r,u&&(n.warmLanes|=r),u=n.expirationTimes;for(var d=r;0<d;){var m=31-Qt(d),x=1<<m;u[m]=-1,d&=~x}s!==0&&Lu(n,s,r)}function Lc(){return(ct&6)===0?(Lo(0),!1):!0}function uy(){if(Ke!==null){if(dt===0)var n=Ke.return;else n=Ke,Xr=Da=null,Ch(n),Is=null,go=0,n=Ke;for(;n!==null;)mv(n.alternate,n),n=n.return;Ke=null}}function Ws(n,r){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,k3(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),li=0,uy(),vt=n,Ke=s=Gr(n.current,null),et=r,dt=0,Hn=null,qi=!1,Xs=wa(n,r),ry=!1,Ks=qn=iy=Ia=Vi=Ot=0,Tn=zo=null,ay=!1,(r&8)!==0&&(r|=r&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=r;0<u;){var d=31-Qt(u),m=1<<d;r|=n[d],u&=~m}return si=r,nc(),s}function Hv(n,r){Ye=null,U.H=Co,r===Ps||r===cc?(r=t1(),dt=3):r===hh?(r=t1(),dt=4):dt=r===Vh?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Hn=r,Ke===null&&(Ot=1,Ec(n,Jn(r,n.current)))}function qv(){var n=jn.current;return n===null?!0:(et&4194048)===et?nr===null:(et&62914560)===et||(et&536870912)!==0?n===nr:!1}function Vv(){var n=U.H;return U.H=Co,n===null?Co:n}function Pv(){var n=U.A;return U.A=a3,n}function Bc(){Ot=4,qi||(et&4194048)!==et&&jn.current!==null||(Xs=!0),(Vi&134217727)===0&&(Ia&134217727)===0||vt===null||$i(vt,et,qn,!1)}function cy(n,r,s){var u=ct;ct|=2;var d=Vv(),m=Pv();(vt!==n||et!==r)&&(Dc=null,Ws(n,r)),r=!1;var x=Ot;e:do try{if(dt!==0&&Ke!==null){var A=Ke,H=Hn;switch(dt){case 8:uy(),x=6;break e;case 3:case 2:case 9:case 6:jn.current===null&&(r=!0);var ee=dt;if(dt=0,Hn=null,el(n,A,H,ee),s&&Xs){x=0;break e}break;default:ee=dt,dt=0,Hn=null,el(n,A,H,ee)}}o3(),x=Ot;break}catch(le){Hv(n,le)}while(!0);return r&&n.shellSuspendCounter++,Xr=Da=null,ct=u,U.H=d,U.A=m,Ke===null&&(vt=null,et=0,nc()),x}function o3(){for(;Ke!==null;)Iv(Ke)}function u3(n,r){var s=ct;ct|=2;var u=Vv(),d=Pv();vt!==n||et!==r?(Dc=null,zc=te()+500,Ws(n,r)):Xs=wa(n,r);e:do try{if(dt!==0&&Ke!==null){r=Ke;var m=Hn;t:switch(dt){case 1:dt=0,Hn=null,el(n,r,m,1);break;case 2:case 9:if(W0(m)){dt=0,Hn=null,$v(r);break}r=function(){dt!==2&&dt!==9||vt!==n||(dt=7),Tr(n)},m.then(r,r);break e;case 3:dt=7;break e;case 4:dt=5;break e;case 7:W0(m)?(dt=0,Hn=null,$v(r)):(dt=0,Hn=null,el(n,r,m,7));break;case 5:var x=null;switch(Ke.tag){case 26:x=Ke.memoizedState;case 5:case 27:var A=Ke;if(x?Tb(x):A.stateNode.complete){dt=0,Hn=null;var H=A.sibling;if(H!==null)Ke=H;else{var ee=A.return;ee!==null?(Ke=ee,jc(ee)):Ke=null}break t}}dt=0,Hn=null,el(n,r,m,5);break;case 6:dt=0,Hn=null,el(n,r,m,6);break;case 8:uy(),Ot=6;break e;default:throw Error(a(462))}}c3();break}catch(le){Hv(n,le)}while(!0);return Xr=Da=null,U.H=u,U.A=d,ct=s,Ke!==null?0:(vt=null,et=0,nc(),Ot)}function c3(){for(;Ke!==null&&!q();)Iv(Ke)}function Iv(n){var r=hv(n.alternate,n,si);n.memoizedProps=n.pendingProps,r===null?jc(n):Ke=r}function $v(n){var r=n,s=r.alternate;switch(r.tag){case 15:case 0:r=lv(s,r,r.pendingProps,r.type,void 0,et);break;case 11:r=lv(s,r,r.pendingProps,r.type.render,r.ref,et);break;case 5:Ch(r);default:mv(s,r),r=Ke=P0(r,si),r=hv(s,r,si)}n.memoizedProps=n.pendingProps,r===null?jc(n):Ke=r}function el(n,r,s,u){Xr=Da=null,Ch(r),Is=null,go=0;var d=r.return;try{if(JM(n,d,r,s,et)){Ot=1,Ec(n,Jn(s,n.current)),Ke=null;return}}catch(m){if(d!==null)throw Ke=d,m;Ot=1,Ec(n,Jn(s,n.current)),Ke=null;return}r.flags&32768?(nt||u===1?n=!0:Xs||(et&536870912)!==0?n=!1:(qi=n=!0,(u===2||u===9||u===3||u===6)&&(u=jn.current,u!==null&&u.tag===13&&(u.flags|=16384))),Yv(r,n)):jc(r)}function jc(n){var r=n;do{if((r.flags&32768)!==0){Yv(r,qi);return}n=r.return;var s=t3(r.alternate,r,si);if(s!==null){Ke=s;return}if(r=r.sibling,r!==null){Ke=r;return}Ke=r=n}while(r!==null);Ot===0&&(Ot=5)}function Yv(n,r){do{var s=n3(n.alternate,n);if(s!==null){s.flags&=32767,Ke=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!r&&(n=n.sibling,n!==null)){Ke=n;return}Ke=n=s}while(n!==null);Ot=6,Ke=null}function Fv(n,r,s,u,d,m,x,A,H){n.cancelPendingCommit=null;do Uc();while(Kt!==0);if((ct&6)!==0)throw Error(a(327));if(r!==null){if(r===n.current)throw Error(a(177));if(m=r.lanes|r.childLanes,m|=Jd,Ad(n,s,m,x,A,H),n===vt&&(Ke=vt=null,et=0),Js=r,Ii=n,li=s,sy=m,ly=d,Lv=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,y3(we,function(){return Kv(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=U.T,U.T=null,d=Y.p,Y.p=2,x=ct,ct|=4;try{r3(n,r,s)}finally{ct=x,Y.p=d,U.T=u}}Kt=1,Zv(),Gv(),Qv()}}function Zv(){if(Kt===1){Kt=0;var n=Ii,r=Js,s=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||s){s=U.T,U.T=null;var u=Y.p;Y.p=2;var d=ct;ct|=4;try{kv(r,n);var m=xy,x=z0(n.containerInfo),A=m.focusedElem,H=m.selectionRange;if(x!==A&&A&&A.ownerDocument&&O0(A.ownerDocument.documentElement,A)){if(H!==null&&Zd(A)){var ee=H.start,le=H.end;if(le===void 0&&(le=ee),"selectionStart"in A)A.selectionStart=ee,A.selectionEnd=Math.min(le,A.value.length);else{var fe=A.ownerDocument||document,ne=fe&&fe.defaultView||window;if(ne.getSelection){var ie=ne.getSelection(),Ce=A.textContent.length,He=Math.min(H.start,Ce),pt=H.end===void 0?He:Math.min(H.end,Ce);!ie.extend&&He>pt&&(x=pt,pt=He,He=x);var F=N0(A,He),I=N0(A,pt);if(F&&I&&(ie.rangeCount!==1||ie.anchorNode!==F.node||ie.anchorOffset!==F.offset||ie.focusNode!==I.node||ie.focusOffset!==I.offset)){var W=fe.createRange();W.setStart(F.node,F.offset),ie.removeAllRanges(),He>pt?(ie.addRange(W),ie.extend(I.node,I.offset)):(W.setEnd(I.node,I.offset),ie.addRange(W))}}}}for(fe=[],ie=A;ie=ie.parentNode;)ie.nodeType===1&&fe.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<fe.length;A++){var oe=fe[A];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}Xc=!!Sy,xy=Sy=null}finally{ct=d,Y.p=u,U.T=s}}n.current=r,Kt=2}}function Gv(){if(Kt===2){Kt=0;var n=Ii,r=Js,s=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||s){s=U.T,U.T=null;var u=Y.p;Y.p=2;var d=ct;ct|=4;try{xv(n,r.alternate,r)}finally{ct=d,Y.p=u,U.T=s}}Kt=3}}function Qv(){if(Kt===4||Kt===3){Kt=0,X();var n=Ii,r=Js,s=li,u=Lv;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Kt=5:(Kt=0,Js=Ii=null,Xv(n,n.pendingLanes));var d=n.pendingLanes;if(d===0&&(Pi=null),Wl(s),r=r.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(Rt,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=U.T,d=Y.p,Y.p=2,U.T=null;try{for(var m=n.onRecoverableError,x=0;x<u.length;x++){var A=u[x];m(A.value,{componentStack:A.stack})}}finally{U.T=r,Y.p=d}}(li&3)!==0&&Uc(),Tr(n),d=n.pendingLanes,(s&261930)!==0&&(d&42)!==0?n===oy?Do++:(Do=0,oy=n):Do=0,Lo(0)}}function Xv(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,mo(r)))}function Uc(){return Zv(),Gv(),Qv(),Kv()}function Kv(){if(Kt!==5)return!1;var n=Ii,r=sy;sy=0;var s=Wl(li),u=U.T,d=Y.p;try{Y.p=32>s?32:s,U.T=null,s=ly,ly=null;var m=Ii,x=li;if(Kt=0,Js=Ii=null,li=0,(ct&6)!==0)throw Error(a(331));var A=ct;if(ct|=4,Ov(m.current),Tv(m,m.current,x,s),ct=A,Lo(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(Rt,m)}catch{}return!0}finally{Y.p=d,U.T=u,Xv(n,r)}}function Jv(n,r,s){r=Jn(s,r),r=qh(n.stateNode,r,2),n=Bi(n,r,2),n!==null&&(Ea(n,2),Tr(n))}function ht(n,r,s){if(n.tag===3)Jv(n,n,s);else for(;r!==null;){if(r.tag===3){Jv(r,n,s);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Pi===null||!Pi.has(u))){n=Jn(s,n),s=W1(2),u=Bi(r,s,2),u!==null&&(ev(s,u,r,n),Ea(u,2),Tr(u));break}}r=r.return}}function fy(n,r,s){var u=n.pingCache;if(u===null){u=n.pingCache=new s3;var d=new Set;u.set(r,d)}else d=u.get(r),d===void 0&&(d=new Set,u.set(r,d));d.has(s)||(ry=!0,d.add(s),n=f3.bind(null,n,r,s),r.then(n,n))}function f3(n,r,s){var u=n.pingCache;u!==null&&u.delete(r),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,vt===n&&(et&s)===s&&(Ot===4||Ot===3&&(et&62914560)===et&&300>te()-Oc?(ct&2)===0&&Ws(n,0):iy|=s,Ks===et&&(Ks=0)),Tr(n)}function Wv(n,r){r===0&&(r=Du()),n=Na(n,r),n!==null&&(Ea(n,r),Tr(n))}function d3(n){var r=n.memoizedState,s=0;r!==null&&(s=r.retryLane),Wv(n,s)}function h3(n,r){var s=0;switch(n.tag){case 31:case 13:var u=n.stateNode,d=n.memoizedState;d!==null&&(s=d.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(r),Wv(n,s)}function y3(n,r){return Qn(n,r)}var Hc=null,tl=null,dy=!1,qc=!1,hy=!1,Yi=0;function Tr(n){n!==tl&&n.next===null&&(tl===null?Hc=tl=n:tl=tl.next=n),qc=!0,dy||(dy=!0,p3())}function Lo(n,r){if(!hy&&qc){hy=!0;do for(var s=!1,u=Hc;u!==null;){if(n!==0){var d=u.pendingLanes;if(d===0)var m=0;else{var x=u.suspendedLanes,A=u.pingedLanes;m=(1<<31-Qt(42|n)+1)-1,m&=d&~(x&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(s=!0,rb(u,m))}else m=et,m=Es(u,u===vt?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||wa(u,m)||(s=!0,rb(u,m));u=u.next}while(s);hy=!1}}function m3(){eb()}function eb(){qc=dy=!1;var n=0;Yi!==0&&M3()&&(n=Yi);for(var r=te(),s=null,u=Hc;u!==null;){var d=u.next,m=tb(u,r);m===0?(u.next=null,s===null?Hc=d:s.next=d,d===null&&(tl=s)):(s=u,(n!==0||(m&3)!==0)&&(qc=!0)),u=d}Kt!==0&&Kt!==5||Lo(n),Yi!==0&&(Yi=0)}function tb(n,r){for(var s=n.suspendedLanes,u=n.pingedLanes,d=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var x=31-Qt(m),A=1<<x,H=d[x];H===-1?((A&s)===0||(A&u)!==0)&&(d[x]=kd(A,r)):H<=r&&(n.expiredLanes|=A),m&=~A}if(r=vt,s=et,s=Es(n,n===r?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,s===0||n===r&&(dt===2||dt===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Xn(u),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||wa(n,s)){if(r=s&-s,r===n.callbackPriority)return r;switch(u!==null&&Xn(u),Wl(s)){case 2:case 8:s=ge;break;case 32:s=we;break;case 268435456:s=We;break;default:s=we}return u=nb.bind(null,n),s=Qn(s,u),n.callbackPriority=r,n.callbackNode=s,r}return u!==null&&u!==null&&Xn(u),n.callbackPriority=2,n.callbackNode=null,2}function nb(n,r){if(Kt!==0&&Kt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(Uc()&&n.callbackNode!==s)return null;var u=et;return u=Es(n,n===vt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(jv(n,u,r),tb(n,te()),n.callbackNode!=null&&n.callbackNode===s?nb.bind(null,n):null)}function rb(n,r){if(Uc())return null;jv(n,r,!0)}function p3(){A3(function(){(ct&6)!==0?Qn(pe,m3):eb()})}function yy(){if(Yi===0){var n=qs;n===0&&(n=Vr,Vr<<=1,(Vr&261888)===0&&(Vr=256)),Yi=n}return Yi}function ib(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Gu(""+n)}function ab(n,r){var s=r.ownerDocument.createElement("input");return s.name=r.name,s.value=r.value,n.id&&s.setAttribute("form",n.id),r.parentNode.insertBefore(s,r),n=new FormData(n),s.parentNode.removeChild(s),n}function g3(n,r,s,u,d){if(r==="submit"&&s&&s.stateNode===d){var m=ib((d[fn]||null).action),x=u.submitter;x&&(r=(r=x[fn]||null)?ib(r.formAction):x.getAttribute("formAction"),r!==null&&(m=r,x=null));var A=new Ju("action","action",null,u,d);n.push({event:A,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Yi!==0){var H=x?ab(d,x):new FormData(d);Dh(s,{pending:!0,data:H,method:d.method,action:m},null,H)}}else typeof m=="function"&&(A.preventDefault(),H=x?ab(d,x):new FormData(d),Dh(s,{pending:!0,data:H,method:d.method,action:m},m,H))},currentTarget:d}]})}}for(var my=0;my<Kd.length;my++){var py=Kd[my],v3=py.toLowerCase(),b3=py[0].toUpperCase()+py.slice(1);dr(v3,"on"+b3)}dr(B0,"onAnimationEnd"),dr(j0,"onAnimationIteration"),dr(U0,"onAnimationStart"),dr("dblclick","onDoubleClick"),dr("focusin","onFocus"),dr("focusout","onBlur"),dr(LM,"onTransitionRun"),dr(BM,"onTransitionStart"),dr(jM,"onTransitionCancel"),dr(H0,"onTransitionEnd"),ki("onMouseEnter",["mouseout","mouseover"]),ki("onMouseLeave",["mouseout","mouseover"]),ki("onPointerEnter",["pointerout","pointerover"]),ki("onPointerLeave",["pointerout","pointerover"]),$r("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$r("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$r("onBeforeInput",["compositionend","keypress","textInput","paste"]),$r("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$r("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$r("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bo="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(" "),_3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bo));function sb(n,r){r=(r&4)!==0;for(var s=0;s<n.length;s++){var u=n[s],d=u.event;u=u.listeners;e:{var m=void 0;if(r)for(var x=u.length-1;0<=x;x--){var A=u[x],H=A.instance,ee=A.currentTarget;if(A=A.listener,H!==m&&d.isPropagationStopped())break e;m=A,d.currentTarget=ee;try{m(d)}catch(le){tc(le)}d.currentTarget=null,m=H}else for(x=0;x<u.length;x++){if(A=u[x],H=A.instance,ee=A.currentTarget,A=A.listener,H!==m&&d.isPropagationStopped())break e;m=A,d.currentTarget=ee;try{m(d)}catch(le){tc(le)}d.currentTarget=null,m=H}}}}function Je(n,r){var s=r[Cs];s===void 0&&(s=r[Cs]=new Set);var u=n+"__bubble";s.has(u)||(lb(r,n,2,!1),s.add(u))}function gy(n,r,s){var u=0;r&&(u|=4),lb(s,n,u,r)}var Vc="_reactListening"+Math.random().toString(36).slice(2);function vy(n){if(!n[Vc]){n[Vc]=!0,Pu.forEach(function(s){s!=="selectionchange"&&(_3.has(s)||gy(s,!1,n),gy(s,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[Vc]||(r[Vc]=!0,gy("selectionchange",!1,r))}}function lb(n,r,s,u){switch(Bb(r)){case 2:var d=G3;break;case 8:d=Q3;break;default:d=zy}s=d.bind(null,r,s,n),d=void 0,!Ud||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),u?d!==void 0?n.addEventListener(r,s,{capture:!0,passive:d}):n.addEventListener(r,s,!0):d!==void 0?n.addEventListener(r,s,{passive:d}):n.addEventListener(r,s,!1)}function by(n,r,s,u,d){var m=u;if((r&1)===0&&(r&2)===0&&u!==null)e:for(;;){if(u===null)return;var x=u.tag;if(x===3||x===4){var A=u.stateNode.containerInfo;if(A===d)break;if(x===4)for(x=u.return;x!==null;){var H=x.tag;if((H===3||H===4)&&x.stateNode.containerInfo===d)return;x=x.return}for(;A!==null;){if(x=wi(A),x===null)return;if(H=x.tag,H===5||H===6||H===26||H===27){u=m=x;continue e}A=A.parentNode}}u=u.return}d0(function(){var ee=m,le=Bd(s),fe=[];e:{var ne=q0.get(n);if(ne!==void 0){var ie=Ju,Ce=n;switch(n){case"keypress":if(Xu(s)===0)break e;case"keydown":case"keyup":ie=hM;break;case"focusin":Ce="focus",ie=Pd;break;case"focusout":Ce="blur",ie=Pd;break;case"beforeblur":case"afterblur":ie=Pd;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ie=m0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=tM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=pM;break;case B0:case j0:case U0:ie=iM;break;case H0:ie=vM;break;case"scroll":case"scrollend":ie=WC;break;case"wheel":ie=_M;break;case"copy":case"cut":case"paste":ie=sM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=g0;break;case"toggle":case"beforetoggle":ie=xM}var He=(r&4)!==0,pt=!He&&(n==="scroll"||n==="scrollend"),F=He?ne!==null?ne+"Capture":null:ne;He=[];for(var I=ee,W;I!==null;){var oe=I;if(W=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||W===null||F===null||(oe=ro(I,F),oe!=null&&He.push(jo(I,oe,W))),pt)break;I=I.return}0<He.length&&(ne=new ie(ne,Ce,null,s,le),fe.push({event:ne,listeners:He}))}}if((r&7)===0){e:{if(ne=n==="mouseover"||n==="pointerover",ie=n==="mouseout"||n==="pointerout",ne&&s!==Ld&&(Ce=s.relatedTarget||s.fromElement)&&(wi(Ce)||Ce[Ir]))break e;if((ie||ne)&&(ne=le.window===le?le:(ne=le.ownerDocument)?ne.defaultView||ne.parentWindow:window,ie?(Ce=s.relatedTarget||s.toElement,ie=ee,Ce=Ce?wi(Ce):null,Ce!==null&&(pt=o(Ce),He=Ce.tag,Ce!==pt||He!==5&&He!==27&&He!==6)&&(Ce=null)):(ie=null,Ce=ee),ie!==Ce)){if(He=m0,oe="onMouseLeave",F="onMouseEnter",I="mouse",(n==="pointerout"||n==="pointerover")&&(He=g0,oe="onPointerLeave",F="onPointerEnter",I="pointer"),pt=ie==null?ne:Ci(ie),W=Ce==null?ne:Ci(Ce),ne=new He(oe,I+"leave",ie,s,le),ne.target=pt,ne.relatedTarget=W,oe=null,wi(le)===ee&&(He=new He(F,I+"enter",Ce,s,le),He.target=W,He.relatedTarget=pt,oe=He),pt=oe,ie&&Ce)t:{for(He=S3,F=ie,I=Ce,W=0,oe=F;oe;oe=He(oe))W++;oe=0;for(var Be=I;Be;Be=He(Be))oe++;for(;0<W-oe;)F=He(F),W--;for(;0<oe-W;)I=He(I),oe--;for(;W--;){if(F===I||I!==null&&F===I.alternate){He=F;break t}F=He(F),I=He(I)}He=null}else He=null;ie!==null&&ob(fe,ne,ie,He,!1),Ce!==null&&pt!==null&&ob(fe,pt,Ce,He,!0)}}e:{if(ne=ee?Ci(ee):window,ie=ne.nodeName&&ne.nodeName.toLowerCase(),ie==="select"||ie==="input"&&ne.type==="file")var st=C0;else if(w0(ne))if(M0)st=OM;else{st=RM;var Ne=TM}else ie=ne.nodeName,!ie||ie.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ee&&Dd(ee.elementType)&&(st=C0):st=NM;if(st&&(st=st(n,ee))){E0(fe,st,s,le);break e}Ne&&Ne(n,ne,ee),n==="focusout"&&ee&&ne.type==="number"&&ee.memoizedProps.value!=null&&no(ne,"number",ne.value)}switch(Ne=ee?Ci(ee):window,n){case"focusin":(w0(Ne)||Ne.contentEditable==="true")&&(Os=Ne,Gd=ee,fo=null);break;case"focusout":fo=Gd=Os=null;break;case"mousedown":Qd=!0;break;case"contextmenu":case"mouseup":case"dragend":Qd=!1,D0(fe,s,le);break;case"selectionchange":if(DM)break;case"keydown":case"keyup":D0(fe,s,le)}var Fe;if($d)e:{switch(n){case"compositionstart":var tt="onCompositionStart";break e;case"compositionend":tt="onCompositionEnd";break e;case"compositionupdate":tt="onCompositionUpdate";break e}tt=void 0}else Ns?S0(n,s)&&(tt="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(tt="onCompositionStart");tt&&(v0&&s.locale!=="ko"&&(Ns||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&Ns&&(Fe=h0()):(Ti=le,Hd="value"in Ti?Ti.value:Ti.textContent,Ns=!0)),Ne=Pc(ee,tt),0<Ne.length&&(tt=new p0(tt,n,null,s,le),fe.push({event:tt,listeners:Ne}),Fe?tt.data=Fe:(Fe=x0(s),Fe!==null&&(tt.data=Fe)))),(Fe=EM?CM(n,s):MM(n,s))&&(tt=Pc(ee,"onBeforeInput"),0<tt.length&&(Ne=new p0("onBeforeInput","beforeinput",null,s,le),fe.push({event:Ne,listeners:tt}),Ne.data=Fe)),g3(fe,n,ee,s,le)}sb(fe,r)})}function jo(n,r,s){return{instance:n,listener:r,currentTarget:s}}function Pc(n,r){for(var s=r+"Capture",u=[];n!==null;){var d=n,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=ro(n,s),d!=null&&u.unshift(jo(n,d,m)),d=ro(n,r),d!=null&&u.push(jo(n,d,m))),n.tag===3)return u;n=n.return}return[]}function S3(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function ob(n,r,s,u,d){for(var m=r._reactName,x=[];s!==null&&s!==u;){var A=s,H=A.alternate,ee=A.stateNode;if(A=A.tag,H!==null&&H===u)break;A!==5&&A!==26&&A!==27||ee===null||(H=ee,d?(ee=ro(s,m),ee!=null&&x.unshift(jo(s,ee,H))):d||(ee=ro(s,m),ee!=null&&x.push(jo(s,ee,H)))),s=s.return}x.length!==0&&n.push({event:r,listeners:x})}var x3=/\r\n?/g,w3=/\u0000|\uFFFD/g;function ub(n){return(typeof n=="string"?n:""+n).replace(x3,`
49
- `).replace(w3,"")}function cb(n,r){return r=ub(r),ub(n)===r}function mt(n,r,s,u,d,m){switch(s){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||As(n,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&As(n,""+u);break;case"className":ks(n,"class",u);break;case"tabIndex":ks(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ks(n,s,u);break;case"style":c0(n,u,m);break;case"data":if(r!=="object"){ks(n,"data",u);break}case"src":case"href":if(u===""&&(r!=="a"||s!=="href")){n.removeAttribute(s);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(s);break}u=Gu(""+u),n.setAttribute(s,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(s==="formAction"?(r!=="input"&&mt(n,r,"name",d.name,d,null),mt(n,r,"formEncType",d.formEncType,d,null),mt(n,r,"formMethod",d.formMethod,d,null),mt(n,r,"formTarget",d.formTarget,d,null)):(mt(n,r,"encType",d.encType,d,null),mt(n,r,"method",d.method,d,null),mt(n,r,"target",d.target,d,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(s);break}u=Gu(""+u),n.setAttribute(s,u);break;case"onClick":u!=null&&(n.onclick=Fr);break;case"onScroll":u!=null&&Je("scroll",n);break;case"onScrollEnd":u!=null&&Je("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(s=u.__html,s!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=s}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}s=Gu(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(s,""+u):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":u===!0?n.setAttribute(s,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(s,u):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(s,u):n.removeAttribute(s);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(s):n.setAttribute(s,u);break;case"popover":Je("beforetoggle",n),Je("toggle",n),Ms(n,"popover",u);break;case"xlinkActuate":fr(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":fr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":fr(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":fr(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":fr(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":fr(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":fr(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":fr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":fr(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Ms(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=KC.get(s)||s,Ms(n,s,u))}}function _y(n,r,s,u,d,m){switch(s){case"style":c0(n,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(s=u.__html,s!=null){if(d.children!=null)throw Error(a(60));n.innerHTML=s}}break;case"children":typeof u=="string"?As(n,u):(typeof u=="number"||typeof u=="bigint")&&As(n,""+u);break;case"onScroll":u!=null&&Je("scroll",n);break;case"onScrollEnd":u!=null&&Je("scrollend",n);break;case"onClick":u!=null&&(n.onclick=Fr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Iu.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(d=s.endsWith("Capture"),r=s.slice(2,d?s.length-7:void 0),m=n[fn]||null,m=m!=null?m[s]:null,typeof m=="function"&&n.removeEventListener(r,m,d),typeof u=="function")){typeof m!="function"&&m!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(r,u,d);break e}s in n?n[s]=u:u===!0?n.setAttribute(s,""):Ms(n,s,u)}}}function un(n,r,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Je("error",n),Je("load",n);var u=!1,d=!1,m;for(m in s)if(s.hasOwnProperty(m)){var x=s[m];if(x!=null)switch(m){case"src":u=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:mt(n,r,m,x,s,null)}}d&&mt(n,r,"srcSet",s.srcSet,s,null),u&&mt(n,r,"src",s.src,s,null);return;case"input":Je("invalid",n);var A=m=x=d=null,H=null,ee=null;for(u in s)if(s.hasOwnProperty(u)){var le=s[u];if(le!=null)switch(u){case"name":d=le;break;case"type":x=le;break;case"checked":H=le;break;case"defaultChecked":ee=le;break;case"value":m=le;break;case"defaultValue":A=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(a(137,r));break;default:mt(n,r,u,le,s,null)}}Zu(n,m,A,H,ee,x,d,!1);return;case"select":Je("invalid",n),u=x=m=null;for(d in s)if(s.hasOwnProperty(d)&&(A=s[d],A!=null))switch(d){case"value":m=A;break;case"defaultValue":x=A;break;case"multiple":u=A;default:mt(n,r,d,A,s,null)}r=m,s=x,n.multiple=!!u,r!=null?Yr(n,!!u,r,!1):s!=null&&Yr(n,!!u,s,!0);return;case"textarea":Je("invalid",n),m=d=u=null;for(x in s)if(s.hasOwnProperty(x)&&(A=s[x],A!=null))switch(x){case"value":u=A;break;case"defaultValue":d=A;break;case"children":m=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(a(91));break;default:mt(n,r,x,A,s,null)}o0(n,u,d,m);return;case"option":for(H in s)if(s.hasOwnProperty(H)&&(u=s[H],u!=null))switch(H){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:mt(n,r,H,u,s,null)}return;case"dialog":Je("beforetoggle",n),Je("toggle",n),Je("cancel",n),Je("close",n);break;case"iframe":case"object":Je("load",n);break;case"video":case"audio":for(u=0;u<Bo.length;u++)Je(Bo[u],n);break;case"image":Je("error",n),Je("load",n);break;case"details":Je("toggle",n);break;case"embed":case"source":case"link":Je("error",n),Je("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in s)if(s.hasOwnProperty(ee)&&(u=s[ee],u!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:mt(n,r,ee,u,s,null)}return;default:if(Dd(r)){for(le in s)s.hasOwnProperty(le)&&(u=s[le],u!==void 0&&_y(n,r,le,u,s,void 0));return}}for(A in s)s.hasOwnProperty(A)&&(u=s[A],u!=null&&mt(n,r,A,u,s,null))}function E3(n,r,s,u){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,x=null,A=null,H=null,ee=null,le=null;for(ie in s){var fe=s[ie];if(s.hasOwnProperty(ie)&&fe!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":H=fe;default:u.hasOwnProperty(ie)||mt(n,r,ie,null,u,fe)}}for(var ne in u){var ie=u[ne];if(fe=s[ne],u.hasOwnProperty(ne)&&(ie!=null||fe!=null))switch(ne){case"type":m=ie;break;case"name":d=ie;break;case"checked":ee=ie;break;case"defaultChecked":le=ie;break;case"value":x=ie;break;case"defaultValue":A=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(a(137,r));break;default:ie!==fe&&mt(n,r,ne,ie,u,fe)}}ka(n,x,A,H,ee,le,m,d);return;case"select":ie=x=A=ne=null;for(m in s)if(H=s[m],s.hasOwnProperty(m)&&H!=null)switch(m){case"value":break;case"multiple":ie=H;default:u.hasOwnProperty(m)||mt(n,r,m,null,u,H)}for(d in u)if(m=u[d],H=s[d],u.hasOwnProperty(d)&&(m!=null||H!=null))switch(d){case"value":ne=m;break;case"defaultValue":A=m;break;case"multiple":x=m;default:m!==H&&mt(n,r,d,m,u,H)}r=A,s=x,u=ie,ne!=null?Yr(n,!!s,ne,!1):!!u!=!!s&&(r!=null?Yr(n,!!s,r,!0):Yr(n,!!s,s?[]:"",!1));return;case"textarea":ie=ne=null;for(A in s)if(d=s[A],s.hasOwnProperty(A)&&d!=null&&!u.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:mt(n,r,A,null,u,d)}for(x in u)if(d=u[x],m=s[x],u.hasOwnProperty(x)&&(d!=null||m!=null))switch(x){case"value":ne=d;break;case"defaultValue":ie=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==m&&mt(n,r,x,d,u,m)}l0(n,ne,ie);return;case"option":for(var Ce in s)if(ne=s[Ce],s.hasOwnProperty(Ce)&&ne!=null&&!u.hasOwnProperty(Ce))switch(Ce){case"selected":n.selected=!1;break;default:mt(n,r,Ce,null,u,ne)}for(H in u)if(ne=u[H],ie=s[H],u.hasOwnProperty(H)&&ne!==ie&&(ne!=null||ie!=null))switch(H){case"selected":n.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:mt(n,r,H,ne,u,ie)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var He in s)ne=s[He],s.hasOwnProperty(He)&&ne!=null&&!u.hasOwnProperty(He)&&mt(n,r,He,null,u,ne);for(ee in u)if(ne=u[ee],ie=s[ee],u.hasOwnProperty(ee)&&ne!==ie&&(ne!=null||ie!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(a(137,r));break;default:mt(n,r,ee,ne,u,ie)}return;default:if(Dd(r)){for(var pt in s)ne=s[pt],s.hasOwnProperty(pt)&&ne!==void 0&&!u.hasOwnProperty(pt)&&_y(n,r,pt,void 0,u,ne);for(le in u)ne=u[le],ie=s[le],!u.hasOwnProperty(le)||ne===ie||ne===void 0&&ie===void 0||_y(n,r,le,ne,u,ie);return}}for(var F in s)ne=s[F],s.hasOwnProperty(F)&&ne!=null&&!u.hasOwnProperty(F)&&mt(n,r,F,null,u,ne);for(fe in u)ne=u[fe],ie=s[fe],!u.hasOwnProperty(fe)||ne===ie||ne==null&&ie==null||mt(n,r,fe,ne,u,ie)}function fb(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function C3(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,s=performance.getEntriesByType("resource"),u=0;u<s.length;u++){var d=s[u],m=d.transferSize,x=d.initiatorType,A=d.duration;if(m&&A&&fb(x)){for(x=0,A=d.responseEnd,u+=1;u<s.length;u++){var H=s[u],ee=H.startTime;if(ee>A)break;var le=H.transferSize,fe=H.initiatorType;le&&fb(fe)&&(H=H.responseEnd,x+=le*(H<A?1:(A-ee)/(H-ee)))}if(--u,r+=8*(m+x)/(d.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Sy=null,xy=null;function Ic(n){return n.nodeType===9?n:n.ownerDocument}function db(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hb(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function wy(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Ey=null;function M3(){var n=window.event;return n&&n.type==="popstate"?n===Ey?!1:(Ey=n,!0):(Ey=null,!1)}var yb=typeof setTimeout=="function"?setTimeout:void 0,k3=typeof clearTimeout=="function"?clearTimeout:void 0,mb=typeof Promise=="function"?Promise:void 0,A3=typeof queueMicrotask=="function"?queueMicrotask:typeof mb<"u"?function(n){return mb.resolve(null).then(n).catch(T3)}:yb;function T3(n){setTimeout(function(){throw n})}function Fi(n){return n==="head"}function pb(n,r){var s=r,u=0;do{var d=s.nextSibling;if(n.removeChild(s),d&&d.nodeType===8)if(s=d.data,s==="/$"||s==="/&"){if(u===0){n.removeChild(d),al(r);return}u--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")u++;else if(s==="html")Uo(n.ownerDocument.documentElement);else if(s==="head"){s=n.ownerDocument.head,Uo(s);for(var m=s.firstChild;m;){var x=m.nextSibling,A=m.nodeName;m[Ca]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&m.rel.toLowerCase()==="stylesheet"||s.removeChild(m),m=x}}else s==="body"&&Uo(n.ownerDocument.body);s=d}while(s);al(r)}function gb(n,r){var s=n;n=0;do{var u=s.nextSibling;if(s.nodeType===1?r?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(r?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),u&&u.nodeType===8)if(s=u.data,s==="/$"){if(n===0)break;n--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||n++;s=u}while(s)}function Cy(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var s=r;switch(r=r.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Cy(s),eo(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function R3(n,r,s,u){for(;n.nodeType===1;){var d=s;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[Ca])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(m=n.getAttribute("rel"),m==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(m!==d.rel||n.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=rr(n.nextSibling),n===null)break}return null}function N3(n,r,s){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=rr(n.nextSibling),n===null))return null;return n}function vb(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=rr(n.nextSibling),n===null))return null;return n}function My(n){return n.data==="$?"||n.data==="$~"}function ky(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function O3(n,r){var s=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||s.readyState!=="loading")r();else{var u=function(){r(),s.removeEventListener("DOMContentLoaded",u)};s.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function rr(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return n}var Ay=null;function bb(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"||s==="/&"){if(r===0)return rr(n.nextSibling);r--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||r++}n=n.nextSibling}return null}function _b(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(r===0)return n;r--}else s!=="/$"&&s!=="/&"||r++}n=n.previousSibling}return null}function Sb(n,r,s){switch(r=Ic(s),n){case"html":if(n=r.documentElement,!n)throw Error(a(452));return n;case"head":if(n=r.head,!n)throw Error(a(453));return n;case"body":if(n=r.body,!n)throw Error(a(454));return n;default:throw Error(a(451))}}function Uo(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);eo(n)}var ir=new Map,xb=new Set;function $c(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var oi=Y.d;Y.d={f:z3,r:D3,D:L3,C:B3,L:j3,m:U3,X:q3,S:H3,M:V3};function z3(){var n=oi.f(),r=Lc();return n||r}function D3(n){var r=Ei(n);r!==null&&r.tag===5&&r.type==="form"?H1(r):oi.r(n)}var nl=typeof document>"u"?null:document;function wb(n,r,s){var u=nl;if(u&&typeof r=="string"&&r){var d=En(r);d='link[rel="'+n+'"][href="'+d+'"]',typeof s=="string"&&(d+='[crossorigin="'+s+'"]'),xb.has(d)||(xb.add(d),n={rel:n,crossOrigin:s,href:r},u.querySelector(d)===null&&(r=u.createElement("link"),un(r,"link",n),qt(r),u.head.appendChild(r)))}}function L3(n){oi.D(n),wb("dns-prefetch",n,null)}function B3(n,r){oi.C(n,r),wb("preconnect",n,r)}function j3(n,r,s){oi.L(n,r,s);var u=nl;if(u&&n&&r){var d='link[rel="preload"][as="'+En(r)+'"]';r==="image"&&s&&s.imageSrcSet?(d+='[imagesrcset="'+En(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(d+='[imagesizes="'+En(s.imageSizes)+'"]')):d+='[href="'+En(n)+'"]';var m=d;switch(r){case"style":m=rl(n);break;case"script":m=il(n)}ir.has(m)||(n=p({rel:"preload",href:r==="image"&&s&&s.imageSrcSet?void 0:n,as:r},s),ir.set(m,n),u.querySelector(d)!==null||r==="style"&&u.querySelector(Ho(m))||r==="script"&&u.querySelector(qo(m))||(r=u.createElement("link"),un(r,"link",n),qt(r),u.head.appendChild(r)))}}function U3(n,r){oi.m(n,r);var s=nl;if(s&&n){var u=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+En(u)+'"][href="'+En(n)+'"]',m=d;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=il(n)}if(!ir.has(m)&&(n=p({rel:"modulepreload",href:n},r),ir.set(m,n),s.querySelector(d)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(qo(m)))return}u=s.createElement("link"),un(u,"link",n),qt(u),s.head.appendChild(u)}}}function H3(n,r,s){oi.S(n,r,s);var u=nl;if(u&&n){var d=Mi(u).hoistableStyles,m=rl(n);r=r||"default";var x=d.get(m);if(!x){var A={loading:0,preload:null};if(x=u.querySelector(Ho(m)))A.loading=5;else{n=p({rel:"stylesheet",href:n,"data-precedence":r},s),(s=ir.get(m))&&Ty(n,s);var H=x=u.createElement("link");qt(H),un(H,"link",n),H._p=new Promise(function(ee,le){H.onload=ee,H.onerror=le}),H.addEventListener("load",function(){A.loading|=1}),H.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Yc(x,r,u)}x={type:"stylesheet",instance:x,count:1,state:A},d.set(m,x)}}}function q3(n,r){oi.X(n,r);var s=nl;if(s&&n){var u=Mi(s).hoistableScripts,d=il(n),m=u.get(d);m||(m=s.querySelector(qo(d)),m||(n=p({src:n,async:!0},r),(r=ir.get(d))&&Ry(n,r),m=s.createElement("script"),qt(m),un(m,"link",n),s.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(d,m))}}function V3(n,r){oi.M(n,r);var s=nl;if(s&&n){var u=Mi(s).hoistableScripts,d=il(n),m=u.get(d);m||(m=s.querySelector(qo(d)),m||(n=p({src:n,async:!0,type:"module"},r),(r=ir.get(d))&&Ry(n,r),m=s.createElement("script"),qt(m),un(m,"link",n),s.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(d,m))}}function Eb(n,r,s,u){var d=(d=me.current)?$c(d):null;if(!d)throw Error(a(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(r=rl(s.href),s=Mi(d).hoistableStyles,u=s.get(r),u||(u={type:"style",instance:null,count:0,state:null},s.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=rl(s.href);var m=Mi(d).hoistableStyles,x=m.get(n);if(x||(d=d.ownerDocument||d,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,x),(m=d.querySelector(Ho(n)))&&!m._p&&(x.instance=m,x.state.loading=5),ir.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},ir.set(n,s),m||P3(d,n,s,x.state))),r&&u===null)throw Error(a(528,""));return x}if(r&&u!==null)throw Error(a(529,""));return null;case"script":return r=s.async,s=s.src,typeof s=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=il(s),s=Mi(d).hoistableScripts,u=s.get(r),u||(u={type:"script",instance:null,count:0,state:null},s.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,n))}}function rl(n){return'href="'+En(n)+'"'}function Ho(n){return'link[rel="stylesheet"]['+n+"]"}function Cb(n){return p({},n,{"data-precedence":n.precedence,precedence:null})}function P3(n,r,s,u){n.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=n.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),un(r,"link",s),qt(r),n.head.appendChild(r))}function il(n){return'[src="'+En(n)+'"]'}function qo(n){return"script[async]"+n}function Mb(n,r,s){if(r.count++,r.instance===null)switch(r.type){case"style":var u=n.querySelector('style[data-href~="'+En(s.href)+'"]');if(u)return r.instance=u,qt(u),u;var d=p({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),qt(u),un(u,"style",d),Yc(u,s.precedence,n),r.instance=u;case"stylesheet":d=rl(s.href);var m=n.querySelector(Ho(d));if(m)return r.state.loading|=4,r.instance=m,qt(m),m;u=Cb(s),(d=ir.get(d))&&Ty(u,d),m=(n.ownerDocument||n).createElement("link"),qt(m);var x=m;return x._p=new Promise(function(A,H){x.onload=A,x.onerror=H}),un(m,"link",u),r.state.loading|=4,Yc(m,s.precedence,n),r.instance=m;case"script":return m=il(s.src),(d=n.querySelector(qo(m)))?(r.instance=d,qt(d),d):(u=s,(d=ir.get(m))&&(u=p({},s),Ry(u,d)),n=n.ownerDocument||n,d=n.createElement("script"),qt(d),un(d,"link",u),n.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,Yc(u,s.precedence,n));return r.instance}function Yc(n,r,s){for(var u=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=u.length?u[u.length-1]:null,m=d,x=0;x<u.length;x++){var A=u[x];if(A.dataset.precedence===r)m=A;else if(m!==d)break}m?m.parentNode.insertBefore(n,m.nextSibling):(r=s.nodeType===9?s.head:s,r.insertBefore(n,r.firstChild))}function Ty(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function Ry(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var Fc=null;function kb(n,r,s){if(Fc===null){var u=new Map,d=Fc=new Map;d.set(s,u)}else d=Fc,u=d.get(s),u||(u=new Map,d.set(s,u));if(u.has(n))return u;for(u.set(n,null),s=s.getElementsByTagName(n),d=0;d<s.length;d++){var m=s[d];if(!(m[Ca]||m[Xt]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var x=m.getAttribute(r)||"";x=n+x;var A=u.get(x);A?A.push(m):u.set(x,[m])}}return u}function Ab(n,r,s){n=n.ownerDocument||n,n.head.insertBefore(s,r==="title"?n.querySelector("head > title"):null)}function I3(n,r,s){if(s===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return n=r.disabled,typeof r.precedence=="string"&&n==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Tb(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function $3(n,r,s,u){if(s.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var d=rl(u.href),m=r.querySelector(Ho(d));if(m){r=m._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=Zc.bind(n),r.then(n,n)),s.state.loading|=4,s.instance=m,qt(m);return}m=r.ownerDocument||r,u=Cb(u),(d=ir.get(d))&&Ty(u,d),m=m.createElement("link"),qt(m);var x=m;x._p=new Promise(function(A,H){x.onload=A,x.onerror=H}),un(m,"link",u),s.instance=m}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,r),(r=s.state.preload)&&(s.state.loading&3)===0&&(n.count++,s=Zc.bind(n),r.addEventListener("load",s),r.addEventListener("error",s))}}var Ny=0;function Y3(n,r){return n.stylesheets&&n.count===0&&Qc(n,n.stylesheets),0<n.count||0<n.imgCount?function(s){var u=setTimeout(function(){if(n.stylesheets&&Qc(n,n.stylesheets),n.unsuspend){var m=n.unsuspend;n.unsuspend=null,m()}},6e4+r);0<n.imgBytes&&Ny===0&&(Ny=62500*C3());var d=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Qc(n,n.stylesheets),n.unsuspend)){var m=n.unsuspend;n.unsuspend=null,m()}},(n.imgBytes>Ny?50:800)+r);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(d)}}:null}function Zc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Gc=null;function Qc(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Gc=new Map,r.forEach(F3,n),Gc=null,Zc.call(n))}function F3(n,r){if(!(r.state.loading&4)){var s=Gc.get(n);if(s)var u=s.get(null);else{s=new Map,Gc.set(n,s);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var x=d[m];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(s.set(x.dataset.precedence,x),u=x)}u&&s.set(null,u)}d=r.instance,x=d.getAttribute("data-precedence"),m=s.get(x)||u,m===u&&s.set(null,d),s.set(x,d),this.count++,u=Zc.bind(this),d.addEventListener("load",u),d.addEventListener("error",u),m?m.parentNode.insertBefore(d,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),r.state.loading|=4}}var Vo={$$typeof:E,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Z3(n,r,s,u,d,m,x,A,H){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Kl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.hiddenUpdates=Kl(null),this.identifierPrefix=u,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function Rb(n,r,s,u,d,m,x,A,H,ee,le,fe){return n=new Z3(n,r,s,x,H,ee,le,fe,A),r=1,m===!0&&(r|=24),m=Bn(3,null,null,r),n.current=m,m.stateNode=n,r=ch(),r.refCount++,n.pooledCache=r,r.refCount++,m.memoizedState={element:u,isDehydrated:s,cache:r},yh(m),n}function Nb(n){return n?(n=Ls,n):Ls}function Ob(n,r,s,u,d,m){d=Nb(d),u.context===null?u.context=d:u.pendingContext=d,u=Li(r),u.payload={element:s},m=m===void 0?null:m,m!==null&&(u.callback=m),s=Bi(n,u,r),s!==null&&(Rn(s,n,r),bo(s,n,r))}function zb(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<r?s:r}}function Oy(n,r){zb(n,r),(n=n.alternate)&&zb(n,r)}function Db(n){if(n.tag===13||n.tag===31){var r=Na(n,67108864);r!==null&&Rn(r,n,67108864),Oy(n,67108864)}}function Lb(n){if(n.tag===13||n.tag===31){var r=Vn();r=Jl(r);var s=Na(n,r);s!==null&&Rn(s,n,r),Oy(n,r)}}var Xc=!0;function G3(n,r,s,u){var d=U.T;U.T=null;var m=Y.p;try{Y.p=2,zy(n,r,s,u)}finally{Y.p=m,U.T=d}}function Q3(n,r,s,u){var d=U.T;U.T=null;var m=Y.p;try{Y.p=8,zy(n,r,s,u)}finally{Y.p=m,U.T=d}}function zy(n,r,s,u){if(Xc){var d=Dy(u);if(d===null)by(n,r,u,Kc,s),jb(n,u);else if(K3(d,n,r,s,u))u.stopPropagation();else if(jb(n,u),r&4&&-1<X3.indexOf(n)){for(;d!==null;){var m=Ei(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var x=Pr(m.pendingLanes);if(x!==0){var A=m;for(A.pendingLanes|=2,A.entangledLanes|=2;x;){var H=1<<31-Qt(x);A.entanglements[1]|=H,x&=~H}Tr(m),(ct&6)===0&&(zc=te()+500,Lo(0))}}break;case 31:case 13:A=Na(m,2),A!==null&&Rn(A,m,2),Lc(),Oy(m,2)}if(m=Dy(u),m===null&&by(n,r,u,Kc,s),m===d)break;d=m}d!==null&&u.stopPropagation()}else by(n,r,u,null,s)}}function Dy(n){return n=Bd(n),Ly(n)}var Kc=null;function Ly(n){if(Kc=null,n=wi(n),n!==null){var r=o(n);if(r===null)n=null;else{var s=r.tag;if(s===13){if(n=c(r),n!==null)return n;n=null}else if(s===31){if(n=f(r),n!==null)return n;n=null}else if(s===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return Kc=n,null}function Bb(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_e()){case pe:return 2;case ge:return 8;case we:case Ve:return 32;case We:return 268435456;default:return 32}default:return 32}}var By=!1,Zi=null,Gi=null,Qi=null,Po=new Map,Io=new Map,Xi=[],X3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function jb(n,r){switch(n){case"focusin":case"focusout":Zi=null;break;case"dragenter":case"dragleave":Gi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":Po.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Io.delete(r.pointerId)}}function $o(n,r,s,u,d,m){return n===null||n.nativeEvent!==m?(n={blockedOn:r,domEventName:s,eventSystemFlags:u,nativeEvent:m,targetContainers:[d]},r!==null&&(r=Ei(r),r!==null&&Db(r)),n):(n.eventSystemFlags|=u,r=n.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),n)}function K3(n,r,s,u,d){switch(r){case"focusin":return Zi=$o(Zi,n,r,s,u,d),!0;case"dragenter":return Gi=$o(Gi,n,r,s,u,d),!0;case"mouseover":return Qi=$o(Qi,n,r,s,u,d),!0;case"pointerover":var m=d.pointerId;return Po.set(m,$o(Po.get(m)||null,n,r,s,u,d)),!0;case"gotpointercapture":return m=d.pointerId,Io.set(m,$o(Io.get(m)||null,n,r,s,u,d)),!0}return!1}function Ub(n){var r=wi(n.target);if(r!==null){var s=o(r);if(s!==null){if(r=s.tag,r===13){if(r=c(s),r!==null){n.blockedOn=r,Hu(n.priority,function(){Lb(s)});return}}else if(r===31){if(r=f(s),r!==null){n.blockedOn=r,Hu(n.priority,function(){Lb(s)});return}}else if(r===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Jc(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var s=Dy(n.nativeEvent);if(s===null){s=n.nativeEvent;var u=new s.constructor(s.type,s);Ld=u,s.target.dispatchEvent(u),Ld=null}else return r=Ei(s),r!==null&&Db(r),n.blockedOn=s,!1;r.shift()}return!0}function Hb(n,r,s){Jc(n)&&s.delete(r)}function J3(){By=!1,Zi!==null&&Jc(Zi)&&(Zi=null),Gi!==null&&Jc(Gi)&&(Gi=null),Qi!==null&&Jc(Qi)&&(Qi=null),Po.forEach(Hb),Io.forEach(Hb)}function Wc(n,r){n.blockedOn===r&&(n.blockedOn=null,By||(By=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,J3)))}var ef=null;function qb(n){ef!==n&&(ef=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ef===n&&(ef=null);for(var r=0;r<n.length;r+=3){var s=n[r],u=n[r+1],d=n[r+2];if(typeof u!="function"){if(Ly(u||s)===null)continue;break}var m=Ei(s);m!==null&&(n.splice(r,3),r-=3,Dh(m,{pending:!0,data:d,method:s.method,action:u},u,d))}}))}function al(n){function r(H){return Wc(H,n)}Zi!==null&&Wc(Zi,n),Gi!==null&&Wc(Gi,n),Qi!==null&&Wc(Qi,n),Po.forEach(r),Io.forEach(r);for(var s=0;s<Xi.length;s++){var u=Xi[s];u.blockedOn===n&&(u.blockedOn=null)}for(;0<Xi.length&&(s=Xi[0],s.blockedOn===null);)Ub(s),s.blockedOn===null&&Xi.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(u=0;u<s.length;u+=3){var d=s[u],m=s[u+1],x=d[fn]||null;if(typeof m=="function")x||qb(s);else if(x){var A=null;if(m&&m.hasAttribute("formAction")){if(d=m,x=m[fn]||null)A=x.formAction;else if(Ly(d)!==null)continue}else A=x.action;typeof A=="function"?s[u+1]=A:(s.splice(u,3),u-=3),qb(s)}}}function Vb(){function n(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(x){return d=x})},focusReset:"manual",scroll:"manual"})}function r(){d!==null&&(d(),d=null),u||setTimeout(s,20)}function s(){if(!u&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,d=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(s,100),function(){u=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),d!==null&&(d(),d=null)}}}function jy(n){this._internalRoot=n}tf.prototype.render=jy.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(a(409));var s=r.current,u=Vn();Ob(s,u,n,r,null,null)},tf.prototype.unmount=jy.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Ob(n.current,2,null,n,null,null),Lc(),r[Ir]=null}};function tf(n){this._internalRoot=n}tf.prototype.unstable_scheduleHydration=function(n){if(n){var r=Uu();n={blockedOn:null,target:n,priority:r};for(var s=0;s<Xi.length&&r!==0&&r<Xi[s].priority;s++);Xi.splice(s,0,n),s===0&&Ub(n)}};var Pb=t.version;if(Pb!=="19.2.4")throw Error(a(527,Pb,"19.2.4"));Y.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(a(188)):(n=Object.keys(n).join(","),Error(a(268,n)));return n=y(r),n=n!==null?g(n):null,n=n===null?null:n.stateNode,n};var W3={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nf.isDisabled&&nf.supportsFiber)try{Rt=nf.inject(W3),an=nf}catch{}}return Fo.createRoot=function(n,r){if(!l(n))throw Error(a(299));var s=!1,u="",d=Q1,m=X1,x=K1;return r!=null&&(r.unstable_strictMode===!0&&(s=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(x=r.onRecoverableError)),r=Rb(n,1,!1,null,null,s,u,null,d,m,x,Vb),n[Ir]=r.current,vy(n),new jy(r)},Fo.hydrateRoot=function(n,r,s){if(!l(n))throw Error(a(299));var u=!1,d="",m=Q1,x=X1,A=K1,H=null;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(m=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(A=s.onRecoverableError),s.formState!==void 0&&(H=s.formState)),r=Rb(n,1,!0,r,s??null,u,d,H,m,x,A,Vb),r.context=Nb(null),s=r.current,u=Vn(),u=Jl(u),d=Li(u),d.callback=null,Bi(s,d,u),s=u,r.current.lanes=s,Ea(r,s),Tr(r),n[Ir]=r.current,vy(n),new tf(r)},Fo.version="19.2.4",Fo}var Wb;function h4(){if(Wb)return $y.exports;Wb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$y.exports=d4(),$y.exports}var y4=h4();const r7=Er(y4);var Il=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xa,oa,gl,Tx,m4=(Tx=class extends Il{constructor(){super();Le(this,Xa);Le(this,oa);Le(this,gl);Se(this,gl,t=>{if(typeof window<"u"&&window.addEventListener){const i=()=>t();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){V(this,oa)||this.setEventListener(V(this,gl))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,oa))==null||t.call(this),Se(this,oa,void 0))}setEventListener(t){var i;Se(this,gl,t),(i=V(this,oa))==null||i.call(this),Se(this,oa,t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(t){V(this,Xa)!==t&&(Se(this,Xa,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(i=>{i(t)})}isFocused(){var t;return typeof V(this,Xa)=="boolean"?V(this,Xa):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Xa=new WeakMap,oa=new WeakMap,gl=new WeakMap,Tx),vg=new m4,p4={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ua,gg,Rx,g4=(Rx=class{constructor(){Le(this,ua,p4);Le(this,gg,!1)}setTimeoutProvider(e){Se(this,ua,e)}setTimeout(e,t){return V(this,ua).setTimeout(e,t)}clearTimeout(e){V(this,ua).clearTimeout(e)}setInterval(e,t){return V(this,ua).setInterval(e,t)}clearInterval(e){V(this,ua).clearInterval(e)}},ua=new WeakMap,gg=new WeakMap,Rx),Ga=new g4;function v4(e){setTimeout(e,0)}var b4=typeof window>"u"||"Deno"in globalThis;function vn(){}function _4(e,t){return typeof e=="function"?e(t):e}function wp(e){return typeof e=="number"&&e>=0&&e!==1/0}function $x(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ga(e,t){return typeof e=="function"?e(t):e}function sr(e,t){return typeof e=="function"?e(t):e}function e2(e,t){const{type:i="all",exact:a,fetchStatus:l,predicate:o,queryKey:c,stale:f}=e;if(c){if(a){if(t.queryHash!==bg(c,t.options))return!1}else if(!ru(t.queryKey,c))return!1}if(i!=="all"){const h=t.isActive();if(i==="active"&&!h||i==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||l&&l!==t.state.fetchStatus||o&&!o(t))}function t2(e,t){const{exact:i,status:a,predicate:l,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(i){if(os(t.options.mutationKey)!==os(o))return!1}else if(!ru(t.options.mutationKey,o))return!1}return!(a&&t.state.status!==a||l&&!l(t))}function bg(e,t){return((t==null?void 0:t.queryKeyHashFn)||os)(e)}function os(e){return JSON.stringify(e,(t,i)=>Ep(i)?Object.keys(i).sort().reduce((a,l)=>(a[l]=i[l],a),{}):i)}function ru(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(i=>ru(e[i],t[i])):!1}var S4=Object.prototype.hasOwnProperty;function _g(e,t,i=0){if(e===t)return e;if(i>500)return t;const a=n2(e)&&n2(t);if(!a&&!(Ep(e)&&Ep(t)))return t;const o=(a?e:Object.keys(e)).length,c=a?t:Object.keys(t),f=c.length,h=a?new Array(f):{};let y=0;for(let g=0;g<f;g++){const p=a?g:c[g],v=e[p],b=t[p];if(v===b){h[p]=v,(a?g<o:S4.call(e,p))&&y++;continue}if(v===null||b===null||typeof v!="object"||typeof b!="object"){h[p]=b;continue}const S=_g(v,b,i+1);h[p]=S,S===v&&y++}return o===f&&y===o?e:h}function Mf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}function n2(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ep(e){if(!r2(e))return!1;const t=e.constructor;if(t===void 0)return!0;const i=t.prototype;return!(!r2(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function r2(e){return Object.prototype.toString.call(e)==="[object Object]"}function x4(e){return new Promise(t=>{Ga.setTimeout(t,e)})}function Cp(e,t,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?_g(e,t):t}function w4(e,t,i=0){const a=[...e,t];return i&&a.length>i?a.slice(1):a}function E4(e,t,i=0){const a=[t,...e];return i&&a.length>i?a.slice(0,-1):a}var Sg=Symbol();function Yx(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Sg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function xg(e,t){return typeof e=="function"?e(...t):!!e}function C4(e,t,i){let a=!1,l;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(l??(l=t()),a||(a=!0,l.aborted?i():l.addEventListener("abort",i,{once:!0})),l)}),e}var iu=(()=>{let e=()=>b4;return{isServer(){return e()},setIsServer(t){e=t}}})();function Mp(){let e,t;const i=new Promise((l,o)=>{e=l,t=o});i.status="pending",i.catch(()=>{});function a(l){Object.assign(i,l),delete i.resolve,delete i.reject}return i.resolve=l=>{a({status:"fulfilled",value:l}),e(l)},i.reject=l=>{a({status:"rejected",reason:l}),t(l)},i}var M4=v4;function k4(){let e=[],t=0,i=f=>{f()},a=f=>{f()},l=M4;const o=f=>{t?e.push(f):l(()=>{i(f)})},c=()=>{const f=e;e=[],f.length&&l(()=>{a(()=>{f.forEach(h=>{i(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||c()}return h},batchCalls:f=>(...h)=>{o(()=>{f(...h)})},schedule:o,setNotifyFunction:f=>{i=f},setBatchNotifyFunction:f=>{a=f},setScheduler:f=>{l=f}}}var Ut=k4(),vl,ca,bl,Nx,A4=(Nx=class extends Il{constructor(){super();Le(this,vl,!0);Le(this,ca);Le(this,bl);Se(this,bl,t=>{if(typeof window<"u"&&window.addEventListener){const i=()=>t(!0),a=()=>t(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}}})}onSubscribe(){V(this,ca)||this.setEventListener(V(this,bl))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,ca))==null||t.call(this),Se(this,ca,void 0))}setEventListener(t){var i;Se(this,bl,t),(i=V(this,ca))==null||i.call(this),Se(this,ca,t(this.setOnline.bind(this)))}setOnline(t){V(this,vl)!==t&&(Se(this,vl,t),this.listeners.forEach(a=>{a(t)}))}isOnline(){return V(this,vl)}},vl=new WeakMap,ca=new WeakMap,bl=new WeakMap,Nx),kf=new A4;function T4(e){return Math.min(1e3*2**e,3e4)}function Fx(e){return(e??"online")==="online"?kf.isOnline():!0}var kp=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Zx(e){let t=!1,i=0,a;const l=Mp(),o=()=>l.status!=="pending",c=_=>{var w;if(!o()){const C=new kp(_);v(C),(w=e.onCancel)==null||w.call(e,C)}},f=()=>{t=!0},h=()=>{t=!1},y=()=>vg.isFocused()&&(e.networkMode==="always"||kf.isOnline())&&e.canRun(),g=()=>Fx(e.networkMode)&&e.canRun(),p=_=>{o()||(a==null||a(),l.resolve(_))},v=_=>{o()||(a==null||a(),l.reject(_))},b=()=>new Promise(_=>{var w;a=C=>{(o()||y())&&_(C)},(w=e.onPause)==null||w.call(e)}).then(()=>{var _;a=void 0,o()||(_=e.onContinue)==null||_.call(e)}),S=()=>{if(o())return;let _;const w=i===0?e.initialPromise:void 0;try{_=w??e.fn()}catch(C){_=Promise.reject(C)}Promise.resolve(_).then(p).catch(C=>{var N;if(o())return;const M=e.retry??(iu.isServer()?0:3),E=e.retryDelay??T4,k=typeof E=="function"?E(i,C):E,z=M===!0||typeof M=="number"&&i<M||typeof M=="function"&&M(i,C);if(t||!z){v(C);return}i++,(N=e.onFail)==null||N.call(e,i,C),x4(k).then(()=>y()?void 0:b()).then(()=>{t?v(C):S()})})};return{promise:l,status:()=>l.status,cancel:c,continue:()=>(a==null||a(),l),cancelRetry:f,continueRetry:h,canStart:g,start:()=>(g()?S():b().then(S),l)}}var Ka,Ox,Gx=(Ox=class{constructor(){Le(this,Ka)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wp(this.gcTime)&&Se(this,Ka,Ga.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(iu.isServer()?1/0:300*1e3))}clearGcTimeout(){V(this,Ka)&&(Ga.clearTimeout(V(this,Ka)),Se(this,Ka,void 0))}},Ka=new WeakMap,Ox),Ja,_l,ar,Wa,tn,bu,es,Pn,Qx,ci,zx,R4=(zx=class extends Gx{constructor(t){super();Le(this,Pn);Le(this,Ja);Le(this,_l);Le(this,ar);Le(this,Wa);Le(this,tn);Le(this,bu);Le(this,es);Se(this,es,!1),Se(this,bu,t.defaultOptions),this.setOptions(t.options),this.observers=[],Se(this,Wa,t.client),Se(this,ar,V(this,Wa).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Se(this,Ja,a2(this.options)),this.state=t.state??V(this,Ja),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=V(this,tn))==null?void 0:t.promise}setOptions(t){if(this.options={...V(this,bu),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=a2(this.options);i.data!==void 0&&(this.setState(i2(i.data,i.dataUpdatedAt)),Se(this,Ja,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,ar).remove(this)}setData(t,i){const a=Cp(this.state.data,t,this.options);return Ze(this,Pn,ci).call(this,{data:a,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),a}setState(t,i){Ze(this,Pn,ci).call(this,{type:"setState",state:t,setStateOptions:i})}cancel(t){var a,l;const i=(a=V(this,tn))==null?void 0:a.promise;return(l=V(this,tn))==null||l.cancel(t),i?i.then(vn).catch(vn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return V(this,Ja)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>sr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Sg||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ga(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!$x(this.state.dataUpdatedAt,t)}onFocus(){var i;const t=this.observers.find(a=>a.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(i=V(this,tn))==null||i.continue()}onOnline(){var i;const t=this.observers.find(a=>a.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(i=V(this,tn))==null||i.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,ar).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(i=>i!==t),this.observers.length||(V(this,tn)&&(V(this,es)||Ze(this,Pn,Qx).call(this)?V(this,tn).cancel({revert:!0}):V(this,tn).cancelRetry()),this.scheduleGc()),V(this,ar).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ze(this,Pn,ci).call(this,{type:"invalidate"})}async fetch(t,i){var h,y,g,p,v,b,S,_,w,C,M,E;if(this.state.fetchStatus!=="idle"&&((h=V(this,tn))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(V(this,tn))return V(this,tn).continueRetry(),V(this,tn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const k=this.observers.find(z=>z.options.queryFn);k&&this.setOptions(k.options)}const a=new AbortController,l=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(Se(this,es,!0),a.signal)})},o=()=>{const k=Yx(this.options,i),N=(()=>{const D={client:V(this,Wa),queryKey:this.queryKey,meta:this.meta};return l(D),D})();return Se(this,es,!1),this.options.persister?this.options.persister(k,N,this):k(N)},f=(()=>{const k={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:V(this,Wa),state:this.state,fetchFn:o};return l(k),k})();(y=this.options.behavior)==null||y.onFetch(f,this),Se(this,_l,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=f.fetchOptions)==null?void 0:g.meta))&&Ze(this,Pn,ci).call(this,{type:"fetch",meta:(p=f.fetchOptions)==null?void 0:p.meta}),Se(this,tn,Zx({initialPromise:i==null?void 0:i.initialPromise,fn:f.fetchFn,onCancel:k=>{k instanceof kp&&k.revert&&this.setState({...V(this,_l),fetchStatus:"idle"}),a.abort()},onFail:(k,z)=>{Ze(this,Pn,ci).call(this,{type:"failed",failureCount:k,error:z})},onPause:()=>{Ze(this,Pn,ci).call(this,{type:"pause"})},onContinue:()=>{Ze(this,Pn,ci).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const k=await V(this,tn).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(b=(v=V(this,ar).config).onSuccess)==null||b.call(v,k,this),(_=(S=V(this,ar).config).onSettled)==null||_.call(S,k,this.state.error,this),k}catch(k){if(k instanceof kp){if(k.silent)return V(this,tn).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw Ze(this,Pn,ci).call(this,{type:"error",error:k}),(C=(w=V(this,ar).config).onError)==null||C.call(w,k,this),(E=(M=V(this,ar).config).onSettled)==null||E.call(M,this.state.data,k,this),k}finally{this.scheduleGc()}}},Ja=new WeakMap,_l=new WeakMap,ar=new WeakMap,Wa=new WeakMap,tn=new WeakMap,bu=new WeakMap,es=new WeakMap,Pn=new WeakSet,Qx=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ci=function(t){const i=a=>{switch(t.type){case"failed":return{...a,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...Xx(a.data,this.options),fetchMeta:t.meta??null};case"success":const l={...a,...i2(t.data,t.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Se(this,_l,t.manual?l:void 0),l;case"error":const o=t.error;return{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...t.state}}};this.state=i(this.state),Ut.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),V(this,ar).notify({query:this,type:"updated",action:t})})},zx);function Xx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Fx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function i2(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function a2(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,i=t!==void 0,a=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Nn,rt,_u,pn,ts,Sl,di,fa,Su,xl,wl,ns,rs,da,El,ft,Ko,Ap,Tp,Rp,Np,Op,zp,Dp,Kx,Dx,N4=(Dx=class extends Il{constructor(t,i){super();Le(this,ft);Le(this,Nn);Le(this,rt);Le(this,_u);Le(this,pn);Le(this,ts);Le(this,Sl);Le(this,di);Le(this,fa);Le(this,Su);Le(this,xl);Le(this,wl);Le(this,ns);Le(this,rs);Le(this,da);Le(this,El,new Set);this.options=i,Se(this,Nn,t),Se(this,fa,null),Se(this,di,Mp()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(V(this,rt).addObserver(this),s2(V(this,rt),this.options)?Ze(this,ft,Ko).call(this):this.updateResult(),Ze(this,ft,Np).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lp(V(this,rt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lp(V(this,rt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ze(this,ft,Op).call(this),Ze(this,ft,zp).call(this),V(this,rt).removeObserver(this)}setOptions(t){const i=this.options,a=V(this,rt);if(this.options=V(this,Nn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sr(this.options.enabled,V(this,rt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ze(this,ft,Dp).call(this),V(this,rt).setOptions(this.options),i._defaulted&&!Mf(this.options,i)&&V(this,Nn).getQueryCache().notify({type:"observerOptionsUpdated",query:V(this,rt),observer:this});const l=this.hasListeners();l&&l2(V(this,rt),a,this.options,i)&&Ze(this,ft,Ko).call(this),this.updateResult(),l&&(V(this,rt)!==a||sr(this.options.enabled,V(this,rt))!==sr(i.enabled,V(this,rt))||ga(this.options.staleTime,V(this,rt))!==ga(i.staleTime,V(this,rt)))&&Ze(this,ft,Ap).call(this);const o=Ze(this,ft,Tp).call(this);l&&(V(this,rt)!==a||sr(this.options.enabled,V(this,rt))!==sr(i.enabled,V(this,rt))||o!==V(this,da))&&Ze(this,ft,Rp).call(this,o)}getOptimisticResult(t){const i=V(this,Nn).getQueryCache().build(V(this,Nn),t),a=this.createResult(i,t);return z4(this,a)&&(Se(this,pn,a),Se(this,Sl,this.options),Se(this,ts,V(this,rt).state)),a}getCurrentResult(){return V(this,pn)}trackResult(t,i){return new Proxy(t,{get:(a,l)=>(this.trackProp(l),i==null||i(l),l==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&V(this,di).status==="pending"&&V(this,di).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,l))})}trackProp(t){V(this,El).add(t)}getCurrentQuery(){return V(this,rt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const i=V(this,Nn).defaultQueryOptions(t),a=V(this,Nn).getQueryCache().build(V(this,Nn),i);return a.fetch().then(()=>this.createResult(a,i))}fetch(t){return Ze(this,ft,Ko).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),V(this,pn)))}createResult(t,i){var L;const a=V(this,rt),l=this.options,o=V(this,pn),c=V(this,ts),f=V(this,Sl),y=t!==a?t.state:V(this,_u),{state:g}=t;let p={...g},v=!1,b;if(i._optimisticResults){const Q=this.hasListeners(),j=!Q&&s2(t,i),B=Q&&l2(t,a,i,l);(j||B)&&(p={...p,...Xx(g.data,t.options)}),i._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:S,errorUpdatedAt:_,status:w}=p;b=p.data;let C=!1;if(i.placeholderData!==void 0&&b===void 0&&w==="pending"){let Q;o!=null&&o.isPlaceholderData&&i.placeholderData===(f==null?void 0:f.placeholderData)?(Q=o.data,C=!0):Q=typeof i.placeholderData=="function"?i.placeholderData((L=V(this,wl))==null?void 0:L.state.data,V(this,wl)):i.placeholderData,Q!==void 0&&(w="success",b=Cp(o==null?void 0:o.data,Q,i),v=!0)}if(i.select&&b!==void 0&&!C)if(o&&b===(c==null?void 0:c.data)&&i.select===V(this,Su))b=V(this,xl);else try{Se(this,Su,i.select),b=i.select(b),b=Cp(o==null?void 0:o.data,b,i),Se(this,xl,b),Se(this,fa,null)}catch(Q){Se(this,fa,Q)}V(this,fa)&&(S=V(this,fa),b=V(this,xl),_=Date.now(),w="error");const M=p.fetchStatus==="fetching",E=w==="pending",k=w==="error",z=E&&M,N=b!==void 0,T={status:w,fetchStatus:p.fetchStatus,isPending:E,isSuccess:w==="success",isError:k,isInitialLoading:z,isLoading:z,data:b,dataUpdatedAt:p.dataUpdatedAt,error:S,errorUpdatedAt:_,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>y.dataUpdateCount||p.errorUpdateCount>y.errorUpdateCount,isFetching:M,isRefetching:M&&!E,isLoadingError:k&&!N,isPaused:p.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:k&&N,isStale:wg(t,i),refetch:this.refetch,promise:V(this,di),isEnabled:sr(i.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Q=T.data!==void 0,j=T.status==="error"&&!Q,B=re=>{j?re.reject(T.error):Q&&re.resolve(T.data)},$=()=>{const re=Se(this,di,T.promise=Mp());B(re)},G=V(this,di);switch(G.status){case"pending":t.queryHash===a.queryHash&&B(G);break;case"fulfilled":(j||T.data!==G.value)&&$();break;case"rejected":(!j||T.error!==G.reason)&&$();break}}return T}updateResult(){const t=V(this,pn),i=this.createResult(V(this,rt),this.options);if(Se(this,ts,V(this,rt).state),Se(this,Sl,this.options),V(this,ts).data!==void 0&&Se(this,wl,V(this,rt)),Mf(i,t))return;Se(this,pn,i);const a=()=>{if(!t)return!0;const{notifyOnChangeProps:l}=this.options,o=typeof l=="function"?l():l;if(o==="all"||!o&&!V(this,El).size)return!0;const c=new Set(o??V(this,El));return this.options.throwOnError&&c.add("error"),Object.keys(V(this,pn)).some(f=>{const h=f;return V(this,pn)[h]!==t[h]&&c.has(h)})};Ze(this,ft,Kx).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ze(this,ft,Np).call(this)}},Nn=new WeakMap,rt=new WeakMap,_u=new WeakMap,pn=new WeakMap,ts=new WeakMap,Sl=new WeakMap,di=new WeakMap,fa=new WeakMap,Su=new WeakMap,xl=new WeakMap,wl=new WeakMap,ns=new WeakMap,rs=new WeakMap,da=new WeakMap,El=new WeakMap,ft=new WeakSet,Ko=function(t){Ze(this,ft,Dp).call(this);let i=V(this,rt).fetch(this.options,t);return t!=null&&t.throwOnError||(i=i.catch(vn)),i},Ap=function(){Ze(this,ft,Op).call(this);const t=ga(this.options.staleTime,V(this,rt));if(iu.isServer()||V(this,pn).isStale||!wp(t))return;const a=$x(V(this,pn).dataUpdatedAt,t)+1;Se(this,ns,Ga.setTimeout(()=>{V(this,pn).isStale||this.updateResult()},a))},Tp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(V(this,rt)):this.options.refetchInterval)??!1},Rp=function(t){Ze(this,ft,zp).call(this),Se(this,da,t),!(iu.isServer()||sr(this.options.enabled,V(this,rt))===!1||!wp(V(this,da))||V(this,da)===0)&&Se(this,rs,Ga.setInterval(()=>{(this.options.refetchIntervalInBackground||vg.isFocused())&&Ze(this,ft,Ko).call(this)},V(this,da)))},Np=function(){Ze(this,ft,Ap).call(this),Ze(this,ft,Rp).call(this,Ze(this,ft,Tp).call(this))},Op=function(){V(this,ns)&&(Ga.clearTimeout(V(this,ns)),Se(this,ns,void 0))},zp=function(){V(this,rs)&&(Ga.clearInterval(V(this,rs)),Se(this,rs,void 0))},Dp=function(){const t=V(this,Nn).getQueryCache().build(V(this,Nn),this.options);if(t===V(this,rt))return;const i=V(this,rt);Se(this,rt,t),Se(this,_u,t.state),this.hasListeners()&&(i==null||i.removeObserver(this),t.addObserver(this))},Kx=function(t){Ut.batch(()=>{t.listeners&&this.listeners.forEach(i=>{i(V(this,pn))}),V(this,Nn).getQueryCache().notify({query:V(this,rt),type:"observerResultsUpdated"})})},Dx);function O4(e,t){return sr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function s2(e,t){return O4(e,t)||e.state.data!==void 0&&Lp(e,t,t.refetchOnMount)}function Lp(e,t,i){if(sr(t.enabled,e)!==!1&&ga(t.staleTime,e)!=="static"){const a=typeof i=="function"?i(e):i;return a==="always"||a!==!1&&wg(e,t)}return!1}function l2(e,t,i,a){return(e!==t||sr(a.enabled,e)===!1)&&(!i.suspense||e.state.status!=="error")&&wg(e,i)}function wg(e,t){return sr(t.enabled,e)!==!1&&e.isStaleByTime(ga(t.staleTime,e))}function z4(e,t){return!Mf(e.getCurrentResult(),t)}function o2(e){return{onFetch:(t,i)=>{var g,p,v,b,S;const a=t.options,l=(v=(p=(g=t.fetchOptions)==null?void 0:g.meta)==null?void 0:p.fetchMore)==null?void 0:v.direction,o=((b=t.state.data)==null?void 0:b.pages)||[],c=((S=t.state.data)==null?void 0:S.pageParams)||[];let f={pages:[],pageParams:[]},h=0;const y=async()=>{let _=!1;const w=E=>{C4(E,()=>t.signal,()=>_=!0)},C=Yx(t.options,t.fetchOptions),M=async(E,k,z)=>{if(_)return Promise.reject();if(k==null&&E.pages.length)return Promise.resolve(E);const D=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:k,direction:z?"backward":"forward",meta:t.options.meta};return w(j),j})(),T=await C(D),{maxPages:L}=t.options,Q=z?E4:w4;return{pages:Q(E.pages,T,L),pageParams:Q(E.pageParams,k,L)}};if(l&&o.length){const E=l==="backward",k=E?D4:u2,z={pages:o,pageParams:c},N=k(a,z);f=await M(z,N,E)}else{const E=e??o.length;do{const k=h===0?c[0]??a.initialPageParam:u2(a,f);if(h>0&&k==null)break;f=await M(f,k),h++}while(h<E)}return f};t.options.persister?t.fetchFn=()=>{var _,w;return(w=(_=t.options).persister)==null?void 0:w.call(_,y,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i)}:t.fetchFn=y}}}function u2(e,{pages:t,pageParams:i}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,i[a],i):void 0}function D4(e,{pages:t,pageParams:i}){var a;return t.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,t[0],t,i[0],i):void 0}var xu,Or,hn,is,zr,ra,Lx,L4=(Lx=class extends Gx{constructor(t){super();Le(this,zr);Le(this,xu);Le(this,Or);Le(this,hn);Le(this,is);Se(this,xu,t.client),this.mutationId=t.mutationId,Se(this,hn,t.mutationCache),Se(this,Or,[]),this.state=t.state||Jx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,Or).includes(t)||(V(this,Or).push(t),this.clearGcTimeout(),V(this,hn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Se(this,Or,V(this,Or).filter(i=>i!==t)),this.scheduleGc(),V(this,hn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,Or).length||(this.state.status==="pending"?this.scheduleGc():V(this,hn).remove(this))}continue(){var t;return((t=V(this,is))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,f,h,y,g,p,v,b,S,_,w,C,M,E,k,z,N,D;const i=()=>{Ze(this,zr,ra).call(this,{type:"continue"})},a={client:V(this,xu),meta:this.options.meta,mutationKey:this.options.mutationKey};Se(this,is,Zx({fn:()=>this.options.mutationFn?this.options.mutationFn(t,a):Promise.reject(new Error("No mutationFn found")),onFail:(T,L)=>{Ze(this,zr,ra).call(this,{type:"failed",failureCount:T,error:L})},onPause:()=>{Ze(this,zr,ra).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,hn).canRun(this)}));const l=this.state.status==="pending",o=!V(this,is).canStart();try{if(l)i();else{Ze(this,zr,ra).call(this,{type:"pending",variables:t,isPaused:o}),V(this,hn).config.onMutate&&await V(this,hn).config.onMutate(t,this,a);const L=await((f=(c=this.options).onMutate)==null?void 0:f.call(c,t,a));L!==this.state.context&&Ze(this,zr,ra).call(this,{type:"pending",context:L,variables:t,isPaused:o})}const T=await V(this,is).start();return await((y=(h=V(this,hn).config).onSuccess)==null?void 0:y.call(h,T,t,this.state.context,this,a)),await((p=(g=this.options).onSuccess)==null?void 0:p.call(g,T,t,this.state.context,a)),await((b=(v=V(this,hn).config).onSettled)==null?void 0:b.call(v,T,null,this.state.variables,this.state.context,this,a)),await((_=(S=this.options).onSettled)==null?void 0:_.call(S,T,null,t,this.state.context,a)),Ze(this,zr,ra).call(this,{type:"success",data:T}),T}catch(T){try{await((C=(w=V(this,hn).config).onError)==null?void 0:C.call(w,T,t,this.state.context,this,a))}catch(L){Promise.reject(L)}try{await((E=(M=this.options).onError)==null?void 0:E.call(M,T,t,this.state.context,a))}catch(L){Promise.reject(L)}try{await((z=(k=V(this,hn).config).onSettled)==null?void 0:z.call(k,void 0,T,this.state.variables,this.state.context,this,a))}catch(L){Promise.reject(L)}try{await((D=(N=this.options).onSettled)==null?void 0:D.call(N,void 0,T,t,this.state.context,a))}catch(L){Promise.reject(L)}throw Ze(this,zr,ra).call(this,{type:"error",error:T}),T}finally{V(this,hn).runNext(this)}}},xu=new WeakMap,Or=new WeakMap,hn=new WeakMap,is=new WeakMap,zr=new WeakSet,ra=function(t){const i=a=>{switch(t.type){case"failed":return{...a,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...a,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:t.error,failureCount:a.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Ut.batch(()=>{V(this,Or).forEach(a=>{a.onMutationUpdate(t)}),V(this,hn).notify({mutation:this,type:"updated",action:t})})},Lx);function Jx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hi,pr,wu,Bx,B4=(Bx=class extends Il{constructor(t={}){super();Le(this,hi);Le(this,pr);Le(this,wu);this.config=t,Se(this,hi,new Set),Se(this,pr,new Map),Se(this,wu,0)}build(t,i,a){const l=new L4({client:t,mutationCache:this,mutationId:++rf(this,wu)._,options:t.defaultMutationOptions(i),state:a});return this.add(l),l}add(t){V(this,hi).add(t);const i=af(t);if(typeof i=="string"){const a=V(this,pr).get(i);a?a.push(t):V(this,pr).set(i,[t])}this.notify({type:"added",mutation:t})}remove(t){if(V(this,hi).delete(t)){const i=af(t);if(typeof i=="string"){const a=V(this,pr).get(i);if(a)if(a.length>1){const l=a.indexOf(t);l!==-1&&a.splice(l,1)}else a[0]===t&&V(this,pr).delete(i)}}this.notify({type:"removed",mutation:t})}canRun(t){const i=af(t);if(typeof i=="string"){const a=V(this,pr).get(i),l=a==null?void 0:a.find(o=>o.state.status==="pending");return!l||l===t}else return!0}runNext(t){var a;const i=af(t);if(typeof i=="string"){const l=(a=V(this,pr).get(i))==null?void 0:a.find(o=>o!==t&&o.state.isPaused);return(l==null?void 0:l.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ut.batch(()=>{V(this,hi).forEach(t=>{this.notify({type:"removed",mutation:t})}),V(this,hi).clear(),V(this,pr).clear()})}getAll(){return Array.from(V(this,hi))}find(t){const i={exact:!0,...t};return this.getAll().find(a=>t2(i,a))}findAll(t={}){return this.getAll().filter(i=>t2(t,i))}notify(t){Ut.batch(()=>{this.listeners.forEach(i=>{i(t)})})}resumePausedMutations(){const t=this.getAll().filter(i=>i.state.isPaused);return Ut.batch(()=>Promise.all(t.map(i=>i.continue().catch(vn))))}},hi=new WeakMap,pr=new WeakMap,wu=new WeakMap,Bx);function af(e){var t;return(t=e.options.scope)==null?void 0:t.id}var yi,ha,On,mi,vi,Sf,Bp,jx,j4=(jx=class extends Il{constructor(i,a){super();Le(this,vi);Le(this,yi);Le(this,ha);Le(this,On);Le(this,mi);Se(this,yi,i),this.setOptions(a),this.bindMethods(),Ze(this,vi,Sf).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var l;const a=this.options;this.options=V(this,yi).defaultMutationOptions(i),Mf(this.options,a)||V(this,yi).getMutationCache().notify({type:"observerOptionsUpdated",mutation:V(this,On),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&os(a.mutationKey)!==os(this.options.mutationKey)?this.reset():((l=V(this,On))==null?void 0:l.state.status)==="pending"&&V(this,On).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=V(this,On))==null||i.removeObserver(this)}onMutationUpdate(i){Ze(this,vi,Sf).call(this),Ze(this,vi,Bp).call(this,i)}getCurrentResult(){return V(this,ha)}reset(){var i;(i=V(this,On))==null||i.removeObserver(this),Se(this,On,void 0),Ze(this,vi,Sf).call(this),Ze(this,vi,Bp).call(this)}mutate(i,a){var l;return Se(this,mi,a),(l=V(this,On))==null||l.removeObserver(this),Se(this,On,V(this,yi).getMutationCache().build(V(this,yi),this.options)),V(this,On).addObserver(this),V(this,On).execute(i)}},yi=new WeakMap,ha=new WeakMap,On=new WeakMap,mi=new WeakMap,vi=new WeakSet,Sf=function(){var a;const i=((a=V(this,On))==null?void 0:a.state)??Jx();Se(this,ha,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Bp=function(i){Ut.batch(()=>{var a,l,o,c,f,h,y,g;if(V(this,mi)&&this.hasListeners()){const p=V(this,ha).variables,v=V(this,ha).context,b={client:V(this,yi),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(l=(a=V(this,mi)).onSuccess)==null||l.call(a,i.data,p,v,b)}catch(S){Promise.reject(S)}try{(c=(o=V(this,mi)).onSettled)==null||c.call(o,i.data,null,p,v,b)}catch(S){Promise.reject(S)}}else if((i==null?void 0:i.type)==="error"){try{(h=(f=V(this,mi)).onError)==null||h.call(f,i.error,p,v,b)}catch(S){Promise.reject(S)}try{(g=(y=V(this,mi)).onSettled)==null||g.call(y,void 0,i.error,p,v,b)}catch(S){Promise.reject(S)}}}this.listeners.forEach(p=>{p(V(this,ha))})})},jx),Dr,Ux,U4=(Ux=class extends Il{constructor(t={}){super();Le(this,Dr);this.config=t,Se(this,Dr,new Map)}build(t,i,a){const l=i.queryKey,o=i.queryHash??bg(l,i);let c=this.get(o);return c||(c=new R4({client:t,queryKey:l,queryHash:o,options:t.defaultQueryOptions(i),state:a,defaultOptions:t.getQueryDefaults(l)}),this.add(c)),c}add(t){V(this,Dr).has(t.queryHash)||(V(this,Dr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const i=V(this,Dr).get(t.queryHash);i&&(t.destroy(),i===t&&V(this,Dr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ut.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,Dr).get(t)}getAll(){return[...V(this,Dr).values()]}find(t){const i={exact:!0,...t};return this.getAll().find(a=>e2(i,a))}findAll(t={}){const i=this.getAll();return Object.keys(t).length>0?i.filter(a=>e2(t,a)):i}notify(t){Ut.batch(()=>{this.listeners.forEach(i=>{i(t)})})}onFocus(){Ut.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ut.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dr=new WeakMap,Ux),zt,ya,ma,Cl,Ml,pa,kl,Al,Hx,a7=(Hx=class{constructor(e={}){Le(this,zt);Le(this,ya);Le(this,ma);Le(this,Cl);Le(this,Ml);Le(this,pa);Le(this,kl);Le(this,Al);Se(this,zt,e.queryCache||new U4),Se(this,ya,e.mutationCache||new B4),Se(this,ma,e.defaultOptions||{}),Se(this,Cl,new Map),Se(this,Ml,new Map),Se(this,pa,0)}mount(){rf(this,pa)._++,V(this,pa)===1&&(Se(this,kl,vg.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,zt).onFocus())})),Se(this,Al,kf.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,zt).onOnline())})))}unmount(){var e,t;rf(this,pa)._--,V(this,pa)===0&&((e=V(this,kl))==null||e.call(this),Se(this,kl,void 0),(t=V(this,Al))==null||t.call(this),Se(this,Al,void 0))}isFetching(e){return V(this,zt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,ya).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const t=this.defaultQueryOptions({queryKey:e});return(i=V(this,zt).get(t.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),i=V(this,zt).build(this,t),a=i.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(ga(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return V(this,zt).findAll(e).map(({queryKey:t,state:i})=>{const a=i.data;return[t,a]})}setQueryData(e,t,i){const a=this.defaultQueryOptions({queryKey:e}),l=V(this,zt).get(a.queryHash),o=l==null?void 0:l.state.data,c=_4(t,o);if(c!==void 0)return V(this,zt).build(this,a).setData(c,{...i,manual:!0})}setQueriesData(e,t,i){return Ut.batch(()=>V(this,zt).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,i)]))}getQueryState(e){var i;const t=this.defaultQueryOptions({queryKey:e});return(i=V(this,zt).get(t.queryHash))==null?void 0:i.state}removeQueries(e){const t=V(this,zt);Ut.batch(()=>{t.findAll(e).forEach(i=>{t.remove(i)})})}resetQueries(e,t){const i=V(this,zt);return Ut.batch(()=>(i.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const i={revert:!0,...t},a=Ut.batch(()=>V(this,zt).findAll(e).map(l=>l.cancel(i)));return Promise.all(a).then(vn).catch(vn)}invalidateQueries(e,t={}){return Ut.batch(()=>(V(this,zt).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const i={...t,cancelRefetch:t.cancelRefetch??!0},a=Ut.batch(()=>V(this,zt).findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let o=l.fetch(void 0,i);return i.throwOnError||(o=o.catch(vn)),l.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(a).then(vn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const i=V(this,zt).build(this,t);return i.isStaleByTime(ga(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vn).catch(vn)}fetchInfiniteQuery(e){return e.behavior=o2(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vn).catch(vn)}ensureInfiniteQueryData(e){return e.behavior=o2(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return kf.isOnline()?V(this,ya).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,zt)}getMutationCache(){return V(this,ya)}getDefaultOptions(){return V(this,ma)}setDefaultOptions(e){Se(this,ma,e)}setQueryDefaults(e,t){V(this,Cl).set(os(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,Cl).values()],i={};return t.forEach(a=>{ru(e,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(e,t){V(this,Ml).set(os(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,Ml).values()],i={};return t.forEach(a=>{ru(e,a.mutationKey)&&Object.assign(i,a.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,ma).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bg(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Sg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,ma).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,zt).clear(),V(this,ya).clear()}},zt=new WeakMap,ya=new WeakMap,ma=new WeakMap,Cl=new WeakMap,Ml=new WeakMap,pa=new WeakMap,kl=new WeakMap,Al=new WeakMap,Hx),Wx=R.createContext(void 0),Eu=e=>{const t=R.useContext(Wx);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},s7=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),se.jsx(Wx.Provider,{value:e,children:t})),ew=R.createContext(!1),H4=()=>R.useContext(ew);ew.Provider;function q4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var V4=R.createContext(q4()),P4=()=>R.useContext(V4),I4=(e,t,i)=>{const a=i!=null&&i.state.error&&typeof e.throwOnError=="function"?xg(e.throwOnError,[i.state.error,i]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||a)&&(t.isReset()||(e.retryOnMount=!1))},$4=e=>{R.useEffect(()=>{e.clearReset()},[e])},Y4=({result:e,errorResetBoundary:t,throwOnError:i,query:a,suspense:l})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(l&&e.data===void 0||xg(i,[e.error,a])),F4=e=>{if(e.suspense){const i=l=>l==="static"?l:Math.max(l??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...l)=>i(a(...l)):i(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Z4=(e,t)=>e.isLoading&&e.isFetching&&!t,G4=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,c2=(e,t,i)=>t.fetchOptimistic(e).catch(()=>{i.clearReset()});function Q4(e,t,i){var v,b,S,_;const a=H4(),l=P4(),o=Eu(i),c=o.defaultQueryOptions(e);(b=(v=o.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||b.call(v,c);const f=o.getQueryCache().get(c.queryHash);c._optimisticResults=a?"isRestoring":"optimistic",F4(c),I4(c,l,f),$4(l);const h=!o.getQueryCache().get(c.queryHash),[y]=R.useState(()=>new t(o,c)),g=y.getOptimisticResult(c),p=!a&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(w=>{const C=p?y.subscribe(Ut.batchCalls(w)):vn;return y.updateResult(),C},[y,p]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),R.useEffect(()=>{y.setOptions(c)},[c,y]),G4(c,g))throw c2(c,y,l);if(Y4({result:g,errorResetBoundary:l,throwOnError:c.throwOnError,query:f,suspense:c.suspense}))throw g.error;if((_=(S=o.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||_.call(S,c,g),c.experimental_prefetchInRender&&!iu.isServer()&&Z4(g,a)){const w=h?c2(c,y,l):f==null?void 0:f.promise;w==null||w.catch(vn).finally(()=>{y.updateResult()})}return c.notifyOnChangeProps?g:y.trackResult(g)}function l7(e,t){return Q4(e,N4,t)}function o7(e,t){const i=Eu(t),a=i.getQueryCache();return R.useSyncExternalStore(R.useCallback(l=>a.subscribe(Ut.batchCalls(l)),[a]),()=>i.isFetching(e),()=>i.isFetching(e))}function u7(e,t){const i=Eu(t);return X4({filters:{...e,status:"pending"}},i).length}function f2(e,t){return e.findAll(t.filters).map(i=>t.select?t.select(i):i.state)}function X4(e={},t){const i=Eu(t).getMutationCache(),a=R.useRef(e),l=R.useRef(null);return l.current===null&&(l.current=f2(i,e)),R.useEffect(()=>{a.current=e}),R.useSyncExternalStore(R.useCallback(o=>i.subscribe(()=>{const c=_g(l.current,f2(i,a.current));l.current!==c&&(l.current=c,Ut.schedule(o))}),[i]),()=>l.current,()=>l.current)}function c7(e,t){const i=Eu(t),[a]=R.useState(()=>new j4(i,e));R.useEffect(()=>{a.setOptions(e)},[a,e]);const l=R.useSyncExternalStore(R.useCallback(c=>a.subscribe(Ut.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),o=R.useCallback((c,f)=>{a.mutate(c,f).catch(vn)},[a]);if(l.error&&xg(a.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:o,mutateAsync:l.mutate}}/**
50
- * react-router v7.13.1
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var d2="popstate";function h2(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function K4(e={}){function t(a,l){var y;let o=(y=l.state)==null?void 0:y.masked,{pathname:c,search:f,hash:h}=o||a.location;return jp("",{pathname:c,search:f,hash:h},l.state&&l.state.usr||null,l.state&&l.state.key||"default",o?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function i(a,l){return typeof l=="string"?l:au(l)}return W4(t,i,null,e)}function Mt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function lr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function J4(){return Math.random().toString(36).substring(2,10)}function y2(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function jp(e,t,i=null,a,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?$l(t):t,state:i,key:t&&t.key||a||J4(),unstable_mask:l}}function au({pathname:e="/",search:t="",hash:i=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function $l(e){let t={};if(e){let i=e.indexOf("#");i>=0&&(t.hash=e.substring(i),e=e.substring(0,i));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function W4(e,t,i,a={}){let{window:l=document.defaultView,v5Compat:o=!1}=a,c=l.history,f="POP",h=null,y=g();y==null&&(y=0,c.replaceState({...c.state,idx:y},""));function g(){return(c.state||{idx:null}).idx}function p(){f="POP";let w=g(),C=w==null?null:w-y;y=w,h&&h({action:f,location:_.location,delta:C})}function v(w,C){f="PUSH";let M=h2(w)?w:jp(_.location,w,C);y=g()+1;let E=y2(M,y),k=_.createHref(M.unstable_mask||M);try{c.pushState(E,"",k)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;l.location.assign(k)}o&&h&&h({action:f,location:_.location,delta:1})}function b(w,C){f="REPLACE";let M=h2(w)?w:jp(_.location,w,C);y=g();let E=y2(M,y),k=_.createHref(M.unstable_mask||M);c.replaceState(E,"",k),o&&h&&h({action:f,location:_.location,delta:0})}function S(w){return ek(w)}let _={get action(){return f},get location(){return e(l,c)},listen(w){if(h)throw new Error("A history only accepts one active listener");return l.addEventListener(d2,p),h=w,()=>{l.removeEventListener(d2,p),h=null}},createHref(w){return t(l,w)},createURL:S,encodeLocation(w){let C=S(w);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:v,replace:b,go(w){return c.go(w)}};return _}function ek(e,t=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Mt(i,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:au(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=i+a),new URL(a,i)}function tw(e,t,i="/"){return tk(e,t,i,!1)}function tk(e,t,i,a){let l=typeof t=="string"?$l(t):t,o=bi(l.pathname||"/",i);if(o==null)return null;let c=nw(e);nk(c);let f=null;for(let h=0;f==null&&h<c.length;++h){let y=hk(o);f=fk(c[h],y,a)}return f}function nw(e,t=[],i=[],a="",l=!1){let o=(c,f,h=l,y)=>{let g={relativePath:y===void 0?c.path||"":y,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(a)&&h)return;Mt(g.relativePath.startsWith(a),`Absolute route path "${g.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(a.length)}let p=Br([a,g.relativePath]),v=i.concat(g);c.children&&c.children.length>0&&(Mt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),nw(c.children,t,v,p,h)),!(c.path==null&&!c.index)&&t.push({path:p,score:uk(p,c.index),routesMeta:v})};return e.forEach((c,f)=>{var h;if(c.path===""||!((h=c.path)!=null&&h.includes("?")))o(c,f);else for(let y of rw(c.path))o(c,f,!0,y)}),t}function rw(e){let t=e.split("/");if(t.length===0)return[];let[i,...a]=t,l=i.endsWith("?"),o=i.replace(/\?$/,"");if(a.length===0)return l?[o,""]:[o];let c=rw(a.join("/")),f=[];return f.push(...c.map(h=>h===""?o:[o,h].join("/"))),l&&f.push(...c),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function nk(e){e.sort((t,i)=>t.score!==i.score?i.score-t.score:ck(t.routesMeta.map(a=>a.childrenIndex),i.routesMeta.map(a=>a.childrenIndex)))}var rk=/^:[\w-]+$/,ik=3,ak=2,sk=1,lk=10,ok=-2,m2=e=>e==="*";function uk(e,t){let i=e.split("/"),a=i.length;return i.some(m2)&&(a+=ok),t&&(a+=ak),i.filter(l=>!m2(l)).reduce((l,o)=>l+(rk.test(o)?ik:o===""?sk:lk),a)}function ck(e,t){return e.length===t.length&&e.slice(0,-1).every((a,l)=>a===t[l])?e[e.length-1]-t[t.length-1]:0}function fk(e,t,i=!1){let{routesMeta:a}=e,l={},o="/",c=[];for(let f=0;f<a.length;++f){let h=a[f],y=f===a.length-1,g=o==="/"?t:t.slice(o.length)||"/",p=Af({path:h.relativePath,caseSensitive:h.caseSensitive,end:y},g),v=h.route;if(!p&&y&&i&&!a[a.length-1].route.index&&(p=Af({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!p)return null;Object.assign(l,p.params),c.push({params:l,pathname:Br([o,p.pathname]),pathnameBase:gk(Br([o,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(o=Br([o,p.pathnameBase]))}return c}function Af(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,a]=dk(e.path,e.caseSensitive,e.end),l=t.match(i);if(!l)return null;let o=l[0],c=o.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:a.reduce((y,{paramName:g,isOptional:p},v)=>{if(g==="*"){let S=f[v]||"";c=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const b=f[v];return p&&!b?y[g]=void 0:y[g]=(b||"").replace(/%2F/g,"/"),y},{}),pathname:o,pathnameBase:c,pattern:e}}function dk(e,t=!1,i=!0){lr(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 a=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,h,y,g)=>{if(a.push({paramName:f,isOptional:h!=null}),h){let p=g.charAt(y+c.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),a]}function hk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return lr(!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 bi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let i=t.endsWith("/")?t.length-1:t.length,a=e.charAt(i);return a&&a!=="/"?null:e.slice(i)||"/"}var yk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function mk(e,t="/"){let{pathname:i,search:a="",hash:l=""}=typeof e=="string"?$l(e):e,o;return i?(i=i.replace(/\/\/+/g,"/"),i.startsWith("/")?o=p2(i.substring(1),"/"):o=p2(i,t)):o=t,{pathname:o,search:vk(a),hash:bk(l)}}function p2(e,t){let i=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?i.length>1&&i.pop():l!=="."&&i.push(l)}),i.length>1?i.join("/"):"/"}function Gy(e,t,i,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function pk(e){return e.filter((t,i)=>i===0||t.route.path&&t.route.path.length>0)}function Eg(e){let t=pk(e);return t.map((i,a)=>a===t.length-1?i.pathname:i.pathnameBase)}function id(e,t,i,a=!1){let l;typeof e=="string"?l=$l(e):(l={...e},Mt(!l.pathname||!l.pathname.includes("?"),Gy("?","pathname","search",l)),Mt(!l.pathname||!l.pathname.includes("#"),Gy("#","pathname","hash",l)),Mt(!l.search||!l.search.includes("#"),Gy("#","search","hash",l)));let o=e===""||l.pathname==="",c=o?"/":l.pathname,f;if(c==null)f=i;else{let p=t.length-1;if(!a&&c.startsWith("..")){let v=c.split("/");for(;v[0]==="..";)v.shift(),p-=1;l.pathname=v.join("/")}f=p>=0?t[p]:"/"}let h=mk(l,f),y=c&&c!=="/"&&c.endsWith("/"),g=(o||c===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(y||g)&&(h.pathname+="/"),h}var Br=e=>e.join("/").replace(/\/\/+/g,"/"),gk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,bk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,_k=class{constructor(e,t,i,a=!1){this.status=e,this.statusText=t||"",this.internal=a,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function Sk(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function xk(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var iw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function aw(e,t){let i=e;if(typeof i!="string"||!yk.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let a=i,l=!1;if(iw)try{let o=new URL(window.location.href),c=i.startsWith("//")?new URL(o.protocol+i):new URL(i),f=bi(c.pathname,t);c.origin===o.origin&&f!=null?i=f+c.search+c.hash:l=!0}catch{lr(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:l,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var sw=["POST","PUT","PATCH","DELETE"];new Set(sw);var wk=["GET",...sw];new Set(wk);var Yl=R.createContext(null);Yl.displayName="DataRouter";var ad=R.createContext(null);ad.displayName="DataRouterState";var Ek=R.createContext(!1),lw=R.createContext({isTransitioning:!1});lw.displayName="ViewTransition";var Ck=R.createContext(new Map);Ck.displayName="Fetchers";var Mk=R.createContext(null);Mk.displayName="Await";var Gn=R.createContext(null);Gn.displayName="Navigation";var Cu=R.createContext(null);Cu.displayName="Location";var ur=R.createContext({outlet:null,matches:[],isDataRoute:!1});ur.displayName="Route";var Cg=R.createContext(null);Cg.displayName="RouteError";var ow="REACT_ROUTER_ERROR",kk="REDIRECT",Ak="ROUTE_ERROR_RESPONSE";function Tk(e){if(e.startsWith(`${ow}:${kk}:{`))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 Rk(e){if(e.startsWith(`${ow}:${Ak}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new _k(t.status,t.statusText,t.data)}catch{}}function Nk(e,{relative:t}={}){Mt(Fl(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:a}=R.useContext(Gn),{hash:l,pathname:o,search:c}=Mu(e,{relative:t}),f=o;return i!=="/"&&(f=o==="/"?i:Br([i,o])),a.createHref({pathname:f,search:c,hash:l})}function Fl(){return R.useContext(Cu)!=null}function qr(){return Mt(Fl(),"useLocation() may be used only in the context of a <Router> component."),R.useContext(Cu).location}var uw="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function cw(e){R.useContext(Gn).static||R.useLayoutEffect(e)}function Mg(){let{isDataRoute:e}=R.useContext(ur);return e?Yk():Ok()}function Ok(){Mt(Fl(),"useNavigate() may be used only in the context of a <Router> component.");let e=R.useContext(Yl),{basename:t,navigator:i}=R.useContext(Gn),{matches:a}=R.useContext(ur),{pathname:l}=qr(),o=JSON.stringify(Eg(a)),c=R.useRef(!1);return cw(()=>{c.current=!0}),R.useCallback((h,y={})=>{if(lr(c.current,uw),!c.current)return;if(typeof h=="number"){i.go(h);return}let g=id(h,JSON.parse(o),l,y.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:Br([t,g.pathname])),(y.replace?i.replace:i.push)(g,y.state,y)},[t,i,o,l,e])}var fw=R.createContext(null);function f7(){return R.useContext(fw)}function zk(e){let t=R.useContext(ur).outlet;return R.useMemo(()=>t&&R.createElement(fw.Provider,{value:e},t),[t,e])}function d7(){let{matches:e}=R.useContext(ur),t=e[e.length-1];return t?t.params:{}}function Mu(e,{relative:t}={}){let{matches:i}=R.useContext(ur),{pathname:a}=qr(),l=JSON.stringify(Eg(i));return R.useMemo(()=>id(e,JSON.parse(l),a,t==="path"),[e,l,a,t])}function Dk(e,t){return dw(e,t)}function dw(e,t,i){var w;Mt(Fl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=R.useContext(Gn),{matches:l}=R.useContext(ur),o=l[l.length-1],c=o?o.params:{},f=o?o.pathname:"/",h=o?o.pathnameBase:"/",y=o&&o.route;{let C=y&&y.path||"";yw(f,!y||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${C}">) 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.
59
-
60
- Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let g=qr(),p;if(t){let C=typeof t=="string"?$l(t):t;Mt(h==="/"||((w=C.pathname)==null?void 0:w.startsWith(h)),`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 "${h}" but pathname "${C.pathname}" was given in the \`location\` prop.`),p=C}else p=g;let v=p.pathname||"/",b=v;if(h!=="/"){let C=h.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(C.length).join("/")}let S=tw(e,{pathname:b});lr(y||S!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),lr(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.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 _=Hk(S&&S.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Br([h,a.encodeLocation?a.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?h:Br([h,a.encodeLocation?a.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),l,i);return t&&_?R.createElement(Cu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},_):_}function Lk(){let e=$k(),t=Sk(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=R.createElement(R.Fragment,null,R.createElement("p",null,"💿 Hey developer 👋"),R.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",R.createElement("code",{style:o},"ErrorBoundary")," or"," ",R.createElement("code",{style:o},"errorElement")," prop on your route.")),R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),i?R.createElement("pre",{style:l},i):null,c)}var Bk=R.createElement(Lk,null),hw=class extends R.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 i=Rk(e.digest);i&&(e=i)}let t=e!==void 0?R.createElement(ur.Provider,{value:this.props.routeContext},R.createElement(Cg.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?R.createElement(jk,{error:e},t):t}};hw.contextType=Ek;var Qy=new WeakMap;function jk({children:e,error:t}){let{basename:i}=R.useContext(Gn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=Tk(t.digest);if(a){let l=Qy.get(t);if(l)throw l;let o=aw(a.location,i);if(iw&&!Qy.get(t))if(o.isExternal||a.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:a.replace}));throw Qy.set(t,c),c}return R.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function Uk({routeContext:e,match:t,children:i}){let a=R.useContext(Yl);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),R.createElement(ur.Provider,{value:e},i)}function Hk(e,t=[],i){let a=i==null?void 0:i.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let l=e,o=a==null?void 0:a.errors;if(o!=null){let g=l.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);Mt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,g+1))}let c=!1,f=-1;if(i&&a){c=a.renderFallback;for(let g=0;g<l.length;g++){let p=l[g];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(f=g),p.route.id){let{loaderData:v,errors:b}=a,S=p.route.loader&&!v.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||S){i.isStatic&&(c=!0),f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}}let h=i==null?void 0:i.onError,y=a&&h?(g,p)=>{var v,b;h(g,{location:a.location,params:((b=(v=a.matches)==null?void 0:v[0])==null?void 0:b.params)??{},unstable_pattern:xk(a.matches),errorInfo:p})}:void 0;return l.reduceRight((g,p,v)=>{let b,S=!1,_=null,w=null;a&&(b=o&&p.route.id?o[p.route.id]:void 0,_=p.route.errorElement||Bk,c&&(f<0&&v===0?(yw("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,w=null):f===v&&(S=!0,w=p.route.hydrateFallbackElement||null)));let C=t.concat(l.slice(0,v+1)),M=()=>{let E;return b?E=_:S?E=w:p.route.Component?E=R.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=g,R.createElement(Uk,{match:p,routeContext:{outlet:g,matches:C,isDataRoute:a!=null},children:E})};return a&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?R.createElement(hw,{location:a.location,revalidation:a.revalidation,component:_,error:b,children:M(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:y}):M()},null)}function kg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qk(e){let t=R.useContext(Yl);return Mt(t,kg(e)),t}function Vk(e){let t=R.useContext(ad);return Mt(t,kg(e)),t}function Pk(e){let t=R.useContext(ur);return Mt(t,kg(e)),t}function Ag(e){let t=Pk(e),i=t.matches[t.matches.length-1];return Mt(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function Ik(){return Ag("useRouteId")}function $k(){var a;let e=R.useContext(Cg),t=Vk("useRouteError"),i=Ag("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[i]}function Yk(){let{router:e}=qk("useNavigate"),t=Ag("useNavigate"),i=R.useRef(!1);return cw(()=>{i.current=!0}),R.useCallback(async(l,o={})=>{lr(i.current,uw),i.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...o}))},[e,t])}var g2={};function yw(e,t,i){!t&&!g2[e]&&(g2[e]=!0,lr(!1,i))}R.memo(Fk);function Fk({routes:e,future:t,state:i,isStatic:a,onError:l}){return dw(e,void 0,{state:i,isStatic:a,onError:l})}function h7({to:e,replace:t,state:i,relative:a}){Mt(Fl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=R.useContext(Gn);lr(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=R.useContext(ur),{pathname:c}=qr(),f=Mg(),h=id(e,Eg(o),c,a==="path"),y=JSON.stringify(h);return R.useEffect(()=>{f(JSON.parse(y),{replace:t,state:i,relative:a})},[f,y,a,t,i]),null}function y7(e){return zk(e.context)}function Zk(e){Mt(!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 Gk({basename:e="/",children:t=null,location:i,navigationType:a="POP",navigator:l,static:o=!1,unstable_useTransitions:c}){Mt(!Fl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),h=R.useMemo(()=>({basename:f,navigator:l,static:o,unstable_useTransitions:c,future:{}}),[f,l,o,c]);typeof i=="string"&&(i=$l(i));let{pathname:y="/",search:g="",hash:p="",state:v=null,key:b="default",unstable_mask:S}=i,_=R.useMemo(()=>{let w=bi(y,f);return w==null?null:{location:{pathname:w,search:g,hash:p,state:v,key:b,unstable_mask:S},navigationType:a}},[f,y,g,p,v,b,a,S]);return lr(_!=null,`<Router basename="${f}"> is not able to match the URL "${y}${g}${p}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:R.createElement(Gn.Provider,{value:h},R.createElement(Cu.Provider,{children:t,value:_}))}function m7({children:e,location:t}){return Dk(Up(e),t)}function Up(e,t=[]){let i=[];return R.Children.forEach(e,(a,l)=>{if(!R.isValidElement(a))return;let o=[...t,l];if(a.type===R.Fragment){i.push.apply(i,Up(a.props.children,o));return}Mt(a.type===Zk,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Mt(!a.props.index||!a.props.children,"An index route cannot have child routes.");let c={id:a.props.id||o.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(c.children=Up(a.props.children,o)),i.push(c)}),i}var xf="get",wf="application/x-www-form-urlencoded";function sd(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Qk(e){return sd(e)&&e.tagName.toLowerCase()==="button"}function Xk(e){return sd(e)&&e.tagName.toLowerCase()==="form"}function Kk(e){return sd(e)&&e.tagName.toLowerCase()==="input"}function Jk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wk(e,t){return e.button===0&&(!t||t==="_self")&&!Jk(e)}function Hp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,i)=>{let a=e[i];return t.concat(Array.isArray(a)?a.map(l=>[i,l]):[[i,a]])},[]))}function eA(e,t){let i=Hp(e);return t&&t.forEach((a,l)=>{i.has(l)||t.getAll(l).forEach(o=>{i.append(l,o)})}),i}var sf=null;function tA(){if(sf===null)try{new FormData(document.createElement("form"),0),sf=!1}catch{sf=!0}return sf}var nA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xy(e){return e!=null&&!nA.has(e)?(lr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wf}"`),null):e}function rA(e,t){let i,a,l,o,c;if(Xk(e)){let f=e.getAttribute("action");a=f?bi(f,t):null,i=e.getAttribute("method")||xf,l=Xy(e.getAttribute("enctype"))||wf,o=new FormData(e)}else if(Qk(e)||Kk(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=e.getAttribute("formaction")||f.getAttribute("action");if(a=h?bi(h,t):null,i=e.getAttribute("formmethod")||f.getAttribute("method")||xf,l=Xy(e.getAttribute("formenctype"))||Xy(f.getAttribute("enctype"))||wf,o=new FormData(f,e),!tA()){let{name:y,type:g,value:p}=e;if(g==="image"){let v=y?`${y}.`:"";o.append(`${v}x`,"0"),o.append(`${v}y`,"0")}else y&&o.append(y,p)}}else{if(sd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=xf,a=null,l=wf,c=e}return o&&l==="text/plain"&&(c=o,o=void 0),{action:a,method:i.toLowerCase(),encType:l,formData:o,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Tg(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function iA(e,t,i,a){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${a}`:l.pathname=`${l.pathname}.${a}`:l.pathname==="/"?l.pathname=`_root.${a}`:t&&bi(l.pathname,t)==="/"?l.pathname=`${t.replace(/\/$/,"")}/_root.${a}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${a}`,l}async function aA(e,t){if(e.id in t)return t[e.id];try{let i=await import(e.module);return t[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sA(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 lA(e,t,i){let a=await Promise.all(e.map(async l=>{let o=t.routes[l.route.id];if(o){let c=await aA(o,i);return c.links?c.links():[]}return[]}));return fA(a.flat(1).filter(sA).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function v2(e,t,i,a,l,o){let c=(h,y)=>i[y]?h.route.id!==i[y].route.id:!0,f=(h,y)=>{var g;return i[y].pathname!==h.pathname||((g=i[y].route.path)==null?void 0:g.endsWith("*"))&&i[y].params["*"]!==h.params["*"]};return o==="assets"?t.filter((h,y)=>c(h,y)||f(h,y)):o==="data"?t.filter((h,y)=>{var p;let g=a.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(c(h,y)||f(h,y))return!0;if(h.route.shouldRevalidate){let v=h.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((p=i[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function oA(e,t,{includeHydrateFallback:i}={}){return uA(e.map(a=>{let l=t.routes[a.route.id];if(!l)return[];let o=[l.module];return l.clientActionModule&&(o=o.concat(l.clientActionModule)),l.clientLoaderModule&&(o=o.concat(l.clientLoaderModule)),i&&l.hydrateFallbackModule&&(o=o.concat(l.hydrateFallbackModule)),l.imports&&(o=o.concat(l.imports)),o}).flat(1))}function uA(e){return[...new Set(e)]}function cA(e){let t={},i=Object.keys(e).sort();for(let a of i)t[a]=e[a];return t}function fA(e,t){let i=new Set;return new Set(t),e.reduce((a,l)=>{let o=JSON.stringify(cA(l));return i.has(o)||(i.add(o),a.push({key:o,link:l})),a},[])}function mw(){let e=R.useContext(Yl);return Tg(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function dA(){let e=R.useContext(ad);return Tg(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Rg=R.createContext(void 0);Rg.displayName="FrameworkContext";function pw(){let e=R.useContext(Rg);return Tg(e,"You must render this element inside a <HydratedRouter> element"),e}function hA(e,t){let i=R.useContext(Rg),[a,l]=R.useState(!1),[o,c]=R.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:y,onMouseLeave:g,onTouchStart:p}=t,v=R.useRef(null);R.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let _=C=>{C.forEach(M=>{c(M.isIntersecting)})},w=new IntersectionObserver(_,{threshold:.5});return v.current&&w.observe(v.current),()=>{w.disconnect()}}},[e]),R.useEffect(()=>{if(a){let _=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(_)}}},[a]);let b=()=>{l(!0)},S=()=>{l(!1),c(!1)};return i?e!=="intent"?[o,v,{}]:[o,v,{onFocus:Zo(f,b),onBlur:Zo(h,S),onMouseEnter:Zo(y,b),onMouseLeave:Zo(g,S),onTouchStart:Zo(p,b)}]:[!1,v,{}]}function Zo(e,t){return i=>{e&&e(i),i.defaultPrevented||t(i)}}function yA({page:e,...t}){let{router:i}=mw(),a=R.useMemo(()=>tw(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?R.createElement(pA,{page:e,matches:a,...t}):null}function mA(e){let{manifest:t,routeModules:i}=pw(),[a,l]=R.useState([]);return R.useEffect(()=>{let o=!1;return lA(e,t,i).then(c=>{o||l(c)}),()=>{o=!0}},[e,t,i]),a}function pA({page:e,matches:t,...i}){let a=qr(),{future:l,manifest:o,routeModules:c}=pw(),{basename:f}=mw(),{loaderData:h,matches:y}=dA(),g=R.useMemo(()=>v2(e,t,y,o,a,"data"),[e,t,y,o,a]),p=R.useMemo(()=>v2(e,t,y,o,a,"assets"),[e,t,y,o,a]),v=R.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let _=new Set,w=!1;if(t.forEach(M=>{var k;let E=o.routes[M.route.id];!E||!E.hasLoader||(!g.some(z=>z.route.id===M.route.id)&&M.route.id in h&&((k=c[M.route.id])!=null&&k.shouldRevalidate)||E.hasClientLoader?w=!0:_.add(M.route.id))}),_.size===0)return[];let C=iA(e,f,l.unstable_trailingSlashAwareDataRequests,"data");return w&&_.size>0&&C.searchParams.set("_routes",t.filter(M=>_.has(M.route.id)).map(M=>M.route.id).join(",")),[C.pathname+C.search]},[f,l.unstable_trailingSlashAwareDataRequests,h,a,o,g,t,e,c]),b=R.useMemo(()=>oA(p,o),[p,o]),S=mA(p);return R.createElement(R.Fragment,null,v.map(_=>R.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...i})),b.map(_=>R.createElement("link",{key:_,rel:"modulepreload",href:_,...i})),S.map(({key:_,link:w})=>R.createElement("link",{key:_,nonce:i.nonce,...w,crossOrigin:w.crossOrigin??i.crossOrigin})))}function gA(...e){return t=>{e.forEach(i=>{typeof i=="function"?i(t):i!=null&&(i.current=t)})}}var vA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{vA&&(window.__reactRouterVersion="7.13.1")}catch{}function p7({basename:e,children:t,unstable_useTransitions:i,window:a}){let l=R.useRef();l.current==null&&(l.current=K4({window:a,v5Compat:!0}));let o=l.current,[c,f]=R.useState({action:o.action,location:o.location}),h=R.useCallback(y=>{i===!1?f(y):R.startTransition(()=>f(y))},[i]);return R.useLayoutEffect(()=>o.listen(h),[o,h]),R.createElement(Gk,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:o,unstable_useTransitions:i})}var gw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vw=R.forwardRef(function({onClick:t,discover:i="render",prefetch:a="none",relative:l,reloadDocument:o,replace:c,unstable_mask:f,state:h,target:y,to:g,preventScrollReset:p,viewTransition:v,unstable_defaultShouldRevalidate:b,...S},_){let{basename:w,navigator:C,unstable_useTransitions:M}=R.useContext(Gn),E=typeof g=="string"&&gw.test(g),k=aw(g,w);g=k.to;let z=Nk(g,{relative:l}),N=qr(),D=null;if(f){let re=id(f,[],N.unstable_mask?N.unstable_mask.pathname:"/",!0);w!=="/"&&(re.pathname=re.pathname==="/"?w:Br([w,re.pathname])),D=C.createHref(re)}let[T,L,Q]=hA(a,S),j=xA(g,{replace:c,unstable_mask:f,state:h,target:y,preventScrollReset:p,relative:l,viewTransition:v,unstable_defaultShouldRevalidate:b,unstable_useTransitions:M});function B(re){t&&t(re),re.defaultPrevented||j(re)}let $=!(k.isExternal||o),G=R.createElement("a",{...S,...Q,href:($?D:void 0)||k.absoluteURL||z,onClick:$?B:t,ref:gA(_,L),target:y,"data-discover":!E&&i==="render"?"true":void 0});return T&&!E?R.createElement(R.Fragment,null,G,R.createElement(yA,{page:z})):G});vw.displayName="Link";var bA=R.forwardRef(function({"aria-current":t="page",caseSensitive:i=!1,className:a="",end:l=!1,style:o,to:c,viewTransition:f,children:h,...y},g){let p=Mu(c,{relative:y.relative}),v=qr(),b=R.useContext(ad),{navigator:S,basename:_}=R.useContext(Gn),w=b!=null&&kA(p)&&f===!0,C=S.encodeLocation?S.encodeLocation(p).pathname:p.pathname,M=v.pathname,E=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(M=M.toLowerCase(),E=E?E.toLowerCase():null,C=C.toLowerCase()),E&&_&&(E=bi(E,_)||E);const k=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let z=M===C||!l&&M.startsWith(C)&&M.charAt(k)==="/",N=E!=null&&(E===C||!l&&E.startsWith(C)&&E.charAt(C.length)==="/"),D={isActive:z,isPending:N,isTransitioning:w},T=z?t:void 0,L;typeof a=="function"?L=a(D):L=[a,z?"active":null,N?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let Q=typeof o=="function"?o(D):o;return R.createElement(vw,{...y,"aria-current":T,className:L,ref:g,style:Q,to:c,viewTransition:f},typeof h=="function"?h(D):h)});bA.displayName="NavLink";var _A=R.forwardRef(({discover:e="render",fetcherKey:t,navigate:i,reloadDocument:a,replace:l,state:o,method:c=xf,action:f,onSubmit:h,relative:y,preventScrollReset:g,viewTransition:p,unstable_defaultShouldRevalidate:v,...b},S)=>{let{unstable_useTransitions:_}=R.useContext(Gn),w=CA(),C=MA(f,{relative:y}),M=c.toLowerCase()==="get"?"get":"post",E=typeof f=="string"&&gw.test(f),k=z=>{if(h&&h(z),z.defaultPrevented)return;z.preventDefault();let N=z.nativeEvent.submitter,D=(N==null?void 0:N.getAttribute("formmethod"))||c,T=()=>w(N||z.currentTarget,{fetcherKey:t,method:D,navigate:i,replace:l,state:o,relative:y,preventScrollReset:g,viewTransition:p,unstable_defaultShouldRevalidate:v});_&&i!==!1?R.startTransition(()=>T()):T()};return R.createElement("form",{ref:S,method:M,action:C,onSubmit:a?h:k,...b,"data-discover":!E&&e==="render"?"true":void 0})});_A.displayName="Form";function SA(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function bw(e){let t=R.useContext(Yl);return Mt(t,SA(e)),t}function xA(e,{target:t,replace:i,unstable_mask:a,state:l,preventScrollReset:o,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:h,unstable_useTransitions:y}={}){let g=Mg(),p=qr(),v=Mu(e,{relative:c});return R.useCallback(b=>{if(Wk(b,t)){b.preventDefault();let S=i!==void 0?i:au(p)===au(v),_=()=>g(e,{replace:S,unstable_mask:a,state:l,preventScrollReset:o,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:h});y?R.startTransition(()=>_()):_()}},[p,g,v,i,a,l,t,e,o,c,f,h,y])}function g7(e){lr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=R.useRef(Hp(e)),i=R.useRef(!1),a=qr(),l=R.useMemo(()=>eA(a.search,i.current?null:t.current),[a.search]),o=Mg(),c=R.useCallback((f,h)=>{const y=Hp(typeof f=="function"?f(new URLSearchParams(l)):f);i.current=!0,o("?"+y,h)},[o,l]);return[l,c]}var wA=0,EA=()=>`__${String(++wA)}__`;function CA(){let{router:e}=bw("useSubmit"),{basename:t}=R.useContext(Gn),i=Ik(),a=e.fetch,l=e.navigate;return R.useCallback(async(o,c={})=>{let{action:f,method:h,encType:y,formData:g,body:p}=rA(o,t);if(c.navigate===!1){let v=c.fetcherKey||EA();await a(v,i,c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:p,formMethod:c.method||h,formEncType:c.encType||y,flushSync:c.flushSync})}else await l(c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:p,formMethod:c.method||h,formEncType:c.encType||y,replace:c.replace,state:c.state,fromRouteId:i,flushSync:c.flushSync,viewTransition:c.viewTransition})},[a,l,t,i])}function MA(e,{relative:t}={}){let{basename:i}=R.useContext(Gn),a=R.useContext(ur);Mt(a,"useFormAction must be used inside a RouteContext");let[l]=a.matches.slice(-1),o={...Mu(e||".",{relative:t})},c=qr();if(e==null){o.search=c.search;let f=new URLSearchParams(o.search),h=f.getAll("index");if(h.some(g=>g==="")){f.delete("index"),h.filter(p=>p).forEach(p=>f.append("index",p));let g=f.toString();o.search=g?`?${g}`:""}}return(!e||e===".")&&l.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(o.pathname=o.pathname==="/"?i:Br([i,o.pathname])),au(o)}function kA(e,{relative:t}={}){let i=R.useContext(lw);Mt(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=bw("useViewTransitionState"),l=Mu(e,{relative:t});if(!i.isTransitioning)return!1;let o=bi(i.currentLocation.pathname,a)||i.currentLocation.pathname,c=bi(i.nextLocation.pathname,a)||i.nextLocation.pathname;return Af(l.pathname,c)!=null||Af(l.pathname,o)!=null}var AA=Ix();const v7=Er(AA);var Tf=function(){return Tf=Object.assign||function(t){for(var i,a=1,l=arguments.length;a<l;a++){i=arguments[a];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},Tf.apply(this,arguments)};function TA(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(i[a[l]]=e[a[l]]);return i}function b7(e,t,i){if(i||arguments.length===2)for(var a=0,l=t.length,o;a<l;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}function Ky(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function RA(e,t){var i=R.useState(function(){return{value:e,callback:t,facade:{get current(){return i.value},set current(a){var l=i.value;l!==a&&(i.value=a,i.callback(a,l))}}}})[0];return i.callback=t,i.facade}var NA=typeof window<"u"?R.useLayoutEffect:R.useEffect,b2=new WeakMap;function _7(e,t){var i=RA(null,function(a){return e.forEach(function(l){return Ky(l,a)})});return NA(function(){var a=b2.get(i);if(a){var l=new Set(a),o=new Set(e),c=i.current;l.forEach(function(f){o.has(f)||Ky(f,null)}),o.forEach(function(f){l.has(f)||Ky(f,c)})}b2.set(i,e)},[e]),i}function OA(e){return e}function zA(e,t){t===void 0&&(t=OA);var i=[],a=!1,l={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(o){var c=t(o,a);return i.push(c),function(){i=i.filter(function(f){return f!==c})}},assignSyncMedium:function(o){for(a=!0;i.length;){var c=i;i=[],c.forEach(o)}i={push:function(f){return o(f)},filter:function(){return i}}},assignMedium:function(o){a=!0;var c=[];if(i.length){var f=i;i=[],f.forEach(o),c=i}var h=function(){var g=c;c=[],g.forEach(o)},y=function(){return Promise.resolve().then(h)};y(),i={push:function(g){c.push(g),y()},filter:function(g){return c=c.filter(g),i}}}};return l}function S7(e){e===void 0&&(e={});var t=zA(null);return t.options=Tf({async:!0,ssr:!1},e),t}var _w=function(e){var t=e.sideCar,i=TA(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return R.createElement(a,Tf({},i))};_w.isSideCarExport=!0;function x7(e,t){return e.useMedium(t),_w}var DA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function LA(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=DA();return t&&e.setAttribute("nonce",t),e}function BA(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jA(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var UA=function(){var e=0,t=null;return{add:function(i){e==0&&(t=LA())&&(BA(t,i),jA(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},HA=function(){var e=UA();return function(t,i){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&i])}},w7=function(){var e=HA(),t=function(i){var a=i.styles,l=i.dynamic;return e(a,l),null};return t},qA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},sl=new WeakMap,lf=new WeakMap,of={},Jy=0,Sw=function(e){return e&&(e.host||Sw(e.parentNode))},VA=function(e,t){return t.map(function(i){if(e.contains(i))return i;var a=Sw(i);return a&&e.contains(a)?a:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},PA=function(e,t,i,a){var l=VA(t,Array.isArray(e)?e:[e]);of[i]||(of[i]=new WeakMap);var o=of[i],c=[],f=new Set,h=new Set(l),y=function(p){!p||f.has(p)||(f.add(p),y(p.parentNode))};l.forEach(y);var g=function(p){!p||h.has(p)||Array.prototype.forEach.call(p.children,function(v){if(f.has(v))g(v);else try{var b=v.getAttribute(a),S=b!==null&&b!=="false",_=(sl.get(v)||0)+1,w=(o.get(v)||0)+1;sl.set(v,_),o.set(v,w),c.push(v),_===1&&S&&lf.set(v,!0),w===1&&v.setAttribute(i,"true"),S||v.setAttribute(a,"true")}catch(C){console.error("aria-hidden: cannot operate on ",v,C)}})};return g(t),f.clear(),Jy++,function(){c.forEach(function(p){var v=sl.get(p)-1,b=o.get(p)-1;sl.set(p,v),o.set(p,b),v||(lf.has(p)||p.removeAttribute(a),lf.delete(p)),b||p.removeAttribute(i)}),Jy--,Jy||(sl=new WeakMap,sl=new WeakMap,lf=new WeakMap,of={})}},E7=function(e,t,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),l=qA(e);return l?(a.push.apply(a,Array.from(l.querySelectorAll("[aria-live], script"))),PA(a,l,i,"aria-hidden")):function(){return null}};/**
61
- * @license lucide-react v0.525.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const IA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$A=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,a)=>a?a.toUpperCase():i.toLowerCase()),_2=e=>{const t=$A(e);return t.charAt(0).toUpperCase()+t.slice(1)},xw=(...e)=>e.filter((t,i,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===i).join(" ").trim(),YA=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
66
- * @license lucide-react v0.525.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */var FA={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
71
- * @license lucide-react v0.525.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const ZA=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:l="",children:o,iconNode:c,...f},h)=>R.createElement("svg",{ref:h,...FA,width:t,height:t,stroke:e,strokeWidth:a?Number(i)*24/Number(t):i,className:xw("lucide",l),...!o&&!YA(f)&&{"aria-hidden":"true"},...f},[...c.map(([y,g])=>R.createElement(y,g)),...Array.isArray(o)?o:[o]]));/**
76
- * @license lucide-react v0.525.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const ce=(e,t)=>{const i=R.forwardRef(({className:a,...l},o)=>R.createElement(ZA,{ref:o,iconNode:t,className:xw(`lucide-${IA(_2(e))}`,`lucide-${e}`,a),...l}));return i.displayName=_2(e),i};/**
81
- * @license lucide-react v0.525.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const GA=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],C7=ce("activity",GA);/**
86
- * @license lucide-react v0.525.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const QA=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],M7=ce("archive-restore",QA);/**
91
- * @license lucide-react v0.525.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const XA=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],k7=ce("arrow-left",XA);/**
96
- * @license lucide-react v0.525.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const KA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],A7=ce("arrow-right",KA);/**
101
- * @license lucide-react v0.525.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const JA=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],T7=ce("arrow-up-right",JA);/**
106
- * @license lucide-react v0.525.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const WA=[["path",{d:"M2 16V4a2 2 0 0 1 2-2h11",key:"spzkk5"}],["path",{d:"M22 18H11a2 2 0 1 0 0 4h10.5a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5H11a2 2 0 0 0-2 2v12",key:"1wz07i"}],["path",{d:"M5 14H4a2 2 0 1 0 0 4h1",key:"16gqf9"}]],R7=ce("book-copy",WA);/**
111
- * @license lucide-react v0.525.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const e5=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],N7=ce("bot",e5);/**
116
- * @license lucide-react v0.525.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const t5=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],O7=ce("brain-circuit",t5);/**
121
- * @license lucide-react v0.525.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const n5=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],z7=ce("briefcase-business",n5);/**
126
- * @license lucide-react v0.525.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const r5=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],D7=ce("calendar-days",r5);/**
131
- * @license lucide-react v0.525.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const i5=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],L7=ce("chart-column",i5);/**
136
- * @license lucide-react v0.525.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const a5=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],B7=ce("check-check",a5);/**
141
- * @license lucide-react v0.525.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const s5=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],j7=ce("check",s5);/**
146
- * @license lucide-react v0.525.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const l5=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],U7=ce("chevron-down",l5);/**
151
- * @license lucide-react v0.525.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const o5=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],H7=ce("chevron-right",o5);/**
156
- * @license lucide-react v0.525.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const u5=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],q7=ce("chevron-up",u5);/**
161
- * @license lucide-react v0.525.0 - ISC
162
- *
163
- * This source code is licensed under the ISC license.
164
- * See the LICENSE file in the root directory of this source tree.
165
- */const c5=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],V7=ce("chevrons-left",c5);/**
166
- * @license lucide-react v0.525.0 - ISC
167
- *
168
- * This source code is licensed under the ISC license.
169
- * See the LICENSE file in the root directory of this source tree.
170
- */const f5=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],P7=ce("chevrons-right",f5);/**
171
- * @license lucide-react v0.525.0 - ISC
172
- *
173
- * This source code is licensed under the ISC license.
174
- * See the LICENSE file in the root directory of this source tree.
175
- */const d5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],I7=ce("circle-alert",d5);/**
176
- * @license lucide-react v0.525.0 - ISC
177
- *
178
- * This source code is licensed under the ISC license.
179
- * See the LICENSE file in the root directory of this source tree.
180
- */const h5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$7=ce("circle-check",h5);/**
181
- * @license lucide-react v0.525.0 - ISC
182
- *
183
- * This source code is licensed under the ISC license.
184
- * See the LICENSE file in the root directory of this source tree.
185
- */const y5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],Y7=ce("circle-pause",y5);/**
186
- * @license lucide-react v0.525.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const m5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],F7=ce("circle-question-mark",m5);/**
191
- * @license lucide-react v0.525.0 - ISC
192
- *
193
- * This source code is licensed under the ISC license.
194
- * See the LICENSE file in the root directory of this source tree.
195
- */const p5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Z7=ce("circle-x",p5);/**
196
- * @license lucide-react v0.525.0 - ISC
197
- *
198
- * This source code is licensed under the ISC license.
199
- * See the LICENSE file in the root directory of this source tree.
200
- */const g5=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],G7=ce("clipboard-list",g5);/**
201
- * @license lucide-react v0.525.0 - ISC
202
- *
203
- * This source code is licensed under the ISC license.
204
- * See the LICENSE file in the root directory of this source tree.
205
- */const v5=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],Q7=ce("clipboard-paste",v5);/**
206
- * @license lucide-react v0.525.0 - ISC
207
- *
208
- * This source code is licensed under the ISC license.
209
- * See the LICENSE file in the root directory of this source tree.
210
- */const b5=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],X7=ce("clock-3",b5);/**
211
- * @license lucide-react v0.525.0 - ISC
212
- *
213
- * This source code is licensed under the ISC license.
214
- * See the LICENSE file in the root directory of this source tree.
215
- */const _5=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],K7=ce("cloud-upload",_5);/**
216
- * @license lucide-react v0.525.0 - ISC
217
- *
218
- * This source code is licensed under the ISC license.
219
- * See the LICENSE file in the root directory of this source tree.
220
- */const S5=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],J7=ce("cloud",S5);/**
221
- * @license lucide-react v0.525.0 - ISC
222
- *
223
- * This source code is licensed under the ISC license.
224
- * See the LICENSE file in the root directory of this source tree.
225
- */const x5=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],W7=ce("compass",x5);/**
226
- * @license lucide-react v0.525.0 - ISC
227
- *
228
- * This source code is licensed under the ISC license.
229
- * See the LICENSE file in the root directory of this source tree.
230
- */const w5=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],eL=ce("copy",w5);/**
231
- * @license lucide-react v0.525.0 - ISC
232
- *
233
- * This source code is licensed under the ISC license.
234
- * See the LICENSE file in the root directory of this source tree.
235
- */const E5=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],tL=ce("database-zap",E5);/**
236
- * @license lucide-react v0.525.0 - ISC
237
- *
238
- * This source code is licensed under the ISC license.
239
- * See the LICENSE file in the root directory of this source tree.
240
- */const C5=[["path",{d:"M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z",key:"9m4mmf"}],["path",{d:"m2.5 21.5 1.4-1.4",key:"17g3f0"}],["path",{d:"m20.1 3.9 1.4-1.4",key:"1qn309"}],["path",{d:"M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z",key:"1t2c92"}],["path",{d:"m9.6 14.4 4.8-4.8",key:"6umqxw"}]],nL=ce("dumbbell",C5);/**
241
- * @license lucide-react v0.525.0 - ISC
242
- *
243
- * This source code is licensed under the ISC license.
244
- * See the LICENSE file in the root directory of this source tree.
245
- */const M5=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],rL=ce("ellipsis",M5);/**
246
- * @license lucide-react v0.525.0 - ISC
247
- *
248
- * This source code is licensed under the ISC license.
249
- * See the LICENSE file in the root directory of this source tree.
250
- */const k5=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],iL=ce("external-link",k5);/**
251
- * @license lucide-react v0.525.0 - ISC
252
- *
253
- * This source code is licensed under the ISC license.
254
- * See the LICENSE file in the root directory of this source tree.
255
- */const A5=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],aL=ce("eye-off",A5);/**
256
- * @license lucide-react v0.525.0 - ISC
257
- *
258
- * This source code is licensed under the ISC license.
259
- * See the LICENSE file in the root directory of this source tree.
260
- */const T5=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],sL=ce("eye",T5);/**
261
- * @license lucide-react v0.525.0 - ISC
262
- *
263
- * This source code is licensed under the ISC license.
264
- * See the LICENSE file in the root directory of this source tree.
265
- */const R5=[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]],lL=ce("file-archive",R5);/**
266
- * @license lucide-react v0.525.0 - ISC
267
- *
268
- * This source code is licensed under the ISC license.
269
- * See the LICENSE file in the root directory of this source tree.
270
- */const N5=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],oL=ce("file-text",N5);/**
271
- * @license lucide-react v0.525.0 - ISC
272
- *
273
- * This source code is licensed under the ISC license.
274
- * See the LICENSE file in the root directory of this source tree.
275
- */const O5=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],uL=ce("flame",O5);/**
276
- * @license lucide-react v0.525.0 - ISC
277
- *
278
- * This source code is licensed under the ISC license.
279
- * See the LICENSE file in the root directory of this source tree.
280
- */const z5=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],cL=ce("folder-open",z5);/**
281
- * @license lucide-react v0.525.0 - ISC
282
- *
283
- * This source code is licensed under the ISC license.
284
- * See the LICENSE file in the root directory of this source tree.
285
- */const D5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],fL=ce("frown",D5);/**
286
- * @license lucide-react v0.525.0 - ISC
287
- *
288
- * This source code is licensed under the ISC license.
289
- * See the LICENSE file in the root directory of this source tree.
290
- */const L5=[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],dL=ce("git-branch-plus",L5);/**
291
- * @license lucide-react v0.525.0 - ISC
292
- *
293
- * This source code is licensed under the ISC license.
294
- * See the LICENSE file in the root directory of this source tree.
295
- */const B5=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],hL=ce("git-branch",B5);/**
296
- * @license lucide-react v0.525.0 - ISC
297
- *
298
- * This source code is licensed under the ISC license.
299
- * See the LICENSE file in the root directory of this source tree.
300
- */const j5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],yL=ce("globe",j5);/**
301
- * @license lucide-react v0.525.0 - ISC
302
- *
303
- * This source code is licensed under the ISC license.
304
- * See the LICENSE file in the root directory of this source tree.
305
- */const U5=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],mL=ce("grip-vertical",U5);/**
306
- * @license lucide-react v0.525.0 - ISC
307
- *
308
- * This source code is licensed under the ISC license.
309
- * See the LICENSE file in the root directory of this source tree.
310
- */const H5=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]],pL=ce("heart-handshake",H5);/**
311
- * @license lucide-react v0.525.0 - ISC
312
- *
313
- * This source code is licensed under the ISC license.
314
- * See the LICENSE file in the root directory of this source tree.
315
- */const q5=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],gL=ce("heart",q5);/**
316
- * @license lucide-react v0.525.0 - ISC
317
- *
318
- * This source code is licensed under the ISC license.
319
- * See the LICENSE file in the root directory of this source tree.
320
- */const V5=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],vL=ce("history",V5);/**
321
- * @license lucide-react v0.525.0 - ISC
322
- *
323
- * This source code is licensed under the ISC license.
324
- * See the LICENSE file in the root directory of this source tree.
325
- */const P5=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],bL=ce("image-plus",P5);/**
326
- * @license lucide-react v0.525.0 - ISC
327
- *
328
- * This source code is licensed under the ISC license.
329
- * See the LICENSE file in the root directory of this source tree.
330
- */const I5=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],_L=ce("key-round",I5);/**
331
- * @license lucide-react v0.525.0 - ISC
332
- *
333
- * This source code is licensed under the ISC license.
334
- * See the LICENSE file in the root directory of this source tree.
335
- */const $5=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],SL=ce("layers",$5);/**
336
- * @license lucide-react v0.525.0 - ISC
337
- *
338
- * This source code is licensed under the ISC license.
339
- * See the LICENSE file in the root directory of this source tree.
340
- */const Y5=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],xL=ce("layout-dashboard",Y5);/**
341
- * @license lucide-react v0.525.0 - ISC
342
- *
343
- * This source code is licensed under the ISC license.
344
- * See the LICENSE file in the root directory of this source tree.
345
- */const F5=[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]],wL=ce("library-big",F5);/**
346
- * @license lucide-react v0.525.0 - ISC
347
- *
348
- * This source code is licensed under the ISC license.
349
- * See the LICENSE file in the root directory of this source tree.
350
- */const Z5=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],EL=ce("link-2",Z5);/**
351
- * @license lucide-react v0.525.0 - ISC
352
- *
353
- * This source code is licensed under the ISC license.
354
- * See the LICENSE file in the root directory of this source tree.
355
- */const G5=[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],CL=ce("list-plus",G5);/**
356
- * @license lucide-react v0.525.0 - ISC
357
- *
358
- * This source code is licensed under the ISC license.
359
- * See the LICENSE file in the root directory of this source tree.
360
- */const Q5=[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],ML=ce("list-todo",Q5);/**
361
- * @license lucide-react v0.525.0 - ISC
362
- *
363
- * This source code is licensed under the ISC license.
364
- * See the LICENSE file in the root directory of this source tree.
365
- */const X5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],kL=ce("loader-circle",X5);/**
366
- * @license lucide-react v0.525.0 - ISC
367
- *
368
- * This source code is licensed under the ISC license.
369
- * See the LICENSE file in the root directory of this source tree.
370
- */const K5=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],AL=ce("map-pin",K5);/**
371
- * @license lucide-react v0.525.0 - ISC
372
- *
373
- * This source code is licensed under the ISC license.
374
- * See the LICENSE file in the root directory of this source tree.
375
- */const J5=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],TL=ce("map",J5);/**
376
- * @license lucide-react v0.525.0 - ISC
377
- *
378
- * This source code is licensed under the ISC license.
379
- * See the LICENSE file in the root directory of this source tree.
380
- */const W5=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],RL=ce("maximize",W5);/**
381
- * @license lucide-react v0.525.0 - ISC
382
- *
383
- * This source code is licensed under the ISC license.
384
- * See the LICENSE file in the root directory of this source tree.
385
- */const eT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],NL=ce("meh",eT);/**
386
- * @license lucide-react v0.525.0 - ISC
387
- *
388
- * This source code is licensed under the ISC license.
389
- * See the LICENSE file in the root directory of this source tree.
390
- */const tT=[["path",{d:"M5 12h14",key:"1ays0h"}]],OL=ce("minus",tT);/**
391
- * @license lucide-react v0.525.0 - ISC
392
- *
393
- * This source code is licensed under the ISC license.
394
- * See the LICENSE file in the root directory of this source tree.
395
- */const nT=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9",key:"4ay0iu"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}]],zL=ce("moon-star",nT);/**
396
- * @license lucide-react v0.525.0 - ISC
397
- *
398
- * This source code is licensed under the ISC license.
399
- * See the LICENSE file in the root directory of this source tree.
400
- */const rT=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],DL=ce("moon",rT);/**
401
- * @license lucide-react v0.525.0 - ISC
402
- *
403
- * This source code is licensed under the ISC license.
404
- * See the LICENSE file in the root directory of this source tree.
405
- */const iT=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],LL=ce("move",iT);/**
406
- * @license lucide-react v0.525.0 - ISC
407
- *
408
- * This source code is licensed under the ISC license.
409
- * See the LICENSE file in the root directory of this source tree.
410
- */const aT=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],BL=ce("network",aT);/**
411
- * @license lucide-react v0.525.0 - ISC
412
- *
413
- * This source code is licensed under the ISC license.
414
- * See the LICENSE file in the root directory of this source tree.
415
- */const sT=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],jL=ce("notebook-pen",sT);/**
416
- * @license lucide-react v0.525.0 - ISC
417
- *
418
- * This source code is licensed under the ISC license.
419
- * See the LICENSE file in the root directory of this source tree.
420
- */const lT=[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]],UL=ce("orbit",lT);/**
421
- * @license lucide-react v0.525.0 - ISC
422
- *
423
- * This source code is licensed under the ISC license.
424
- * See the LICENSE file in the root directory of this source tree.
425
- */const oT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],HL=ce("panel-right-close",oT);/**
426
- * @license lucide-react v0.525.0 - ISC
427
- *
428
- * This source code is licensed under the ISC license.
429
- * See the LICENSE file in the root directory of this source tree.
430
- */const uT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],qL=ce("panel-right-open",uT);/**
431
- * @license lucide-react v0.525.0 - ISC
432
- *
433
- * This source code is licensed under the ISC license.
434
- * See the LICENSE file in the root directory of this source tree.
435
- */const cT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],VL=ce("panel-top",cT);/**
436
- * @license lucide-react v0.525.0 - ISC
437
- *
438
- * This source code is licensed under the ISC license.
439
- * See the LICENSE file in the root directory of this source tree.
440
- */const fT=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],PL=ce("party-popper",fT);/**
441
- * @license lucide-react v0.525.0 - ISC
442
- *
443
- * This source code is licensed under the ISC license.
444
- * See the LICENSE file in the root directory of this source tree.
445
- */const dT=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]],IL=ce("pencil-line",dT);/**
446
- * @license lucide-react v0.525.0 - ISC
447
- *
448
- * This source code is licensed under the ISC license.
449
- * See the LICENSE file in the root directory of this source tree.
450
- */const hT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],$L=ce("pencil",hT);/**
451
- * @license lucide-react v0.525.0 - ISC
452
- *
453
- * This source code is licensed under the ISC license.
454
- * See the LICENSE file in the root directory of this source tree.
455
- */const yT=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],YL=ce("play",yT);/**
456
- * @license lucide-react v0.525.0 - ISC
457
- *
458
- * This source code is licensed under the ISC license.
459
- * See the LICENSE file in the root directory of this source tree.
460
- */const mT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],FL=ce("plus",mT);/**
461
- * @license lucide-react v0.525.0 - ISC
462
- *
463
- * This source code is licensed under the ISC license.
464
- * See the LICENSE file in the root directory of this source tree.
465
- */const pT=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],ZL=ce("qr-code",pT);/**
466
- * @license lucide-react v0.525.0 - ISC
467
- *
468
- * This source code is licensed under the ISC license.
469
- * See the LICENSE file in the root directory of this source tree.
470
- */const gT=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],GL=ce("quote",gT);/**
471
- * @license lucide-react v0.525.0 - ISC
472
- *
473
- * This source code is licensed under the ISC license.
474
- * See the LICENSE file in the root directory of this source tree.
475
- */const vT=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],QL=ce("radar",vT);/**
476
- * @license lucide-react v0.525.0 - ISC
477
- *
478
- * This source code is licensed under the ISC license.
479
- * See the LICENSE file in the root directory of this source tree.
480
- */const bT=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],XL=ce("refresh-ccw",bT);/**
481
- * @license lucide-react v0.525.0 - ISC
482
- *
483
- * This source code is licensed under the ISC license.
484
- * See the LICENSE file in the root directory of this source tree.
485
- */const _T=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],KL=ce("refresh-cw",_T);/**
486
- * @license lucide-react v0.525.0 - ISC
487
- *
488
- * This source code is licensed under the ISC license.
489
- * See the LICENSE file in the root directory of this source tree.
490
- */const ST=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],JL=ce("repeat",ST);/**
491
- * @license lucide-react v0.525.0 - ISC
492
- *
493
- * This source code is licensed under the ISC license.
494
- * See the LICENSE file in the root directory of this source tree.
495
- */const xT=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],WL=ce("rotate-ccw",xT);/**
496
- * @license lucide-react v0.525.0 - ISC
497
- *
498
- * This source code is licensed under the ISC license.
499
- * See the LICENSE file in the root directory of this source tree.
500
- */const wT=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],eB=ce("route",wT);/**
501
- * @license lucide-react v0.525.0 - ISC
502
- *
503
- * This source code is licensed under the ISC license.
504
- * See the LICENSE file in the root directory of this source tree.
505
- */const ET=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],tB=ce("save",ET);/**
506
- * @license lucide-react v0.525.0 - ISC
507
- *
508
- * This source code is licensed under the ISC license.
509
- * See the LICENSE file in the root directory of this source tree.
510
- */const CT=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],nB=ce("scissors",CT);/**
511
- * @license lucide-react v0.525.0 - ISC
512
- *
513
- * This source code is licensed under the ISC license.
514
- * See the LICENSE file in the root directory of this source tree.
515
- */const MT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],rB=ce("search",MT);/**
516
- * @license lucide-react v0.525.0 - ISC
517
- *
518
- * This source code is licensed under the ISC license.
519
- * See the LICENSE file in the root directory of this source tree.
520
- */const kT=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],iB=ce("settings-2",kT);/**
521
- * @license lucide-react v0.525.0 - ISC
522
- *
523
- * This source code is licensed under the ISC license.
524
- * See the LICENSE file in the root directory of this source tree.
525
- */const AT=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],aB=ce("settings",AT);/**
526
- * @license lucide-react v0.525.0 - ISC
527
- *
528
- * This source code is licensed under the ISC license.
529
- * See the LICENSE file in the root directory of this source tree.
530
- */const TT=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],sB=ce("shapes",TT);/**
531
- * @license lucide-react v0.525.0 - ISC
532
- *
533
- * This source code is licensed under the ISC license.
534
- * See the LICENSE file in the root directory of this source tree.
535
- */const RT=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m4.243 5.21 14.39 12.472",key:"1c9a7c"}]],lB=ce("shield-ban",RT);/**
536
- * @license lucide-react v0.525.0 - ISC
537
- *
538
- * This source code is licensed under the ISC license.
539
- * See the LICENSE file in the root directory of this source tree.
540
- */const NT=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],oB=ce("shield-off",NT);/**
541
- * @license lucide-react v0.525.0 - ISC
542
- *
543
- * This source code is licensed under the ISC license.
544
- * See the LICENSE file in the root directory of this source tree.
545
- */const OT=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],uB=ce("sliders-horizontal",OT);/**
546
- * @license lucide-react v0.525.0 - ISC
547
- *
548
- * This source code is licensed under the ISC license.
549
- * See the LICENSE file in the root directory of this source tree.
550
- */const zT=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],cB=ce("smartphone",zT);/**
551
- * @license lucide-react v0.525.0 - ISC
552
- *
553
- * This source code is licensed under the ISC license.
554
- * See the LICENSE file in the root directory of this source tree.
555
- */const DT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],fB=ce("smile",DT);/**
556
- * @license lucide-react v0.525.0 - ISC
557
- *
558
- * This source code is licensed under the ISC license.
559
- * See the LICENSE file in the root directory of this source tree.
560
- */const LT=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],dB=ce("sparkles",LT);/**
561
- * @license lucide-react v0.525.0 - ISC
562
- *
563
- * This source code is licensed under the ISC license.
564
- * See the LICENSE file in the root directory of this source tree.
565
- */const BT=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],hB=ce("split",BT);/**
566
- * @license lucide-react v0.525.0 - ISC
567
- *
568
- * This source code is licensed under the ISC license.
569
- * See the LICENSE file in the root directory of this source tree.
570
- */const jT=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],yB=ce("square-pen",jT);/**
571
- * @license lucide-react v0.525.0 - ISC
572
- *
573
- * This source code is licensed under the ISC license.
574
- * See the LICENSE file in the root directory of this source tree.
575
- */const UT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],mB=ce("square",UT);/**
576
- * @license lucide-react v0.525.0 - ISC
577
- *
578
- * This source code is licensed under the ISC license.
579
- * See the LICENSE file in the root directory of this source tree.
580
- */const HT=[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],pB=ce("table-properties",HT);/**
581
- * @license lucide-react v0.525.0 - ISC
582
- *
583
- * This source code is licensed under the ISC license.
584
- * See the LICENSE file in the root directory of this source tree.
585
- */const qT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],gB=ce("target",qT);/**
586
- * @license lucide-react v0.525.0 - ISC
587
- *
588
- * This source code is licensed under the ISC license.
589
- * See the LICENSE file in the root directory of this source tree.
590
- */const VT=[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]],vB=ce("timer-reset",VT);/**
591
- * @license lucide-react v0.525.0 - ISC
592
- *
593
- * This source code is licensed under the ISC license.
594
- * See the LICENSE file in the root directory of this source tree.
595
- */const PT=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],bB=ce("timer",PT);/**
596
- * @license lucide-react v0.525.0 - ISC
597
- *
598
- * This source code is licensed under the ISC license.
599
- * See the LICENSE file in the root directory of this source tree.
600
- */const IT=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],_B=ce("trash-2",IT);/**
601
- * @license lucide-react v0.525.0 - ISC
602
- *
603
- * This source code is licensed under the ISC license.
604
- * See the LICENSE file in the root directory of this source tree.
605
- */const $T=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],SB=ce("triangle-alert",$T);/**
606
- * @license lucide-react v0.525.0 - ISC
607
- *
608
- * This source code is licensed under the ISC license.
609
- * See the LICENSE file in the root directory of this source tree.
610
- */const YT=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],xB=ce("trophy",YT);/**
611
- * @license lucide-react v0.525.0 - ISC
612
- *
613
- * This source code is licensed under the ISC license.
614
- * See the LICENSE file in the root directory of this source tree.
615
- */const FT=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],wB=ce("type",FT);/**
616
- * @license lucide-react v0.525.0 - ISC
617
- *
618
- * This source code is licensed under the ISC license.
619
- * See the LICENSE file in the root directory of this source tree.
620
- */const ZT=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],EB=ce("unfold-vertical",ZT);/**
621
- * @license lucide-react v0.525.0 - ISC
622
- *
623
- * This source code is licensed under the ISC license.
624
- * See the LICENSE file in the root directory of this source tree.
625
- */const GT=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],CB=ce("upload",GT);/**
626
- * @license lucide-react v0.525.0 - ISC
627
- *
628
- * This source code is licensed under the ISC license.
629
- * See the LICENSE file in the root directory of this source tree.
630
- */const QT=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],MB=ce("user-round",QT);/**
631
- * @license lucide-react v0.525.0 - ISC
632
- *
633
- * This source code is licensed under the ISC license.
634
- * See the LICENSE file in the root directory of this source tree.
635
- */const XT=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],kB=ce("users",XT);/**
636
- * @license lucide-react v0.525.0 - ISC
637
- *
638
- * This source code is licensed under the ISC license.
639
- * See the LICENSE file in the root directory of this source tree.
640
- */const KT=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],AB=ce("wand-sparkles",KT);/**
641
- * @license lucide-react v0.525.0 - ISC
642
- *
643
- * This source code is licensed under the ISC license.
644
- * See the LICENSE file in the root directory of this source tree.
645
- */const JT=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],TB=ce("waves",JT);/**
646
- * @license lucide-react v0.525.0 - ISC
647
- *
648
- * This source code is licensed under the ISC license.
649
- * See the LICENSE file in the root directory of this source tree.
650
- */const WT=[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]],RB=ce("waypoints",WT);/**
651
- * @license lucide-react v0.525.0 - ISC
652
- *
653
- * This source code is licensed under the ISC license.
654
- * See the LICENSE file in the root directory of this source tree.
655
- */const eR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],NB=ce("x",eR);/**
656
- * @license lucide-react v0.525.0 - ISC
657
- *
658
- * This source code is licensed under the ISC license.
659
- * See the LICENSE file in the root directory of this source tree.
660
- */const tR=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],OB=ce("zap",tR);function ww(e){var t,i,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(i=ww(e[t]))&&(a&&(a+=" "),a+=i)}else for(i in e)e[i]&&(a&&(a+=" "),a+=i);return a}function nR(){for(var e,t,i=0,a="",l=arguments.length;i<l;i++)(e=arguments[i])&&(t=ww(e))&&(a&&(a+=" "),a+=t);return a}const rR=(e,t)=>{const i=new Array(e.length+t.length);for(let a=0;a<e.length;a++)i[a]=e[a];for(let a=0;a<t.length;a++)i[e.length+a]=t[a];return i},iR=(e,t)=>({classGroupId:e,validator:t}),Ew=(e=new Map,t=null,i)=>({nextPart:e,validators:t,classGroupId:i}),Rf="-",S2=[],aR="arbitrary..",sR=e=>{const t=oR(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return lR(c);const f=c.split(Rf),h=f[0]===""&&f.length>1?1:0;return Cw(f,h,t)},getConflictingClassGroupIds:(c,f)=>{if(f){const h=a[c],y=i[c];return h?y?rR(y,h):h:y||S2}return i[c]||S2}}},Cw=(e,t,i)=>{if(e.length-t===0)return i.classGroupId;const l=e[t],o=i.nextPart.get(l);if(o){const y=Cw(e,t+1,o);if(y)return y}const c=i.validators;if(c===null)return;const f=t===0?e.join(Rf):e.slice(t).join(Rf),h=c.length;for(let y=0;y<h;y++){const g=c[y];if(g.validator(f))return g.classGroupId}},lR=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),i=t.indexOf(":"),a=t.slice(0,i);return a?aR+a:void 0})(),oR=e=>{const{theme:t,classGroups:i}=e;return uR(i,t)},uR=(e,t)=>{const i=Ew();for(const a in e){const l=e[a];Ng(l,i,a,t)}return i},Ng=(e,t,i,a)=>{const l=e.length;for(let o=0;o<l;o++){const c=e[o];cR(c,t,i,a)}},cR=(e,t,i,a)=>{if(typeof e=="string"){fR(e,t,i);return}if(typeof e=="function"){dR(e,t,i,a);return}hR(e,t,i,a)},fR=(e,t,i)=>{const a=e===""?t:Mw(t,e);a.classGroupId=i},dR=(e,t,i,a)=>{if(yR(e)){Ng(e(a),t,i,a);return}t.validators===null&&(t.validators=[]),t.validators.push(iR(i,e))},hR=(e,t,i,a)=>{const l=Object.entries(e),o=l.length;for(let c=0;c<o;c++){const[f,h]=l[c];Ng(h,Mw(t,f),i,a)}},Mw=(e,t)=>{let i=e;const a=t.split(Rf),l=a.length;for(let o=0;o<l;o++){const c=a[o];let f=i.nextPart.get(c);f||(f=Ew(),i.nextPart.set(c,f)),i=f}return i},yR=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,mR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,i=Object.create(null),a=Object.create(null);const l=(o,c)=>{i[o]=c,t++,t>e&&(t=0,a=i,i=Object.create(null))};return{get(o){let c=i[o];if(c!==void 0)return c;if((c=a[o])!==void 0)return l(o,c),c},set(o,c){o in i?i[o]=c:l(o,c)}}},qp="!",x2=":",pR=[],w2=(e,t,i,a,l)=>({modifiers:e,hasImportantModifier:t,baseClassName:i,maybePostfixModifierPosition:a,isExternal:l}),gR=e=>{const{prefix:t,experimentalParseClassName:i}=e;let a=l=>{const o=[];let c=0,f=0,h=0,y;const g=l.length;for(let _=0;_<g;_++){const w=l[_];if(c===0&&f===0){if(w===x2){o.push(l.slice(h,_)),h=_+1;continue}if(w==="/"){y=_;continue}}w==="["?c++:w==="]"?c--:w==="("?f++:w===")"&&f--}const p=o.length===0?l:l.slice(h);let v=p,b=!1;p.endsWith(qp)?(v=p.slice(0,-1),b=!0):p.startsWith(qp)&&(v=p.slice(1),b=!0);const S=y&&y>h?y-h:void 0;return w2(o,b,v,S)};if(t){const l=t+x2,o=a;a=c=>c.startsWith(l)?o(c.slice(l.length)):w2(pR,!1,c,void 0,!0)}if(i){const l=a;a=o=>i({className:o,parseClassName:l})}return a},vR=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((i,a)=>{t.set(i,1e6+a)}),i=>{const a=[];let l=[];for(let o=0;o<i.length;o++){const c=i[o],f=c[0]==="[",h=t.has(c);f||h?(l.length>0&&(l.sort(),a.push(...l),l=[]),a.push(c)):l.push(c)}return l.length>0&&(l.sort(),a.push(...l)),a}},bR=e=>({cache:mR(e.cacheSize),parseClassName:gR(e),sortModifiers:vR(e),...sR(e)}),_R=/\s+/,SR=(e,t)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:l,sortModifiers:o}=t,c=[],f=e.trim().split(_R);let h="";for(let y=f.length-1;y>=0;y-=1){const g=f[y],{isExternal:p,modifiers:v,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:_}=i(g);if(p){h=g+(h.length>0?" "+h:h);continue}let w=!!_,C=a(w?S.substring(0,_):S);if(!C){if(!w){h=g+(h.length>0?" "+h:h);continue}if(C=a(S),!C){h=g+(h.length>0?" "+h:h);continue}w=!1}const M=v.length===0?"":v.length===1?v[0]:o(v).join(":"),E=b?M+qp:M,k=E+C;if(c.indexOf(k)>-1)continue;c.push(k);const z=l(C,w);for(let N=0;N<z.length;++N){const D=z[N];c.push(E+D)}h=g+(h.length>0?" "+h:h)}return h},xR=(...e)=>{let t=0,i,a,l="";for(;t<e.length;)(i=e[t++])&&(a=kw(i))&&(l&&(l+=" "),l+=a);return l},kw=e=>{if(typeof e=="string")return e;let t,i="";for(let a=0;a<e.length;a++)e[a]&&(t=kw(e[a]))&&(i&&(i+=" "),i+=t);return i},wR=(e,...t)=>{let i,a,l,o;const c=h=>{const y=t.reduce((g,p)=>p(g),e());return i=bR(y),a=i.cache.get,l=i.cache.set,o=f,f(h)},f=h=>{const y=a(h);if(y)return y;const g=SR(h,i);return l(h,g),g};return o=c,(...h)=>o(xR(...h))},ER=[],Jt=e=>{const t=i=>i[e]||ER;return t.isThemeGetter=!0,t},Aw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,CR=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,MR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kR=/\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$/,AR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,TR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ji=e=>CR.test(e),Qe=e=>!!e&&!Number.isNaN(Number(e)),Wi=e=>!!e&&Number.isInteger(Number(e)),Wy=e=>e.endsWith("%")&&Qe(e.slice(0,-1)),ui=e=>MR.test(e),Rw=()=>!0,NR=e=>kR.test(e)&&!AR.test(e),Og=()=>!1,OR=e=>TR.test(e),zR=e=>RR.test(e),DR=e=>!Me(e)&&!ke(e),LR=e=>xa(e,zw,Og),Me=e=>Aw.test(e),$a=e=>xa(e,Dw,NR),E2=e=>xa(e,IR,Qe),BR=e=>xa(e,Bw,Rw),jR=e=>xa(e,Lw,Og),C2=e=>xa(e,Nw,Og),UR=e=>xa(e,Ow,zR),uf=e=>xa(e,jw,OR),ke=e=>Tw.test(e),Go=e=>vs(e,Dw),HR=e=>vs(e,Lw),M2=e=>vs(e,Nw),qR=e=>vs(e,zw),VR=e=>vs(e,Ow),cf=e=>vs(e,jw,!0),PR=e=>vs(e,Bw,!0),xa=(e,t,i)=>{const a=Aw.exec(e);return a?a[1]?t(a[1]):i(a[2]):!1},vs=(e,t,i=!1)=>{const a=Tw.exec(e);return a?a[1]?t(a[1]):i:!1},Nw=e=>e==="position"||e==="percentage",Ow=e=>e==="image"||e==="url",zw=e=>e==="length"||e==="size"||e==="bg-size",Dw=e=>e==="length",IR=e=>e==="number",Lw=e=>e==="family-name",Bw=e=>e==="number"||e==="weight",jw=e=>e==="shadow",$R=()=>{const e=Jt("color"),t=Jt("font"),i=Jt("text"),a=Jt("font-weight"),l=Jt("tracking"),o=Jt("leading"),c=Jt("breakpoint"),f=Jt("container"),h=Jt("spacing"),y=Jt("radius"),g=Jt("shadow"),p=Jt("inset-shadow"),v=Jt("text-shadow"),b=Jt("drop-shadow"),S=Jt("blur"),_=Jt("perspective"),w=Jt("aspect"),C=Jt("ease"),M=Jt("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[...k(),ke,Me],N=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],T=()=>[ke,Me,h],L=()=>[Ji,"full","auto",...T()],Q=()=>[Wi,"none","subgrid",ke,Me],j=()=>["auto",{span:["full",Wi,ke,Me]},Wi,ke,Me],B=()=>[Wi,"auto",ke,Me],$=()=>["auto","min","max","fr",ke,Me],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...T()],Y=()=>[Ji,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],Z=()=>[Ji,"screen","full","dvw","lvw","svw","min","max","fit",...T()],K=()=>[Ji,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],J=()=>[e,ke,Me],O=()=>[...k(),M2,C2,{position:[ke,Me]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",qR,LR,{size:[ke,Me]}],ue=()=>[Wy,Go,$a],de=()=>["","none","full",y,ke,Me],me=()=>["",Qe,Go,$a],be=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Qe,Wy,M2,C2],Ue=()=>["","none",S,ke,Me],De=()=>["none",Qe,ke,Me],Re=()=>["none",Qe,ke,Me],ze=()=>[Qe,ke,Me],qe=()=>[Ji,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ui],breakpoint:[ui],color:[Rw],container:[ui],"drop-shadow":[ui],ease:["in","out","in-out"],font:[DR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ui],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ui],shadow:[ui],spacing:["px",Qe],text:[ui],"text-shadow":[ui],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ji,Me,ke,w]}],container:["container"],columns:[{columns:[Qe,Me,ke,f]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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"],sr:["sr-only","not-sr-only"],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:z()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Wi,"auto",ke,Me]}],basis:[{basis:[Ji,"full","auto",f,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,Ji,"auto","initial","none",Me]}],grow:[{grow:["",Qe,ke,Me]}],shrink:[{shrink:["",Qe,ke,Me]}],order:[{order:[Wi,"first","last","none",ke,Me]}],"grid-cols":[{"grid-cols":Q()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":Q()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...K()]}],"min-block-size":[{"min-block":["auto",...K()]}],"max-block-size":[{"max-block":["none",...K()]}],w:[{w:[f,"screen",...Y()]}],"min-w":[{"min-w":[f,"screen","none",...Y()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",i,Go,$a]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,PR,BR]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Wy,Me]}],"font-family":[{font:[HR,jR,t]}],"font-features":[{"font-features":[Me]}],"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:[l,ke,Me]}],"line-clamp":[{"line-clamp":[Qe,"none",ke,E2]}],leading:[{leading:[o,...T()]}],"list-image":[{"list-image":["none",ke,Me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ke,Me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",ke,$a]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[Qe,"auto",ke,Me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ke,Me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ke,Me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wi,ke,Me],radial:["",ke,Me],conic:[Wi,ke,Me]},VR,UR]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-bs":[{"border-bs":J()}],"border-color-be":[{"border-be":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,ke,Me]}],"outline-w":[{outline:["",Qe,Go,$a]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",g,cf,uf]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",p,cf,uf]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[Qe,$a]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",v,cf,uf]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[Qe,ke,Me]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[ke,Me]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ke,Me]}],filter:[{filter:["","none",ke,Me]}],blur:[{blur:Ue()}],brightness:[{brightness:[Qe,ke,Me]}],contrast:[{contrast:[Qe,ke,Me]}],"drop-shadow":[{"drop-shadow":["","none",b,cf,uf]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",Qe,ke,Me]}],"hue-rotate":[{"hue-rotate":[Qe,ke,Me]}],invert:[{invert:["",Qe,ke,Me]}],saturate:[{saturate:[Qe,ke,Me]}],sepia:[{sepia:["",Qe,ke,Me]}],"backdrop-filter":[{"backdrop-filter":["","none",ke,Me]}],"backdrop-blur":[{"backdrop-blur":Ue()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,ke,Me]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,ke,Me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,ke,Me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,ke,Me]}],"backdrop-invert":[{"backdrop-invert":["",Qe,ke,Me]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,ke,Me]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,ke,Me]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,ke,Me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ke,Me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",ke,Me]}],ease:[{ease:["linear","initial",C,ke,Me]}],delay:[{delay:[Qe,ke,Me]}],animate:[{animate:["none",M,ke,Me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,ke,Me]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:De()}],"rotate-x":[{"rotate-x":De()}],"rotate-y":[{"rotate-y":De()}],"rotate-z":[{"rotate-z":De()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[ke,Me,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"translate-none":["translate-none"],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ke,Me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",ke,Me]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[Qe,Go,$a,E2]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","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-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},zB=wR($R),k2=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,A2=nR,DB=(e,t)=>i=>{var a;if((t==null?void 0:t.variants)==null)return A2(e,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:l,defaultVariants:o}=t,c=Object.keys(l).map(y=>{const g=i==null?void 0:i[y],p=o==null?void 0:o[y];if(g===null)return null;const v=k2(g)||k2(p);return l[y][v]}),f=i&&Object.entries(i).reduce((y,g)=>{let[p,v]=g;return v===void 0||(y[p]=v),y},{}),h=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((y,g)=>{let{class:p,className:v,...b}=g;return Object.entries(b).every(S=>{let[_,w]=S;return Array.isArray(w)?w.includes({...o,...f}[_]):{...o,...f}[_]===w})?[...y,p,v]:y},[]);return A2(e,c,h,i==null?void 0:i.class,i==null?void 0:i.className)};var ot;(function(e){e.assertEqual=l=>{};function t(l){}e.assertIs=t;function i(l){throw new Error}e.assertNever=i,e.arrayToEnum=l=>{const o={};for(const c of l)o[c]=c;return o},e.getValidEnumValues=l=>{const o=e.objectKeys(l).filter(f=>typeof l[l[f]]!="number"),c={};for(const f of o)c[f]=l[f];return e.objectValues(c)},e.objectValues=l=>e.objectKeys(l).map(function(o){return l[o]}),e.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const o=[];for(const c in l)Object.prototype.hasOwnProperty.call(l,c)&&o.push(c);return o},e.find=(l,o)=>{for(const c of l)if(o(c))return c},e.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&Number.isFinite(l)&&Math.floor(l)===l;function a(l,o=" | "){return l.map(c=>typeof c=="string"?`'${c}'`:c).join(o)}e.joinValues=a,e.jsonStringifyReplacer=(l,o)=>typeof o=="bigint"?o.toString():o})(ot||(ot={}));var T2;(function(e){e.mergeShapes=(t,i)=>({...t,...i})})(T2||(T2={}));const Te=ot.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ia=e=>{switch(typeof e){case"undefined":return Te.undefined;case"string":return Te.string;case"number":return Number.isNaN(e)?Te.nan:Te.number;case"boolean":return Te.boolean;case"function":return Te.function;case"bigint":return Te.bigint;case"symbol":return Te.symbol;case"object":return Array.isArray(e)?Te.array:e===null?Te.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Te.promise:typeof Map<"u"&&e instanceof Map?Te.map:typeof Set<"u"&&e instanceof Set?Te.set:typeof Date<"u"&&e instanceof Date?Te.date:Te.object;default:return Te.unknown}},ve=ot.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class _i extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=t}format(t){const i=t||function(o){return o.message},a={_errors:[]},l=o=>{for(const c of o.issues)if(c.code==="invalid_union")c.unionErrors.map(l);else if(c.code==="invalid_return_type")l(c.returnTypeError);else if(c.code==="invalid_arguments")l(c.argumentsError);else if(c.path.length===0)a._errors.push(i(c));else{let f=a,h=0;for(;h<c.path.length;){const y=c.path[h];h===c.path.length-1?(f[y]=f[y]||{_errors:[]},f[y]._errors.push(i(c))):f[y]=f[y]||{_errors:[]},f=f[y],h++}}};return l(this),a}static assert(t){if(!(t instanceof _i))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ot.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=i=>i.message){const i={},a=[];for(const l of this.issues)if(l.path.length>0){const o=l.path[0];i[o]=i[o]||[],i[o].push(t(l))}else a.push(t(l));return{formErrors:a,fieldErrors:i}}get formErrors(){return this.flatten()}}_i.create=e=>new _i(e);const Vp=(e,t)=>{let i;switch(e.code){case ve.invalid_type:e.received===Te.undefined?i="Required":i=`Expected ${e.expected}, received ${e.received}`;break;case ve.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,ot.jsonStringifyReplacer)}`;break;case ve.unrecognized_keys:i=`Unrecognized key(s) in object: ${ot.joinValues(e.keys,", ")}`;break;case ve.invalid_union:i="Invalid input";break;case ve.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${ot.joinValues(e.options)}`;break;case ve.invalid_enum_value:i=`Invalid enum value. Expected ${ot.joinValues(e.options)}, received '${e.received}'`;break;case ve.invalid_arguments:i="Invalid function arguments";break;case ve.invalid_return_type:i="Invalid function return type";break;case ve.invalid_date:i="Invalid date";break;case ve.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:ot.assertNever(e.validation):e.validation!=="regex"?i=`Invalid ${e.validation}`:i="Invalid";break;case ve.too_small:e.type==="array"?i=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?i=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?i=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?i=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?i=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:i="Invalid input";break;case ve.too_big:e.type==="array"?i=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?i=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?i=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?i=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?i=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:i="Invalid input";break;case ve.custom:i="Invalid input";break;case ve.invalid_intersection_types:i="Intersection results could not be merged";break;case ve.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case ve.not_finite:i="Number must be finite";break;default:i=t.defaultError,ot.assertNever(e)}return{message:i}};let YR=Vp;function FR(){return YR}const ZR=e=>{const{data:t,path:i,errorMaps:a,issueData:l}=e,o=[...i,...l.path||[]],c={...l,path:o};if(l.message!==void 0)return{...l,path:o,message:l.message};let f="";const h=a.filter(y=>!!y).slice().reverse();for(const y of h)f=y(c,{data:t,defaultError:f}).message;return{...l,path:o,message:f}};function xe(e,t){const i=FR(),a=ZR({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,i,i===Vp?void 0:Vp].filter(l=>!!l)});e.common.issues.push(a)}class Fn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,i){const a=[];for(const l of i){if(l.status==="aborted")return Ie;l.status==="dirty"&&t.dirty(),a.push(l.value)}return{status:t.value,value:a}}static async mergeObjectAsync(t,i){const a=[];for(const l of i){const o=await l.key,c=await l.value;a.push({key:o,value:c})}return Fn.mergeObjectSync(t,a)}static mergeObjectSync(t,i){const a={};for(const l of i){const{key:o,value:c}=l;if(o.status==="aborted"||c.status==="aborted")return Ie;o.status==="dirty"&&t.dirty(),c.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof c.value<"u"||l.alwaysSet)&&(a[o.value]=c.value)}return{status:t.value,value:a}}}const Ie=Object.freeze({status:"aborted"}),Jo=e=>({status:"dirty",value:e}),cr=e=>({status:"valid",value:e}),R2=e=>e.status==="aborted",N2=e=>e.status==="dirty",Tl=e=>e.status==="valid",Nf=e=>typeof Promise<"u"&&e instanceof Promise;var Oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Oe||(Oe={}));class _a{constructor(t,i,a,l){this._cachedPath=[],this.parent=t,this.data=i,this._path=a,this._key=l}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const O2=(e,t)=>{if(Tl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const i=new _i(e.common.issues);return this._error=i,this._error}}};function Xe(e){if(!e)return{};const{errorMap:t,invalid_type_error:i,required_error:a,description:l}=e;if(t&&(i||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:l}:{errorMap:(c,f)=>{const{message:h}=e;return c.code==="invalid_enum_value"?{message:h??f.defaultError}:typeof f.data>"u"?{message:h??a??f.defaultError}:c.code!=="invalid_type"?{message:f.defaultError}:{message:h??i??f.defaultError}},description:l}}class at{get description(){return this._def.description}_getType(t){return ia(t.data)}_getOrReturnCtx(t,i){return i||{common:t.parent.common,data:t.data,parsedType:ia(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Fn,ctx:{common:t.parent.common,data:t.data,parsedType:ia(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const i=this._parse(t);if(Nf(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(t){const i=this._parse(t);return Promise.resolve(i)}parse(t,i){const a=this.safeParse(t,i);if(a.success)return a.data;throw a.error}safeParse(t,i){const a={common:{issues:[],async:(i==null?void 0:i.async)??!1,contextualErrorMap:i==null?void 0:i.errorMap},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ia(t)},l=this._parseSync({data:t,path:a.path,parent:a});return O2(a,l)}"~validate"(t){var a,l;const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ia(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:i});return Tl(o)?{value:o.value}:{issues:i.common.issues}}catch(o){(l=(a=o==null?void 0:o.message)==null?void 0:a.toLowerCase())!=null&&l.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:i}).then(o=>Tl(o)?{value:o.value}:{issues:i.common.issues})}async parseAsync(t,i){const a=await this.safeParseAsync(t,i);if(a.success)return a.data;throw a.error}async safeParseAsync(t,i){const a={common:{issues:[],contextualErrorMap:i==null?void 0:i.errorMap,async:!0},path:(i==null?void 0:i.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ia(t)},l=this._parse({data:t,path:a.path,parent:a}),o=await(Nf(l)?l:Promise.resolve(l));return O2(a,o)}refine(t,i){const a=l=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(l):i;return this._refinement((l,o)=>{const c=t(l),f=()=>o.addIssue({code:ve.custom,...a(l)});return typeof Promise<"u"&&c instanceof Promise?c.then(h=>h?!0:(f(),!1)):c?!0:(f(),!1)})}refinement(t,i){return this._refinement((a,l)=>t(a)?!0:(l.addIssue(typeof i=="function"?i(a,l):i),!1))}_refinement(t){return new Ol({schema:this,typeName:$e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return va.create(this,this._def)}nullable(){return zl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jr.create(this)}promise(){return Lf.create(this,this._def)}or(t){return zf.create([this,t],this._def)}and(t){return Df.create(this,t,this._def)}transform(t){return new Ol({...Xe(this._def),schema:this,typeName:$e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const i=typeof t=="function"?t:()=>t;return new Ip({...Xe(this._def),innerType:this,defaultValue:i,typeName:$e.ZodDefault})}brand(){return new pN({typeName:$e.ZodBranded,type:this,...Xe(this._def)})}catch(t){const i=typeof t=="function"?t:()=>t;return new $p({...Xe(this._def),innerType:this,catchValue:i,typeName:$e.ZodCatch})}describe(t){const i=this.constructor;return new i({...this._def,description:t})}pipe(t){return zg.create(this,t)}readonly(){return Yp.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const GR=/^c[^\s-]{8,}$/i,QR=/^[0-9a-z]+$/,XR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,KR=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,JR=/^[a-z0-9_-]{21}$/i,WR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,eN=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,tN=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,nN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let em;const rN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,aN=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,sN=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,lN=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,oN=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Uw="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",uN=new RegExp(`^${Uw}$`);function Hw(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const i=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${i}`}function cN(e){return new RegExp(`^${Hw(e)}$`)}function fN(e){let t=`${Uw}T${Hw(e)}`;const i=[];return i.push(e.local?"Z?":"Z"),e.offset&&i.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${i.join("|")})`,new RegExp(`^${t}$`)}function dN(e,t){return!!((t==="v4"||!t)&&rN.test(e)||(t==="v6"||!t)&&aN.test(e))}function hN(e,t){if(!WR.test(e))return!1;try{const[i]=e.split(".");if(!i)return!1;const a=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),l=JSON.parse(atob(a));return!(typeof l!="object"||l===null||"typ"in l&&(l==null?void 0:l.typ)!=="JWT"||!l.alg||t&&l.alg!==t)}catch{return!1}}function yN(e,t){return!!((t==="v4"||!t)&&iN.test(e)||(t==="v6"||!t)&&sN.test(e))}class pi extends at{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Te.string){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_type,expected:Te.string,received:o.parsedType}),Ie}const a=new Fn;let l;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(l=this._getOrReturnCtx(t,l),xe(l,{code:ve.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="max")t.data.length>o.value&&(l=this._getOrReturnCtx(t,l),xe(l,{code:ve.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="length"){const c=t.data.length>o.value,f=t.data.length<o.value;(c||f)&&(l=this._getOrReturnCtx(t,l),c?xe(l,{code:ve.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):f&&xe(l,{code:ve.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),a.dirty())}else if(o.kind==="email")tN.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"email",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="emoji")em||(em=new RegExp(nN,"u")),em.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"emoji",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="uuid")KR.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"uuid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="nanoid")JR.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"nanoid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid")GR.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"cuid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid2")QR.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"cuid2",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="ulid")XR.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"ulid",code:ve.invalid_string,message:o.message}),a.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{l=this._getOrReturnCtx(t,l),xe(l,{validation:"url",code:ve.invalid_string,message:o.message}),a.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"regex",code:ve.invalid_string,message:o.message}),a.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(l=this._getOrReturnCtx(t,l),xe(l,{code:ve.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),a.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(l=this._getOrReturnCtx(t,l),xe(l,{code:ve.invalid_string,validation:{startsWith:o.value},message:o.message}),a.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(l=this._getOrReturnCtx(t,l),xe(l,{code:ve.invalid_string,validation:{endsWith:o.value},message:o.message}),a.dirty()):o.kind==="datetime"?fN(o).test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{code:ve.invalid_string,validation:"datetime",message:o.message}),a.dirty()):o.kind==="date"?uN.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{code:ve.invalid_string,validation:"date",message:o.message}),a.dirty()):o.kind==="time"?cN(o).test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{code:ve.invalid_string,validation:"time",message:o.message}),a.dirty()):o.kind==="duration"?eN.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"duration",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="ip"?dN(t.data,o.version)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"ip",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="jwt"?hN(t.data,o.alg)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"jwt",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="cidr"?yN(t.data,o.version)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"cidr",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="base64"?lN.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"base64",code:ve.invalid_string,message:o.message}),a.dirty()):o.kind==="base64url"?oN.test(t.data)||(l=this._getOrReturnCtx(t,l),xe(l,{validation:"base64url",code:ve.invalid_string,message:o.message}),a.dirty()):ot.assertNever(o);return{status:a.value,value:t.data}}_regex(t,i,a){return this.refinement(l=>t.test(l),{validation:i,code:ve.invalid_string,...Oe.errToObj(a)})}_addCheck(t){return new pi({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Oe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Oe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Oe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Oe.errToObj(t)})}regex(t,i){return this._addCheck({kind:"regex",regex:t,...Oe.errToObj(i)})}includes(t,i){return this._addCheck({kind:"includes",value:t,position:i==null?void 0:i.position,...Oe.errToObj(i==null?void 0:i.message)})}startsWith(t,i){return this._addCheck({kind:"startsWith",value:t,...Oe.errToObj(i)})}endsWith(t,i){return this._addCheck({kind:"endsWith",value:t,...Oe.errToObj(i)})}min(t,i){return this._addCheck({kind:"min",value:t,...Oe.errToObj(i)})}max(t,i){return this._addCheck({kind:"max",value:t,...Oe.errToObj(i)})}length(t,i){return this._addCheck({kind:"length",value:t,...Oe.errToObj(i)})}nonempty(t){return this.min(1,Oe.errToObj(t))}trim(){return new pi({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new pi({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new pi({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const i of this._def.checks)i.kind==="min"&&(t===null||i.value>t)&&(t=i.value);return t}get maxLength(){let t=null;for(const i of this._def.checks)i.kind==="max"&&(t===null||i.value<t)&&(t=i.value);return t}}pi.create=e=>new pi({checks:[],typeName:$e.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Xe(e)});function mN(e,t){const i=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,l=i>a?i:a,o=Number.parseInt(e.toFixed(l).replace(".","")),c=Number.parseInt(t.toFixed(l).replace(".",""));return o%c/10**l}class us extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Te.number){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_type,expected:Te.number,received:o.parsedType}),Ie}let a;const l=new Fn;for(const o of this._def.checks)o.kind==="int"?ot.isInteger(t.data)||(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.invalid_type,expected:"integer",received:"float",message:o.message}),l.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),l.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),l.dirty()):o.kind==="multipleOf"?mN(t.data,o.value)!==0&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.not_multiple_of,multipleOf:o.value,message:o.message}),l.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.not_finite,message:o.message}),l.dirty()):ot.assertNever(o);return{status:l.value,value:t.data}}gte(t,i){return this.setLimit("min",t,!0,Oe.toString(i))}gt(t,i){return this.setLimit("min",t,!1,Oe.toString(i))}lte(t,i){return this.setLimit("max",t,!0,Oe.toString(i))}lt(t,i){return this.setLimit("max",t,!1,Oe.toString(i))}setLimit(t,i,a,l){return new us({...this._def,checks:[...this._def.checks,{kind:t,value:i,inclusive:a,message:Oe.toString(l)}]})}_addCheck(t){return new us({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Oe.toString(t)})}multipleOf(t,i){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(i)})}finite(t){return this._addCheck({kind:"finite",message:Oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Oe.toString(t)})}get minValue(){let t=null;for(const i of this._def.checks)i.kind==="min"&&(t===null||i.value>t)&&(t=i.value);return t}get maxValue(){let t=null;for(const i of this._def.checks)i.kind==="max"&&(t===null||i.value<t)&&(t=i.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ot.isInteger(t.value))}get isFinite(){let t=null,i=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(i===null||a.value>i)&&(i=a.value):a.kind==="max"&&(t===null||a.value<t)&&(t=a.value)}return Number.isFinite(i)&&Number.isFinite(t)}}us.create=e=>new us({checks:[],typeName:$e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Xe(e)});class cs extends at{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Te.bigint)return this._getInvalidInput(t);let a;const l=new Fn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),l.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),l.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(a=this._getOrReturnCtx(t,a),xe(a,{code:ve.not_multiple_of,multipleOf:o.value,message:o.message}),l.dirty()):ot.assertNever(o);return{status:l.value,value:t.data}}_getInvalidInput(t){const i=this._getOrReturnCtx(t);return xe(i,{code:ve.invalid_type,expected:Te.bigint,received:i.parsedType}),Ie}gte(t,i){return this.setLimit("min",t,!0,Oe.toString(i))}gt(t,i){return this.setLimit("min",t,!1,Oe.toString(i))}lte(t,i){return this.setLimit("max",t,!0,Oe.toString(i))}lt(t,i){return this.setLimit("max",t,!1,Oe.toString(i))}setLimit(t,i,a,l){return new cs({...this._def,checks:[...this._def.checks,{kind:t,value:i,inclusive:a,message:Oe.toString(l)}]})}_addCheck(t){return new cs({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}multipleOf(t,i){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(i)})}get minValue(){let t=null;for(const i of this._def.checks)i.kind==="min"&&(t===null||i.value>t)&&(t=i.value);return t}get maxValue(){let t=null;for(const i of this._def.checks)i.kind==="max"&&(t===null||i.value<t)&&(t=i.value);return t}}cs.create=e=>new cs({checks:[],typeName:$e.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Xe(e)});class Of extends at{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Te.boolean){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.boolean,received:a.parsedType}),Ie}return cr(t.data)}}Of.create=e=>new Of({typeName:$e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Xe(e)});class Rl extends at{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Te.date){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_type,expected:Te.date,received:o.parsedType}),Ie}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return xe(o,{code:ve.invalid_date}),Ie}const a=new Fn;let l;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(l=this._getOrReturnCtx(t,l),xe(l,{code:ve.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),a.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(l=this._getOrReturnCtx(t,l),xe(l,{code:ve.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),a.dirty()):ot.assertNever(o);return{status:a.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Rl({...this._def,checks:[...this._def.checks,t]})}min(t,i){return this._addCheck({kind:"min",value:t.getTime(),message:Oe.toString(i)})}max(t,i){return this._addCheck({kind:"max",value:t.getTime(),message:Oe.toString(i)})}get minDate(){let t=null;for(const i of this._def.checks)i.kind==="min"&&(t===null||i.value>t)&&(t=i.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const i of this._def.checks)i.kind==="max"&&(t===null||i.value<t)&&(t=i.value);return t!=null?new Date(t):null}}Rl.create=e=>new Rl({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:$e.ZodDate,...Xe(e)});class z2 extends at{_parse(t){if(this._getType(t)!==Te.symbol){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.symbol,received:a.parsedType}),Ie}return cr(t.data)}}z2.create=e=>new z2({typeName:$e.ZodSymbol,...Xe(e)});class D2 extends at{_parse(t){if(this._getType(t)!==Te.undefined){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.undefined,received:a.parsedType}),Ie}return cr(t.data)}}D2.create=e=>new D2({typeName:$e.ZodUndefined,...Xe(e)});class L2 extends at{_parse(t){if(this._getType(t)!==Te.null){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.null,received:a.parsedType}),Ie}return cr(t.data)}}L2.create=e=>new L2({typeName:$e.ZodNull,...Xe(e)});class B2 extends at{constructor(){super(...arguments),this._any=!0}_parse(t){return cr(t.data)}}B2.create=e=>new B2({typeName:$e.ZodAny,...Xe(e)});class j2 extends at{constructor(){super(...arguments),this._unknown=!0}_parse(t){return cr(t.data)}}j2.create=e=>new j2({typeName:$e.ZodUnknown,...Xe(e)});class Sa extends at{_parse(t){const i=this._getOrReturnCtx(t);return xe(i,{code:ve.invalid_type,expected:Te.never,received:i.parsedType}),Ie}}Sa.create=e=>new Sa({typeName:$e.ZodNever,...Xe(e)});class U2 extends at{_parse(t){if(this._getType(t)!==Te.undefined){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.void,received:a.parsedType}),Ie}return cr(t.data)}}U2.create=e=>new U2({typeName:$e.ZodVoid,...Xe(e)});class jr extends at{_parse(t){const{ctx:i,status:a}=this._processInputParams(t),l=this._def;if(i.parsedType!==Te.array)return xe(i,{code:ve.invalid_type,expected:Te.array,received:i.parsedType}),Ie;if(l.exactLength!==null){const c=i.data.length>l.exactLength.value,f=i.data.length<l.exactLength.value;(c||f)&&(xe(i,{code:c?ve.too_big:ve.too_small,minimum:f?l.exactLength.value:void 0,maximum:c?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),a.dirty())}if(l.minLength!==null&&i.data.length<l.minLength.value&&(xe(i,{code:ve.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),a.dirty()),l.maxLength!==null&&i.data.length>l.maxLength.value&&(xe(i,{code:ve.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),a.dirty()),i.common.async)return Promise.all([...i.data].map((c,f)=>l.type._parseAsync(new _a(i,c,i.path,f)))).then(c=>Fn.mergeArray(a,c));const o=[...i.data].map((c,f)=>l.type._parseSync(new _a(i,c,i.path,f)));return Fn.mergeArray(a,o)}get element(){return this._def.type}min(t,i){return new jr({...this._def,minLength:{value:t,message:Oe.toString(i)}})}max(t,i){return new jr({...this._def,maxLength:{value:t,message:Oe.toString(i)}})}length(t,i){return new jr({...this._def,exactLength:{value:t,message:Oe.toString(i)}})}nonempty(t){return this.min(1,t)}}jr.create=(e,t)=>new jr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:$e.ZodArray,...Xe(t)});function fl(e){if(e instanceof Ft){const t={};for(const i in e.shape){const a=e.shape[i];t[i]=va.create(fl(a))}return new Ft({...e._def,shape:()=>t})}else return e instanceof jr?new jr({...e._def,type:fl(e.element)}):e instanceof va?va.create(fl(e.unwrap())):e instanceof zl?zl.create(fl(e.unwrap())):e instanceof fs?fs.create(e.items.map(t=>fl(t))):e}class Ft extends at{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),i=ot.objectKeys(t);return this._cached={shape:t,keys:i},this._cached}_parse(t){if(this._getType(t)!==Te.object){const y=this._getOrReturnCtx(t);return xe(y,{code:ve.invalid_type,expected:Te.object,received:y.parsedType}),Ie}const{status:a,ctx:l}=this._processInputParams(t),{shape:o,keys:c}=this._getCached(),f=[];if(!(this._def.catchall instanceof Sa&&this._def.unknownKeys==="strip"))for(const y in l.data)c.includes(y)||f.push(y);const h=[];for(const y of c){const g=o[y],p=l.data[y];h.push({key:{status:"valid",value:y},value:g._parse(new _a(l,p,l.path,y)),alwaysSet:y in l.data})}if(this._def.catchall instanceof Sa){const y=this._def.unknownKeys;if(y==="passthrough")for(const g of f)h.push({key:{status:"valid",value:g},value:{status:"valid",value:l.data[g]}});else if(y==="strict")f.length>0&&(xe(l,{code:ve.unrecognized_keys,keys:f}),a.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const g of f){const p=l.data[g];h.push({key:{status:"valid",value:g},value:y._parse(new _a(l,p,l.path,g)),alwaysSet:g in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const y=[];for(const g of h){const p=await g.key,v=await g.value;y.push({key:p,value:v,alwaysSet:g.alwaysSet})}return y}).then(y=>Fn.mergeObjectSync(a,y)):Fn.mergeObjectSync(a,h)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new Ft({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(i,a)=>{var o,c;const l=((c=(o=this._def).errorMap)==null?void 0:c.call(o,i,a).message)??a.defaultError;return i.code==="unrecognized_keys"?{message:Oe.errToObj(t).message??l}:{message:l}}}:{}})}strip(){return new Ft({...this._def,unknownKeys:"strip"})}passthrough(){return new Ft({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ft({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ft({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:$e.ZodObject})}setKey(t,i){return this.augment({[t]:i})}catchall(t){return new Ft({...this._def,catchall:t})}pick(t){const i={};for(const a of ot.objectKeys(t))t[a]&&this.shape[a]&&(i[a]=this.shape[a]);return new Ft({...this._def,shape:()=>i})}omit(t){const i={};for(const a of ot.objectKeys(this.shape))t[a]||(i[a]=this.shape[a]);return new Ft({...this._def,shape:()=>i})}deepPartial(){return fl(this)}partial(t){const i={};for(const a of ot.objectKeys(this.shape)){const l=this.shape[a];t&&!t[a]?i[a]=l:i[a]=l.optional()}return new Ft({...this._def,shape:()=>i})}required(t){const i={};for(const a of ot.objectKeys(this.shape))if(t&&!t[a])i[a]=this.shape[a];else{let o=this.shape[a];for(;o instanceof va;)o=o._def.innerType;i[a]=o}return new Ft({...this._def,shape:()=>i})}keyof(){return qw(ot.objectKeys(this.shape))}}Ft.create=(e,t)=>new Ft({shape:()=>e,unknownKeys:"strip",catchall:Sa.create(),typeName:$e.ZodObject,...Xe(t)});Ft.strictCreate=(e,t)=>new Ft({shape:()=>e,unknownKeys:"strict",catchall:Sa.create(),typeName:$e.ZodObject,...Xe(t)});Ft.lazycreate=(e,t)=>new Ft({shape:e,unknownKeys:"strip",catchall:Sa.create(),typeName:$e.ZodObject,...Xe(t)});class zf extends at{_parse(t){const{ctx:i}=this._processInputParams(t),a=this._def.options;function l(o){for(const f of o)if(f.result.status==="valid")return f.result;for(const f of o)if(f.result.status==="dirty")return i.common.issues.push(...f.ctx.common.issues),f.result;const c=o.map(f=>new _i(f.ctx.common.issues));return xe(i,{code:ve.invalid_union,unionErrors:c}),Ie}if(i.common.async)return Promise.all(a.map(async o=>{const c={...i,common:{...i.common,issues:[]},parent:null};return{result:await o._parseAsync({data:i.data,path:i.path,parent:c}),ctx:c}})).then(l);{let o;const c=[];for(const h of a){const y={...i,common:{...i.common,issues:[]},parent:null},g=h._parseSync({data:i.data,path:i.path,parent:y});if(g.status==="valid")return g;g.status==="dirty"&&!o&&(o={result:g,ctx:y}),y.common.issues.length&&c.push(y.common.issues)}if(o)return i.common.issues.push(...o.ctx.common.issues),o.result;const f=c.map(h=>new _i(h));return xe(i,{code:ve.invalid_union,unionErrors:f}),Ie}}get options(){return this._def.options}}zf.create=(e,t)=>new zf({options:e,typeName:$e.ZodUnion,...Xe(t)});function Pp(e,t){const i=ia(e),a=ia(t);if(e===t)return{valid:!0,data:e};if(i===Te.object&&a===Te.object){const l=ot.objectKeys(t),o=ot.objectKeys(e).filter(f=>l.indexOf(f)!==-1),c={...e,...t};for(const f of o){const h=Pp(e[f],t[f]);if(!h.valid)return{valid:!1};c[f]=h.data}return{valid:!0,data:c}}else if(i===Te.array&&a===Te.array){if(e.length!==t.length)return{valid:!1};const l=[];for(let o=0;o<e.length;o++){const c=e[o],f=t[o],h=Pp(c,f);if(!h.valid)return{valid:!1};l.push(h.data)}return{valid:!0,data:l}}else return i===Te.date&&a===Te.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Df extends at{_parse(t){const{status:i,ctx:a}=this._processInputParams(t),l=(o,c)=>{if(R2(o)||R2(c))return Ie;const f=Pp(o.value,c.value);return f.valid?((N2(o)||N2(c))&&i.dirty(),{status:i.value,value:f.data}):(xe(a,{code:ve.invalid_intersection_types}),Ie)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([o,c])=>l(o,c)):l(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}Df.create=(e,t,i)=>new Df({left:e,right:t,typeName:$e.ZodIntersection,...Xe(i)});class fs extends at{_parse(t){const{status:i,ctx:a}=this._processInputParams(t);if(a.parsedType!==Te.array)return xe(a,{code:ve.invalid_type,expected:Te.array,received:a.parsedType}),Ie;if(a.data.length<this._def.items.length)return xe(a,{code:ve.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ie;!this._def.rest&&a.data.length>this._def.items.length&&(xe(a,{code:ve.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const o=[...a.data].map((c,f)=>{const h=this._def.items[f]||this._def.rest;return h?h._parse(new _a(a,c,a.path,f)):null}).filter(c=>!!c);return a.common.async?Promise.all(o).then(c=>Fn.mergeArray(i,c)):Fn.mergeArray(i,o)}get items(){return this._def.items}rest(t){return new fs({...this._def,rest:t})}}fs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new fs({items:e,typeName:$e.ZodTuple,rest:null,...Xe(t)})};class H2 extends at{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:i,ctx:a}=this._processInputParams(t);if(a.parsedType!==Te.map)return xe(a,{code:ve.invalid_type,expected:Te.map,received:a.parsedType}),Ie;const l=this._def.keyType,o=this._def.valueType,c=[...a.data.entries()].map(([f,h],y)=>({key:l._parse(new _a(a,f,a.path,[y,"key"])),value:o._parse(new _a(a,h,a.path,[y,"value"]))}));if(a.common.async){const f=new Map;return Promise.resolve().then(async()=>{for(const h of c){const y=await h.key,g=await h.value;if(y.status==="aborted"||g.status==="aborted")return Ie;(y.status==="dirty"||g.status==="dirty")&&i.dirty(),f.set(y.value,g.value)}return{status:i.value,value:f}})}else{const f=new Map;for(const h of c){const y=h.key,g=h.value;if(y.status==="aborted"||g.status==="aborted")return Ie;(y.status==="dirty"||g.status==="dirty")&&i.dirty(),f.set(y.value,g.value)}return{status:i.value,value:f}}}}H2.create=(e,t,i)=>new H2({valueType:t,keyType:e,typeName:$e.ZodMap,...Xe(i)});class su extends at{_parse(t){const{status:i,ctx:a}=this._processInputParams(t);if(a.parsedType!==Te.set)return xe(a,{code:ve.invalid_type,expected:Te.set,received:a.parsedType}),Ie;const l=this._def;l.minSize!==null&&a.data.size<l.minSize.value&&(xe(a,{code:ve.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),i.dirty()),l.maxSize!==null&&a.data.size>l.maxSize.value&&(xe(a,{code:ve.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),i.dirty());const o=this._def.valueType;function c(h){const y=new Set;for(const g of h){if(g.status==="aborted")return Ie;g.status==="dirty"&&i.dirty(),y.add(g.value)}return{status:i.value,value:y}}const f=[...a.data.values()].map((h,y)=>o._parse(new _a(a,h,a.path,y)));return a.common.async?Promise.all(f).then(h=>c(h)):c(f)}min(t,i){return new su({...this._def,minSize:{value:t,message:Oe.toString(i)}})}max(t,i){return new su({...this._def,maxSize:{value:t,message:Oe.toString(i)}})}size(t,i){return this.min(t,i).max(t,i)}nonempty(t){return this.min(1,t)}}su.create=(e,t)=>new su({valueType:e,minSize:null,maxSize:null,typeName:$e.ZodSet,...Xe(t)});class q2 extends at{get schema(){return this._def.getter()}_parse(t){const{ctx:i}=this._processInputParams(t);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}q2.create=(e,t)=>new q2({getter:e,typeName:$e.ZodLazy,...Xe(t)});class V2 extends at{_parse(t){if(t.data!==this._def.value){const i=this._getOrReturnCtx(t);return xe(i,{received:i.data,code:ve.invalid_literal,expected:this._def.value}),Ie}return{status:"valid",value:t.data}}get value(){return this._def.value}}V2.create=(e,t)=>new V2({value:e,typeName:$e.ZodLiteral,...Xe(t)});function qw(e,t){return new Nl({values:e,typeName:$e.ZodEnum,...Xe(t)})}class Nl extends at{_parse(t){if(typeof t.data!="string"){const i=this._getOrReturnCtx(t),a=this._def.values;return xe(i,{expected:ot.joinValues(a),received:i.parsedType,code:ve.invalid_type}),Ie}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const i=this._getOrReturnCtx(t),a=this._def.values;return xe(i,{received:i.data,code:ve.invalid_enum_value,options:a}),Ie}return cr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const i of this._def.values)t[i]=i;return t}get Values(){const t={};for(const i of this._def.values)t[i]=i;return t}get Enum(){const t={};for(const i of this._def.values)t[i]=i;return t}extract(t,i=this._def){return Nl.create(t,{...this._def,...i})}exclude(t,i=this._def){return Nl.create(this.options.filter(a=>!t.includes(a)),{...this._def,...i})}}Nl.create=qw;class P2 extends at{_parse(t){const i=ot.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==Te.string&&a.parsedType!==Te.number){const l=ot.objectValues(i);return xe(a,{expected:ot.joinValues(l),received:a.parsedType,code:ve.invalid_type}),Ie}if(this._cache||(this._cache=new Set(ot.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const l=ot.objectValues(i);return xe(a,{received:a.data,code:ve.invalid_enum_value,options:l}),Ie}return cr(t.data)}get enum(){return this._def.values}}P2.create=(e,t)=>new P2({values:e,typeName:$e.ZodNativeEnum,...Xe(t)});class Lf extends at{unwrap(){return this._def.type}_parse(t){const{ctx:i}=this._processInputParams(t);if(i.parsedType!==Te.promise&&i.common.async===!1)return xe(i,{code:ve.invalid_type,expected:Te.promise,received:i.parsedType}),Ie;const a=i.parsedType===Te.promise?i.data:Promise.resolve(i.data);return cr(a.then(l=>this._def.type.parseAsync(l,{path:i.path,errorMap:i.common.contextualErrorMap})))}}Lf.create=(e,t)=>new Lf({type:e,typeName:$e.ZodPromise,...Xe(t)});class Ol extends at{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:i,ctx:a}=this._processInputParams(t),l=this._def.effect||null,o={addIssue:c=>{xe(a,c),c.fatal?i.abort():i.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),l.type==="preprocess"){const c=l.transform(a.data,o);if(a.common.async)return Promise.resolve(c).then(async f=>{if(i.value==="aborted")return Ie;const h=await this._def.schema._parseAsync({data:f,path:a.path,parent:a});return h.status==="aborted"?Ie:h.status==="dirty"||i.value==="dirty"?Jo(h.value):h});{if(i.value==="aborted")return Ie;const f=this._def.schema._parseSync({data:c,path:a.path,parent:a});return f.status==="aborted"?Ie:f.status==="dirty"||i.value==="dirty"?Jo(f.value):f}}if(l.type==="refinement"){const c=f=>{const h=l.refinement(f,o);if(a.common.async)return Promise.resolve(h);if(h instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return f};if(a.common.async===!1){const f=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return f.status==="aborted"?Ie:(f.status==="dirty"&&i.dirty(),c(f.value),{status:i.value,value:f.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(f=>f.status==="aborted"?Ie:(f.status==="dirty"&&i.dirty(),c(f.value).then(()=>({status:i.value,value:f.value}))))}if(l.type==="transform")if(a.common.async===!1){const c=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Tl(c))return Ie;const f=l.transform(c.value,o);if(f instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:f}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(c=>Tl(c)?Promise.resolve(l.transform(c.value,o)).then(f=>({status:i.value,value:f})):Ie);ot.assertNever(l)}}Ol.create=(e,t,i)=>new Ol({schema:e,typeName:$e.ZodEffects,effect:t,...Xe(i)});Ol.createWithPreprocess=(e,t,i)=>new Ol({schema:t,effect:{type:"preprocess",transform:e},typeName:$e.ZodEffects,...Xe(i)});class va extends at{_parse(t){return this._getType(t)===Te.undefined?cr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}va.create=(e,t)=>new va({innerType:e,typeName:$e.ZodOptional,...Xe(t)});class zl extends at{_parse(t){return this._getType(t)===Te.null?cr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zl.create=(e,t)=>new zl({innerType:e,typeName:$e.ZodNullable,...Xe(t)});class Ip extends at{_parse(t){const{ctx:i}=this._processInputParams(t);let a=i.data;return i.parsedType===Te.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}Ip.create=(e,t)=>new Ip({innerType:e,typeName:$e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Xe(t)});class $p extends at{_parse(t){const{ctx:i}=this._processInputParams(t),a={...i,common:{...i.common,issues:[]}},l=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return Nf(l)?l.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new _i(a.common.issues)},input:a.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new _i(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}$p.create=(e,t)=>new $p({innerType:e,typeName:$e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Xe(t)});class I2 extends at{_parse(t){if(this._getType(t)!==Te.nan){const a=this._getOrReturnCtx(t);return xe(a,{code:ve.invalid_type,expected:Te.nan,received:a.parsedType}),Ie}return{status:"valid",value:t.data}}}I2.create=e=>new I2({typeName:$e.ZodNaN,...Xe(e)});class pN extends at{_parse(t){const{ctx:i}=this._processInputParams(t),a=i.data;return this._def.type._parse({data:a,path:i.path,parent:i})}unwrap(){return this._def.type}}class zg extends at{_parse(t){const{status:i,ctx:a}=this._processInputParams(t);if(a.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?Ie:o.status==="dirty"?(i.dirty(),Jo(o.value)):this._def.out._parseAsync({data:o.value,path:a.path,parent:a})})();{const l=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return l.status==="aborted"?Ie:l.status==="dirty"?(i.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:a.path,parent:a})}}static create(t,i){return new zg({in:t,out:i,typeName:$e.ZodPipeline})}}class Yp extends at{_parse(t){const i=this._def.innerType._parse(t),a=l=>(Tl(l)&&(l.value=Object.freeze(l.value)),l);return Nf(i)?i.then(l=>a(l)):a(i)}unwrap(){return this._def.innerType}}Yp.create=(e,t)=>new Yp({innerType:e,typeName:$e.ZodReadonly,...Xe(t)});var $e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})($e||($e={}));const LB=pi.create,BB=us.create;cs.create;const jB=Of.create;Rl.create;Sa.create;const UB=jr.create,HB=Ft.create;zf.create;Df.create;fs.create;const qB=Nl.create;Lf.create;va.create;zl.create;const VB={string:(e=>pi.create({...e,coerce:!0})),number:(e=>us.create({...e,coerce:!0})),boolean:(e=>Of.create({...e,coerce:!0})),bigint:(e=>cs.create({...e,coerce:!0})),date:(e=>Rl.create({...e,coerce:!0}))},$2=e=>{let t;const i=new Set,a=(y,g)=>{const p=typeof y=="function"?y(t):y;if(!Object.is(p,t)){const v=t;t=g??(typeof p!="object"||p===null)?p:Object.assign({},t,p),i.forEach(b=>b(t,v))}},l=()=>t,f={setState:a,getState:l,getInitialState:()=>h,subscribe:y=>(i.add(y),()=>i.delete(y))},h=t=e(a,l,f);return f},gN=(e=>e?$2(e):$2),vN=e=>e;function bN(e,t=vN){const i=jt.useSyncExternalStore(e.subscribe,jt.useCallback(()=>t(e.getState()),[e,t]),jt.useCallback(()=>t(e.getInitialState()),[e,t]));return jt.useDebugValue(i),i}const Y2=e=>{const t=gN(e),i=a=>bN(t,a);return Object.assign(i,t),i},PB=(e=>e?Y2(e):Y2);var tm={},nm={},F2;function _N(){return F2||(F2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i){return i==="__proto__"}e.isUnsafeProperty=t})(nm)),nm}var rm={},Z2;function SN(){return Z2||(Z2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i){switch(typeof i){case"number":case"symbol":return!1;case"string":return i.includes(".")||i.includes("[")||i.includes("]")}}e.isDeepKey=t})(rm)),rm}var im={},G2;function Vw(){return G2||(G2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i){var a;return typeof i=="string"||typeof i=="symbol"?i:Object.is((a=i==null?void 0:i.valueOf)==null?void 0:a.call(i),-0)?"-0":String(i)}e.toKey=t})(im)),im}var am={},sm={},Q2;function xN(){return Q2||(Q2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i){if(i==null)return"";if(typeof i=="string")return i;if(Array.isArray(i))return i.map(t).join(",");const a=String(i);return a==="0"&&Object.is(Number(i),-0)?"-0":a}e.toString=t})(sm)),sm}var X2;function Pw(){return X2||(X2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xN(),i=Vw();function a(l){if(Array.isArray(l))return l.map(i.toKey);if(typeof l=="symbol")return[l];l=t.toString(l);const o=[],c=l.length;if(c===0)return o;let f=0,h="",y="",g=!1;for(l.charCodeAt(0)===46&&(o.push(""),f++);f<c;){const p=l[f];y?p==="\\"&&f+1<c?(f++,h+=l[f]):p===y?y="":h+=p:g?p==='"'||p==="'"?y=p:p==="]"?(g=!1,o.push(h),h=""):h+=p:p==="["?(g=!0,h&&(o.push(h),h="")):p==="."?h&&(o.push(h),h=""):h+=p,f++}return h&&o.push(h),o}e.toPath=a})(am)),am}var K2;function wN(){return K2||(K2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_N(),i=SN(),a=Vw(),l=Pw();function o(f,h,y){if(f==null)return y;switch(typeof h){case"string":{if(t.isUnsafeProperty(h))return y;const g=f[h];return g===void 0?i.isDeepKey(h)?o(f,l.toPath(h),y):y:g}case"number":case"symbol":{typeof h=="number"&&(h=a.toKey(h));const g=f[h];return g===void 0?y:g}default:{if(Array.isArray(h))return c(f,h,y);if(Object.is(h==null?void 0:h.valueOf(),-0)?h="-0":h=String(h),t.isUnsafeProperty(h))return y;const g=f[h];return g===void 0?y:g}}}function c(f,h,y){if(h.length===0)return y;let g=f;for(let p=0;p<h.length;p++){if(g==null||t.isUnsafeProperty(h[p]))return y;g=g[h[p]]}return g===void 0?y:g}e.get=o})(tm)),tm}var lm,J2;function EN(){return J2||(J2=1,lm=wN().get),lm}var CN=EN();const IB=Er(CN);var om={},um={},W2;function MN(){return W2||(W2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i){return Number.isSafeInteger(i)&&i>=0}e.isLength=t})(um)),um}var e_;function kN(){return e_||(e_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=MN();function i(a){return a!=null&&typeof a!="function"&&t.isLength(a.length)}e.isArrayLike=i})(om)),om}var cm={},t_;function AN(){return t_||(t_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i){return i!==null&&(typeof i=="object"||typeof i=="function")}e.isObject=t})(cm)),cm}var fm={},n_;function TN(){return n_||(n_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i,a){return i===a||Number.isNaN(i)&&Number.isNaN(a)}e.isEqualsSameValueZero=t})(fm)),fm}var dm={},r_;function RN(){return r_||(r_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function i(a,l=Number.MAX_SAFE_INTEGER){switch(typeof a){case"number":return Number.isInteger(a)&&a>=0&&a<l;case"symbol":return!1;case"string":return t.test(a)}}e.isIndex=i})(dm)),dm}var hm={exports:{}},ym={},mm={exports:{}},pm={};/**
661
- * @license React
662
- * use-sync-external-store-shim.production.js
663
- *
664
- * Copyright (c) Meta Platforms, Inc. and affiliates.
665
- *
666
- * This source code is licensed under the MIT license found in the
667
- * LICENSE file in the root directory of this source tree.
668
- */var i_;function NN(){if(i_)return pm;i_=1;var e=Pl();function t(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var i=typeof Object.is=="function"?Object.is:t,a=e.useState,l=e.useEffect,o=e.useLayoutEffect,c=e.useDebugValue;function f(p,v){var b=v(),S=a({inst:{value:b,getSnapshot:v}}),_=S[0].inst,w=S[1];return o(function(){_.value=b,_.getSnapshot=v,h(_)&&w({inst:_})},[p,b,v]),l(function(){return h(_)&&w({inst:_}),p(function(){h(_)&&w({inst:_})})},[p]),c(b),b}function h(p){var v=p.getSnapshot;p=p.value;try{var b=v();return!i(p,b)}catch{return!0}}function y(p,v){return v()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:f;return pm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,pm}var a_;function ON(){return a_||(a_=1,mm.exports=NN()),mm.exports}/**
669
- * @license React
670
- * use-sync-external-store-shim/with-selector.production.js
671
- *
672
- * Copyright (c) Meta Platforms, Inc. and affiliates.
673
- *
674
- * This source code is licensed under the MIT license found in the
675
- * LICENSE file in the root directory of this source tree.
676
- */var s_;function zN(){if(s_)return ym;s_=1;var e=Pl(),t=ON();function i(y,g){return y===g&&(y!==0||1/y===1/g)||y!==y&&g!==g}var a=typeof Object.is=="function"?Object.is:i,l=t.useSyncExternalStore,o=e.useRef,c=e.useEffect,f=e.useMemo,h=e.useDebugValue;return ym.useSyncExternalStoreWithSelector=function(y,g,p,v,b){var S=o(null);if(S.current===null){var _={hasValue:!1,value:null};S.current=_}else _=S.current;S=f(function(){function C(N){if(!M){if(M=!0,E=N,N=v(N),b!==void 0&&_.hasValue){var D=_.value;if(b(D,N))return k=D}return k=N}if(D=k,a(E,N))return D;var T=v(N);return b!==void 0&&b(D,T)?(E=N,D):(E=N,k=T)}var M=!1,E,k,z=p===void 0?null:p;return[function(){return C(g())},z===null?void 0:function(){return C(z())}]},[g,p,v,b]);var w=l(y,S[0],S[1]);return c(function(){_.hasValue=!0,_.value=w},[w]),h(w),w},ym}var l_;function DN(){return l_||(l_=1,hm.exports=zN()),hm.exports}var LN=DN();const BN=Er(LN);function jN(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function UN(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function HN(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(i=>typeof i=="function")){const i=e.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${t}[${i}]`)}}var o_=e=>Array.isArray(e)?e:[e];function qN(e){const t=Array.isArray(e[0])?e[0]:e;return HN(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function VN(e,t){const i=[],{length:a}=e;for(let l=0;l<a;l++)i.push(e[l].apply(null,t));return i}var PN=class{constructor(e){this.value=e}deref(){return this.value}},IN=typeof WeakRef<"u"?WeakRef:PN,$N=0,u_=1;function ff(){return{s:$N,v:void 0,o:null,p:null}}function Iw(e,t={}){let i=ff();const{resultEqualityCheck:a}=t;let l,o=0;function c(){var p;let f=i;const{length:h}=arguments;for(let v=0,b=h;v<b;v++){const S=arguments[v];if(typeof S=="function"||typeof S=="object"&&S!==null){let _=f.o;_===null&&(f.o=_=new WeakMap);const w=_.get(S);w===void 0?(f=ff(),_.set(S,f)):f=w}else{let _=f.p;_===null&&(f.p=_=new Map);const w=_.get(S);w===void 0?(f=ff(),_.set(S,f)):f=w}}const y=f;let g;if(f.s===u_)g=f.v;else if(g=e.apply(null,arguments),o++,a){const v=((p=l==null?void 0:l.deref)==null?void 0:p.call(l))??l;v!=null&&a(v,g)&&(g=v,o!==0&&o--),l=typeof g=="object"&&g!==null||typeof g=="function"?new IN(g):g}return y.s=u_,y.v=g,g}return c.clearCache=()=>{i=ff(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}function YN(e,...t){const i=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,a=(...l)=>{let o=0,c=0,f,h={},y=l.pop();typeof y=="object"&&(h=y,y=l.pop()),jN(y,`createSelector expects an output function after the inputs, but received: [${typeof y}]`);const g={...i,...h},{memoize:p,memoizeOptions:v=[],argsMemoize:b=Iw,argsMemoizeOptions:S=[]}=g,_=o_(v),w=o_(S),C=qN(l),M=p(function(){return o++,y.apply(null,arguments)},..._),E=b(function(){c++;const z=VN(C,arguments);return f=M.apply(null,z),f},...w);return Object.assign(E,{resultFunc:y,memoizedResultFunc:M,dependencies:C,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>f,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:b})};return Object.assign(a,{withTypes:()=>a}),a}var FN=YN(Iw),ZN=Object.assign((e,t=FN)=>{UN(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const i=Object.keys(e),a=i.map(o=>e[o]);return t(a,(...o)=>o.reduce((c,f,h)=>(c[i[h]]=f,c),{}))},{withTypes:()=>ZN}),gm={},vm={},bm={},c_;function GN(){return c_||(c_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(a){return typeof a=="symbol"?1:a===null?2:a===void 0?3:a!==a?4:0}const i=(a,l,o)=>{if(a!==l){const c=t(a),f=t(l);if(c===f&&c===0){if(a<l)return o==="desc"?1:-1;if(a>l)return o==="desc"?-1:1}return o==="desc"?f-c:c-f}return 0};e.compareValues=i})(bm)),bm}var _m={},Sm={},f_;function $w(){return f_||(f_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i){return typeof i=="symbol"||i instanceof Symbol}e.isSymbol=t})(Sm)),Sm}var d_;function QN(){return d_||(d_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$w(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function l(o,c){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(a.test(o)||!i.test(o))||c!=null&&Object.hasOwn(c,o)}e.isKey=l})(_m)),_m}var h_;function XN(){return h_||(h_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GN(),i=QN(),a=Pw();function l(o,c,f,h){if(o==null)return[];f=h?void 0:f,Array.isArray(o)||(o=Object.values(o)),Array.isArray(c)||(c=c==null?[null]:[c]),c.length===0&&(c=[null]),Array.isArray(f)||(f=f==null?[]:[f]),f=f.map(b=>String(b));const y=(b,S)=>{let _=b;for(let w=0;w<S.length&&_!=null;++w)_=_[S[w]];return _},g=(b,S)=>S==null||b==null?S:typeof b=="object"&&"key"in b?Object.hasOwn(S,b.key)?S[b.key]:y(S,b.path):typeof b=="function"?b(S):Array.isArray(b)?y(S,b):typeof S=="object"?S[b]:S,p=c.map(b=>(Array.isArray(b)&&b.length===1&&(b=b[0]),b==null||typeof b=="function"||Array.isArray(b)||i.isKey(b)?b:{key:b,path:a.toPath(b)}));return o.map(b=>({original:b,criteria:p.map(S=>g(S,b))})).slice().sort((b,S)=>{for(let _=0;_<p.length;_++){const w=t.compareValues(b.criteria[_],S.criteria[_],f[_]);if(w!==0)return w}return 0}).map(b=>b.original)}e.orderBy=l})(vm)),vm}var xm={},y_;function KN(){return y_||(y_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i,a=1){const l=[],o=Math.floor(a),c=(f,h)=>{for(let y=0;y<f.length;y++){const g=f[y];Array.isArray(g)&&h<o?c(g,h+1):l.push(g)}};return c(i,0),l}e.flatten=t})(xm)),xm}var wm={},m_;function Yw(){return m_||(m_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=RN(),i=kN(),a=AN(),l=TN();function o(c,f,h){return a.isObject(h)&&(typeof f=="number"&&i.isArrayLike(h)&&t.isIndex(f)&&f<h.length||typeof f=="string"&&f in h)?l.isEqualsSameValueZero(h[f],c):!1}e.isIterateeCall=o})(wm)),wm}var p_;function JN(){return p_||(p_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XN(),i=KN(),a=Yw();function l(o,...c){const f=c.length;return f>1&&a.isIterateeCall(o,c[0],c[1])?c=[]:f>2&&a.isIterateeCall(c[0],c[1],c[2])&&(c=[c[0]]),t.orderBy(o,i.flatten(c),["asc"])}e.sortBy=l})(gm)),gm}var Em,g_;function WN(){return g_||(g_=1,Em=JN().sortBy),Em}var e6=WN();const $B=Er(e6);function cn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var t6=typeof Symbol=="function"&&Symbol.observable||"@@observable",v_=t6,Cm=()=>Math.random().toString(36).substring(7).split("").join("."),n6={INIT:`@@redux/INIT${Cm()}`,REPLACE:`@@redux/REPLACE${Cm()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cm()}`},Bf=n6;function Dg(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Fw(e,t,i){if(typeof e!="function")throw new Error(cn(2));if(typeof t=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(cn(0));if(typeof t=="function"&&typeof i>"u"&&(i=t,t=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(cn(1));return i(Fw)(e,t)}let a=e,l=t,o=new Map,c=o,f=0,h=!1;function y(){c===o&&(c=new Map,o.forEach((w,C)=>{c.set(C,w)}))}function g(){if(h)throw new Error(cn(3));return l}function p(w){if(typeof w!="function")throw new Error(cn(4));if(h)throw new Error(cn(5));let C=!0;y();const M=f++;return c.set(M,w),function(){if(C){if(h)throw new Error(cn(6));C=!1,y(),c.delete(M),o=null}}}function v(w){if(!Dg(w))throw new Error(cn(7));if(typeof w.type>"u")throw new Error(cn(8));if(typeof w.type!="string")throw new Error(cn(17));if(h)throw new Error(cn(9));try{h=!0,l=a(l,w)}finally{h=!1}return(o=c).forEach(M=>{M()}),w}function b(w){if(typeof w!="function")throw new Error(cn(10));a=w,v({type:Bf.REPLACE})}function S(){const w=p;return{subscribe(C){if(typeof C!="object"||C===null)throw new Error(cn(11));function M(){const k=C;k.next&&k.next(g())}return M(),{unsubscribe:w(M)}},[v_](){return this}}}return v({type:Bf.INIT}),{dispatch:v,subscribe:p,getState:g,replaceReducer:b,[v_]:S}}function r6(e){Object.keys(e).forEach(t=>{const i=e[t];if(typeof i(void 0,{type:Bf.INIT})>"u")throw new Error(cn(12));if(typeof i(void 0,{type:Bf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(cn(13))})}function i6(e){const t=Object.keys(e),i={};for(let o=0;o<t.length;o++){const c=t[o];typeof e[c]=="function"&&(i[c]=e[c])}const a=Object.keys(i);let l;try{r6(i)}catch(o){l=o}return function(c={},f){if(l)throw l;let h=!1;const y={};for(let g=0;g<a.length;g++){const p=a[g],v=i[p],b=c[p],S=v(b,f);if(typeof S>"u")throw f&&f.type,new Error(cn(14));y[p]=S,h=h||S!==b}return h=h||a.length!==Object.keys(c).length,h?y:c}}function jf(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,i)=>(...a)=>t(i(...a)))}function a6(...e){return t=>(i,a)=>{const l=t(i,a);let o=()=>{throw new Error(cn(15))};const c={getState:l.getState,dispatch:(h,...y)=>o(h,...y)},f=e.map(h=>h(c));return o=jf(...f)(l.dispatch),{...l,dispatch:o}}}function Zw(e){return Dg(e)&&"type"in e&&typeof e.type=="string"}var Gw=Symbol.for("immer-nothing"),b_=Symbol.for("immer-draftable"),_n=Symbol.for("immer-state");function gr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $n=Object,Dl=$n.getPrototypeOf,Uf="constructor",ld="prototype",Fp="configurable",Hf="enumerable",Ef="writable",lu="value",Si=e=>!!e&&!!e[_n];function wr(e){var t;return e?Qw(e)||ud(e)||!!e[b_]||!!((t=e[Uf])!=null&&t[b_])||cd(e)||fd(e):!1}var s6=$n[ld][Uf].toString(),__=new WeakMap;function Qw(e){if(!e||!Lg(e))return!1;const t=Dl(e);if(t===null||t===$n[ld])return!0;const i=$n.hasOwnProperty.call(t,Uf)&&t[Uf];if(i===Object)return!0;if(!dl(i))return!1;let a=__.get(i);return a===void 0&&(a=Function.toString.call(i),__.set(i,a)),a===s6}function od(e,t,i=!0){ku(e)===0?(i?Reflect.ownKeys(e):$n.keys(e)).forEach(l=>{t(l,e[l],e)}):e.forEach((a,l)=>t(l,a,e))}function ku(e){const t=e[_n];return t?t.type_:ud(e)?1:cd(e)?2:fd(e)?3:0}var S_=(e,t,i=ku(e))=>i===2?e.has(t):$n[ld].hasOwnProperty.call(e,t),Zp=(e,t,i=ku(e))=>i===2?e.get(t):e[t],qf=(e,t,i,a=ku(e))=>{a===2?e.set(t,i):a===3?e.add(i):e[t]=i};function l6(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ud=Array.isArray,cd=e=>e instanceof Map,fd=e=>e instanceof Set,Lg=e=>typeof e=="object",dl=e=>typeof e=="function",Mm=e=>typeof e=="boolean";function o6(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var fi=e=>e.copy_||e.base_,Bg=e=>e.modified_?e.copy_:e.base_;function Gp(e,t){if(cd(e))return new Map(e);if(fd(e))return new Set(e);if(ud(e))return Array[ld].slice.call(e);const i=Qw(e);if(t===!0||t==="class_only"&&!i){const a=$n.getOwnPropertyDescriptors(e);delete a[_n];let l=Reflect.ownKeys(a);for(let o=0;o<l.length;o++){const c=l[o],f=a[c];f[Ef]===!1&&(f[Ef]=!0,f[Fp]=!0),(f.get||f.set)&&(a[c]={[Fp]:!0,[Ef]:!0,[Hf]:f[Hf],[lu]:e[c]})}return $n.create(Dl(e),a)}else{const a=Dl(e);if(a!==null&&i)return{...e};const l=$n.create(a);return $n.assign(l,e)}}function jg(e,t=!1){return dd(e)||Si(e)||!wr(e)||(ku(e)>1&&$n.defineProperties(e,{set:df,add:df,clear:df,delete:df}),$n.freeze(e),t&&od(e,(i,a)=>{jg(a,!0)},!1)),e}function u6(){gr(2)}var df={[lu]:u6};function dd(e){return e===null||!Lg(e)?!0:$n.isFrozen(e)}var Vf="MapSet",Qp="Patches",x_="ArrayMethods",Xw={};function ds(e){const t=Xw[e];return t||gr(0,e),t}var w_=e=>!!Xw[e],ou,Kw=()=>ou,c6=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:w_(Vf)?ds(Vf):void 0,arrayMethodsPlugin_:w_(x_)?ds(x_):void 0});function E_(e,t){t&&(e.patchPlugin_=ds(Qp),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xp(e){Kp(e),e.drafts_.forEach(f6),e.drafts_=null}function Kp(e){e===ou&&(ou=e.parent_)}var C_=e=>ou=c6(ou,e);function f6(e){const t=e[_n];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function M_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const i=t.drafts_[0];if(e!==void 0&&e!==i){i[_n].modified_&&(Xp(t),gr(4)),wr(e)&&(e=k_(t,e));const{patchPlugin_:l}=t;l&&l.generateReplacementPatches_(i[_n].base_,e,t)}else e=k_(t,i);return d6(t,e,!0),Xp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Gw?e:void 0}function k_(e,t){if(dd(t))return t;const i=t[_n];if(!i)return Pf(t,e.handledSet_,e);if(!hd(i,e))return t;if(!i.modified_)return i.base_;if(!i.finalized_){const{callbacks_:a}=i;if(a)for(;a.length>0;)a.pop()(e);eE(i,e)}return i.copy_}function d6(e,t,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&jg(t,i)}function Jw(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var hd=(e,t)=>e.scope_===t,h6=[];function Ww(e,t,i,a){const l=fi(e),o=e.type_;if(a!==void 0&&Zp(l,a,o)===t){qf(l,a,i,o);return}if(!e.draftLocations_){const f=e.draftLocations_=new Map;od(l,(h,y)=>{if(Si(y)){const g=f.get(y)||[];g.push(h),f.set(y,g)}})}const c=e.draftLocations_.get(t)??h6;for(const f of c)qf(l,f,i,o)}function y6(e,t,i){e.callbacks_.push(function(l){var f;const o=t;if(!o||!hd(o,l))return;(f=l.mapSetPlugin_)==null||f.fixSetContents(o);const c=Bg(o);Ww(e,o.draft_??o,c,i),eE(o,l)})}function eE(e,t){var a;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((a=e.assigned_)==null?void 0:a.size)??0)>0)){const{patchPlugin_:l}=t;if(l){const o=l.getPath(e);o&&l.generatePatches_(e,o,t)}Jw(e)}}function m6(e,t,i){const{scope_:a}=e;if(Si(i)){const l=i[_n];hd(l,a)&&l.callbacks_.push(function(){Cf(e);const c=Bg(l);Ww(e,i,c,t)})}else wr(i)&&e.callbacks_.push(function(){const o=fi(e);e.type_===3?o.has(i)&&Pf(i,a.handledSet_,a):Zp(o,t,e.type_)===i&&a.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Pf(Zp(e.copy_,t,e.type_),a.handledSet_,a)})}function Pf(e,t,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||Si(e)||t.has(e)||!wr(e)||dd(e)||(t.add(e),od(e,(a,l)=>{if(Si(l)){const o=l[_n];if(hd(o,i)){const c=Bg(o);qf(e,a,c,e.type_),Jw(o)}}else wr(l)&&Pf(l,t,i)})),e}function p6(e,t){const i=ud(e),a={type_:i?1:0,scope_:t?t.scope_:Kw(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let l=a,o=If;i&&(l=[a],o=uu);const{revoke:c,proxy:f}=Proxy.revocable(l,o);return a.draft_=f,a.revoke_=c,[f,a]}var If={get(e,t){if(t===_n)return e;let i=e.scope_.arrayMethodsPlugin_;const a=e.type_===1&&typeof t=="string";if(a&&i!=null&&i.isArrayOperationMethod(t))return i.createMethodInterceptor(e,t);const l=fi(e);if(!S_(l,t,e.type_))return g6(e,l,t);const o=l[t];if(e.finalized_||!wr(o)||a&&e.operationMethod&&(i!=null&&i.isMutatingArrayMethod(e.operationMethod))&&o6(t))return o;if(o===km(e.base_,t)){Cf(e);const c=e.type_===1?+t:t,f=Wp(e.scope_,o,e,c);return e.copy_[c]=f}return o},has(e,t){return t in fi(e)},ownKeys(e){return Reflect.ownKeys(fi(e))},set(e,t,i){const a=tE(fi(e),t);if(a!=null&&a.set)return a.set.call(e.draft_,i),!0;if(!e.modified_){const l=km(fi(e),t),o=l==null?void 0:l[_n];if(o&&o.base_===i)return e.copy_[t]=i,e.assigned_.set(t,!1),!0;if(l6(i,l)&&(i!==void 0||S_(e.base_,t,e.type_)))return!0;Cf(e),Jp(e)}return e.copy_[t]===i&&(i!==void 0||t in e.copy_)||Number.isNaN(i)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=i,e.assigned_.set(t,!0),m6(e,t,i)),!0},deleteProperty(e,t){return Cf(e),km(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Jp(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const i=fi(e),a=Reflect.getOwnPropertyDescriptor(i,t);return a&&{[Ef]:!0,[Fp]:e.type_!==1||t!=="length",[Hf]:a[Hf],[lu]:i[t]}},defineProperty(){gr(11)},getPrototypeOf(e){return Dl(e.base_)},setPrototypeOf(){gr(12)}},uu={};for(let e in If){let t=If[e];uu[e]=function(){const i=arguments;return i[0]=i[0][0],t.apply(this,i)}}uu.deleteProperty=function(e,t){return uu.set.call(this,e,t,void 0)};uu.set=function(e,t,i){return If.set.call(this,e[0],t,i,e[0])};function km(e,t){const i=e[_n];return(i?fi(i):e)[t]}function g6(e,t,i){var l;const a=tE(t,i);return a?lu in a?a[lu]:(l=a.get)==null?void 0:l.call(e.draft_):void 0}function tE(e,t){if(!(t in e))return;let i=Dl(e);for(;i;){const a=Object.getOwnPropertyDescriptor(i,t);if(a)return a;i=Dl(i)}}function Jp(e){e.modified_||(e.modified_=!0,e.parent_&&Jp(e.parent_))}function Cf(e){e.copy_||(e.assigned_=new Map,e.copy_=Gp(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var v6=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(i,a,l)=>{if(dl(i)&&!dl(a)){const c=a;a=i;const f=this;return function(y=c,...g){return f.produce(y,p=>a.call(this,p,...g))}}dl(a)||gr(6),l!==void 0&&!dl(l)&&gr(7);let o;if(wr(i)){const c=C_(this),f=Wp(c,i,void 0);let h=!0;try{o=a(f),h=!1}finally{h?Xp(c):Kp(c)}return E_(c,l),M_(o,c)}else if(!i||!Lg(i)){if(o=a(i),o===void 0&&(o=i),o===Gw&&(o=void 0),this.autoFreeze_&&jg(o,!0),l){const c=[],f=[];ds(Qp).generateReplacementPatches_(i,o,{patches_:c,inversePatches_:f}),l(c,f)}return o}else gr(1,i)},this.produceWithPatches=(i,a)=>{if(dl(i))return(f,...h)=>this.produceWithPatches(f,y=>i(y,...h));let l,o;return[this.produce(i,a,(f,h)=>{l=f,o=h}),l,o]},Mm(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Mm(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Mm(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){wr(t)||gr(8),Si(t)&&(t=b6(t));const i=C_(this),a=Wp(i,t,void 0);return a[_n].isManual_=!0,Kp(i),a}finishDraft(t,i){const a=t&&t[_n];(!a||!a.isManual_)&&gr(9);const{scope_:l}=a;return E_(l,i),M_(void 0,l)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,i){let a;for(a=i.length-1;a>=0;a--){const o=i[a];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}a>-1&&(i=i.slice(a+1));const l=ds(Qp).applyPatches_;return Si(t)?l(t,i):this.produce(t,o=>l(o,i))}};function Wp(e,t,i,a){const[l,o]=cd(t)?ds(Vf).proxyMap_(t,i):fd(t)?ds(Vf).proxySet_(t,i):p6(t,i);return((i==null?void 0:i.scope_)??Kw()).drafts_.push(l),o.callbacks_=(i==null?void 0:i.callbacks_)??[],o.key_=a,i&&a!==void 0?y6(i,o,a):o.callbacks_.push(function(h){var g;(g=h.mapSetPlugin_)==null||g.fixSetContents(o);const{patchPlugin_:y}=h;o.modified_&&y&&y.generatePatches_(o,[],h)}),l}function b6(e){return Si(e)||gr(10,e),nE(e)}function nE(e){if(!wr(e)||dd(e))return e;const t=e[_n];let i,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,i=Gp(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else i=Gp(e,!0);return od(i,(l,o)=>{qf(i,l,nE(o))},a),t&&(t.finalized_=!1),i}var _6=new v6,rE=_6.produce;function iE(e){return({dispatch:i,getState:a})=>l=>o=>typeof o=="function"?o(i,a,e):l(o)}var S6=iE(),x6=iE,w6=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?jf:jf.apply(null,arguments)};function Ll(e,t){function i(...a){if(t){let l=t(...a);if(!l)throw new Error(Yn(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:a[0]}}return i.toString=()=>`${e}`,i.type=e,i.match=a=>Zw(a)&&a.type===e,i}var aE=class Wo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Wo.prototype)}static get[Symbol.species](){return Wo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Wo(...t[0].concat(this)):new Wo(...t.concat(this))}};function A_(e){return wr(e)?rE(e,()=>{}):e}function hf(e,t,i){return e.has(t)?e.get(t):e.set(t,i(t)).get(t)}function E6(e){return typeof e=="boolean"}var C6=()=>function(t){const{thunk:i=!0,immutableCheck:a=!0,serializableCheck:l=!0,actionCreatorCheck:o=!0}=t??{};let c=new aE;return i&&(E6(i)?c.push(S6):c.push(x6(i.extraArgument))),c},sE="RTK_autoBatch",FB=()=>e=>({payload:e,meta:{[sE]:!0}}),T_=e=>t=>{setTimeout(t,e)},M6=(e={type:"raf"})=>t=>(...i)=>{const a=t(...i);let l=!0,o=!1,c=!1;const f=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:T_(10):e.type==="callback"?e.queueNotification:T_(e.timeout),y=()=>{c=!1,o&&(o=!1,f.forEach(g=>g()))};return Object.assign({},a,{subscribe(g){const p=()=>l&&g(),v=a.subscribe(p);return f.add(g),()=>{v(),f.delete(g)}},dispatch(g){var p;try{return l=!((p=g==null?void 0:g.meta)!=null&&p[sE]),o=!l,o&&(c||(c=!0,h(y))),a.dispatch(g)}finally{l=!0}}})},k6=e=>function(i){const{autoBatch:a=!0}=i??{};let l=new aE(e);return a&&l.push(M6(typeof a=="object"?a:void 0)),l};function ZB(e){const t=C6(),{reducer:i=void 0,middleware:a,devTools:l=!0,preloadedState:o=void 0,enhancers:c=void 0}=e||{};let f;if(typeof i=="function")f=i;else if(Dg(i))f=i6(i);else throw new Error(Yn(1));let h;typeof a=="function"?h=a(t):h=t();let y=jf;l&&(y=w6({trace:!1,...typeof l=="object"&&l}));const g=a6(...h),p=k6(g);let v=typeof c=="function"?c(p):p();const b=y(...v);return Fw(f,o,b)}function lE(e){const t={},i=[];let a;const l={addCase(o,c){const f=typeof o=="string"?o:o.type;if(!f)throw new Error(Yn(28));if(f in t)throw new Error(Yn(29));return t[f]=c,l},addAsyncThunk(o,c){return c.pending&&(t[o.pending.type]=c.pending),c.rejected&&(t[o.rejected.type]=c.rejected),c.fulfilled&&(t[o.fulfilled.type]=c.fulfilled),c.settled&&i.push({matcher:o.settled,reducer:c.settled}),l},addMatcher(o,c){return i.push({matcher:o,reducer:c}),l},addDefaultCase(o){return a=o,l}};return e(l),[t,i,a]}function A6(e){return typeof e=="function"}function T6(e,t){let[i,a,l]=lE(t),o;if(A6(e))o=()=>A_(e());else{const f=A_(e);o=()=>f}function c(f=o(),h){let y=[i[h.type],...a.filter(({matcher:g})=>g(h)).map(({reducer:g})=>g)];return y.filter(g=>!!g).length===0&&(y=[l]),y.reduce((g,p)=>{if(p)if(Si(g)){const b=p(g,h);return b===void 0?g:b}else{if(wr(g))return rE(g,v=>p(v,h));{const v=p(g,h);if(v===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return g},f)}return c.getInitialState=o,c}var R6="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",N6=(e=21)=>{let t="",i=e;for(;i--;)t+=R6[Math.random()*64|0];return t},O6=Symbol.for("rtk-slice-createasyncthunk");function z6(e,t){return`${e}/${t}`}function D6({creators:e}={}){var i;const t=(i=e==null?void 0:e.asyncThunk)==null?void 0:i[O6];return function(l){const{name:o,reducerPath:c=o}=l;if(!o)throw new Error(Yn(11));const f=(typeof l.reducers=="function"?l.reducers(B6()):l.reducers)||{},h=Object.keys(f),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},g={addCase(k,z){const N=typeof k=="string"?k:k.type;if(!N)throw new Error(Yn(12));if(N in y.sliceCaseReducersByType)throw new Error(Yn(13));return y.sliceCaseReducersByType[N]=z,g},addMatcher(k,z){return y.sliceMatchers.push({matcher:k,reducer:z}),g},exposeAction(k,z){return y.actionCreators[k]=z,g},exposeCaseReducer(k,z){return y.sliceCaseReducersByName[k]=z,g}};h.forEach(k=>{const z=f[k],N={reducerName:k,type:z6(o,k),createNotation:typeof l.reducers=="function"};U6(z)?q6(N,z,g,t):j6(N,z,g)});function p(){const[k={},z=[],N=void 0]=typeof l.extraReducers=="function"?lE(l.extraReducers):[l.extraReducers],D={...k,...y.sliceCaseReducersByType};return T6(l.initialState,T=>{for(let L in D)T.addCase(L,D[L]);for(let L of y.sliceMatchers)T.addMatcher(L.matcher,L.reducer);for(let L of z)T.addMatcher(L.matcher,L.reducer);N&&T.addDefaultCase(N)})}const v=k=>k,b=new Map,S=new WeakMap;let _;function w(k,z){return _||(_=p()),_(k,z)}function C(){return _||(_=p()),_.getInitialState()}function M(k,z=!1){function N(T){let L=T[k];return typeof L>"u"&&z&&(L=hf(S,N,C)),L}function D(T=v){const L=hf(b,z,()=>new WeakMap);return hf(L,T,()=>{const Q={};for(const[j,B]of Object.entries(l.selectors??{}))Q[j]=L6(B,T,()=>hf(S,T,C),z);return Q})}return{reducerPath:k,getSelectors:D,get selectors(){return D(N)},selectSlice:N}}const E={name:o,reducer:w,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:C,...M(c),injectInto(k,{reducerPath:z,...N}={}){const D=z??c;return k.inject({reducerPath:D,reducer:w},N),{...E,...M(D,!0)}}};return E}}function L6(e,t,i,a){function l(o,...c){let f=t(o);return typeof f>"u"&&a&&(f=i()),e(f,...c)}return l.unwrapped=e,l}var GB=D6();function B6(){function e(t,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...i}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...i){return t(...i)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:i}},asyncThunk:e}}function j6({type:e,reducerName:t,createNotation:i},a,l){let o,c;if("reducer"in a){if(i&&!H6(a))throw new Error(Yn(17));o=a.reducer,c=a.prepare}else o=a;l.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,c?Ll(e,c):Ll(e))}function U6(e){return e._reducerDefinitionType==="asyncThunk"}function H6(e){return e._reducerDefinitionType==="reducerWithPrepare"}function q6({type:e,reducerName:t},i,a,l){if(!l)throw new Error(Yn(18));const{payloadCreator:o,fulfilled:c,pending:f,rejected:h,settled:y,options:g}=i,p=l(e,o,g);a.exposeAction(t,p),c&&a.addCase(p.fulfilled,c),f&&a.addCase(p.pending,f),h&&a.addCase(p.rejected,h),y&&a.addMatcher(p.settled,y),a.exposeCaseReducer(t,{fulfilled:c||yf,pending:f||yf,rejected:h||yf,settled:y||yf})}function yf(){}var V6="task",oE="listener",uE="completed",Ug="cancelled",P6=`task-${Ug}`,I6=`task-${uE}`,eg=`${oE}-${Ug}`,$6=`${oE}-${uE}`,yd=class{constructor(e){Uy(this,"name","TaskAbortError");Uy(this,"message");this.code=e,this.message=`${V6} ${Ug} (reason: ${e})`}},Hg=(e,t)=>{if(typeof e!="function")throw new TypeError(Yn(32))},$f=()=>{},cE=(e,t=$f)=>(e.catch(t),e),fE=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),as=e=>{if(e.aborted)throw new yd(e.reason)};function dE(e,t){let i=$f;return new Promise((a,l)=>{const o=()=>l(new yd(e.reason));if(e.aborted){o();return}i=fE(e,o),t.finally(()=>i()).then(a,l)}).finally(()=>{i=$f})}var Y6=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(i){return{status:i instanceof yd?"cancelled":"rejected",error:i}}finally{t==null||t()}},Yf=e=>t=>cE(dE(e,t).then(i=>(as(e),i))),hE=e=>{const t=Yf(e);return i=>t(new Promise(a=>setTimeout(a,i)))},{assign:pl}=Object,R_={},md="listenerMiddleware",F6=(e,t)=>{const i=a=>fE(e,()=>a.abort(e.reason));return(a,l)=>{Hg(a);const o=new AbortController;i(o);const c=Y6(async()=>{as(e),as(o.signal);const f=await a({pause:Yf(o.signal),delay:hE(o.signal),signal:o.signal});return as(o.signal),f},()=>o.abort(I6));return l!=null&&l.autoJoin&&t.push(c.catch($f)),{result:Yf(e)(c),cancel(){o.abort(P6)}}}},Z6=(e,t)=>{const i=async(a,l)=>{as(t);let o=()=>{};const f=[new Promise((h,y)=>{let g=e({predicate:a,effect:(p,v)=>{v.unsubscribe(),h([p,v.getState(),v.getOriginalState()])}});o=()=>{g(),y()}})];l!=null&&f.push(new Promise(h=>setTimeout(h,l,null)));try{const h=await dE(t,Promise.race(f));return as(t),h}finally{o()}};return(a,l)=>cE(i(a,l))},yE=e=>{let{type:t,actionCreator:i,matcher:a,predicate:l,effect:o}=e;if(t)l=Ll(t).match;else if(i)t=i.type,l=i.match;else if(a)l=a;else if(!l)throw new Error(Yn(21));return Hg(o),{predicate:l,type:t,effect:o}},mE=pl(e=>{const{type:t,predicate:i,effect:a}=yE(e);return{id:N6(),effect:a,type:t,predicate:i,pending:new Set,unsubscribe:()=>{throw new Error(Yn(22))}}},{withTypes:()=>mE}),N_=(e,t)=>{const{type:i,effect:a,predicate:l}=yE(t);return Array.from(e.values()).find(o=>(typeof i=="string"?o.type===i:o.predicate===l)&&o.effect===a)},tg=e=>{e.pending.forEach(t=>{t.abort(eg)})},G6=(e,t)=>()=>{for(const i of t.keys())tg(i);e.clear()},O_=(e,t,i)=>{try{e(t,i)}catch(a){setTimeout(()=>{throw a},0)}},pE=pl(Ll(`${md}/add`),{withTypes:()=>pE}),Q6=Ll(`${md}/removeAll`),gE=pl(Ll(`${md}/remove`),{withTypes:()=>gE}),X6=(...e)=>{console.error(`${md}/error`,...e)},QB=(e={})=>{const t=new Map,i=new Map,a=b=>{const S=i.get(b)??0;i.set(b,S+1)},l=b=>{const S=i.get(b)??1;S===1?i.delete(b):i.set(b,S-1)},{extra:o,onError:c=X6}=e;Hg(c);const f=b=>(b.unsubscribe=()=>t.delete(b.id),t.set(b.id,b),S=>{b.unsubscribe(),S!=null&&S.cancelActive&&tg(b)}),h=b=>{const S=N_(t,b)??mE(b);return f(S)};pl(h,{withTypes:()=>h});const y=b=>{const S=N_(t,b);return S&&(S.unsubscribe(),b.cancelActive&&tg(S)),!!S};pl(y,{withTypes:()=>y});const g=async(b,S,_,w)=>{const C=new AbortController,M=Z6(h,C.signal),E=[];try{b.pending.add(C),a(b),await Promise.resolve(b.effect(S,pl({},_,{getOriginalState:w,condition:(k,z)=>M(k,z).then(Boolean),take:M,delay:hE(C.signal),pause:Yf(C.signal),extra:o,signal:C.signal,fork:F6(C.signal,E),unsubscribe:b.unsubscribe,subscribe:()=>{t.set(b.id,b)},cancelActiveListeners:()=>{b.pending.forEach((k,z,N)=>{k!==C&&(k.abort(eg),N.delete(k))})},cancel:()=>{C.abort(eg),b.pending.delete(C)},throwIfCancelled:()=>{as(C.signal)}})))}catch(k){k instanceof yd||O_(c,k,{raisedBy:"effect"})}finally{await Promise.all(E),C.abort($6),l(b),b.pending.delete(C)}},p=G6(t,i);return{middleware:b=>S=>_=>{if(!Zw(_))return S(_);if(pE.match(_))return h(_.payload);if(Q6.match(_)){p();return}if(gE.match(_))return y(_.payload);let w=b.getState();const C=()=>{if(w===R_)throw new Error(Yn(23));return w};let M;try{if(M=S(_),t.size>0){const E=b.getState(),k=Array.from(t.values());for(const z of k){let N=!1;try{N=z.predicate(_,E,w)}catch(D){N=!1,O_(c,D,{raisedBy:"predicate"})}N&&g(z,_,b,C)}}}finally{w=R_}return M},startListening:h,stopListening:y,clearListeners:p}};function Yn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Am={},Tm={},Rm={},z_;function K6(){return z_||(z_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i,a,{signal:l,edges:o}={}){let c,f=null;const h=o!=null&&o.includes("leading"),y=o==null||o.includes("trailing"),g=()=>{f!==null&&(i.apply(c,f),c=void 0,f=null)},p=()=>{y&&g(),_()};let v=null;const b=()=>{v!=null&&clearTimeout(v),v=setTimeout(()=>{v=null,p()},a)},S=()=>{v!==null&&(clearTimeout(v),v=null)},_=()=>{S(),c=void 0,f=null},w=()=>{g()},C=function(...M){if(l!=null&&l.aborted)return;c=this,f=M;const E=v==null;b(),h&&E&&g()};return C.schedule=b,C.cancel=_,C.flush=w,l==null||l.addEventListener("abort",_,{once:!0}),C}e.debounce=t})(Rm)),Rm}var D_;function J6(){return D_||(D_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=K6();function i(a,l=0,o={}){typeof o!="object"&&(o={});const{leading:c=!1,trailing:f=!0,maxWait:h}=o,y=Array(2);c&&(y[0]="leading"),f&&(y[1]="trailing");let g,p=null;const v=t.debounce(function(..._){g=a.apply(this,_),p=null},l,{edges:y}),b=function(..._){return h!=null&&(p===null&&(p=Date.now()),Date.now()-p>=h)?(g=a.apply(this,_),p=Date.now(),v.cancel(),v.schedule(),g):(v.apply(this,_),g)},S=()=>(v.flush(),g);return b.cancel=v.cancel,b.flush=S,b}e.debounce=i})(Tm)),Tm}var L_;function W6(){return L_||(L_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=J6();function i(a,l=0,o={}){const{leading:c=!0,trailing:f=!0}=o;return t.debounce(a,l,{leading:c,maxWait:l,trailing:f})}e.throttle=i})(Am)),Am}var Nm,B_;function eO(){return B_||(B_=1,Nm=W6().throttle),Nm}var tO=eO();const XB=Er(tO);var vE=Symbol.for("immer-nothing"),j_=Symbol.for("immer-draftable"),Zn=Symbol.for("immer-state");function vr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cu=Object.getPrototypeOf;function Bl(e){return!!e&&!!e[Zn]}function hs(e){var t;return e?bE(e)||Array.isArray(e)||!!e[j_]||!!((t=e.constructor)!=null&&t[j_])||Au(e)||gd(e):!1}var nO=Object.prototype.constructor.toString(),U_=new WeakMap;function bE(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const i=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(i===Object)return!0;if(typeof i!="function")return!1;let a=U_.get(i);return a===void 0&&(a=Function.toString.call(i),U_.set(i,a)),a===nO}function Ff(e,t,i=!0){pd(e)===0?(i?Reflect.ownKeys(e):Object.keys(e)).forEach(l=>{t(l,e[l],e)}):e.forEach((a,l)=>t(l,a,e))}function pd(e){const t=e[Zn];return t?t.type_:Array.isArray(e)?1:Au(e)?2:gd(e)?3:0}function ng(e,t){return pd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _E(e,t,i){const a=pd(e);a===2?e.set(t,i):a===3?e.add(i):e[t]=i}function rO(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Au(e){return e instanceof Map}function gd(e){return e instanceof Set}function Ya(e){return e.copy_||e.base_}function rg(e,t){if(Au(e))return new Map(e);if(gd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const i=bE(e);if(t===!0||t==="class_only"&&!i){const a=Object.getOwnPropertyDescriptors(e);delete a[Zn];let l=Reflect.ownKeys(a);for(let o=0;o<l.length;o++){const c=l[o],f=a[c];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(a[c]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[c]})}return Object.create(cu(e),a)}else{const a=cu(e);if(a!==null&&i)return{...e};const l=Object.create(a);return Object.assign(l,e)}}function qg(e,t=!1){return vd(e)||Bl(e)||!hs(e)||(pd(e)>1&&Object.defineProperties(e,{set:mf,add:mf,clear:mf,delete:mf}),Object.freeze(e),t&&Object.values(e).forEach(i=>qg(i,!0))),e}function iO(){vr(2)}var mf={value:iO};function vd(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var aO={};function ys(e){const t=aO[e];return t||vr(0,e),t}var fu;function SE(){return fu}function sO(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function H_(e,t){t&&(ys("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ig(e){ag(e),e.drafts_.forEach(lO),e.drafts_=null}function ag(e){e===fu&&(fu=e.parent_)}function q_(e){return fu=sO(fu,e)}function lO(e){const t=e[Zn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function V_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const i=t.drafts_[0];return e!==void 0&&e!==i?(i[Zn].modified_&&(ig(t),vr(4)),hs(e)&&(e=Zf(t,e),t.parent_||Gf(t,e)),t.patches_&&ys("Patches").generateReplacementPatches_(i[Zn].base_,e,t.patches_,t.inversePatches_)):e=Zf(t,i,[]),ig(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==vE?e:void 0}function Zf(e,t,i){if(vd(t))return t;const a=e.immer_.shouldUseStrictIteration(),l=t[Zn];if(!l)return Ff(t,(o,c)=>P_(e,l,t,o,c,i),a),t;if(l.scope_!==e)return t;if(!l.modified_)return Gf(e,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDrafts_--;const o=l.copy_;let c=o,f=!1;l.type_===3&&(c=new Set(o),o.clear(),f=!0),Ff(c,(h,y)=>P_(e,l,o,h,y,i,f),a),Gf(e,o,!1),i&&e.patches_&&ys("Patches").generatePatches_(l,i,e.patches_,e.inversePatches_)}return l.copy_}function P_(e,t,i,a,l,o,c){if(l==null||typeof l!="object"&&!c)return;const f=vd(l);if(!(f&&!c)){if(Bl(l)){const h=o&&t&&t.type_!==3&&!ng(t.assigned_,a)?o.concat(a):void 0,y=Zf(e,l,h);if(_E(i,a,y),Bl(y))e.canAutoFreeze_=!1;else return}else c&&i.add(l);if(hs(l)&&!f){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[a]===l&&f)return;Zf(e,l),(!t||!t.scope_.parent_)&&typeof a!="symbol"&&(Au(i)?i.has(a):Object.prototype.propertyIsEnumerable.call(i,a))&&Gf(e,l)}}}function Gf(e,t,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qg(t,i)}function oO(e,t){const i=Array.isArray(e),a={type_:i?1:0,scope_:t?t.scope_:SE(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=a,o=Vg;i&&(l=[a],o=du);const{revoke:c,proxy:f}=Proxy.revocable(l,o);return a.draft_=f,a.revoke_=c,f}var Vg={get(e,t){if(t===Zn)return e;const i=Ya(e);if(!ng(i,t))return uO(e,i,t);const a=i[t];return e.finalized_||!hs(a)?a:a===Om(e.base_,t)?(zm(e),e.copy_[t]=lg(a,e)):a},has(e,t){return t in Ya(e)},ownKeys(e){return Reflect.ownKeys(Ya(e))},set(e,t,i){const a=xE(Ya(e),t);if(a!=null&&a.set)return a.set.call(e.draft_,i),!0;if(!e.modified_){const l=Om(Ya(e),t),o=l==null?void 0:l[Zn];if(o&&o.base_===i)return e.copy_[t]=i,e.assigned_[t]=!1,!0;if(rO(i,l)&&(i!==void 0||ng(e.base_,t)))return!0;zm(e),sg(e)}return e.copy_[t]===i&&(i!==void 0||t in e.copy_)||Number.isNaN(i)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=i,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Om(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,zm(e),sg(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const i=Ya(e),a=Reflect.getOwnPropertyDescriptor(i,t);return a&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:a.enumerable,value:i[t]}},defineProperty(){vr(11)},getPrototypeOf(e){return cu(e.base_)},setPrototypeOf(){vr(12)}},du={};Ff(Vg,(e,t)=>{du[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});du.deleteProperty=function(e,t){return du.set.call(this,e,t,void 0)};du.set=function(e,t,i){return Vg.set.call(this,e[0],t,i,e[0])};function Om(e,t){const i=e[Zn];return(i?Ya(i):e)[t]}function uO(e,t,i){var l;const a=xE(t,i);return a?"value"in a?a.value:(l=a.get)==null?void 0:l.call(e.draft_):void 0}function xE(e,t){if(!(t in e))return;let i=cu(e);for(;i;){const a=Object.getOwnPropertyDescriptor(i,t);if(a)return a;i=cu(i)}}function sg(e){e.modified_||(e.modified_=!0,e.parent_&&sg(e.parent_))}function zm(e){e.copy_||(e.copy_=rg(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var cO=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,i,a)=>{if(typeof t=="function"&&typeof i!="function"){const o=i;i=t;const c=this;return function(h=o,...y){return c.produce(h,g=>i.call(this,g,...y))}}typeof i!="function"&&vr(6),a!==void 0&&typeof a!="function"&&vr(7);let l;if(hs(t)){const o=q_(this),c=lg(t,void 0);let f=!0;try{l=i(c),f=!1}finally{f?ig(o):ag(o)}return H_(o,a),V_(l,o)}else if(!t||typeof t!="object"){if(l=i(t),l===void 0&&(l=t),l===vE&&(l=void 0),this.autoFreeze_&&qg(l,!0),a){const o=[],c=[];ys("Patches").generateReplacementPatches_(t,l,o,c),a(o,c)}return l}else vr(1,t)},this.produceWithPatches=(t,i)=>{if(typeof t=="function")return(c,...f)=>this.produceWithPatches(c,h=>t(h,...f));let a,l;return[this.produce(t,i,(c,f)=>{a=c,l=f}),a,l]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){hs(e)||vr(8),Bl(e)&&(e=fO(e));const t=q_(this),i=lg(e,void 0);return i[Zn].isManual_=!0,ag(t),i}finishDraft(e,t){const i=e&&e[Zn];(!i||!i.isManual_)&&vr(9);const{scope_:a}=i;return H_(a,t),V_(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let i;for(i=t.length-1;i>=0;i--){const l=t[i];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}i>-1&&(t=t.slice(i+1));const a=ys("Patches").applyPatches_;return Bl(e)?a(e,t):this.produce(e,l=>a(l,t))}};function lg(e,t){const i=Au(e)?ys("MapSet").proxyMap_(e,t):gd(e)?ys("MapSet").proxySet_(e,t):oO(e,t);return(t?t.scope_:SE()).drafts_.push(i),i}function fO(e){return Bl(e)||vr(10,e),wE(e)}function wE(e){if(!hs(e)||vd(e))return e;const t=e[Zn];let i,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,i=rg(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else i=rg(e,!0);return Ff(i,(l,o)=>{_E(i,l,wE(o))},a),t&&(t.finalized_=!1),i}var dO=new cO;dO.produce;function KB(e){return e}var Dm={exports:{}},Lm={};/**
677
- * @license React
678
- * use-sync-external-store-with-selector.production.js
679
- *
680
- * Copyright (c) Meta Platforms, Inc. and affiliates.
681
- *
682
- * This source code is licensed under the MIT license found in the
683
- * LICENSE file in the root directory of this source tree.
684
- */var I_;function hO(){if(I_)return Lm;I_=1;var e=Pl();function t(h,y){return h===y&&(h!==0||1/h===1/y)||h!==h&&y!==y}var i=typeof Object.is=="function"?Object.is:t,a=e.useSyncExternalStore,l=e.useRef,o=e.useEffect,c=e.useMemo,f=e.useDebugValue;return Lm.useSyncExternalStoreWithSelector=function(h,y,g,p,v){var b=l(null);if(b.current===null){var S={hasValue:!1,value:null};b.current=S}else S=b.current;b=c(function(){function w(z){if(!C){if(C=!0,M=z,z=p(z),v!==void 0&&S.hasValue){var N=S.value;if(v(N,z))return E=N}return E=z}if(N=E,i(M,z))return N;var D=p(z);return v!==void 0&&v(N,D)?(M=z,N):(M=z,E=D)}var C=!1,M,E,k=g===void 0?null:g;return[function(){return w(y())},k===null?void 0:function(){return w(k())}]},[y,g,p,v]);var _=a(h,b[0],b[1]);return o(function(){S.hasValue=!0,S.value=_},[_]),f(_),_},Lm}var $_;function yO(){return $_||($_=1,Dm.exports=hO()),Dm.exports}yO();function mO(e){e()}function pO(){let e=null,t=null;return{clear(){e=null,t=null},notify(){mO(()=>{let i=e;for(;i;)i.callback(),i=i.next})},get(){const i=[];let a=e;for(;a;)i.push(a),a=a.next;return i},subscribe(i){let a=!0;const l=t={callback:i,next:null,prev:t};return l.prev?l.prev.next=l:e=l,function(){!a||e===null||(a=!1,l.next?l.next.prev=l.prev:t=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var Y_={notify(){},get:()=>[]};function gO(e,t){let i,a=Y_,l=0,o=!1;function c(_){g();const w=a.subscribe(_);let C=!1;return()=>{C||(C=!0,w(),p())}}function f(){a.notify()}function h(){S.onStateChange&&S.onStateChange()}function y(){return o}function g(){l++,i||(i=e.subscribe(h),a=pO())}function p(){l--,i&&l===0&&(i(),i=void 0,a.clear(),a=Y_)}function v(){o||(o=!0,g())}function b(){o&&(o=!1,p())}const S={addNestedSub:c,notifyNestedSubs:f,handleChangeWrapper:h,isSubscribed:y,trySubscribe:v,tryUnsubscribe:b,getListeners:()=>a};return S}var vO=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bO=vO(),_O=()=>typeof navigator<"u"&&navigator.product==="ReactNative",SO=_O(),xO=()=>bO||SO?R.useLayoutEffect:R.useEffect,wO=xO();function F_(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function JB(e,t){if(F_(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let l=0;l<i.length;l++)if(!Object.prototype.hasOwnProperty.call(t,i[l])||!F_(e[i[l]],t[i[l]]))return!1;return!0}var Bm=Symbol.for("react-redux-context"),jm=typeof globalThis<"u"?globalThis:{};function EO(){if(!R.createContext)return{};const e=jm[Bm]??(jm[Bm]=new Map);let t=e.get(R.createContext);return t||(t=R.createContext(null),e.set(R.createContext,t)),t}var CO=EO();function MO(e){const{children:t,context:i,serverState:a,store:l}=e,o=R.useMemo(()=>{const h=gO(l);return{store:l,subscription:h,getServerState:a?()=>a:void 0}},[l,a]),c=R.useMemo(()=>l.getState(),[l]);wO(()=>{const{subscription:h}=o;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),c!==l.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[o,c]);const f=i||CO;return R.createElement(f.Provider,{value:o},t)}var WB=MO,Um={},Hm={},qm={},Z_;function kO(){return Z_||(Z_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$w();function i(a){return t.isSymbol(a)?NaN:Number(a)}e.toNumber=i})(qm)),qm}var G_;function AO(){return G_||(G_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kO();function i(a){return a?(a=t.toNumber(a),a===1/0||a===-1/0?(a<0?-1:1)*Number.MAX_VALUE:a===a?a:0):a===0?a:0}e.toFinite=i})(Hm)),Hm}var Q_;function TO(){return Q_||(Q_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yw(),i=AO();function a(l,o,c){c&&typeof c!="number"&&t.isIterateeCall(l,o,c)&&(o=c=void 0),l=i.toFinite(l),o===void 0?(o=l,l=0):o=i.toFinite(o),c=c===void 0?l<o?1:-1:i.toFinite(c);const f=Math.max(Math.ceil((o-l)/(c||1)),0),h=new Array(f);for(let y=0;y<f;y++)h[y]=l,l+=c;return h}e.range=a})(Um)),Um}var Vm,X_;function RO(){return X_||(X_=1,Vm=TO().range),Vm}var NO=RO();const ej=Er(NO);var Zl=1e9,OO={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ig,Ct=!0,or="[DecimalError] ",ss=or+"Invalid argument: ",Pg=or+"Exponent out of range: ",Gl=Math.floor,Fa=Math.pow,zO=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,In,nn=1e7,wt=7,EE=9007199254740991,Qf=Gl(EE/wt),Ee={};Ee.absoluteValue=Ee.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ee.comparedTo=Ee.cmp=function(e){var t,i,a,l,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(a=o.d.length,l=e.d.length,t=0,i=a<l?a:l;t<i;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return a===l?0:a>l^o.s<0?1:-1};Ee.decimalPlaces=Ee.dp=function(){var e=this,t=e.d.length-1,i=(t-e.e)*wt;if(t=e.d[t],t)for(;t%10==0;t/=10)i--;return i<0?0:i};Ee.dividedBy=Ee.div=function(e){return gi(this,new this.constructor(e))};Ee.dividedToIntegerBy=Ee.idiv=function(e){var t=this,i=t.constructor;return bt(gi(t,new i(e),0,1),i.precision)};Ee.equals=Ee.eq=function(e){return!this.cmp(e)};Ee.exponent=function(){return Zt(this)};Ee.greaterThan=Ee.gt=function(e){return this.cmp(e)>0};Ee.greaterThanOrEqualTo=Ee.gte=function(e){return this.cmp(e)>=0};Ee.isInteger=Ee.isint=function(){return this.e>this.d.length-2};Ee.isNegative=Ee.isneg=function(){return this.s<0};Ee.isPositive=Ee.ispos=function(){return this.s>0};Ee.isZero=function(){return this.s===0};Ee.lessThan=Ee.lt=function(e){return this.cmp(e)<0};Ee.lessThanOrEqualTo=Ee.lte=function(e){return this.cmp(e)<1};Ee.logarithm=Ee.log=function(e){var t,i=this,a=i.constructor,l=a.precision,o=l+5;if(e===void 0)e=new a(10);else if(e=new a(e),e.s<1||e.eq(In))throw Error(or+"NaN");if(i.s<1)throw Error(or+(i.s?"NaN":"-Infinity"));return i.eq(In)?new a(0):(Ct=!1,t=gi(hu(i,o),hu(e,o),o),Ct=!0,bt(t,l))};Ee.minus=Ee.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kE(t,e):CE(t,(e.s=-e.s,e))};Ee.modulo=Ee.mod=function(e){var t,i=this,a=i.constructor,l=a.precision;if(e=new a(e),!e.s)throw Error(or+"NaN");return i.s?(Ct=!1,t=gi(i,e,0,1).times(e),Ct=!0,i.minus(t)):bt(new a(i),l)};Ee.naturalExponential=Ee.exp=function(){return ME(this)};Ee.naturalLogarithm=Ee.ln=function(){return hu(this)};Ee.negated=Ee.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ee.plus=Ee.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?CE(t,e):kE(t,(e.s=-e.s,e))};Ee.precision=Ee.sd=function(e){var t,i,a,l=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ss+e);if(t=Zt(l)+1,a=l.d.length-1,i=a*wt+1,a=l.d[a],a){for(;a%10==0;a/=10)i--;for(a=l.d[0];a>=10;a/=10)i++}return e&&t>i?t:i};Ee.squareRoot=Ee.sqrt=function(){var e,t,i,a,l,o,c,f=this,h=f.constructor;if(f.s<1){if(!f.s)return new h(0);throw Error(or+"NaN")}for(e=Zt(f),Ct=!1,l=Math.sqrt(+f),l==0||l==1/0?(t=Lr(f.d),(t.length+e)%2==0&&(t+="0"),l=Math.sqrt(t),e=Gl((e+1)/2)-(e<0||e%2),l==1/0?t="5e"+e:(t=l.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),a=new h(t)):a=new h(l.toString()),i=h.precision,l=c=i+3;;)if(o=a,a=o.plus(gi(f,o,c+2)).times(.5),Lr(o.d).slice(0,c)===(t=Lr(a.d)).slice(0,c)){if(t=t.slice(c-3,c+1),l==c&&t=="4999"){if(bt(o,i+1,0),o.times(o).eq(f)){a=o;break}}else if(t!="9999")break;c+=4}return Ct=!0,bt(a,i)};Ee.times=Ee.mul=function(e){var t,i,a,l,o,c,f,h,y,g=this,p=g.constructor,v=g.d,b=(e=new p(e)).d;if(!g.s||!e.s)return new p(0);for(e.s*=g.s,i=g.e+e.e,h=v.length,y=b.length,h<y&&(o=v,v=b,b=o,c=h,h=y,y=c),o=[],c=h+y,a=c;a--;)o.push(0);for(a=y;--a>=0;){for(t=0,l=h+a;l>a;)f=o[l]+b[a]*v[l-a-1]+t,o[l--]=f%nn|0,t=f/nn|0;o[l]=(o[l]+t)%nn|0}for(;!o[--c];)o.pop();return t?++i:o.shift(),e.d=o,e.e=i,Ct?bt(e,p.precision):e};Ee.toDecimalPlaces=Ee.todp=function(e,t){var i=this,a=i.constructor;return i=new a(i),e===void 0?i:(Ur(e,0,Zl),t===void 0?t=a.rounding:Ur(t,0,8),bt(i,e+Zt(i)+1,t))};Ee.toExponential=function(e,t){var i,a=this,l=a.constructor;return e===void 0?i=ms(a,!0):(Ur(e,0,Zl),t===void 0?t=l.rounding:Ur(t,0,8),a=bt(new l(a),e+1,t),i=ms(a,!0,e+1)),i};Ee.toFixed=function(e,t){var i,a,l=this,o=l.constructor;return e===void 0?ms(l):(Ur(e,0,Zl),t===void 0?t=o.rounding:Ur(t,0,8),a=bt(new o(l),e+Zt(l)+1,t),i=ms(a.abs(),!1,e+Zt(a)+1),l.isneg()&&!l.isZero()?"-"+i:i)};Ee.toInteger=Ee.toint=function(){var e=this,t=e.constructor;return bt(new t(e),Zt(e)+1,t.rounding)};Ee.toNumber=function(){return+this};Ee.toPower=Ee.pow=function(e){var t,i,a,l,o,c,f=this,h=f.constructor,y=12,g=+(e=new h(e));if(!e.s)return new h(In);if(f=new h(f),!f.s){if(e.s<1)throw Error(or+"Infinity");return f}if(f.eq(In))return f;if(a=h.precision,e.eq(In))return bt(f,a);if(t=e.e,i=e.d.length-1,c=t>=i,o=f.s,c){if((i=g<0?-g:g)<=EE){for(l=new h(In),t=Math.ceil(a/wt+4),Ct=!1;i%2&&(l=l.times(f),J_(l.d,t)),i=Gl(i/2),i!==0;)f=f.times(f),J_(f.d,t);return Ct=!0,e.s<0?new h(In).div(l):bt(l,a)}}else if(o<0)throw Error(or+"NaN");return o=o<0&&e.d[Math.max(t,i)]&1?-1:1,f.s=1,Ct=!1,l=e.times(hu(f,a+y)),Ct=!0,l=ME(l),l.s=o,l};Ee.toPrecision=function(e,t){var i,a,l=this,o=l.constructor;return e===void 0?(i=Zt(l),a=ms(l,i<=o.toExpNeg||i>=o.toExpPos)):(Ur(e,1,Zl),t===void 0?t=o.rounding:Ur(t,0,8),l=bt(new o(l),e,t),i=Zt(l),a=ms(l,e<=i||i<=o.toExpNeg,e)),a};Ee.toSignificantDigits=Ee.tosd=function(e,t){var i=this,a=i.constructor;return e===void 0?(e=a.precision,t=a.rounding):(Ur(e,1,Zl),t===void 0?t=a.rounding:Ur(t,0,8)),bt(new a(i),e,t)};Ee.toString=Ee.valueOf=Ee.val=Ee.toJSON=Ee[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Zt(e),i=e.constructor;return ms(e,t<=i.toExpNeg||t>=i.toExpPos)};function CE(e,t){var i,a,l,o,c,f,h,y,g=e.constructor,p=g.precision;if(!e.s||!t.s)return t.s||(t=new g(e)),Ct?bt(t,p):t;if(h=e.d,y=t.d,c=e.e,l=t.e,h=h.slice(),o=c-l,o){for(o<0?(a=h,o=-o,f=y.length):(a=y,l=c,f=h.length),c=Math.ceil(p/wt),f=c>f?c+1:f+1,o>f&&(o=f,a.length=1),a.reverse();o--;)a.push(0);a.reverse()}for(f=h.length,o=y.length,f-o<0&&(o=f,a=y,y=h,h=a),i=0;o;)i=(h[--o]=h[o]+y[o]+i)/nn|0,h[o]%=nn;for(i&&(h.unshift(i),++l),f=h.length;h[--f]==0;)h.pop();return t.d=h,t.e=l,Ct?bt(t,p):t}function Ur(e,t,i){if(e!==~~e||e<t||e>i)throw Error(ss+e)}function Lr(e){var t,i,a,l=e.length-1,o="",c=e[0];if(l>0){for(o+=c,t=1;t<l;t++)a=e[t]+"",i=wt-a.length,i&&(o+=aa(i)),o+=a;c=e[t],a=c+"",i=wt-a.length,i&&(o+=aa(i))}else if(c===0)return"0";for(;c%10===0;)c/=10;return o+c}var gi=(function(){function e(a,l){var o,c=0,f=a.length;for(a=a.slice();f--;)o=a[f]*l+c,a[f]=o%nn|0,c=o/nn|0;return c&&a.unshift(c),a}function t(a,l,o,c){var f,h;if(o!=c)h=o>c?1:-1;else for(f=h=0;f<o;f++)if(a[f]!=l[f]){h=a[f]>l[f]?1:-1;break}return h}function i(a,l,o){for(var c=0;o--;)a[o]-=c,c=a[o]<l[o]?1:0,a[o]=c*nn+a[o]-l[o];for(;!a[0]&&a.length>1;)a.shift()}return function(a,l,o,c){var f,h,y,g,p,v,b,S,_,w,C,M,E,k,z,N,D,T,L=a.constructor,Q=a.s==l.s?1:-1,j=a.d,B=l.d;if(!a.s)return new L(a);if(!l.s)throw Error(or+"Division by zero");for(h=a.e-l.e,D=B.length,z=j.length,b=new L(Q),S=b.d=[],y=0;B[y]==(j[y]||0);)++y;if(B[y]>(j[y]||0)&&--h,o==null?M=o=L.precision:c?M=o+(Zt(a)-Zt(l))+1:M=o,M<0)return new L(0);if(M=M/wt+2|0,y=0,D==1)for(g=0,B=B[0],M++;(y<z||g)&&M--;y++)E=g*nn+(j[y]||0),S[y]=E/B|0,g=E%B|0;else{for(g=nn/(B[0]+1)|0,g>1&&(B=e(B,g),j=e(j,g),D=B.length,z=j.length),k=D,_=j.slice(0,D),w=_.length;w<D;)_[w++]=0;T=B.slice(),T.unshift(0),N=B[0],B[1]>=nn/2&&++N;do g=0,f=t(B,_,D,w),f<0?(C=_[0],D!=w&&(C=C*nn+(_[1]||0)),g=C/N|0,g>1?(g>=nn&&(g=nn-1),p=e(B,g),v=p.length,w=_.length,f=t(p,_,v,w),f==1&&(g--,i(p,D<v?T:B,v))):(g==0&&(f=g=1),p=B.slice()),v=p.length,v<w&&p.unshift(0),i(_,p,w),f==-1&&(w=_.length,f=t(B,_,D,w),f<1&&(g++,i(_,D<w?T:B,w))),w=_.length):f===0&&(g++,_=[0]),S[y++]=g,f&&_[0]?_[w++]=j[k]||0:(_=[j[k]],w=1);while((k++<z||_[0]!==void 0)&&M--)}return S[0]||S.shift(),b.e=h,bt(b,c?o+Zt(b)+1:o)}})();function ME(e,t){var i,a,l,o,c,f,h=0,y=0,g=e.constructor,p=g.precision;if(Zt(e)>16)throw Error(Pg+Zt(e));if(!e.s)return new g(In);for(Ct=!1,f=p,c=new g(.03125);e.abs().gte(.1);)e=e.times(c),y+=5;for(a=Math.log(Fa(2,y))/Math.LN10*2+5|0,f+=a,i=l=o=new g(In),g.precision=f;;){if(l=bt(l.times(e),f),i=i.times(++h),c=o.plus(gi(l,i,f)),Lr(c.d).slice(0,f)===Lr(o.d).slice(0,f)){for(;y--;)o=bt(o.times(o),f);return g.precision=p,t==null?(Ct=!0,bt(o,p)):o}o=c}}function Zt(e){for(var t=e.e*wt,i=e.d[0];i>=10;i/=10)t++;return t}function Pm(e,t,i){if(t>e.LN10.sd())throw Ct=!0,i&&(e.precision=i),Error(or+"LN10 precision limit exceeded");return bt(new e(e.LN10),t)}function aa(e){for(var t="";e--;)t+="0";return t}function hu(e,t){var i,a,l,o,c,f,h,y,g,p=1,v=10,b=e,S=b.d,_=b.constructor,w=_.precision;if(b.s<1)throw Error(or+(b.s?"NaN":"-Infinity"));if(b.eq(In))return new _(0);if(t==null?(Ct=!1,y=w):y=t,b.eq(10))return t==null&&(Ct=!0),Pm(_,y);if(y+=v,_.precision=y,i=Lr(S),a=i.charAt(0),o=Zt(b),Math.abs(o)<15e14){for(;a<7&&a!=1||a==1&&i.charAt(1)>3;)b=b.times(e),i=Lr(b.d),a=i.charAt(0),p++;o=Zt(b),a>1?(b=new _("0."+i),o++):b=new _(a+"."+i.slice(1))}else return h=Pm(_,y+2,w).times(o+""),b=hu(new _(a+"."+i.slice(1)),y-v).plus(h),_.precision=w,t==null?(Ct=!0,bt(b,w)):b;for(f=c=b=gi(b.minus(In),b.plus(In),y),g=bt(b.times(b),y),l=3;;){if(c=bt(c.times(g),y),h=f.plus(gi(c,new _(l),y)),Lr(h.d).slice(0,y)===Lr(f.d).slice(0,y))return f=f.times(2),o!==0&&(f=f.plus(Pm(_,y+2,w).times(o+""))),f=gi(f,new _(p),y),_.precision=w,t==null?(Ct=!0,bt(f,w)):f;f=h,l+=2}}function K_(e,t){var i,a,l;for((i=t.indexOf("."))>-1&&(t=t.replace(".","")),(a=t.search(/e/i))>0?(i<0&&(i=a),i+=+t.slice(a+1),t=t.substring(0,a)):i<0&&(i=t.length),a=0;t.charCodeAt(a)===48;)++a;for(l=t.length;t.charCodeAt(l-1)===48;)--l;if(t=t.slice(a,l),t){if(l-=a,i=i-a-1,e.e=Gl(i/wt),e.d=[],a=(i+1)%wt,i<0&&(a+=wt),a<l){for(a&&e.d.push(+t.slice(0,a)),l-=wt;a<l;)e.d.push(+t.slice(a,a+=wt));t=t.slice(a),a=wt-t.length}else a-=l;for(;a--;)t+="0";if(e.d.push(+t),Ct&&(e.e>Qf||e.e<-Qf))throw Error(Pg+i)}else e.s=0,e.e=0,e.d=[0];return e}function bt(e,t,i){var a,l,o,c,f,h,y,g,p=e.d;for(c=1,o=p[0];o>=10;o/=10)c++;if(a=t-c,a<0)a+=wt,l=t,y=p[g=0];else{if(g=Math.ceil((a+1)/wt),o=p.length,g>=o)return e;for(y=o=p[g],c=1;o>=10;o/=10)c++;a%=wt,l=a-wt+c}if(i!==void 0&&(o=Fa(10,c-l-1),f=y/o%10|0,h=t<0||p[g+1]!==void 0||y%o,h=i<4?(f||h)&&(i==0||i==(e.s<0?3:2)):f>5||f==5&&(i==4||h||i==6&&(a>0?l>0?y/Fa(10,c-l):0:p[g-1])%10&1||i==(e.s<0?8:7))),t<1||!p[0])return h?(o=Zt(e),p.length=1,t=t-o-1,p[0]=Fa(10,(wt-t%wt)%wt),e.e=Gl(-t/wt)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(a==0?(p.length=g,o=1,g--):(p.length=g+1,o=Fa(10,wt-a),p[g]=l>0?(y/Fa(10,c-l)%Fa(10,l)|0)*o:0),h)for(;;)if(g==0){(p[0]+=o)==nn&&(p[0]=1,++e.e);break}else{if(p[g]+=o,p[g]!=nn)break;p[g--]=0,o=1}for(a=p.length;p[--a]===0;)p.pop();if(Ct&&(e.e>Qf||e.e<-Qf))throw Error(Pg+Zt(e));return e}function kE(e,t){var i,a,l,o,c,f,h,y,g,p,v=e.constructor,b=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),Ct?bt(t,b):t;if(h=e.d,p=t.d,a=t.e,y=e.e,h=h.slice(),c=y-a,c){for(g=c<0,g?(i=h,c=-c,f=p.length):(i=p,a=y,f=h.length),l=Math.max(Math.ceil(b/wt),f)+2,c>l&&(c=l,i.length=1),i.reverse(),l=c;l--;)i.push(0);i.reverse()}else{for(l=h.length,f=p.length,g=l<f,g&&(f=l),l=0;l<f;l++)if(h[l]!=p[l]){g=h[l]<p[l];break}c=0}for(g&&(i=h,h=p,p=i,t.s=-t.s),f=h.length,l=p.length-f;l>0;--l)h[f++]=0;for(l=p.length;l>c;){if(h[--l]<p[l]){for(o=l;o&&h[--o]===0;)h[o]=nn-1;--h[o],h[l]+=nn}h[l]-=p[l]}for(;h[--f]===0;)h.pop();for(;h[0]===0;h.shift())--a;return h[0]?(t.d=h,t.e=a,Ct?bt(t,b):t):new v(0)}function ms(e,t,i){var a,l=Zt(e),o=Lr(e.d),c=o.length;return t?(i&&(a=i-c)>0?o=o.charAt(0)+"."+o.slice(1)+aa(a):c>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(l<0?"e":"e+")+l):l<0?(o="0."+aa(-l-1)+o,i&&(a=i-c)>0&&(o+=aa(a))):l>=c?(o+=aa(l+1-c),i&&(a=i-l-1)>0&&(o=o+"."+aa(a))):((a=l+1)<c&&(o=o.slice(0,a)+"."+o.slice(a)),i&&(a=i-c)>0&&(l+1===c&&(o+="."),o+=aa(a))),e.s<0?"-"+o:o}function J_(e,t){if(e.length>t)return e.length=t,!0}function AE(e){var t,i,a;function l(o){var c=this;if(!(c instanceof l))return new l(o);if(c.constructor=l,o instanceof l){c.s=o.s,c.e=o.e,c.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(ss+o);if(o>0)c.s=1;else if(o<0)o=-o,c.s=-1;else{c.s=0,c.e=0,c.d=[0];return}if(o===~~o&&o<1e7){c.e=0,c.d=[o];return}return K_(c,o.toString())}else if(typeof o!="string")throw Error(ss+o);if(o.charCodeAt(0)===45?(o=o.slice(1),c.s=-1):c.s=1,zO.test(o))K_(c,o);else throw Error(ss+o)}if(l.prototype=Ee,l.ROUND_UP=0,l.ROUND_DOWN=1,l.ROUND_CEIL=2,l.ROUND_FLOOR=3,l.ROUND_HALF_UP=4,l.ROUND_HALF_DOWN=5,l.ROUND_HALF_EVEN=6,l.ROUND_HALF_CEIL=7,l.ROUND_HALF_FLOOR=8,l.clone=AE,l.config=l.set=DO,e===void 0&&(e={}),e)for(a=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<a.length;)e.hasOwnProperty(i=a[t++])||(e[i]=this[i]);return l.config(e),l}function DO(e){if(!e||typeof e!="object")throw Error(or+"Object expected");var t,i,a,l=["precision",1,Zl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<l.length;t+=3)if((a=e[i=l[t]])!==void 0)if(Gl(a)===a&&a>=l[t+1]&&a<=l[t+2])this[i]=a;else throw Error(ss+i+": "+a);if((a=e[i="LN10"])!==void 0)if(a==Math.LN10)this[i]=new this(a);else throw Error(ss+i+": "+a);return this}var Ig=AE(OO);In=new Ig(1);const tj=Ig;class nj extends Map{constructor(t,i=jO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),t!=null)for(const[a,l]of t)this.set(a,l)}get(t){return super.get(W_(this,t))}has(t){return super.has(W_(this,t))}set(t,i){return super.set(LO(this,t),i)}delete(t){return super.delete(BO(this,t))}}function W_({_intern:e,_key:t},i){const a=t(i);return e.has(a)?e.get(a):i}function LO({_intern:e,_key:t},i){const a=t(i);return e.has(a)?e.get(a):(e.set(a,i),i)}function BO({_intern:e,_key:t},i){const a=t(i);return e.has(a)&&(i=e.get(a),e.delete(a)),i}function jO(e){return e!==null&&typeof e=="object"?e.valueOf():e}var Im={exports:{}},eS;function UO(){return eS||(eS=1,(function(e){var t=Object.prototype.hasOwnProperty,i="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(i=!1));function l(h,y,g){this.fn=h,this.context=y,this.once=g||!1}function o(h,y,g,p,v){if(typeof g!="function")throw new TypeError("The listener must be a function");var b=new l(g,p||h,v),S=i?i+y:y;return h._events[S]?h._events[S].fn?h._events[S]=[h._events[S],b]:h._events[S].push(b):(h._events[S]=b,h._eventsCount++),h}function c(h,y){--h._eventsCount===0?h._events=new a:delete h._events[y]}function f(){this._events=new a,this._eventsCount=0}f.prototype.eventNames=function(){var y=[],g,p;if(this._eventsCount===0)return y;for(p in g=this._events)t.call(g,p)&&y.push(i?p.slice(1):p);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(g)):y},f.prototype.listeners=function(y){var g=i?i+y:y,p=this._events[g];if(!p)return[];if(p.fn)return[p.fn];for(var v=0,b=p.length,S=new Array(b);v<b;v++)S[v]=p[v].fn;return S},f.prototype.listenerCount=function(y){var g=i?i+y:y,p=this._events[g];return p?p.fn?1:p.length:0},f.prototype.emit=function(y,g,p,v,b,S){var _=i?i+y:y;if(!this._events[_])return!1;var w=this._events[_],C=arguments.length,M,E;if(w.fn){switch(w.once&&this.removeListener(y,w.fn,void 0,!0),C){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,g),!0;case 3:return w.fn.call(w.context,g,p),!0;case 4:return w.fn.call(w.context,g,p,v),!0;case 5:return w.fn.call(w.context,g,p,v,b),!0;case 6:return w.fn.call(w.context,g,p,v,b,S),!0}for(E=1,M=new Array(C-1);E<C;E++)M[E-1]=arguments[E];w.fn.apply(w.context,M)}else{var k=w.length,z;for(E=0;E<k;E++)switch(w[E].once&&this.removeListener(y,w[E].fn,void 0,!0),C){case 1:w[E].fn.call(w[E].context);break;case 2:w[E].fn.call(w[E].context,g);break;case 3:w[E].fn.call(w[E].context,g,p);break;case 4:w[E].fn.call(w[E].context,g,p,v);break;default:if(!M)for(z=1,M=new Array(C-1);z<C;z++)M[z-1]=arguments[z];w[E].fn.apply(w[E].context,M)}}return!0},f.prototype.on=function(y,g,p){return o(this,y,g,p,!1)},f.prototype.once=function(y,g,p){return o(this,y,g,p,!0)},f.prototype.removeListener=function(y,g,p,v){var b=i?i+y:y;if(!this._events[b])return this;if(!g)return c(this,b),this;var S=this._events[b];if(S.fn)S.fn===g&&(!v||S.once)&&(!p||S.context===p)&&c(this,b);else{for(var _=0,w=[],C=S.length;_<C;_++)(S[_].fn!==g||v&&!S[_].once||p&&S[_].context!==p)&&w.push(S[_]);w.length?this._events[b]=w.length===1?w[0]:w:c(this,b)}return this},f.prototype.removeAllListeners=function(y){var g;return y?(g=i?i+y:y,this._events[g]&&c(this,g)):(this._events=new a,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=i,f.EventEmitter=f,e.exports=f})(Im)),Im.exports}var HO=UO();const rj=Er(HO);var $m={exports:{}},gt={};/**
685
- * @license React
686
- * react-is.production.js
687
- *
688
- * Copyright (c) Meta Platforms, Inc. and affiliates.
689
- *
690
- * This source code is licensed under the MIT license found in the
691
- * LICENSE file in the root directory of this source tree.
692
- */var tS;function qO(){if(tS)return gt;tS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function S(_){if(typeof _=="object"&&_!==null){var w=_.$$typeof;switch(w){case e:switch(_=_.type,_){case i:case l:case a:case h:case y:case v:return _;default:switch(_=_&&_.$$typeof,_){case c:case f:case p:case g:return _;case o:return _;default:return w}}case t:return w}}}return gt.ContextConsumer=o,gt.ContextProvider=c,gt.Element=e,gt.ForwardRef=f,gt.Fragment=i,gt.Lazy=p,gt.Memo=g,gt.Portal=t,gt.Profiler=l,gt.StrictMode=a,gt.Suspense=h,gt.SuspenseList=y,gt.isContextConsumer=function(_){return S(_)===o},gt.isContextProvider=function(_){return S(_)===c},gt.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},gt.isForwardRef=function(_){return S(_)===f},gt.isFragment=function(_){return S(_)===i},gt.isLazy=function(_){return S(_)===p},gt.isMemo=function(_){return S(_)===g},gt.isPortal=function(_){return S(_)===t},gt.isProfiler=function(_){return S(_)===l},gt.isStrictMode=function(_){return S(_)===a},gt.isSuspense=function(_){return S(_)===h},gt.isSuspenseList=function(_){return S(_)===y},gt.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===i||_===l||_===a||_===h||_===y||typeof _=="object"&&_!==null&&(_.$$typeof===p||_.$$typeof===g||_.$$typeof===c||_.$$typeof===o||_.$$typeof===f||_.$$typeof===b||_.getModuleId!==void 0)},gt.typeOf=S,gt}var nS;function VO(){return nS||(nS=1,$m.exports=qO()),$m.exports}var ij=VO(),Ym={},rS;function PO(){return rS||(rS=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(i){var l;if(typeof i!="object"||i==null)return!1;if(Object.getPrototypeOf(i)===null)return!0;if(Object.prototype.toString.call(i)!=="[object Object]"){const o=i[Symbol.toStringTag];return o==null||!((l=Object.getOwnPropertyDescriptor(i,Symbol.toStringTag))!=null&&l.writable)?!1:i.toString()===`[object ${o}]`}let a=i;for(;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(i)===a}e.isPlainObject=t})(Ym)),Ym}var Fm,iS;function IO(){return iS||(iS=1,Fm=PO().isPlainObject),Fm}var $O=IO();const aj=Er($O);var YO="Invariant failed";function sj(e,t){throw new Error(YO)}function Gt(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let i=0,a;i<e.length;i++)(a=Gt(e[i]))!==""&&(t+=(t&&" ")+a);else for(let i in e)e[i]&&(t+=(t&&" ")+i);return t}const Hr={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:i,targetHandle:a})=>`Couldn't create edge for ${e} handle id: "${e==="source"?i:a}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},yu=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],TE=["Enter"," ","Escape"],RE={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:i})=>`Moved selected node ${e}. New position, x: ${t}, y: ${i}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var jl;(function(e){e.Strict="strict",e.Loose="loose"})(jl||(jl={}));var ls;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(ls||(ls={}));var mu;(function(e){e.Partial="partial",e.Full="full"})(mu||(mu={}));const NE={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var sa;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(sa||(sa={}));var Xf;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Xf||(Xf={}));var je;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(je||(je={}));const aS={[je.Left]:je.Right,[je.Right]:je.Left,[je.Top]:je.Bottom,[je.Bottom]:je.Top};function OE(e){return e===null?null:e?"valid":"invalid"}const zE=e=>"id"in e&&"source"in e&&"target"in e,FO=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),$g=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Tu=(e,t=[0,0])=>{const{width:i,height:a}=xi(e),l=e.origin??t,o=i*l[0],c=a*l[1];return{x:e.position.x-o,y:e.position.y-c}},ZO=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const i=e.reduce((a,l)=>{const o=typeof l=="string";let c=!t.nodeLookup&&!o?l:void 0;t.nodeLookup&&(c=o?t.nodeLookup.get(l):$g(l)?l:t.nodeLookup.get(l.id));const f=c?Kf(c,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return bd(a,f)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return _d(i)},Ru=(e,t={})=>{let i={x:1/0,y:1/0,x2:-1/0,y2:-1/0},a=!1;return e.forEach(l=>{(t.filter===void 0||t.filter(l))&&(i=bd(i,Kf(l)),a=!0)}),a?_d(i):{x:0,y:0,width:0,height:0}},Yg=(e,t,[i,a,l]=[0,0,1],o=!1,c=!1)=>{const f={...Ou(t,[i,a,l]),width:t.width/l,height:t.height/l},h=[];for(const y of e.values()){const{measured:g,selectable:p=!0,hidden:v=!1}=y;if(c&&!p||v)continue;const b=g.width??y.width??y.initialWidth??null,S=g.height??y.height??y.initialHeight??null,_=pu(f,Hl(y)),w=(b??0)*(S??0),C=o&&_>0;(!y.internals.handleBounds||C||_>=w||y.dragging)&&h.push(y)}return h},GO=(e,t)=>{const i=new Set;return e.forEach(a=>{i.add(a.id)}),t.filter(a=>i.has(a.source)||i.has(a.target))};function QO(e,t){const i=new Map,a=t!=null&&t.nodes?new Set(t.nodes.map(l=>l.id)):null;return e.forEach(l=>{l.measured.width&&l.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!l.hidden)&&(!a||a.has(l.id))&&i.set(l.id,l)}),i}async function XO({nodes:e,width:t,height:i,panZoom:a,minZoom:l,maxZoom:o},c){if(e.size===0)return Promise.resolve(!0);const f=QO(e,c),h=Ru(f),y=Fg(h,t,i,(c==null?void 0:c.minZoom)??l,(c==null?void 0:c.maxZoom)??o,(c==null?void 0:c.padding)??.1);return await a.setViewport(y,{duration:c==null?void 0:c.duration,ease:c==null?void 0:c.ease,interpolate:c==null?void 0:c.interpolate}),Promise.resolve(!0)}function DE({nodeId:e,nextPosition:t,nodeLookup:i,nodeOrigin:a=[0,0],nodeExtent:l,onError:o}){const c=i.get(e),f=c.parentId?i.get(c.parentId):void 0,{x:h,y}=f?f.internals.positionAbsolute:{x:0,y:0},g=c.origin??a;let p=c.extent||l;if(c.extent==="parent"&&!c.expandParent)if(!f)o==null||o("005",Hr.error005());else{const b=f.measured.width,S=f.measured.height;b&&S&&(p=[[h,y],[h+b,y+S]])}else f&&ql(c.extent)&&(p=[[c.extent[0][0]+h,c.extent[0][1]+y],[c.extent[1][0]+h,c.extent[1][1]+y]]);const v=ql(p)?ps(t,p,c.measured):t;return(c.measured.width===void 0||c.measured.height===void 0)&&(o==null||o("015",Hr.error015())),{position:{x:v.x-h+(c.measured.width??0)*g[0],y:v.y-y+(c.measured.height??0)*g[1]},positionAbsolute:v}}async function KO({nodesToRemove:e=[],edgesToRemove:t=[],nodes:i,edges:a,onBeforeDelete:l}){const o=new Set(e.map(v=>v.id)),c=[];for(const v of i){if(v.deletable===!1)continue;const b=o.has(v.id),S=!b&&v.parentId&&c.find(_=>_.id===v.parentId);(b||S)&&c.push(v)}const f=new Set(t.map(v=>v.id)),h=a.filter(v=>v.deletable!==!1),g=GO(c,h);for(const v of h)f.has(v.id)&&!g.find(S=>S.id===v.id)&&g.push(v);if(!l)return{edges:g,nodes:c};const p=await l({nodes:c,edges:g});return typeof p=="boolean"?p?{edges:g,nodes:c}:{edges:[],nodes:[]}:p}const Ul=(e,t=0,i=1)=>Math.min(Math.max(e,t),i),ps=(e={x:0,y:0},t,i)=>({x:Ul(e.x,t[0][0],t[1][0]-((i==null?void 0:i.width)??0)),y:Ul(e.y,t[0][1],t[1][1]-((i==null?void 0:i.height)??0))});function LE(e,t,i){const{width:a,height:l}=xi(i),{x:o,y:c}=i.internals.positionAbsolute;return ps(e,[[o,c],[o+a,c+l]],t)}const sS=(e,t,i)=>e<t?Ul(Math.abs(e-t),1,t)/t:e>i?-Ul(Math.abs(e-i),1,t)/t:0,BE=(e,t,i=15,a=40)=>{const l=sS(e.x,a,t.width-a)*i,o=sS(e.y,a,t.height-a)*i;return[l,o]},bd=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),og=({x:e,y:t,width:i,height:a})=>({x:e,y:t,x2:e+i,y2:t+a}),_d=({x:e,y:t,x2:i,y2:a})=>({x:e,y:t,width:i-e,height:a-t}),Hl=(e,t=[0,0])=>{var l,o;const{x:i,y:a}=$g(e)?e.internals.positionAbsolute:Tu(e,t);return{x:i,y:a,width:((l=e.measured)==null?void 0:l.width)??e.width??e.initialWidth??0,height:((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0}},Kf=(e,t=[0,0])=>{var l,o;const{x:i,y:a}=$g(e)?e.internals.positionAbsolute:Tu(e,t);return{x:i,y:a,x2:i+(((l=e.measured)==null?void 0:l.width)??e.width??e.initialWidth??0),y2:a+(((o=e.measured)==null?void 0:o.height)??e.height??e.initialHeight??0)}},jE=(e,t)=>_d(bd(og(e),og(t))),pu=(e,t)=>{const i=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),a=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(i*a)},lS=e=>Sr(e.width)&&Sr(e.height)&&Sr(e.x)&&Sr(e.y),Sr=e=>!isNaN(e)&&isFinite(e),JO=(e,t)=>{},Nu=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Ou=({x:e,y:t},[i,a,l],o=!1,c=[1,1])=>{const f={x:(e-i)/l,y:(t-a)/l};return o?Nu(f,c):f},Jf=({x:e,y:t},[i,a,l])=>({x:e*l+i,y:t*l+a});function ll(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(i)}if(typeof e=="string"&&e.endsWith("%")){const i=parseFloat(e);if(!Number.isNaN(i))return Math.floor(t*i*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function WO(e,t,i){if(typeof e=="string"||typeof e=="number"){const a=ll(e,i),l=ll(e,t);return{top:a,right:l,bottom:a,left:l,x:l*2,y:a*2}}if(typeof e=="object"){const a=ll(e.top??e.y??0,i),l=ll(e.bottom??e.y??0,i),o=ll(e.left??e.x??0,t),c=ll(e.right??e.x??0,t);return{top:a,right:c,bottom:l,left:o,x:o+c,y:a+l}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function e8(e,t,i,a,l,o){const{x:c,y:f}=Jf(e,[t,i,a]),{x:h,y}=Jf({x:e.x+e.width,y:e.y+e.height},[t,i,a]),g=l-h,p=o-y;return{left:Math.floor(c),top:Math.floor(f),right:Math.floor(g),bottom:Math.floor(p)}}const Fg=(e,t,i,a,l,o)=>{const c=WO(o,t,i),f=(t-c.x)/e.width,h=(i-c.y)/e.height,y=Math.min(f,h),g=Ul(y,a,l),p=e.x+e.width/2,v=e.y+e.height/2,b=t/2-p*g,S=i/2-v*g,_=e8(e,b,S,g,t,i),w={left:Math.min(_.left-c.left,0),top:Math.min(_.top-c.top,0),right:Math.min(_.right-c.right,0),bottom:Math.min(_.bottom-c.bottom,0)};return{x:b-w.left+w.right,y:S-w.top+w.bottom,zoom:g}},gu=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function ql(e){return e!=null&&e!=="parent"}function xi(e){var t,i;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}}function UE(e){var t,i;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight)!==void 0}function HE(e,t={width:0,height:0},i,a,l){const o={...e},c=a.get(i);if(c){const f=c.origin||l;o.x+=c.internals.positionAbsolute.x-(t.width??0)*f[0],o.y+=c.internals.positionAbsolute.y-(t.height??0)*f[1]}return o}function oS(e,t){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}function t8(){let e,t;return{promise:new Promise((a,l)=>{e=a,t=l}),resolve:e,reject:t}}function n8(e){return{...RE,...e||{}}}function eu(e,{snapGrid:t=[0,0],snapToGrid:i=!1,transform:a,containerBounds:l}){const{x:o,y:c}=xr(e),f=Ou({x:o-((l==null?void 0:l.left)??0),y:c-((l==null?void 0:l.top)??0)},a),{x:h,y}=i?Nu(f,t):f;return{xSnapped:h,ySnapped:y,...f}}const Zg=e=>({width:e.offsetWidth,height:e.offsetHeight}),qE=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},r8=["INPUT","SELECT","TEXTAREA"];function VE(e){var a,l;const t=((l=(a=e.composedPath)==null?void 0:a.call(e))==null?void 0:l[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:r8.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const PE=e=>"clientX"in e,xr=(e,t)=>{var o,c;const i=PE(e),a=i?e.clientX:(o=e.touches)==null?void 0:o[0].clientX,l=i?e.clientY:(c=e.touches)==null?void 0:c[0].clientY;return{x:a-((t==null?void 0:t.left)??0),y:l-((t==null?void 0:t.top)??0)}},uS=(e,t,i,a,l)=>{const o=t.querySelectorAll(`.${e}`);return!o||!o.length?null:Array.from(o).map(c=>{const f=c.getBoundingClientRect();return{id:c.getAttribute("data-handleid"),type:e,nodeId:l,position:c.getAttribute("data-handlepos"),x:(f.left-i.left)/a,y:(f.top-i.top)/a,...Zg(c)}})};function IE({sourceX:e,sourceY:t,targetX:i,targetY:a,sourceControlX:l,sourceControlY:o,targetControlX:c,targetControlY:f}){const h=e*.125+l*.375+c*.375+i*.125,y=t*.125+o*.375+f*.375+a*.125,g=Math.abs(h-e),p=Math.abs(y-t);return[h,y,g,p]}function pf(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function cS({pos:e,x1:t,y1:i,x2:a,y2:l,c:o}){switch(e){case je.Left:return[t-pf(t-a,o),i];case je.Right:return[t+pf(a-t,o),i];case je.Top:return[t,i-pf(i-l,o)];case je.Bottom:return[t,i+pf(l-i,o)]}}function $E({sourceX:e,sourceY:t,sourcePosition:i=je.Bottom,targetX:a,targetY:l,targetPosition:o=je.Top,curvature:c=.25}){const[f,h]=cS({pos:i,x1:e,y1:t,x2:a,y2:l,c}),[y,g]=cS({pos:o,x1:a,y1:l,x2:e,y2:t,c}),[p,v,b,S]=IE({sourceX:e,sourceY:t,targetX:a,targetY:l,sourceControlX:f,sourceControlY:h,targetControlX:y,targetControlY:g});return[`M${e},${t} C${f},${h} ${y},${g} ${a},${l}`,p,v,b,S]}function YE({sourceX:e,sourceY:t,targetX:i,targetY:a}){const l=Math.abs(i-e)/2,o=i<e?i+l:i-l,c=Math.abs(a-t)/2,f=a<t?a+c:a-c;return[o,f,l,c]}function i8({sourceNode:e,targetNode:t,selected:i=!1,zIndex:a=0,elevateOnSelect:l=!1,zIndexMode:o="basic"}){if(o==="manual")return a;const c=l&&i?a+1e3:a,f=Math.max(e.parentId||l&&e.selected?e.internals.z:0,t.parentId||l&&t.selected?t.internals.z:0);return c+f}function a8({sourceNode:e,targetNode:t,width:i,height:a,transform:l}){const o=bd(Kf(e),Kf(t));o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1);const c={x:-l[0]/l[2],y:-l[1]/l[2],width:i/l[2],height:a/l[2]};return pu(c,_d(o))>0}const s8=({source:e,sourceHandle:t,target:i,targetHandle:a})=>`xy-edge__${e}${t||""}-${i}${a||""}`,l8=(e,t)=>t.some(i=>i.source===e.source&&i.target===e.target&&(i.sourceHandle===e.sourceHandle||!i.sourceHandle&&!e.sourceHandle)&&(i.targetHandle===e.targetHandle||!i.targetHandle&&!e.targetHandle)),o8=(e,t,i={})=>{if(!e.source||!e.target)return t;const a=i.getEdgeId||s8;let l;return zE(e)?l={...e}:l={...e,id:a(e)},l8(l,t)?t:(l.sourceHandle===null&&delete l.sourceHandle,l.targetHandle===null&&delete l.targetHandle,t.concat(l))};function FE({sourceX:e,sourceY:t,targetX:i,targetY:a}){const[l,o,c,f]=YE({sourceX:e,sourceY:t,targetX:i,targetY:a});return[`M ${e},${t}L ${i},${a}`,l,o,c,f]}const fS={[je.Left]:{x:-1,y:0},[je.Right]:{x:1,y:0},[je.Top]:{x:0,y:-1},[je.Bottom]:{x:0,y:1}},u8=({source:e,sourcePosition:t=je.Bottom,target:i})=>t===je.Left||t===je.Right?e.x<i.x?{x:1,y:0}:{x:-1,y:0}:e.y<i.y?{x:0,y:1}:{x:0,y:-1},dS=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function c8({source:e,sourcePosition:t=je.Bottom,target:i,targetPosition:a=je.Top,center:l,offset:o,stepPosition:c}){const f=fS[t],h=fS[a],y={x:e.x+f.x*o,y:e.y+f.y*o},g={x:i.x+h.x*o,y:i.y+h.y*o},p=u8({source:y,sourcePosition:t,target:g}),v=p.x!==0?"x":"y",b=p[v];let S=[],_,w;const C={x:0,y:0},M={x:0,y:0},[,,E,k]=YE({sourceX:e.x,sourceY:e.y,targetX:i.x,targetY:i.y});if(f[v]*h[v]===-1){v==="x"?(_=l.x??y.x+(g.x-y.x)*c,w=l.y??(y.y+g.y)/2):(_=l.x??(y.x+g.x)/2,w=l.y??y.y+(g.y-y.y)*c);const T=[{x:_,y:y.y},{x:_,y:g.y}],L=[{x:y.x,y:w},{x:g.x,y:w}];f[v]===b?S=v==="x"?T:L:S=v==="x"?L:T}else{const T=[{x:y.x,y:g.y}],L=[{x:g.x,y:y.y}];if(v==="x"?S=f.x===b?L:T:S=f.y===b?T:L,t===a){const G=Math.abs(e[v]-i[v]);if(G<=o){const re=Math.min(o-1,o-G);f[v]===b?C[v]=(y[v]>e[v]?-1:1)*re:M[v]=(g[v]>i[v]?-1:1)*re}}if(t!==a){const G=v==="x"?"y":"x",re=f[v]===h[G],U=y[G]>g[G],Y=y[G]<g[G];(f[v]===1&&(!re&&U||re&&Y)||f[v]!==1&&(!re&&Y||re&&U))&&(S=v==="x"?T:L)}const Q={x:y.x+C.x,y:y.y+C.y},j={x:g.x+M.x,y:g.y+M.y},B=Math.max(Math.abs(Q.x-S[0].x),Math.abs(j.x-S[0].x)),$=Math.max(Math.abs(Q.y-S[0].y),Math.abs(j.y-S[0].y));B>=$?(_=(Q.x+j.x)/2,w=S[0].y):(_=S[0].x,w=(Q.y+j.y)/2)}const z={x:y.x+C.x,y:y.y+C.y},N={x:g.x+M.x,y:g.y+M.y};return[[e,...z.x!==S[0].x||z.y!==S[0].y?[z]:[],...S,...N.x!==S[S.length-1].x||N.y!==S[S.length-1].y?[N]:[],i],_,w,E,k]}function f8(e,t,i,a){const l=Math.min(dS(e,t)/2,dS(t,i)/2,a),{x:o,y:c}=t;if(e.x===o&&o===i.x||e.y===c&&c===i.y)return`L${o} ${c}`;if(e.y===c){const y=e.x<i.x?-1:1,g=e.y<i.y?1:-1;return`L ${o+l*y},${c}Q ${o},${c} ${o},${c+l*g}`}const f=e.x<i.x?1:-1,h=e.y<i.y?-1:1;return`L ${o},${c+l*h}Q ${o},${c} ${o+l*f},${c}`}function ug({sourceX:e,sourceY:t,sourcePosition:i=je.Bottom,targetX:a,targetY:l,targetPosition:o=je.Top,borderRadius:c=5,centerX:f,centerY:h,offset:y=20,stepPosition:g=.5}){const[p,v,b,S,_]=c8({source:{x:e,y:t},sourcePosition:i,target:{x:a,y:l},targetPosition:o,center:{x:f,y:h},offset:y,stepPosition:g});let w=`M${p[0].x} ${p[0].y}`;for(let C=1;C<p.length-1;C++)w+=f8(p[C-1],p[C],p[C+1],c);return w+=`L${p[p.length-1].x} ${p[p.length-1].y}`,[w,v,b,S,_]}function hS(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function d8(e){var p;const{sourceNode:t,targetNode:i}=e;if(!hS(t)||!hS(i))return null;const a=t.internals.handleBounds||yS(t.handles),l=i.internals.handleBounds||yS(i.handles),o=mS((a==null?void 0:a.source)??[],e.sourceHandle),c=mS(e.connectionMode===jl.Strict?(l==null?void 0:l.target)??[]:((l==null?void 0:l.target)??[]).concat((l==null?void 0:l.source)??[]),e.targetHandle);if(!o||!c)return(p=e.onError)==null||p.call(e,"008",Hr.error008(o?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const f=(o==null?void 0:o.position)||je.Bottom,h=(c==null?void 0:c.position)||je.Top,y=gs(t,o,f),g=gs(i,c,h);return{sourceX:y.x,sourceY:y.y,targetX:g.x,targetY:g.y,sourcePosition:f,targetPosition:h}}function yS(e){if(!e)return null;const t=[],i=[];for(const a of e)a.width=a.width??1,a.height=a.height??1,a.type==="source"?t.push(a):a.type==="target"&&i.push(a);return{source:t,target:i}}function gs(e,t,i=je.Left,a=!1){const l=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,o=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:c,height:f}=t??xi(e);if(a)return{x:l+c/2,y:o+f/2};switch((t==null?void 0:t.position)??i){case je.Top:return{x:l+c/2,y:o};case je.Right:return{x:l+c,y:o+f/2};case je.Bottom:return{x:l+c/2,y:o+f};case je.Left:return{x:l,y:o+f/2}}}function mS(e,t){return e&&(t?e.find(i=>i.id===t):e[0])||null}function cg(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(a=>`${a}=${e[a]}`).join("&")}`:""}function h8(e,{id:t,defaultColor:i,defaultMarkerStart:a,defaultMarkerEnd:l}){const o=new Set;return e.reduce((c,f)=>([f.markerStart||a,f.markerEnd||l].forEach(h=>{if(h&&typeof h=="object"){const y=cg(h,t);o.has(y)||(c.push({id:y,color:h.color||i,...h}),o.add(y))}}),c),[]).sort((c,f)=>c.id.localeCompare(f.id))}const ZE=1e3,y8=10,Gg={nodeOrigin:[0,0],nodeExtent:yu,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},m8={...Gg,checkEquality:!0};function Qg(e,t){const i={...e};for(const a in t)t[a]!==void 0&&(i[a]=t[a]);return i}function p8(e,t,i){const a=Qg(Gg,i);for(const l of e.values())if(l.parentId)Kg(l,e,t,a);else{const o=Tu(l,a.nodeOrigin),c=ql(l.extent)?l.extent:a.nodeExtent,f=ps(o,c,xi(l));l.internals.positionAbsolute=f}}function g8(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const i=[],a=[];for(const l of e.handles){const o={id:l.id,width:l.width??1,height:l.height??1,nodeId:e.id,x:l.x,y:l.y,position:l.position,type:l.type};l.type==="source"?i.push(o):l.type==="target"&&a.push(o)}return{source:i,target:a}}function Xg(e){return e==="manual"}function fg(e,t,i,a={}){var g,p;const l=Qg(m8,a),o={i:0},c=new Map(t),f=l!=null&&l.elevateNodesOnSelect&&!Xg(l.zIndexMode)?ZE:0;let h=e.length>0,y=!1;t.clear(),i.clear();for(const v of e){let b=c.get(v.id);if(l.checkEquality&&v===(b==null?void 0:b.internals.userNode))t.set(v.id,b);else{const S=Tu(v,l.nodeOrigin),_=ql(v.extent)?v.extent:l.nodeExtent,w=ps(S,_,xi(v));b={...l.defaults,...v,measured:{width:(g=v.measured)==null?void 0:g.width,height:(p=v.measured)==null?void 0:p.height},internals:{positionAbsolute:w,handleBounds:g8(v,b),z:GE(v,f,l.zIndexMode),userNode:v}},t.set(v.id,b)}(b.measured===void 0||b.measured.width===void 0||b.measured.height===void 0)&&!b.hidden&&(h=!1),v.parentId&&Kg(b,t,i,a,o),y||(y=v.selected??!1)}return{nodesInitialized:h,hasSelectedNodes:y}}function v8(e,t){if(!e.parentId)return;const i=t.get(e.parentId);i?i.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Kg(e,t,i,a,l){const{elevateNodesOnSelect:o,nodeOrigin:c,nodeExtent:f,zIndexMode:h}=Qg(Gg,a),y=e.parentId,g=t.get(y);if(!g){console.warn(`Parent node ${y} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}v8(e,i),l&&!g.parentId&&g.internals.rootParentIndex===void 0&&h==="auto"&&(g.internals.rootParentIndex=++l.i,g.internals.z=g.internals.z+l.i*y8),l&&g.internals.rootParentIndex!==void 0&&(l.i=g.internals.rootParentIndex);const p=o&&!Xg(h)?ZE:0,{x:v,y:b,z:S}=b8(e,g,c,f,p,h),{positionAbsolute:_}=e.internals,w=v!==_.x||b!==_.y;(w||S!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:w?{x:v,y:b}:_,z:S}})}function GE(e,t,i){const a=Sr(e.zIndex)?e.zIndex:0;return Xg(i)?a:a+(e.selected?t:0)}function b8(e,t,i,a,l,o){const{x:c,y:f}=t.internals.positionAbsolute,h=xi(e),y=Tu(e,i),g=ql(e.extent)?ps(y,e.extent,h):y;let p=ps({x:c+g.x,y:f+g.y},a,h);e.extent==="parent"&&(p=LE(p,h,t));const v=GE(e,l,o),b=t.internals.z??0;return{x:p.x,y:p.y,z:b>=v?b+1:v}}function Jg(e,t,i,a=[0,0]){var c;const l=[],o=new Map;for(const f of e){const h=t.get(f.parentId);if(!h)continue;const y=((c=o.get(f.parentId))==null?void 0:c.expandedRect)??Hl(h),g=jE(y,f.rect);o.set(f.parentId,{expandedRect:g,parent:h})}return o.size>0&&o.forEach(({expandedRect:f,parent:h},y)=>{var E;const g=h.internals.positionAbsolute,p=xi(h),v=h.origin??a,b=f.x<g.x?Math.round(Math.abs(g.x-f.x)):0,S=f.y<g.y?Math.round(Math.abs(g.y-f.y)):0,_=Math.max(p.width,Math.round(f.width)),w=Math.max(p.height,Math.round(f.height)),C=(_-p.width)*v[0],M=(w-p.height)*v[1];(b>0||S>0||C||M)&&(l.push({id:y,type:"position",position:{x:h.position.x-b+C,y:h.position.y-S+M}}),(E=i.get(y))==null||E.forEach(k=>{e.some(z=>z.id===k.id)||l.push({id:k.id,type:"position",position:{x:k.position.x+b,y:k.position.y+S}})})),(p.width<f.width||p.height<f.height||b||S)&&l.push({id:y,type:"dimensions",setAttributes:!0,dimensions:{width:_+(b?v[0]*b-C:0),height:w+(S?v[1]*S-M:0)}})}),l}function _8(e,t,i,a,l,o,c){const f=a==null?void 0:a.querySelector(".xyflow__viewport");let h=!1;if(!f)return{changes:[],updatedInternals:h};const y=[],g=window.getComputedStyle(f),{m22:p}=new window.DOMMatrixReadOnly(g.transform),v=[];for(const b of e.values()){const S=t.get(b.id);if(!S)continue;if(S.hidden){t.set(S.id,{...S,internals:{...S.internals,handleBounds:void 0}}),h=!0;continue}const _=Zg(b.nodeElement),w=S.measured.width!==_.width||S.measured.height!==_.height;if(!!(_.width&&_.height&&(w||!S.internals.handleBounds||b.force))){const M=b.nodeElement.getBoundingClientRect(),E=ql(S.extent)?S.extent:o;let{positionAbsolute:k}=S.internals;S.parentId&&S.extent==="parent"?k=LE(k,_,t.get(S.parentId)):E&&(k=ps(k,E,_));const z={...S,measured:_,internals:{...S.internals,positionAbsolute:k,handleBounds:{source:uS("source",b.nodeElement,M,p,S.id),target:uS("target",b.nodeElement,M,p,S.id)}}};t.set(S.id,z),S.parentId&&Kg(z,t,i,{nodeOrigin:l,zIndexMode:c}),h=!0,w&&(y.push({id:S.id,type:"dimensions",dimensions:_}),S.expandParent&&S.parentId&&v.push({id:S.id,parentId:S.parentId,rect:Hl(z,l)}))}}if(v.length>0){const b=Jg(v,t,i,l);y.push(...b)}return{changes:y,updatedInternals:h}}async function S8({delta:e,panZoom:t,transform:i,translateExtent:a,width:l,height:o}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const c=await t.setViewportConstrained({x:i[0]+e.x,y:i[1]+e.y,zoom:i[2]},[[0,0],[l,o]],a),f=!!c&&(c.x!==i[0]||c.y!==i[1]||c.k!==i[2]);return Promise.resolve(f)}function pS(e,t,i,a,l,o){let c=l;const f=a.get(c)||new Map;a.set(c,f.set(i,t)),c=`${l}-${e}`;const h=a.get(c)||new Map;if(a.set(c,h.set(i,t)),o){c=`${l}-${e}-${o}`;const y=a.get(c)||new Map;a.set(c,y.set(i,t))}}function QE(e,t,i){e.clear(),t.clear();for(const a of i){const{source:l,target:o,sourceHandle:c=null,targetHandle:f=null}=a,h={edgeId:a.id,source:l,target:o,sourceHandle:c,targetHandle:f},y=`${l}-${c}--${o}-${f}`,g=`${o}-${f}--${l}-${c}`;pS("source",h,g,e,l,c),pS("target",h,y,e,o,f),t.set(a.id,a)}}function XE(e,t){if(!e.parentId)return!1;const i=t.get(e.parentId);return i?i.selected?!0:XE(i,t):!1}function gS(e,t,i){var l;let a=e;do{if((l=a==null?void 0:a.matches)!=null&&l.call(a,t))return!0;if(a===i)return!1;a=a==null?void 0:a.parentElement}while(a);return!1}function x8(e,t,i,a){const l=new Map;for(const[o,c]of e)if((c.selected||c.id===a)&&(!c.parentId||!XE(c,e))&&(c.draggable||t&&typeof c.draggable>"u")){const f=e.get(o);f&&l.set(o,{id:o,position:f.position||{x:0,y:0},distance:{x:i.x-f.internals.positionAbsolute.x,y:i.y-f.internals.positionAbsolute.y},extent:f.extent,parentId:f.parentId,origin:f.origin,expandParent:f.expandParent,internals:{positionAbsolute:f.internals.positionAbsolute||{x:0,y:0}},measured:{width:f.measured.width??0,height:f.measured.height??0}})}return l}function Zm({nodeId:e,dragItems:t,nodeLookup:i,dragging:a=!0}){var c,f,h;const l=[];for(const[y,g]of t){const p=(c=i.get(y))==null?void 0:c.internals.userNode;p&&l.push({...p,position:g.position,dragging:a})}if(!e)return[l[0],l];const o=(f=i.get(e))==null?void 0:f.internals.userNode;return[o?{...o,position:((h=t.get(e))==null?void 0:h.position)||o.position,dragging:a}:l[0],l]}function w8({dragItems:e,snapGrid:t,x:i,y:a}){const l=e.values().next().value;if(!l)return null;const o={x:i-l.distance.x,y:a-l.distance.y},c=Nu(o,t);return{x:c.x-o.x,y:c.y-o.y}}function E8({onNodeMouseDown:e,getStoreItems:t,onDragStart:i,onDrag:a,onDragStop:l}){let o={x:null,y:null},c=0,f=new Map,h=!1,y={x:0,y:0},g=null,p=!1,v=null,b=!1,S=!1,_=null;function w({noDragClassName:M,handleSelector:E,domNode:k,isSelectable:z,nodeId:N,nodeClickDistance:D=0}){v=rd(k);function T({x:B,y:$}){const{nodeLookup:G,nodeExtent:re,snapGrid:U,snapToGrid:Y,nodeOrigin:Z,onNodeDrag:K,onSelectionDrag:J,onError:O,updateNodePositions:P}=t();o={x:B,y:$};let ae=!1;const ue=f.size>1,de=ue&&re?og(Ru(f)):null,me=ue&&Y?w8({dragItems:f,snapGrid:U,x:B,y:$}):null;for(const[be,ye]of f){if(!G.has(be))continue;let he={x:B-ye.distance.x,y:$-ye.distance.y};Y&&(he=me?{x:Math.round(he.x+me.x),y:Math.round(he.y+me.y)}:Nu(he,U));let Ue=null;if(ue&&re&&!ye.extent&&de){const{positionAbsolute:ze}=ye.internals,qe=ze.x-de.x+re[0][0],ut=ze.x+ye.measured.width-de.x2+re[1][0],Ge=ze.y-de.y+re[0][1],Dt=ze.y+ye.measured.height-de.y2+re[1][1];Ue=[[qe,Ge],[ut,Dt]]}const{position:De,positionAbsolute:Re}=DE({nodeId:be,nextPosition:he,nodeLookup:G,nodeExtent:Ue||re,nodeOrigin:Z,onError:O});ae=ae||ye.position.x!==De.x||ye.position.y!==De.y,ye.position=De,ye.internals.positionAbsolute=Re}if(S=S||ae,!!ae&&(P(f,!0),_&&(a||K||!N&&J))){const[be,ye]=Zm({nodeId:N,dragItems:f,nodeLookup:G});a==null||a(_,f,be,ye),K==null||K(_,be,ye),N||J==null||J(_,ye)}}async function L(){if(!g)return;const{transform:B,panBy:$,autoPanSpeed:G,autoPanOnNodeDrag:re}=t();if(!re){h=!1,cancelAnimationFrame(c);return}const[U,Y]=BE(y,g,G);(U!==0||Y!==0)&&(o.x=(o.x??0)-U/B[2],o.y=(o.y??0)-Y/B[2],await $({x:U,y:Y})&&T(o)),c=requestAnimationFrame(L)}function Q(B){var ue;const{nodeLookup:$,multiSelectionActive:G,nodesDraggable:re,transform:U,snapGrid:Y,snapToGrid:Z,selectNodesOnDrag:K,onNodeDragStart:J,onSelectionDragStart:O,unselectNodesAndEdges:P}=t();p=!0,(!K||!z)&&!G&&N&&((ue=$.get(N))!=null&&ue.selected||P()),z&&K&&N&&(e==null||e(N));const ae=eu(B.sourceEvent,{transform:U,snapGrid:Y,snapToGrid:Z,containerBounds:g});if(o=ae,f=x8($,re,ae,N),f.size>0&&(i||J||!N&&O)){const[de,me]=Zm({nodeId:N,dragItems:f,nodeLookup:$});i==null||i(B.sourceEvent,f,de,me),J==null||J(B.sourceEvent,de,me),N||O==null||O(B.sourceEvent,me)}}const j=Px().clickDistance(D).on("start",B=>{const{domNode:$,nodeDragThreshold:G,transform:re,snapGrid:U,snapToGrid:Y}=t();g=($==null?void 0:$.getBoundingClientRect())||null,b=!1,S=!1,_=B.sourceEvent,G===0&&Q(B),o=eu(B.sourceEvent,{transform:re,snapGrid:U,snapToGrid:Y,containerBounds:g}),y=xr(B.sourceEvent,g)}).on("drag",B=>{const{autoPanOnNodeDrag:$,transform:G,snapGrid:re,snapToGrid:U,nodeDragThreshold:Y,nodeLookup:Z}=t(),K=eu(B.sourceEvent,{transform:G,snapGrid:re,snapToGrid:U,containerBounds:g});if(_=B.sourceEvent,(B.sourceEvent.type==="touchmove"&&B.sourceEvent.touches.length>1||N&&!Z.has(N))&&(b=!0),!b){if(!h&&$&&p&&(h=!0,L()),!p){const J=xr(B.sourceEvent,g),O=J.x-y.x,P=J.y-y.y;Math.sqrt(O*O+P*P)>Y&&Q(B)}(o.x!==K.xSnapped||o.y!==K.ySnapped)&&f&&p&&(y=xr(B.sourceEvent,g),T(K))}}).on("end",B=>{if(!(!p||b)&&(h=!1,p=!1,cancelAnimationFrame(c),f.size>0)){const{nodeLookup:$,updateNodePositions:G,onNodeDragStop:re,onSelectionDragStop:U}=t();if(S&&(G(f,!1),S=!1),l||re||!N&&U){const[Y,Z]=Zm({nodeId:N,dragItems:f,nodeLookup:$,dragging:!1});l==null||l(B.sourceEvent,f,Y,Z),re==null||re(B.sourceEvent,Y,Z),N||U==null||U(B.sourceEvent,Z)}}}).filter(B=>{const $=B.target;return!B.button&&(!M||!gS($,`.${M}`,k))&&(!E||gS($,E,k))});v.call(j)}function C(){v==null||v.on(".drag",null)}return{update:w,destroy:C}}function C8(e,t,i){const a=[],l={x:e.x-i,y:e.y-i,width:i*2,height:i*2};for(const o of t.values())pu(l,Hl(o))>0&&a.push(o);return a}const M8=250;function k8(e,t,i,a){var f,h;let l=[],o=1/0;const c=C8(e,i,t+M8);for(const y of c){const g=[...((f=y.internals.handleBounds)==null?void 0:f.source)??[],...((h=y.internals.handleBounds)==null?void 0:h.target)??[]];for(const p of g){if(a.nodeId===p.nodeId&&a.type===p.type&&a.id===p.id)continue;const{x:v,y:b}=gs(y,p,p.position,!0),S=Math.sqrt(Math.pow(v-e.x,2)+Math.pow(b-e.y,2));S>t||(S<o?(l=[{...p,x:v,y:b}],o=S):S===o&&l.push({...p,x:v,y:b}))}}if(!l.length)return null;if(l.length>1){const y=a.type==="source"?"target":"source";return l.find(g=>g.type===y)??l[0]}return l[0]}function KE(e,t,i,a,l,o=!1){var y,g,p;const c=a.get(e);if(!c)return null;const f=l==="strict"?(y=c.internals.handleBounds)==null?void 0:y[t]:[...((g=c.internals.handleBounds)==null?void 0:g.source)??[],...((p=c.internals.handleBounds)==null?void 0:p.target)??[]],h=(i?f==null?void 0:f.find(v=>v.id===i):f==null?void 0:f[0])??null;return h&&o?{...h,...gs(c,h,h.position,!0)}:h}function JE(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function A8(e,t){let i=null;return t?i=!0:e&&!t&&(i=!1),i}const WE=()=>!0;function T8(e,{connectionMode:t,connectionRadius:i,handleId:a,nodeId:l,edgeUpdaterType:o,isTarget:c,domNode:f,nodeLookup:h,lib:y,autoPanOnConnect:g,flowId:p,panBy:v,cancelConnection:b,onConnectStart:S,onConnect:_,onConnectEnd:w,isValidConnection:C=WE,onReconnectEnd:M,updateConnection:E,getTransform:k,getFromHandle:z,autoPanSpeed:N,dragThreshold:D=1,handleDomNode:T}){const L=qE(e.target);let Q=0,j;const{x:B,y:$}=xr(e),G=JE(o,T),re=f==null?void 0:f.getBoundingClientRect();let U=!1;if(!re||!G)return;const Y=KE(l,G,a,h,t);if(!Y)return;let Z=xr(e,re),K=!1,J=null,O=!1,P=null;function ae(){if(!g||!re)return;const[De,Re]=BE(Z,re,N);v({x:De,y:Re}),Q=requestAnimationFrame(ae)}const ue={...Y,nodeId:l,type:G,position:Y.position},de=h.get(l);let be={inProgress:!0,isValid:null,from:gs(de,ue,je.Left,!0),fromHandle:ue,fromPosition:ue.position,fromNode:de,to:Z,toHandle:null,toPosition:aS[ue.position],toNode:null,pointer:Z};function ye(){U=!0,E(be),S==null||S(e,{nodeId:l,handleId:a,handleType:G})}D===0&&ye();function he(De){if(!U){const{x:Dt,y:Dn}=xr(De),yn=Dt-B,Qn=Dn-$;if(!(yn*yn+Qn*Qn>D*D))return;ye()}if(!z()||!ue){Ue(De);return}const Re=k();Z=xr(De,re),j=k8(Ou(Z,Re,!1,[1,1]),i,h,ue),K||(ae(),K=!0);const ze=eC(De,{handle:j,connectionMode:t,fromNodeId:l,fromHandleId:a,fromType:c?"target":"source",isValidConnection:C,doc:L,lib:y,flowId:p,nodeLookup:h});P=ze.handleDomNode,J=ze.connection,O=A8(!!j,ze.isValid);const qe=h.get(l),ut=qe?gs(qe,ue,je.Left,!0):be.from,Ge={...be,from:ut,isValid:O,to:ze.toHandle&&O?Jf({x:ze.toHandle.x,y:ze.toHandle.y},Re):Z,toHandle:ze.toHandle,toPosition:O&&ze.toHandle?ze.toHandle.position:aS[ue.position],toNode:ze.toHandle?h.get(ze.toHandle.nodeId):null,pointer:Z};E(Ge),be=Ge}function Ue(De){if(!("touches"in De&&De.touches.length>0)){if(U){(j||P)&&J&&O&&(_==null||_(J));const{inProgress:Re,...ze}=be,qe={...ze,toPosition:be.toHandle?be.toPosition:null};w==null||w(De,qe),o&&(M==null||M(De,qe))}b(),cancelAnimationFrame(Q),K=!1,O=!1,J=null,P=null,L.removeEventListener("mousemove",he),L.removeEventListener("mouseup",Ue),L.removeEventListener("touchmove",he),L.removeEventListener("touchend",Ue)}}L.addEventListener("mousemove",he),L.addEventListener("mouseup",Ue),L.addEventListener("touchmove",he),L.addEventListener("touchend",Ue)}function eC(e,{handle:t,connectionMode:i,fromNodeId:a,fromHandleId:l,fromType:o,doc:c,lib:f,flowId:h,isValidConnection:y=WE,nodeLookup:g}){const p=o==="target",v=t?c.querySelector(`.${f}-flow__handle[data-id="${h}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:b,y:S}=xr(e),_=c.elementFromPoint(b,S),w=_!=null&&_.classList.contains(`${f}-flow__handle`)?_:v,C={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const M=JE(void 0,w),E=w.getAttribute("data-nodeid"),k=w.getAttribute("data-handleid"),z=w.classList.contains("connectable"),N=w.classList.contains("connectableend");if(!E||!M)return C;const D={source:p?E:a,sourceHandle:p?k:l,target:p?a:E,targetHandle:p?l:k};C.connection=D;const L=z&&N&&(i===jl.Strict?p&&M==="source"||!p&&M==="target":E!==a||k!==l);C.isValid=L&&y(D),C.toHandle=KE(E,M,k,g,i,!0)}return C}const dg={onPointerDown:T8,isValid:eC};function R8({domNode:e,panZoom:t,getTransform:i,getViewScale:a}){const l=rd(e);function o({translateExtent:f,width:h,height:y,zoomStep:g=1,pannable:p=!0,zoomable:v=!0,inversePan:b=!1}){const S=E=>{if(E.sourceEvent.type!=="wheel"||!t)return;const k=i(),z=E.sourceEvent.ctrlKey&&gu()?10:1,N=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*g,D=k[2]*Math.pow(2,N*z);t.scaleTo(D)};let _=[0,0];const w=E=>{(E.sourceEvent.type==="mousedown"||E.sourceEvent.type==="touchstart")&&(_=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY])},C=E=>{const k=i();if(E.sourceEvent.type!=="mousemove"&&E.sourceEvent.type!=="touchmove"||!t)return;const z=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],N=[z[0]-_[0],z[1]-_[1]];_=z;const D=a()*Math.max(k[2],Math.log(k[2]))*(b?-1:1),T={x:k[0]-N[0]*D,y:k[1]-N[1]*D},L=[[0,0],[h,y]];t.setViewportConstrained({x:T.x,y:T.y,zoom:k[2]},L,f)},M=Vx().on("start",w).on("zoom",p?C:null).on("zoom.wheel",v?S:null);l.call(M,{})}function c(){l.on("zoom",null)}return{update:o,destroy:c,pointer:qx}}const Sd=e=>({x:e.x,y:e.y,zoom:e.k}),Gm=({x:e,y:t,zoom:i})=>r4.translate(e,t).scale(i),yl=(e,t)=>e.target.closest(`.${t}`),tC=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),N8=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Qm=(e,t=0,i=N8,a=()=>{})=>{const l=typeof t=="number"&&t>0;return l||a(),l?e.transition().duration(t).ease(i).on("end",a):e},nC=e=>{const t=e.ctrlKey&&gu()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function O8({zoomPanValues:e,noWheelClassName:t,d3Selection:i,d3Zoom:a,panOnScrollMode:l,panOnScrollSpeed:o,zoomOnPinch:c,onPanZoomStart:f,onPanZoom:h,onPanZoomEnd:y}){return g=>{if(yl(g,t))return g.ctrlKey&&g.preventDefault(),!1;g.preventDefault(),g.stopImmediatePropagation();const p=i.property("__zoom").k||1;if(g.ctrlKey&&c){const w=qx(g),C=nC(g),M=p*Math.pow(2,C);a.scaleTo(i,M,w,g);return}const v=g.deltaMode===1?20:1;let b=l===ls.Vertical?0:g.deltaX*v,S=l===ls.Horizontal?0:g.deltaY*v;!gu()&&g.shiftKey&&l!==ls.Vertical&&(b=g.deltaY*v,S=0),a.translateBy(i,-(b/p)*o,-(S/p)*o,{internal:!0});const _=Sd(i.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(h==null||h(g,_),e.panScrollTimeout=setTimeout(()=>{y==null||y(g,_),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,f==null||f(g,_))}}function z8({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:i}){return function(a,l){const o=a.type==="wheel",c=!t&&o&&!a.ctrlKey,f=yl(a,e);if(a.ctrlKey&&o&&f&&a.preventDefault(),c||f)return null;a.preventDefault(),i.call(this,a,l)}}function D8({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:i}){return a=>{var o,c,f;if((o=a.sourceEvent)!=null&&o.internal)return;const l=Sd(a.transform);e.mouseButton=((c=a.sourceEvent)==null?void 0:c.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=l,((f=a.sourceEvent)==null?void 0:f.type)==="mousedown"&&t(!0),i&&(i==null||i(a.sourceEvent,l))}}function L8({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:i,onTransformChange:a,onPanZoom:l}){return o=>{var c,f;e.usedRightMouseButton=!!(i&&tC(t,e.mouseButton??0)),(c=o.sourceEvent)!=null&&c.sync||a([o.transform.x,o.transform.y,o.transform.k]),l&&!((f=o.sourceEvent)!=null&&f.internal)&&(l==null||l(o.sourceEvent,Sd(o.transform)))}}function B8({zoomPanValues:e,panOnDrag:t,panOnScroll:i,onDraggingChange:a,onPanZoomEnd:l,onPaneContextMenu:o}){return c=>{var f;if(!((f=c.sourceEvent)!=null&&f.internal)&&(e.isZoomingOrPanning=!1,o&&tC(t,e.mouseButton??0)&&!e.usedRightMouseButton&&c.sourceEvent&&o(c.sourceEvent),e.usedRightMouseButton=!1,a(!1),l)){const h=Sd(c.transform);e.prevViewport=h,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{l==null||l(c.sourceEvent,h)},i?150:0)}}}function j8({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:i,panOnDrag:a,panOnScroll:l,zoomOnDoubleClick:o,userSelectionActive:c,noWheelClassName:f,noPanClassName:h,lib:y,connectionInProgress:g}){return p=>{var w;const v=e||t,b=i&&p.ctrlKey,S=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(yl(p,`${y}-flow__node`)||yl(p,`${y}-flow__edge`)))return!0;if(!a&&!v&&!l&&!o&&!i||c||g&&!S||yl(p,f)&&S||yl(p,h)&&(!S||l&&S&&!e)||!i&&p.ctrlKey&&S)return!1;if(!i&&p.type==="touchstart"&&((w=p.touches)==null?void 0:w.length)>1)return p.preventDefault(),!1;if(!v&&!l&&!b&&S||!a&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(a)&&!a.includes(p.button)&&p.type==="mousedown")return!1;const _=Array.isArray(a)&&a.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||S)&&_}}function U8({domNode:e,minZoom:t,maxZoom:i,translateExtent:a,viewport:l,onPanZoom:o,onPanZoomStart:c,onPanZoomEnd:f,onDraggingChange:h}){const y={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},g=e.getBoundingClientRect(),p=Vx().scaleExtent([t,i]).translateExtent(a),v=rd(e).call(p);M({x:l.x,y:l.y,zoom:Ul(l.zoom,t,i)},[[0,0],[g.width,g.height]],a);const b=v.on("wheel.zoom"),S=v.on("dblclick.zoom");p.wheelDelta(nC);function _(j,B){return v?new Promise($=>{p==null||p.interpolate((B==null?void 0:B.interpolate)==="linear"?Vy:qy).transform(Qm(v,B==null?void 0:B.duration,B==null?void 0:B.ease,()=>$(!0)),j)}):Promise.resolve(!1)}function w({noWheelClassName:j,noPanClassName:B,onPaneContextMenu:$,userSelectionActive:G,panOnScroll:re,panOnDrag:U,panOnScrollMode:Y,panOnScrollSpeed:Z,preventScrolling:K,zoomOnPinch:J,zoomOnScroll:O,zoomOnDoubleClick:P,zoomActivationKeyPressed:ae,lib:ue,onTransformChange:de,connectionInProgress:me,paneClickDistance:be,selectionOnDrag:ye}){G&&!y.isZoomingOrPanning&&C();const he=re&&!ae&&!G;p.clickDistance(ye?1/0:!Sr(be)||be<0?0:be);const Ue=he?O8({zoomPanValues:y,noWheelClassName:j,d3Selection:v,d3Zoom:p,panOnScrollMode:Y,panOnScrollSpeed:Z,zoomOnPinch:J,onPanZoomStart:c,onPanZoom:o,onPanZoomEnd:f}):z8({noWheelClassName:j,preventScrolling:K,d3ZoomHandler:b});if(v.on("wheel.zoom",Ue,{passive:!1}),!G){const Re=D8({zoomPanValues:y,onDraggingChange:h,onPanZoomStart:c});p.on("start",Re);const ze=L8({zoomPanValues:y,panOnDrag:U,onPaneContextMenu:!!$,onPanZoom:o,onTransformChange:de});p.on("zoom",ze);const qe=B8({zoomPanValues:y,panOnDrag:U,panOnScroll:re,onPaneContextMenu:$,onPanZoomEnd:f,onDraggingChange:h});p.on("end",qe)}const De=j8({zoomActivationKeyPressed:ae,panOnDrag:U,zoomOnScroll:O,panOnScroll:re,zoomOnDoubleClick:P,zoomOnPinch:J,userSelectionActive:G,noPanClassName:B,noWheelClassName:j,lib:ue,connectionInProgress:me});p.filter(De),P?v.on("dblclick.zoom",S):v.on("dblclick.zoom",null)}function C(){p.on("zoom",null)}async function M(j,B,$){const G=Gm(j),re=p==null?void 0:p.constrain()(G,B,$);return re&&await _(re),new Promise(U=>U(re))}async function E(j,B){const $=Gm(j);return await _($,B),new Promise(G=>G($))}function k(j){if(v){const B=Gm(j),$=v.property("__zoom");($.k!==j.zoom||$.x!==j.x||$.y!==j.y)&&(p==null||p.transform(v,B,null,{sync:!0}))}}function z(){const j=v?i4(v.node()):{x:0,y:0,k:1};return{x:j.x,y:j.y,zoom:j.k}}function N(j,B){return v?new Promise($=>{p==null||p.interpolate((B==null?void 0:B.interpolate)==="linear"?Vy:qy).scaleTo(Qm(v,B==null?void 0:B.duration,B==null?void 0:B.ease,()=>$(!0)),j)}):Promise.resolve(!1)}function D(j,B){return v?new Promise($=>{p==null||p.interpolate((B==null?void 0:B.interpolate)==="linear"?Vy:qy).scaleBy(Qm(v,B==null?void 0:B.duration,B==null?void 0:B.ease,()=>$(!0)),j)}):Promise.resolve(!1)}function T(j){p==null||p.scaleExtent(j)}function L(j){p==null||p.translateExtent(j)}function Q(j){const B=!Sr(j)||j<0?0:j;p==null||p.clickDistance(B)}return{update:w,destroy:C,setViewport:E,setViewportConstrained:M,getViewport:z,scaleTo:N,scaleBy:D,setScaleExtent:T,setTranslateExtent:L,syncViewport:k,setClickDistance:Q}}var Vl;(function(e){e.Line="line",e.Handle="handle"})(Vl||(Vl={}));function H8({width:e,prevWidth:t,height:i,prevHeight:a,affectsX:l,affectsY:o}){const c=e-t,f=i-a,h=[c>0?1:c<0?-1:0,f>0?1:f<0?-1:0];return c&&l&&(h[0]=h[0]*-1),f&&o&&(h[1]=h[1]*-1),h}function vS(e){const t=e.includes("right")||e.includes("left"),i=e.includes("bottom")||e.includes("top"),a=e.includes("left"),l=e.includes("top");return{isHorizontal:t,isVertical:i,affectsX:a,affectsY:l}}function ea(e,t){return Math.max(0,t-e)}function ta(e,t){return Math.max(0,e-t)}function gf(e,t,i){return Math.max(0,t-e,e-i)}function bS(e,t){return e?!t:t}function q8(e,t,i,a,l,o,c,f){let{affectsX:h,affectsY:y}=t;const{isHorizontal:g,isVertical:p}=t,v=g&&p,{xSnapped:b,ySnapped:S}=i,{minWidth:_,maxWidth:w,minHeight:C,maxHeight:M}=a,{x:E,y:k,width:z,height:N,aspectRatio:D}=e;let T=Math.floor(g?b-e.pointerX:0),L=Math.floor(p?S-e.pointerY:0);const Q=z+(h?-T:T),j=N+(y?-L:L),B=-o[0]*z,$=-o[1]*N;let G=gf(Q,_,w),re=gf(j,C,M);if(c){let Z=0,K=0;h&&T<0?Z=ea(E+T+B,c[0][0]):!h&&T>0&&(Z=ta(E+Q+B,c[1][0])),y&&L<0?K=ea(k+L+$,c[0][1]):!y&&L>0&&(K=ta(k+j+$,c[1][1])),G=Math.max(G,Z),re=Math.max(re,K)}if(f){let Z=0,K=0;h&&T>0?Z=ta(E+T,f[0][0]):!h&&T<0&&(Z=ea(E+Q,f[1][0])),y&&L>0?K=ta(k+L,f[0][1]):!y&&L<0&&(K=ea(k+j,f[1][1])),G=Math.max(G,Z),re=Math.max(re,K)}if(l){if(g){const Z=gf(Q/D,C,M)*D;if(G=Math.max(G,Z),c){let K=0;!h&&!y||h&&!y&&v?K=ta(k+$+Q/D,c[1][1])*D:K=ea(k+$+(h?T:-T)/D,c[0][1])*D,G=Math.max(G,K)}if(f){let K=0;!h&&!y||h&&!y&&v?K=ea(k+Q/D,f[1][1])*D:K=ta(k+(h?T:-T)/D,f[0][1])*D,G=Math.max(G,K)}}if(p){const Z=gf(j*D,_,w)/D;if(re=Math.max(re,Z),c){let K=0;!h&&!y||y&&!h&&v?K=ta(E+j*D+B,c[1][0])/D:K=ea(E+(y?L:-L)*D+B,c[0][0])/D,re=Math.max(re,K)}if(f){let K=0;!h&&!y||y&&!h&&v?K=ea(E+j*D,f[1][0])/D:K=ta(E+(y?L:-L)*D,f[0][0])/D,re=Math.max(re,K)}}}L=L+(L<0?re:-re),T=T+(T<0?G:-G),l&&(v?Q>j*D?L=(bS(h,y)?-T:T)/D:T=(bS(h,y)?-L:L)*D:g?(L=T/D,y=h):(T=L*D,h=y));const U=h?E+T:E,Y=y?k+L:k;return{width:z+(h?-T:T),height:N+(y?-L:L),x:o[0]*T*(h?-1:1)+U,y:o[1]*L*(y?-1:1)+Y}}const rC={width:0,height:0,x:0,y:0},V8={...rC,pointerX:0,pointerY:0,aspectRatio:1};function P8(e){return[[0,0],[e.measured.width,e.measured.height]]}function I8(e,t,i){const a=t.position.x+e.position.x,l=t.position.y+e.position.y,o=e.measured.width??0,c=e.measured.height??0,f=i[0]*o,h=i[1]*c;return[[a-f,l-h],[a+o-f,l+c-h]]}function $8({domNode:e,nodeId:t,getStoreItems:i,onChange:a,onEnd:l}){const o=rd(e);let c={controlDirection:vS("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function f({controlPosition:y,boundaries:g,keepAspectRatio:p,resizeDirection:v,onResizeStart:b,onResize:S,onResizeEnd:_,shouldResize:w}){let C={...rC},M={...V8};c={boundaries:g,resizeDirection:v,keepAspectRatio:p,controlDirection:vS(y)};let E,k=null,z=[],N,D,T,L=!1;const Q=Px().on("start",j=>{const{nodeLookup:B,transform:$,snapGrid:G,snapToGrid:re,nodeOrigin:U,paneDomNode:Y}=i();if(E=B.get(t),!E)return;k=(Y==null?void 0:Y.getBoundingClientRect())??null;const{xSnapped:Z,ySnapped:K}=eu(j.sourceEvent,{transform:$,snapGrid:G,snapToGrid:re,containerBounds:k});C={width:E.measured.width??0,height:E.measured.height??0,x:E.position.x??0,y:E.position.y??0},M={...C,pointerX:Z,pointerY:K,aspectRatio:C.width/C.height},N=void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(N=B.get(E.parentId),D=N&&E.extent==="parent"?P8(N):void 0),z=[],T=void 0;for(const[J,O]of B)if(O.parentId===t&&(z.push({id:J,position:{...O.position},extent:O.extent}),O.extent==="parent"||O.expandParent)){const P=I8(O,E,O.origin??U);T?T=[[Math.min(P[0][0],T[0][0]),Math.min(P[0][1],T[0][1])],[Math.max(P[1][0],T[1][0]),Math.max(P[1][1],T[1][1])]]:T=P}b==null||b(j,{...C})}).on("drag",j=>{const{transform:B,snapGrid:$,snapToGrid:G,nodeOrigin:re}=i(),U=eu(j.sourceEvent,{transform:B,snapGrid:$,snapToGrid:G,containerBounds:k}),Y=[];if(!E)return;const{x:Z,y:K,width:J,height:O}=C,P={},ae=E.origin??re,{width:ue,height:de,x:me,y:be}=q8(M,c.controlDirection,U,c.boundaries,c.keepAspectRatio,ae,D,T),ye=ue!==J,he=de!==O,Ue=me!==Z&&ye,De=be!==K&&he;if(!Ue&&!De&&!ye&&!he)return;if((Ue||De||ae[0]===1||ae[1]===1)&&(P.x=Ue?me:C.x,P.y=De?be:C.y,C.x=P.x,C.y=P.y,z.length>0)){const ut=me-Z,Ge=be-K;for(const Dt of z)Dt.position={x:Dt.position.x-ut+ae[0]*(ue-J),y:Dt.position.y-Ge+ae[1]*(de-O)},Y.push(Dt)}if((ye||he)&&(P.width=ye&&(!c.resizeDirection||c.resizeDirection==="horizontal")?ue:C.width,P.height=he&&(!c.resizeDirection||c.resizeDirection==="vertical")?de:C.height,C.width=P.width,C.height=P.height),N&&E.expandParent){const ut=ae[0]*(P.width??0);P.x&&P.x<ut&&(C.x=ut,M.x=M.x-(P.x-ut));const Ge=ae[1]*(P.height??0);P.y&&P.y<Ge&&(C.y=Ge,M.y=M.y-(P.y-Ge))}const Re=H8({width:C.width,prevWidth:J,height:C.height,prevHeight:O,affectsX:c.controlDirection.affectsX,affectsY:c.controlDirection.affectsY}),ze={...C,direction:Re};(w==null?void 0:w(j,ze))!==!1&&(L=!0,S==null||S(j,ze),a(P,Y))}).on("end",j=>{L&&(_==null||_(j,{...C}),l==null||l({...C}),L=!1)});o.call(Q)}function h(){o.on(".drag",null)}return{update:f,destroy:h}}const Y8={},_S=e=>{let t;const i=new Set,a=(g,p)=>{const v=typeof g=="function"?g(t):g;if(!Object.is(v,t)){const b=t;t=p??(typeof v!="object"||v===null)?v:Object.assign({},t,v),i.forEach(S=>S(t,b))}},l=()=>t,h={setState:a,getState:l,getInitialState:()=>y,subscribe:g=>(i.add(g),()=>i.delete(g)),destroy:()=>{(Y8?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),i.clear()}},y=t=e(a,l,h);return h},F8=e=>e?_S(e):_S,{useDebugValue:Z8}=jt,{useSyncExternalStoreWithSelector:G8}=BN,Q8=e=>e;function iC(e,t=Q8,i){const a=G8(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,i);return Z8(a),a}const SS=(e,t)=>{const i=F8(e),a=(l,o=t)=>iC(i,l,o);return Object.assign(a,i),a},X8=(e,t)=>e?SS(e,t):SS;function kt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[a,l]of e)if(!Object.is(l,t.get(a)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const a of e)if(!t.has(a))return!1;return!0}const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(const a of i)if(!Object.prototype.hasOwnProperty.call(t,a)||!Object.is(e[a],t[a]))return!1;return!0}const xd=R.createContext(null),K8=xd.Provider,aC=Hr.error001();function it(e,t){const i=R.useContext(xd);if(i===null)throw new Error(aC);return iC(i,e,t)}function At(){const e=R.useContext(xd);if(e===null)throw new Error(aC);return R.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const xS={display:"none"},J8={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},sC="react-flow__node-desc",lC="react-flow__edge-desc",W8="react-flow__aria-live",ez=e=>e.ariaLiveMessage,tz=e=>e.ariaLabelConfig;function nz({rfId:e}){const t=it(ez);return se.jsx("div",{id:`${W8}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:J8,children:t})}function rz({rfId:e,disableKeyboardA11y:t}){const i=it(tz);return se.jsxs(se.Fragment,{children:[se.jsx("div",{id:`${sC}-${e}`,style:xS,children:t?i["node.a11yDescription.default"]:i["node.a11yDescription.keyboardDisabled"]}),se.jsx("div",{id:`${lC}-${e}`,style:xS,children:i["edge.a11yDescription.default"]}),!t&&se.jsx(nz,{rfId:e})]})}const wd=R.forwardRef(({position:e="top-left",children:t,className:i,style:a,...l},o)=>{const c=`${e}`.split("-");return se.jsx("div",{className:Gt(["react-flow__panel",i,...c]),style:a,ref:o,...l,children:t})});wd.displayName="Panel";function iz({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:se.jsx(wd,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:se.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const az=e=>{const t=[],i=[];for(const[,a]of e.nodeLookup)a.selected&&t.push(a.internals.userNode);for(const[,a]of e.edgeLookup)a.selected&&i.push(a);return{selectedNodes:t,selectedEdges:i}},vf=e=>e.id;function sz(e,t){return kt(e.selectedNodes.map(vf),t.selectedNodes.map(vf))&&kt(e.selectedEdges.map(vf),t.selectedEdges.map(vf))}function lz({onSelectionChange:e}){const t=At(),{selectedNodes:i,selectedEdges:a}=it(az,sz);return R.useEffect(()=>{const l={nodes:i,edges:a};e==null||e(l),t.getState().onSelectionChangeHandlers.forEach(o=>o(l))},[i,a,e]),null}const oz=e=>!!e.onSelectionChangeHandlers;function uz({onSelectionChange:e}){const t=it(oz);return e||t?se.jsx(lz,{onSelectionChange:e}):null}const hg=typeof window<"u"?R.useLayoutEffect:R.useEffect,oC=[0,0],cz={x:0,y:0,zoom:1},fz=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],wS=[...fz,"rfId"],dz=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),ES={translateExtent:yu,nodeOrigin:oC,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function hz(e){const{setNodes:t,setEdges:i,setMinZoom:a,setMaxZoom:l,setTranslateExtent:o,setNodeExtent:c,reset:f,setDefaultNodesAndEdges:h}=it(dz,kt),y=At();hg(()=>(h(e.defaultNodes,e.defaultEdges),()=>{g.current=ES,f()}),[]);const g=R.useRef(ES);return hg(()=>{for(const p of wS){const v=e[p],b=g.current[p];v!==b&&(typeof e[p]>"u"||(p==="nodes"?t(v):p==="edges"?i(v):p==="minZoom"?a(v):p==="maxZoom"?l(v):p==="translateExtent"?o(v):p==="nodeExtent"?c(v):p==="ariaLabelConfig"?y.setState({ariaLabelConfig:n8(v)}):p==="fitView"?y.setState({fitViewQueued:v}):p==="fitViewOptions"?y.setState({fitViewOptions:v}):y.setState({[p]:v})))}g.current=e},wS.map(p=>e[p])),null}function CS(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function yz(e){var a;const[t,i]=R.useState(e==="system"?null:e);return R.useEffect(()=>{if(e!=="system"){i(e);return}const l=CS(),o=()=>i(l!=null&&l.matches?"dark":"light");return o(),l==null||l.addEventListener("change",o),()=>{l==null||l.removeEventListener("change",o)}},[e]),t!==null?t:(a=CS())!=null&&a.matches?"dark":"light"}const MS=typeof document<"u"?document:null;function vu(e=null,t={target:MS,actInsideInputWithModifier:!0}){const[i,a]=R.useState(!1),l=R.useRef(!1),o=R.useRef(new Set([])),[c,f]=R.useMemo(()=>{if(e!==null){const y=(Array.isArray(e)?e:[e]).filter(p=>typeof p=="string").map(p=>p.replace("+",`
693
- `).replace(`
694
-
695
- `,`
696
- +`).split(`
697
- `)),g=y.reduce((p,v)=>p.concat(...v),[]);return[y,g]}return[[],[]]},[e]);return R.useEffect(()=>{const h=(t==null?void 0:t.target)??MS,y=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const g=b=>{var w,C;if(l.current=b.ctrlKey||b.metaKey||b.shiftKey||b.altKey,(!l.current||l.current&&!y)&&VE(b))return!1;const _=AS(b.code,f);if(o.current.add(b[_]),kS(c,o.current,!1)){const M=((C=(w=b.composedPath)==null?void 0:w.call(b))==null?void 0:C[0])||b.target,E=(M==null?void 0:M.nodeName)==="BUTTON"||(M==null?void 0:M.nodeName)==="A";t.preventDefault!==!1&&(l.current||!E)&&b.preventDefault(),a(!0)}},p=b=>{const S=AS(b.code,f);kS(c,o.current,!0)?(a(!1),o.current.clear()):o.current.delete(b[S]),b.key==="Meta"&&o.current.clear(),l.current=!1},v=()=>{o.current.clear(),a(!1)};return h==null||h.addEventListener("keydown",g),h==null||h.addEventListener("keyup",p),window.addEventListener("blur",v),window.addEventListener("contextmenu",v),()=>{h==null||h.removeEventListener("keydown",g),h==null||h.removeEventListener("keyup",p),window.removeEventListener("blur",v),window.removeEventListener("contextmenu",v)}}},[e,a]),i}function kS(e,t,i){return e.filter(a=>i||a.length===t.size).some(a=>a.every(l=>t.has(l)))}function AS(e,t){return t.includes(e)?"code":"key"}const mz=()=>{const e=At();return R.useMemo(()=>({zoomIn:t=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1.2,t):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:i}=e.getState();return i?i.scaleBy(1/1.2,t):Promise.resolve(!1)},zoomTo:(t,i)=>{const{panZoom:a}=e.getState();return a?a.scaleTo(t,i):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,i)=>{const{transform:[a,l,o],panZoom:c}=e.getState();return c?(await c.setViewport({x:t.x??a,y:t.y??l,zoom:t.zoom??o},i),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,i,a]=e.getState().transform;return{x:t,y:i,zoom:a}},setCenter:async(t,i,a)=>e.getState().setCenter(t,i,a),fitBounds:async(t,i)=>{const{width:a,height:l,minZoom:o,maxZoom:c,panZoom:f}=e.getState(),h=Fg(t,a,l,o,c,(i==null?void 0:i.padding)??.1);return f?(await f.setViewport(h,{duration:i==null?void 0:i.duration,ease:i==null?void 0:i.ease,interpolate:i==null?void 0:i.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,i={})=>{const{transform:a,snapGrid:l,snapToGrid:o,domNode:c}=e.getState();if(!c)return t;const{x:f,y:h}=c.getBoundingClientRect(),y={x:t.x-f,y:t.y-h},g=i.snapGrid??l,p=i.snapToGrid??o;return Ou(y,a,p,g)},flowToScreenPosition:t=>{const{transform:i,domNode:a}=e.getState();if(!a)return t;const{x:l,y:o}=a.getBoundingClientRect(),c=Jf(t,i);return{x:c.x+l,y:c.y+o}}}),[])};function uC(e,t){const i=[],a=new Map,l=[];for(const o of e)if(o.type==="add"){l.push(o);continue}else if(o.type==="remove"||o.type==="replace")a.set(o.id,[o]);else{const c=a.get(o.id);c?c.push(o):a.set(o.id,[o])}for(const o of t){const c=a.get(o.id);if(!c){i.push(o);continue}if(c[0].type==="remove")continue;if(c[0].type==="replace"){i.push({...c[0].item});continue}const f={...o};for(const h of c)pz(h,f);i.push(f)}return l.length&&l.forEach(o=>{o.index!==void 0?i.splice(o.index,0,{...o.item}):i.push({...o.item})}),i}function pz(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function gz(e,t){return uC(e,t)}function vz(e,t){return uC(e,t)}function Za(e,t){return{id:e,type:"select",selected:t}}function ml(e,t=new Set,i=!1){const a=[];for(const[l,o]of e){const c=t.has(l);!(o.selected===void 0&&!c)&&o.selected!==c&&(i&&(o.selected=c),a.push(Za(o.id,c)))}return a}function TS({items:e=[],lookup:t}){var l;const i=[],a=new Map(e.map(o=>[o.id,o]));for(const[o,c]of e.entries()){const f=t.get(c.id),h=((l=f==null?void 0:f.internals)==null?void 0:l.userNode)??f;h!==void 0&&h!==c&&i.push({id:c.id,item:c,type:"replace"}),h===void 0&&i.push({item:c,type:"add",index:o})}for(const[o]of t)a.get(o)===void 0&&i.push({id:o,type:"remove"});return i}function RS(e){return{id:e.id,type:"remove"}}const NS=e=>FO(e),bz=e=>zE(e);function cC(e){return R.forwardRef(e)}function OS(e){const[t,i]=R.useState(BigInt(0)),[a]=R.useState(()=>_z(()=>i(l=>l+BigInt(1))));return hg(()=>{const l=a.get();l.length&&(e(l),a.reset())},[t]),a}function _z(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:i=>{t.push(i),e()}}}const fC=R.createContext(null);function Sz({children:e}){const t=At(),i=R.useCallback(f=>{const{nodes:h=[],setNodes:y,hasDefaultNodes:g,onNodesChange:p,nodeLookup:v,fitViewQueued:b,onNodesChangeMiddlewareMap:S}=t.getState();let _=h;for(const C of f)_=typeof C=="function"?C(_):C;let w=TS({items:_,lookup:v});for(const C of S.values())w=C(w);g&&y(_),w.length>0?p==null||p(w):b&&window.requestAnimationFrame(()=>{const{fitViewQueued:C,nodes:M,setNodes:E}=t.getState();C&&E(M)})},[]),a=OS(i),l=R.useCallback(f=>{const{edges:h=[],setEdges:y,hasDefaultEdges:g,onEdgesChange:p,edgeLookup:v}=t.getState();let b=h;for(const S of f)b=typeof S=="function"?S(b):S;g?y(b):p&&p(TS({items:b,lookup:v}))},[]),o=OS(l),c=R.useMemo(()=>({nodeQueue:a,edgeQueue:o}),[]);return se.jsx(fC.Provider,{value:c,children:e})}function xz(){const e=R.useContext(fC);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const wz=e=>!!e.panZoom;function Wg(){const e=mz(),t=At(),i=xz(),a=it(wz),l=R.useMemo(()=>{const o=p=>t.getState().nodeLookup.get(p),c=p=>{i.nodeQueue.push(p)},f=p=>{i.edgeQueue.push(p)},h=p=>{var C,M;const{nodeLookup:v,nodeOrigin:b}=t.getState(),S=NS(p)?p:v.get(p.id),_=S.parentId?HE(S.position,S.measured,S.parentId,v,b):S.position,w={...S,position:_,width:((C=S.measured)==null?void 0:C.width)??S.width,height:((M=S.measured)==null?void 0:M.height)??S.height};return Hl(w)},y=(p,v,b={replace:!1})=>{c(S=>S.map(_=>{if(_.id===p){const w=typeof v=="function"?v(_):v;return b.replace&&NS(w)?w:{..._,...w}}return _}))},g=(p,v,b={replace:!1})=>{f(S=>S.map(_=>{if(_.id===p){const w=typeof v=="function"?v(_):v;return b.replace&&bz(w)?w:{..._,...w}}return _}))};return{getNodes:()=>t.getState().nodes.map(p=>({...p})),getNode:p=>{var v;return(v=o(p))==null?void 0:v.internals.userNode},getInternalNode:o,getEdges:()=>{const{edges:p=[]}=t.getState();return p.map(v=>({...v}))},getEdge:p=>t.getState().edgeLookup.get(p),setNodes:c,setEdges:f,addNodes:p=>{const v=Array.isArray(p)?p:[p];i.nodeQueue.push(b=>[...b,...v])},addEdges:p=>{const v=Array.isArray(p)?p:[p];i.edgeQueue.push(b=>[...b,...v])},toObject:()=>{const{nodes:p=[],edges:v=[],transform:b}=t.getState(),[S,_,w]=b;return{nodes:p.map(C=>({...C})),edges:v.map(C=>({...C})),viewport:{x:S,y:_,zoom:w}}},deleteElements:async({nodes:p=[],edges:v=[]})=>{const{nodes:b,edges:S,onNodesDelete:_,onEdgesDelete:w,triggerNodeChanges:C,triggerEdgeChanges:M,onDelete:E,onBeforeDelete:k}=t.getState(),{nodes:z,edges:N}=await KO({nodesToRemove:p,edgesToRemove:v,nodes:b,edges:S,onBeforeDelete:k}),D=N.length>0,T=z.length>0;if(D){const L=N.map(RS);w==null||w(N),M(L)}if(T){const L=z.map(RS);_==null||_(z),C(L)}return(T||D)&&(E==null||E({nodes:z,edges:N})),{deletedNodes:z,deletedEdges:N}},getIntersectingNodes:(p,v=!0,b)=>{const S=lS(p),_=S?p:h(p),w=b!==void 0;return _?(b||t.getState().nodes).filter(C=>{const M=t.getState().nodeLookup.get(C.id);if(M&&!S&&(C.id===p.id||!M.internals.positionAbsolute))return!1;const E=Hl(w?C:M),k=pu(E,_);return v&&k>0||k>=E.width*E.height||k>=_.width*_.height}):[]},isNodeIntersecting:(p,v,b=!0)=>{const _=lS(p)?p:h(p);if(!_)return!1;const w=pu(_,v);return b&&w>0||w>=v.width*v.height||w>=_.width*_.height},updateNode:y,updateNodeData:(p,v,b={replace:!1})=>{y(p,S=>{const _=typeof v=="function"?v(S):v;return b.replace?{...S,data:_}:{...S,data:{...S.data,..._}}},b)},updateEdge:g,updateEdgeData:(p,v,b={replace:!1})=>{g(p,S=>{const _=typeof v=="function"?v(S):v;return b.replace?{...S,data:_}:{...S,data:{...S.data,..._}}},b)},getNodesBounds:p=>{const{nodeLookup:v,nodeOrigin:b}=t.getState();return ZO(p,{nodeLookup:v,nodeOrigin:b})},getHandleConnections:({type:p,id:v,nodeId:b})=>{var S;return Array.from(((S=t.getState().connectionLookup.get(`${b}-${p}${v?`-${v}`:""}`))==null?void 0:S.values())??[])},getNodeConnections:({type:p,handleId:v,nodeId:b})=>{var S;return Array.from(((S=t.getState().connectionLookup.get(`${b}${p?v?`-${p}-${v}`:`-${p}`:""}`))==null?void 0:S.values())??[])},fitView:async p=>{const v=t.getState().fitViewResolver??t8();return t.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:v}),i.nodeQueue.push(b=>[...b]),v.promise}}},[]);return R.useMemo(()=>({...l,...e,viewportInitialized:a}),[a])}const zS=e=>e.selected,Ez=typeof window<"u"?window:void 0;function Cz({deleteKeyCode:e,multiSelectionKeyCode:t}){const i=At(),{deleteElements:a}=Wg(),l=vu(e,{actInsideInputWithModifier:!1}),o=vu(t,{target:Ez});R.useEffect(()=>{if(l){const{edges:c,nodes:f}=i.getState();a({nodes:f.filter(zS),edges:c.filter(zS)}),i.setState({nodesSelectionActive:!1})}},[l]),R.useEffect(()=>{i.setState({multiSelectionActive:o})},[o])}function Mz(e){const t=At();R.useEffect(()=>{const i=()=>{var l,o,c,f;if(!e.current||!(((o=(l=e.current).checkVisibility)==null?void 0:o.call(l))??!0))return!1;const a=Zg(e.current);(a.height===0||a.width===0)&&((f=(c=t.getState()).onError)==null||f.call(c,"004",Hr.error004())),t.setState({width:a.width||500,height:a.height||500})};if(e.current){i(),window.addEventListener("resize",i);const a=new ResizeObserver(()=>i());return a.observe(e.current),()=>{window.removeEventListener("resize",i),a&&e.current&&a.unobserve(e.current)}}},[])}const Ed={position:"absolute",width:"100%",height:"100%",top:0,left:0},kz=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function Az({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:i=!0,panOnScroll:a=!1,panOnScrollSpeed:l=.5,panOnScrollMode:o=ls.Free,zoomOnDoubleClick:c=!0,panOnDrag:f=!0,defaultViewport:h,translateExtent:y,minZoom:g,maxZoom:p,zoomActivationKeyCode:v,preventScrolling:b=!0,children:S,noWheelClassName:_,noPanClassName:w,onViewportChange:C,isControlledViewport:M,paneClickDistance:E,selectionOnDrag:k}){const z=At(),N=R.useRef(null),{userSelectionActive:D,lib:T,connectionInProgress:L}=it(kz,kt),Q=vu(v),j=R.useRef();Mz(N);const B=R.useCallback($=>{C==null||C({x:$[0],y:$[1],zoom:$[2]}),M||z.setState({transform:$})},[C,M]);return R.useEffect(()=>{if(N.current){j.current=U8({domNode:N.current,minZoom:g,maxZoom:p,translateExtent:y,viewport:h,onDraggingChange:U=>z.setState(Y=>Y.paneDragging===U?Y:{paneDragging:U}),onPanZoomStart:(U,Y)=>{const{onViewportChangeStart:Z,onMoveStart:K}=z.getState();K==null||K(U,Y),Z==null||Z(Y)},onPanZoom:(U,Y)=>{const{onViewportChange:Z,onMove:K}=z.getState();K==null||K(U,Y),Z==null||Z(Y)},onPanZoomEnd:(U,Y)=>{const{onViewportChangeEnd:Z,onMoveEnd:K}=z.getState();K==null||K(U,Y),Z==null||Z(Y)}});const{x:$,y:G,zoom:re}=j.current.getViewport();return z.setState({panZoom:j.current,transform:[$,G,re],domNode:N.current.closest(".react-flow")}),()=>{var U;(U=j.current)==null||U.destroy()}}},[]),R.useEffect(()=>{var $;($=j.current)==null||$.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:i,panOnScroll:a,panOnScrollSpeed:l,panOnScrollMode:o,zoomOnDoubleClick:c,panOnDrag:f,zoomActivationKeyPressed:Q,preventScrolling:b,noPanClassName:w,userSelectionActive:D,noWheelClassName:_,lib:T,onTransformChange:B,connectionInProgress:L,selectionOnDrag:k,paneClickDistance:E})},[e,t,i,a,l,o,c,f,Q,b,w,D,_,T,B,L,k,E]),se.jsx("div",{className:"react-flow__renderer",ref:N,style:Ed,children:S})}const Tz=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Rz(){const{userSelectionActive:e,userSelectionRect:t}=it(Tz,kt);return e&&t?se.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const Xm=(e,t)=>i=>{i.target===t.current&&(e==null||e(i))},Nz=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function Oz({isSelecting:e,selectionKeyPressed:t,selectionMode:i=mu.Full,panOnDrag:a,paneClickDistance:l,selectionOnDrag:o,onSelectionStart:c,onSelectionEnd:f,onPaneClick:h,onPaneContextMenu:y,onPaneScroll:g,onPaneMouseEnter:p,onPaneMouseMove:v,onPaneMouseLeave:b,children:S}){const _=At(),{userSelectionActive:w,elementsSelectable:C,dragging:M,connectionInProgress:E}=it(Nz,kt),k=C&&(e||w),z=R.useRef(null),N=R.useRef(),D=R.useRef(new Set),T=R.useRef(new Set),L=R.useRef(!1),Q=Z=>{if(L.current||E){L.current=!1;return}h==null||h(Z),_.getState().resetSelectedElements(),_.setState({nodesSelectionActive:!1})},j=Z=>{if(Array.isArray(a)&&(a!=null&&a.includes(2))){Z.preventDefault();return}y==null||y(Z)},B=g?Z=>g(Z):void 0,$=Z=>{L.current&&(Z.stopPropagation(),L.current=!1)},G=Z=>{var de,me;const{domNode:K}=_.getState();if(N.current=K==null?void 0:K.getBoundingClientRect(),!N.current)return;const J=Z.target===z.current;if(!J&&!!Z.target.closest(".nokey")||!e||!(o&&J||t)||Z.button!==0||!Z.isPrimary)return;(me=(de=Z.target)==null?void 0:de.setPointerCapture)==null||me.call(de,Z.pointerId),L.current=!1;const{x:ae,y:ue}=xr(Z.nativeEvent,N.current);_.setState({userSelectionRect:{width:0,height:0,startX:ae,startY:ue,x:ae,y:ue}}),J||(Z.stopPropagation(),Z.preventDefault())},re=Z=>{const{userSelectionRect:K,transform:J,nodeLookup:O,edgeLookup:P,connectionLookup:ae,triggerNodeChanges:ue,triggerEdgeChanges:de,defaultEdgeOptions:me,resetSelectedElements:be}=_.getState();if(!N.current||!K)return;const{x:ye,y:he}=xr(Z.nativeEvent,N.current),{startX:Ue,startY:De}=K;if(!L.current){const Ge=t?0:l;if(Math.hypot(ye-Ue,he-De)<=Ge)return;be(),c==null||c(Z)}L.current=!0;const Re={startX:Ue,startY:De,x:ye<Ue?ye:Ue,y:he<De?he:De,width:Math.abs(ye-Ue),height:Math.abs(he-De)},ze=D.current,qe=T.current;D.current=new Set(Yg(O,Re,J,i===mu.Partial,!0).map(Ge=>Ge.id)),T.current=new Set;const ut=(me==null?void 0:me.selectable)??!0;for(const Ge of D.current){const Dt=ae.get(Ge);if(Dt)for(const{edgeId:Dn}of Dt.values()){const yn=P.get(Dn);yn&&(yn.selectable??ut)&&T.current.add(Dn)}}if(!oS(ze,D.current)){const Ge=ml(O,D.current,!0);ue(Ge)}if(!oS(qe,T.current)){const Ge=ml(P,T.current);de(Ge)}_.setState({userSelectionRect:Re,userSelectionActive:!0,nodesSelectionActive:!1})},U=Z=>{var K,J;Z.button===0&&((J=(K=Z.target)==null?void 0:K.releasePointerCapture)==null||J.call(K,Z.pointerId),!w&&Z.target===z.current&&_.getState().userSelectionRect&&(Q==null||Q(Z)),_.setState({userSelectionActive:!1,userSelectionRect:null}),L.current&&(f==null||f(Z),_.setState({nodesSelectionActive:D.current.size>0})))},Y=a===!0||Array.isArray(a)&&a.includes(0);return se.jsxs("div",{className:Gt(["react-flow__pane",{draggable:Y,dragging:M,selection:e}]),onClick:k?void 0:Xm(Q,z),onContextMenu:Xm(j,z),onWheel:Xm(B,z),onPointerEnter:k?void 0:p,onPointerMove:k?re:v,onPointerUp:k?U:void 0,onPointerDownCapture:k?G:void 0,onClickCapture:k?$:void 0,onPointerLeave:b,ref:z,style:Ed,children:[S,se.jsx(Rz,{})]})}function yg({id:e,store:t,unselect:i=!1,nodeRef:a}){const{addSelectedNodes:l,unselectNodesAndEdges:o,multiSelectionActive:c,nodeLookup:f,onError:h}=t.getState(),y=f.get(e);if(!y){h==null||h("012",Hr.error012(e));return}t.setState({nodesSelectionActive:!1}),y.selected?(i||y.selected&&c)&&(o({nodes:[y],edges:[]}),requestAnimationFrame(()=>{var g;return(g=a==null?void 0:a.current)==null?void 0:g.blur()})):l([e])}function dC({nodeRef:e,disabled:t=!1,noDragClassName:i,handleSelector:a,nodeId:l,isSelectable:o,nodeClickDistance:c}){const f=At(),[h,y]=R.useState(!1),g=R.useRef();return R.useEffect(()=>{g.current=E8({getStoreItems:()=>f.getState(),onNodeMouseDown:p=>{yg({id:p,store:f,nodeRef:e})},onDragStart:()=>{y(!0)},onDragStop:()=>{y(!1)}})},[]),R.useEffect(()=>{if(!(t||!e.current||!g.current))return g.current.update({noDragClassName:i,handleSelector:a,domNode:e.current,isSelectable:o,nodeId:l,nodeClickDistance:c}),()=>{var p;(p=g.current)==null||p.destroy()}},[i,a,t,o,e,l,c]),h}const zz=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function hC(){const e=At();return R.useCallback(i=>{const{nodeExtent:a,snapToGrid:l,snapGrid:o,nodesDraggable:c,onError:f,updateNodePositions:h,nodeLookup:y,nodeOrigin:g}=e.getState(),p=new Map,v=zz(c),b=l?o[0]:5,S=l?o[1]:5,_=i.direction.x*b*i.factor,w=i.direction.y*S*i.factor;for(const[,C]of y){if(!v(C))continue;let M={x:C.internals.positionAbsolute.x+_,y:C.internals.positionAbsolute.y+w};l&&(M=Nu(M,o));const{position:E,positionAbsolute:k}=DE({nodeId:C.id,nextPosition:M,nodeLookup:y,nodeExtent:a,nodeOrigin:g,onError:f});C.position=E,C.internals.positionAbsolute=k,p.set(C.id,C)}h(p)},[])}const e0=R.createContext(null),Dz=e0.Provider;e0.Consumer;const yC=()=>R.useContext(e0),Lz=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),Bz=(e,t,i)=>a=>{const{connectionClickStartHandle:l,connectionMode:o,connection:c}=a,{fromHandle:f,toHandle:h,isValid:y}=c,g=(h==null?void 0:h.nodeId)===e&&(h==null?void 0:h.id)===t&&(h==null?void 0:h.type)===i;return{connectingFrom:(f==null?void 0:f.nodeId)===e&&(f==null?void 0:f.id)===t&&(f==null?void 0:f.type)===i,connectingTo:g,clickConnecting:(l==null?void 0:l.nodeId)===e&&(l==null?void 0:l.id)===t&&(l==null?void 0:l.type)===i,isPossibleEndHandle:o===jl.Strict?(f==null?void 0:f.type)!==i:e!==(f==null?void 0:f.nodeId)||t!==(f==null?void 0:f.id),connectionInProcess:!!f,clickConnectionInProcess:!!l,valid:g&&y}};function jz({type:e="source",position:t=je.Top,isValidConnection:i,isConnectable:a=!0,isConnectableStart:l=!0,isConnectableEnd:o=!0,id:c,onConnect:f,children:h,className:y,onMouseDown:g,onTouchStart:p,...v},b){var re,U;const S=c||null,_=e==="target",w=At(),C=yC(),{connectOnClick:M,noPanClassName:E,rfId:k}=it(Lz,kt),{connectingFrom:z,connectingTo:N,clickConnecting:D,isPossibleEndHandle:T,connectionInProcess:L,clickConnectionInProcess:Q,valid:j}=it(Bz(C,S,e),kt);C||(U=(re=w.getState()).onError)==null||U.call(re,"010",Hr.error010());const B=Y=>{const{defaultEdgeOptions:Z,onConnect:K,hasDefaultEdges:J}=w.getState(),O={...Z,...Y};if(J){const{edges:P,setEdges:ae}=w.getState();ae(o8(O,P))}K==null||K(O),f==null||f(O)},$=Y=>{if(!C)return;const Z=PE(Y.nativeEvent);if(l&&(Z&&Y.button===0||!Z)){const K=w.getState();dg.onPointerDown(Y.nativeEvent,{handleDomNode:Y.currentTarget,autoPanOnConnect:K.autoPanOnConnect,connectionMode:K.connectionMode,connectionRadius:K.connectionRadius,domNode:K.domNode,nodeLookup:K.nodeLookup,lib:K.lib,isTarget:_,handleId:S,nodeId:C,flowId:K.rfId,panBy:K.panBy,cancelConnection:K.cancelConnection,onConnectStart:K.onConnectStart,onConnectEnd:(...J)=>{var O,P;return(P=(O=w.getState()).onConnectEnd)==null?void 0:P.call(O,...J)},updateConnection:K.updateConnection,onConnect:B,isValidConnection:i||((...J)=>{var O,P;return((P=(O=w.getState()).isValidConnection)==null?void 0:P.call(O,...J))??!0}),getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:K.autoPanSpeed,dragThreshold:K.connectionDragThreshold})}Z?g==null||g(Y):p==null||p(Y)},G=Y=>{const{onClickConnectStart:Z,onClickConnectEnd:K,connectionClickStartHandle:J,connectionMode:O,isValidConnection:P,lib:ae,rfId:ue,nodeLookup:de,connection:me}=w.getState();if(!C||!J&&!l)return;if(!J){Z==null||Z(Y.nativeEvent,{nodeId:C,handleId:S,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:C,type:e,id:S}});return}const be=qE(Y.target),ye=i||P,{connection:he,isValid:Ue}=dg.isValid(Y.nativeEvent,{handle:{nodeId:C,id:S,type:e},connectionMode:O,fromNodeId:J.nodeId,fromHandleId:J.id||null,fromType:J.type,isValidConnection:ye,flowId:ue,doc:be,lib:ae,nodeLookup:de});Ue&&he&&B(he);const De=structuredClone(me);delete De.inProgress,De.toPosition=De.toHandle?De.toHandle.position:null,K==null||K(Y,De),w.setState({connectionClickStartHandle:null})};return se.jsx("div",{"data-handleid":S,"data-nodeid":C,"data-handlepos":t,"data-id":`${k}-${C}-${S}-${e}`,className:Gt(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",E,y,{source:!_,target:_,connectable:a,connectablestart:l,connectableend:o,clickconnecting:D,connectingfrom:z,connectingto:N,valid:j,connectionindicator:a&&(!L||T)&&(L||Q?o:l)}]),onMouseDown:$,onTouchStart:$,onClick:M?G:void 0,ref:b,...v,children:h})}const Wf=R.memo(cC(jz));function Uz({data:e,isConnectable:t,sourcePosition:i=je.Bottom}){return se.jsxs(se.Fragment,{children:[e==null?void 0:e.label,se.jsx(Wf,{type:"source",position:i,isConnectable:t})]})}function Hz({data:e,isConnectable:t,targetPosition:i=je.Top,sourcePosition:a=je.Bottom}){return se.jsxs(se.Fragment,{children:[se.jsx(Wf,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label,se.jsx(Wf,{type:"source",position:a,isConnectable:t})]})}function qz(){return null}function Vz({data:e,isConnectable:t,targetPosition:i=je.Top}){return se.jsxs(se.Fragment,{children:[se.jsx(Wf,{type:"target",position:i,isConnectable:t}),e==null?void 0:e.label]})}const ed={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},DS={input:Uz,default:Hz,output:Vz,group:qz};function Pz(e){var t,i,a,l;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((i=e.style)==null?void 0:i.height)}:{width:e.width??((a=e.style)==null?void 0:a.width),height:e.height??((l=e.style)==null?void 0:l.height)}}const Iz=e=>{const{width:t,height:i,x:a,y:l}=Ru(e.nodeLookup,{filter:o=>!!o.selected});return{width:Sr(t)?t:null,height:Sr(i)?i:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${a}px,${l}px)`}};function $z({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:i}){const a=At(),{width:l,height:o,transformString:c,userSelectionActive:f}=it(Iz,kt),h=hC(),y=R.useRef(null);R.useEffect(()=>{var b;i||(b=y.current)==null||b.focus({preventScroll:!0})},[i]);const g=!f&&l!==null&&o!==null;if(dC({nodeRef:y,disabled:!g}),!g)return null;const p=e?b=>{const S=a.getState().nodes.filter(_=>_.selected);e(b,S)}:void 0,v=b=>{Object.prototype.hasOwnProperty.call(ed,b.key)&&(b.preventDefault(),h({direction:ed[b.key],factor:b.shiftKey?4:1}))};return se.jsx("div",{className:Gt(["react-flow__nodesselection","react-flow__container",t]),style:{transform:c},children:se.jsx("div",{ref:y,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:i?void 0:-1,onKeyDown:i?void 0:v,style:{width:l,height:o}})})}const LS=typeof window<"u"?window:void 0,Yz=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function mC({children:e,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:l,onPaneContextMenu:o,onPaneScroll:c,paneClickDistance:f,deleteKeyCode:h,selectionKeyCode:y,selectionOnDrag:g,selectionMode:p,onSelectionStart:v,onSelectionEnd:b,multiSelectionKeyCode:S,panActivationKeyCode:_,zoomActivationKeyCode:w,elementsSelectable:C,zoomOnScroll:M,zoomOnPinch:E,panOnScroll:k,panOnScrollSpeed:z,panOnScrollMode:N,zoomOnDoubleClick:D,panOnDrag:T,defaultViewport:L,translateExtent:Q,minZoom:j,maxZoom:B,preventScrolling:$,onSelectionContextMenu:G,noWheelClassName:re,noPanClassName:U,disableKeyboardA11y:Y,onViewportChange:Z,isControlledViewport:K}){const{nodesSelectionActive:J,userSelectionActive:O}=it(Yz,kt),P=vu(y,{target:LS}),ae=vu(_,{target:LS}),ue=ae||T,de=ae||k,me=g&&ue!==!0,be=P||O||me;return Cz({deleteKeyCode:h,multiSelectionKeyCode:S}),se.jsx(Az,{onPaneContextMenu:o,elementsSelectable:C,zoomOnScroll:M,zoomOnPinch:E,panOnScroll:de,panOnScrollSpeed:z,panOnScrollMode:N,zoomOnDoubleClick:D,panOnDrag:!P&&ue,defaultViewport:L,translateExtent:Q,minZoom:j,maxZoom:B,zoomActivationKeyCode:w,preventScrolling:$,noWheelClassName:re,noPanClassName:U,onViewportChange:Z,isControlledViewport:K,paneClickDistance:f,selectionOnDrag:me,children:se.jsxs(Oz,{onSelectionStart:v,onSelectionEnd:b,onPaneClick:t,onPaneMouseEnter:i,onPaneMouseMove:a,onPaneMouseLeave:l,onPaneContextMenu:o,onPaneScroll:c,panOnDrag:ue,isSelecting:!!be,selectionMode:p,selectionKeyPressed:P,paneClickDistance:f,selectionOnDrag:me,children:[e,J&&se.jsx($z,{onSelectionContextMenu:G,noPanClassName:U,disableKeyboardA11y:Y})]})})}mC.displayName="FlowRenderer";const Fz=R.memo(mC),Zz=e=>t=>e?Yg(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(i=>i.id):Array.from(t.nodeLookup.keys());function Gz(e){return it(R.useCallback(Zz(e),[e]),kt)}const Qz=e=>e.updateNodeInternals;function Xz(){const e=it(Qz),[t]=R.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(i=>{const a=new Map;i.forEach(l=>{const o=l.target.getAttribute("data-id");a.set(o,{id:o,nodeElement:l.target,force:!0})}),e(a)}));return R.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function Kz({node:e,nodeType:t,hasDimensions:i,resizeObserver:a}){const l=At(),o=R.useRef(null),c=R.useRef(null),f=R.useRef(e.sourcePosition),h=R.useRef(e.targetPosition),y=R.useRef(t),g=i&&!!e.internals.handleBounds;return R.useEffect(()=>{o.current&&!e.hidden&&(!g||c.current!==o.current)&&(c.current&&(a==null||a.unobserve(c.current)),a==null||a.observe(o.current),c.current=o.current)},[g,e.hidden]),R.useEffect(()=>()=>{c.current&&(a==null||a.unobserve(c.current),c.current=null)},[]),R.useEffect(()=>{if(o.current){const p=y.current!==t,v=f.current!==e.sourcePosition,b=h.current!==e.targetPosition;(p||v||b)&&(y.current=t,f.current=e.sourcePosition,h.current=e.targetPosition,l.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:o.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),o}function Jz({id:e,onClick:t,onMouseEnter:i,onMouseMove:a,onMouseLeave:l,onContextMenu:o,onDoubleClick:c,nodesDraggable:f,elementsSelectable:h,nodesConnectable:y,nodesFocusable:g,resizeObserver:p,noDragClassName:v,noPanClassName:b,disableKeyboardA11y:S,rfId:_,nodeTypes:w,nodeClickDistance:C,onError:M}){const{node:E,internals:k,isParent:z}=it(ye=>{const he=ye.nodeLookup.get(e),Ue=ye.parentLookup.has(e);return{node:he,internals:he.internals,isParent:Ue}},kt);let N=E.type||"default",D=(w==null?void 0:w[N])||DS[N];D===void 0&&(M==null||M("003",Hr.error003(N)),N="default",D=(w==null?void 0:w.default)||DS.default);const T=!!(E.draggable||f&&typeof E.draggable>"u"),L=!!(E.selectable||h&&typeof E.selectable>"u"),Q=!!(E.connectable||y&&typeof E.connectable>"u"),j=!!(E.focusable||g&&typeof E.focusable>"u"),B=At(),$=UE(E),G=Kz({node:E,nodeType:N,hasDimensions:$,resizeObserver:p}),re=dC({nodeRef:G,disabled:E.hidden||!T,noDragClassName:v,handleSelector:E.dragHandle,nodeId:e,isSelectable:L,nodeClickDistance:C}),U=hC();if(E.hidden)return null;const Y=xi(E),Z=Pz(E),K=L||T||t||i||a||l,J=i?ye=>i(ye,{...k.userNode}):void 0,O=a?ye=>a(ye,{...k.userNode}):void 0,P=l?ye=>l(ye,{...k.userNode}):void 0,ae=o?ye=>o(ye,{...k.userNode}):void 0,ue=c?ye=>c(ye,{...k.userNode}):void 0,de=ye=>{const{selectNodesOnDrag:he,nodeDragThreshold:Ue}=B.getState();L&&(!he||!T||Ue>0)&&yg({id:e,store:B,nodeRef:G}),t&&t(ye,{...k.userNode})},me=ye=>{if(!(VE(ye.nativeEvent)||S)){if(TE.includes(ye.key)&&L){const he=ye.key==="Escape";yg({id:e,store:B,unselect:he,nodeRef:G})}else if(T&&E.selected&&Object.prototype.hasOwnProperty.call(ed,ye.key)){ye.preventDefault();const{ariaLabelConfig:he}=B.getState();B.setState({ariaLiveMessage:he["node.a11yDescription.ariaLiveMessage"]({direction:ye.key.replace("Arrow","").toLowerCase(),x:~~k.positionAbsolute.x,y:~~k.positionAbsolute.y})}),U({direction:ed[ye.key],factor:ye.shiftKey?4:1})}}},be=()=>{var qe;if(S||!((qe=G.current)!=null&&qe.matches(":focus-visible")))return;const{transform:ye,width:he,height:Ue,autoPanOnNodeFocus:De,setCenter:Re}=B.getState();if(!De)return;Yg(new Map([[e,E]]),{x:0,y:0,width:he,height:Ue},ye,!0).length>0||Re(E.position.x+Y.width/2,E.position.y+Y.height/2,{zoom:ye[2]})};return se.jsx("div",{className:Gt(["react-flow__node",`react-flow__node-${N}`,{[b]:T},E.className,{selected:E.selected,selectable:L,parent:z,draggable:T,dragging:re}]),ref:G,style:{zIndex:k.z,transform:`translate(${k.positionAbsolute.x}px,${k.positionAbsolute.y}px)`,pointerEvents:K?"all":"none",visibility:$?"visible":"hidden",...E.style,...Z},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:J,onMouseMove:O,onMouseLeave:P,onContextMenu:ae,onClick:de,onDoubleClick:ue,onKeyDown:j?me:void 0,tabIndex:j?0:void 0,onFocus:j?be:void 0,role:E.ariaRole??(j?"group":void 0),"aria-roledescription":"node","aria-describedby":S?void 0:`${sC}-${_}`,"aria-label":E.ariaLabel,...E.domAttributes,children:se.jsx(Dz,{value:e,children:se.jsx(D,{id:e,data:E.data,type:N,positionAbsoluteX:k.positionAbsolute.x,positionAbsoluteY:k.positionAbsolute.y,selected:E.selected??!1,selectable:L,draggable:T,deletable:E.deletable??!0,isConnectable:Q,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:re,dragHandle:E.dragHandle,zIndex:k.z,parentId:E.parentId,...Y})})})}var Wz=R.memo(Jz);const e9=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function pC(e){const{nodesDraggable:t,nodesConnectable:i,nodesFocusable:a,elementsSelectable:l,onError:o}=it(e9,kt),c=Gz(e.onlyRenderVisibleElements),f=Xz();return se.jsx("div",{className:"react-flow__nodes",style:Ed,children:c.map(h=>se.jsx(Wz,{id:h,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:f,nodesDraggable:t,nodesConnectable:i,nodesFocusable:a,elementsSelectable:l,nodeClickDistance:e.nodeClickDistance,onError:o},h))})}pC.displayName="NodeRenderer";const t9=R.memo(pC);function n9(e){return it(R.useCallback(i=>{if(!e)return i.edges.map(l=>l.id);const a=[];if(i.width&&i.height)for(const l of i.edges){const o=i.nodeLookup.get(l.source),c=i.nodeLookup.get(l.target);o&&c&&a8({sourceNode:o,targetNode:c,width:i.width,height:i.height,transform:i.transform})&&a.push(l.id)}return a},[e]),kt)}const r9=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e}};return se.jsx("polyline",{className:"arrow",style:i,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},i9=({color:e="none",strokeWidth:t=1})=>{const i={strokeWidth:t,...e&&{stroke:e,fill:e}};return se.jsx("polyline",{className:"arrowclosed",style:i,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},BS={[Xf.Arrow]:r9,[Xf.ArrowClosed]:i9};function a9(e){const t=At();return R.useMemo(()=>{var l,o;return Object.prototype.hasOwnProperty.call(BS,e)?BS[e]:((o=(l=t.getState()).onError)==null||o.call(l,"009",Hr.error009(e)),null)},[e])}const s9=({id:e,type:t,color:i,width:a=12.5,height:l=12.5,markerUnits:o="strokeWidth",strokeWidth:c,orient:f="auto-start-reverse"})=>{const h=a9(t);return h?se.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${a}`,markerHeight:`${l}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:f,refX:"0",refY:"0",children:se.jsx(h,{color:i,strokeWidth:c})}):null},gC=({defaultColor:e,rfId:t})=>{const i=it(o=>o.edges),a=it(o=>o.defaultEdgeOptions),l=R.useMemo(()=>h8(i,{id:t,defaultColor:e,defaultMarkerStart:a==null?void 0:a.markerStart,defaultMarkerEnd:a==null?void 0:a.markerEnd}),[i,a,t,e]);return l.length?se.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:se.jsx("defs",{children:l.map(o=>se.jsx(s9,{id:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient},o.id))})}):null};gC.displayName="MarkerDefinitions";var l9=R.memo(gC);function vC({x:e,y:t,label:i,labelStyle:a,labelShowBg:l=!0,labelBgStyle:o,labelBgPadding:c=[2,4],labelBgBorderRadius:f=2,children:h,className:y,...g}){const[p,v]=R.useState({x:1,y:0,width:0,height:0}),b=Gt(["react-flow__edge-textwrapper",y]),S=R.useRef(null);return R.useEffect(()=>{if(S.current){const _=S.current.getBBox();v({x:_.x,y:_.y,width:_.width,height:_.height})}},[i]),i?se.jsxs("g",{transform:`translate(${e-p.width/2} ${t-p.height/2})`,className:b,visibility:p.width?"visible":"hidden",...g,children:[l&&se.jsx("rect",{width:p.width+2*c[0],x:-c[0],y:-c[1],height:p.height+2*c[1],className:"react-flow__edge-textbg",style:o,rx:f,ry:f}),se.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:S,style:a,children:i}),h]}):null}vC.displayName="EdgeText";const o9=R.memo(vC);function Cd({path:e,labelX:t,labelY:i,label:a,labelStyle:l,labelShowBg:o,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:h,interactionWidth:y=20,...g}){return se.jsxs(se.Fragment,{children:[se.jsx("path",{...g,d:e,fill:"none",className:Gt(["react-flow__edge-path",g.className])}),y?se.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:y,className:"react-flow__edge-interaction"}):null,a&&Sr(t)&&Sr(i)?se.jsx(o9,{x:t,y:i,label:a,labelStyle:l,labelShowBg:o,labelBgStyle:c,labelBgPadding:f,labelBgBorderRadius:h}):null]})}function jS({pos:e,x1:t,y1:i,x2:a,y2:l}){return e===je.Left||e===je.Right?[.5*(t+a),i]:[t,.5*(i+l)]}function bC({sourceX:e,sourceY:t,sourcePosition:i=je.Bottom,targetX:a,targetY:l,targetPosition:o=je.Top}){const[c,f]=jS({pos:i,x1:e,y1:t,x2:a,y2:l}),[h,y]=jS({pos:o,x1:a,y1:l,x2:e,y2:t}),[g,p,v,b]=IE({sourceX:e,sourceY:t,targetX:a,targetY:l,sourceControlX:c,sourceControlY:f,targetControlX:h,targetControlY:y});return[`M${e},${t} C${c},${f} ${h},${y} ${a},${l}`,g,p,v,b]}function _C(e){return R.memo(({id:t,sourceX:i,sourceY:a,targetX:l,targetY:o,sourcePosition:c,targetPosition:f,label:h,labelStyle:y,labelShowBg:g,labelBgStyle:p,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:w,interactionWidth:C})=>{const[M,E,k]=bC({sourceX:i,sourceY:a,sourcePosition:c,targetX:l,targetY:o,targetPosition:f}),z=e.isInternal?void 0:t;return se.jsx(Cd,{id:z,path:M,labelX:E,labelY:k,label:h,labelStyle:y,labelShowBg:g,labelBgStyle:p,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:w,interactionWidth:C})})}const u9=_C({isInternal:!1}),SC=_C({isInternal:!0});u9.displayName="SimpleBezierEdge";SC.displayName="SimpleBezierEdgeInternal";function xC(e){return R.memo(({id:t,sourceX:i,sourceY:a,targetX:l,targetY:o,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:y,labelBgPadding:g,labelBgBorderRadius:p,style:v,sourcePosition:b=je.Bottom,targetPosition:S=je.Top,markerEnd:_,markerStart:w,pathOptions:C,interactionWidth:M})=>{const[E,k,z]=ug({sourceX:i,sourceY:a,sourcePosition:b,targetX:l,targetY:o,targetPosition:S,borderRadius:C==null?void 0:C.borderRadius,offset:C==null?void 0:C.offset,stepPosition:C==null?void 0:C.stepPosition}),N=e.isInternal?void 0:t;return se.jsx(Cd,{id:N,path:E,labelX:k,labelY:z,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:y,labelBgPadding:g,labelBgBorderRadius:p,style:v,markerEnd:_,markerStart:w,interactionWidth:M})})}const wC=xC({isInternal:!1}),EC=xC({isInternal:!0});wC.displayName="SmoothStepEdge";EC.displayName="SmoothStepEdgeInternal";function CC(e){return R.memo(({id:t,...i})=>{var l;const a=e.isInternal?void 0:t;return se.jsx(wC,{...i,id:a,pathOptions:R.useMemo(()=>{var o;return{borderRadius:0,offset:(o=i.pathOptions)==null?void 0:o.offset}},[(l=i.pathOptions)==null?void 0:l.offset])})})}const c9=CC({isInternal:!1}),MC=CC({isInternal:!0});c9.displayName="StepEdge";MC.displayName="StepEdgeInternal";function kC(e){return R.memo(({id:t,sourceX:i,sourceY:a,targetX:l,targetY:o,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:y,labelBgPadding:g,labelBgBorderRadius:p,style:v,markerEnd:b,markerStart:S,interactionWidth:_})=>{const[w,C,M]=FE({sourceX:i,sourceY:a,targetX:l,targetY:o}),E=e.isInternal?void 0:t;return se.jsx(Cd,{id:E,path:w,labelX:C,labelY:M,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:y,labelBgPadding:g,labelBgBorderRadius:p,style:v,markerEnd:b,markerStart:S,interactionWidth:_})})}const f9=kC({isInternal:!1}),AC=kC({isInternal:!0});f9.displayName="StraightEdge";AC.displayName="StraightEdgeInternal";function TC(e){return R.memo(({id:t,sourceX:i,sourceY:a,targetX:l,targetY:o,sourcePosition:c=je.Bottom,targetPosition:f=je.Top,label:h,labelStyle:y,labelShowBg:g,labelBgStyle:p,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:w,pathOptions:C,interactionWidth:M})=>{const[E,k,z]=$E({sourceX:i,sourceY:a,sourcePosition:c,targetX:l,targetY:o,targetPosition:f,curvature:C==null?void 0:C.curvature}),N=e.isInternal?void 0:t;return se.jsx(Cd,{id:N,path:E,labelX:k,labelY:z,label:h,labelStyle:y,labelShowBg:g,labelBgStyle:p,labelBgPadding:v,labelBgBorderRadius:b,style:S,markerEnd:_,markerStart:w,interactionWidth:M})})}const d9=TC({isInternal:!1}),RC=TC({isInternal:!0});d9.displayName="BezierEdge";RC.displayName="BezierEdgeInternal";const US={default:RC,straight:AC,step:MC,smoothstep:EC,simplebezier:SC},HS={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},h9=(e,t,i)=>i===je.Left?e-t:i===je.Right?e+t:e,y9=(e,t,i)=>i===je.Top?e-t:i===je.Bottom?e+t:e,qS="react-flow__edgeupdater";function VS({position:e,centerX:t,centerY:i,radius:a=10,onMouseDown:l,onMouseEnter:o,onMouseOut:c,type:f}){return se.jsx("circle",{onMouseDown:l,onMouseEnter:o,onMouseOut:c,className:Gt([qS,`${qS}-${f}`]),cx:h9(t,a,e),cy:y9(i,a,e),r:a,stroke:"transparent",fill:"transparent"})}function m9({isReconnectable:e,reconnectRadius:t,edge:i,sourceX:a,sourceY:l,targetX:o,targetY:c,sourcePosition:f,targetPosition:h,onReconnect:y,onReconnectStart:g,onReconnectEnd:p,setReconnecting:v,setUpdateHover:b}){const S=At(),_=(k,z)=>{if(k.button!==0)return;const{autoPanOnConnect:N,domNode:D,connectionMode:T,connectionRadius:L,lib:Q,onConnectStart:j,cancelConnection:B,nodeLookup:$,rfId:G,panBy:re,updateConnection:U}=S.getState(),Y=z.type==="target",Z=(O,P)=>{v(!1),p==null||p(O,i,z.type,P)},K=O=>y==null?void 0:y(i,O),J=(O,P)=>{v(!0),g==null||g(k,i,z.type),j==null||j(O,P)};dg.onPointerDown(k.nativeEvent,{autoPanOnConnect:N,connectionMode:T,connectionRadius:L,domNode:D,handleId:z.id,nodeId:z.nodeId,nodeLookup:$,isTarget:Y,edgeUpdaterType:z.type,lib:Q,flowId:G,cancelConnection:B,panBy:re,isValidConnection:(...O)=>{var P,ae;return((ae=(P=S.getState()).isValidConnection)==null?void 0:ae.call(P,...O))??!0},onConnect:K,onConnectStart:J,onConnectEnd:(...O)=>{var P,ae;return(ae=(P=S.getState()).onConnectEnd)==null?void 0:ae.call(P,...O)},onReconnectEnd:Z,updateConnection:U,getTransform:()=>S.getState().transform,getFromHandle:()=>S.getState().connection.fromHandle,dragThreshold:S.getState().connectionDragThreshold,handleDomNode:k.currentTarget})},w=k=>_(k,{nodeId:i.target,id:i.targetHandle??null,type:"target"}),C=k=>_(k,{nodeId:i.source,id:i.sourceHandle??null,type:"source"}),M=()=>b(!0),E=()=>b(!1);return se.jsxs(se.Fragment,{children:[(e===!0||e==="source")&&se.jsx(VS,{position:f,centerX:a,centerY:l,radius:t,onMouseDown:w,onMouseEnter:M,onMouseOut:E,type:"source"}),(e===!0||e==="target")&&se.jsx(VS,{position:h,centerX:o,centerY:c,radius:t,onMouseDown:C,onMouseEnter:M,onMouseOut:E,type:"target"})]})}function p9({id:e,edgesFocusable:t,edgesReconnectable:i,elementsSelectable:a,onClick:l,onDoubleClick:o,onContextMenu:c,onMouseEnter:f,onMouseMove:h,onMouseLeave:y,reconnectRadius:g,onReconnect:p,onReconnectStart:v,onReconnectEnd:b,rfId:S,edgeTypes:_,noPanClassName:w,onError:C,disableKeyboardA11y:M}){let E=it(Re=>Re.edgeLookup.get(e));const k=it(Re=>Re.defaultEdgeOptions);E=k?{...k,...E}:E;let z=E.type||"default",N=(_==null?void 0:_[z])||US[z];N===void 0&&(C==null||C("011",Hr.error011(z)),z="default",N=(_==null?void 0:_.default)||US.default);const D=!!(E.focusable||t&&typeof E.focusable>"u"),T=typeof p<"u"&&(E.reconnectable||i&&typeof E.reconnectable>"u"),L=!!(E.selectable||a&&typeof E.selectable>"u"),Q=R.useRef(null),[j,B]=R.useState(!1),[$,G]=R.useState(!1),re=At(),{zIndex:U,sourceX:Y,sourceY:Z,targetX:K,targetY:J,sourcePosition:O,targetPosition:P}=it(R.useCallback(Re=>{const ze=Re.nodeLookup.get(E.source),qe=Re.nodeLookup.get(E.target);if(!ze||!qe)return{zIndex:E.zIndex,...HS};const ut=d8({id:e,sourceNode:ze,targetNode:qe,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:Re.connectionMode,onError:C});return{zIndex:i8({selected:E.selected,zIndex:E.zIndex,sourceNode:ze,targetNode:qe,elevateOnSelect:Re.elevateEdgesOnSelect,zIndexMode:Re.zIndexMode}),...ut||HS}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),kt),ae=R.useMemo(()=>E.markerStart?`url('#${cg(E.markerStart,S)}')`:void 0,[E.markerStart,S]),ue=R.useMemo(()=>E.markerEnd?`url('#${cg(E.markerEnd,S)}')`:void 0,[E.markerEnd,S]);if(E.hidden||Y===null||Z===null||K===null||J===null)return null;const de=Re=>{var Ge;const{addSelectedEdges:ze,unselectNodesAndEdges:qe,multiSelectionActive:ut}=re.getState();L&&(re.setState({nodesSelectionActive:!1}),E.selected&&ut?(qe({nodes:[],edges:[E]}),(Ge=Q.current)==null||Ge.blur()):ze([e])),l&&l(Re,E)},me=o?Re=>{o(Re,{...E})}:void 0,be=c?Re=>{c(Re,{...E})}:void 0,ye=f?Re=>{f(Re,{...E})}:void 0,he=h?Re=>{h(Re,{...E})}:void 0,Ue=y?Re=>{y(Re,{...E})}:void 0,De=Re=>{var ze;if(!M&&TE.includes(Re.key)&&L){const{unselectNodesAndEdges:qe,addSelectedEdges:ut}=re.getState();Re.key==="Escape"?((ze=Q.current)==null||ze.blur(),qe({edges:[E]})):ut([e])}};return se.jsx("svg",{style:{zIndex:U},children:se.jsxs("g",{className:Gt(["react-flow__edge",`react-flow__edge-${z}`,E.className,w,{selected:E.selected,animated:E.animated,inactive:!L&&!l,updating:j,selectable:L}]),onClick:de,onDoubleClick:me,onContextMenu:be,onMouseEnter:ye,onMouseMove:he,onMouseLeave:Ue,onKeyDown:D?De:void 0,tabIndex:D?0:void 0,role:E.ariaRole??(D?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":E.ariaLabel===null?void 0:E.ariaLabel||`Edge from ${E.source} to ${E.target}`,"aria-describedby":D?`${lC}-${S}`:void 0,ref:Q,...E.domAttributes,children:[!$&&se.jsx(N,{id:e,source:E.source,target:E.target,type:E.type,selected:E.selected,animated:E.animated,selectable:L,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:Y,sourceY:Z,targetX:K,targetY:J,sourcePosition:O,targetPosition:P,data:E.data,style:E.style,sourceHandleId:E.sourceHandle,targetHandleId:E.targetHandle,markerStart:ae,markerEnd:ue,pathOptions:"pathOptions"in E?E.pathOptions:void 0,interactionWidth:E.interactionWidth}),T&&se.jsx(m9,{edge:E,isReconnectable:T,reconnectRadius:g,onReconnect:p,onReconnectStart:v,onReconnectEnd:b,sourceX:Y,sourceY:Z,targetX:K,targetY:J,sourcePosition:O,targetPosition:P,setUpdateHover:B,setReconnecting:G})]})})}var g9=R.memo(p9);const v9=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function NC({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:i,edgeTypes:a,noPanClassName:l,onReconnect:o,onEdgeContextMenu:c,onEdgeMouseEnter:f,onEdgeMouseMove:h,onEdgeMouseLeave:y,onEdgeClick:g,reconnectRadius:p,onEdgeDoubleClick:v,onReconnectStart:b,onReconnectEnd:S,disableKeyboardA11y:_}){const{edgesFocusable:w,edgesReconnectable:C,elementsSelectable:M,onError:E}=it(v9,kt),k=n9(t);return se.jsxs("div",{className:"react-flow__edges",children:[se.jsx(l9,{defaultColor:e,rfId:i}),k.map(z=>se.jsx(g9,{id:z,edgesFocusable:w,edgesReconnectable:C,elementsSelectable:M,noPanClassName:l,onReconnect:o,onContextMenu:c,onMouseEnter:f,onMouseMove:h,onMouseLeave:y,onClick:g,reconnectRadius:p,onDoubleClick:v,onReconnectStart:b,onReconnectEnd:S,rfId:i,onError:E,edgeTypes:a,disableKeyboardA11y:_},z))]})}NC.displayName="EdgeRenderer";const b9=R.memo(NC),_9=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function S9({children:e}){const t=it(_9);return se.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function x9(e){const t=Wg(),i=R.useRef(!1);R.useEffect(()=>{!i.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),i.current=!0)},[e,t.viewportInitialized])}const w9=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function E9(e){const t=it(w9),i=At();return R.useEffect(()=>{e&&(t==null||t(e),i.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function C9(e){return e.connection.inProgress?{...e.connection,to:Ou(e.connection.to,e.transform)}:{...e.connection}}function M9(e){return C9}function k9(e){const t=M9();return it(t,kt)}const A9=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function T9({containerStyle:e,style:t,type:i,component:a}){const{nodesConnectable:l,width:o,height:c,isValid:f,inProgress:h}=it(A9,kt);return!(o&&l&&h)?null:se.jsx("svg",{style:e,width:o,height:c,className:"react-flow__connectionline react-flow__container",children:se.jsx("g",{className:Gt(["react-flow__connection",OE(f)]),children:se.jsx(OC,{style:t,type:i,CustomComponent:a,isValid:f})})})}const OC=({style:e,type:t=sa.Bezier,CustomComponent:i,isValid:a})=>{const{inProgress:l,from:o,fromNode:c,fromHandle:f,fromPosition:h,to:y,toNode:g,toHandle:p,toPosition:v,pointer:b}=k9();if(!l)return;if(i)return se.jsx(i,{connectionLineType:t,connectionLineStyle:e,fromNode:c,fromHandle:f,fromX:o.x,fromY:o.y,toX:y.x,toY:y.y,fromPosition:h,toPosition:v,connectionStatus:OE(a),toNode:g,toHandle:p,pointer:b});let S="";const _={sourceX:o.x,sourceY:o.y,sourcePosition:h,targetX:y.x,targetY:y.y,targetPosition:v};switch(t){case sa.Bezier:[S]=$E(_);break;case sa.SimpleBezier:[S]=bC(_);break;case sa.Step:[S]=ug({..._,borderRadius:0});break;case sa.SmoothStep:[S]=ug(_);break;default:[S]=FE(_)}return se.jsx("path",{d:S,fill:"none",className:"react-flow__connection-path",style:e})};OC.displayName="ConnectionLine";const R9={};function PS(e=R9){R.useRef(e),At(),R.useEffect(()=>{},[e])}function N9(){At(),R.useRef(!1),R.useEffect(()=>{},[])}function zC({nodeTypes:e,edgeTypes:t,onInit:i,onNodeClick:a,onEdgeClick:l,onNodeDoubleClick:o,onEdgeDoubleClick:c,onNodeMouseEnter:f,onNodeMouseMove:h,onNodeMouseLeave:y,onNodeContextMenu:g,onSelectionContextMenu:p,onSelectionStart:v,onSelectionEnd:b,connectionLineType:S,connectionLineStyle:_,connectionLineComponent:w,connectionLineContainerStyle:C,selectionKeyCode:M,selectionOnDrag:E,selectionMode:k,multiSelectionKeyCode:z,panActivationKeyCode:N,zoomActivationKeyCode:D,deleteKeyCode:T,onlyRenderVisibleElements:L,elementsSelectable:Q,defaultViewport:j,translateExtent:B,minZoom:$,maxZoom:G,preventScrolling:re,defaultMarkerColor:U,zoomOnScroll:Y,zoomOnPinch:Z,panOnScroll:K,panOnScrollSpeed:J,panOnScrollMode:O,zoomOnDoubleClick:P,panOnDrag:ae,onPaneClick:ue,onPaneMouseEnter:de,onPaneMouseMove:me,onPaneMouseLeave:be,onPaneScroll:ye,onPaneContextMenu:he,paneClickDistance:Ue,nodeClickDistance:De,onEdgeContextMenu:Re,onEdgeMouseEnter:ze,onEdgeMouseMove:qe,onEdgeMouseLeave:ut,reconnectRadius:Ge,onReconnect:Dt,onReconnectStart:Dn,onReconnectEnd:yn,noDragClassName:Qn,noWheelClassName:Xn,noPanClassName:q,disableKeyboardA11y:X,nodeExtent:te,rfId:_e,viewport:pe,onViewportChange:ge}){return PS(e),PS(t),N9(),x9(i),E9(pe),se.jsx(Fz,{onPaneClick:ue,onPaneMouseEnter:de,onPaneMouseMove:me,onPaneMouseLeave:be,onPaneContextMenu:he,onPaneScroll:ye,paneClickDistance:Ue,deleteKeyCode:T,selectionKeyCode:M,selectionOnDrag:E,selectionMode:k,onSelectionStart:v,onSelectionEnd:b,multiSelectionKeyCode:z,panActivationKeyCode:N,zoomActivationKeyCode:D,elementsSelectable:Q,zoomOnScroll:Y,zoomOnPinch:Z,zoomOnDoubleClick:P,panOnScroll:K,panOnScrollSpeed:J,panOnScrollMode:O,panOnDrag:ae,defaultViewport:j,translateExtent:B,minZoom:$,maxZoom:G,onSelectionContextMenu:p,preventScrolling:re,noDragClassName:Qn,noWheelClassName:Xn,noPanClassName:q,disableKeyboardA11y:X,onViewportChange:ge,isControlledViewport:!!pe,children:se.jsxs(S9,{children:[se.jsx(b9,{edgeTypes:t,onEdgeClick:l,onEdgeDoubleClick:c,onReconnect:Dt,onReconnectStart:Dn,onReconnectEnd:yn,onlyRenderVisibleElements:L,onEdgeContextMenu:Re,onEdgeMouseEnter:ze,onEdgeMouseMove:qe,onEdgeMouseLeave:ut,reconnectRadius:Ge,defaultMarkerColor:U,noPanClassName:q,disableKeyboardA11y:X,rfId:_e}),se.jsx(T9,{style:_,type:S,component:w,containerStyle:C}),se.jsx("div",{className:"react-flow__edgelabel-renderer"}),se.jsx(t9,{nodeTypes:e,onNodeClick:a,onNodeDoubleClick:o,onNodeMouseEnter:f,onNodeMouseMove:h,onNodeMouseLeave:y,onNodeContextMenu:g,nodeClickDistance:De,onlyRenderVisibleElements:L,noPanClassName:q,noDragClassName:Qn,disableKeyboardA11y:X,nodeExtent:te,rfId:_e}),se.jsx("div",{className:"react-flow__viewport-portal"})]})})}zC.displayName="GraphView";const O9=R.memo(zC),IS=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:l,height:o,fitView:c,fitViewOptions:f,minZoom:h=.5,maxZoom:y=2,nodeOrigin:g,nodeExtent:p,zIndexMode:v="basic"}={})=>{const b=new Map,S=new Map,_=new Map,w=new Map,C=a??t??[],M=i??e??[],E=g??[0,0],k=p??yu;QE(_,w,C);const{nodesInitialized:z}=fg(M,b,S,{nodeOrigin:E,nodeExtent:k,zIndexMode:v});let N=[0,0,1];if(c&&l&&o){const D=Ru(b,{filter:j=>!!((j.width||j.initialWidth)&&(j.height||j.initialHeight))}),{x:T,y:L,zoom:Q}=Fg(D,l,o,h,y,(f==null?void 0:f.padding)??.1);N=[T,L,Q]}return{rfId:"1",width:l??0,height:o??0,transform:N,nodes:M,nodesInitialized:z,nodeLookup:b,parentLookup:S,edges:C,edgeLookup:w,connectionLookup:_,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:i!==void 0,hasDefaultEdges:a!==void 0,panZoom:null,minZoom:h,maxZoom:y,translateExtent:yu,nodeExtent:k,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:jl.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:E,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:c??!1,fitViewOptions:f,fitViewResolver:null,connection:{...NE},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:JO,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:RE,zIndexMode:v,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},z9=({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:l,height:o,fitView:c,fitViewOptions:f,minZoom:h,maxZoom:y,nodeOrigin:g,nodeExtent:p,zIndexMode:v})=>X8((b,S)=>{async function _(){const{nodeLookup:w,panZoom:C,fitViewOptions:M,fitViewResolver:E,width:k,height:z,minZoom:N,maxZoom:D}=S();C&&(await XO({nodes:w,width:k,height:z,panZoom:C,minZoom:N,maxZoom:D},M),E==null||E.resolve(!0),b({fitViewResolver:null}))}return{...IS({nodes:e,edges:t,width:l,height:o,fitView:c,fitViewOptions:f,minZoom:h,maxZoom:y,nodeOrigin:g,nodeExtent:p,defaultNodes:i,defaultEdges:a,zIndexMode:v}),setNodes:w=>{const{nodeLookup:C,parentLookup:M,nodeOrigin:E,elevateNodesOnSelect:k,fitViewQueued:z,zIndexMode:N,nodesSelectionActive:D}=S(),{nodesInitialized:T,hasSelectedNodes:L}=fg(w,C,M,{nodeOrigin:E,nodeExtent:p,elevateNodesOnSelect:k,checkEquality:!0,zIndexMode:N}),Q=D&&L;z&&T?(_(),b({nodes:w,nodesInitialized:T,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:Q})):b({nodes:w,nodesInitialized:T,nodesSelectionActive:Q})},setEdges:w=>{const{connectionLookup:C,edgeLookup:M}=S();QE(C,M,w),b({edges:w})},setDefaultNodesAndEdges:(w,C)=>{if(w){const{setNodes:M}=S();M(w),b({hasDefaultNodes:!0})}if(C){const{setEdges:M}=S();M(C),b({hasDefaultEdges:!0})}},updateNodeInternals:w=>{const{triggerNodeChanges:C,nodeLookup:M,parentLookup:E,domNode:k,nodeOrigin:z,nodeExtent:N,debug:D,fitViewQueued:T,zIndexMode:L}=S(),{changes:Q,updatedInternals:j}=_8(w,M,E,k,z,N,L);j&&(p8(M,E,{nodeOrigin:z,nodeExtent:N,zIndexMode:L}),T?(_(),b({fitViewQueued:!1,fitViewOptions:void 0})):b({}),(Q==null?void 0:Q.length)>0&&(D&&console.log("React Flow: trigger node changes",Q),C==null||C(Q)))},updateNodePositions:(w,C=!1)=>{const M=[];let E=[];const{nodeLookup:k,triggerNodeChanges:z,connection:N,updateConnection:D,onNodesChangeMiddlewareMap:T}=S();for(const[L,Q]of w){const j=k.get(L),B=!!(j!=null&&j.expandParent&&(j!=null&&j.parentId)&&(Q!=null&&Q.position)),$={id:L,type:"position",position:B?{x:Math.max(0,Q.position.x),y:Math.max(0,Q.position.y)}:Q.position,dragging:C};if(j&&N.inProgress&&N.fromNode.id===j.id){const G=gs(j,N.fromHandle,je.Left,!0);D({...N,from:G})}B&&j.parentId&&M.push({id:L,parentId:j.parentId,rect:{...Q.internals.positionAbsolute,width:Q.measured.width??0,height:Q.measured.height??0}}),E.push($)}if(M.length>0){const{parentLookup:L,nodeOrigin:Q}=S(),j=Jg(M,k,L,Q);E.push(...j)}for(const L of T.values())E=L(E);z(E)},triggerNodeChanges:w=>{const{onNodesChange:C,setNodes:M,nodes:E,hasDefaultNodes:k,debug:z}=S();if(w!=null&&w.length){if(k){const N=gz(w,E);M(N)}z&&console.log("React Flow: trigger node changes",w),C==null||C(w)}},triggerEdgeChanges:w=>{const{onEdgesChange:C,setEdges:M,edges:E,hasDefaultEdges:k,debug:z}=S();if(w!=null&&w.length){if(k){const N=vz(w,E);M(N)}z&&console.log("React Flow: trigger edge changes",w),C==null||C(w)}},addSelectedNodes:w=>{const{multiSelectionActive:C,edgeLookup:M,nodeLookup:E,triggerNodeChanges:k,triggerEdgeChanges:z}=S();if(C){const N=w.map(D=>Za(D,!0));k(N);return}k(ml(E,new Set([...w]),!0)),z(ml(M))},addSelectedEdges:w=>{const{multiSelectionActive:C,edgeLookup:M,nodeLookup:E,triggerNodeChanges:k,triggerEdgeChanges:z}=S();if(C){const N=w.map(D=>Za(D,!0));z(N);return}z(ml(M,new Set([...w]))),k(ml(E,new Set,!0))},unselectNodesAndEdges:({nodes:w,edges:C}={})=>{const{edges:M,nodes:E,nodeLookup:k,triggerNodeChanges:z,triggerEdgeChanges:N}=S(),D=w||E,T=C||M,L=[];for(const j of D){if(!j.selected)continue;const B=k.get(j.id);B&&(B.selected=!1),L.push(Za(j.id,!1))}const Q=[];for(const j of T)j.selected&&Q.push(Za(j.id,!1));z(L),N(Q)},setMinZoom:w=>{const{panZoom:C,maxZoom:M}=S();C==null||C.setScaleExtent([w,M]),b({minZoom:w})},setMaxZoom:w=>{const{panZoom:C,minZoom:M}=S();C==null||C.setScaleExtent([M,w]),b({maxZoom:w})},setTranslateExtent:w=>{var C;(C=S().panZoom)==null||C.setTranslateExtent(w),b({translateExtent:w})},resetSelectedElements:()=>{const{edges:w,nodes:C,triggerNodeChanges:M,triggerEdgeChanges:E,elementsSelectable:k}=S();if(!k)return;const z=C.reduce((D,T)=>T.selected?[...D,Za(T.id,!1)]:D,[]),N=w.reduce((D,T)=>T.selected?[...D,Za(T.id,!1)]:D,[]);M(z),E(N)},setNodeExtent:w=>{const{nodes:C,nodeLookup:M,parentLookup:E,nodeOrigin:k,elevateNodesOnSelect:z,nodeExtent:N,zIndexMode:D}=S();w[0][0]===N[0][0]&&w[0][1]===N[0][1]&&w[1][0]===N[1][0]&&w[1][1]===N[1][1]||(fg(C,M,E,{nodeOrigin:k,nodeExtent:w,elevateNodesOnSelect:z,checkEquality:!1,zIndexMode:D}),b({nodeExtent:w}))},panBy:w=>{const{transform:C,width:M,height:E,panZoom:k,translateExtent:z}=S();return S8({delta:w,panZoom:k,transform:C,translateExtent:z,width:M,height:E})},setCenter:async(w,C,M)=>{const{width:E,height:k,maxZoom:z,panZoom:N}=S();if(!N)return Promise.resolve(!1);const D=typeof(M==null?void 0:M.zoom)<"u"?M.zoom:z;return await N.setViewport({x:E/2-w*D,y:k/2-C*D,zoom:D},{duration:M==null?void 0:M.duration,ease:M==null?void 0:M.ease,interpolate:M==null?void 0:M.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{b({connection:{...NE}})},updateConnection:w=>{b({connection:w})},reset:()=>b({...IS()})}},Object.is);function D9({initialNodes:e,initialEdges:t,defaultNodes:i,defaultEdges:a,initialWidth:l,initialHeight:o,initialMinZoom:c,initialMaxZoom:f,initialFitViewOptions:h,fitView:y,nodeOrigin:g,nodeExtent:p,zIndexMode:v,children:b}){const[S]=R.useState(()=>z9({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,width:l,height:o,fitView:y,minZoom:c,maxZoom:f,fitViewOptions:h,nodeOrigin:g,nodeExtent:p,zIndexMode:v}));return se.jsx(K8,{value:S,children:se.jsx(Sz,{children:b})})}function L9({children:e,nodes:t,edges:i,defaultNodes:a,defaultEdges:l,width:o,height:c,fitView:f,fitViewOptions:h,minZoom:y,maxZoom:g,nodeOrigin:p,nodeExtent:v,zIndexMode:b}){return R.useContext(xd)?se.jsx(se.Fragment,{children:e}):se.jsx(D9,{initialNodes:t,initialEdges:i,defaultNodes:a,defaultEdges:l,initialWidth:o,initialHeight:c,fitView:f,initialFitViewOptions:h,initialMinZoom:y,initialMaxZoom:g,nodeOrigin:p,nodeExtent:v,zIndexMode:b,children:e})}const B9={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function j9({nodes:e,edges:t,defaultNodes:i,defaultEdges:a,className:l,nodeTypes:o,edgeTypes:c,onNodeClick:f,onEdgeClick:h,onInit:y,onMove:g,onMoveStart:p,onMoveEnd:v,onConnect:b,onConnectStart:S,onConnectEnd:_,onClickConnectStart:w,onClickConnectEnd:C,onNodeMouseEnter:M,onNodeMouseMove:E,onNodeMouseLeave:k,onNodeContextMenu:z,onNodeDoubleClick:N,onNodeDragStart:D,onNodeDrag:T,onNodeDragStop:L,onNodesDelete:Q,onEdgesDelete:j,onDelete:B,onSelectionChange:$,onSelectionDragStart:G,onSelectionDrag:re,onSelectionDragStop:U,onSelectionContextMenu:Y,onSelectionStart:Z,onSelectionEnd:K,onBeforeDelete:J,connectionMode:O,connectionLineType:P=sa.Bezier,connectionLineStyle:ae,connectionLineComponent:ue,connectionLineContainerStyle:de,deleteKeyCode:me="Backspace",selectionKeyCode:be="Shift",selectionOnDrag:ye=!1,selectionMode:he=mu.Full,panActivationKeyCode:Ue="Space",multiSelectionKeyCode:De=gu()?"Meta":"Control",zoomActivationKeyCode:Re=gu()?"Meta":"Control",snapToGrid:ze,snapGrid:qe,onlyRenderVisibleElements:ut=!1,selectNodesOnDrag:Ge,nodesDraggable:Dt,autoPanOnNodeFocus:Dn,nodesConnectable:yn,nodesFocusable:Qn,nodeOrigin:Xn=oC,edgesFocusable:q,edgesReconnectable:X,elementsSelectable:te=!0,defaultViewport:_e=cz,minZoom:pe=.5,maxZoom:ge=2,translateExtent:we=yu,preventScrolling:Ve=!0,nodeExtent:We,defaultMarkerColor:rn="#b1b1b7",zoomOnScroll:Sn=!0,zoomOnPinch:Rt=!0,panOnScroll:an=!1,panOnScrollSpeed:xn=.5,panOnScrollMode:Qt=ls.Free,zoomOnDoubleClick:Ql=!0,panOnDrag:Ss=!0,onPaneClick:Xl,onPaneMouseEnter:Vr,onPaneMouseMove:xs,onPaneMouseLeave:ws,onPaneScroll:Pr,onPaneContextMenu:Es,paneClickDistance:wa=1,nodeClickDistance:kd=0,children:Du,onReconnect:Kl,onReconnectStart:Ea,onReconnectEnd:Ad,onEdgeContextMenu:Lu,onEdgeDoubleClick:Bu,onEdgeMouseEnter:ju,onEdgeMouseMove:Jl,onEdgeMouseLeave:Wl,reconnectRadius:Uu=10,onNodesChange:Hu,onEdgesChange:Cr,noDragClassName:Xt="nodrag",noWheelClassName:fn="nowheel",noPanClassName:Ir="nopan",fitView:Cs,fitViewOptions:qu,connectOnClick:Td,attributionPosition:Vu,proOptions:Ca,defaultEdgeOptions:eo,elevateNodesOnSelect:wi=!0,elevateEdgesOnSelect:Ei=!1,disableKeyboardA11y:Ci=!1,autoPanOnConnect:Mi,autoPanOnNodeDrag:qt,autoPanSpeed:Pu,connectionRadius:Iu,isValidConnection:$r,onError:ki,style:Rd,id:to,nodeDragThreshold:$u,connectionDragThreshold:Nd,viewport:Ms,onViewportChange:ks,width:fr,height:wn,colorMode:Yu="light",debug:Od,onScroll:Ai,ariaLabelConfig:Fu,zIndexMode:Ma="basic",...zd},En){const ka=to||"1",Zu=yz(Yu),no=R.useCallback(Yr=>{Yr.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Ai==null||Ai(Yr)},[Ai]);return se.jsx("div",{"data-testid":"rf__wrapper",...zd,onScroll:no,style:{...Rd,...B9},ref:En,className:Gt(["react-flow",l,Zu]),id:to,role:"application",children:se.jsxs(L9,{nodes:e,edges:t,width:fr,height:wn,fitView:Cs,fitViewOptions:qu,minZoom:pe,maxZoom:ge,nodeOrigin:Xn,nodeExtent:We,zIndexMode:Ma,children:[se.jsx(hz,{nodes:e,edges:t,defaultNodes:i,defaultEdges:a,onConnect:b,onConnectStart:S,onConnectEnd:_,onClickConnectStart:w,onClickConnectEnd:C,nodesDraggable:Dt,autoPanOnNodeFocus:Dn,nodesConnectable:yn,nodesFocusable:Qn,edgesFocusable:q,edgesReconnectable:X,elementsSelectable:te,elevateNodesOnSelect:wi,elevateEdgesOnSelect:Ei,minZoom:pe,maxZoom:ge,nodeExtent:We,onNodesChange:Hu,onEdgesChange:Cr,snapToGrid:ze,snapGrid:qe,connectionMode:O,translateExtent:we,connectOnClick:Td,defaultEdgeOptions:eo,fitView:Cs,fitViewOptions:qu,onNodesDelete:Q,onEdgesDelete:j,onDelete:B,onNodeDragStart:D,onNodeDrag:T,onNodeDragStop:L,onSelectionDrag:re,onSelectionDragStart:G,onSelectionDragStop:U,onMove:g,onMoveStart:p,onMoveEnd:v,noPanClassName:Ir,nodeOrigin:Xn,rfId:ka,autoPanOnConnect:Mi,autoPanOnNodeDrag:qt,autoPanSpeed:Pu,onError:ki,connectionRadius:Iu,isValidConnection:$r,selectNodesOnDrag:Ge,nodeDragThreshold:$u,connectionDragThreshold:Nd,onBeforeDelete:J,debug:Od,ariaLabelConfig:Fu,zIndexMode:Ma}),se.jsx(O9,{onInit:y,onNodeClick:f,onEdgeClick:h,onNodeMouseEnter:M,onNodeMouseMove:E,onNodeMouseLeave:k,onNodeContextMenu:z,onNodeDoubleClick:N,nodeTypes:o,edgeTypes:c,connectionLineType:P,connectionLineStyle:ae,connectionLineComponent:ue,connectionLineContainerStyle:de,selectionKeyCode:be,selectionOnDrag:ye,selectionMode:he,deleteKeyCode:me,multiSelectionKeyCode:De,panActivationKeyCode:Ue,zoomActivationKeyCode:Re,onlyRenderVisibleElements:ut,defaultViewport:_e,translateExtent:we,minZoom:pe,maxZoom:ge,preventScrolling:Ve,zoomOnScroll:Sn,zoomOnPinch:Rt,zoomOnDoubleClick:Ql,panOnScroll:an,panOnScrollSpeed:xn,panOnScrollMode:Qt,panOnDrag:Ss,onPaneClick:Xl,onPaneMouseEnter:Vr,onPaneMouseMove:xs,onPaneMouseLeave:ws,onPaneScroll:Pr,onPaneContextMenu:Es,paneClickDistance:wa,nodeClickDistance:kd,onSelectionContextMenu:Y,onSelectionStart:Z,onSelectionEnd:K,onReconnect:Kl,onReconnectStart:Ea,onReconnectEnd:Ad,onEdgeContextMenu:Lu,onEdgeDoubleClick:Bu,onEdgeMouseEnter:ju,onEdgeMouseMove:Jl,onEdgeMouseLeave:Wl,reconnectRadius:Uu,defaultMarkerColor:rn,noDragClassName:Xt,noWheelClassName:fn,noPanClassName:Ir,rfId:ka,disableKeyboardA11y:Ci,nodeExtent:We,viewport:Ms,onViewportChange:ks}),se.jsx(uz,{onSelectionChange:$}),Du,se.jsx(iz,{proOptions:Ca,position:Vu}),se.jsx(rz,{rfId:ka,disableKeyboardA11y:Ci})]})})}var lj=cC(j9);function U9({dimensions:e,lineWidth:t,variant:i,className:a}){return se.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:Gt(["react-flow__background-pattern",i,a])})}function H9({radius:e,className:t}){return se.jsx("circle",{cx:e,cy:e,r:e,className:Gt(["react-flow__background-pattern","dots",t])})}var ba;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ba||(ba={}));const q9={[ba.Dots]:1,[ba.Lines]:1,[ba.Cross]:6},V9=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function DC({id:e,variant:t=ba.Dots,gap:i=20,size:a,lineWidth:l=1,offset:o=0,color:c,bgColor:f,style:h,className:y,patternClassName:g}){const p=R.useRef(null),{transform:v,patternId:b}=it(V9,kt),S=a||q9[t],_=t===ba.Dots,w=t===ba.Cross,C=Array.isArray(i)?i:[i,i],M=[C[0]*v[2]||1,C[1]*v[2]||1],E=S*v[2],k=Array.isArray(o)?o:[o,o],z=w?[E,E]:M,N=[k[0]*v[2]||1+z[0]/2,k[1]*v[2]||1+z[1]/2],D=`${b}${e||""}`;return se.jsxs("svg",{className:Gt(["react-flow__background",y]),style:{...h,...Ed,"--xy-background-color-props":f,"--xy-background-pattern-color-props":c},ref:p,"data-testid":"rf__background",children:[se.jsx("pattern",{id:D,x:v[0]%M[0],y:v[1]%M[1],width:M[0],height:M[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${N[0]},-${N[1]})`,children:_?se.jsx(H9,{radius:E/2,className:g}):se.jsx(U9,{dimensions:z,lineWidth:l,variant:t,className:g})}),se.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${D})`})]})}DC.displayName="Background";const oj=R.memo(DC);function P9(){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:se.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function I9(){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:se.jsx("path",{d:"M0 0h32v4.2H0z"})})}function $9(){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:se.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function Y9(){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:se.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function F9(){return se.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:se.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function bf({children:e,className:t,...i}){return se.jsx("button",{type:"button",className:Gt(["react-flow__controls-button",t]),...i,children:e})}const Z9=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function LC({style:e,showZoom:t=!0,showFitView:i=!0,showInteractive:a=!0,fitViewOptions:l,onZoomIn:o,onZoomOut:c,onFitView:f,onInteractiveChange:h,className:y,children:g,position:p="bottom-left",orientation:v="vertical","aria-label":b}){const S=At(),{isInteractive:_,minZoomReached:w,maxZoomReached:C,ariaLabelConfig:M}=it(Z9,kt),{zoomIn:E,zoomOut:k,fitView:z}=Wg(),N=()=>{E(),o==null||o()},D=()=>{k(),c==null||c()},T=()=>{z(l),f==null||f()},L=()=>{S.setState({nodesDraggable:!_,nodesConnectable:!_,elementsSelectable:!_}),h==null||h(!_)},Q=v==="horizontal"?"horizontal":"vertical";return se.jsxs(wd,{className:Gt(["react-flow__controls",Q,y]),position:p,style:e,"data-testid":"rf__controls","aria-label":b??M["controls.ariaLabel"],children:[t&&se.jsxs(se.Fragment,{children:[se.jsx(bf,{onClick:N,className:"react-flow__controls-zoomin",title:M["controls.zoomIn.ariaLabel"],"aria-label":M["controls.zoomIn.ariaLabel"],disabled:C,children:se.jsx(P9,{})}),se.jsx(bf,{onClick:D,className:"react-flow__controls-zoomout",title:M["controls.zoomOut.ariaLabel"],"aria-label":M["controls.zoomOut.ariaLabel"],disabled:w,children:se.jsx(I9,{})})]}),i&&se.jsx(bf,{className:"react-flow__controls-fitview",onClick:T,title:M["controls.fitView.ariaLabel"],"aria-label":M["controls.fitView.ariaLabel"],children:se.jsx($9,{})}),a&&se.jsx(bf,{className:"react-flow__controls-interactive",onClick:L,title:M["controls.interactive.ariaLabel"],"aria-label":M["controls.interactive.ariaLabel"],children:_?se.jsx(F9,{}):se.jsx(Y9,{})}),g]})}LC.displayName="Controls";const uj=R.memo(LC);function G9({id:e,x:t,y:i,width:a,height:l,style:o,color:c,strokeColor:f,strokeWidth:h,className:y,borderRadius:g,shapeRendering:p,selected:v,onClick:b}){const{background:S,backgroundColor:_}=o||{},w=c||S||_;return se.jsx("rect",{className:Gt(["react-flow__minimap-node",{selected:v},y]),x:t,y:i,rx:g,ry:g,width:a,height:l,style:{fill:w,stroke:f,strokeWidth:h},shapeRendering:p,onClick:b?C=>b(C,e):void 0})}const Q9=R.memo(G9),X9=e=>e.nodes.map(t=>t.id),Km=e=>e instanceof Function?e:()=>e;function K9({nodeStrokeColor:e,nodeColor:t,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:l,nodeComponent:o=Q9,onClick:c}){const f=it(X9,kt),h=Km(t),y=Km(e),g=Km(i),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return se.jsx(se.Fragment,{children:f.map(v=>se.jsx(W9,{id:v,nodeColorFunc:h,nodeStrokeColorFunc:y,nodeClassNameFunc:g,nodeBorderRadius:a,nodeStrokeWidth:l,NodeComponent:o,onClick:c,shapeRendering:p},v))})}function J9({id:e,nodeColorFunc:t,nodeStrokeColorFunc:i,nodeClassNameFunc:a,nodeBorderRadius:l,nodeStrokeWidth:o,shapeRendering:c,NodeComponent:f,onClick:h}){const{node:y,x:g,y:p,width:v,height:b}=it(S=>{const _=S.nodeLookup.get(e);if(!_)return{node:void 0,x:0,y:0,width:0,height:0};const w=_.internals.userNode,{x:C,y:M}=_.internals.positionAbsolute,{width:E,height:k}=xi(w);return{node:w,x:C,y:M,width:E,height:k}},kt);return!y||y.hidden||!UE(y)?null:se.jsx(f,{x:g,y:p,width:v,height:b,style:y.style,selected:!!y.selected,className:a(y),color:t(y),borderRadius:l,strokeColor:i(y),strokeWidth:o,shapeRendering:c,onClick:h,id:y.id})}const W9=R.memo(J9);var eD=R.memo(K9);const tD=200,nD=150,rD=e=>!e.hidden,iD=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?jE(Ru(e.nodeLookup,{filter:rD}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},aD="react-flow__minimap-desc";function BC({style:e,className:t,nodeStrokeColor:i,nodeColor:a,nodeClassName:l="",nodeBorderRadius:o=5,nodeStrokeWidth:c,nodeComponent:f,bgColor:h,maskColor:y,maskStrokeColor:g,maskStrokeWidth:p,position:v="bottom-right",onClick:b,onNodeClick:S,pannable:_=!1,zoomable:w=!1,ariaLabel:C,inversePan:M,zoomStep:E=1,offsetScale:k=5}){const z=At(),N=R.useRef(null),{boundingRect:D,viewBB:T,rfId:L,panZoom:Q,translateExtent:j,flowWidth:B,flowHeight:$,ariaLabelConfig:G}=it(iD,kt),re=(e==null?void 0:e.width)??tD,U=(e==null?void 0:e.height)??nD,Y=D.width/re,Z=D.height/U,K=Math.max(Y,Z),J=K*re,O=K*U,P=k*K,ae=D.x-(J-D.width)/2-P,ue=D.y-(O-D.height)/2-P,de=J+P*2,me=O+P*2,be=`${aD}-${L}`,ye=R.useRef(0),he=R.useRef();ye.current=K,R.useEffect(()=>{if(N.current&&Q)return he.current=R8({domNode:N.current,panZoom:Q,getTransform:()=>z.getState().transform,getViewScale:()=>ye.current}),()=>{var ze;(ze=he.current)==null||ze.destroy()}},[Q]),R.useEffect(()=>{var ze;(ze=he.current)==null||ze.update({translateExtent:j,width:B,height:$,inversePan:M,pannable:_,zoomStep:E,zoomable:w})},[_,w,M,E,j,B,$]);const Ue=b?ze=>{var Ge;const[qe,ut]=((Ge=he.current)==null?void 0:Ge.pointer(ze))||[0,0];b(ze,{x:qe,y:ut})}:void 0,De=S?R.useCallback((ze,qe)=>{const ut=z.getState().nodeLookup.get(qe).internals.userNode;S(ze,ut)},[]):void 0,Re=C??G["minimap.ariaLabel"];return se.jsx(wd,{position:v,style:{...e,"--xy-minimap-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-background-color-props":typeof y=="string"?y:void 0,"--xy-minimap-mask-stroke-color-props":typeof g=="string"?g:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*K:void 0,"--xy-minimap-node-background-color-props":typeof a=="string"?a:void 0,"--xy-minimap-node-stroke-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-width-props":typeof c=="number"?c:void 0},className:Gt(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:se.jsxs("svg",{width:re,height:U,viewBox:`${ae} ${ue} ${de} ${me}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":be,ref:N,onClick:Ue,children:[Re&&se.jsx("title",{id:be,children:Re}),se.jsx(eD,{onClick:De,nodeColor:a,nodeStrokeColor:i,nodeBorderRadius:o,nodeClassName:l,nodeStrokeWidth:c,nodeComponent:f}),se.jsx("path",{className:"react-flow__minimap-mask",d:`M${ae-P},${ue-P}h${de+P*2}v${me+P*2}h${-de-P*2}z
698
- M${T.x},${T.y}h${T.width}v${T.height}h${-T.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}BC.displayName="MiniMap";const cj=R.memo(BC),sD=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,lD={[Vl.Line]:"right",[Vl.Handle]:"bottom-right"};function oD({nodeId:e,position:t,variant:i=Vl.Handle,className:a,style:l=void 0,children:o,color:c,minWidth:f=10,minHeight:h=10,maxWidth:y=Number.MAX_VALUE,maxHeight:g=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:v,autoScale:b=!0,shouldResize:S,onResizeStart:_,onResize:w,onResizeEnd:C}){const M=yC(),E=typeof e=="string"?e:M,k=At(),z=R.useRef(null),N=i===Vl.Handle,D=it(R.useCallback(sD(N&&b),[N,b]),kt),T=R.useRef(null),L=t??lD[i];R.useEffect(()=>{if(!(!z.current||!E))return T.current||(T.current=$8({domNode:z.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:j,transform:B,snapGrid:$,snapToGrid:G,nodeOrigin:re,domNode:U}=k.getState();return{nodeLookup:j,transform:B,snapGrid:$,snapToGrid:G,nodeOrigin:re,paneDomNode:U}},onChange:(j,B)=>{const{triggerNodeChanges:$,nodeLookup:G,parentLookup:re,nodeOrigin:U}=k.getState(),Y=[],Z={x:j.x,y:j.y},K=G.get(E);if(K&&K.expandParent&&K.parentId){const J=K.origin??U,O=j.width??K.measured.width??0,P=j.height??K.measured.height??0,ae={id:K.id,parentId:K.parentId,rect:{width:O,height:P,...HE({x:j.x??K.position.x,y:j.y??K.position.y},{width:O,height:P},K.parentId,G,J)}},ue=Jg([ae],G,re,U);Y.push(...ue),Z.x=j.x?Math.max(J[0]*O,j.x):void 0,Z.y=j.y?Math.max(J[1]*P,j.y):void 0}if(Z.x!==void 0&&Z.y!==void 0){const J={id:E,type:"position",position:{...Z}};Y.push(J)}if(j.width!==void 0&&j.height!==void 0){const O={id:E,type:"dimensions",resizing:!0,setAttributes:v?v==="horizontal"?"width":"height":!0,dimensions:{width:j.width,height:j.height}};Y.push(O)}for(const J of B){const O={...J,type:"position"};Y.push(O)}$(Y)},onEnd:({width:j,height:B})=>{const $={id:E,type:"dimensions",resizing:!1,dimensions:{width:j,height:B}};k.getState().triggerNodeChanges([$])}})),T.current.update({controlPosition:L,boundaries:{minWidth:f,minHeight:h,maxWidth:y,maxHeight:g},keepAspectRatio:p,resizeDirection:v,onResizeStart:_,onResize:w,onResizeEnd:C,shouldResize:S}),()=>{var j;(j=T.current)==null||j.destroy()}},[L,f,h,y,g,p,_,w,C,S]);const Q=L.split("-");return se.jsx("div",{className:Gt(["react-flow__resize-control","nodrag",...Q,i,a]),ref:z,style:{...l,scale:D,...c&&{[N?"backgroundColor":"borderColor"]:c}},children:o})}R.memo(oD);var zu=e=>e.type==="checkbox",Qa=e=>e instanceof Date,zn=e=>e==null;const jC=e=>typeof e=="object";var Ht=e=>!zn(e)&&!Array.isArray(e)&&jC(e)&&!Qa(e),uD=e=>Ht(e)&&e.target?zu(e.target)?e.target.checked:e.target.value:e,UC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,cD=(e,t)=>e.has(UC(t)),fD=e=>{const t=e.constructor&&e.constructor.prototype;return Ht(t)&&t.hasOwnProperty("isPrototypeOf")},t0=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Wt(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(t0&&(e instanceof Blob||t))return e;const i=Array.isArray(e);if(!i&&!(Ht(e)&&fD(e)))return e;const a=i?[]:Object.create(Object.getPrototypeOf(e));for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(a[l]=Wt(e[l]));return a}var Md=e=>/^\w*$/.test(e),Tt=e=>e===void 0,n0=e=>Array.isArray(e)?e.filter(Boolean):[],r0=e=>n0(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ae=(e,t,i)=>{if(!t||!Ht(e))return i;const a=(Md(t)?[t]:r0(t)).reduce((l,o)=>zn(l)?l:l[o],e);return Tt(a)||a===e?Tt(e[t])?i:e[t]:a},Nr=e=>typeof e=="boolean",br=e=>typeof e=="function",xt=(e,t,i)=>{let a=-1;const l=Md(t)?[t]:r0(t),o=l.length,c=o-1;for(;++a<o;){const f=l[a];let h=i;if(a!==c){const y=e[f];h=Ht(y)||Array.isArray(y)?y:isNaN(+l[a+1])?{}:[]}if(f==="__proto__"||f==="constructor"||f==="prototype")return;e[f]=h,e=e[f]}};const ol={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},_r={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},mr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Jm="form",HC="root",dD=jt.createContext(null);dD.displayName="HookFormControlContext";var hD=(e,t,i,a=!0)=>{const l={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(l,o,{get:()=>{const c=o;return t._proxyFormState[c]!==_r.all&&(t._proxyFormState[c]=!a||_r.all),e[c]}});return l};const yD=typeof window<"u"?jt.useLayoutEffect:jt.useEffect;var bn=e=>typeof e=="string",mD=(e,t,i,a,l)=>bn(e)?(a&&t.watch.add(e),Ae(i,e,l)):Array.isArray(e)?e.map(o=>(a&&t.watch.add(o),Ae(i,o))):(a&&(t.watchAll=!0),i),mg=e=>zn(e)||!jC(e);function la(e,t,i=new WeakSet){if(mg(e)||mg(t))return Object.is(e,t);if(Qa(e)&&Qa(t))return Object.is(e.getTime(),t.getTime());const a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;if(i.has(e)||i.has(t))return!0;i.add(e),i.add(t);for(const o of a){const c=e[o];if(!l.includes(o))return!1;if(o!=="ref"){const f=t[o];if(Qa(c)&&Qa(f)||Ht(c)&&Ht(f)||Array.isArray(c)&&Array.isArray(f)?!la(c,f,i):!Object.is(c,f))return!1}}return!0}const pD=jt.createContext(null);pD.displayName="HookFormContext";var gD=(e,t,i,a,l)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[a]:l||!0}}:{},tu=e=>Array.isArray(e)?e:[e],$S=()=>{let e=[];return{get observers(){return e},next:l=>{for(const o of e)o.next&&o.next(l)},subscribe:l=>(e.push(l),{unsubscribe:()=>{e=e.filter(o=>o!==l)}}),unsubscribe:()=>{e=[]}}};function qC(e,t){const i={};for(const a in e)if(e.hasOwnProperty(a)){const l=e[a],o=t[a];if(l&&Ht(l)&&o){const c=qC(l,o);Ht(c)&&(i[a]=c)}else e[a]&&(i[a]=o)}return i}var gn=e=>Ht(e)&&!Object.keys(e).length,i0=e=>e.type==="file",td=e=>{if(!t0)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},VC=e=>e.type==="select-multiple",a0=e=>e.type==="radio",vD=e=>a0(e)||zu(e),Wm=e=>td(e)&&e.isConnected;function bD(e,t){const i=t.slice(0,-1).length;let a=0;for(;a<i;)e=Tt(e)?a++:e[t[a++]];return e}function _D(e){for(const t in e)if(e.hasOwnProperty(t)&&!Tt(e[t]))return!1;return!0}function Yt(e,t){const i=Array.isArray(t)?t:Md(t)?[t]:r0(t),a=i.length===1?e:bD(e,i),l=i.length-1,o=i[l];return a&&delete a[o],l!==0&&(Ht(a)&&gn(a)||Array.isArray(a)&&_D(a))&&Yt(e,i.slice(0,-1)),e}var SD=e=>{for(const t in e)if(br(e[t]))return!0;return!1};function PC(e){return Array.isArray(e)||Ht(e)&&!SD(e)}function pg(e,t={}){for(const i in e){const a=e[i];PC(a)?(t[i]=Array.isArray(a)?[]:{},pg(a,t[i])):Tt(a)||(t[i]=!0)}return t}function hl(e,t,i){i||(i=pg(t));for(const a in e){const l=e[a];if(PC(l))Tt(t)||mg(i[a])?i[a]=pg(l,Array.isArray(l)?[]:{}):hl(l,zn(t)?{}:t[a],i[a]);else{const o=t[a];i[a]=!la(l,o)}}return i}const YS={value:!1,isValid:!1},FS={value:!0,isValid:!0};var IC=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(i=>i&&i.checked&&!i.disabled).map(i=>i.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Tt(e[0].attributes.value)?Tt(e[0].value)||e[0].value===""?FS:{value:e[0].value,isValid:!0}:FS:YS}return YS},$C=(e,{valueAsNumber:t,valueAsDate:i,setValueAs:a})=>Tt(e)?e:t?e===""?NaN:e&&+e:i&&bn(e)?new Date(e):a?a(e):e;const ZS={isValid:!1,value:null};var YC=e=>Array.isArray(e)?e.reduce((t,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:t,ZS):ZS;function GS(e){const t=e.ref;return i0(t)?t.files:a0(t)?YC(e.refs).value:VC(t)?[...t.selectedOptions].map(({value:i})=>i):zu(t)?IC(e.refs).value:$C(Tt(t.value)?e.ref.value:t.value,e)}var xD=(e,t,i,a)=>{const l={};for(const o of e){const c=Ae(t,o);c&&xt(l,o,c._f)}return{criteriaMode:i,names:[...e],fields:l,shouldUseNativeValidation:a}},nd=e=>e instanceof RegExp,Qo=e=>Tt(e)?e:nd(e)?e.source:Ht(e)?nd(e.value)?e.value.source:e.value:e,QS=e=>({isOnSubmit:!e||e===_r.onSubmit,isOnBlur:e===_r.onBlur,isOnChange:e===_r.onChange,isOnAll:e===_r.all,isOnTouch:e===_r.onTouched});const XS="AsyncFunction";var wD=e=>!!e&&!!e.validate&&!!(br(e.validate)&&e.validate.constructor.name===XS||Ht(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===XS)),ED=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),KS=(e,t,i)=>!i&&(t.watchAll||t.watch.has(e)||[...t.watch].some(a=>e.startsWith(a)&&/^\.\w+/.test(e.slice(a.length))));const nu=(e,t,i,a)=>{for(const l of i||Object.keys(e)){const o=Ae(e,l);if(o){const{_f:c,...f}=o;if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],l)&&!a)return!0;if(c.ref&&t(c.ref,c.name)&&!a)return!0;if(nu(f,t))break}else if(Ht(f)&&nu(f,t))break}}};function JS(e,t,i){const a=Ae(e,i);if(a||Md(i))return{error:a,name:i};const l=i.split(".");for(;l.length;){const o=l.join("."),c=Ae(t,o),f=Ae(e,o);if(c&&!Array.isArray(c)&&i!==o)return{name:i};if(f&&f.type)return{name:o,error:f};if(f&&f.root&&f.root.type)return{name:`${o}.root`,error:f.root};l.pop()}return{name:i}}var CD=(e,t,i,a)=>{i(e);const{name:l,...o}=e;return gn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(c=>t[c]===(!a||_r.all))},MD=(e,t,i)=>!e||!t||e===t||tu(e).some(a=>a&&(i?a===t:a.startsWith(t)||t.startsWith(a))),kD=(e,t,i,a,l)=>l.isOnAll?!1:!i&&l.isOnTouch?!(t||e):(i?a.isOnBlur:l.isOnBlur)?!e:(i?a.isOnChange:l.isOnChange)?e:!0,AD=(e,t)=>!n0(Ae(e,t)).length&&Yt(e,t),TD=(e,t,i)=>{const a=tu(Ae(e,i));return xt(a,HC,t[i]),xt(e,i,a),e};function WS(e,t,i="validate"){if(bn(e)||Array.isArray(e)&&e.every(bn)||Nr(e)&&!e)return{type:i,message:bn(e)?e:"",ref:t}}var ul=e=>Ht(e)&&!nd(e)?e:{value:e,message:""},ex=async(e,t,i,a,l,o)=>{const{ref:c,refs:f,required:h,maxLength:y,minLength:g,min:p,max:v,pattern:b,validate:S,name:_,valueAsNumber:w,mount:C}=e._f,M=Ae(i,_);if(!C||t.has(_))return{};const E=f?f[0]:c,k=B=>{l&&E.reportValidity&&(E.setCustomValidity(Nr(B)?"":B||""),E.reportValidity())},z={},N=a0(c),D=zu(c),T=N||D,L=(w||i0(c))&&Tt(c.value)&&Tt(M)||td(c)&&c.value===""||M===""||Array.isArray(M)&&!M.length,Q=gD.bind(null,_,a,z),j=(B,$,G,re=mr.maxLength,U=mr.minLength)=>{const Y=B?$:G;z[_]={type:B?re:U,message:Y,ref:c,...Q(B?re:U,Y)}};if(o?!Array.isArray(M)||!M.length:h&&(!T&&(L||zn(M))||Nr(M)&&!M||D&&!IC(f).isValid||N&&!YC(f).isValid)){const{value:B,message:$}=bn(h)?{value:!!h,message:h}:ul(h);if(B&&(z[_]={type:mr.required,message:$,ref:E,...Q(mr.required,$)},!a))return k($),z}if(!L&&(!zn(p)||!zn(v))){let B,$;const G=ul(v),re=ul(p);if(!zn(M)&&!isNaN(M)){const U=c.valueAsNumber||M&&+M;zn(G.value)||(B=U>G.value),zn(re.value)||($=U<re.value)}else{const U=c.valueAsDate||new Date(M),Y=J=>new Date(new Date().toDateString()+" "+J),Z=c.type=="time",K=c.type=="week";bn(G.value)&&M&&(B=Z?Y(M)>Y(G.value):K?M>G.value:U>new Date(G.value)),bn(re.value)&&M&&($=Z?Y(M)<Y(re.value):K?M<re.value:U<new Date(re.value))}if((B||$)&&(j(!!B,G.message,re.message,mr.max,mr.min),!a))return k(z[_].message),z}if((y||g)&&!L&&(bn(M)||o&&Array.isArray(M))){const B=ul(y),$=ul(g),G=!zn(B.value)&&M.length>+B.value,re=!zn($.value)&&M.length<+$.value;if((G||re)&&(j(G,B.message,$.message),!a))return k(z[_].message),z}if(b&&!L&&bn(M)){const{value:B,message:$}=ul(b);if(nd(B)&&!M.match(B)&&(z[_]={type:mr.pattern,message:$,ref:c,...Q(mr.pattern,$)},!a))return k($),z}if(S){if(br(S)){const B=await S(M,i),$=WS(B,E);if($&&(z[_]={...$,...Q(mr.validate,$.message)},!a))return k($.message),z}else if(Ht(S)){let B={};for(const $ in S){if(!gn(B)&&!a)break;const G=WS(await S[$](M,i),E,$);G&&(B={...G,...Q($,G.message)},k(G.message),a&&(z[_]=B))}if(!gn(B)&&(z[_]={ref:E,...B},!a))return z}}return k(!0),z};const RD={mode:_r.onSubmit,reValidateMode:_r.onChange,shouldFocusError:!0};function ND(e={}){let t={...RD,...e},i={submitCount:0,isDirty:!1,isReady:!1,isLoading:br(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},a={},l=Ht(t.defaultValues)||Ht(t.values)?Wt(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Wt(l),c={action:!1,mount:!1,watch:!1,keepIsValid:!1},f={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},h,y=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={...g};let v={...p};const b={array:$S(),state:$S()},S=t.criteriaMode===_r.all,_=q=>X=>{clearTimeout(y),y=setTimeout(q,X)},w=async q=>{if(!c.keepIsValid&&!t.disabled&&(p.isValid||v.isValid||q)){let X;t.resolver?(X=gn((await T()).errors),C()):X=await j({fields:a,onlyCheckValid:!0,eventType:ol.VALID}),X!==i.isValid&&b.state.next({isValid:X})}},C=(q,X)=>{!t.disabled&&(p.isValidating||p.validatingFields||v.isValidating||v.validatingFields)&&((q||Array.from(f.mount)).forEach(te=>{te&&(X?xt(i.validatingFields,te,X):Yt(i.validatingFields,te))}),b.state.next({validatingFields:i.validatingFields,isValidating:!gn(i.validatingFields)}))},M=(q,X=[],te,_e,pe=!0,ge=!0)=>{if(_e&&te&&!t.disabled){if(c.action=!0,ge&&Array.isArray(Ae(a,q))){const we=te(Ae(a,q),_e.argA,_e.argB);pe&&xt(a,q,we)}if(ge&&Array.isArray(Ae(i.errors,q))){const we=te(Ae(i.errors,q),_e.argA,_e.argB);pe&&xt(i.errors,q,we),AD(i.errors,q)}if((p.touchedFields||v.touchedFields)&&ge&&Array.isArray(Ae(i.touchedFields,q))){const we=te(Ae(i.touchedFields,q),_e.argA,_e.argB);pe&&xt(i.touchedFields,q,we)}if(p.dirtyFields||v.dirtyFields){const we=hl(l,o),Ve=UC(q);xt(i.dirtyFields,Ve,Ae(we,Ve))}b.state.next({name:q,isDirty:$(q,X),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else xt(o,q,X)},E=(q,X)=>{xt(i.errors,q,X),b.state.next({errors:i.errors})},k=q=>{i.errors=q,b.state.next({errors:i.errors,isValid:!1})},z=(q,X,te,_e)=>{const pe=Ae(a,q);if(pe){const ge=Ae(o,q,Tt(te)?Ae(l,q):te);Tt(ge)||_e&&_e.defaultChecked||X?xt(o,q,X?ge:GS(pe._f)):U(q,ge),c.mount&&!c.action&&w()}},N=(q,X,te,_e,pe)=>{let ge=!1,we=!1;const Ve={name:q};if(!t.disabled){if(!te||_e){(p.isDirty||v.isDirty)&&(we=i.isDirty,i.isDirty=Ve.isDirty=$(),ge=we!==Ve.isDirty);const We=la(Ae(l,q),X);we=!!Ae(i.dirtyFields,q),We?Yt(i.dirtyFields,q):xt(i.dirtyFields,q,!0),Ve.dirtyFields=i.dirtyFields,ge=ge||(p.dirtyFields||v.dirtyFields)&&we!==!We}if(te){const We=Ae(i.touchedFields,q);We||(xt(i.touchedFields,q,te),Ve.touchedFields=i.touchedFields,ge=ge||(p.touchedFields||v.touchedFields)&&We!==te)}ge&&pe&&b.state.next(Ve)}return ge?Ve:{}},D=(q,X,te,_e)=>{const pe=Ae(i.errors,q),ge=(p.isValid||v.isValid)&&Nr(X)&&i.isValid!==X;if(t.delayError&&te?(h=_(()=>E(q,te)),h(t.delayError)):(clearTimeout(y),h=null,te?xt(i.errors,q,te):Yt(i.errors,q)),(te?!la(pe,te):pe)||!gn(_e)||ge){const we={..._e,...ge&&Nr(X)?{isValid:X}:{},errors:i.errors,name:q};i={...i,...we},b.state.next(we)}},T=async q=>(C(q,!0),await t.resolver(o,t.context,xD(q||f.mount,a,t.criteriaMode,t.shouldUseNativeValidation))),L=async q=>{const{errors:X}=await T(q);if(C(q),q)for(const te of q){const _e=Ae(X,te);_e?xt(i.errors,te,_e):Yt(i.errors,te)}else i.errors=X;return X},Q=async({name:q,eventType:X})=>{if(e.validate){const te=await e.validate({formValues:o,formState:i,name:q,eventType:X});if(Ht(te))for(const _e in te)te[_e]&&de(`${Jm}.${_e}`,{message:bn(te.message)?te.message:"",type:mr.validate});else bn(te)||!te?de(Jm,{message:te||"",type:mr.validate}):ue(Jm);return te}return!0},j=async({fields:q,onlyCheckValid:X,name:te,eventType:_e,context:pe={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(pe.runRootValidation=!0,!await Q({name:te,eventType:_e})&&(pe.valid=!1,X)))return pe.valid;for(const ge in q){const we=q[ge];if(we){const{_f:Ve,...We}=we;if(Ve){const rn=f.array.has(Ve.name),Sn=we._f&&wD(we._f);Sn&&p.validatingFields&&C([Ve.name],!0);const Rt=await ex(we,f.disabled,o,S,t.shouldUseNativeValidation&&!X,rn);if(Sn&&p.validatingFields&&C([Ve.name]),Rt[Ve.name]&&(pe.valid=!1,X)||(!X&&(Ae(Rt,Ve.name)?rn?TD(i.errors,Rt,Ve.name):xt(i.errors,Ve.name,Rt[Ve.name]):Yt(i.errors,Ve.name)),e.shouldUseNativeValidation&&Rt[Ve.name]))break}!gn(We)&&await j({context:pe,onlyCheckValid:X,fields:We,name:ge,eventType:_e})}}return pe.valid},B=()=>{for(const q of f.unMount){const X=Ae(a,q);X&&(X._f.refs?X._f.refs.every(te=>!Wm(te)):!Wm(X._f.ref))&&he(q)}f.unMount=new Set},$=(q,X)=>!t.disabled&&(q&&X&&xt(o,q,X),!la(P(),l)),G=(q,X,te)=>mD(q,f,{...c.mount?o:Tt(X)?l:bn(q)?{[q]:X}:X},te,X),re=q=>n0(Ae(c.mount?o:l,q,t.shouldUnregister?Ae(l,q,[]):[])),U=(q,X,te={})=>{const _e=Ae(a,q);let pe=X;if(_e){const ge=_e._f;ge&&(!ge.disabled&&xt(o,q,$C(X,ge)),pe=td(ge.ref)&&zn(X)?"":X,VC(ge.ref)?[...ge.ref.options].forEach(we=>we.selected=pe.includes(we.value)):ge.refs?zu(ge.ref)?ge.refs.forEach(we=>{(!we.defaultChecked||!we.disabled)&&(Array.isArray(pe)?we.checked=!!pe.find(Ve=>Ve===we.value):we.checked=pe===we.value||!!pe)}):ge.refs.forEach(we=>we.checked=we.value===pe):i0(ge.ref)?ge.ref.value="":(ge.ref.value=pe,ge.ref.type||b.state.next({name:q,values:Wt(o)})))}(te.shouldDirty||te.shouldTouch)&&N(q,pe,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&O(q)},Y=(q,X,te)=>{for(const _e in X){if(!X.hasOwnProperty(_e))return;const pe=X[_e],ge=q+"."+_e,we=Ae(a,ge);(f.array.has(q)||Ht(pe)||we&&!we._f)&&!Qa(pe)?Y(ge,pe,te):U(ge,pe,te)}},Z=(q,X,te={})=>{const _e=Ae(a,q),pe=f.array.has(q),ge=Wt(X);xt(o,q,ge),pe?(b.array.next({name:q,values:Wt(o)}),(p.isDirty||p.dirtyFields||v.isDirty||v.dirtyFields)&&te.shouldDirty&&b.state.next({name:q,dirtyFields:hl(l,o),isDirty:$(q,ge)})):_e&&!_e._f&&!zn(ge)?Y(q,ge,te):U(q,ge,te),KS(q,f)?b.state.next({...i,name:q,values:Wt(o)}):b.state.next({name:c.mount?q:void 0,values:Wt(o)})},K=async q=>{c.mount=!0;const X=q.target;let te=X.name,_e=!0;const pe=Ae(a,te),ge=We=>{_e=Number.isNaN(We)||Qa(We)&&isNaN(We.getTime())||la(We,Ae(o,te,We))},we=QS(t.mode),Ve=QS(t.reValidateMode);if(pe){let We,rn;const Sn=X.type?GS(pe._f):uD(q),Rt=q.type===ol.BLUR||q.type===ol.FOCUS_OUT,an=!ED(pe._f)&&!e.validate&&!t.resolver&&!Ae(i.errors,te)&&!pe._f.deps||kD(Rt,Ae(i.touchedFields,te),i.isSubmitted,Ve,we),xn=KS(te,f,Rt);xt(o,te,Sn),Rt?(!X||!X.readOnly)&&(pe._f.onBlur&&pe._f.onBlur(q),h&&h(0)):pe._f.onChange&&pe._f.onChange(q);const Qt=N(te,Sn,Rt),Ql=!gn(Qt)||xn;if(!Rt&&b.state.next({name:te,type:q.type,values:Wt(o)}),an)return(p.isValid||v.isValid)&&(t.mode==="onBlur"?Rt&&w():Rt||w()),Ql&&b.state.next({name:te,...xn?{}:Qt});if(!t.resolver&&e.validate&&await Q({name:te,eventType:q.type}),!Rt&&xn&&b.state.next({...i}),t.resolver){const{errors:Ss}=await T([te]);if(C([te]),ge(Sn),_e){const Xl=JS(i.errors,a,te),Vr=JS(Ss,a,Xl.name||te);We=Vr.error,te=Vr.name,rn=gn(Ss)}}else C([te],!0),We=(await ex(pe,f.disabled,o,S,t.shouldUseNativeValidation))[te],C([te]),ge(Sn),_e&&(We?rn=!1:(p.isValid||v.isValid)&&(rn=await j({fields:a,onlyCheckValid:!0,name:te,eventType:q.type})));_e&&(pe._f.deps&&(!Array.isArray(pe._f.deps)||pe._f.deps.length>0)&&O(pe._f.deps),D(te,rn,We,Qt))}},J=(q,X)=>{if(Ae(i.errors,X)&&q.focus)return q.focus(),1},O=async(q,X={})=>{let te,_e;const pe=tu(q);if(t.resolver){const ge=await L(Tt(q)?q:pe);te=gn(ge),_e=q?!pe.some(we=>Ae(ge,we)):te}else q?(_e=(await Promise.all(pe.map(async ge=>{const we=Ae(a,ge);return await j({fields:we&&we._f?{[ge]:we}:we,eventType:ol.TRIGGER})}))).every(Boolean),!(!_e&&!i.isValid)&&w()):_e=te=await j({fields:a,name:q,eventType:ol.TRIGGER});return b.state.next({...!bn(q)||(p.isValid||v.isValid)&&te!==i.isValid?{}:{name:q},...t.resolver||!q?{isValid:te}:{},errors:i.errors}),X.shouldFocus&&!_e&&nu(a,J,q?pe:f.mount),_e},P=(q,X)=>{let te={...c.mount?o:l};return X&&(te=qC(X.dirtyFields?i.dirtyFields:i.touchedFields,te)),Tt(q)?te:bn(q)?Ae(te,q):q.map(_e=>Ae(te,_e))},ae=(q,X)=>({invalid:!!Ae((X||i).errors,q),isDirty:!!Ae((X||i).dirtyFields,q),error:Ae((X||i).errors,q),isValidating:!!Ae(i.validatingFields,q),isTouched:!!Ae((X||i).touchedFields,q)}),ue=q=>{const X=q?tu(q):void 0;X==null||X.forEach(te=>Yt(i.errors,te)),X?X.forEach(te=>{b.state.next({name:te,errors:i.errors})}):b.state.next({errors:{}})},de=(q,X,te)=>{const _e=(Ae(a,q,{_f:{}})._f||{}).ref,pe=Ae(i.errors,q)||{},{ref:ge,message:we,type:Ve,...We}=pe;xt(i.errors,q,{...We,...X,ref:_e}),b.state.next({name:q,errors:i.errors,isValid:!1}),te&&te.shouldFocus&&_e&&_e.focus&&_e.focus()},me=(q,X)=>br(q)?b.state.subscribe({next:te=>"values"in te&&q(G(void 0,X),te)}):G(q,X,!0),be=q=>b.state.subscribe({next:X=>{MD(q.name,X.name,q.exact)&&CD(X,q.formState||p,yn,q.reRenderRoot)&&q.callback({values:{...o},...i,...X,defaultValues:l})}}).unsubscribe,ye=q=>(c.mount=!0,v={...v,...q.formState},be({...q,formState:{...g,...q.formState}})),he=(q,X={})=>{for(const te of q?tu(q):f.mount)f.mount.delete(te),f.array.delete(te),X.keepValue||(Yt(a,te),Yt(o,te)),!X.keepError&&Yt(i.errors,te),!X.keepDirty&&Yt(i.dirtyFields,te),!X.keepTouched&&Yt(i.touchedFields,te),!X.keepIsValidating&&Yt(i.validatingFields,te),!t.shouldUnregister&&!X.keepDefaultValue&&Yt(l,te);b.state.next({values:Wt(o)}),b.state.next({...i,...X.keepDirty?{isDirty:$()}:{}}),!X.keepIsValid&&w()},Ue=({disabled:q,name:X})=>{if(Nr(q)&&c.mount||q||f.disabled.has(X)){const pe=f.disabled.has(X)!==!!q;q?f.disabled.add(X):f.disabled.delete(X),pe&&c.mount&&!c.action&&w()}},De=(q,X={})=>{let te=Ae(a,q);const _e=Nr(X.disabled)||Nr(t.disabled);return xt(a,q,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:q}},name:q,mount:!0,...X}}),f.mount.add(q),te?Ue({disabled:Nr(X.disabled)?X.disabled:t.disabled,name:q}):z(q,!0,X.value),{..._e?{disabled:X.disabled||t.disabled}:{},...t.progressive?{required:!!X.required,min:Qo(X.min),max:Qo(X.max),minLength:Qo(X.minLength),maxLength:Qo(X.maxLength),pattern:Qo(X.pattern)}:{},name:q,onChange:K,onBlur:K,ref:pe=>{if(pe){De(q,X),te=Ae(a,q);const ge=Tt(pe.value)&&pe.querySelectorAll&&pe.querySelectorAll("input,select,textarea")[0]||pe,we=vD(ge),Ve=te._f.refs||[];if(we?Ve.find(We=>We===ge):ge===te._f.ref)return;xt(a,q,{_f:{...te._f,...we?{refs:[...Ve.filter(Wm),ge,...Array.isArray(Ae(l,q))?[{}]:[]],ref:{type:ge.type,name:q}}:{ref:ge}}}),z(q,!1,void 0,ge)}else te=Ae(a,q,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(cD(f.array,q)&&c.action)&&f.unMount.add(q)}}},Re=()=>t.shouldFocusError&&nu(a,J,f.mount),ze=q=>{Nr(q)&&(b.state.next({disabled:q}),nu(a,(X,te)=>{const _e=Ae(a,te);_e&&(X.disabled=_e._f.disabled||q,Array.isArray(_e._f.refs)&&_e._f.refs.forEach(pe=>{pe.disabled=_e._f.disabled||q}))},0,!1))},qe=(q,X)=>async te=>{let _e;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let pe=Wt(o);if(b.state.next({isSubmitting:!0}),t.resolver){const{errors:ge,values:we}=await T();C(),i.errors=ge,pe=Wt(we)}else await j({fields:a,eventType:ol.SUBMIT});if(f.disabled.size)for(const ge of f.disabled)Yt(pe,ge);if(Yt(i.errors,HC),gn(i.errors)){b.state.next({errors:{}});try{await q(pe,te)}catch(ge){_e=ge}}else X&&await X({...i.errors},te),Re(),setTimeout(Re);if(b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:gn(i.errors)&&!_e,submitCount:i.submitCount+1,errors:i.errors}),_e)throw _e},ut=(q,X={})=>{Ae(a,q)&&(Tt(X.defaultValue)?Z(q,Wt(Ae(l,q))):(Z(q,X.defaultValue),xt(l,q,Wt(X.defaultValue))),X.keepTouched||Yt(i.touchedFields,q),X.keepDirty||(Yt(i.dirtyFields,q),i.isDirty=X.defaultValue?$(q,Wt(Ae(l,q))):$()),X.keepError||(Yt(i.errors,q),p.isValid&&w()),b.state.next({...i}))},Ge=(q,X={})=>{const te=q?Wt(q):l,_e=Wt(te),pe=gn(q),ge=pe?l:_e;if(X.keepDefaultValues||(l=te),!X.keepValues){if(X.keepDirtyValues){const we=new Set([...f.mount,...Object.keys(hl(l,o))]);for(const Ve of Array.from(we)){const We=Ae(i.dirtyFields,Ve),rn=Ae(o,Ve),Sn=Ae(ge,Ve);We&&!Tt(rn)?xt(ge,Ve,rn):!We&&!Tt(Sn)&&Z(Ve,Sn)}}else{if(t0&&Tt(q))for(const we of f.mount){const Ve=Ae(a,we);if(Ve&&Ve._f){const We=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(td(We)){const rn=We.closest("form");if(rn){rn.reset();break}}}}if(X.keepFieldsRef)for(const we of f.mount)Z(we,Ae(ge,we));else a={}}o=t.shouldUnregister?X.keepDefaultValues?Wt(l):{}:Wt(ge),b.array.next({values:{...ge}}),b.state.next({values:{...ge}})}f={mount:X.keepDirtyValues?f.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!p.isValid||!!X.keepIsValid||!!X.keepDirtyValues||!t.shouldUnregister&&!gn(ge),c.watch=!!t.shouldUnregister,c.keepIsValid=!!X.keepIsValid,c.action=!1,X.keepErrors||(i.errors={}),b.state.next({submitCount:X.keepSubmitCount?i.submitCount:0,isDirty:pe?!1:X.keepDirty?i.isDirty:!!(X.keepDefaultValues&&!la(q,l)),isSubmitted:X.keepIsSubmitted?i.isSubmitted:!1,dirtyFields:pe?{}:X.keepDirtyValues?X.keepDefaultValues&&o?hl(l,o):i.dirtyFields:X.keepDefaultValues&&q?hl(l,q):X.keepDirty?i.dirtyFields:{},touchedFields:X.keepTouched?i.touchedFields:{},errors:X.keepErrors?i.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?i.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:l})},Dt=(q,X)=>Ge(br(q)?q(o):q,{...t.resetOptions,...X}),Dn=(q,X={})=>{const te=Ae(a,q),_e=te&&te._f;if(_e){const pe=_e.refs?_e.refs[0]:_e.ref;pe.focus&&setTimeout(()=>{pe.focus(),X.shouldSelect&&br(pe.select)&&pe.select()})}},yn=q=>{i={...i,...q}},Xn={control:{register:De,unregister:he,getFieldState:ae,handleSubmit:qe,setError:de,_subscribe:be,_runSchema:T,_updateIsValidating:C,_focusError:Re,_getWatch:G,_getDirty:$,_setValid:w,_setFieldArray:M,_setDisabledField:Ue,_setErrors:k,_getFieldArray:re,_reset:Ge,_resetDefaultValues:()=>br(t.defaultValues)&&t.defaultValues().then(q=>{Dt(q,t.resetOptions),b.state.next({isLoading:!1})}),_removeUnmounted:B,_disableForm:ze,_subjects:b,_proxyFormState:p,get _fields(){return a},get _formValues(){return o},get _state(){return c},set _state(q){c=q},get _defaultValues(){return l},get _names(){return f},set _names(q){f=q},get _formState(){return i},get _options(){return t},set _options(q){t={...t,...q}}},subscribe:ye,trigger:O,register:De,handleSubmit:qe,watch:me,setValue:Z,getValues:P,reset:Dt,resetField:ut,clearErrors:ue,unregister:he,setError:de,setFocus:Dn,getFieldState:ae};return{...Xn,formControl:Xn}}function fj(e={}){const t=jt.useRef(void 0),i=jt.useRef(void 0),[a,l]=jt.useState({isDirty:!1,isValidating:!1,isLoading:br(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:br(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:a},e.defaultValues&&!br(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:c,...f}=ND(e);t.current={...f,formState:a}}const o=t.current.control;return o._options=e,yD(()=>{const c=o._subscribe({formState:o._proxyFormState,callback:()=>l({...o._formState}),reRenderRoot:!0});return l(f=>({...f,isReady:!0})),o._formState.isReady=!0,c},[o]),jt.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),jt.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),jt.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),jt.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),jt.useEffect(()=>{if(o._proxyFormState.isDirty){const c=o._getDirty();c!==a.isDirty&&o._subjects.state.next({isDirty:c})}},[o,a.isDirty]),jt.useEffect(()=>{var c;e.values&&!la(e.values,i.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),!((c=o._options.resetOptions)===null||c===void 0)&&c.keepIsValid||o._setValid(),i.current=e.values,l(f=>({...f}))):o._resetDefaultValues()},[o,e.values]),jt.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=jt.useMemo(()=>hD(a,o),[o,a]),t.current}var cl={},ep,tx;function OD(){return tx||(tx=1,ep=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),ep}var tp={},na={},nx;function bs(){if(nx)return na;nx=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return na.getSymbolSize=function(a){if(!a)throw new Error('"version" cannot be null or undefined');if(a<1||a>40)throw new Error('"version" should be in range from 1 to 40');return a*4+17},na.getSymbolTotalCodewords=function(a){return t[a]},na.getBCHDigit=function(i){let a=0;for(;i!==0;)a++,i>>>=1;return a},na.setToSJISFunction=function(a){if(typeof a!="function")throw new Error('"toSJISFunc" is not a valid function.');e=a},na.isKanjiModeEnabled=function(){return typeof e<"u"},na.toSJIS=function(a){return e(a)},na}var np={},rx;function s0(){return rx||(rx=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(a){return a&&typeof a.bit<"u"&&a.bit>=0&&a.bit<4},e.from=function(a,l){if(e.isValid(a))return a;try{return t(a)}catch{return l}}})(np)),np}var rp,ix;function zD(){if(ix)return rp;ix=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const i=Math.floor(t/8);return(this.buffer[i]>>>7-t%8&1)===1},put:function(t,i){for(let a=0;a<i;a++)this.putBit((t>>>i-a-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),t&&(this.buffer[i]|=128>>>this.length%8),this.length++}},rp=e,rp}var ip,ax;function DD(){if(ax)return ip;ax=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,i,a,l){const o=t*this.size+i;this.data[o]=a,l&&(this.reservedBit[o]=!0)},e.prototype.get=function(t,i){return this.data[t*this.size+i]},e.prototype.xor=function(t,i,a){this.data[t*this.size+i]^=a},e.prototype.isReserved=function(t,i){return this.reservedBit[t*this.size+i]},ip=e,ip}var ap={},sx;function LD(){return sx||(sx=1,(function(e){const t=bs().getSymbolSize;e.getRowColCoords=function(a){if(a===1)return[];const l=Math.floor(a/7)+2,o=t(a),c=o===145?26:Math.ceil((o-13)/(2*l-2))*2,f=[o-7];for(let h=1;h<l-1;h++)f[h]=f[h-1]-c;return f.push(6),f.reverse()},e.getPositions=function(a){const l=[],o=e.getRowColCoords(a),c=o.length;for(let f=0;f<c;f++)for(let h=0;h<c;h++)f===0&&h===0||f===0&&h===c-1||f===c-1&&h===0||l.push([o[f],o[h]]);return l}})(ap)),ap}var sp={},lx;function BD(){if(lx)return sp;lx=1;const e=bs().getSymbolSize,t=7;return sp.getPositions=function(a){const l=e(a);return[[0,0],[l-t,0],[0,l-t]]},sp}var lp={},ox;function jD(){return ox||(ox=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(l){return l!=null&&l!==""&&!isNaN(l)&&l>=0&&l<=7},e.from=function(l){return e.isValid(l)?parseInt(l,10):void 0},e.getPenaltyN1=function(l){const o=l.size;let c=0,f=0,h=0,y=null,g=null;for(let p=0;p<o;p++){f=h=0,y=g=null;for(let v=0;v<o;v++){let b=l.get(p,v);b===y?f++:(f>=5&&(c+=t.N1+(f-5)),y=b,f=1),b=l.get(v,p),b===g?h++:(h>=5&&(c+=t.N1+(h-5)),g=b,h=1)}f>=5&&(c+=t.N1+(f-5)),h>=5&&(c+=t.N1+(h-5))}return c},e.getPenaltyN2=function(l){const o=l.size;let c=0;for(let f=0;f<o-1;f++)for(let h=0;h<o-1;h++){const y=l.get(f,h)+l.get(f,h+1)+l.get(f+1,h)+l.get(f+1,h+1);(y===4||y===0)&&c++}return c*t.N2},e.getPenaltyN3=function(l){const o=l.size;let c=0,f=0,h=0;for(let y=0;y<o;y++){f=h=0;for(let g=0;g<o;g++)f=f<<1&2047|l.get(y,g),g>=10&&(f===1488||f===93)&&c++,h=h<<1&2047|l.get(g,y),g>=10&&(h===1488||h===93)&&c++}return c*t.N3},e.getPenaltyN4=function(l){let o=0;const c=l.data.length;for(let h=0;h<c;h++)o+=l.data[h];return Math.abs(Math.ceil(o*100/c/5)-10)*t.N4};function i(a,l,o){switch(a){case e.Patterns.PATTERN000:return(l+o)%2===0;case e.Patterns.PATTERN001:return l%2===0;case e.Patterns.PATTERN010:return o%3===0;case e.Patterns.PATTERN011:return(l+o)%3===0;case e.Patterns.PATTERN100:return(Math.floor(l/2)+Math.floor(o/3))%2===0;case e.Patterns.PATTERN101:return l*o%2+l*o%3===0;case e.Patterns.PATTERN110:return(l*o%2+l*o%3)%2===0;case e.Patterns.PATTERN111:return(l*o%3+(l+o)%2)%2===0;default:throw new Error("bad maskPattern:"+a)}}e.applyMask=function(l,o){const c=o.size;for(let f=0;f<c;f++)for(let h=0;h<c;h++)o.isReserved(h,f)||o.xor(h,f,i(l,h,f))},e.getBestMask=function(l,o){const c=Object.keys(e.Patterns).length;let f=0,h=1/0;for(let y=0;y<c;y++){o(y),e.applyMask(y,l);const g=e.getPenaltyN1(l)+e.getPenaltyN2(l)+e.getPenaltyN3(l)+e.getPenaltyN4(l);e.applyMask(y,l),g<h&&(h=g,f=y)}return f}})(lp)),lp}var _f={},ux;function FC(){if(ux)return _f;ux=1;const e=s0(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return _f.getBlocksCount=function(l,o){switch(o){case e.L:return t[(l-1)*4+0];case e.M:return t[(l-1)*4+1];case e.Q:return t[(l-1)*4+2];case e.H:return t[(l-1)*4+3];default:return}},_f.getTotalCodewordsCount=function(l,o){switch(o){case e.L:return i[(l-1)*4+0];case e.M:return i[(l-1)*4+1];case e.Q:return i[(l-1)*4+2];case e.H:return i[(l-1)*4+3];default:return}},_f}var op={},Xo={},cx;function UD(){if(cx)return Xo;cx=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let a=1;for(let l=0;l<255;l++)e[l]=a,t[a]=l,a<<=1,a&256&&(a^=285);for(let l=255;l<512;l++)e[l]=e[l-255]})(),Xo.log=function(a){if(a<1)throw new Error("log("+a+")");return t[a]},Xo.exp=function(a){return e[a]},Xo.mul=function(a,l){return a===0||l===0?0:e[t[a]+t[l]]},Xo}var fx;function HD(){return fx||(fx=1,(function(e){const t=UD();e.mul=function(a,l){const o=new Uint8Array(a.length+l.length-1);for(let c=0;c<a.length;c++)for(let f=0;f<l.length;f++)o[c+f]^=t.mul(a[c],l[f]);return o},e.mod=function(a,l){let o=new Uint8Array(a);for(;o.length-l.length>=0;){const c=o[0];for(let h=0;h<l.length;h++)o[h]^=t.mul(l[h],c);let f=0;for(;f<o.length&&o[f]===0;)f++;o=o.slice(f)}return o},e.generateECPolynomial=function(a){let l=new Uint8Array([1]);for(let o=0;o<a;o++)l=e.mul(l,new Uint8Array([1,t.exp(o)]));return l}})(op)),op}var up,dx;function qD(){if(dx)return up;dx=1;const e=HD();function t(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(a){this.degree=a,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(a){if(!this.genPoly)throw new Error("Encoder not initialized");const l=new Uint8Array(a.length+this.degree);l.set(a);const o=e.mod(l,this.genPoly),c=this.degree-o.length;if(c>0){const f=new Uint8Array(this.degree);return f.set(o,c),f}return o},up=t,up}var cp={},fp={},dp={},hx;function ZC(){return hx||(hx=1,dp.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),dp}var Rr={},yx;function GC(){if(yx)return Rr;yx=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const a="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r
699
- ]))+`;Rr.KANJI=new RegExp(i,"g"),Rr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Rr.BYTE=new RegExp(a,"g"),Rr.NUMERIC=new RegExp(e,"g"),Rr.ALPHANUMERIC=new RegExp(t,"g");const l=new RegExp("^"+i+"$"),o=new RegExp("^"+e+"$"),c=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Rr.testKanji=function(h){return l.test(h)},Rr.testNumeric=function(h){return o.test(h)},Rr.testAlphanumeric=function(h){return c.test(h)},Rr}var mx;function _s(){return mx||(mx=1,(function(e){const t=ZC(),i=GC();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,c){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(c))throw new Error("Invalid version: "+c);return c>=1&&c<10?o.ccBits[0]:c<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return i.testNumeric(o)?e.NUMERIC:i.testAlphanumeric(o)?e.ALPHANUMERIC:i.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function a(l){if(typeof l!="string")throw new Error("Param is not a string");switch(l.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+l)}}e.from=function(o,c){if(e.isValid(o))return o;try{return a(o)}catch{return c}}})(fp)),fp}var px;function VD(){return px||(px=1,(function(e){const t=bs(),i=FC(),a=s0(),l=_s(),o=ZC(),c=7973,f=t.getBCHDigit(c);function h(v,b,S){for(let _=1;_<=40;_++)if(b<=e.getCapacity(_,S,v))return _}function y(v,b){return l.getCharCountIndicator(v,b)+4}function g(v,b){let S=0;return v.forEach(function(_){const w=y(_.mode,b);S+=w+_.getBitsLength()}),S}function p(v,b){for(let S=1;S<=40;S++)if(g(v,S)<=e.getCapacity(S,b,l.MIXED))return S}e.from=function(b,S){return o.isValid(b)?parseInt(b,10):S},e.getCapacity=function(b,S,_){if(!o.isValid(b))throw new Error("Invalid QR Code version");typeof _>"u"&&(_=l.BYTE);const w=t.getSymbolTotalCodewords(b),C=i.getTotalCodewordsCount(b,S),M=(w-C)*8;if(_===l.MIXED)return M;const E=M-y(_,b);switch(_){case l.NUMERIC:return Math.floor(E/10*3);case l.ALPHANUMERIC:return Math.floor(E/11*2);case l.KANJI:return Math.floor(E/13);case l.BYTE:default:return Math.floor(E/8)}},e.getBestVersionForData=function(b,S){let _;const w=a.from(S,a.M);if(Array.isArray(b)){if(b.length>1)return p(b,w);if(b.length===0)return 1;_=b[0]}else _=b;return h(_.mode,_.getLength(),w)},e.getEncodedBits=function(b){if(!o.isValid(b)||b<7)throw new Error("Invalid QR Code version");let S=b<<12;for(;t.getBCHDigit(S)-f>=0;)S^=c<<t.getBCHDigit(S)-f;return b<<12|S}})(cp)),cp}var hp={},gx;function PD(){if(gx)return hp;gx=1;const e=bs(),t=1335,i=21522,a=e.getBCHDigit(t);return hp.getEncodedBits=function(o,c){const f=o.bit<<3|c;let h=f<<10;for(;e.getBCHDigit(h)-a>=0;)h^=t<<e.getBCHDigit(h)-a;return(f<<10|h)^i},hp}var yp={},mp,vx;function ID(){if(vx)return mp;vx=1;const e=_s();function t(i){this.mode=e.NUMERIC,this.data=i.toString()}return t.getBitsLength=function(a){return 10*Math.floor(a/3)+(a%3?a%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(a){let l,o,c;for(l=0;l+3<=this.data.length;l+=3)o=this.data.substr(l,3),c=parseInt(o,10),a.put(c,10);const f=this.data.length-l;f>0&&(o=this.data.substr(l),c=parseInt(o,10),a.put(c,f*3+1))},mp=t,mp}var pp,bx;function $D(){if(bx)return pp;bx=1;const e=_s(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(a){this.mode=e.ALPHANUMERIC,this.data=a}return i.getBitsLength=function(l){return 11*Math.floor(l/2)+6*(l%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(l){let o;for(o=0;o+2<=this.data.length;o+=2){let c=t.indexOf(this.data[o])*45;c+=t.indexOf(this.data[o+1]),l.put(c,11)}this.data.length%2&&l.put(t.indexOf(this.data[o]),6)},pp=i,pp}var gp,_x;function YD(){if(_x)return gp;_x=1;const e=_s();function t(i){this.mode=e.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return t.getBitsLength=function(a){return a*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(i){for(let a=0,l=this.data.length;a<l;a++)i.put(this.data[a],8)},gp=t,gp}var vp,Sx;function FD(){if(Sx)return vp;Sx=1;const e=_s(),t=bs();function i(a){this.mode=e.KANJI,this.data=a}return i.getBitsLength=function(l){return l*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(a){let l;for(l=0;l<this.data.length;l++){let o=t.toSJIS(this.data[l]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[l]+`
700
- Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),a.put(o,13)}},vp=i,vp}var bp={exports:{}},xx;function ZD(){return xx||(xx=1,(function(e){var t={single_source_shortest_paths:function(i,a,l){var o={},c={};c[a]=0;var f=t.PriorityQueue.make();f.push(a,0);for(var h,y,g,p,v,b,S,_,w;!f.empty();){h=f.pop(),y=h.value,p=h.cost,v=i[y]||{};for(g in v)v.hasOwnProperty(g)&&(b=v[g],S=p+b,_=c[g],w=typeof c[g]>"u",(w||_>S)&&(c[g]=S,f.push(g,S),o[g]=y))}if(typeof l<"u"&&typeof c[l]>"u"){var C=["Could not find a path from ",a," to ",l,"."].join("");throw new Error(C)}return o},extract_shortest_path_from_predecessor_list:function(i,a){for(var l=[],o=a;o;)l.push(o),i[o],o=i[o];return l.reverse(),l},find_path:function(i,a,l){var o=t.single_source_shortest_paths(i,a,l);return t.extract_shortest_path_from_predecessor_list(o,l)},PriorityQueue:{make:function(i){var a=t.PriorityQueue,l={},o;i=i||{};for(o in a)a.hasOwnProperty(o)&&(l[o]=a[o]);return l.queue=[],l.sorter=i.sorter||a.default_sorter,l},default_sorter:function(i,a){return i.cost-a.cost},push:function(i,a){var l={value:i,cost:a};this.queue.push(l),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(bp)),bp.exports}var wx;function GD(){return wx||(wx=1,(function(e){const t=_s(),i=ID(),a=$D(),l=YD(),o=FD(),c=GC(),f=bs(),h=ZD();function y(C){return unescape(encodeURIComponent(C)).length}function g(C,M,E){const k=[];let z;for(;(z=C.exec(E))!==null;)k.push({data:z[0],index:z.index,mode:M,length:z[0].length});return k}function p(C){const M=g(c.NUMERIC,t.NUMERIC,C),E=g(c.ALPHANUMERIC,t.ALPHANUMERIC,C);let k,z;return f.isKanjiModeEnabled()?(k=g(c.BYTE,t.BYTE,C),z=g(c.KANJI,t.KANJI,C)):(k=g(c.BYTE_KANJI,t.BYTE,C),z=[]),M.concat(E,k,z).sort(function(D,T){return D.index-T.index}).map(function(D){return{data:D.data,mode:D.mode,length:D.length}})}function v(C,M){switch(M){case t.NUMERIC:return i.getBitsLength(C);case t.ALPHANUMERIC:return a.getBitsLength(C);case t.KANJI:return o.getBitsLength(C);case t.BYTE:return l.getBitsLength(C)}}function b(C){return C.reduce(function(M,E){const k=M.length-1>=0?M[M.length-1]:null;return k&&k.mode===E.mode?(M[M.length-1].data+=E.data,M):(M.push(E),M)},[])}function S(C){const M=[];for(let E=0;E<C.length;E++){const k=C[E];switch(k.mode){case t.NUMERIC:M.push([k,{data:k.data,mode:t.ALPHANUMERIC,length:k.length},{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.ALPHANUMERIC:M.push([k,{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.KANJI:M.push([k,{data:k.data,mode:t.BYTE,length:y(k.data)}]);break;case t.BYTE:M.push([{data:k.data,mode:t.BYTE,length:y(k.data)}])}}return M}function _(C,M){const E={},k={start:{}};let z=["start"];for(let N=0;N<C.length;N++){const D=C[N],T=[];for(let L=0;L<D.length;L++){const Q=D[L],j=""+N+L;T.push(j),E[j]={node:Q,lastCount:0},k[j]={};for(let B=0;B<z.length;B++){const $=z[B];E[$]&&E[$].node.mode===Q.mode?(k[$][j]=v(E[$].lastCount+Q.length,Q.mode)-v(E[$].lastCount,Q.mode),E[$].lastCount+=Q.length):(E[$]&&(E[$].lastCount=Q.length),k[$][j]=v(Q.length,Q.mode)+4+t.getCharCountIndicator(Q.mode,M))}}z=T}for(let N=0;N<z.length;N++)k[z[N]].end=0;return{map:k,table:E}}function w(C,M){let E;const k=t.getBestModeForData(C);if(E=t.from(M,k),E!==t.BYTE&&E.bit<k.bit)throw new Error('"'+C+'" cannot be encoded with mode '+t.toString(E)+`.
701
- Suggested mode is: `+t.toString(k));switch(E===t.KANJI&&!f.isKanjiModeEnabled()&&(E=t.BYTE),E){case t.NUMERIC:return new i(C);case t.ALPHANUMERIC:return new a(C);case t.KANJI:return new o(C);case t.BYTE:return new l(C)}}e.fromArray=function(M){return M.reduce(function(E,k){return typeof k=="string"?E.push(w(k,null)):k.data&&E.push(w(k.data,k.mode)),E},[])},e.fromString=function(M,E){const k=p(M,f.isKanjiModeEnabled()),z=S(k),N=_(z,E),D=h.find_path(N.map,"start","end"),T=[];for(let L=1;L<D.length-1;L++)T.push(N.table[D[L]].node);return e.fromArray(b(T))},e.rawSplit=function(M){return e.fromArray(p(M,f.isKanjiModeEnabled()))}})(yp)),yp}var Ex;function QD(){if(Ex)return tp;Ex=1;const e=bs(),t=s0(),i=zD(),a=DD(),l=LD(),o=BD(),c=jD(),f=FC(),h=qD(),y=VD(),g=PD(),p=_s(),v=GD();function b(N,D){const T=N.size,L=o.getPositions(D);for(let Q=0;Q<L.length;Q++){const j=L[Q][0],B=L[Q][1];for(let $=-1;$<=7;$++)if(!(j+$<=-1||T<=j+$))for(let G=-1;G<=7;G++)B+G<=-1||T<=B+G||($>=0&&$<=6&&(G===0||G===6)||G>=0&&G<=6&&($===0||$===6)||$>=2&&$<=4&&G>=2&&G<=4?N.set(j+$,B+G,!0,!0):N.set(j+$,B+G,!1,!0))}}function S(N){const D=N.size;for(let T=8;T<D-8;T++){const L=T%2===0;N.set(T,6,L,!0),N.set(6,T,L,!0)}}function _(N,D){const T=l.getPositions(D);for(let L=0;L<T.length;L++){const Q=T[L][0],j=T[L][1];for(let B=-2;B<=2;B++)for(let $=-2;$<=2;$++)B===-2||B===2||$===-2||$===2||B===0&&$===0?N.set(Q+B,j+$,!0,!0):N.set(Q+B,j+$,!1,!0)}}function w(N,D){const T=N.size,L=y.getEncodedBits(D);let Q,j,B;for(let $=0;$<18;$++)Q=Math.floor($/3),j=$%3+T-8-3,B=(L>>$&1)===1,N.set(Q,j,B,!0),N.set(j,Q,B,!0)}function C(N,D,T){const L=N.size,Q=g.getEncodedBits(D,T);let j,B;for(j=0;j<15;j++)B=(Q>>j&1)===1,j<6?N.set(j,8,B,!0):j<8?N.set(j+1,8,B,!0):N.set(L-15+j,8,B,!0),j<8?N.set(8,L-j-1,B,!0):j<9?N.set(8,15-j-1+1,B,!0):N.set(8,15-j-1,B,!0);N.set(L-8,8,1,!0)}function M(N,D){const T=N.size;let L=-1,Q=T-1,j=7,B=0;for(let $=T-1;$>0;$-=2)for($===6&&$--;;){for(let G=0;G<2;G++)if(!N.isReserved(Q,$-G)){let re=!1;B<D.length&&(re=(D[B]>>>j&1)===1),N.set(Q,$-G,re),j--,j===-1&&(B++,j=7)}if(Q+=L,Q<0||T<=Q){Q-=L,L=-L;break}}}function E(N,D,T){const L=new i;T.forEach(function(G){L.put(G.mode.bit,4),L.put(G.getLength(),p.getCharCountIndicator(G.mode,N)),G.write(L)});const Q=e.getSymbolTotalCodewords(N),j=f.getTotalCodewordsCount(N,D),B=(Q-j)*8;for(L.getLengthInBits()+4<=B&&L.put(0,4);L.getLengthInBits()%8!==0;)L.putBit(0);const $=(B-L.getLengthInBits())/8;for(let G=0;G<$;G++)L.put(G%2?17:236,8);return k(L,N,D)}function k(N,D,T){const L=e.getSymbolTotalCodewords(D),Q=f.getTotalCodewordsCount(D,T),j=L-Q,B=f.getBlocksCount(D,T),$=L%B,G=B-$,re=Math.floor(L/B),U=Math.floor(j/B),Y=U+1,Z=re-U,K=new h(Z);let J=0;const O=new Array(B),P=new Array(B);let ae=0;const ue=new Uint8Array(N.buffer);for(let he=0;he<B;he++){const Ue=he<G?U:Y;O[he]=ue.slice(J,J+Ue),P[he]=K.encode(O[he]),J+=Ue,ae=Math.max(ae,Ue)}const de=new Uint8Array(L);let me=0,be,ye;for(be=0;be<ae;be++)for(ye=0;ye<B;ye++)be<O[ye].length&&(de[me++]=O[ye][be]);for(be=0;be<Z;be++)for(ye=0;ye<B;ye++)de[me++]=P[ye][be];return de}function z(N,D,T,L){let Q;if(Array.isArray(N))Q=v.fromArray(N);else if(typeof N=="string"){let re=D;if(!re){const U=v.rawSplit(N);re=y.getBestVersionForData(U,T)}Q=v.fromString(N,re||40)}else throw new Error("Invalid data");const j=y.getBestVersionForData(Q,T);if(!j)throw new Error("The amount of data is too big to be stored in a QR Code");if(!D)D=j;else if(D<j)throw new Error(`
702
- The chosen QR Code version cannot contain this amount of data.
703
- Minimum version required to store current data is: `+j+`.
704
- `);const B=E(D,T,Q),$=e.getSymbolSize(D),G=new a($);return b(G,D),S(G),_(G,D),C(G,T,0),D>=7&&w(G,D),M(G,B),isNaN(L)&&(L=c.getBestMask(G,C.bind(null,G,T))),c.applyMask(L,G),C(G,T,L),{modules:G,version:D,errorCorrectionLevel:T,maskPattern:L,segments:Q}}return tp.create=function(D,T){if(typeof D>"u"||D==="")throw new Error("No input text");let L=t.M,Q,j;return typeof T<"u"&&(L=t.from(T.errorCorrectionLevel,t.M),Q=y.from(T.version),j=c.from(T.maskPattern),T.toSJISFunc&&e.setToSJISFunction(T.toSJISFunc)),z(D,Q,L,j)},tp}var _p={},Sp={},Cx;function QC(){return Cx||(Cx=1,(function(e){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let a=i.slice().replace("#","").split("");if(a.length<3||a.length===5||a.length>8)throw new Error("Invalid hex color: "+i);(a.length===3||a.length===4)&&(a=Array.prototype.concat.apply([],a.map(function(o){return[o,o]}))),a.length===6&&a.push("F","F");const l=parseInt(a.join(""),16);return{r:l>>24&255,g:l>>16&255,b:l>>8&255,a:l&255,hex:"#"+a.slice(0,6).join("")}}e.getOptions=function(a){a||(a={}),a.color||(a.color={});const l=typeof a.margin>"u"||a.margin===null||a.margin<0?4:a.margin,o=a.width&&a.width>=21?a.width:void 0,c=a.scale||4;return{width:o,scale:o?4:c,margin:l,color:{dark:t(a.color.dark||"#000000ff"),light:t(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},e.getScale=function(a,l){return l.width&&l.width>=a+l.margin*2?l.width/(a+l.margin*2):l.scale},e.getImageWidth=function(a,l){const o=e.getScale(a,l);return Math.floor((a+l.margin*2)*o)},e.qrToImageData=function(a,l,o){const c=l.modules.size,f=l.modules.data,h=e.getScale(c,o),y=Math.floor((c+o.margin*2)*h),g=o.margin*h,p=[o.color.light,o.color.dark];for(let v=0;v<y;v++)for(let b=0;b<y;b++){let S=(v*y+b)*4,_=o.color.light;if(v>=g&&b>=g&&v<y-g&&b<y-g){const w=Math.floor((v-g)/h),C=Math.floor((b-g)/h);_=p[f[w*c+C]?1:0]}a[S++]=_.r,a[S++]=_.g,a[S++]=_.b,a[S]=_.a}}})(Sp)),Sp}var Mx;function XD(){return Mx||(Mx=1,(function(e){const t=QC();function i(l,o,c){l.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=c,o.width=c,o.style.height=c+"px",o.style.width=c+"px"}function a(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(o,c,f){let h=f,y=c;typeof h>"u"&&(!c||!c.getContext)&&(h=c,c=void 0),c||(y=a()),h=t.getOptions(h);const g=t.getImageWidth(o.modules.size,h),p=y.getContext("2d"),v=p.createImageData(g,g);return t.qrToImageData(v.data,o,h),i(p,y,g),p.putImageData(v,0,0),y},e.renderToDataURL=function(o,c,f){let h=f;typeof h>"u"&&(!c||!c.getContext)&&(h=c,c=void 0),h||(h={});const y=e.render(o,c,h),g=h.type||"image/png",p=h.rendererOpts||{};return y.toDataURL(g,p.quality)}})(_p)),_p}var xp={},kx;function KD(){if(kx)return xp;kx=1;const e=QC();function t(l,o){const c=l.a/255,f=o+'="'+l.hex+'"';return c<1?f+" "+o+'-opacity="'+c.toFixed(2).slice(1)+'"':f}function i(l,o,c){let f=l+o;return typeof c<"u"&&(f+=" "+c),f}function a(l,o,c){let f="",h=0,y=!1,g=0;for(let p=0;p<l.length;p++){const v=Math.floor(p%o),b=Math.floor(p/o);!v&&!y&&(y=!0),l[p]?(g++,p>0&&v>0&&l[p-1]||(f+=y?i("M",v+c,.5+b+c):i("m",h,0),h=0,y=!1),v+1<o&&l[p+1]||(f+=i("h",g),g=0)):h++}return f}return xp.render=function(o,c,f){const h=e.getOptions(c),y=o.modules.size,g=o.modules.data,p=y+h.margin*2,v=h.color.light.a?"<path "+t(h.color.light,"fill")+' d="M0 0h'+p+"v"+p+'H0z"/>':"",b="<path "+t(h.color.dark,"stroke")+' d="'+a(g,y,h.margin)+'"/>',S='viewBox="0 0 '+p+" "+p+'"',w='<svg xmlns="http://www.w3.org/2000/svg" '+(h.width?'width="'+h.width+'" height="'+h.width+'" ':"")+S+' shape-rendering="crispEdges">'+v+b+`</svg>
705
- `;return typeof f=="function"&&f(null,w),w},xp}var Ax;function JD(){if(Ax)return cl;Ax=1;const e=OD(),t=QD(),i=XD(),a=KD();function l(o,c,f,h,y){const g=[].slice.call(arguments,1),p=g.length,v=typeof g[p-1]=="function";if(!v&&!e())throw new Error("Callback required as last argument");if(v){if(p<2)throw new Error("Too few arguments provided");p===2?(y=f,f=c,c=h=void 0):p===3&&(c.getContext&&typeof y>"u"?(y=h,h=void 0):(y=h,h=f,f=c,c=void 0))}else{if(p<1)throw new Error("Too few arguments provided");return p===1?(f=c,c=h=void 0):p===2&&!c.getContext&&(h=f,f=c,c=void 0),new Promise(function(b,S){try{const _=t.create(f,h);b(o(_,c,h))}catch(_){S(_)}})}try{const b=t.create(f,h);y(null,o(b,c,h))}catch(b){y(b)}}return cl.create=t.create,cl.toCanvas=l.bind(null,i.render),cl.toDataURL=l.bind(null,i.renderToDataURL),cl.toString=l.bind(null,function(o,c,f){return a.render(o,f)}),cl}var WD=JD();const dj=Er(WD);export{X7 as $,Ll as A,QB as B,ZB as C,tj as D,rj as E,i6 as F,M6 as G,jt as H,nj as I,zB as J,oL as K,eB as L,JL as M,gL as N,KL as O,WB as P,GL as Q,n7 as R,sB as S,hL as T,ML as U,cL as V,gB as W,Mg as X,rB as Y,xL as Z,TA as _,AA as a,EL as a$,OB as a0,jL as a1,R7 as a2,O7 as a3,z7 as a4,uB as a5,D7 as a6,aB as a7,A7 as a8,DB as a9,QL as aA,L7 as aB,l7 as aC,c7 as aD,y7 as aE,f7 as aF,qr as aG,o7 as aH,u7 as aI,uL as aJ,C7 as aK,vw as aL,P7 as aM,V7 as aN,bA as aO,kB as aP,g7 as aQ,FL as aR,AL as aS,PB as aT,IL as aU,lB as aV,Q7 as aW,_B as aX,eL as aY,nB as aZ,rL as a_,F7 as aa,NB as ab,k7 as ac,j7 as ad,qB as ae,HB as af,LB as ag,UB as ah,VB as ai,jB as aj,BB as ak,ve as al,N7 as am,MB as an,dB as ao,bB as ap,vB as aq,YL as ar,mB as as,Y7 as at,B7 as au,XL as av,Eu as aw,DL as ax,nL as ay,T7 as az,v7 as b,BL as b$,sL as b0,$L as b1,W7 as b2,d7 as b3,I7 as b4,Z7 as b5,SB as b6,PL as b7,fB as b8,NL as b9,TL as bA,pB as bB,vL as bC,LL as bD,OL as bE,RL as bF,WL as bG,fj as bH,HL as bI,qL as bJ,G7 as bK,iL as bL,J7 as bM,$7 as bN,aL as bO,dj as bP,ZL as bQ,oB as bR,K7 as bS,zL as bT,tB as bU,CB as bV,yL as bW,lL as bX,AB as bY,kL as bZ,yB as b_,fL as ba,q7 as bb,U7 as bc,wB as bd,iB as be,cB as bf,xB as bg,M7 as bh,wL as bi,tL as bj,_L as bk,mL as bl,lj as bm,cj as bn,uj as bo,oj as bp,Xf as bq,H7 as br,hB as bs,SL as bt,UL as bu,TB as bv,dL as bw,RB as bx,EB as by,pL as bz,S7 as c,VL as c0,CL as c1,bL as c2,m7 as c3,Zk as c4,h7 as c5,a7 as c6,r7 as c7,s7 as c8,p7 as c9,Tf as d,b7 as e,x7 as f,nR as g,E7 as h,IB as i,se as j,FN as k,$B as l,GB as m,b6 as n,KB as o,FB as p,JB as q,R as r,w7 as s,XB as t,_7 as u,ej as v,LN as w,ij as x,aj as y,sj as z};
706
- //# sourceMappingURL=vendor-KARp8LAR.js.map