(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&l(u)}).observe(document,{childList:!0,subtree:!0});function a(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(n){if(n.ep)return;n.ep=!0;const i=a(n);fetch(n.href,i)}})();var or={exports:{}},Si={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Mm=Symbol.for("react.transitional.element"),Am=Symbol.for("react.fragment");function rr(e,t,a){var l=null;if(a!==void 0&&(l=""+a),t.key!==void 0&&(l=""+t.key),"key"in t){a={};for(var n in t)n!=="key"&&(a[n]=t[n])}else a=t;return t=a.ref,{$$typeof:Mm,type:e,key:l,ref:t!==void 0?t:null,props:a}}Si.Fragment=Am;Si.jsx=rr;Si.jsxs=rr;or.exports=Si;var y=or.exports,fr={exports:{}},O={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Tc=Symbol.for("react.transitional.element"),Gm=Symbol.for("react.portal"),Nm=Symbol.for("react.fragment"),Om=Symbol.for("react.strict_mode"),qm=Symbol.for("react.profiler"),Um=Symbol.for("react.consumer"),Dm=Symbol.for("react.context"),jm=Symbol.for("react.forward_ref"),Cm=Symbol.for("react.suspense"),Rm=Symbol.for("react.memo"),dr=Symbol.for("react.lazy"),Hm=Symbol.for("react.activity"),xs=Symbol.iterator;function Bm(e){return e===null||typeof e!="object"?null:(e=xs&&e[xs]||e["@@iterator"],typeof e=="function"?e:null)}var mr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pr=Object.assign,yr={};function al(e,t,a){this.props=e,this.context=t,this.refs=yr,this.updater=a||mr}al.prototype.isReactComponent={};al.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};al.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gr(){}gr.prototype=al.prototype;function xc(e,t,a){this.props=e,this.context=t,this.refs=yr,this.updater=a||mr}var Ec=xc.prototype=new gr;Ec.constructor=xc;pr(Ec,al.prototype);Ec.isPureReactComponent=!0;var Es=Array.isArray;function zu(){}var W={H:null,A:null,T:null,S:null},vr=Object.prototype.hasOwnProperty;function _c(e,t,a){var l=a.ref;return{$$typeof:Tc,type:e,key:t,ref:l!==void 0?l:null,props:a}}function Ym(e,t){return _c(e.type,t,e.props)}function zc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tc}function wm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var _s=/\/+/g;function Qi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wm(""+e.key):t.toString(36)}function Qm(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(zu,zu):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ea(e,t,a,l,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(i){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case Tc:case Gm:u=!0;break;case dr:return u=e._init,Ea(u(e._payload),t,a,l,n)}}if(u)return n=n(e),u=l===""?"."+Qi(e,0):l,Es(n)?(a="",u!=null&&(a=u.replace(_s,"$&/")+"/"),Ea(n,t,a,"",function(f){return f})):n!=null&&(zc(n)&&(n=Ym(n,a+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(_s,"$&/")+"/")+u)),t.push(n)),1;u=0;var c=l===""?".":l+":";if(Es(e))for(var s=0;s>>1,de=E[ae];if(0>>1;aen(wi,U))ean(dn,wi)?(E[ae]=dn,E[ea]=U,ae=ea):(E[ae]=wi,E[fn]=U,ae=fn);else if(ean(dn,U))E[ae]=dn,E[ea]=U,ae=ea;else break e}}return j}function n(E,j){var U=E.sortIndex-j.sortIndex;return U!==0?U:E.id-j.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var s=[],f=[],g=1,v=null,d=3,p=!1,S=!1,x=!1,D=!1,r=typeof setTimeout=="function"?setTimeout:null,o=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;function h(E){for(var j=a(f);j!==null;){if(j.callback===null)l(f);else if(j.startTime<=E)l(f),j.sortIndex=j.expirationTime,t(s,j);else break;j=a(f)}}function _(E){if(x=!1,h(E),!S)if(a(s)!==null)S=!0,z||(z=!0,_e());else{var j=a(f);j!==null&&Yi(_,j.startTime-E)}}var z=!1,T=-1,M=5,A=-1;function N(){return D?!0:!(e.unstable_now()-AE&&N());){var ae=v.callback;if(typeof ae=="function"){v.callback=null,d=v.priorityLevel;var de=ae(v.expirationTime<=E);if(E=e.unstable_now(),typeof de=="function"){v.callback=de,h(E),j=!0;break t}v===a(s)&&l(s),h(E)}else l(s);v=a(s)}if(v!==null)j=!0;else{var rn=a(f);rn!==null&&Yi(_,rn.startTime-E),j=!1}}break e}finally{v=null,d=U,p=!1}j=void 0}}finally{j?_e():z=!1}}}var _e;if(typeof m=="function")_e=function(){m(ie)};else if(typeof MessageChannel<"u"){var Mt=new MessageChannel,rl=Mt.port2;Mt.port1.onmessage=ie,_e=function(){rl.postMessage(null)}}else _e=function(){r(ie,0)};function Yi(E,j){T=r(function(){E(e.unstable_now())},j)}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(E){E.callback=null},e.unstable_forceFrameRate=function(E){0>E||125ae?(E.sortIndex=U,t(f,E),a(s)===null&&E===a(f)&&(x?(o(T),T=-1):x=!0,Yi(_,U-ae))):(E.sortIndex=de,t(s,E),S||p||(S=!0,z||(z=!0,_e()))),E},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(E){var j=d;return function(){var U=d;d=j;try{return E.apply(this,arguments)}finally{d=U}}}})(Sr);br.exports=Sr;var Zm=br.exports,Tr={exports:{}},Ee={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Vm=P;function xr(e){var t="https://react.dev/errors/"+e;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Er)}catch(e){console.error(e)}}Er(),Tr.exports=Ee;var $m=Tr.exports;/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var fe=Zm,_r=P,km=$m;function b(e){var t="https://react.dev/errors/"+e;if(1Aa||(e.current=qu[Aa],qu[Aa]=null,Aa--)}function K(e,t){Aa++,qu[Aa]=e.current,e.current=t}var nt=it(null),Hl=it(null),Yt=it(null),Zn=it(null);function Vn(e,t){switch(K(Yt,t),K(Hl,e),K(nt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jo(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jo(t),e=Fd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ye(nt),K(nt,e)}function Va(){ye(nt),ye(Hl),ye(Yt)}function Uu(e){e.memoizedState!==null&&K(Zn,e);var t=nt.current,a=Fd(t,e.type);t!==a&&(K(Hl,e),K(nt,a))}function Kn(e){Hl.current===e&&(ye(nt),ye(Hl)),Zn.current===e&&(ye(Zn),$l._currentValue=ua)}var Li,Gs;function aa(e){if(Li===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Li=t&&t[1]||"",Gs=-1)":-1n||s[l]!==f[n]){var g=` `+s[l].replace(" at new "," at ");return e.displayName&&g.includes("")&&(g=g.replace("",e.displayName)),g}while(1<=l&&0<=n);break}}}finally{Xi=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?aa(a):""}function e0(e,t){switch(e.tag){case 26:case 27:case 5:return aa(e.type);case 16:return aa("Lazy");case 13:return e.child!==t&&t!==null?aa("Suspense Fallback"):aa("Suspense");case 19:return aa("SuspenseList");case 0:case 15:return Zi(e.type,!1);case 11:return Zi(e.type.render,!1);case 1:return Zi(e.type,!0);case 31:return aa("Activity");default:return""}}function Ns(e){try{var t="",a=null;do t+=e0(e,a),a=e,e=e.return;while(e);return t}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}var Du=Object.prototype.hasOwnProperty,Gc=fe.unstable_scheduleCallback,Vi=fe.unstable_cancelCallback,t0=fe.unstable_shouldYield,a0=fe.unstable_requestPaint,Re=fe.unstable_now,l0=fe.unstable_getCurrentPriorityLevel,qr=fe.unstable_ImmediatePriority,Ur=fe.unstable_UserBlockingPriority,Jn=fe.unstable_NormalPriority,n0=fe.unstable_LowPriority,Dr=fe.unstable_IdlePriority,i0=fe.log,u0=fe.unstable_setDisableYieldValue,Il=null,He=null;function jt(e){if(typeof i0=="function"&&u0(e),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(Il,e)}catch{}}var Be=Math.clz32?Math.clz32:o0,c0=Math.log,s0=Math.LN2;function o0(e){return e>>>=0,e===0?32:31-(c0(e)/s0|0)|0}var yn=256,gn=262144,vn=4194304;function la(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ei(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,i=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var c=l&134217727;return c!==0?(l=c&~i,l!==0?n=la(l):(u&=c,u!==0?n=la(u):a||(a=c&~e,a!==0&&(n=la(a))))):(c=l&~i,c!==0?n=la(c):u!==0?n=la(u):a||(a=l&~e,a!==0&&(n=la(a)))),n===0?0:t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:n}function Pl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function r0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 jr(){var e=vn;return vn<<=1,!(vn&62914560)&&(vn=4194304),e}function Ki(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function en(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function f0(e,t,a,l,n,i){var u=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var c=e.entanglements,s=e.expirationTimes,f=e.hiddenUpdates;for(a=u&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var v0=/[\n"\\]/g;function Ke(e){return e.replace(v0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ru(e,t,a,l,n,i,u,c){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xe(t)):e.value!==""+Xe(t)&&(e.value=""+Xe(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?Hu(e,u,Xe(t)):a!=null?Hu(e,u,Xe(a)):l!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.name=""+Xe(c):e.removeAttribute("name")}function Xr(e,t,a,l,n,i,u,c){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Cu(e);return}a=a!=null?""+Xe(a):"",t=t!=null?""+Xe(t):a,c||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=c?e.checked:!!l,e.defaultChecked=!!l,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),Cu(e)}function Hu(e,t,a){t==="number"&&$n(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ya(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yu=!1;if(St)try{var dl={};Object.defineProperty(dl,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",dl,dl),window.removeEventListener("test",dl,dl)}catch{Yu=!1}var Ct=null,jc=null,qn=null;function $r(){if(qn)return qn;var e,t=jc,a=t.length,l,n="value"in Ct?Ct.value:Ct.textContent,i=n.length;for(e=0;e=_l),ws=" ",Qs=!1;function Wr(e,t){switch(e){case"keyup":return V0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oa=!1;function J0(e,t){switch(e){case"compositionend":return Fr(t);case"keypress":return t.which!==32?null:(Qs=!0,ws);case"textInput":return e=t.data,e===ws&&Qs?null:e;default:return null}}function $0(e,t){if(Oa)return e==="compositionend"||!Rc&&Wr(e,t)?(e=$r(),qn=jc=Ct=null,Oa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Ks(a)}}function tf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function af(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$n(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=$n(e.document)}return t}function Hc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var a1=St&&"documentMode"in document&&11>=document.documentMode,qa=null,wu=null,Ml=null,Qu=!1;function $s(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Qu||qa==null||qa!==$n(l)||(l=qa,"selectionStart"in l&&Hc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ml&&wl(Ml,l)||(Ml=l,l=di(wu,"onSelect"),0>=u,n-=u,tt=1<<32-Be(t)+n|a<M?(A=T,T=null):A=T.sibling;var N=d(r,T,m[M],h);if(N===null){T===null&&(T=A);break}e&&T&&N.alternate===null&&t(r,T),o=i(N,o,M),z===null?_=N:z.sibling=N,z=N,T=A}if(M===m.length)return a(r,T),B&&dt(r,M),_;if(T===null){for(;MM?(A=T,T=null):A=T.sibling;var ie=d(r,T,N.value,h);if(ie===null){T===null&&(T=A);break}e&&T&&ie.alternate===null&&t(r,T),o=i(ie,o,M),z===null?_=ie:z.sibling=ie,z=ie,T=A}if(N.done)return a(r,T),B&&dt(r,M),_;if(T===null){for(;!N.done;M++,N=m.next())N=v(r,N.value,h),N!==null&&(o=i(N,o,M),z===null?_=N:z.sibling=N,z=N);return B&&dt(r,M),_}for(T=l(T);!N.done;M++,N=m.next())N=p(T,r,M,N.value,h),N!==null&&(e&&N.alternate!==null&&T.delete(N.key===null?M:N.key),o=i(N,o,M),z===null?_=N:z.sibling=N,z=N);return e&&T.forEach(function(_e){return t(r,_e)}),B&&dt(r,M),_}function D(r,o,m,h){if(typeof m=="object"&&m!==null&&m.type===Ma&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case pn:e:{for(var _=m.key;o!==null;){if(o.key===_){if(_=m.type,_===Ma){if(o.tag===7){a(r,o.sibling),h=n(o,m.props.children),h.return=r,r=h;break e}}else if(o.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Gt&&na(_)===o.type){a(r,o.sibling),h=n(o,m.props),pl(h,m),h.return=r,r=h;break e}a(r,o);break}else t(r,o);o=o.sibling}m.type===Ma?(h=ca(m.props.children,r.mode,h,m.key),h.return=r,r=h):(h=Dn(m.type,m.key,m.props,null,r.mode,h),pl(h,m),h.return=r,r=h)}return u(r);case hl:e:{for(_=m.key;o!==null;){if(o.key===_)if(o.tag===4&&o.stateNode.containerInfo===m.containerInfo&&o.stateNode.implementation===m.implementation){a(r,o.sibling),h=n(o,m.children||[]),h.return=r,r=h;break e}else{a(r,o);break}else t(r,o);o=o.sibling}h=tu(m,r.mode,h),h.return=r,r=h}return u(r);case Gt:return m=na(m),D(r,o,m,h)}if(bl(m))return S(r,o,m,h);if(fl(m)){if(_=fl(m),typeof _!="function")throw Error(b(150));return m=_.call(m),x(r,o,m,h)}if(typeof m.then=="function")return D(r,o,Tn(m),h);if(m.$$typeof===pt)return D(r,o,Sn(r,m),h);xn(r,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,o!==null&&o.tag===6?(a(r,o.sibling),h=n(o,m),h.return=r,r=h):(a(r,o),h=eu(m,r.mode,h),h.return=r,r=h),u(r)):a(r,o)}return function(r,o,m,h){try{Xl=0;var _=D(r,o,m,h);return La=null,_}catch(T){if(T===ul||T===Ni)throw T;var z=je(29,T,null,r.mode);return z.lanes=h,z.return=r,z}finally{}}}var ma=hf(!0),bf=hf(!1),Nt=!1;function Kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $u(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Qt(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Lt(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,Y&2){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Wn(e),rf(e,null,a),t}return Gi(e,l,t,a),Wn(e)}function Gl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Rr(e,a)}}function lu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var u={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?n=i=u:i=i.next=u,a=a.next}while(a!==null);i===null?n=i=t:i=i.next=t}else n=i=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ku=!1;function Nl(){if(ku){var e=Qa;if(e!==null)throw e}}function Ol(e,t,a,l){ku=!1;var n=e.updateQueue;Nt=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var s=c,f=s.next;s.next=null,u===null?i=f:u.next=f,u=s;var g=e.alternate;g!==null&&(g=g.updateQueue,c=g.lastBaseUpdate,c!==u&&(c===null?g.firstBaseUpdate=f:c.next=f,g.lastBaseUpdate=s))}if(i!==null){var v=n.baseState;u=0,g=f=s=null,c=i;do{var d=c.lane&-536870913,p=d!==c.lane;if(p?(H&d)===d:(l&d)===d){d!==0&&d===$a&&(ku=!0),g!==null&&(g=g.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{var S=e,x=c;d=t;var D=a;switch(x.tag){case 1:if(S=x.payload,typeof S=="function"){v=S.call(D,v,d);break e}v=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=x.payload,d=typeof S=="function"?S.call(D,v,d):S,d==null)break e;v=F({},v,d);break e;case 2:Nt=!0}}d=c.callback,d!==null&&(e.flags|=64,p&&(e.flags|=8192),p=n.callbacks,p===null?n.callbacks=[d]:p.push(d))}else p={lane:d,tag:c.tag,payload:c.payload,callback:c.callback,next:null},g===null?(f=g=p,s=v):g=g.next=p,u|=d;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;p=c,c=p.next,p.next=null,n.lastBaseUpdate=p,n.shared.pending=null}}while(!0);g===null&&(s=v),n.baseState=s,n.firstBaseUpdate=f,n.lastBaseUpdate=g,i===null&&(n.shared.lanes=0),Ft|=u,e.lanes=u,e.memoizedState=v}}function Sf(e,t){if(typeof e!="function")throw Error(b(191,e));e.call(t)}function Tf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ei?i:8;var u=G.T,c={};G.T=c,is(e,!1,t,a);try{var s=n(),f=G.S;if(f!==null&&f(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var g=f1(s,l);ql(e,t,g,Ye(e))}else ql(e,t,l,Ye(e))}catch(v){ql(e,t,{then:function(){},status:"rejected",reason:v},Ye())}finally{w.p=i,u!==null&&c.types!==null&&(u.types=c.types),G.T=u}}function v1(){}function ec(e,t,a,l){if(e.tag!==5)throw Error(b(476));var n=Kf(e).queue;Vf(e,n,t,ua,a===null?v1:function(){return Jf(e),a(l)})}function Kf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ua,baseState:ua,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xt,lastRenderedState:ua},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xt,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jf(e){var t=Kf(e);t.next===null&&(t=e.alternate.memoizedState),ql(e,t.next.queue,{},Ye())}function ns(){return be($l)}function $f(){return ne().memoizedState}function kf(){return ne().memoizedState}function h1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ye();e=Qt(a);var l=Lt(t,e,a);l!==null&&(Ne(l,t,a),Gl(l,t,a)),t={cache:Xc()},e.payload=t;return}t=t.return}}function b1(e,t,a){var l=Ye();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Di(e)?Ff(t,a):(a=Yc(e,t,a,l),a!==null&&(Ne(a,e,l),If(a,t,l)))}function Wf(e,t,a){var l=Ye();ql(e,t,a,l)}function ql(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Di(e))Ff(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,c=i(u,a);if(n.hasEagerState=!0,n.eagerState=c,we(c,u))return Gi(e,t,n,0),V===null&&Ai(),!1}catch{}finally{}if(a=Yc(e,t,n,l),a!==null)return Ne(a,e,l),If(a,t,l),!0}return!1}function is(e,t,a,l){if(l={lane:2,revertLane:ps(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Di(e)){if(t)throw Error(b(479))}else t=Yc(e,a,l,2),t!==null&&Ne(t,e,2)}function Di(e){var t=e.alternate;return e===q||t!==null&&t===q}function Ff(e,t){Xa=ai=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function If(e,t,a){if(a&4194048){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Rr(e,a)}}var Vl={readContext:be,use:qi,useCallback:ee,useContext:ee,useEffect:ee,useImperativeHandle:ee,useLayoutEffect:ee,useInsertionEffect:ee,useMemo:ee,useReducer:ee,useRef:ee,useState:ee,useDebugValue:ee,useDeferredValue:ee,useTransition:ee,useSyncExternalStore:ee,useId:ee,useHostTransitionStatus:ee,useFormState:ee,useActionState:ee,useOptimistic:ee,useMemoCache:ee,useCacheRefresh:ee};Vl.useEffectEvent=ee;var Pf={readContext:be,use:qi,useCallback:function(e,t){return Te().memoizedState=[e,t===void 0?null:t],e},useContext:be,useEffect:oo,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Rn(4194308,4,wf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Rn(4194308,4,e,t)},useInsertionEffect:function(e,t){Rn(4,2,e,t)},useMemo:function(e,t){var a=Te();t=t===void 0?null:t;var l=e();if(pa){jt(!0);try{e()}finally{jt(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Te();if(a!==void 0){var n=a(t);if(pa){jt(!0);try{a(t)}finally{jt(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=b1.bind(null,q,e),[l.memoizedState,e]},useRef:function(e){var t=Te();return e={current:e},t.memoizedState=e},useState:function(e){e=Iu(e);var t=e.queue,a=Wf.bind(null,q,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:as,useDeferredValue:function(e,t){var a=Te();return ls(a,e,t)},useTransition:function(){var e=Iu(!1);return e=Vf.bind(null,q,e.queue,!0,!1),Te().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=q,n=Te();if(B){if(a===void 0)throw Error(b(407));a=a()}else{if(a=t(),V===null)throw Error(b(349));H&127||Mf(l,t,a)}n.memoizedState=a;var i={value:a,getSnapshot:t};return n.queue=i,oo(Gf.bind(null,l,i,e),[e]),l.flags|=2048,Wa(9,{destroy:void 0},Af.bind(null,l,i,a,t),null),a},useId:function(){var e=Te(),t=V.identifierPrefix;if(B){var a=at,l=tt;a=(l&~(1<<32-Be(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=li++,0<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?u.createElement(n,{is:l.is}):u.createElement(n)}}i[ve]=t,i[Oe]=l;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=i;e:switch(Se(i,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&st(t)}}return $(t),fu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&st(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(b(166));if(e=Yt.current,Ta(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=he,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[ve]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Wd(e.nodeValue,a)),e||kt(t,!0)}else e=mi(e).createTextNode(l),e[ve]=t,t.stateNode=e}return $(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Ta(t),a!==null){if(e===null){if(!l)throw Error(b(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(557));e[ve]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;$(t),e=!1}else a=au(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(De(t),t):(De(t),null);if(t.flags&128)throw Error(b(558))}return $(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ta(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(b(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(b(317));n[ve]=t}else fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;$(t),n=!1}else n=au(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(De(t),t):(De(t),null)}return De(t),t.flags&128?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),En(t,t.updateQueue),$(t),null);case 4:return Va(),e===null&&ys(t.stateNode.containerInfo),$(t),null;case 10:return ht(t.type),$(t),null;case 19:if(ye(le),l=t.memoizedState,l===null)return $(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)yl(l,!1);else{if(te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=ti(e),i!==null){for(t.flags|=128,yl(l,!1),e=i.updateQueue,t.updateQueue=e,En(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)ff(a,e),a=a.sibling;return K(le,le.current&1|2),B&&dt(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Re()>ci&&(t.flags|=128,n=!0,yl(l,!1),t.lanes=4194304)}else{if(!n)if(e=ti(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,En(t,e),yl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!B)return $(t),null}else 2*Re()-l.renderingStartTime>ci&&a!==536870912&&(t.flags|=128,n=!0,yl(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Re(),e.sibling=null,a=le.current,K(le,n?a&1|2:a&1),B&&dt(t,l.treeForkCount),e):($(t),null);case 22:case 23:return De(t),Jc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?a&536870912&&!(t.flags&128)&&($(t),t.subtreeFlags&6&&(t.flags|=8192)):$(t),a=t.updateQueue,a!==null&&En(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&ye(sa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ht(se),$(t),null;case 25:return null;case 30:return null}throw Error(b(156,t.tag))}function _1(e,t){switch(Lc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ht(se),Va(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Kn(t),null;case 31:if(t.memoizedState!==null){if(De(t),t.alternate===null)throw Error(b(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(De(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(le),null;case 4:return Va(),null;case 10:return ht(t.type),null;case 22:case 23:return De(t),Jc(),e!==null&&ye(sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ht(se),null;case 25:return null;default:return null}}function fd(e,t){switch(Lc(t),t.tag){case 3:ht(se),Va();break;case 26:case 27:case 5:Kn(t);break;case 4:Va();break;case 31:t.memoizedState!==null&&De(t);break;case 13:De(t);break;case 19:ye(le);break;case 10:ht(t.type);break;case 22:case 23:De(t),Jc(),e!==null&&ye(sa);break;case 24:ht(se)}}function un(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var i=a.create,u=a.inst;l=i(),u.destroy=l}a=a.next}while(a!==n)}}catch(c){L(t,t.return,c)}}function Wt(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){var u=l.inst,c=u.destroy;if(c!==void 0){u.destroy=void 0,n=t;var s=a,f=c;try{f()}catch(g){L(n,s,g)}}}l=l.next}while(l!==i)}}catch(g){L(t,t.return,g)}}function dd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Tf(t,a)}catch(l){L(e,e.return,l)}}}function md(e,t,a){a.props=ya(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){L(e,t,l)}}function Ul(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){L(e,t,n)}}function lt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){L(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){L(e,t,n)}else a.current=null}function pd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){L(e,e.return,n)}}function du(e,t,a){try{var l=e.stateNode;K1(l,e.type,a,t),l[Oe]=t}catch(n){L(e,e.return,n)}}function yd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pt(e.type)||e.tag===4}function mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Pt(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ic(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=yt));else if(l!==4&&(l===27&&Pt(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ic(e,t,a),e=e.sibling;e!==null;)ic(e,t,a),e=e.sibling}function ui(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Pt(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ui(e,t,a),e=e.sibling;e!==null;)ui(e,t,a),e=e.sibling}function gd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Se(t,l,a),t[ve]=e,t[Oe]=a}catch(i){L(e,e.return,i)}}var mt=!1,ce=!1,pu=!1,Eo=typeof WeakSet=="function"?WeakSet:Set,me=null;function z1(e,t){if(e=e.containerInfo,dc=vi,e=af(e),Hc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var u=0,c=-1,s=-1,f=0,g=0,v=e,d=null;t:for(;;){for(var p;v!==a||n!==0&&v.nodeType!==3||(c=u+n),v!==i||l!==0&&v.nodeType!==3||(s=u+l),v.nodeType===3&&(u+=v.nodeValue.length),(p=v.firstChild)!==null;)d=v,v=p;for(;;){if(v===e)break t;if(d===a&&++f===n&&(c=u),d===i&&++g===l&&(s=u),(p=v.nextSibling)!==null)break;v=d,d=v.parentNode}v=p}a=c===-1||s===-1?null:{start:c,end:s}}else a=null}a=a||{start:0,end:0}}else a=null;for(mc={focusedElem:e,selectionRange:a},vi=!1,me=t;me!==null;)if(t=me,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,me=e;else for(;me!==null;){switch(t=me,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a title"))),Se(i,l,a),i[ve]=e,pe(i),l=i;break e;case"link":var u=Xo("link","href",n).get(l+(a.href||""));if(u){for(var c=0;cD&&(u=D,D=x,x=u);var r=Js(c,x),o=Js(c,D);if(r&&o&&(p.rangeCount!==1||p.anchorNode!==r.node||p.anchorOffset!==r.offset||p.focusNode!==o.node||p.focusOffset!==o.offset)){var m=v.createRange();m.setStart(r.node,r.offset),p.removeAllRanges(),x>D?(p.addRange(m),p.extend(o.node,o.offset)):(m.setEnd(o.node,o.offset),p.addRange(m))}}}}for(v=[],p=c;p=p.parentNode;)p.nodeType===1&&v.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;ca?32:a,G.T=null,a=sc,sc=null;var i=Zt,u=bt;if(re=0,Ia=Zt=null,bt=0,Y&6)throw Error(b(331));var c=Y;if(Y|=4,Ad(i.current),_d(i,i.current,u,a),Y=c,cn(0,!1),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(Il,i)}catch{}return!0}finally{w.p=n,G.T=l,Ld(e,t)}}function Ao(e,t,a){t=Je(a,t),t=ac(e.stateNode,t,2),e=Lt(e,t,2),e!==null&&(en(e,2),ut(e))}function L(e,t,a){if(e.tag===3)Ao(e,e,a);else for(;t!==null;){if(t.tag===3){Ao(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Xt===null||!Xt.has(l))){e=Je(a,e),a=nd(2),l=Lt(t,a,2),l!==null&&(id(a,l,t,e),en(l,2),ut(l));break}}t=t.return}}function gu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new G1;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(fs=!0,n.add(a),e=D1.bind(null,e,t,a),t.then(e,e))}function D1(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,V===e&&(H&a)===a&&(te===4||te===3&&(H&62914560)===H&&300>Re()-ji?!(Y&2)&&Pa(e,0):ds|=a,Fa===H&&(Fa=0)),ut(e)}function Zd(e,t){t===0&&(t=jr()),e=ba(e,t),e!==null&&(en(e,t),ut(e))}function j1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Zd(e,a)}function C1(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(b(314))}l!==null&&l.delete(t),Zd(e,a)}function R1(e,t){return Gc(e,t)}var ri=null,za=null,rc=!1,fi=!1,vu=!1,Bt=0;function ut(e){e!==za&&e.next===null&&(za===null?ri=za=e:za=za.next=e),fi=!0,rc||(rc=!0,B1())}function cn(e,t){if(!vu&&fi){vu=!0;do for(var a=!1,l=ri;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var i=0;else{var u=l.suspendedLanes,c=l.pingedLanes;i=(1<<31-Be(42|e)+1)-1,i&=n&~(u&~c),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,Go(l,i))}else i=H,i=Ei(l,l===V?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),!(i&3)||Pl(l,i)||(a=!0,Go(l,i));l=l.next}while(a);vu=!1}}function H1(){Vd()}function Vd(){fi=rc=!1;var e=0;Bt!==0&&$1()&&(e=Bt);for(var t=Re(),a=null,l=ri;l!==null;){var n=l.next,i=Kd(l,t);i===0?(l.next=null,a===null?ri=n:a.next=n,n===null&&(za=a)):(a=l,(e!==0||i&3)&&(fi=!0)),l=n}re!==0&&re!==5||cn(e),Bt!==0&&(Bt=0)}function Kd(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0c)break;var g=s.transferSize,v=s.initiatorType;g&&Do(v)&&(s=s.responseEnd,u+=g*(s"u"?null:document;function tm(e,t,a){var l=sl;if(l&&typeof t=="string"&&t){var n=Ke(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),wo.has(n)||(wo.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),Se(t,"link",e),pe(t),l.head.appendChild(t)))}}function lp(e){zt.D(e),tm("dns-prefetch",e,null)}function np(e,t){zt.C(e,t),tm("preconnect",e,t)}function ip(e,t,a){zt.L(e,t,a);var l=sl;if(l&&e&&t){var n='link[rel="preload"][as="'+Ke(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Ke(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Ke(a.imageSizes)+'"]')):n+='[href="'+Ke(e)+'"]';var i=n;switch(t){case"style":i=el(e);break;case"script":i=ol(e)}Fe.has(i)||(e=F({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Fe.set(i,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(sn(i))||t==="script"&&l.querySelector(on(i))||(t=l.createElement("link"),Se(t,"link",e),pe(t),l.head.appendChild(t)))}}function up(e,t){zt.m(e,t);var a=sl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ke(l)+'"][href="'+Ke(e)+'"]',i=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ol(e)}if(!Fe.has(i)&&(e=F({rel:"modulepreload",href:e},t),Fe.set(i,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(on(i)))return}l=a.createElement("link"),Se(l,"link",e),pe(l),a.head.appendChild(l)}}}function cp(e,t,a){zt.S(e,t,a);var l=sl;if(l&&e){var n=Ba(l).hoistableStyles,i=el(e);t=t||"default";var u=n.get(i);if(!u){var c={loading:0,preload:null};if(u=l.querySelector(sn(i)))c.loading=5;else{e=F({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Fe.get(i))&&gs(e,a);var s=u=l.createElement("link");pe(s),Se(s,"link",e),s._p=new Promise(function(f,g){s.onload=f,s.onerror=g}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,wn(u,t,l)}u={type:"stylesheet",instance:u,count:1,state:c},n.set(i,u)}}}function sp(e,t){zt.X(e,t);var a=sl;if(a&&e){var l=Ba(a).hoistableScripts,n=ol(e),i=l.get(n);i||(i=a.querySelector(on(n)),i||(e=F({src:e,async:!0},t),(t=Fe.get(n))&&vs(e,t),i=a.createElement("script"),pe(i),Se(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function op(e,t){zt.M(e,t);var a=sl;if(a&&e){var l=Ba(a).hoistableScripts,n=ol(e),i=l.get(n);i||(i=a.querySelector(on(n)),i||(e=F({src:e,async:!0,type:"module"},t),(t=Fe.get(n))&&vs(e,t),i=a.createElement("script"),pe(i),Se(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function Qo(e,t,a,l){var n=(n=Yt.current)?pi(n):null;if(!n)throw Error(b(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=el(a.href),a=Ba(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=el(a.href);var i=Ba(n).hoistableStyles,u=i.get(e);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,u),(i=n.querySelector(sn(e)))&&!i._p&&(u.instance=i,u.state.loading=5),Fe.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Fe.set(e,a),i||rp(n,e,a,u.state))),t&&l===null)throw Error(b(528,""));return u}if(t&&l!==null)throw Error(b(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ol(a),a=Ba(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(b(444,e))}}function el(e){return'href="'+Ke(e)+'"'}function sn(e){return'link[rel="stylesheet"]['+e+"]"}function am(e){return F({},e,{"data-precedence":e.precedence,precedence:null})}function rp(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Se(t,"link",a),pe(t),e.head.appendChild(t))}function ol(e){return'[src="'+Ke(e)+'"]'}function on(e){return"script[async]"+e}function Lo(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ke(a.href)+'"]');if(l)return t.instance=l,pe(l),l;var n=F({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),pe(l),Se(l,"style",n),wn(l,a.precedence,e),t.instance=l;case"stylesheet":n=el(a.href);var i=e.querySelector(sn(n));if(i)return t.state.loading|=4,t.instance=i,pe(i),i;l=am(a),(n=Fe.get(n))&&gs(l,n),i=(e.ownerDocument||e).createElement("link"),pe(i);var u=i;return u._p=new Promise(function(c,s){u.onload=c,u.onerror=s}),Se(i,"link",l),t.state.loading|=4,wn(i,a.precedence,e),t.instance=i;case"script":return i=ol(a.src),(n=e.querySelector(on(i)))?(t.instance=n,pe(n),n):(l=a,(n=Fe.get(i))&&(l=F({},a),vs(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),pe(n),Se(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(b(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(l=t.instance,t.state.loading|=4,wn(l,a.precedence,e));return t.instance}function wn(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,i=n,u=0;u title"):null)}function fp(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lm(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function dp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&!(a.state.loading&4)){if(a.instance===null){var n=el(l.href),i=t.querySelector(sn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,pe(i);return}i=t.ownerDocument||t,l=am(l),(n=Fe.get(n))&&gs(l,n),i=i.createElement("link"),pe(i);var u=i;u._p=new Promise(function(c,s){u.onload=c,u.onerror=s}),Se(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&!(a.state.loading&3)&&(e.count++,a=yi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Eu=0;function mp(e,t){return e.stylesheets&&e.count===0&&Ln(e,e.stylesheets),0Eu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function yi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ln(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var gi=null;function Ln(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gi=new Map,t.forEach(pp,e),gi=null,yi.call(e))}function pp(e,t){if(!(t.state.loading&4)){var a=gi.get(e);if(a)var l=a.get(null);else{a=new Map,gi.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fm)}catch(e){console.error(e)}}fm(),hr.exports=Ti;var xp=hr.exports;/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dm=(...e)=>e.filter((t,a,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===a).join(" ").trim();/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ep=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _p=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,l)=>l?l.toUpperCase():a.toLowerCase());/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fo=e=>{const t=_p(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var _u={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"};/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Mp=P.createContext({}),Ap=()=>P.useContext(Mp),Gp=P.forwardRef(({color:e,size:t,strokeWidth:a,absoluteStrokeWidth:l,className:n="",children:i,iconNode:u,...c},s)=>{const{size:f=24,strokeWidth:g=2,absoluteStrokeWidth:v=!1,color:d="currentColor",className:p=""}=Ap()??{},S=l??v?Number(a??g)*24/Number(t??f):a??g;return P.createElement("svg",{ref:s,..._u,width:t??f??_u.width,height:t??f??_u.height,stroke:e??d,strokeWidth:S,className:dm("lucide",p,n),...!i&&!zp(c)&&{"aria-hidden":"true"},...c},[...u.map(([x,D])=>P.createElement(x,D)),...Array.isArray(i)?i:[i]])});/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const J=(e,t)=>{const a=P.forwardRef(({className:l,...n},i)=>P.createElement(Gp,{ref:i,iconNode:t,className:dm(`lucide-${Ep(Fo(e))}`,`lucide-${e}`,l),...n}));return a.displayName=Fo(e),a};/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Np=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Op=J("arrow-right",Np);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const qp=[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]],mm=J("bike",qp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Up=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],bi=J("box",Up);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Dp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],jp=J("check",Dp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Io=J("chevron-down",Cp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Po=J("chevron-right",Rp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Hp=[["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"}]],Bp=J("circle-alert",Hp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],wp=J("circle-check",Yp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Qp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],pm=J("circle-user",Qp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Lp=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Xp=J("code-xml",Lp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Zp=[["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"}]],Vp=J("copy",Zp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Kp=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],ym=J("credit-card",Kp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jp=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],er=J("file-braces",Jp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $p=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],gm=J("file-text",$p);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kp=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],vm=J("house",kp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wp=[["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"}]],tr=J("layers",Wp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fp=[["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"}]],hm=J("link-2",Fp);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ip=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Pp=J("play",Ip);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ey=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ty=J("search",ey);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ay=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],ar=J("server",ay);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ly=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],bm=J("shopping-cart",ly);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ny=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],iy=J("terminal",ny);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uy=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],Sm=J("truck",uy);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cy=[["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"}]],Tm=J("users",cy);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sy=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],xm=J("wrench",sy);/** * @license lucide-react v1.11.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const oy=[["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"}]],lr=J("zap",oy),ry={users:Tm,orders:bm,tenants:vm,products:bi,locations:hm,partners:mm,deliveries:Sm,customers:pm,invoice:gm,payments:ym,utils:xm,mobile:bi};function fy({graphqlTopics:e,restTopics:t,activeTopic:a,setActiveTopic:l,searchQuery:n,setSearchQuery:i}){const[u,c]=P.useState({general:!0,graphql:!0,rest:!0}),s=g=>c(v=>({...v,[g]:!v[g]})),f=(g,v,d)=>y.jsxs("div",{children:[y.jsxs("button",{onClick:()=>s(d),className:"w-full flex items-center justify-between px-2 py-1.5 text-slate-800 font-semibold text-sm hover:text-brand-600 transition-colors group",children:[y.jsx("span",{className:"tracking-wide text-xs uppercase text-slate-400 group-hover:text-brand-500 transition-colors",children:v}),u[d]?y.jsx(Io,{size:14,className:"text-slate-400"}):y.jsx(Po,{size:14,className:"text-slate-400"})]}),y.jsx("div",{className:`mt-2 space-y-1 overflow-hidden transition-all duration-500 ${u[d]?"max-h-[800px] opacity-100":"max-h-0 opacity-0"}`,children:g.map(p=>{const S=(a==null?void 0:a.uniqueId)===p.uniqueId,x=ry[p.id]||tr;return y.jsxs("button",{onClick:()=>l(p),className:`w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-all duration-200 group ${S?"text-brand-700 bg-brand-50 shadow-sm font-medium":"text-slate-600 hover:text-slate-900 hover:bg-slate-100/50"}`,children:[y.jsx(x,{size:16,className:`${S?"text-brand-500":"text-slate-400 group-hover:text-slate-500"} transition-colors`}),p.name]},p.uniqueId)})})]});return y.jsxs("div",{className:"w-[280px] glass h-screen fixed top-0 left-0 flex flex-col z-20 transition-all",children:[y.jsxs("div",{className:"p-6 border-b border-slate-100/50",children:[y.jsxs("div",{className:"flex items-center gap-3 text-slate-900 font-bold text-xl mb-6",children:[y.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-brand-500 to-indigo-600 flex items-center justify-center shadow-glow",children:y.jsx(tr,{className:"text-white w-4 h-4"})}),y.jsx("span",{className:"tracking-tight",children:"NearleDaily"})]}),y.jsxs("div",{className:"relative group",children:[y.jsx(ty,{className:"w-4 h-4 absolute left-3 top-3 text-slate-400 group-focus-within:text-brand-500 transition-colors"}),y.jsx("input",{type:"text",className:"w-full pl-9 pr-3 py-2.5 bg-slate-50/50 border border-slate-200/60 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-brand-500/20 focus:border-brand-500 focus:bg-white transition-all placeholder:text-slate-400",placeholder:"Search documentation...",value:n,onChange:g=>i(g.target.value)})]})]}),y.jsx("div",{className:"flex-1 overflow-y-auto py-6 px-4 scrollbar-hide",children:y.jsxs("nav",{className:"space-y-6",children:[y.jsxs("div",{children:[y.jsxs("button",{onClick:()=>s("general"),className:"w-full flex items-center justify-between px-2 py-1.5 text-slate-800 font-semibold text-sm hover:text-brand-600 transition-colors group",children:[y.jsx("span",{className:"tracking-wide text-xs uppercase text-slate-400 group-hover:text-brand-500 transition-colors",children:"Getting Started"}),u.general?y.jsx(Io,{size:14,className:"text-slate-400"}):y.jsx(Po,{size:14,className:"text-slate-400"})]}),y.jsx("div",{className:`mt-2 space-y-1 overflow-hidden transition-all duration-300 ${u.general?"max-h-40 opacity-100":"max-h-0 opacity-0"}`,children:y.jsxs("button",{onClick:()=>l(null),className:`w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-all duration-200 ${a?"text-slate-600 hover:text-slate-900 hover:bg-slate-100/50":"text-brand-700 bg-brand-50 shadow-sm font-medium"}`,children:[y.jsx(iy,{size:16,className:a?"text-slate-400":"text-brand-500"}),"Introduction"]})})]}),e.length>0&&f(e,"GraphQL","graphql"),t.length>0&&f(t,"REST API","rest")]})})]})}const dy={getsubcategory:{query:` query GetSubCategory($moduleid: bigint!, $categoryid: bigint!) { app_subcategory( where: { categoryid: { _eq: $categoryid } category: { modules: { moduleid: { _eq: $moduleid } } } } ) { subcategoryid categoryid categorytypeid subcategoryname categoryname sortorder status statuscode } } `,variables:`{ "moduleid": 6, "categoryid": 1 }`},getorders:{query:` query GetOrders( $start: timestamptz! $end: timestamptz! $status: String! $limit: Int! $offset: Int! ) { orders( where: { deliverytime: { _gte: $start, _lte: $end } orderstatus: { _eq: $status } } limit: $limit offset: $offset ) { orderheaderid orderid orderstatus deliverytime orderamount tenant { tenantname } } } `,variables:`{ "start": "2026-01-01T00:00:00", "end": "2026-01-31T23:59:59", "status": "delivered", "limit": 10, "offset": 0 }`},gettenantlocations:{query:` query GetTenantLocations($tenantid: bigint!) { tenant_locations(where: { tenantid: { _eq: $tenantid } }) { locationid locationname tenantid } } `,variables:`{ "tenantid": 1 }`},getapplocations:{query:` query GetAppLocations($userid: bigint!) { details: app_location( where: { app_locationconfigs: { status: { _eq: "Active" } userid: { _eq: $userid } } } ) { applocationid locationname } } `,variables:`{ "userid": 1 }`},getusers:{query:` query GetUsers { app_user { userid username email contactno status } } `,variables:"{}"},gettenantinfo:{query:` query GetTenantInfo($tenantid: bigint!) { tenants(where: { tenantid: { _eq: $tenantid } }) { tenantid tenantname email contactno status } } `,variables:`{ "tenantid": 1079, "configid": 1, "fromdate": "2025-07-24T00:00:00", "todate": "2025-07-24T23:59:59" }`},getordersummary:{query:` query GetOrderSummary( $tenantid: bigint! $configid: bigint! $fromdate: timestamp! $todate: timestamp! ) { orders_aggregate( where: { tenantid: { _eq: $tenantid } deliverytime: { _gte: $fromdate, _lte: $todate } } ) { aggregate { count } } orders( where: { tenantid: { _eq: $tenantid } deliverytime: { _gte: $fromdate, _lte: $todate } } limit: 10 order_by: { deliverytime: desc } ) { orderid orderstatus orderamount deliverytime } } `,variables:`{ "tenantid": 1079, "fromdate": "2025-07-24T00:00:00", "todate": "2025-07-24T23:59:59" }`},getcustomersbytenant:{query:` query GetCustomersByTenant( $tenantid: bigint! $limit: Int! $offset: Int! ) { tenantcustomers( where: { tenantid: { _eq: $tenantid } } limit: $limit offset: $offset order_by: { customer: { customerid: desc } } ) { tenantlocationid: locationid customer { customerid firstname lastname contactno email address suburb city state landmark doorno postcode latitude longitude applocationid status } } } `,variables:`{ "tenantid": 1079, "limit": 10, "offset": 0 }`},getapproles:{query:` query GetAppRoles($configid: bigint!) { app_roles(where: { configid: { _eq: $configid } }) { roleid rolename configid } } `,variables:`{ "configid": 1 }`},getactivelocationbyid:{query:` query GetActiveLocationById { app_locations(where: { status: { _eq: "Active" } }) { locationid locationname } } `,variables:"{}"},getlocationsconfig:{query:` query GetLocations { details: app_location(where: {status: {_eq: "Active"}}) { applocationid locationname image city state postcode latitude longitude opentime closetime radius applocationadmins: app_locationconfigs(where: {notify: {_eq: "true"}}) { applocationid userid notify app_user { userfcmtokem: userfcmtoken } } } } `,variables:"{}"},getpartners:{query:` query GetPartners( $applocationid: bigint! $partnerid: bigint! $limit: Int! $offset: Int! ) { details: partnerinfo( where: { status: { _eq: "Active" } _and: [ { _or: [ { applocationid: { _eq: $applocationid } } { applocationid: { _eq: 0 } } ] } { _or: [ { partnerid: { _eq: $partnerid } } { partnerid: { _eq: 0 } } ] } ] } limit: $limit offset: $offset ) { partnerid applocationid partnertypeid partnername primarycontact primaryemail contactno address suburb state city partnerimage } } `,variables:`{ "applocationid": 1, "partnerid": 0, "limit": 10, "offset": 0 }`},getridershifts:{query:` query GetRiderShifts($applocationid: bigint!) { details: ridershifts( where: { applocationid: { _eq: $applocationid } } order_by: { shiftid: desc } ) { shiftid shiftdate starttime endtime shifthours basefare additionalkm additionalcharges orders fuelcharge shiftname } } `,variables:`{ "applocationid": 1 }`},getapptypes:{query:` query GetTypes($tag: String!) { app_types(where: { status: { _eq: "Active" }, tag: { _eq: $tag } }) { apptypeid typename tag status description mapid created updated } } `,variables:`{ "tag": "partner" }`},gettenantcustomers:{query:` query GetTenantCustomers( $tenantid: bigint! $locationid: bigint! $limit: Int! $offset: Int! ) { details: tenantcustomers( where: { tenantid: { _eq: $tenantid } locationid: { _eq: $locationid } customer: { customerid: { _is_null: false } } } limit: $limit offset: $offset order_by: { customer: { customerid: desc } } ) { tenantlocationid: locationid customer { customerid firstname lastname contactno email address suburb city state landmark doorno postcode latitude longitude applocationid status } } } `,variables:`{ "tenantid": 1079, "locationid": 1, "limit": 10, "offset": 0 }`},getproductcategories:{query:` query GetProductCategories($moduleid: bigint!) { productcategories( where: { moduleid: { _eq: $moduleid }, status: { _eq: "Active" } } order_by: { sortorder: asc } ) { categoryid moduleid categorytypeid categoryname status created updated } } `,variables:`{ "moduleid": 6 }`},getproductsubcategories:{query:` query GetProductSubCategories($categoryid: bigint!) { product_subcategories(where: { categoryid: { _eq: $categoryid } }) { subcategoryid categoryid subcategoryname status } } `,variables:`{ "categoryid": 1 }`},getproductvariants:{query:` query GetProductVariants($tenantid: bigint!, $subcategoryid: bigint!) { productvariants( where: { tenantid: { _eq: $tenantid } subcategoryid: { _eq: $subcategoryid } } ) { variantid productid tenantid categoryid subcategoryid variantname price status created updated category { categoryname } } } `,variables:`{ "tenantid": 1079, "subcategoryid": 1 }`},getstockstatement:{query:` query GetStockStatement( $tenantid: bigint! $locationid: bigint! $subcategoryid: bigint $keyword: String $limit: Int $offset: Int ) { product_stock_statement( where: { tenantid: { _eq: $tenantid } locationid: { _eq: $locationid } subcategoryid: { _eq: $subcategoryid } productname: { _ilike: $keyword } } limit: $limit offset: $offset order_by: { productid: desc } ) { productid productname productimage categoryid subcategoryid productunit unitvalue productcost taxpercent taxamount retailprice tenantid locationid opening credit debit closing } } `,variables:`{ "tenantid": 1079, "locationid": 1, "subcategoryid": null, "keyword": "%", "limit": 10, "offset": 0 }`},gettenantdeliveries:{query:` query GetTenantDeliveriesFull( $tenantid: bigint! $status: String $fromdate: timestamp $todate: timestamp $keyword: String $limit: Int $offset: Int ) { deliveries( where: { tenantid: { _eq: $tenantid } _and: [ { orderstatus: { _eq: $status } } { deliverydate: { _gte: $fromdate } } { deliverydate: { _lte: $todate } } { _or: [ { pickupcustomer: { _ilike: $keyword } } { deliverycustomer: { _ilike: $keyword } } { pickupcontactno: { _ilike: $keyword } } { deliverycontactno: { _ilike: $keyword } } { orderid: { _ilike: $keyword } } ] } ] } limit: $limit offset: $offset order_by: { deliveryid: desc } ) { deliveryid orderid deliverydate orderstatus pickupcustomer pickupcontactno pickupaddress deliverycustomer deliverycontactno deliveryaddress kms customers { customertoken } app_users { firstname contactno } tenants { tenantname primarycontact } } } `,variables:`{ "tenantid": 1079, "status": "delivered", "fromdate": "2026-01-01T00:00:00", "todate": "2026-01-31T23:59:59", "keyword": "%", "limit": 10, "offset": 0 }`},getinvoiceinsight:{query:` query GetInvoiceInsight($tenantid: bigint!) { invoice_insight(where: { tenantid: { _eq: $tenantid } }) { totalcount total pendingcount pending pendingpercent confirmedcount confirmed confirmedpercent paidcount paid paidpercent overduecount overdue overduepercent } } `,variables:`{ "tenantid": 1079 }`},getproductscount:{query:` query GetProductsCount( $tenantid: bigint! $categoryid: bigint! $subcategoryid: bigint! ) { total: products_aggregate( where: { tenantid: { _eq: $tenantid } categoryid: { _eq: $categoryid } subcategoryid: { _eq: $subcategoryid } } ) { aggregate { count } } available: products_aggregate( where: { tenantid: { _eq: $tenantid } categoryid: { _eq: $categoryid } subcategoryid: { _eq: $subcategoryid } productstatus: { _eq: "available" } } ) { aggregate { count } } outofstock: products_aggregate( where: { tenantid: { _eq: $tenantid } categoryid: { _eq: $categoryid } subcategoryid: { _eq: $subcategoryid } productstatus: { _eq: "outofstock" } } ) { aggregate { count } } } `,variables:`{ "tenantid": 1079, "categoryid": 1, "subcategoryid": 1 }`},createproduct:{query:` mutation CreateProduct($object: products_insert_input!) { insert_products_one(object: $object) { productid applocationid tenantid categoryid subcategoryid productname productimage productdesc productsku productbrand productunit unitvalue toppicks productcost taxamount taxpercent producttax productstock productcombo variants quantity retailprice diffprice diffpercent othercost approve productstatus } } `,variables:`{ "object": { "applocationid": 1, "tenantid": 1079, "categoryid": 1, "subcategoryid": 1, "productname": "Sample Product", "productimage": "", "productdesc": "Sample description", "productsku": "SKU123", "productbrand": "BrandX", "productunit": "kg", "unitvalue": 1, "toppicks": false, "productcost": 50, "taxamount": 5, "taxpercent": 10, "producttax": true, "productstock": 100, "productcombo": false, "variants": false, "quantity": 100, "retailprice": 60, "diffprice": 10, "diffpercent": 20, "othercost": 0, "approve": true, "productstatus": "available" } }`},getinvoices:{query:` query GetInvoices($tenantid: bigint!, $billstatus: bigint!) { tenantsales( where: { tenantid: { _eq: $tenantid } billstatus: { _eq: $billstatus } } order_by: { salesid: desc } ) { salesid tenantid totalamount billstatus duedate status } } `,variables:`{ "tenantid": 1079, "billstatus": 1 }`},getcustomerlocations:{query:` query GetCustomerLocations($customerid: bigint!) { customer_locations(where: { customerid: { _eq: $customerid } }) { locationid latitude longitude address } } `,variables:`{ "customerid": 6060 }`},getcustomerordersv3:{query:` query GetCustomerOrders($customerid: bigint!, $tenantid: bigint!, $moduleid: bigint!, $fromdate: timestamptz!, $todate: timestamptz!, $orderstatus: String!, $keyword: String, $limit: Int!, $offset: Int!) { orders( where: { customerid: { _eq: $customerid } tenantid: { _eq: $tenantid } moduleid: { _eq: $moduleid } orderstatus: { _eq: $orderstatus } orderdate: { _gte: $fromdate, _lte: $todate } _or: [{ orderid: { _ilike: $keyword } }] } limit: $limit offset: $offset ) { orderid orderstatus orderamount } } `,variables:`{ "customerid": 6060, "tenantid": 1087, "moduleid": 2, "fromdate": "2026-01-01T00:00:00", "todate": "2026-12-31T23:59:59", "orderstatus": "delivered", "keyword": "%pizza%", "limit": 10, "offset": 0 }`},getcustomer:{query:` query GetCustomer($customerid: bigint!) { customers(where: { customerid: { _eq: $customerid } }) { customerid name contactno } } `,variables:`{ "customerid": 6060 }`},getcustomerrequests:{query:` query GetCustomerRequests($customerid: bigint!, $limit: Int!, $offset: Int!) { customer_requests(where: { customerid: { _eq: $customerid } }, limit: $limit, offset: $offset) { requestid status } } `,variables:`{ "customerid": 6060, "limit": 10, "offset": 0 }`},getmobileproductsubcategories:{query:` query GetProductSubcategories($categoryid: bigint!) { app_subcategory(where: { categoryid: { _eq: $categoryid } }) { subcategoryid subcategoryname } } `,variables:`{ "categoryid": 1001 }`},getmobileappcategories:{query:` query GetAppCategories { app_category { categoryid categoryname } } `,variables:"{}"},getmobileproductvariants:{query:` query GetProductVariants($tenantid: bigint!, $subcategoryid: bigint!) { product_variants(where: { tenantid: { _eq: $tenantid }, subcategoryid: { _eq: $subcategoryid } }) { variantid productname price } } `,variables:`{ "tenantid": 1087, "subcategoryid": 14 }`},gettenantpromotions:{query:` query GetTenantPromotions($tenantid: bigint!, $locationid: bigint!) { promotions(where: { tenantid: { _eq: $tenantid }, locationid: { _eq: $locationid } }) { promotionid title } } `,variables:`{ "tenantid": 1087, "locationid": 1 }`},getappconfig:{query:` query GetAppConfig($configid: bigint!) { app_config(where: { configid: { _eq: $configid } }) { configkey configvalue } } `,variables:`{ "configid": 15 }`},searchcustomers:{query:` query SearchCustomers($tenantid: bigint!, $keyword: String!) { customers(where: { tenantid: { _eq: $tenantid }, name: { _ilike: $keyword } }) { customerid name } } `,variables:`{ "tenantid": 1087, "keyword": "%john%" }`},gettenantorders:{query:` query GetTenantOrders { orders { orderid tenantid } } `,variables:"{}"},getstaff:{query:` query GetStaff($tenantid: bigint!) { staff(where: { tenantid: { _eq: $tenantid } }) { staffid name } } `,variables:`{ "tenantid": 1087 }`},getmobileapplocations:{query:` query GetAppLocations { app_location { applocationid locationname } } `,variables:"{}"}},Em="https://api.workolik.com",my=[{id:"users",name:"Users",description:"Manage users and roles within the NearleDaily ecosystem.",endpoints:[{name:"getusers",method:"GET",url:"/api/rest/getusers?roleid=1&tenantid=1079&limit=10&offset=0",description:"Retrieve a list of all users in the system."},{name:"getapproles",method:"GET",url:"/api/rest/getapproles?configid=1",description:"Get all application roles based on a specific configuration."}]},{id:"orders",name:"Orders",description:"Endpoints related to creating, updating, and querying customer orders.",endpoints:[{name:"getorders",method:"GET",url:"/api/rest/getorders?start=2026-01-01T00:00:00&end=2026-01-31T23:59:59&status=delivered&limit=10&offset=0",description:"Get detailed order information within a time frame."},{name:"getordersummary",method:"GET",url:"/api/rest/getordersummary?tenantid=1079&configid=1&fromdate=2025-07-24T00:00:00&todate=2025-07-24T23:59:59",description:"Retrieve high-level summary and aggregated counts for orders."}]},{id:"tenants",name:"Tenants",description:"Manage tenant details, their customers, and their specific delivery statistics.",endpoints:[{name:"gettenantinfo",method:"GET",url:"/api/rest/gettenantinfo?tenantid=1079",description:"Get specific information about a tenant by their ID."},{name:"gettenantlocations",method:"GET",url:"/api/rest/gettenantlocations?tenantid=1",description:"Get all physical locations linked to a tenant."},{name:"getcustomersbytenant",method:"GET",url:"/api/rest/getcustomersbytenant?tenantid=1079&limit=10&offset=0",description:"Retrieve customers associated with a specific tenant."},{name:"gettenantcustomers",method:"GET",url:"/api/rest/gettenantcustomers?tenantid=1079&locationid=1&limit=10&offset=0",description:"Get customers under a specific tenant and location combination."},{name:"gettenantdeliveries",method:"GET",url:"/api/rest/gettenantdeliveries?tenantid=1079&status=delivered&fromdate=2026-01-01T00:00:00&todate=2026-01-31T23:59:59&keyword=%25&limit=10&offset=0",description:"Query extensive delivery data for a tenant including pickup/delivery info."},{name:"getinvoiceinsight",method:"GET",url:"/api/rest/getinvoiceinsight?tenantid=1079",useGraphql:!0,description:"Retrieve detailed insights and statistics regarding tenant invoices."},{name:"getinvoices",method:"GET",url:"/api/rest/getinvoices?tenantid=1079&billstatus=1",useGraphql:!0,description:"Retrieve all invoices for a tenant based on their billing status."}]},{id:"products",name:"Products",description:"Operations for managing product catalogs, categories, variants, and stock tracking.",endpoints:[{name:"getproductcategories",method:"GET",url:"/api/rest/getproductcategories?moduleid=6",description:"Get all root product categories for a specific module."},{name:"getsubcategory",method:"GET",url:"/api/rest/getsubcategory?moduleid=6&categoryid=1",description:"Get a specific subcategory belonging to a root category."},{name:"getproductsubcategories",method:"GET",url:"/api/rest/getproductsubcategories?categoryid=1",description:"List all subcategories under a specific root category."},{name:"getproductvariants",method:"GET",url:"/api/rest/getproductvariants?tenantid=1079&subcategoryid=1",description:"Get different variants of products (e.g. sizes, colors) for a tenant."},{name:"getstockstatement",method:"GET",url:"/api/rest/getstockstatement?tenantid=1079&locationid=1&subcategoryid=&keyword=%25&limit=10&offset=0",description:"Generate a comprehensive statement of stock including opening, credit, debit, closing balances."},{name:"getproductscount",method:"GET",url:"/api/rest/getproductscount?tenantid=1079&categoryid=1&subcategoryid=1",description:"Get aggregated counts of products available and out of stock."},{name:"createproduct",method:"POST",url:"/api/rest/createproduct",useGraphql:!0,description:"Create a new product within the catalog."}]},{id:"locations",name:"Apps & Locations",description:"Query configuration endpoints for application locations and active statuses.",endpoints:[{name:"getapplocations",method:"GET",url:"/api/rest/getapplocations?userid=1",useGraphql:!0,description:"Retrieve application location settings for a specific user."},{name:"getactivelocationbyid",method:"GET",url:"/api/rest/getapplocations",description:"List all currently active locations globally."},{name:"getlocationsconfig",method:"GET",url:"/api/rest/getapplocationconfig",description:"Retrieve the global configuration properties for application locations."},{name:"getapptypes",method:"GET",url:"/api/rest/getapptypes?tag=partner",description:"Get specific application types grouped by a tag name."}]},{id:"partners",name:"Partners",description:"Manage partners, drivers/riders, and their shifts and earnings.",endpoints:[{name:"getpartners",method:"GET",url:"/api/rest/getpartners?applocationid=1&partnerid=0&limit=10&offset=0",description:"Retrieve a list of active partners associated with locations."},{name:"getridershifts",method:"GET",url:"/api/rest/getridershifts?applocationid=1",description:"Get historic and active shift records for riders in a specific location."}]},{id:"mobile",name:"Mobile",description:"Specific endpoints and GraphQL queries optimized for mobile application integration.",endpoints:[{name:"getcustomerlocations",method:"GET",url:"/api/rest/getcustomerlocations?customerid=6060",description:"Retrieve physical locations associated with a specific customer."},{name:"getcustomerordersv3",method:"GET",url:"/api/rest/getcustomerordersv3?customerid=6060&tenantid=1087&moduleid=2&fromdate=2026-01-01T00:00:00&todate=2026-12-31T23:59:59&orderstatus=delivered&keyword=%25pizza%25&limit=10&offset=0",description:"Fetch comprehensive order history for a customer with advanced filtering."},{name:"getcustomer",method:"GET",url:"/api/rest/getcustomer?customerid=6060",description:"Get profile details for a specific customer."},{name:"getcustomerrequests",method:"GET",url:"/api/rest/getcustomerrequests?customerid=6060&limit=10&offset=0",description:"List all service requests made by a customer."},{name:"getmobileproductsubcategories",method:"GET",url:"/api/rest/getmobileproductsubcategories?categoryid=1001",description:"Retrieve subcategories under a specific product category for mobile display."},{name:"getmobileappcategories",method:"GET",url:"/api/rest/getmobileappcategories",description:"Fetch all available application categories."},{name:"getmobileproductvariants",method:"GET",url:"/api/rest/getmobileproductvariants?tenantid=1087&subcategoryid=14",description:"Get product variants filtered by tenant and subcategory."},{name:"gettenantpromotions",method:"GET",url:"/api/rest/gettenantpromotions?tenantid=1087&locationid=1",description:"Retrieve active promotions for a specific tenant location."},{name:"getappconfig",method:"GET",url:"/api/rest/getappconfig?configid=15",description:"Retrieve specific application configuration settings."},{name:"searchcustomers",method:"GET",url:"/api/rest/searchcustomers?tenantid=1087&keyword=%25john%25",description:"Search for customers by name within a tenant's scope."},{name:"gettenantorders",method:"GET",url:"/api/rest/gettenantorders",description:"List orders across tenants (Admin level)."},{name:"getstaff",method:"GET",url:"/api/rest/getstaff?tenantid=1087",description:"Retrieve staff members associated with a specific tenant."},{name:"gettenantinfo",method:"GET",url:"/api/rest/gettenantinfo?tenantid=1079",description:"Get basic information about a tenant."},{name:"gettenantlocations",method:"GET",url:"/api/rest/gettenantlocations?tenantid=1",description:"Fetch all locations for a given tenant."},{name:"getmobileapplocations",method:"GET",url:"/api/rest/getmobileapplocations",description:"Retrieve all application-wide locations."},{name:"getsubcategory",method:"GET",url:"/api/rest/getsubcategory?moduleid=6&categoryid=1",description:"Get detailed subcategory info."},{name:"getpartners",method:"GET",url:"/api/rest/getpartners?applocationid=1&partnerid=44&limit=10&offset=0",description:"Retrieve partner details for mobile integration."},{name:"getlocationsconfig",method:"GET",url:"/api/rest/getlocationsconfig",useGraphql:!0,description:"Get location configuration settings."}]}],py=/("(?:\\u[a-fA-F0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(?:true|false|null)\b|-?\d+(?:\.\d+)?(?:[eE][+\-]?\d+)?)/g;function yy(e){return e.replace(/&/g,"&").replace(//g,">")}function nr(e){let t;try{t=JSON.stringify(e,null,2)}catch{t=String(e)}return typeof t!="string"&&(t=String(t)),yy(t).replace(py,a=>{let l="text-amber-300";return/^"/.test(a)?l=/:$/.test(a)?"text-sky-300":"text-emerald-300":a==="true"||a==="false"?l="text-violet-300":a==="null"&&(l="text-rose-300"),`${a}`})}function gy(e){try{return decodeURIComponent(e)}catch{return e}}function ir(e){const[,t=""]=e.split("?"),a={};if(t)for(const l of t.split("&")){const[n,i=""]=l.split("=");n&&(a[n]=gy(i))}return a}function vy({endpoint:e,topic:t}){const a=t.type==="rest",l=a?null:dy[e.name],[n,i]=P.useState((l==null?void 0:l.query)||""),[u,c]=P.useState((l==null?void 0:l.variables)||"{}"),[s,f]=P.useState(()=>ir(e.url)),[g,v]=P.useState(null),[d,p]=P.useState(!1),[S,x]=P.useState(null),[D,r]=P.useState(!1);P.useEffect(()=>{i((l==null?void 0:l.query)||""),c((l==null?void 0:l.variables)||"{}"),f(ir(e.url)),v(null),x(null)},[e.name]);const o=async()=>{if(g)try{await navigator.clipboard.writeText(JSON.stringify(g.data,null,2)),r(!0),setTimeout(()=>r(!1),1500)}catch{}},m=async()=>{x(null),p(!0),v(null);try{if(a){const z=e.url.split("?")[0],T=e.method==="GET";let M=t.baseUrl+e.url;if(T&&Object.keys(s).length>0){const Mt=new URLSearchParams(s).toString();M=t.baseUrl+z+(Mt?"?"+Mt:"")}const A={method:e.method,headers:{"Content-Type":"application/json"}};!T&&e.body&&(A.body=typeof e.body=="string"?e.body:JSON.stringify(e.body));const N=await fetch(M,A),ie=await N.text();let _e;try{_e=JSON.parse(ie)}catch{_e=ie}v({status:N.status,ok:N.ok,data:_e})}else{const z=t.baseUrl;let T=z+e.url;const M={method:e.method,headers:{"x-hasura-admin-secret":"nearle-admin-secret","Content-Type":"application/json"}};if(e.method==="GET"&&!e.useGraphql){const ie=Object.entries(s).filter(([,rl])=>String(rl).trim()==="").map(([rl])=>rl);if(ie.length){x("Required parameter(s): "+ie.join(", ")),p(!1);return}const _e=e.url.split("?")[0],Mt=new URLSearchParams(s).toString();T=z+_e+(Mt?"?"+Mt:"")}else{const ie=u!=null&&u.trim()?JSON.parse(u):{};T=z+"/v1/graphql",M.method="POST",M.body=JSON.stringify({query:n,variables:ie})}const A=await fetch(T,M),N=await A.json();v({status:A.status,ok:A.ok,data:N})}}catch(z){x(String(z))}finally{p(!1)}},h={GET:"bg-emerald-100/50 text-emerald-700 border-emerald-200",POST:"bg-blue-100/50 text-blue-700 border-blue-200",PUT:"bg-amber-100/50 text-amber-700 border-amber-200",DELETE:"bg-red-100/50 text-red-700 border-red-200",PATCH:"bg-purple-100/50 text-purple-700 border-purple-200"}[e.method]||"bg-slate-100/50 text-slate-700 border-slate-200",_=e.url.split("?")[0];return y.jsx("div",{className:"py-16 border-t border-slate-200/60 group/row",id:e.name,children:y.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-12 lg:gap-16",children:[y.jsxs("div",{className:"xl:col-span-5 space-y-8",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[y.jsx("span",{className:`px-2.5 py-1 rounded text-xs font-bold tracking-widest border ${h}`,children:e.method}),y.jsx("h3",{className:"text-2xl font-bold text-slate-900 tracking-tight",children:e.name})]}),y.jsx("p",{className:"text-[15px] text-slate-600 leading-relaxed",children:e.description})]}),y.jsxs("div",{className:"bg-white border border-slate-200/80 rounded-xl p-3.5 font-mono text-sm shadow-sm flex items-start gap-2 group-hover/row:border-brand-300 transition-colors min-w-0",children:[y.jsx(ar,{size:14,className:"text-brand-400 shrink-0 mt-0.5"}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("div",{className:"text-xs text-slate-400 truncate",children:t.baseUrl}),y.jsx("div",{className:"font-semibold text-slate-800 break-all",children:_})]})]}),e.method==="GET"&&Object.keys(s).length>0&&y.jsxs("div",{className:"pt-2",children:[y.jsxs("h4",{className:"text-xs font-bold text-slate-400 mb-4 uppercase tracking-widest flex items-center gap-2",children:[y.jsx("span",{className:"w-4 h-[1px] bg-slate-300"})," Query Parameters"]}),y.jsx("div",{className:"space-y-4",children:Object.entries(s).map(([z,T])=>y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsxs("label",{className:"text-sm font-semibold text-slate-800 flex justify-between items-center",children:[z,y.jsx("span",{className:"text-[10px] text-slate-400 uppercase tracking-wider font-mono",children:"string"})]}),y.jsx("input",{className:"w-full px-3.5 py-2.5 bg-white border border-slate-200 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-brand-500/20 focus:border-brand-500 transition-all shadow-sm text-slate-700",value:T,placeholder:`Enter ${z}...`,onChange:M=>{const A=M.target.value;if(f(N=>({...N,[z]:A})),!a)try{c(JSON.stringify({...JSON.parse(u||"{}"),[z]:isNaN(A)||A===""?A:Number(A)},null,2))}catch{}}})]},z))})]})]}),y.jsx("div",{className:"xl:col-span-7",children:y.jsxs("div",{className:"dark-glass rounded-2xl overflow-hidden shadow-code flex flex-col h-full min-h-[450px] transform transition-transform duration-500 group-hover/row:-translate-y-1",children:[y.jsxs("div",{className:"h-10 bg-white/5 border-b border-white/5 flex items-center px-4 gap-2 shrink-0",children:[y.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500/80"}),y.jsx("div",{className:"w-3 h-3 rounded-full bg-amber-500/80"}),y.jsx("div",{className:"w-3 h-3 rounded-full bg-emerald-500/80"}),y.jsx("div",{className:"ml-4 text-xs font-mono text-slate-500",children:"Request Payload"})]}),l?y.jsxs("div",{className:"flex-1 grid grid-cols-1 md:grid-cols-2 divide-y md:divide-y-0 md:divide-x divide-white/5",children:[y.jsxs("div",{className:"p-5 flex flex-col group/pane relative",children:[y.jsxs("div",{className:"text-[11px] font-bold text-slate-400 mb-3 uppercase tracking-wider flex items-center gap-2",children:[y.jsx(er,{size:14,className:"text-brand-400"})," GraphQL Query"]}),y.jsx("textarea",{className:"flex-1 w-full bg-transparent text-slate-300 font-mono text-[13px] focus:outline-none resize-none leading-relaxed selection:bg-brand-500/30 scrollbar-hide",value:n,onChange:z=>i(z.target.value),spellCheck:"false"})]}),y.jsxs("div",{className:"p-5 flex flex-col bg-white/[0.02]",children:[y.jsx("div",{className:"text-[11px] font-bold text-slate-400 mb-3 uppercase tracking-wider",children:"Variables JSON"}),y.jsx("textarea",{className:"flex-1 w-full bg-transparent text-emerald-400 font-mono text-[13px] focus:outline-none resize-none leading-relaxed selection:bg-emerald-500/30 scrollbar-hide",value:u,onChange:z=>c(z.target.value),spellCheck:"false"})]})]}):e.body?y.jsxs("div",{className:"flex-1 p-5 flex flex-col",children:[y.jsxs("div",{className:"text-[11px] font-bold text-slate-400 mb-3 uppercase tracking-wider flex items-center gap-2",children:[y.jsx(er,{size:14,className:"text-brand-400"})," Request Body (JSON)"]}),y.jsx("pre",{className:"flex-1 text-slate-300 font-mono text-[13px] whitespace-pre-wrap leading-relaxed overflow-auto scrollbar-hide",dangerouslySetInnerHTML:{__html:nr(e.body)}})]}):y.jsxs("div",{className:"flex-1 p-8 flex flex-col justify-start",children:[y.jsxs("div",{className:"text-[11px] font-bold text-slate-400 mb-4 uppercase tracking-wider flex items-center gap-2",children:[y.jsx(ar,{size:14,className:"text-brand-400"})," Full Request URL"]}),y.jsxs("div",{className:"font-mono text-[13px] leading-loose break-all",children:[y.jsx("span",{className:`font-bold mr-2 ${e.method==="GET"?"text-emerald-400":e.method==="POST"?"text-blue-400":e.method==="PUT"?"text-amber-400":e.method==="DELETE"?"text-red-400":"text-purple-400"}`,children:e.method}),y.jsx("span",{className:"text-slate-500",children:t.baseUrl}),y.jsx("span",{className:"text-slate-200",children:_}),Object.keys(s).length>0&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-pink-400",children:"?"}),Object.entries(s).map(([z,T],M,A)=>y.jsxs("span",{children:[y.jsx("span",{className:"text-brand-300",children:z}),y.jsx("span",{className:"text-slate-500",children:"="}),y.jsx("span",{className:"text-slate-300",children:encodeURIComponent(T)}),My.jsx(vy,{endpoint:t,topic:e},`${e.uniqueId}/${t.name}`))})]}):null}const _m="https://fiesta.nearle.app",by=[{id:"utils",name:"Utils",description:"Shared lookup endpoints: app categories, subcategories, locations, app types, configs.",endpoints:[{name:"Fetch application categories by tag (Web)",method:"GET",url:"/live/api/v1/web/utils/getapptypes?tag=customer",description:"Fetch application categories by tag (Web)"},{name:"Resolve subcategories (Web)",method:"GET",url:"/live/api/v1/web/utils/getsubcategories?moduleid=1&categoryid=2",description:"Resolve subcategories (Web)"},{name:"Fetch system active geofence details (Web)",method:"GET",url:"/live/api/v1/web/utils/getapplocations?applocationid=1",description:"Fetch system active geofence details (Web)"},{name:"Fetch global system categories configurations (Web)",method:"GET",url:"/live/api/v1/web/utils/getappcategories",description:"Fetch global system categories configurations (Web)"},{name:"Get mobile geofence configuration details (Mobile)",method:"GET",url:"/live/api/v1/mob/utils/getapplocationconfig?applocationid=1",description:"Get mobile geofence configuration details (Mobile)"},{name:"Get mobile active geofence details (Mobile)",method:"GET",url:"/live/api/v1/mob/utils/getapplocations?applocationid=1",description:"Get mobile active geofence details (Mobile)"},{name:"Fetch mobile app types by tag (Mobile)",method:"GET",url:"/live/api/v1/mob/utils/getapptypes?tag=rider",description:"Fetch mobile app types by tag (Mobile)"},{name:"Fetch global payment & geofence configs (Mobile)",method:"GET",url:"/live/api/v1/mob/utils/getappconfig?configid=1",description:"Fetch global payment & geofence configs (Mobile)"},{name:"Get mobile category subcategories list (Mobile)",method:"GET",url:"/live/api/v1/mob/utils/getsubcategories?moduleid=1&categoryid=2",description:"Get mobile category subcategories list (Mobile)"},{name:"Fetch mobile app categories configurations (Mobile)",method:"GET",url:"/live/api/v1/mob/utils/getappcategories",description:"Fetch mobile app categories configurations (Mobile)"}]},{id:"users",name:"Users",description:"Manage users, authentication, and roles across the platform.",endpoints:[{name:"Get all users (Web)",method:"GET",url:"/live/api/v1/web/users/getallusers?roleid=2&tenantid=8&pageno=1&pagesize=10&keyword=john",description:"Get all users (Web)"},{name:"Get a specific user profile by ID (Web)",method:"GET",url:"/live/api/v1/web/users/getusers?userid=12",description:"Get a specific user profile by ID (Web)"},{name:"Get a specific user profile by ID (Mobile)",method:"GET",url:"/live/api/v1/mob/users/getusers?userid=15",description:"Get a specific user profile by ID (Mobile)"},{name:"Operator/User orders board (Web)",method:"GET",url:"/live/api/v1/web/orders/user/getorders?appuserid=12&status=processing&pageno=1&pagesize=10",description:"Operator/User orders board (Web)"},{name:"Tenant Web Panel Login",method:"POST",url:"/live/api/v1/web/users/tenant/weblogin",description:"Tenant Web Panel Login",body:{authname:"merchant_admin_01",password:"PasswordSecurityHash99!"}},{name:"General Application Login",method:"POST",url:"/live/api/v1/web/users/applogin",description:"General Application Login",body:{authname:"system_operator",password:"OperatorSafePasswordSecret",deviceid:"device_uuid_8828b",devicetype:"android"}},{name:"Register New Web Staff Account",method:"POST",url:"/live/api/v1/web/users/create",description:"Register New Web Staff Account",body:{authname:"tenant_staff_steve",firstname:"Steve",lastname:"Rogers",password:"SteveSecurePassword12",email:"steve.rogers@merchant.com",dialcode:"+61",contactno:"412345678",roleid:3,pin:1234,address:"100 Flinders St",suburb:"Melbourne",city:"Melbourne",state:"VIC",postcode:"3000",tenantid:8,locationid:2,applocationid:1,status:"active"}},{name:"Update Web Staff User Details",method:"PUT",url:"/live/api/v1/web/users/update",description:"Update Web Staff User Details",body:{userid:15,firstname:"Steve",lastname:"Captain",email:"steve.captain@merchant.com",contactno:"412345678",address:"200 Flinders St",suburb:"Melbourne",city:"Melbourne",state:"VIC",postcode:"3000",status:"active"}},{name:"Rider/Merchant Mobile App Login",method:"POST",url:"/live/api/v1/mob/users/tenant/login",description:"Rider/Merchant Mobile App Login",body:{authname:"rider_john_01",password:"RiderSecretKey"}},{name:"Create Mobile Staff User",method:"POST",url:"/live/api/v1/mob/users/create",description:"Create Mobile Staff User",body:{authname:"tenant_staff_steve",firstname:"Steve",lastname:"Rogers",password:"SteveSecurePassword12",email:"steve.rogers@merchant.com",dialcode:"+61",contactno:"412345678",roleid:3,pin:1234,tenantid:8,locationid:2,applocationid:1,status:"active"}},{name:"Update Mobile Staff Details",method:"PUT",url:"/live/api/v1/mob/users/update",description:"Update Mobile Staff Details",body:{userid:15,firstname:"Steve",lastname:"Captain",email:"steve.captain@merchant.com",contactno:"412345678",status:"active"}}]},{id:"partners",name:"Partners",description:"Partners, riders, shifts, locations, and log sheets.",endpoints:[{name:"Partner fleet orders board (Web)",method:"GET",url:"/live/api/v1/web/orders/partner/getorders?partnerid=1&status=processing&pageno=1&pagesize=10",description:"Partner fleet orders board (Web)"},{name:"Get active riders (Web)",method:"GET",url:"/live/api/v1/web/partners/getriders?partnerid=1&applocationid=1&userid=12&tenantid=8",description:"Get active riders (Web)"},{name:"Get partner profiles (Web)",method:"GET",url:"/live/api/v1/web/partners/getpartners?partnerid=1&applocationid=1&userid=12",description:"Get partner profiles (Web)"},{name:"Get rider shifts (Web)",method:"GET",url:"/live/api/v1/web/partners/getridershifts?applocationid=1",description:"Get rider shifts (Web)"},{name:"Get location configurations (Web)",method:"GET",url:"/live/api/v1/web/partners/getlocations?userid=12&configid=1",description:"Get location configurations (Web)"},{name:"Get rider log sheet (Web)",method:"GET",url:"/live/api/v1/web/partners/getriderlogs?partnerid=1&applocationid=1&fromdate=2026-05-20&todate=2026-05-20",description:"Get rider log sheet (Web)"},{name:"Get partner profiles (Mobile)",method:"GET",url:"/live/api/v1/mob/partners/getpartners?partnerid=1&applocationid=1&userid=12",description:"Get partner profiles (Mobile)"},{name:"Get rider log sheet (Mobile)",method:"GET",url:"/live/api/v1/mob/partners/getriderlogs?partnerid=1&applocationid=1&fromdate=2026-05-20&todate=2026-05-20",description:"Get rider log sheet (Mobile)"},{name:"Get rider operational info (Mobile)",method:"GET",url:"/live/api/v1/mob/partners/getriderinfo?userid=15",description:"Get rider operational info (Mobile)"},{name:"Get active riders list (Mobile)",method:"GET",url:"/live/api/v1/mob/partners/getriders?partnerid=1&applocationid=1&userid=15&tenantid=8",description:"Get active riders list (Mobile)"}]},{id:"tenants",name:"Tenants",description:"Tenant accounts, locations, customers, pricing, onboarding.",endpoints:[{name:"Tenant orders board (Web)",method:"GET",url:"/live/api/v1/web/orders/tenant/getorders?tenantid=8&locationid=2&status=processing&pageno=1&pagesize=10",description:"Tenant orders board (Web)"},{name:"Get specific tenant store orders (Mobile)",method:"GET",url:"/live/api/v1/mob/orders/tenant/getorders?tenantid=8&locationid=2&pageno=1&pagesize=10",description:"Get specific tenant store orders (Mobile)"},{name:"Search registered tenants (Web)",method:"GET",url:"/live/api/v1/web/tenants/search?status=Active&keyword=Fresh",description:"Search registered tenants (Web)"},{name:"Search tenants by keyword (Web)",method:"GET",url:"/live/api/v1/web/tenants/searchbykeyword?keyword=daily",description:"Search tenants by keyword (Web)"},{name:"Get all active tenants catalog (Web)",method:"GET",url:"/live/api/v1/web/tenants/getalltenants?applocationid=1&status=Active&pageno=1&pagesize=10",description:"Get all active tenants catalog (Web)"},{name:"Get outlet locations assigned to a tenant (Web)",method:"GET",url:"/live/api/v1/web/tenants/gettenantlocations?tenantid=8",description:"Get outlet locations assigned to a tenant (Web)"},{name:"Retrieve delivery time slots config (Mobile)",method:"GET",url:"/live/api/v1/mob/tenants/gettenantslot",description:"Retrieve delivery time slots config (Mobile)"},{name:"Search tenants by keyword (Mobile)",method:"GET",url:"/live/api/v1/mob/tenants/searchbykeyword?keyword=grocery",description:"Search tenants by keyword (Mobile)"},{name:"Retrieve tenants associated with a customer (Mobile)",method:"GET",url:"/live/api/v1/mob/tenants/getcustomertenants?customerid=4082&tenant=0",description:"Retrieve tenants associated with a customer (Mobile)"},{name:"Get outlet locations linked to a tenant (Mobile)",method:"GET",url:"/live/api/v1/mob/tenants/gettenantlocations?tenantid=8",description:"Get outlet locations linked to a tenant (Mobile)"},{name:"Get logistics pricing slabs for a tenant (Mobile)",method:"GET",url:"/live/api/v1/mob/tenants/gettenantpricing?tenantid=8&applocationid=1",description:"Get logistics pricing slabs for a tenant (Mobile)"},{name:"Get staff members under a tenant store (Mobile)",method:"GET",url:"/live/api/v1/mob/tenants/getstaffs?tenantid=8",description:"Get staff members under a tenant store (Mobile)"},{name:"Get tenant detailed profile info (Mobile)",method:"GET",url:"/live/api/v1/mob/tenants/gettenantinfo?tenantid=8&locationid=2",description:"Get tenant detailed profile info (Mobile)"},{name:"Link Customer Profile to Tenant Store",method:"POST",url:"/live/api/v1/web/tenants/createtenantcustomer",description:"Link Customer Profile to Tenant Store",body:{moduleid:1,tenantid:8,locationid:2,customerid:4082,customerlocationid:554,status:1}},{name:"Create New Geofenced Store Location",method:"POST",url:"/live/api/v1/web/tenants/createlocation",description:"Create New Geofenced Store Location",body:{tenantid:8,applocationid:1,moduleid:1,locationname:"Hawthorn Daily Fresh Store",email:"hawthorn.store@merchant.com",contactno:"399443322",latitude:"-37.8222",longitude:"145.0384",address:"12 Glenferrie Rd",suburb:"Hawthorn",city:"Melbourne",state:"VIC",postcode:"3122",opentime:"07:00:00",closetime:"22:00:00",partnerid:1,deliveryradius:5e3,deliverymins:30,cancelsecs:60,status:"Active"}},{name:"Update Store Location Configurations",method:"PUT",url:"/live/api/v1/web/tenants/updatelocation",description:"Update Store Location Configurations",body:{locationid:2,tenantid:8,applocationid:1,locationname:"Richmond Daily Fresh Store",email:"richmond.store@merchant.com",contactno:"399887766",latitude:"-37.8212",longitude:"144.9984",address:"Shop 4, 100 Church St",suburb:"Richmond",city:"Melbourne",state:"VIC",postcode:"3121",opentime:"07:00:00",closetime:"22:00:00",deliveryradius:8e3,deliverymins:45,cancelsecs:120,status:"Active"}},{name:"Onboard New Tenant & Admin Profile",method:"POST",url:"/live/api/v1/mob/tenants/createtenantuser",description:"Onboard New Tenant & Admin Profile (Joint Creation)",body:{tenantname:"Fresh Organic Greens",configid:1,partnerid:1,moduleid:1,tenanttype:"Enterprise",firstname:"Arthur",primaryemail:"arthur@organicgreens.com",primarycontact:"488999000",categoryid:2,subcategoryid:12,address:"400 Chapel St",suburb:"South Yarra",city:"Melbourne",state:"VIC",postcode:"3141",applocationid:1,approved:1,status:"Active"}}]},{id:"customers",name:"Customers",description:"Customer accounts, addresses, support requests, and search.",endpoints:[{name:"Fetch customer profile by ID or Contact (Mobile)",method:"GET",url:"/live/api/v1/mob/customers/getbyid?customerid=4082&contactno=9876543210",description:"Fetch customer profile by ID or Contact (Mobile)"},{name:"Get customer saved address locations (Mobile)",method:"GET",url:"/live/api/v1/mob/customers/getcustomerlocation?customerid=4082",description:"Get customer saved address locations (Mobile)"},{name:"Get customer logged support requests (Mobile)",method:"GET",url:"/live/api/v1/mob/customers/getcustomerrequests?customerid=4082&pageno=1&pagesize=10",description:"Get customer logged support requests (Mobile)"},{name:"Search customer names under a tenant (Mobile)",method:"GET",url:"/live/api/v1/mob/customers/search?keyword=Jane&tenantid=8",description:"Search customer names under a tenant (Mobile)"},{name:"Retrieve customers linked to a tenant location (Mobile)",method:"GET",url:"/live/api/v1/mob/customers/gettenantcustomers?tenantid=8&locationid=2&pageno=1&pagesize=10",description:"Retrieve customers linked to a tenant location (Mobile)"},{name:"Retrieve merchant customers list (Web)",method:"GET",url:"/live/api/v1/web/customers/gettenantcustomers?tenantid=8&locationid=2&pageno=1&pagesize=10&keyword=jane",description:"Retrieve merchant customers list (Web)"},{name:"Individual consumer invoice histories (Web)",method:"GET",url:"/live/api/v1/web/orders/customer/getorders?customerid=4082&status=delivered&pageno=1&pagesize=10",description:"Individual consumer invoice histories (Web)"},{name:"Passwordless OTP Login (via Phone)",method:"POST",url:"/live/api/v1/mob/customers/login",description:"Passwordless OTP Login (via Phone)",body:{contactno:"0499888777"}},{name:"Register Customer Account",method:"POST",url:"/live/api/v1/mob/customers/create",description:"Register Customer Account",body:{firstname:"Jane",lastname:"Smith",gender:"Female",dob:"1994-11-20",dialcode:"+61",contactno:"499888777",email:"jane.smith@gmail.com",deviceid:"uuid_7728b991a",devicetype:"ios",authmode:1,address:"456 Oak Avenue",suburb:"Richmond",city:"Melbourne",state:"VIC",postcode:"3121",latitude:"-37.8212",longitude:"144.9984",applocationid:1,status:1}},{name:"Save New Geofenced Location Address",method:"POST",url:"/live/api/v1/mob/customers/createlocations",description:"Save New Geofenced Location Address",body:{customerid:4082,address:"123 High Street",suburb:"Prahran",city:"Melbourne",state:"VIC",postcode:"3181",latitude:"-37.8502",longitude:"144.9924",primaryaddress:1,status:1}},{name:"Log Customer Support Ticket Request",method:"POST",url:"/live/api/v1/mob/customers/createcustomerrequest",description:"Log Customer Support Ticket Request",body:{customerid:4082,tenantid:8,apptypeid:1,locationid:2,subject:"Delay in Morning Milk Delivery",remarks:"Order scheduled for 7:00 AM hasn't arrived.",status:1}},{name:"Update Customer Profile Details",method:"PUT",url:"/live/api/v1/mob/customers/update",description:"Update Customer Profile Details",body:{customerid:4082,firstname:"Jane",lastname:"Miller",email:"jane.miller@gmail.com",contactno:"499888777",status:1}}]},{id:"deliveries",name:"Deliveries",description:"Delivery dispatch, queues, summaries, and rider status tracking.",endpoints:[{name:"Get deliveries performance summaries (Web)",method:"GET",url:"/live/api/v1/web/deliveries/deliverysummary?tenantid=8&partnerid=1&userid=12&applocationid=1&locationid=2&fromdate=2026-05-20&todate=2026-05-20",description:"Get deliveries performance summaries (Web)"},{name:"Get daily delivery insights (Web)",method:"GET",url:"/live/api/v1/web/deliveries/getdeliveryinsight?tenantid=8",description:"Get daily delivery insights (Web)"},{name:"Get location deliveries summary (Web)",method:"GET",url:"/live/api/v1/web/deliveries/getlocationsummary?tenantid=8",description:"Get location deliveries summary (Web)"},{name:"Get deliveries financial report summary (Web)",method:"GET",url:"/live/api/v1/web/deliveries/getreportsummary?tenantid=8&partnerid=1&userid=12&applocationid=1&fromdate=2026-05-01&todate=2026-05-20",description:"Get deliveries financial report summary (Web)"},{name:"Get fleet rider summary metrics (Web)",method:"GET",url:"/live/api/v1/web/deliveries/getridersummary?applocationid=1&partnerid=1&tenantid=8&fromdate=2026-05-20&todate=2026-05-20",description:"Get fleet rider summary metrics (Web)"},{name:"Get master deliveries board (Web)",method:"GET",url:"/live/api/v1/web/deliveries/getdeliveries?tenantid=8&fromdate=2026-05-20&todate=2026-05-20",description:"Get master deliveries board (Web)"},{name:"Get mobile dispatch summaries (Mobile)",method:"GET",url:"/live/api/v1/mob/deliveries/deliverysummary?userid=15&fromdate=2026-05-20&todate=2026-05-20",description:"Get mobile dispatch summaries (Mobile)"},{name:"Get mobile deliveries board (Mobile)",method:"GET",url:"/live/api/v1/mob/deliveries/getdeliveries?userid=15&status=assigned",description:"Get mobile deliveries board (Mobile)"},{name:"Fetch rider active shift deliveries queue (Mobile)",method:"GET",url:"/live/api/v1/mob/deliveries/getdeliveryqueues?userid=15&fromdate=2026-05-20&todate=2026-05-20",description:"Fetch rider active shift deliveries queue (Mobile)"},{name:"Initialize Logistics Delivery Dispatch (Assign Rider)",method:"POST",url:"/live/api/v1/web/deliveries/createdeliveries",description:"Initialize Logistics Delivery Dispatch",body:[{orderheaderid:2100,applocationid:1,partnerid:1,tenantid:8,moduleid:1,locationid:2,userid:15,orderid:"ORD-19028-4",deliverydate:"2026-05-20",orderstatus:"assigned",assigntime:"2026-05-20 12:10:00",itemcount:2,orderamount:12.58,customerid:4082,pickupcustomer:"Central Merchant Warehouse",pickupcontactno:"987654321",pickuplocationid:2,pickupaddress:"Shop 4, Central Plaza, Melbourne",pickuplat:"-37.8136",pickuplon:"144.9631",deliverycustomerid:4082,deliverylocationid:554,deliverycustomer:"Jane Smith",deliverycontactno:"499888777",deliveryaddress:"456 Oak Avenue, Richmond, VIC, 3121",droplat:"-37.8212",droplon:"144.9984",deliverycharges:3,deliveryamt:15.58,deliverytype:"standard",paymenttype:1}]},{name:"Update Rider Pickup Status",method:"PUT",url:"/live/api/v1/web/deliveries/updatedelivery",description:"Update Rider Pickup Status",body:{deliveryid:8871,orderheaderid:2100,userid:15,orderstatus:"picked",pickuptime:"2026-05-20 12:20:00",riderslat:"-37.8140",riderslon:"144.9640"}},{name:"Rider Update Dispatch Status (Delivered)",method:"PUT",url:"/live/api/v1/mob/deliveries/updatedelivery",description:"Rider Update Dispatch Status (Delivered & GPS Tracking)",body:{deliveryid:8871,orderheaderid:2100,userid:15,orderstatus:"delivered",deliverytime:"2026-05-20 12:45:00",riderslat:"-37.8210",riderslon:"144.9980",actualkms:"4.2",feedback:"Handed over safely.",smsdelivery:1}}]},{id:"orders",name:"Orders",description:"Order boards, details, summaries, and status management.",endpoints:[{name:"Filtered dynamic orders board (Web)",method:"GET",url:"/live/api/v1/web/orders/getorders?tenantid=8&locationid=2&status=processing&pageno=1&pagesize=10",description:"Filtered dynamic orders board (Web)"},{name:"System Admin orders board (Web)",method:"GET",url:"/live/api/v1/web/orders/admin/getorders?applocationid=1&status=processing&pageno=1&pagesize=10",description:"System Admin orders board (Web)"},{name:"Get order dashboard stats summary (Web)",method:"GET",url:"/live/api/v1/web/orders/getordersummary?tenantid=8&fromdate=2026-05-01&todate=2026-05-20",description:"Get order dashboard stats summary (Web)"},{name:"Get location orders summary (Web)",method:"GET",url:"/live/api/v1/web/orders/getlocationsummary?tenantid=8",description:"Get location orders summary (Web)"},{name:"Get annual orders insights analytics (Web)",method:"GET",url:"/live/api/v1/web/orders/getorderinsight?tenantid=8",description:"Get annual orders insights analytics (Web)"},{name:"Get order detailed lines (Web)",method:"GET",url:"/live/api/v1/web/orders/getorderdetails?orderheaderid=2099",description:"Get order detailed lines (Web)"},{name:"Get customer order history (Mobile)",method:"GET",url:"/live/api/v1/mob/orders/getcustomerorders?customerid=4082&pageno=1&pagesize=10",description:"Get customer order history (Mobile)"},{name:"Get mobile order detailed lines (Mobile)",method:"GET",url:"/live/api/v1/mob/orders/getorderdetails?orderheaderid=2099",description:"Get mobile order detailed lines (Mobile)"},{name:"Create New Web Order",method:"POST",url:"/live/api/v1/web/orders/createorder",description:"Create New Web Order (Flat JSON Format)",body:{tenantid:8,locationid:2,applocationid:1,moduleid:1,customerid:4082,orderstatus:"pending",deliverytype:"standard",deliverytime:"2026-05-20 18:00:00",pickupaddress:"Shop 4, Central Plaza, Melbourne",pickuplat:"-37.8136",pickuplong:"144.9631",pickupcustomer:"Central Plaza Merchant",pickupcontactno:"399887766",deliveryaddress:"Apt 4B, Sunset Boulevard, Richmond",deliverylat:"-37.8212",deliverylong:"144.9984",orderamount:11.48,taxamount:1.1,ordervalue:12.58,itemcount:2,paymenttype:1,paymentstatus:0,deliverycharge:3,items:[{productid:105,productname:"Organic Whole Milk 1L",orderqty:2,price:3.99,taxpercentage:10,taxamount:.8,productsumprice:7.98}]}},{name:"Update Order Status & Financial Flag",method:"PUT",url:"/live/api/v1/web/orders/updateorder",description:"Update Order Status & Financial Flag",body:{orderheaderid:2099,orderstatus:"ready",paymentstatus:1,remarks:"Order packed and waiting for rider assignment."}},{name:"Create Mobile Order",method:"POST",url:"/live/api/v1/mob/orders/createorder",description:"Create Mobile Order (Wrapped JSON Format)",body:{orders:{tenantid:8,locationid:2,applocationid:1,moduleid:1,customerid:4082,orderstatus:"pending",deliverytype:"standard",deliverytime:"2026-05-20 18:00:00",pickupaddress:"Shop 4, Central Plaza, Melbourne",orderamount:11.48,taxamount:1.1,ordervalue:12.58,itemcount:2,paymenttype:1,paymentstatus:0,deliverycharge:3,items:[{productid:105,productname:"Organic Whole Milk 1L",orderqty:2,price:3.99,taxpercentage:10,taxamount:.8,productsumprice:7.98}]}}},{name:"Mobile Update Order Status",method:"PUT",url:"/live/api/v1/mob/orders/updateorder",description:"Mobile Update Order Status",body:{orderheaderid:2099,orderstatus:"ready",paymentstatus:1,remarks:"Order packed and waiting for rider assignment."}}]},{id:"products",name:"Products",description:"Product catalog, stock management, variants, and outlet inventory.",endpoints:[{name:"Get product subcategories (Web)",method:"GET",url:"/live/api/v1/web/products/getproductsubcategories?categoryid=2&tenantid=8",description:"Get product subcategories (Web)"},{name:"Get products stock counts (Web)",method:"GET",url:"/live/api/v1/web/products/getproductscount?tenantid=8&categoryid=2&subcategoryid=12&approve=1",description:"Get products stock counts (Web)"},{name:"Get all global categories (Web)",method:"GET",url:"/live/api/v1/web/products/getproductcategories",description:"Get all global categories (Web)"},{name:"Get specific product variants (Web)",method:"GET",url:"/live/api/v1/web/products/getproductvariants?tenantid=8&subcategoryid=12",description:"Get specific product variants (Web)"},{name:"Get master catalog listings (Web)",method:"GET",url:"/live/api/v1/web/products/getcatalougeproducts?tenantid=8&locationid=2&subcategoryid=12&keyword=&pageno=1&pagesize=10",description:"Get master catalog listings (Web)"},{name:"Get live stocks catalog (Web)",method:"GET",url:"/live/api/v1/web/products/getproductstocks?tenantid=8&locationid=2",description:"Get live stocks catalog (Web)"},{name:"Get dynamic stock statement ledger (Web)",method:"GET",url:"/live/api/v1/web/products/getstockstatement?tenantid=8&locationid=2&subcategoryid=12&pageno=1&pagesize=10&keyword=",description:"Get dynamic stock statement ledger (Web)"},{name:"Get outlet geofenced inventory (Web)",method:"GET",url:"/live/api/v1/web/products/getlocationproducts?tenantid=8&locationid=2&subcategoryid=12&pageno=1&pagesize=10",description:"Get outlet geofenced inventory (Web)"},{name:"Master products search board (Web)",method:"GET",url:"/live/api/v1/web/products/getallproducts?tenantid=8&locationid=2&keyword=milk&pageno=1&pagesize=10",description:"Master products search board (Web)"},{name:"Get product details by variant ID (Mobile)",method:"GET",url:"/live/api/v1/mob/products/getproductbyvariant?tenantid=8&variantid=4",description:"Get product details by variant ID (Mobile)"},{name:"Get product subcategories (Mobile)",method:"GET",url:"/live/api/v1/mob/products/getproductsubcategories?categoryid=2&tenantid=8",description:"Get product subcategories (Mobile)"},{name:"Search product catalog (Mobile)",method:"GET",url:"/live/api/v1/mob/products/getallproducts?keyword=milk&pageno=1&pagesize=10",description:"Search product catalog (Mobile)"},{name:"Get mobile geofenced outlet products (Mobile)",method:"GET",url:"/live/api/v1/mob/products/getlocationproducts?tenantid=8&locationid=2&pageno=1&pagesize=20",description:"Get mobile geofenced outlet products (Mobile)"},{name:"Add Multi-Product Stock Entry",method:"POST",url:"/live/api/v1/web/products/createproductstock",description:"Add Multi-Product Stock Entry",body:[{tenantid:8,locationid:2,productid:105,quantity:150,stocktype:"credit",status:"active"},{tenantid:8,locationid:2,productid:109,quantity:80,stocktype:"credit",status:"active"}]},{name:"Create Master Product Catalog Item",method:"POST",url:"/live/api/v1/web/products/create",description:"Create Master Product Catalog Item",body:{applocationid:1,tenantid:8,categoryid:2,subcategoryid:12,productname:"Fresh Cow Milk 1L",productunit:"Litre",unitvalue:"1",productcost:1.8,retailprice:3.5,taxpercent:5,productstock:100,productstatus:"available",approve:1}},{name:"Update Master Product Details",method:"PUT",url:"/live/api/v1/web/products/update",description:"Update Master Product Details",body:{productid:105,productname:"Organic Farm Cow Milk 1L",productcost:1.95,retailprice:3.75,productstock:120,productstatus:"available"}},{name:"Purge Master Product Catalog Entry",method:"DELETE",url:"/live/api/v1/web/products/delete?productid=105",description:"Purge Master Product Catalog Entry"}]},{id:"invoice",name:"Invoice",description:"Invoice insights and billing analytics.",endpoints:[{name:"Get invoice insights for a tenant",method:"GET",url:"/live/api/v1/web/invoice/getinvoiceinsight?tenantid=8",description:"Retrieve invoice insights and statistics for a tenant."}]},{id:"payments",name:"Payments",description:"Payment requests and settlement records.",endpoints:[{name:"Get payment requests for a partner",method:"GET",url:"/live/api/v1/web/payments/requests/getpaymentrequest?partnerid=44&status=1",description:"List payment requests for a partner by status."}]}],Sy={users:Tm,orders:bm,tenants:vm,products:bi,locations:hm,partners:mm,deliveries:Sm,customers:pm,invoice:gm,payments:ym,utils:xm,mobile:bi};function Ty({allGraphql:e,allRest:t,setActiveTopic:a}){const l=[...e,...t];return y.jsxs("div",{className:"max-w-[1000px] mx-auto px-12 py-20 lg:px-24 lg:py-28",children:[y.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-brand-50 border border-brand-100 text-brand-600 text-sm font-medium mb-8",children:[y.jsx(lr,{size:14,className:"fill-current"}),"v2.0 Developer API"]}),y.jsx("h1",{className:"text-4xl lg:text-5xl font-bold text-slate-900 mb-6 tracking-tight",children:y.jsx("span",{className:"text-gradient",children:"NearleDaily API"})}),y.jsx("p",{className:"text-xl text-slate-600 mb-12 max-w-2xl leading-relaxed",children:"A comprehensive, lightning-fast platform designed for logistics, order management, and multi-tenant POS administration — available through both Hasura GraphQL and REST APIs."}),y.jsxs("div",{className:"mb-8",children:[y.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-slate-400 mb-4",children:"Base URLs"}),y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-10",children:[y.jsxs("div",{className:"bg-white border border-slate-200/60 rounded-xl p-4 shadow-sm",children:[y.jsx("div",{className:"text-[11px] text-brand-600 font-bold uppercase tracking-widest mb-1.5",children:"GraphQL"}),y.jsx("code",{className:"font-mono text-sm text-slate-700",children:Em})]}),y.jsxs("div",{className:"bg-white border border-slate-200/60 rounded-xl p-4 shadow-sm",children:[y.jsx("div",{className:"text-[11px] text-indigo-600 font-bold uppercase tracking-widest mb-1.5",children:"REST API"}),y.jsx("code",{className:"font-mono text-sm text-slate-700",children:_m})]})]})]}),y.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:l.map((n,i)=>{const u=Sy[n.id]||lr;return y.jsxs("div",{onClick:()=>a(n),className:"group relative bg-white p-6 rounded-2xl border border-slate-200/60 shadow-sm hover:shadow-xl hover:shadow-brand-500/5 hover:border-brand-200 transition-all duration-300 cursor-pointer overflow-hidden",style:{animationDelay:`${i*80}ms`},children:[y.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-br from-brand-50 to-transparent rounded-bl-full opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),y.jsxs("div",{className:"relative z-10",children:[y.jsxs("h3",{className:"text-lg font-bold text-slate-900 mb-2 group-hover:text-brand-600 transition-colors flex items-center gap-2",children:[y.jsx("div",{className:"p-1.5 bg-brand-50 text-brand-600 rounded-md group-hover:bg-brand-100 transition-colors",children:y.jsx(u,{size:18})}),n.name,y.jsx(Op,{size:16,className:"opacity-0 -translate-x-4 group-hover:opacity-100 group-hover:translate-x-0 transition-all duration-300 ml-auto"})]}),y.jsxs("div",{className:"flex items-center gap-2 mt-1 mb-2",children:[y.jsx("span",{className:`text-[10px] font-bold uppercase tracking-widest px-2 py-0.5 rounded border ${n.type==="graphql"?"bg-brand-50 text-brand-600 border-brand-100":"bg-indigo-50 text-indigo-600 border-indigo-100"}`,children:n.type==="graphql"?"GraphQL":"REST"}),y.jsxs("span",{className:"text-[11px] text-slate-400",children:[n.endpoints.length," endpoint",n.endpoints.length!==1?"s":""]})]}),y.jsx("p",{className:"text-sm text-slate-500 leading-relaxed",children:n.description})]})]},n.uniqueId)})}),y.jsxs("div",{className:"mt-16 flex items-center gap-4 p-6 bg-slate-900 text-slate-300 rounded-2xl shadow-code",children:[y.jsx(Xp,{className:"text-brand-400 shrink-0",size:24}),y.jsx("p",{className:"text-sm",children:"Explore real-time interactive endpoints. GraphQL requests are authenticated with the admin secret. REST endpoints support CORS and can be called directly from the browser."})]})]})}const zm=(e,t,a)=>e.map(l=>({...l,baseUrl:t,type:a,uniqueId:`${a}-${l.id}`})),ur=zm(my,Em,"graphql"),cr=zm(by,_m,"rest");function sr(e,t){return t?e.filter(a=>a.name.toLowerCase().includes(t)||(a.description||"").toLowerCase().includes(t)||a.endpoints.some(l=>l.name.toLowerCase().includes(t)||l.url.toLowerCase().includes(t)||(l.description||"").toLowerCase().includes(t))):e}function xy(){const[e,t]=P.useState(null),[a,l]=P.useState(""),n=a.trim().toLowerCase(),i=P.useMemo(()=>sr(ur,n),[n]),u=P.useMemo(()=>sr(cr,n),[n]);return y.jsxs("div",{className:"min-h-screen bg-slate-50 bg-grid-pattern flex relative overflow-hidden",children:[y.jsx("div",{className:"absolute top-0 -left-4 w-72 h-72 bg-brand-300 rounded-full mix-blend-multiply filter blur-3xl opacity-20 animate-blob"}),y.jsx("div",{className:"absolute top-0 -right-4 w-72 h-72 bg-indigo-300 rounded-full mix-blend-multiply filter blur-3xl opacity-20 animate-blob animation-delay-2000"}),y.jsx("div",{className:"absolute -bottom-8 left-20 w-72 h-72 bg-pink-300 rounded-full mix-blend-multiply filter blur-3xl opacity-20 animate-blob animation-delay-4000"}),y.jsx(fy,{graphqlTopics:i,restTopics:u,activeTopic:e,setActiveTopic:t,searchQuery:a,setSearchQuery:l}),y.jsx("main",{className:"ml-[280px] flex-1 min-h-screen relative z-10",children:e?y.jsx("div",{className:"max-w-[1200px] mx-auto p-12 lg:p-16 opacity-0 animate-fade-in-up",children:y.jsx(hy,{topic:e})}):y.jsx("div",{className:"opacity-0 animate-fade-in-up",children:y.jsx(Ty,{allGraphql:ur,allRest:cr,setActiveTopic:t})})})]})}xp.createRoot(document.getElementById("root")).render(y.jsx(P.StrictMode,{children:y.jsx(xy,{})}));